Skip to content

Commit

Permalink
fix(binapi): Regenerate binapi for VPP 20.01-45~g7a071e370~b63 (#1667)
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrej-fabry authored Jun 16, 2020
1 parent 3fa169c commit 60931de
Show file tree
Hide file tree
Showing 34 changed files with 86 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ include vpp.env
ifeq ($(VPP_VERSION),)
VPP_VERSION=$(VPP_DEFAULT)
endif
VPP_IMG:=$(value VPP_$(VPP_VERSION)_IMAGE)

VPP_IMG?=$(value VPP_$(VPP_VERSION)_IMAGE)
ifeq ($(UNAME_ARCH), aarch64)
VPP_IMG:=$(subst vpp-base,vpp-base-arm64,$(VPP_IMG))
VPP_IMG?=$(subst vpp-base,vpp-base-arm64,$(VPP_IMG))
endif
VPP_BINAPI?=$(value VPP_$(VPP_VERSION)_BINAPI)

Expand Down
23 changes: 19 additions & 4 deletions docker/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \

WORKDIR /src/ligato/vpp-agent

ARG VPP_IMG
ARG VPP_BINAPI
ARG SKIP_CHECK

Expand All @@ -28,12 +29,26 @@ RUN set -x; \
gofmt -w plugins/vpp/binapi; \
cp -r plugins/vpp/binapi /tmp/orig_binapi && \
make generate-binapi && \
diff -r plugins/vpp/binapi /tmp/orig_binapi || \
diff --color=always -r plugins/vpp/binapi /tmp/orig_binapi || \
{ \
set +x; \
vpp_version="$(cat /vpp-version)"; \
echo >&2 "==============================================================="; \
echo >&2 "!!! VPP BINARY API CHECK FAILED !!!"; \
echo >&2 "==============================================================="; \
echo >&2 " - VPP version: ${vpp_version}"; \
echo >&2 " - VPP base img: ${VPP_IMG}"; \
echo >&2 " - binapi folder: ${VPP_BINAPI}"; \
echo >&2 "---------------------------------------------------------------"; \
echo >&2 " Generated binapi does not seem to be up-to-date with used VPP!"; \
echo >&2 ""; \
echo >&2 " This might happen when VPP API change gets merged to a branch of used VPP."; \
echo >&2 " Ensure that VPP base image is compatible with the selected VPP version!"; \
echo >&2 "---------------------------------------------------------------"; \
echo >&2 " Generated binapi does not match with used version!"; \
echo >&2 " VPP version: ${vpp_version}"; \
echo >&2 " To resolve this now, you could:"; \
echo >&2 ""; \
echo >&2 " 1. Ignore this check by setting: SKIP_CHECK=y"; \
echo >&2 " 2. Override used VPP base image by setting: VPP_IMG=ligato/vpp-base:<TAG>"; \
echo >&2 "---------------------------------------------------------------"; \
[ -n "$SKIP_CHECK" ] && exit 0; \
}
Expand All @@ -57,7 +72,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

# Install Go
ENV GOLANG_VERSION 1.14.2
ENV GOLANG_VERSION 1.14.4
RUN set -eux; \
dpkgArch="$(dpkg --print-architecture)"; \
case "${dpkgArch##*-}" in \
Expand Down
2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/abf/abf.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/acl/acl.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/af_packet/af_packet.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/arp/arp.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/bond/bond.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/dhcp/dhcp.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/fib_types/fib_types.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/flowprobe/flowprobe.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/gre/gre.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/gtpu/gtpu.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/interfaces/interfaces.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/ip/ip.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/ip_neighbor/ip_neighbor.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/ip_types/ip_types.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/ipfix_export/ipfix_export.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/ipip/ipip.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/ipsec/ipsec.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/ipsec_types/ipsec_types.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/l2/l2.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/l3xc/l3xc.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/memclnt/memclnt.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/memif/memif.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/nat/nat.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/punt/punt.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/span/span.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/sr/sr.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/stn/stn.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/tapv2/tapv2.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/vmxnet3/vmxnet3.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/vpe/vpe.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/vxlan/vxlan.ba.go

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

2 changes: 2 additions & 0 deletions plugins/vpp/binapi/vpp2001/vxlan_gpe/vxlan_gpe.ba.go

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

0 comments on commit 60931de

Please sign in to comment.