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.30/IxNetworkAPI9.30.2212.7Linux64.bin.tgz
in the current directory
tar zxvf ./IxNetworkAPI9.30.2212.7Linux64.bin.tgz
cp ./IxNetworkAPI9.30.2212.7Linux64.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.30.2212.7
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