summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_router.c
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2024-06-27 00:49:45 +0200
committerPooja Jagadeesh Doijode <pdoijode@nvidia.com>2024-07-01 22:02:52 +0200
commitb5682ffbf0051b54af972e6da4c3319adb7a292f (patch)
tree4f7fb645a2c5a980150ee0b0b6474578b25cc49f /zebra/zebra_router.c
parenttests: Updated topotest and documentation (diff)
downloadfrr-b5682ffbf0051b54af972e6da4c3319adb7a292f.tar.xz
frr-b5682ffbf0051b54af972e6da4c3319adb7a292f.zip
*: Add and use option for graceful (re)start
Add a new start option "-K" to libfrr to denote a graceful start, and use it in zebra and bgpd. zebra will use this option to denote a planned FRR graceful restart (supporting only bgpd currently) to wait for a route sync completion from bgpd before cleaning up old stale routes from the FIB. An optional timer provides an upper-bounds for this cleanup. bgpd will use this option to denote either a planned FRR graceful restart or a bgpd-only graceful restart, and this will drive the BGP GR restarting router procedures. Signed-off-by: Vivek Venkatraman <vivek@nvidia.com>
Diffstat (limited to 'zebra/zebra_router.c')
-rw-r--r--zebra/zebra_router.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_router.c b/zebra/zebra_router.c
index 3fd4e6eb1..8d6b2f347 100644
--- a/zebra/zebra_router.c
+++ b/zebra/zebra_router.c
@@ -238,7 +238,7 @@ void zebra_router_terminate(void)
{
struct zebra_router_table *zrt, *tmp;
- EVENT_OFF(zrouter.sweeper);
+ EVENT_OFF(zrouter.t_rib_sweep);
RB_FOREACH_SAFE (zrt, zebra_router_table_head, &zrouter.tables, tmp)
zebra_router_free_table(zrt);