summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-07-24 14:30:32 +0300
committerDonatas Abraitis <donatas@opensourcerouting.org>2024-07-24 14:30:32 +0300
commit91e67abb610d6d39d304c24b2233a38b8c26e08a (patch)
tree6f064582bb9e41ccf490344be34253228dd59e6e
parentaa9d66e922e2a232b2fd89b87d8cb7409ae82dc1 (diff)
tests: Delay initial OPEN after we do `clear bgp`
Under some circumstances it might happen that the session is quickly UP in the middle of `clear bgp ...` and `shutdown`. That leads to session be UP, and the stale routes being cleared quickly. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
-rw-r--r--tests/topotests/bgp_gr_notification/r1/bgpd.conf2
-rw-r--r--tests/topotests/bgp_gr_notification/r2/bgpd.conf2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/topotests/bgp_gr_notification/r1/bgpd.conf b/tests/topotests/bgp_gr_notification/r1/bgpd.conf
index 6119f67436..0af042f6be 100644
--- a/tests/topotests/bgp_gr_notification/r1/bgpd.conf
+++ b/tests/topotests/bgp_gr_notification/r1/bgpd.conf
@@ -3,7 +3,7 @@ router bgp 65001
bgp graceful-restart
neighbor 192.168.255.2 remote-as external
neighbor 192.168.255.2 timers 1 3
- neighbor 192.168.255.2 timers connect 1
+ neighbor 192.168.255.2 timers delayopen 10
address-family ipv4
redistribute connected
exit-address-family
diff --git a/tests/topotests/bgp_gr_notification/r2/bgpd.conf b/tests/topotests/bgp_gr_notification/r2/bgpd.conf
index 05e17f0564..8325e21d2c 100644
--- a/tests/topotests/bgp_gr_notification/r2/bgpd.conf
+++ b/tests/topotests/bgp_gr_notification/r2/bgpd.conf
@@ -4,7 +4,7 @@ router bgp 65002
bgp graceful-restart
neighbor 192.168.255.1 remote-as external
neighbor 192.168.255.1 timers 1 3
- neighbor 192.168.255.1 timers connect 1
+ neighbor 192.168.255.1 timers delayopen 10
address-family ipv4
redistribute connected
exit-address-family