]> git.puffer.fish Git - mirror/frr.git/commitdiff
watchfrr: Add a empty 'show debug..' command 1249/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 26 Sep 2017 20:29:31 +0000 (16:29 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 26 Sep 2017 20:29:31 +0000 (16:29 -0400)
Allow watchfrr to silently ignore a 'show debug..' command
for the moment.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
watchfrr/watchfrr_vty.c

index 9cfdab44abe919ee2460bce7334a5674176be2b0..fd9c017512c6edf690ffe3417f8ba40793a5dc7e 100644 (file)
 pid_t integrated_write_pid;
 static int integrated_result_fd;
 
+DEFUN_NOSH(show_watchfrr_debugging,
+          show_watchfrr_debugging_cmd,
+          "show debugging [watchfrr]",
+          SHOW_STR
+          DEBUG_STR
+          "WatchFRR\n")
+{
+       return CMD_SUCCESS;
+}
+
 DEFUN(config_write_integrated,
       config_write_integrated_cmd,
       "write integrated",
@@ -134,4 +144,5 @@ void watchfrr_vty_init(void)
 {
        integrated_write_pid = -1;
        install_element(ENABLE_NODE, &config_write_integrated_cmd);
+       install_element(ENABLE_NODE, &show_watchfrr_debugging_cmd);
 }