-
Notifications
You must be signed in to change notification settings - Fork 1k
[copp] Should not open a device socket which doesn't opened by ptf_nn_agent.py #278
Description
Hi,
According to the copp.yml. PTF will try to use device sockets when ansible calling ptf_runner.yml to run the copp test with nn.
The sample ptf_extra_options is like the following:
ptf_extra_options: "--device-socket 0-3@tcp://127.0.0.1:10900 --device-socket 1-3@tcp://{{ ansible_eth0['ipv4']['address'] }}:10900"
The PTF host device socket(0-3@tcp://127.0.0.1:10900) had been opened when boot up docker PTF by testbed-cli.sh.
However there is no any other script or command to open the remote device socket(1-3@tcp://{{ ansible_eth0['ipv4']['address'] }}:10900) before running the copp test.
It will cause the script hang when PTF is initializing the PTF script.
Also why using the IP address of eth0 of DUT({{ ansible_eth0['ipv4']['address'] }}) as IP address of the remote device socket?
For now I opened a device socket of the IP address of eth3 of socker PTF like the following:
python /opt/ptf_nn_agent.py --device-socket 1@tcp://10.0.0.7:10900 -i 1-3@eth3
Also script will not hang after modified the IP address of remote host to the IP address of eth3 of docker PTF.
Please let me know is there any reference or document about the details of script of copp test?
Regards,
Kenie Liu