]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Graceful Restart restart-time can be 0
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Thu, 6 Jan 2022 09:24:48 +0000 (11:24 +0200)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Thu, 6 Jan 2022 09:24:48 +0000 (11:24 +0200)
Using with LLGR, this should be allowed setting GR restart-time timer to 0,
to immediately start LLGR timers.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
bgpd/bgp_vty.c
doc/user/bgp.rst
tests/topotests/bgp_llgr/r0/bgpd.conf
tests/topotests/bgp_llgr/r1/bgpd.conf

index 2581714f3173863d5e48fa4a74b8208c0e6df4c8..e3340985c47b85b85a9eec7bdbb05badbb98d12d 100644 (file)
@@ -2704,7 +2704,7 @@ DEFUN (bgp_graceful_restart_stalepath_time,
 
 DEFUN (bgp_graceful_restart_restart_time,
        bgp_graceful_restart_restart_time_cmd,
-       "bgp graceful-restart restart-time (1-4095)",
+       "bgp graceful-restart restart-time (0-4095)",
        BGP_STR
        "Graceful restart capability parameters\n"
        "Set the time to wait to delete stale routes before a BGP open message is received\n"
@@ -2758,7 +2758,7 @@ DEFUN (no_bgp_graceful_restart_stalepath_time,
 
 DEFUN (no_bgp_graceful_restart_restart_time,
        no_bgp_graceful_restart_restart_time_cmd,
-       "no bgp graceful-restart restart-time [(1-4095)]",
+       "no bgp graceful-restart restart-time [(0-4095)]",
        NO_STR
        BGP_STR
        "Graceful restart capability parameters\n"
index dfd865bf33b2d6c6de6964363363ce9de741c6f8..c647d699994cce1ddcd4276ecf8d6c0f19a8c468 100644 (file)
@@ -924,6 +924,17 @@ However, it MUST defer route selection for an address family until it either.
 
    This is command, will set the time for which stale routes are kept in RIB.
 
+.. clicmd:: bgp graceful-restart restart-time (0-4095)
+
+   Set the time to wait to delete stale routes before a BGP open message
+   is received.
+
+   Using with Long-lived Graceful Restart capability, this is recommended
+   setting this timer to 0 and control stale routes with
+   ``bgp long-lived-graceful-restart stale-time``.
+
+   Default value is 120.
+
 .. clicmd:: bgp graceful-restart stalepath-time (1-4095)
 
    This is command, will set the max time (in seconds) to hold onto
index 8ca5f5575bc46d38f15e4723cd0e459e44861c13..d93ee193bcfcd989d9c1f4c42f1d0477ebf4e684 100644 (file)
@@ -1,7 +1,7 @@
 router bgp 65000
  no bgp ebgp-requires-policy
  bgp graceful-restart
- bgp graceful-restart restart-time 1
+ bgp graceful-restart restart-time 0
  bgp long-lived-graceful-restart stale-time 20
  neighbor 192.168.0.2 remote-as external
  address-family ipv4 unicast
index 9b19cc62ad9707ac7307070efc42207a7bd8242b..f8c9877730e8fc1fb85c234099fdc26967a5f0cd 100644 (file)
@@ -1,7 +1,7 @@
 router bgp 65001
  no bgp ebgp-requires-policy
  bgp graceful-restart
- bgp graceful-restart restart-time 1
+ bgp graceful-restart restart-time 0
  bgp long-lived-graceful-restart stale-time 20
  neighbor 192.168.1.2 remote-as external
  address-family ipv4 unicast