summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-09-07 07:05:35 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-09-07 07:05:35 -0400
commitaaf8c96fa90b264eb4f081ccbb22e4b1cffc6cab (patch)
tree365d4232e4b9ff66c024cf92ee2cd26195d41689
parente60b527e66e18acd5b8dc625324628bef35fa778 (diff)
sharpd: Fix missing 'show debug' command
The sharp daemon was not properly handling 'show debug' commands. Fix. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
-rw-r--r--sharpd/sharp_vty.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c
index 956da9d4ed..e9ca18c5df 100644
--- a/sharpd/sharp_vty.c
+++ b/sharpd/sharp_vty.c
@@ -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;
}