summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-08-21 14:34:31 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-08-21 14:41:02 +0200
commit40818cec851ee74be69a461db5bb14ace67f784b (patch)
tree65a063b14cc9c82df942918d31bc62d7b062959d /vtysh
parentzebra: put pseudowire show cmd under mpls (diff)
downloadfrr-40818cec851ee74be69a461db5bb14ace67f784b.tar.xz
frr-40818cec851ee74be69a461db5bb14ace67f784b.zip
lib: move hashstats under debug, show per-daemon
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r--vtysh/vtysh.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 70c644247..85cbcae4d 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -1925,6 +1925,18 @@ DEFUN (vtysh_show_debugging,
"Debugging Information for %s:\n");
}
+DEFUN (vtysh_show_debugging_hashtable,
+ vtysh_show_debugging_hashtable_cmd,
+ "show debugging hashtable [statistics]",
+ SHOW_STR
+ DEBUG_STR
+ "Statistics about hash tables\n"
+ "Statistics about hash tables\n")
+{
+ return show_per_daemon("do show debugging hashtable\n",
+ "Hashtable statistics for %s:\n");
+}
+
/* Memory */
DEFUN (vtysh_show_memory,
vtysh_show_memory_cmd,
@@ -3233,6 +3245,7 @@ void vtysh_init_vty(void)
#endif
install_element(VIEW_NODE, &vtysh_show_debugging_cmd);
+ install_element(VIEW_NODE, &vtysh_show_debugging_hashtable_cmd);
install_element(VIEW_NODE, &vtysh_show_memory_cmd);
install_element(VIEW_NODE, &vtysh_show_modules_cmd);