bgpd: Change default long-lived graceful restart stale timer to 0 seconds

That means the feature is off by default.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
Donatas Abraitis 2021-12-23 14:23:48 +02:00
parent 1479ed2fb3
commit 7f8a9a24a9
3 changed files with 7 additions and 4 deletions

View File

@ -3163,7 +3163,8 @@ DEFUN (no_bgp_graceful_restart_rib_stale_time,
}
DEFUN(bgp_llgr_stalepath_time, bgp_llgr_stalepath_time_cmd,
"bgp long-lived-graceful-restart stale-time (0-4294967295)", BGP_STR
"bgp long-lived-graceful-restart stale-time (1-4294967295)",
BGP_STR
"Enable Long-lived Graceful Restart\n"
"Specifies maximum time to wait before purging long-lived stale routes\n"
"Stale time value (seconds)\n")
@ -3179,7 +3180,7 @@ DEFUN(bgp_llgr_stalepath_time, bgp_llgr_stalepath_time_cmd,
}
DEFUN(no_bgp_llgr_stalepath_time, no_bgp_llgr_stalepath_time_cmd,
"no bgp long-lived-graceful-restart stale-time [(0-4294967295)]",
"no bgp long-lived-graceful-restart stale-time [(1-4294967295)]",
NO_STR BGP_STR
"Enable Long-lived Graceful Restart\n"
"Specifies maximum time to wait before purging long-lived stale routes\n"

View File

@ -1885,7 +1885,7 @@ struct bgp_nlri {
#define BGP_DEFAULT_UPDATE_ADVERTISEMENT_TIME 1
/* BGP Long-lived Graceful Restart */
#define BGP_DEFAULT_LLGR_STALE_TIME 360
#define BGP_DEFAULT_LLGR_STALE_TIME 0
/* BGP uptime string length. */
#define BGP_UPTIME_LEN 25

View File

@ -995,11 +995,13 @@ Long-lived Graceful Restart
Currently, only restarter mode is supported. This capability is advertised only
if graceful restart capability is negotiated.
.. clicmd:: bgp long-lived-graceful-restart stale-time (0-4294967295)
.. clicmd:: bgp long-lived-graceful-restart stale-time (1-4294967295)
Specifies the maximum time to wait before purging long-lived stale routes for
helper routers.
Default is 0, which means the feature is off by default. Only graceful
restart takes into account.
.. _bgp-shutdown: