Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and include tacacs+ for PTF Py3 only image #20701

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions dockers/docker-ptf/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ RUN apt-get update \
libboost-atomic1.71.0 \
{% else %}
libboost-atomic1.74.0 \
flex \
bison \
tcpd \
libwrap0 \
libwrap0-dev \
{% endif %}
less \
git \
Expand All @@ -73,8 +78,6 @@ RUN apt-get update \
python3-scapy \
python3-six \
libpcap-dev \
# TODO check if tacacs+ is required by tests
# tacacs+ has been dropped from bullseye
{% if PTF_ENV_PY_VER == "mixed" %}
tacacs+ \
{% endif %}
Expand Down Expand Up @@ -168,6 +171,16 @@ RUN rm -rf /debs \
&& cd /opt \
&& wget https://raw.githubusercontent.com/p4lang/ptf/master/ptf_nn/ptf_nn_agent.py

{% if PTF_ENV_PY_VER == "py3" %}
RUN git clone https://github.com/robot527/tac_plus \
&& cd tac_plus \
&& cd tacacs+ \
&& ./configure \
&& make install \
&& ln -s /usr/local/sbin/tac_plus /usr/sbin/tac_plus \
&& ln -s /usr/local/bin/tac_pwd /usr/sbin/tac_pwd
{% endif %}

{% if PTF_ENV_PY_VER == "mixed" %}
RUN python3 -m venv --system-site-packages env-python3
# Activating a virtualenv. The virtualenv automatically works for RUN, ENV and CMD.
Expand Down
Loading