Skip to content

Commit

Permalink
Merge c863c3a into 9d40216
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrej-fabry committed Jan 30, 2019
2 parents 9d40216 + c863c3a commit 15b61a8
Show file tree
Hide file tree
Showing 659 changed files with 78,631 additions and 48,288 deletions.
182 changes: 52 additions & 130 deletions Gopkg.lock

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

16 changes: 9 additions & 7 deletions Gopkg.toml
Expand Up @@ -4,13 +4,15 @@
# for detailed Gopkg.toml documentation.

required = [
"git.fd.io/govpp.git/cmd/binapi-generator",
"github.com/gogo/protobuf/protoc-gen-gogo",
"github.com/opencontainers/runc"
"github.com/gogo/protobuf/protoc-gen-gogo"
]

# Constraints

[[constraint]]
branch = "stable/1901"
name = "github.com/ligato/vpp-binapi"

[[constraint]]
branch = "dev"
name = "github.com/ligato/cn-infra"
Expand Down Expand Up @@ -75,10 +77,6 @@ required = [
name = "google.golang.org/grpc"
version = "1.14.0"

[[constraint]]
name = "github.com/opencontainers/runc"
version = "v1.0.0-rc5"

# Overrides

[[override]]
Expand All @@ -103,6 +101,10 @@ required = [
go-tests = true
unused-packages = true

[[prune.project]]
name = "github.com/ligato/vpp-binapi"
unused-packages = false

[[prune.project]]
name = "github.com/ligato/cn-infra"
unused-packages = false
Expand Down
13 changes: 4 additions & 9 deletions docker/dev/Dockerfile
Expand Up @@ -13,20 +13,15 @@ ARG VPP_COMMIT

RUN git clone ${VPP_REPO_URL} /opt/vpp \
&& cd /opt/vpp \
&& git checkout ${VPP_COMMIT}
&& git checkout -q ${VPP_COMMIT}

COPY scripts/genjsonapi.sh /opt/genjsonapi.sh
RUN /opt/genjsonapi.sh
RUN APIDIR=/usr/share/vpp/api /opt/genjsonapi.sh

WORKDIR /go/src/github.com/ligato/vpp-agent
COPY vendor/github.com/ligato/vpp-binapi/vppapi vppapi

COPY plugins/vpp/binapi plugins/vpp/binapi
COPY vendor vendor
COPY Makefile vpp.env ./

RUN cp -r plugins/vpp/binapi /tmp/orig_binapi \
&& make generate-binapi \
&& diff -r plugins/vpp/binapi /tmp/orig_binapi
RUN diff -r vppapi /usr/share/vpp/api

FROM ${BASE_IMG} as dev-stage

Expand Down
4 changes: 2 additions & 2 deletions examples/govpp_call/main.go
Expand Up @@ -15,6 +15,7 @@
package main

import (
"log"
"time"

govppapi "git.fd.io/govpp.git/api"
Expand All @@ -26,9 +27,8 @@ import (
"github.com/ligato/cn-infra/utils/safeclose"
"github.com/ligato/vpp-agent/plugins/govppmux"
"github.com/ligato/vpp-agent/plugins/vpp"
l2Api "github.com/ligato/vpp-agent/plugins/vpp/binapi/l2"
"github.com/ligato/vpp-agent/plugins/vpp/model/l2"
"log"
l2Api "github.com/ligato/vpp-binapi/binapi/l2"
)

// *************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion plugins/configurator/dump.go
Expand Up @@ -221,7 +221,7 @@ func (svc *dumpService) DumpARPs() ([]*vpp_l3.ARPEntry, error) {

// DumpPunt reads VPP Punt socket registrations and returns them as an *PuntResponse.
func (svc *dumpService) DumpPunt() (punts []*vpp_punt.ToHost, err error) {
dump, err := svc.puntHandler.DumpPuntRegisteredSockets()
dump, err := svc.puntHandler.DumpRegisteredPuntSockets()
if err != nil {
return nil, err
}
Expand Down
4 changes: 2 additions & 2 deletions plugins/govppmux/vppcalls/acl_vppcalls.go
Expand Up @@ -18,7 +18,7 @@ import (
"fmt"

govppapi "git.fd.io/govpp.git/api"
aclapi "github.com/ligato/vpp-agent/plugins/vpp/binapi/acl"
aclapi "github.com/ligato/vpp-binapi/binapi/acl"
)

// GetACLPluginVersion retrieves ACL plugin version.
Expand All @@ -33,4 +33,4 @@ func GetACLPluginVersion(ch govppapi.Channel) (string, error) {
version := fmt.Sprintf("%d.%d", reply.Major, reply.Minor)

return version, nil
}
}

0 comments on commit 15b61a8

Please sign in to comment.