From: Donald Sharp Date: Fri, 7 Sep 2018 11:05:35 +0000 (-0400) Subject: sharpd: Fix missing 'show debug' command X-Git-Tag: frr-7.1-dev~386^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=aaf8c96fa90b264eb4f081ccbb22e4b1cffc6cab;p=mirror%2Ffrr.git sharpd: Fix missing 'show debug' command The sharp daemon was not properly handling 'show debug' commands. Fix. Signed-off-by: Donald Sharp --- 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; }