https://github.com/sonic-net/sonic-mgmt/blob/master/docs/testbed/README.testbed.Setup.md
- do the steps in "Prepare Testbed Server" section
- read Spytest documentation
git clone https://github.com/sonic-net/sonic-mgmt
download https://downloads.ixiacom.com/support/downloads_and_updates/public/ixnetwork/9.20-Update2/IxNetworkAPI9.20.2201.70Linux64.bin.tgz
in the current directory
tar zxvf ./IxNetworkAPI9.20.2201.70Linux64.bin.tgz
cp ./IxNetworkAPI9.20.2201.70Linux64.bin ./sonic-mgmt/spytest/containers/keysight-ubuntu18/
docker build --no-cache --tag spytest/keysight-u18:latest ./sonic-mgmt/spytest/containers/keysight-ubuntu18
docker tag spytest/keysight-u18:latest spytest/keysight-u18:9.20.2201.70
https://github.com/sonic-net/sonic-mgmt/blob/master/spytest/Doc/intro.md
- do the steps in "Testbed" section
- copy and edit the file testbed_file.yaml ./testbeds/
docker run --network host -v $PWD:/data --mount src=/etc/localtime,target=/etc/localtime,type=bind,readonly -it spytest/keysight-u18 bash
cd /data/sonic-mgmt/spytest
./bin/spytest --testbed-file ./testbeds/testbed_file.yaml --logs-path ./logs --log-level debug --test-suite community-legacy