Skip to content

Commit

Permalink
Install ptf afpacket module required by ptf_nn_agent. (#14503)
Browse files Browse the repository at this point in the history
Why I did it
ptf_nn_agent failed to start in dnx rpc syncd because module afpacket was not installed.
Please see issue sonic-net/sonic-mgmt#7822

How I did it
Add downloading ptf afpacket module in docker file.

How to verify it
Verified that ptf_nn_agent was started successfully in dnx rpc syncd with the change.
  • Loading branch information
ysmanman authored and mssonicbld committed May 17, 2023
1 parent 14ecd28 commit 578cd38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platform/broadcom/docker-syncd-brcm-dnx-rpc/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ RUN wget https://github.com/nanomsg/nanomsg/archive/1.0.0.tar.gz \
&& mkdir -p /opt \
&& cd /opt \
&& wget https://raw.githubusercontent.com/p4lang/ptf/master/ptf_nn/ptf_nn_agent.py \
&& mkdir ptf && cd ptf && wget https://raw.githubusercontent.com/p4lang/ptf/master/src/ptf/afpacket.py && touch __init__.py \
&& apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y \
&& rm -rf /root/deps

Expand Down

0 comments on commit 578cd38

Please sign in to comment.