summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_vty.c4
-rw-r--r--doc/user/bgp.rst11
-rw-r--r--tests/topotests/bgp_llgr/r0/bgpd.conf2
-rw-r--r--tests/topotests/bgp_llgr/r1/bgpd.conf2
4 files changed, 15 insertions, 4 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 2581714f31..e3340985c4 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -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"
diff --git a/doc/user/bgp.rst b/doc/user/bgp.rst
index dfd865bf33..c647d69999 100644
--- a/doc/user/bgp.rst
+++ b/doc/user/bgp.rst
@@ -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
diff --git a/tests/topotests/bgp_llgr/r0/bgpd.conf b/tests/topotests/bgp_llgr/r0/bgpd.conf
index 8ca5f5575b..d93ee193bc 100644
--- a/tests/topotests/bgp_llgr/r0/bgpd.conf
+++ b/tests/topotests/bgp_llgr/r0/bgpd.conf
@@ -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
diff --git a/tests/topotests/bgp_llgr/r1/bgpd.conf b/tests/topotests/bgp_llgr/r1/bgpd.conf
index 9b19cc62ad..f8c9877730 100644
--- a/tests/topotests/bgp_llgr/r1/bgpd.conf
+++ b/tests/topotests/bgp_llgr/r1/bgpd.conf
@@ -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