summaryrefslogtreecommitdiff
path: root/zebra/zebra_router.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-01-22 07:53:24 -0500
committerDonald Sharp <sharpd@nvidia.com>2022-02-04 10:29:38 -0500
commit090ee85656f78b766a2dbe7bc3ed914305974aa9 (patch)
tree1bb6f738638ed330803246485de83b4a78a143c5 /zebra/zebra_router.h
parent1a97e35eb8027f14fc411d8df6145bd583afa9f5 (diff)
zebra: Add kernel nexthop group support to `show zebra`
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_router.h')
-rw-r--r--zebra/zebra_router.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/zebra/zebra_router.h b/zebra/zebra_router.h
index dd788216c7..dafe925c26 100644
--- a/zebra/zebra_router.h
+++ b/zebra/zebra_router.h
@@ -209,6 +209,8 @@ struct zebra_router {
*/
bool asic_offloaded;
bool notify_on_ack;
+
+ bool supports_nhgs;
};
#define GRACEFUL_RESTART_TIME 60
@@ -256,6 +258,11 @@ extern enum multicast_mode multicast_mode_ipv4_get(void);
extern bool zebra_router_notify_on_ack(void);
+static inline void zebra_router_set_supports_nhgs(bool support)
+{
+ zrouter.supports_nhgs = support;
+}
+
/* zebra_northbound.c */
extern const struct frr_yang_module_info frr_zebra_info;