From 3582614c7196d5a43c015fb0a76400e6ea0a3d9b Mon Sep 17 00:00:00 2001 From: Ed Warnicke Date: Sun, 6 Dec 2020 14:00:47 -0600 Subject: [PATCH] Fix to use mechanismtranslation properly (#44) Signed-off-by: Ed Warnicke --- pkg/networkservice/chains/xconnectns/server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/networkservice/chains/xconnectns/server.go b/pkg/networkservice/chains/xconnectns/server.go index f2fcf3fc..fd017ad2 100644 --- a/pkg/networkservice/chains/xconnectns/server.go +++ b/pkg/networkservice/chains/xconnectns/server.go @@ -31,6 +31,7 @@ import ( "github.com/networkservicemesh/sdk/pkg/networkservice/common/mechanisms" "github.com/networkservicemesh/sdk/pkg/networkservice/common/mechanisms/recvfd" "github.com/networkservicemesh/sdk/pkg/networkservice/common/mechanisms/sendfd" + "github.com/networkservicemesh/sdk/pkg/networkservice/common/mechanismtranslation" "github.com/networkservicemesh/sdk/pkg/networkservice/core/adapters" "github.com/networkservicemesh/sdk/pkg/tools/addressof" "github.com/networkservicemesh/sdk/pkg/tools/token" @@ -69,11 +70,12 @@ func NewServer(ctx context.Context, name string, authzServer networkservice.Netw clienturl.NewServer(clientURL), connect.NewServer( ctx, - client.NewCrossConnectClientFactory( + client.NewClientFactory( name, // What to call onHeal addressof.NetworkServiceClient(adapters.NewServerToClient(rv)), tokenGenerator, + mechanismtranslation.NewClient(), connectioncontextkernel.NewClient(), tag.NewClient(ctx, vppConn), // mechanisms