Add scapy support for python3 virtual environment in the sonic-mgmt docker container (#10234)

Why I did it
Migration of sonic-mgmt codebase from Python 2 to Python 3

How I did it
Added scapy dependencies to the env-python3 virtual environment.

How to verify it
Run test case:
py.test --testbed=testbed-t0 --inventory=../ansible/lab --testbed_file=../ansible/testbed.csv --host-pattern=testbed-t0 -- module-path=../ansible/library lldp

Signed-off-by: Oleksandr Kozodoi <oleksandrx.kozodoi@intel.com>
This commit is contained in:
Oleksandr Kozodoi 2022-03-16 06:00:51 +02:00 committed by GitHub
parent 5617b1ae3e
commit c5849c9650
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,7 +245,8 @@ RUN python3 -m pip install setuptools-rust \
allure-pytest==2.8.22 \
retry \
thrift==0.11.0 \
ptf
ptf \
scapy==2.4.5
# Deactivating a virtualenv.
ENV PATH="$BACKUP_OF_PATH"