From e60b527e66e18acd5b8dc625324628bef35fa778 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 7 Sep 2018 07:01:19 -0400 Subject: [PATCH] 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 --- staticd/static_vty.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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; -- 2.39.5