Skip to content

Commit 5ae4226

Browse files
zhenggen-xustcheng
authored andcommitted
[test]: Adjust stale timer for warm-reboot neighborsync test cases (#1031)
Increase the stale timer to "600" seconds so it won't be aged out in case the test server is busy or slow Signed-off-by: Zhenggen Xu <[email protected]>
1 parent 65cbd55 commit 5ae4226

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_warm_reboot.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1823,8 +1823,8 @@ def test_system_warmreboot_neighbor_syncup(self, dvs, testlog):
18231823
# bring servers' interface up, save the macs
18241824
dvs.runcmd("sysctl -w net.ipv4.neigh.Ethernet{}.base_reachable_time_ms=1800000".format(i*4))
18251825
dvs.runcmd("sysctl -w net.ipv6.neigh.Ethernet{}.base_reachable_time_ms=1800000".format(i*4))
1826-
dvs.runcmd("sysctl -w net.ipv4.neigh.Ethernet{}.gc_stale_time=180".format(i*4))
1827-
dvs.runcmd("sysctl -w net.ipv6.neigh.Ethernet{}.gc_stale_time=180".format(i*4))
1826+
dvs.runcmd("sysctl -w net.ipv4.neigh.Ethernet{}.gc_stale_time=600".format(i*4))
1827+
dvs.runcmd("sysctl -w net.ipv6.neigh.Ethernet{}.gc_stale_time=600".format(i*4))
18281828
dvs.runcmd("ip addr flush dev Ethernet{}".format(i*4))
18291829
intf_tbl.set("Ethernet{}|{}.0.0.1/24".format(i*4, i*4), fvs)
18301830
intf_tbl.set("Ethernet{}|{}00::1/64".format(i*4, i*4), fvs)

0 commit comments

Comments
 (0)