Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Changes to reverse server chain elements to make decisions
on the outbound direction of the call and take action on the return
direction of the call in sdk-vpp:

networkservicemesh/sdk-vpp#156

Required adaptation (another example is in cmd-forwarder-vpp:
networkservicemesh/cmd-forwarder-vpp#124
)

Signed-off-by: Ed Warnicke <[email protected]>
  • Loading branch information
edwarnicke committed Apr 13, 2021
1 parent 4de1efd commit 41e305b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion internal/imports/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@

package imports

//go:generate bash -c "cd $(mktemp -d) && GO111MODULE=on go get github.com/edwarnicke/[email protected].1"
//go:generate bash -c "cd $(mktemp -d) && GO111MODULE=on go get github.com/edwarnicke/[email protected].2"
//go:generate bash -c "GOOS=linux ${GOPATH}/bin/imports-gen"
3 changes: 1 addition & 2 deletions internal/imports/imports_linux.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ import (
"github.com/networkservicemesh/sdk/pkg/networkservice/common/mechanisms/sendfd"
"github.com/networkservicemesh/sdk/pkg/networkservice/core/chain"
"github.com/networkservicemesh/sdk/pkg/networkservice/ipam/point2pointipam"
"github.com/networkservicemesh/sdk/pkg/networkservice/utils/metadata"
registryrefresh "github.com/networkservicemesh/sdk/pkg/registry/common/refresh"
registrysendfd "github.com/networkservicemesh/sdk/pkg/registry/common/sendfd"
registrychain "github.com/networkservicemesh/sdk/pkg/registry/core/chain"
Expand Down Expand Up @@ -170,15 +169,14 @@ func main() {
point2pointipam.NewServer(ipnet),
mechanisms.NewServer(map[string]networkservice.NetworkServiceServer{
memif.MECHANISM: chain.NewNetworkServiceServer(
metadata.NewServer(),
memif.NewServer(vppConn),
tag.NewServer(ctx, vppConn),
connectioncontext.NewServer(vppConn),
up.NewServer(ctx, vppConn),
sendfd.NewServer(),
up.NewServer(ctx, vppConn),
connectioncontext.NewServer(vppConn),
tag.NewServer(ctx, vppConn),
memif.NewServer(vppConn),
),
}),
sendfd.NewServer()),
),
)
// ********************************************************************************
log.FromContext(ctx).Infof("executing phase 5: create grpc server and register icmp-server")
Expand Down

0 comments on commit 41e305b

Please sign in to comment.