Skip to content

Commit

Permalink
build: Fix VPP config for VPP 20.09 (#1799)
Browse files Browse the repository at this point in the history
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
  • Loading branch information
ondrej-fabry authored Apr 23, 2021
1 parent 843b3ec commit bd7edfd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docker/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,10 @@ COPY ./docker/dev/init_hook.sh /usr/bin/
# handle differences in vpp.conf which are between supported VPP versions
ARG VPP_VERSION
COPY ./docker/dev/legacy-nat.conf /tmp/legacy-nat.conf
RUN bash -c "if [[ \"$VPP_VERSION\" < "2101" ]]; then cat /tmp/legacy-nat.conf >> /etc/vpp/vpp.conf; fi"
RUN rm /tmp/legacy-nat.conf
RUN if [[ "$VPP_VERSION" < "2009" ]]; then \
cat /tmp/legacy-nat.conf >> /etc/vpp/vpp.conf; \
fi; \
rm /tmp/legacy-nat.conf

# Install agent
WORKDIR /src/ligato/vpp-agent
Expand Down
6 changes: 4 additions & 2 deletions docker/prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ COPY init_hook.sh /usr/bin/
# handle differences in vpp.conf which are between supported VPP versions
ARG VPP_VERSION
COPY legacy-nat.conf /tmp/legacy-nat.conf
RUN bash -c "if [[ \"$VPP_VERSION\" < "2101" ]]; then cat /tmp/legacy-nat.conf >> /etc/vpp/vpp.conf; fi"
RUN rm /tmp/legacy-nat.conf
RUN if [[ "$VPP_VERSION" < "2009" ]]; then \
cat /tmp/legacy-nat.conf >> /etc/vpp/vpp.conf; \
fi; \
rm /tmp/legacy-nat.conf

# Install agent
COPY --from=devimg \
Expand Down

0 comments on commit bd7edfd

Please sign in to comment.