Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* this kernel must support them.
*/
supports_nh = true;
-
if (IS_ZEBRA_DEBUG_KERNEL || IS_ZEBRA_DEBUG_NHG)
zlog_debug("Nexthop objects %ssupported on this kernel",
supports_nh ? "" : "not ");
+ zebra_router_set_supports_nhgs(supports_nh);
+
return ret;
}
*/
bool asic_offloaded;
bool notify_on_ack;
+
+ bool supports_nhgs;
};
#define GRACEFUL_RESTART_TIME 60
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;
else
vty_out(vty, "Asic offload is not being used\n");
+ vty_out(vty, "Kernel %ssupport Nexthop Groups\n",
+ zrouter.supports_nhgs ? "does " : "does not ");
+
vty_out(vty,
" Route Route Neighbor LSP LSP\n");
vty_out(vty,