From b7adec99c7ae1d650154db646c3bf0be960f576b Mon Sep 17 00:00:00 2001 From: Sonic Build Admin Date: Fri, 19 Jun 2026 17:07:59 +0000 Subject: [PATCH] [Mellanox][docker-syncd-mlnx-rpc] pin ptf_nn_agent.py to specific version #### Why I did it The same issue was found and fixed in the community version: [https://github.com/sonic-net/sonic-buildimage/pull/26912](https://github.com/sonic-net/sonic-buildimage/pull/26912) Our specific `docker-syncd-mlnx-rpc` container did not include this fix, so this PR applies the same community fix to that container. ##### Work item tracking - Microsoft ADO **(number only)**: #### How I did it Updated the ptf_nn_agent.py download URL in the Dockerfile.j2 for the docker-syncd-mlnx-rpc containe #### How to verify it - Build RPC image - Check is syncd container active `docker ps` - Inside syncd container check is ptf_nn_agent active: `supervisorctl status` #### 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) #### External PR --- platform/mellanox/docker-syncd-mlnx-rpc/Dockerfile.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/mellanox/docker-syncd-mlnx-rpc/Dockerfile.j2 b/platform/mellanox/docker-syncd-mlnx-rpc/Dockerfile.j2 index d9bc9da19cc..541fe076f16 100644 --- a/platform/mellanox/docker-syncd-mlnx-rpc/Dockerfile.j2 +++ b/platform/mellanox/docker-syncd-mlnx-rpc/Dockerfile.j2 @@ -77,7 +77,7 @@ RUN pip3 install cffi==1.16.0 \ && pip3 install nnpy \ && 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 \ && apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y \ && rm -rf /root/deps