Skip to content

Commit

Permalink
Merge pull request #443 from denis-tingaikin/add-client-info
Browse files Browse the repository at this point in the history
qfix: add clientinfo into cmd-nsc-init
  • Loading branch information
edwarnicke authored May 14, 2022
2 parents 9162871 + d8d1845 commit 460664e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/imports/gen.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Copyright (c) 2021 Doc.ai and/or its affiliates.
//
// Copyright (c) 2022 Cisco and/or its affiliates.
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -16,5 +18,5 @@

package imports

//go:generate bash -c "cd $(mktemp -d) && GO111MODULE=on go get github.com/edwarnicke/[email protected]"
//go:generate bash -c "cd $(mktemp -d) && GO111MODULE=on go install github.com/edwarnicke/[email protected]"
//go:generate bash -c "GOOS=linux ${GOPATH}/bin/imports-gen"
1 change: 1 addition & 0 deletions internal/imports/imports_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
_ "github.com/networkservicemesh/sdk-sriov/pkg/networkservice/common/token"
_ "github.com/networkservicemesh/sdk/pkg/networkservice/common/authorize"
_ "github.com/networkservicemesh/sdk/pkg/networkservice/common/begin"
_ "github.com/networkservicemesh/sdk/pkg/networkservice/common/clientinfo"
_ "github.com/networkservicemesh/sdk/pkg/networkservice/common/excludedprefixes"
_ "github.com/networkservicemesh/sdk/pkg/networkservice/common/mechanisms"
_ "github.com/networkservicemesh/sdk/pkg/networkservice/common/mechanisms/kernel"
Expand Down
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import (
sriovtoken "github.com/networkservicemesh/sdk-sriov/pkg/networkservice/common/token"
"github.com/networkservicemesh/sdk/pkg/networkservice/common/authorize"
"github.com/networkservicemesh/sdk/pkg/networkservice/common/begin"
"github.com/networkservicemesh/sdk/pkg/networkservice/common/clientinfo"
"github.com/networkservicemesh/sdk/pkg/networkservice/common/excludedprefixes"
"github.com/networkservicemesh/sdk/pkg/networkservice/common/mechanisms"
"github.com/networkservicemesh/sdk/pkg/networkservice/common/mechanisms/kernel"
Expand Down Expand Up @@ -162,6 +163,7 @@ func main() {
nsmClient := chain.NewNetworkServiceClient(
updatepath.NewClient(rootConf.Name),
begin.NewClient(),
clientinfo.NewClient(),
sriovtoken.NewClient(),
mechanisms.NewClient(map[string]networkservice.NetworkServiceClient{
vfiomech.MECHANISM: chain.NewNetworkServiceClient(vfio.NewClient()),
Expand Down

0 comments on commit 460664e

Please sign in to comment.