summaryrefslogtreecommitdiff
path: root/zebra/zebra_vty.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-02-04 08:04:23 -0500
committerDonald Sharp <sharpd@nvidia.com>2022-02-04 10:29:38 -0500
commit954e1a2bc963a98e757b187714a5bad2179dc028 (patch)
tree58bd466df8843560f77594568f247d4b03416f34 /zebra/zebra_vty.c
parent281686819da2ca61b9c347f3bf75f908cc6b8e52 (diff)
zebra: Add knowledge about RA and RFC 5549 to `show zebra`
Add to `show zebra` whether or not RA is compiled into FRR and whether or not BGP is using RFC 5549 at the moment. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_vty.c')
-rw-r--r--zebra/zebra_vty.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c
index ba0cb5c964..6726efe1df 100644
--- a/zebra/zebra_vty.c
+++ b/zebra/zebra_vty.c
@@ -61,6 +61,7 @@
#include "zebra/kernel_netlink.h"
#include "zebra/table_manager.h"
#include "zebra/zebra_script.h"
+#include "zebra/rtadv.h"
extern int allow_delete;
@@ -3994,6 +3995,14 @@ DEFUN (show_zebra,
else
vty_out(vty, "Asic offload is not being used\n");
+ if (rtadv_compiled_in()) {
+ vty_out(vty, "Router Advertisements are compiled with FRR\n");
+ if (rtadv_get_interfaces_configured_from_bgp())
+ vty_out(vty, "RFC 5549 is being used by BGP\n");
+ } else
+ vty_out(vty,
+ "Router Advertisements are not compiled with FRR\n");
+
vty_out(vty, "Kernel %ssupport Nexthop Groups\n",
zrouter.supports_nhgs ? "does " : "does not ");