summaryrefslogtreecommitdiffstats
path: root/tests/topotests/lib/bgp.py
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-01-16 14:29:49 +0100
committerDonald Sharp <sharpd@nvidia.com>2021-01-16 14:29:49 +0100
commite1713aa16dcbc00718adac5eb5df38fd73ae7186 (patch)
tree96c5a770bc33c9c7d47655bdd31672cd956dc7e9 /tests/topotests/lib/bgp.py
parentMerge pull request #7878 from opensourcerouting/ldpd-metric-issue (diff)
downloadfrr-e1713aa16dcbc00718adac5eb5df38fd73ae7186.tar.xz
frr-e1713aa16dcbc00718adac5eb5df38fd73ae7186.zip
tests: Set default timers to 3/10 for bgp using create_router_bgp
Tests were timing out in our test system due to lost packets and flakiness of the lower end systems. Just set the timers to 3/10 and give them plenty of time to converge. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'tests/topotests/lib/bgp.py')
-rw-r--r--tests/topotests/lib/bgp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/topotests/lib/bgp.py b/tests/topotests/lib/bgp.py
index 68a7217dd..22602cb46 100644
--- a/tests/topotests/lib/bgp.py
+++ b/tests/topotests/lib/bgp.py
@@ -692,8 +692,8 @@ def __create_bgp_neighbor(topo, input_dict, router, addr_type, add_neigh=True):
config_data.append("{} activate".format(neigh_cxt))
disable_connected = peer.setdefault("disable_connected_check", False)
- keep_alive = peer.setdefault("keepalivetimer", 60)
- hold_down = peer.setdefault("holddowntimer", 180)
+ keep_alive = peer.setdefault("keepalivetimer", 3)
+ hold_down = peer.setdefault("holddowntimer", 10)
password = peer.setdefault("password", None)
no_password = peer.setdefault("no_password", None)
max_hop_limit = peer.setdefault("ebgp_multihop", 1)