summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-08-18 18:50:13 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-08-21 13:23:59 +0200
commit87f6dc504d5d227ea66a4da37b350c2fc3df212b (patch)
tree5a90641311ecdff313ed6de66b7b1efb7949df2f /vtysh
parentvtysh: Convert 'show logging' to use helper function. (diff)
downloadfrr-87f6dc504d5d227ea66a4da37b350c2fc3df212b.tar.xz
frr-87f6dc504d5d227ea66a4da37b350c2fc3df212b.zip
*: Add 'show debugging' command from vtysh
Allow vtysh to query every daemon about its debugging status in one go. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/vtysh.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 0c3cb27c1..379dbf21b 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -1914,6 +1914,16 @@ static int show_per_daemon(const char *line, const char *headline)
return ret;
}
+DEFUN (vtysh_show_debugging,
+ vtysh_show_debugging_cmd,
+ "show debugging",
+ SHOW_STR
+ DEBUG_STR)
+{
+ return show_per_daemon("do show debugging\n",
+ "Debugging Information for %s:\n");
+}
+
/* Memory */
DEFUN (vtysh_show_memory,
vtysh_show_memory_cmd,
@@ -1921,7 +1931,8 @@ DEFUN (vtysh_show_memory,
SHOW_STR
"Memory statistics\n")
{
- return show_per_daemon("show memory\n", "Memory statistics for %s:\n");
+ return show_per_daemon("show memory\n",
+ "Memory statistics for %s:\n");
}
DEFUN (vtysh_show_modules,
@@ -3220,6 +3231,7 @@ void vtysh_init_vty(void)
install_element(ENABLE_NODE, &vtysh_start_zsh_cmd);
#endif
+ install_element(VIEW_NODE, &vtysh_show_debugging_cmd);
install_element(VIEW_NODE, &vtysh_show_memory_cmd);
install_element(VIEW_NODE, &vtysh_show_modules_cmd);