Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copp infra enhancement to support multi-asic #2627

Merged
merged 9 commits into from
Dec 7, 2020

Conversation

abdosi
Copy link
Contributor

@abdosi abdosi commented Dec 5, 2020

What/Why I did:-

Copp test case infrastructure enhanced to support multi-asic (Subsequent PR's). Following changes are done:

  • Removed the default "nn_target_port" and option to pass this. Instead of this the "nn_target_port" is selected randomly.
    Randomization helps in multi-asic where we can cover multiple asic across test-runs

  • Also removed passing bgp facts to ptf tests. Without this it is very difficult to run ptf test manually. Instead now peer_ip/my_ip is found in the test itself and pass to the ptf tests. This also helps to find asic the peer is connected.

How I Verify:

  • These change are verify both for Single-Asic and Multi-Asic platforms

@abdosi abdosi requested a review from daall December 5, 2020 02:56
@lgtm-com
Copy link

lgtm-com bot commented Dec 5, 2020

This pull request introduces 2 alerts when merging 14bceb6 into 806348a - view on LGTM.com

new alerts:

  • 2 for Unused local variable

Signed-off-by: Abhishek Dosi <[email protected]>
@daall daall merged commit 7776e51 into sonic-net:master Dec 7, 2020
@abdosi abdosi deleted the copp_enhancement branch March 1, 2021 03:09
abdosi added a commit that referenced this pull request Mar 12, 2021
This is PR continuation of #2627 where infra changes were done to support copp on multi-asic platforms. In this PR test is enhanced to work on multi-asic platforms. Following are major changes:

Multi-asic as of now will support installing of nanomsg and ptf_nn_agent in syncd directly mode. This way test case will randomly select any front-asic syncd for verification. To support this needed to add iptable rules for HTTP and PTF Traffic forwarding from host to asic namespace. swap_syncd mode is not supported as of now.

All the docker name are translated to particular namespace/asic that is under test. (Added utility api for same).

Remove disable_lldp_for_testing fixture as noted below since test case is not dependent on that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants