]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Change default long-lived graceful restart stale timer to 0 seconds
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Thu, 23 Dec 2021 12:23:48 +0000 (14:23 +0200)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Tue, 28 Dec 2021 14:08:00 +0000 (16:08 +0200)
That means the feature is off by default.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
bgpd/bgp_vty.c
bgpd/bgpd.h
doc/user/bgp.rst

index 8a63030181a045343a251e083d0bcd460d286ad0..2581714f3173863d5e48fa4a74b8208c0e6df4c8 100644 (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"
index 2fcebe69d5d20775e78680735312986516b0d9eb..c9dd1a8ea126d795bed387d64d773d6b6ff2f186 100644 (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
index 4115146e5589dc48a9cf076b3ed2569715c839a2..dfd865bf33b2d6c6de6964363363ce9de741c6f8 100644 (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: