Skip to content

Commit

Permalink
update to latest sdk-sriov
Browse files Browse the repository at this point in the history
Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
  • Loading branch information
denis-tingaikin committed Jan 27, 2022
1 parent 25a88ee commit 50080cc
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 17 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ require (
github.com/edwarnicke/grpcfd v0.1.1
github.com/kelseyhightower/envconfig v1.4.0
github.com/networkservicemesh/api v1.1.2-0.20220119092736-21eda250c390
github.com/networkservicemesh/sdk v0.5.1-0.20220124073803-419fa7053a1a
github.com/networkservicemesh/sdk-sriov v0.0.0-20220125054043-82a6836ef9b8
github.com/networkservicemesh/sdk v0.5.1-0.20220127193211-6d5254af4bb4
github.com/networkservicemesh/sdk-sriov v0.0.0-20220127194319-723f27bc2105
github.com/pkg/errors v0.9.1
github.com/sirupsen/logrus v1.8.1
github.com/spiffe/go-spiffe/v2 v2.0.0-alpha.4.0.20200528145730-dc11d0c74e85
Expand Down
10 changes: 5 additions & 5 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS
github.com/nats-io/stan.go v0.10.0/go.mod h1:0jEuBXKauB1HHJswHM/lx05K48TJ1Yxj6VIfM4k+aB4=
github.com/networkservicemesh/api v1.1.2-0.20220119092736-21eda250c390 h1:GREf14twiQkUInGh+M0qQH+jNQ9uvTfQC2FVieDd7tQ=
github.com/networkservicemesh/api v1.1.2-0.20220119092736-21eda250c390/go.mod h1:B6meq/SWjWR6bGXZdXPfbOeaBK+T1JayLdtEJQCsXKU=
github.com/networkservicemesh/sdk v0.5.1-0.20220124073803-419fa7053a1a h1:VSV85CiW9+IJUPHN58GliNlcYuVldW+lts4fLkna+/o=
github.com/networkservicemesh/sdk v0.5.1-0.20220124073803-419fa7053a1a/go.mod h1:u3HgGqMae6MFZ//JRrN8CkEJ7pwr+CWBG7cvHymhHDY=
github.com/networkservicemesh/sdk-kernel v0.0.0-20220125053613-63d40e5ccf8a/go.mod h1:DvBiFXiN7umMQISiuU2L1XChqqIYE43lgoeDXflJTRk=
github.com/networkservicemesh/sdk-sriov v0.0.0-20220125054043-82a6836ef9b8 h1:wFKI5b4VnAHV61SinOZr7JQ6FsmM2fuSIYOBK7Pg76A=
github.com/networkservicemesh/sdk-sriov v0.0.0-20220125054043-82a6836ef9b8/go.mod h1:aSNvpj40fMb46eKWBBZ9nPFiuaGH5GwdNer9WbwSLdA=
github.com/networkservicemesh/sdk v0.5.1-0.20220127193211-6d5254af4bb4 h1:dpggXFq0Ba6ZjK3b+rDEylbgvxIAvL2SdgXVNJsJct4=
github.com/networkservicemesh/sdk v0.5.1-0.20220127193211-6d5254af4bb4/go.mod h1:u3HgGqMae6MFZ//JRrN8CkEJ7pwr+CWBG7cvHymhHDY=
github.com/networkservicemesh/sdk-kernel v0.0.0-20220127193623-1f226006edcb/go.mod h1:S6k809pGQtC3g4RkgEB9GqHkFq9+GddOj6uw9uXXqnk=
github.com/networkservicemesh/sdk-sriov v0.0.0-20220127194319-723f27bc2105 h1:zOgDBnu0M5AFdB6W1r7VC0ZaKTcT6QqMgRLgeATNUpE=
github.com/networkservicemesh/sdk-sriov v0.0.0-20220127194319-723f27bc2105/go.mod h1:XIvfmUXMwxCMh3LYxYNk4wjgGsMSdYOyhMx2O1GCzB4=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo=
Expand Down
5 changes: 3 additions & 2 deletions internal/pkg/imports/imports_linux.go

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

13 changes: 9 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build linux
// +build linux

package main

import (
Expand Down Expand Up @@ -61,6 +58,7 @@ import (
"github.com/networkservicemesh/sdk/pkg/networkservice/connectioncontext/dnscontext"
"github.com/networkservicemesh/sdk/pkg/networkservice/ipam/point2pointipam"
registryclient "github.com/networkservicemesh/sdk/pkg/registry/chains/client"
registrysendfd "github.com/networkservicemesh/sdk/pkg/registry/common/sendfd"
"github.com/networkservicemesh/sdk/pkg/tools/debug"
dnstools "github.com/networkservicemesh/sdk/pkg/tools/dnscontext"
"github.com/networkservicemesh/sdk/pkg/tools/fs"
Expand Down Expand Up @@ -269,7 +267,14 @@ func main() {
}
}

nseRegistryClient := registryclient.NewNetworkServiceEndpointRegistryClient(ctx, &config.ConnectTo, registryclient.WithDialOptions(clientOptions...))
nseRegistryClient := registryclient.NewNetworkServiceEndpointRegistryClient(
ctx,
&config.ConnectTo,
registryclient.WithDialOptions(clientOptions...),
registryclient.WithNSEAdditionalFunctionality(
registrysendfd.NewNetworkServiceEndpointRegistryClient(),
),
)
nse := &registryapi.NetworkServiceEndpoint{
Name: config.Name,
NetworkServiceNames: config.ServiceNames,
Expand Down
9 changes: 5 additions & 4 deletions suite_setup_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020-2021 Doc.ai and/or its affiliates.
// Copyright (c) 2020-2022 Doc.ai and/or its affiliates.
//
// Copyright (c) 2020-2021 Cisco and/or its affiliates.
// Copyright (c) 2020-2022 Cisco and/or its affiliates.
//
// SPDX-License-Identifier: Apache-2.0
//
Expand Down Expand Up @@ -36,10 +36,11 @@ import (
"google.golang.org/grpc/credentials"

"github.com/networkservicemesh/api/pkg/api/registry"
registrybegin "github.com/networkservicemesh/sdk/pkg/registry/common/begin"
"github.com/networkservicemesh/sdk/pkg/registry/common/expire"
"github.com/networkservicemesh/sdk/pkg/registry/common/memory"
registryrecvfd "github.com/networkservicemesh/sdk/pkg/registry/common/recvfd"
"github.com/networkservicemesh/sdk/pkg/registry/common/serialize"

"github.com/networkservicemesh/sdk/pkg/registry/core/adapters"
registrychain "github.com/networkservicemesh/sdk/pkg/registry/core/chain"
"github.com/networkservicemesh/sdk/pkg/tools/log"
Expand Down Expand Up @@ -109,7 +110,7 @@ func (f *TestSuite) SetupSuite() {
// ********************************************************************************
memrg := memory.NewNetworkServiceEndpointRegistryServer()
registryServer := registrychain.NewNetworkServiceEndpointRegistryServer(
serialize.NewNetworkServiceEndpointRegistryServer(),
registrybegin.NewNetworkServiceEndpointRegistryServer(),
expire.NewNetworkServiceEndpointRegistryServer(f.ctx, time.Minute),
registryrecvfd.NewNetworkServiceEndpointRegistryServer(),
memrg,
Expand Down

0 comments on commit 50080cc

Please sign in to comment.