summaryrefslogtreecommitdiffstats
path: root/watchfrr
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2017-09-20 17:34:50 +0200
committerDaniel Walton <dwalton@cumulusnetworks.com>2017-09-20 17:34:50 +0200
commitdff13b6fb707208da05878942d93c00fb55fae8a (patch)
tree1c1659a5b4548439c1e0d16b54a23d7c14883490 /watchfrr
parentbgpd: change debug_bgp_bestpath_prefix to DEFUN (diff)
downloadfrr-dff13b6fb707208da05878942d93c00fb55fae8a.tar.xz
frr-dff13b6fb707208da05878942d93c00fb55fae8a.zip
*: watchfrr needs 'show debugging' DEFUN
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> This fixes the following cel-redxp-10# show debugging Debugging Information for zebra: Zebra debugging status: Debugging Information for bgpd: BGP debugging status: Debugging Information for watchfrr: % Command incomplete. % Command incomplete. cel-redxp-10#
Diffstat (limited to 'watchfrr')
-rw-r--r--watchfrr/watchfrr_vty.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/watchfrr/watchfrr_vty.c b/watchfrr/watchfrr_vty.c
index 9cfdab44a..1f872c91f 100644
--- a/watchfrr/watchfrr_vty.c
+++ b/watchfrr/watchfrr_vty.c
@@ -101,6 +101,16 @@ DEFUN(config_write_integrated,
exit(1);
}
+DEFUN_NOSH (show_debugging_watchfrr,
+ show_debugging_watchfrr_cmd,
+ "show debugging [watchfrr]",
+ SHOW_STR
+ DEBUG_STR
+ WATCHFRR_STR)
+{
+ return CMD_SUCCESS;
+}
+
void integrated_write_sigchld(int status)
{
uint8_t reply[4] = {0, 0, 0, CMD_WARNING};
@@ -134,4 +144,6 @@ void watchfrr_vty_init(void)
{
integrated_write_pid = -1;
install_element(ENABLE_NODE, &config_write_integrated_cmd);
+ install_element(ENABLE_NODE, &show_debugging_watchfrr_cmd);
+ install_element(CONFIG_NODE, &show_debugging_watchfrr_cmd);
}