Skip to content

Copp infra enhancement to support multi-asic#2627

Merged
daall merged 9 commits intosonic-net:masterfrom
abdosi:copp_enhancement
Dec 7, 2020
Merged

Copp infra enhancement to support multi-asic#2627
daall merged 9 commits intosonic-net:masterfrom
abdosi:copp_enhancement

Conversation

@abdosi
Copy link
Copy Markdown
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

Abhishek Dosi added 8 commits December 4, 2020 01:42
Signed-off-by: Abhishek Dosi <abdosi@micrsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@micrsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@micrsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@micrsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@micrsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@micrsoft.com>
@abdosi abdosi requested a review from daall December 5, 2020 02:56
@lgtm-com
Copy link
Copy Markdown

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 <abdosi@micrsoft.com>
@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.
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
swss:
* f28d6622 2023-01-25 | [portinit] Do not call GET on SAI_PORT_ATTR_SPEED when AUTONEG is enabled (sonic-net#2484) (sonic-net#2639) (github/202012, 202012) [Ying Xie]
* 217f7f00 2023-01-21 | Cherry pick of sonic-net/sonic-swss#2589 (sonic-net#2627) [siqbal1986]

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
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