Skip to content

Commit

Permalink
[test]: Adjust stale timer for warm-reboot neighborsync test cases (#…
Browse files Browse the repository at this point in the history
…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 <zxu@linkedin.com>
  • Loading branch information
zhenggen-xu authored and stcheng committed Aug 19, 2019
1 parent 65cbd55 commit 5ae4226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_warm_reboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1823,8 +1823,8 @@ def test_system_warmreboot_neighbor_syncup(self, dvs, testlog):
# bring servers' interface up, save the macs
dvs.runcmd("sysctl -w net.ipv4.neigh.Ethernet{}.base_reachable_time_ms=1800000".format(i*4))
dvs.runcmd("sysctl -w net.ipv6.neigh.Ethernet{}.base_reachable_time_ms=1800000".format(i*4))
dvs.runcmd("sysctl -w net.ipv4.neigh.Ethernet{}.gc_stale_time=180".format(i*4))
dvs.runcmd("sysctl -w net.ipv6.neigh.Ethernet{}.gc_stale_time=180".format(i*4))
dvs.runcmd("sysctl -w net.ipv4.neigh.Ethernet{}.gc_stale_time=600".format(i*4))
dvs.runcmd("sysctl -w net.ipv6.neigh.Ethernet{}.gc_stale_time=600".format(i*4))
dvs.runcmd("ip addr flush dev Ethernet{}".format(i*4))
intf_tbl.set("Ethernet{}|{}.0.0.1/24".format(i*4, i*4), fvs)
intf_tbl.set("Ethernet{}|{}00::1/64".format(i*4, i*4), fvs)
Expand Down

0 comments on commit 5ae4226

Please sign in to comment.