From 7fe766b0e29d472c9affa8cd27b43617c2949cb0 Mon Sep 17 00:00:00 2001 From: Sonic Build Admin Date: Wed, 22 Apr 2026 17:04:44 +0000 Subject: [PATCH] chore: pin ptf_nn_agent.py to use nnpy #### Why I did it With this commit here, PTF replace nnpy with pynng [p4lang/ptf](https://github.com/p4lang/ptf/commit/ebc00f94fe8a3763cf90339d7c69be7976cf0767) However, we don't have pynng. To unblock us now, I'll pin ptf_nn_agent.py to a previous version that doesn't require pynng ##### Work item tracking - Microsoft ADO **(number only)**: #### How I did it #### How to verify it #### Which release branch to backport (provide reason below if selected) - [ ] 202305 - [ ] 202311 - [ ] 202405 - [ ] 202411 - [ ] 202505 - [ ] 202511 #### Tested branch (Please provide the tested image version) - [ ] - [ ] #### Description for the changelog #### Link to config_db schema for YANG module changes Signed-off-by: Sonic Build Admin #### A picture of a cute animal (not mandatory but encouraged) --- dockers/docker-ptf/Dockerfile.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockers/docker-ptf/Dockerfile.j2 b/dockers/docker-ptf/Dockerfile.j2 index 27bb4053dba..a8df3729702 100644 --- a/dockers/docker-ptf/Dockerfile.j2 +++ b/dockers/docker-ptf/Dockerfile.j2 @@ -249,7 +249,7 @@ RUN rm -rf /debs \ {% endif %} && 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/23ebe7237f3c284032bda02fbd1f4a98f1bc12f4/ptf_nn/ptf_nn_agent.py {% if PTF_ENV_PY_VER == "py3" %} RUN curl -L -o tacacs.tar.gz https://shrubbery.net/pub/tac_plus/tacacs-F4.0.4.31.tar.gz\