Skip to content

Commit

Permalink
[docker-ptf]: Upgrade scapy to 2.4.5 in docker-ptf (#10507)
Browse files Browse the repository at this point in the history
Why I did it
Existing dataplane tests cannot be tested under MACsec environment due to the traffic under MACsec link is encrypted. So, I will override the dp_poll of ptf to MACsec dp_poll to decrypt the MACsec packets on injected ports (PR: sonic-net/sonic-mgmt#5490). MACsec decryption library depends on scapy 2.4.5.

How I did it
Upgrade scapy library to 2.4.5 by pip.

How to verify it
Check the scapy version in docker-ptf by

python -c "import scapy; print(scapy.__version__)"
2.4.5

Signed-off-by: Ze Gan <ganze718@gmail.com>
  • Loading branch information
Pterosaur authored Apr 9, 2022
1 parent 487a29a commit 92efc01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dockers/docker-ptf/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ RUN rm -rf /debs \
&& pip install pyrasite \
&& mkdir -p /opt \
&& cd /opt \
&& wget https://raw.githubusercontent.com/p4lang/ptf/master/ptf_nn/ptf_nn_agent.py
&& wget https://raw.githubusercontent.com/p4lang/ptf/master/ptf_nn/ptf_nn_agent.py \
&& pip install --upgrade --ignore-installed scapy==2.4.5

## Adjust sshd settings
RUN mkdir /var/run/sshd \
Expand Down

0 comments on commit 92efc01

Please sign in to comment.