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 <hagbard@gmail.com>
  • Loading branch information
edwarnicke committed Apr 13, 2021
1 parent 4de1efd commit 670d463
Showing 1 changed file with 5 additions and 7 deletions.
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 670d463

Please sign in to comment.