summaryrefslogtreecommitdiffstats
path: root/staticd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-09-07 13:01:19 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-09-07 13:01:19 +0200
commite60b527e66e18acd5b8dc625324628bef35fa778 (patch)
tree6b828afb388d59483c776b7a4b35a59ee2cf8390 /staticd
parentMerge pull request #2959 from opensourcerouting/bfd-cleanup (diff)
downloadfrr-e60b527e66e18acd5b8dc625324628bef35fa778.tar.xz
frr-e60b527e66e18acd5b8dc625324628bef35fa778.zip
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'staticd')
-rw-r--r--staticd/static_vty.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/staticd/static_vty.c b/staticd/static_vty.c
index 771d8d1de..b323612d7 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;