Skip to content

Commit 5119b08

Browse files
jipanyanglguohan
authored andcommitted
[VS] neighbor test post clean up to avoid messing up test environment (sonic-net#760)
Signed-off-by: Jipan Yang <[email protected]>
1 parent fd2eb4b commit 5119b08

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_warm_reboot.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,10 @@ def test_swss_neighbor_syncup(dvs, testlog):
731731
# check restore Count
732732
swss_app_check_RestoreCount_single(state_db, restore_count, "neighsyncd")
733733

734+
# post-cleanup
735+
dvs.runcmd("ip -s neigh flush all")
736+
dvs.runcmd("ip -6 -s neigh flush all")
737+
734738
intf_tbl._del("{}|24.0.0.1/24".format(intfs[0]))
735739
intf_tbl._del("{}|28.0.0.9/24".format(intfs[1]))
736740
intf_tbl._del("{}|2400::1/64".format(intfs[0]))
@@ -741,8 +745,6 @@ def test_swss_neighbor_syncup(dvs, testlog):
741745
# TODO: The condition of warm restart readiness check is still under discussion.
742746
def test_OrchagentWarmRestartReadyCheck(dvs, testlog):
743747

744-
# do a pre-cleanup
745-
dvs.runcmd("ip -s -s neigh flush all")
746748
time.sleep(1)
747749

748750
dvs.runcmd("config warm_restart enable swss")

0 commit comments

Comments
 (0)