From: Donald Sharp Date: Fri, 7 Sep 2018 11:01:19 +0000 (-0400) Subject: staticd: Fix 'show debug static" command X-Git-Tag: frr-7.1-dev~386^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e60b527e66e18acd5b8dc625324628bef35fa778;p=mirror%2Ffrr.git staticd: Fix 'show debug static" command 'show debugging' is returning a Command incomplete error message as that it is being sent to staticd and staticd has no knowledge of it, fix this. Signed-off-by: Donald Sharp --- diff --git a/staticd/static_vty.c b/staticd/static_vty.c index 771d8d1de3..b323612d7e 100644 --- a/staticd/static_vty.c +++ b/staticd/static_vty.c @@ -1390,6 +1390,18 @@ DEFPY(ipv6_route_vrf, table_str); } +DEFUN_NOSH (show_debugging_staticd, + show_debugging_staticd_cmd, + "show debugging [static]", + SHOW_STR + DEBUG_STR + "Static Information\n") +{ + vty_out(vty, "Static debugging status\n"); + + return CMD_SUCCESS; +} + void static_vty_init(void) { install_element(CONFIG_NODE, &ip_mroute_dist_cmd); @@ -1408,6 +1420,8 @@ void static_vty_init(void) install_element(CONFIG_NODE, &ipv6_route_cmd); install_element(VRF_NODE, &ipv6_route_vrf_cmd); + install_element(VIEW_NODE, &show_debugging_staticd_cmd); + static_list = list_new(); static_list->cmp = (int (*)(void *, void *))static_list_compare; static_list->del = (void (*)(void *))static_list_delete;