Skip to content

Add wait_until for ARP population on linkflap testcase in test_voq_nbr.py #19344

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/voq/test_voq_nbr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1130,8 +1130,14 @@ def test_front_panel_linkflap_port(self, duthosts, enum_rand_one_per_hwsku_front
fanout, fanport = fanout_switch_port_lookup(fanouthosts, per_host.hostname, lport)
self.linkflap_up(fanout, fanport, per_host, lport)

# Check that all neighbors are repopulated in ARP after ping before checking for neighbor presence
for neighbor in neighbors:
sonic_ping(asic, neighbor)

pytest_assert(wait_until(60, 2, 0, check_arptable_state_for_nbrs, per_host, asic, neighbors, "REACHABLE"),
"STATE for neighbors {} did not change to reachable".format(neighbors))

for neighbor in neighbors:
check_one_neighbor_present(duthosts, per_host, asic, neighbor, nbrhosts, all_cfg_facts)


Expand Down
Loading