summaryrefslogtreecommitdiffstats
path: root/sharpd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2018-09-08 17:38:48 +0200
committerGitHub <noreply@github.com>2018-09-08 17:38:48 +0200
commit6317894ef3c5f5a21cca00c3a851f13b2d81541b (patch)
tree7ee39a09dca1c8d7551e55c2941a95d78f054db2 /sharpd
parentMerge pull request #2988 from donaldsharp/more_debugs (diff)
parentsharpd: Fix missing 'show debug' command (diff)
downloadfrr-6317894ef3c5f5a21cca00c3a851f13b2d81541b.tar.xz
frr-6317894ef3c5f5a21cca00c3a851f13b2d81541b.zip
Merge pull request #2989 from donaldsharp/static_debug
Static debug
Diffstat (limited to 'sharpd')
-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 9462eb575..797e336c2 100644
--- a/sharpd/sharp_vty.c
+++ b/sharpd/sharp_vty.c
@@ -191,6 +191,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);
@@ -198,5 +210,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;
}