Skip to content

[copp] Should not open a device socket which doesn't opened by ptf_nn_agent.py #278

@okanchou9

Description

@okanchou9

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions