]> git.puffer.fish Git - mirror/frr.git/commitdiff
sharpd: Fix missing 'show debug' command 2989/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 7 Sep 2018 11:05:35 +0000 (07:05 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 7 Sep 2018 11:05:35 +0000 (07:05 -0400)
The sharp daemon was not properly handling 'show debug'
commands.  Fix.

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

index 956da9d4edd44baa4b13a4bcae40432346d0f987..e9ca18c5df218cbb625898e7d003f9b1d24253a0 100644 (file)
@@ -185,6 +185,18 @@ DEFPY (remove_routes,
        return CMD_SUCCESS;
 }
 
+DEFUN_NOSH (show_debugging_sharpd,
+           show_debugging_sharpd_cmd,
+           "show debugging [sharp]",
+           SHOW_STR
+           DEBUG_STR
+           "Sharp Information\n")
+{
+       vty_out(vty, "Sharp debugging status\n");
+
+       return CMD_SUCCESS;
+}
+
 void sharp_vty_init(void)
 {
        install_element(ENABLE_NODE, &install_routes_cmd);
@@ -192,5 +204,8 @@ void sharp_vty_init(void)
        install_element(ENABLE_NODE, &vrf_label_cmd);
        install_element(ENABLE_NODE, &watch_nexthop_v6_cmd);
        install_element(ENABLE_NODE, &watch_nexthop_v4_cmd);
+
+       install_element(VIEW_NODE, &show_debugging_sharpd_cmd);
+
        return;
 }