Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.26 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.26 KB

host setup

https://github.com/sonic-net/sonic-mgmt/blob/master/docs/testbed/README.testbed.Setup.md

clone the sonic-mgmt repo

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/

build container

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

run tests

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