Skip to content

Commit ba393f1

Browse files
authored
Support for VPP 23.06 (#96)
Signed-off-by: Daniel Béreš <[email protected]> Co-authored-by: Daniel Béreš <[email protected]>
1 parent 7285bb9 commit ba393f1

File tree

92 files changed

+13895
-59
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+13895
-59
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ RELEASE_VERSION_MAJOR_MINOR = $(shell echo $(RELEASE_VERSION_FULL) | cut -d '.'
5252
endif
5353

5454
ifeq ($(VPP_VERSION),)
55-
VPP_VERSION="22.10"
55+
VPP_VERSION="23.06"
5656
endif
5757
ifeq ($(DEV_VERSION),) # for tagging in-development images
58-
DEV_VERSION="22.10"
58+
DEV_VERSION="23.06"
5959
endif
6060
REPO="ghcr.io/pantheontech"
6161
STONEWORK_VPP_IMAGE="stonework-vpp"
@@ -253,6 +253,7 @@ generate-binapi: get-binapi-generator
253253
@cd plugins/binapi/vpp2106 && VPP_VERSION=21.06 go generate .
254254
@cd plugins/binapi/vpp2202 && VPP_VERSION=22.02 go generate .
255255
@cd plugins/binapi/vpp2210 && VPP_VERSION=22.10 go generate .
256+
@cd plugins/binapi/vpp2306 && VPP_VERSION=23.06 go generate .
256257

257258
generate-descriptor-adapters: get-descriptor-adapter-generator
258259
@echo "# generating descriptor adapters"

docker/dev.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax = docker/dockerfile:1.2
22

3-
ARG VPP_IMAGE=vpp:22.10
3+
ARG VPP_IMAGE=vpp:23.06
44
ARG VPPAGENT_IMAGE=ligato/vpp-agent:v3.4.0
55

66
FROM $VPP_IMAGE as vpp
@@ -116,8 +116,8 @@ RUN rm /tmp/legacy-nat.conf
116116
COPY ./docker/vpptrace.sh /usr/bin/vpptrace.sh
117117
RUN chmod u+x /usr/bin/vpptrace.sh
118118

119-
COPY ./plugins/binapi/vpp2210/api/abx.api.json /usr/share/vpp/api/plugins/
120-
COPY ./plugins/binapi/vpp2210/api/isisx.api.json /usr/share/vpp/api/plugins/
119+
COPY ./plugins/binapi/vpp2306/api/abx.api.json /usr/share/vpp/api/plugins/
120+
COPY ./plugins/binapi/vpp2306/api/isisx.api.json /usr/share/vpp/api/plugins/
121121

122122
CMD rm -f /dev/shm/db /dev/shm/global_vm /dev/shm/vpe-api && \
123123
mkdir -p /run/vpp /run/stonework/vpp && \

docker/mockcnf/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
ARG VPP_IMAGE=vpp:22.10
17+
ARG VPP_IMAGE=vpp:23.06
1818
ARG VPPAGENT_IMAGE=ligato/vpp-agent:v3.4.0
1919

2020
FROM $VPP_IMAGE as vpp

docker/prod.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
ARG VPP_IMAGE=vpp:22.10
18-
ARG DEV_IMAGE=stonework-dev:22.10
17+
ARG VPP_IMAGE=vpp:23.06
18+
ARG DEV_IMAGE=stonework-dev:23.06
1919

2020
FROM $VPP_IMAGE as vpp
2121
FROM $DEV_IMAGE as dev

docker/vpp-mellanox.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# host network_mode (besides making it privileged and mounting /dev volume as
2828
# ussual with DPDK), to use StoneWork with this VPP under the hood.
2929

30-
ARG VPP_VERSION=22.10
30+
ARG VPP_VERSION=23.06
3131
ARG VPP_IMAGE=ligato/vpp-base:$VPP_VERSION
3232

3333
FROM ${VPP_IMAGE} AS base
@@ -60,7 +60,7 @@ RUN cd vpp && yes | make install-dep install-ext-deps && make pkg-deb
6060

6161
#-----------------
6262
# build ABX plugin
63-
ARG VPP_VERSION=22.10
63+
ARG VPP_VERSION=23.06
6464
COPY vpp/abx /tmp/abx
6565
RUN VPPVER=$(echo $VPP_VERSION | tr -d ".") && \
6666
cp -r /tmp/abx/vpp${VPPVER} /opt/dev/abx

docker/vpp-test.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
ARG VPP_IMAGE=vpp:22.10
17+
ARG VPP_IMAGE=vpp:23.06
1818

1919
FROM ${VPP_IMAGE}
2020

docker/vpp.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
ARG VPP_VERSION=22.10
17+
ARG VPP_VERSION=23.06
1818
ARG VPP_IMAGE=ligato/vpp-base:$VPP_VERSION
1919

2020
FROM ${VPP_IMAGE}
@@ -76,7 +76,7 @@ RUN set -ex; \
7676
# there is a bug in VPP 21.06 that api files are not built on standard location
7777
# for external plugins, to reproduce it is enough to try to build sample-plugin
7878
RUN set -ex; \
79-
if [ "$VPP_VERSION" = "22.10" ] || [ "$VPP_VERSION" = "22.02" ]; \
79+
if [ "$VPP_VERSION" = "23.06" ] || [ "$VPP_VERSION" = "22.10" ] || [ "$VPP_VERSION" = "22.02" ]; \
8080
then \
8181
cp abx/build/CMakeFiles/vpp-api/vapi/* /usr/include/vapi/; \
8282
elif [ "$VPP_VERSION" = "21.06" ]; \

docs/UPDATE_PROCEDURE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ StoneWork is based on *vpp-agent* and thus supports stable VPP versions, support
1111
Check whether `ligato/vpp-base`, with your desired version, already exists.
1212

1313
To do so, just look at `ligato/vpp-base` tags on [DockerHub][dockerhub-tags]. Or directly by docker pull command, for example:
14-
`docker pull ligato/vpp-base:22.10`
14+
`docker pull ligato/vpp-base:23.06`
1515

1616
If there is no such tagged version, you need to create it.
1717

@@ -80,16 +80,16 @@ StoneWork docker images are present on [GitHub Container Registry][ghcr].
8080
To update images, create and push a git tag into image repository according to
8181
the following convention:
8282
`v<VPP-major>.<VPP-minor>.<patch><optional-identifier>` (for example
83-
`v22.10.0`), where `<patch>` may increase if VPP is updated by its patch version
83+
`v23.06.0`), where `<patch>` may increase if VPP is updated by its patch version
8484
or if some change is submitted into the control-plane.
8585

8686
This triggers build of the images in repository and tags StoneWork production
8787
image as `ghcr.io/pantheontech/stonework` with the following version tags:
8888
1. Full git tag as-it-is, with trimmed leading '`v`', for example
89-
`ghcr.io/pantheontech/stonework:22.10.0`. This tag is fixed
89+
`ghcr.io/pantheontech/stonework:23.06.0`. This tag is fixed
9090
and should never be changed.
9191
2. `<VPP-major>.<VPP-minor>`, for example
92-
`ghcr.io/pantheontech/stonework:22.10`. This tag points to the
92+
`ghcr.io/pantheontech/stonework:23.06`. This tag points to the
9393
latest version with the same major and minor version number.
9494
3. `latest`, for example `ghcr.io/pantheontech/stonework:latest`.
9595

@@ -99,7 +99,7 @@ while keeping the `latest` and `<VPP-major>.<VPP-minor>` tags still updated.
9999
After that, all three tagged images are automatically pushed into GitHub
100100
Container Registry.
101101

102-
[dockerhub-tags]: https://hub.docker.com/r/ligato/vpp-base/tags?page=1&ordering=last_updated&name=22.10
102+
[dockerhub-tags]: https://hub.docker.com/r/ligato/vpp-base/tags?page=1&ordering=last_updated&name=23.06
103103
[inspiration-pr]: https://github.com/ligato/vpp-base/pull/18
104104
[agent-instructions]: https://github.com/ligato/vpp-agent/wiki/Guide-for-adding-new-VPP-version
105105
[ghcr]: https://github.com/orgs/PANTHEONtech/packages/container/package/stonework

docs/USERGUIDE.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ StoneWork images are publicly available and can be pulled, [as described here](h
2020
## Run
2121
To try out the StoneWork, we can simply run it as a Docker container:
2222
```
23-
$ docker run -d --rm --name stonework -e ETCD_CONFIG="" ghcr.io/pantheontech/stonework:22.10
23+
$ docker run -d --rm --name stonework -e ETCD_CONFIG="" ghcr.io/pantheontech/stonework:23.06
2424
```
2525
This will run a Docker container named *stonework* in the background.
2626

@@ -129,7 +129,7 @@ TAP Interface
129129

130130
To create tap interface, we need to make the StoneWork container privileged, so running it as:
131131
```
132-
$ docker run -d --rm --name stonework --privileged -e ETCD_CONFIG="" ghcr.io/pantheontech/stonework:22.10
132+
$ docker run -d --rm --name stonework --privileged -e ETCD_CONFIG="" ghcr.io/pantheontech/stonework:23.06
133133
```
134134

135135
Then we will use the configuration as:
@@ -167,7 +167,7 @@ But this tap interface is present only inside our StoneWork container. What if w
167167

168168
Then we need to use host network mode in our docker run one liner:
169169
```
170-
$ docker run -it --rm --name stonework --privileged --network="host" -e ETCD_CONFIG="" ghcr.io/pantheontech/stonework:22.10
170+
$ docker run -it --rm --name stonework --privileged --network="host" -e ETCD_CONFIG="" ghcr.io/pantheontech/stonework:23.06
171171
```
172172
For more details about tap interfaces and VPP, take a look [at this example][tap-example].
173173

@@ -178,7 +178,7 @@ As our Docker run one-liner grows, it becomes better to use docker-compose, in t
178178

179179
Lets rewrite the above mentioned docker run command, i.e.:
180180
```
181-
$ docker run -it --rm --name stonework --privileged --network="host" -e ETCD_CONFIG="" ghcr.io/pantheontech/stonework:22.10
181+
$ docker run -it --rm --name stonework --privileged --network="host" -e ETCD_CONFIG="" ghcr.io/pantheontech/stonework:23.06
182182
```
183183
into *docker-compose.yaml*:
184184
```
@@ -187,7 +187,7 @@ version: '3.3'
187187
services:
188188
stonework:
189189
container_name: stonework
190-
image: "ghcr.io/pantheontech/stonework:22.10"
190+
image: "ghcr.io/pantheontech/stonework:23.06"
191191
privileged: true
192192
network_mode: "host"
193193
environment:
@@ -258,7 +258,7 @@ version: '3.3'
258258
services:
259259
stonework:
260260
container_name: stonework
261-
image: "ghcr.io/pantheontech/stonework:22.10"
261+
image: "ghcr.io/pantheontech/stonework:23.06"
262262
privileged: true
263263
network_mode: "host"
264264
environment:
@@ -435,7 +435,7 @@ volumes: # new
435435
services:
436436
stonework:
437437
container_name: stonework
438-
image: "ghcr.io/pantheontech/stonework:22.10"
438+
image: "ghcr.io/pantheontech/stonework:23.06"
439439
privileged: true
440440
network_mode: "host"
441441
environment:

examples/getting-started/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ The StoneWork container should be present almost immediately:
6666
```
6767
$ docker ps
6868
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
69-
83f034b16cd8 ghcr.io/pantheontech/stonework:22.10 "/bin/sh -c 'rm -f /…" 6 seconds ago Up 5 seconds stonework
69+
83f034b16cd8 ghcr.io/pantheontech/stonework:23.06 "/bin/sh -c 'rm -f /…" 6 seconds ago Up 5 seconds stonework
7070
```
7171

7272
It shouldn't take too long for StoneWork to initialize and apply the "day0"

0 commit comments

Comments
 (0)