vtysh: add "show memory" for a single daemon

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
Igor Ryzhov 2021-04-08 18:47:43 +03:00
parent 9d78be6aac
commit f09e0369f6

View File

@ -2932,10 +2932,15 @@ DEFUN (vtysh_show_history,
/* Memory */
DEFUN (vtysh_show_memory,
vtysh_show_memory_cmd,
"show memory",
"show memory [" DAEMONS_LIST "]",
SHOW_STR
"Memory statistics\n")
"Memory statistics\n"
DAEMONS_STR)
{
if (argc == 3)
return show_one_daemon(vty, argv, argc - 1,
argv[argc - 1]->text);
return show_per_daemon(vty, argv, argc, "Memory statistics for %s:\n");
}