summaryrefslogtreecommitdiffstats
path: root/babeld
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-08-18 18:50:13 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-08-21 13:23:59 +0200
commit87f6dc504d5d227ea66a4da37b350c2fc3df212b (patch)
tree5a90641311ecdff313ed6de66b7b1efb7949df2f /babeld
parentvtysh: Convert 'show logging' to use helper function. (diff)
downloadfrr-87f6dc504d5d227ea66a4da37b350c2fc3df212b.tar.xz
frr-87f6dc504d5d227ea66a4da37b350c2fc3df212b.zip
*: Add 'show debugging' command from vtysh
Allow vtysh to query every daemon about its debugging status in one go. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'babeld')
-rw-r--r--babeld/babel_zebra.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/babeld/babel_zebra.c b/babeld/babel_zebra.c
index 11b9c5956..2ec5c3d7c 100644
--- a/babeld/babel_zebra.c
+++ b/babeld/babel_zebra.c
@@ -310,6 +310,20 @@ debug_babel_config_write (struct vty * vty)
#endif /* NO_DEBUG */
}
+DEFUN_NOSH (show_debugging_babel,
+ show_debugging_babel_cmd,
+ "show debugging [babel]",
+ SHOW_STR
+ DEBUG_STR
+ "Babel")
+{
+ vty_out(vty, "BABEL debugging status\n");
+
+ debug_babel_config_write(vty);
+
+ return CMD_SUCCESS;
+}
+
static void
babel_zebra_connected (struct zclient *zclient)
{
@@ -339,6 +353,8 @@ void babelz_zebra_init(void)
install_element(ENABLE_NODE, &no_debug_babel_cmd);
install_element(CONFIG_NODE, &debug_babel_cmd);
install_element(CONFIG_NODE, &no_debug_babel_cmd);
+
+ install_element(VIEW_NODE, &show_debugging_babel_cmd);
}
static int