]> git.puffer.fish Git - mirror/frr.git/commitdiff
*: watchfrr needs 'show debugging' DEFUN
authorDaniel Walton <dwalton@cumulusnetworks.com>
Wed, 20 Sep 2017 15:34:50 +0000 (19:34 +0400)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Wed, 20 Sep 2017 15:34:50 +0000 (19:34 +0400)
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#

lib/command.h
watchfrr/watchfrr_vty.c

index 1c6938523ccffd33699bc2d096d8da080084a768..8cccb62de33c59fa9a11bbec8fca10882ed570b1 100644 (file)
@@ -357,6 +357,7 @@ struct cmd_node {
 #define OSPF_RI_STR "OSPF Router Information specific commands\n"
 #define PCE_STR "PCE Router Information specific commands\n"
 #define MPLS_STR "MPLS information\n"
+#define WATCHFRR_STR "watchfrr information\n"
 
 #define CONF_BACKUP_EXT ".sav"
 
index 9cfdab44abe919ee2460bce7334a5674176be2b0..1f872c91ff08f796905d1d84ca52beb12d8bc810 100644 (file)
@@ -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);
 }