diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f5b8f04..5e37452 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,7 +26,7 @@ jobs: restrictNSMDeps: uses: networkservicemesh/.github/.github/workflows/restrict-nsm-deps.yaml@main with: - allowed_repositories: "api, sdk, sdk-k8s, sdk-kernel, sdk-sriov, sdk-vpp" + allowed_repositories: "api, sdk, sdk-k8s, sdk-kernel, sdk-sriov, sdk-vpp, govpp" checkgomod: uses: networkservicemesh/.github/.github/workflows/checkgomod.yaml@main diff --git a/Dockerfile b/Dockerfile index 8b9d5dc..6685652 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -ARG VPP_VERSION=v23.02-rc0-189-g0359d19f2 -FROM ghcr.io/edwarnicke/govpp/vpp:${VPP_VERSION} as go +ARG VPP_VERSION=v23.02-rc0-189-g766031bdb +FROM ghcr.io/networkservicemesh/govpp/vpp:${VPP_VERSION} as go COPY --from=golang:1.18.2-buster /usr/local/go/ /go ENV PATH ${PATH}:/go/bin ENV GO111MODULE=on @@ -27,7 +27,7 @@ CMD go test -test.v ./... FROM test as debug CMD dlv -l :40000 --headless=true --api-version=2 test -test.v ./... -FROM ghcr.io/edwarnicke/govpp/vpp:${VPP_VERSION} as runtime +FROM ghcr.io/networkservicemesh/govpp/vpp:${VPP_VERSION} as runtime COPY --from=build /bin/cmd-nsc-simple-docker /bin/cmd-nsc-simple-docker COPY --from=build /bin/spire-server /bin/spire-server COPY --from=build /bin/spire-agent /bin/spire-agent diff --git a/go.mod b/go.mod index 0fce3b9..619ea2a 100644 --- a/go.mod +++ b/go.mod @@ -5,14 +5,14 @@ go 1.18 require ( git.fd.io/govpp.git v0.3.6-0.20210927044411-385ccc0d8ba9 github.com/antonfisher/nested-logrus-formatter v1.3.1 - github.com/edwarnicke/govpp v0.0.0-20230130211138-14ef5d20b1d0 github.com/edwarnicke/grpcfd v1.1.2 github.com/edwarnicke/vpphelper v0.2.0 github.com/kelseyhightower/envconfig v1.4.0 github.com/networkservicemesh/api v1.7.2-0.20230123083145-4a6c3ec589e1 + github.com/networkservicemesh/govpp v0.0.0-20230626092821-fc47696d971b github.com/networkservicemesh/sdk v0.5.1-0.20230620142740-a8c394e69c4e github.com/networkservicemesh/sdk-kernel v0.0.0-20230626100905-a23442dae686 - github.com/networkservicemesh/sdk-vpp v0.0.0-20230626101316-8199d4b43295 + github.com/networkservicemesh/sdk-vpp v0.0.0-20230626125723-f7a0e989a2b3 github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.0 github.com/spiffe/go-spiffe/v2 v2.1.0 diff --git a/go.sum b/go.sum index 06c90b2..2f80acd 100644 --- a/go.sum +++ b/go.sum @@ -87,8 +87,6 @@ github.com/edwarnicke/exechelper v1.0.2 h1:dD49Ui2U0FBFxxhalnKw6vLS0P0TkgnXBRvKL github.com/edwarnicke/exechelper v1.0.2/go.mod h1:/T271jtNX/ND4De6pa2aRy2+8sNtyCDB1A2pp4M+fUs= github.com/edwarnicke/genericsync v0.0.0-20220910010113-61a344f9bc29 h1:4/2wgileNvQB4HfJbq7u4FFLKIfc38a6P0S/51ZGgX8= github.com/edwarnicke/genericsync v0.0.0-20220910010113-61a344f9bc29/go.mod h1:3m+ZfVq+z0pTLW798jmqnifMsalrVLIKmfXaMFvqSuc= -github.com/edwarnicke/govpp v0.0.0-20230130211138-14ef5d20b1d0 h1:3qXBk0lN7PhPrS/2TVJE30TZA/Ecd6LwkFW4rBxxb2w= -github.com/edwarnicke/govpp v0.0.0-20230130211138-14ef5d20b1d0/go.mod h1:kHDnxA+SSNFeMEHz7xvhub1zvx4mOTRlWWRCay2n5NM= github.com/edwarnicke/grpcfd v1.1.2 h1:2b8kCABQ1+JjSKGDoHadqSW7whCeTXMqtyo6jmB5B8k= github.com/edwarnicke/grpcfd v1.1.2/go.mod h1:rHihB9YvNMixz8rS+ZbwosI2kj65VLkeyYAI2M+/cGA= github.com/edwarnicke/log v1.0.0 h1:T6uRNCmR99GTt/CpRr2Gz8eGW8fm0HMThDNGdNxPaGk= @@ -235,12 +233,14 @@ github.com/miekg/dns v1.1.50 h1:DQUfb9uc6smULcREF09Uc+/Gd46YWqJd5DbpPE9xkcA= github.com/mikioh/ipaddr v0.0.0-20190404000644-d465c8ab6721/go.mod h1:Ickgr2WtCLZ2MDGd4Gr0geeCH5HybhRJbonOgQpvSxc= github.com/networkservicemesh/api v1.7.2-0.20230123083145-4a6c3ec589e1 h1:RxNKksXsXsnDsEo+Cfn43pdPfML024ad//QcdKfgXK4= github.com/networkservicemesh/api v1.7.2-0.20230123083145-4a6c3ec589e1/go.mod h1:hOF2844BSstH1311oDMDgqqXS+kdc77htZNPRKl9mf8= +github.com/networkservicemesh/govpp v0.0.0-20230626092821-fc47696d971b h1:5no/Hfw/UaLGDWN8deavInPomlzkWwxbGXoXNdeY0sc= +github.com/networkservicemesh/govpp v0.0.0-20230626092821-fc47696d971b/go.mod h1:akUChTiTQ93H2iVixGfUS3x0UMKuu1pzmcECwdwj6Rk= github.com/networkservicemesh/sdk v0.5.1-0.20230620142740-a8c394e69c4e h1:Gd9eqXL8E7Pb+wHjdy96/b7goBH52g5uVLQy8kgdxmI= github.com/networkservicemesh/sdk v0.5.1-0.20230620142740-a8c394e69c4e/go.mod h1:hmu0t7IxKa1v7Mj7Y3dQrcpRD0YtEyFE5vJorXRQT2A= github.com/networkservicemesh/sdk-kernel v0.0.0-20230626100905-a23442dae686 h1:2Q79AB2NUQmf62RfuofSSY/uutUdNbejrL8jpeM2yCg= github.com/networkservicemesh/sdk-kernel v0.0.0-20230626100905-a23442dae686/go.mod h1:64qsHWOfmq3CcyTrAi8TTOQctr4RLhZjcOtGSIjErYE= -github.com/networkservicemesh/sdk-vpp v0.0.0-20230626101316-8199d4b43295 h1:QSDPB+9RgcfXk4vb4Y8gqhXeH6eXfrbyiUqFMaSGlsg= -github.com/networkservicemesh/sdk-vpp v0.0.0-20230626101316-8199d4b43295/go.mod h1:5P4pS7qAR0r4KiIX/zusAI7iMyAZqGiKYUJ2in+wA24= +github.com/networkservicemesh/sdk-vpp v0.0.0-20230626125723-f7a0e989a2b3 h1:sJ2KjvR/vyUM6CauecAtsLLEFBTVMFRUNtvq5h19mAU= +github.com/networkservicemesh/sdk-vpp v0.0.0-20230626125723-f7a0e989a2b3/go.mod h1:LATrRKLUwNCFV9qlXO72/bmsHj2fljJWgGlLK15VE+Y= github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/gomega v1.1.0 h1:e3YP4dN/HYPpGh29X1ZkcxcEICsOls9huyVCRBaxjq8= github.com/onsi/gomega v1.1.0/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= diff --git a/internal/imports/imports_linux.go b/internal/imports/imports_linux.go index be926d1..59c16d9 100644 --- a/internal/imports/imports_linux.go +++ b/internal/imports/imports_linux.go @@ -7,19 +7,19 @@ import ( _ "fmt" _ "git.fd.io/govpp.git/api" _ "github.com/antonfisher/nested-logrus-formatter" - _ "github.com/edwarnicke/govpp/binapi/acl" - _ "github.com/edwarnicke/govpp/binapi/acl_types" - _ "github.com/edwarnicke/govpp/binapi/af_packet" - _ "github.com/edwarnicke/govpp/binapi/fib_types" - _ "github.com/edwarnicke/govpp/binapi/interface" - _ "github.com/edwarnicke/govpp/binapi/interface_types" - _ "github.com/edwarnicke/govpp/binapi/ip" - _ "github.com/edwarnicke/govpp/binapi/ip_neighbor" - _ "github.com/edwarnicke/govpp/binapi/ip_types" _ "github.com/edwarnicke/grpcfd" _ "github.com/edwarnicke/vpphelper" _ "github.com/kelseyhightower/envconfig" _ "github.com/networkservicemesh/api/pkg/api/networkservice" + _ "github.com/networkservicemesh/govpp/binapi/acl" + _ "github.com/networkservicemesh/govpp/binapi/acl_types" + _ "github.com/networkservicemesh/govpp/binapi/af_packet" + _ "github.com/networkservicemesh/govpp/binapi/fib_types" + _ "github.com/networkservicemesh/govpp/binapi/interface" + _ "github.com/networkservicemesh/govpp/binapi/interface_types" + _ "github.com/networkservicemesh/govpp/binapi/ip" + _ "github.com/networkservicemesh/govpp/binapi/ip_neighbor" + _ "github.com/networkservicemesh/govpp/binapi/ip_types" _ "github.com/networkservicemesh/sdk-kernel/pkg/kernel/tools/heal" _ "github.com/networkservicemesh/sdk-vpp/pkg/networkservice/chains/forwarder" _ "github.com/networkservicemesh/sdk-vpp/pkg/networkservice/mechanisms/kernel" @@ -51,7 +51,6 @@ import ( _ "github.com/vishvananda/netlink" _ "google.golang.org/grpc" _ "google.golang.org/grpc/credentials" - _ "io/ioutil" _ "net" _ "net/url" _ "os" diff --git a/main.go b/main.go index faded41..1957665 100644 --- a/main.go +++ b/main.go @@ -1,4 +1,4 @@ -// Copyright (c) 2022 Cisco and/or its affiliates. +// Copyright (c) 2022-2023 Cisco and/or its affiliates. // // SPDX-License-Identifier: Apache-2.0 // @@ -23,7 +23,6 @@ import ( "crypto/tls" "fmt" - "io/ioutil" "net" "net/url" "os" @@ -192,7 +191,7 @@ func main() { // ******************************************************************************** log.FromContext(ctx).Info("executing phase 3: start spire-server and spire-agent") // ******************************************************************************** - spireRoot, err := ioutil.TempDir("", "spire") + spireRoot, err := os.MkdirTemp("", "spire") if err != nil { log.FromContext(ctx).Fatalf("error while creating spire root: %+v", err) } diff --git a/vppinit/acl.go b/vppinit/acl.go index 4ad0c9f..d5ca657 100644 --- a/vppinit/acl.go +++ b/vppinit/acl.go @@ -22,12 +22,13 @@ import ( "time" "git.fd.io/govpp.git/api" - "github.com/edwarnicke/govpp/binapi/acl" - "github.com/edwarnicke/govpp/binapi/acl_types" - "github.com/edwarnicke/govpp/binapi/interface_types" - "github.com/edwarnicke/govpp/binapi/ip_types" "github.com/pkg/errors" + "github.com/networkservicemesh/govpp/binapi/acl" + "github.com/networkservicemesh/govpp/binapi/acl_types" + "github.com/networkservicemesh/govpp/binapi/interface_types" + "github.com/networkservicemesh/govpp/binapi/ip_types" + "github.com/networkservicemesh/sdk-vpp/pkg/tools/types" "github.com/networkservicemesh/sdk/pkg/tools/log" ) diff --git a/vppinit/vppinit.go b/vppinit/vppinit.go index dc24d96..23782a6 100644 --- a/vppinit/vppinit.go +++ b/vppinit/vppinit.go @@ -26,15 +26,16 @@ import ( "time" "git.fd.io/govpp.git/api" - "github.com/edwarnicke/govpp/binapi/af_packet" - "github.com/edwarnicke/govpp/binapi/fib_types" - interfaces "github.com/edwarnicke/govpp/binapi/interface" - "github.com/edwarnicke/govpp/binapi/interface_types" - "github.com/edwarnicke/govpp/binapi/ip" - "github.com/edwarnicke/govpp/binapi/ip_neighbor" "github.com/pkg/errors" "github.com/vishvananda/netlink" + "github.com/networkservicemesh/govpp/binapi/af_packet" + "github.com/networkservicemesh/govpp/binapi/fib_types" + interfaces "github.com/networkservicemesh/govpp/binapi/interface" + "github.com/networkservicemesh/govpp/binapi/interface_types" + "github.com/networkservicemesh/govpp/binapi/ip" + "github.com/networkservicemesh/govpp/binapi/ip_neighbor" + "github.com/networkservicemesh/sdk-vpp/pkg/tools/types" "github.com/networkservicemesh/sdk/pkg/tools/log" )