Skip to content

Commit

Permalink
[ipfwd/test_nhop_group]: Support multi-asic in interface flap test
Browse files Browse the repository at this point in the history
* Apply arp eviction to specific asic
* Add test to multi asic pr test scripts

Signed-off-by: Liam Kearney <liamkearney@microsoft.com>
  • Loading branch information
liamkearney-msft committed Nov 11, 2024
1 parent 0a4e40b commit c6c4085
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .azure-pipelines/pr_test_scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ multi-asic-t1-lag:
- http/test_http_copy.py
- telemetry/test_telemetry_cert_rotation.py
- telemetry/test_telemetry.py
- ipfwd/test_nhop_group.py

dpu:
- dash/test_dash_vnet.py
Expand Down
4 changes: 2 additions & 2 deletions tests/ipfwd/test_nhop_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ def test_nhop_group_interface_flap(duthosts, enum_rand_one_per_hwsku_frontend_ho

# Enable kernel flag to not evict ARP entries when the interface goes down
# and shut the fanout switch ports.
duthost.shell(arp_noevict_cmd % gather_facts['src_router_intf_name'])
asic.command(arp_noevict_cmd % gather_facts['src_router_intf_name'])
for i in range(0, len(gather_facts['src_port'])):
fanout, fanout_port = fanout_switch_port_lookup(fanouthosts, duthost.hostname,
gather_facts['src_port'][i])
Expand Down Expand Up @@ -876,6 +876,6 @@ def test_nhop_group_interface_flap(duthosts, enum_rand_one_per_hwsku_frontend_ho
logger.info("portstats: %s", result['stdout'])

finally:
duthost.shell(arp_evict_cmd % gather_facts['src_router_intf_name'])
asic.command(arp_evict_cmd % gather_facts['src_router_intf_name'])
nhop.delete_routes()
arplist.clean_up()

0 comments on commit c6c4085

Please sign in to comment.