summaryrefslogtreecommitdiff
path: root/zebra/zebra_router.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-06-15 19:54:29 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-06-16 14:47:19 -0400
commitc9af62e314893d8d3bdb7b3fcd91249e8e401064 (patch)
tree78d3c876b18a142f9b19df3bb4564d350261e61d /zebra/zebra_router.h
parent35729f38fa5713b923782ca9921c893bb8d3bc25 (diff)
zebra: Add a configurable knob `zebra nexthop-group keep (1-3600)`
Allow end operator to set how long a nexthop-group is kept around in the system after it is no-longer being used. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_router.h')
-rw-r--r--zebra/zebra_router.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zebra_router.h b/zebra/zebra_router.h
index 7aca91959c..c96c8e5f46 100644
--- a/zebra/zebra_router.h
+++ b/zebra/zebra_router.h
@@ -219,6 +219,9 @@ struct zebra_router {
bool notify_on_ack;
bool supports_nhgs;
+
+#define ZEBRA_DEFAULT_NHG_KEEP_TIMER 180
+ uint32_t nhg_keep;
};
#define GRACEFUL_RESTART_TIME 60