From db0d069e3ea0d35c4011f7cd0fc6648514b451d6 Mon Sep 17 00:00:00 2001 From: Saikrishna Arcot Date: Tue, 13 Feb 2024 17:34:27 -0800 Subject: [PATCH] Install netaddr 0.10.1 in the Python 2 part of sonic-mgmt Recently, netaddr 1.0.0 was released, which dropped Python 2 support entirely. Because of this, an empty netaddr package is installed for Python 2. Ansible still uses Python 2, so this needs to remain functional. The Python 3 part of sonic-mgmt is fine. Pin the version of netaddr installed in Python 2 to 0.10.1, the last supported version. Signed-off-by: Saikrishna Arcot --- dockers/docker-sonic-mgmt/Dockerfile.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockers/docker-sonic-mgmt/Dockerfile.j2 b/dockers/docker-sonic-mgmt/Dockerfile.j2 index 152613a9c0ab..c544ef8b07a3 100755 --- a/dockers/docker-sonic-mgmt/Dockerfile.j2 +++ b/dockers/docker-sonic-mgmt/Dockerfile.j2 @@ -151,7 +151,7 @@ RUN python2 -m pip install allure-pytest==2.8.22 \ mock \ msrest==0.6.21 \ natsort \ - netaddr \ + netaddr==0.10.1 \ netmiko==2.4.2 \ nnpy \ pandas \