mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 23:53:28 +00:00
vtysh: add "show memory" for a single daemon
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
9d78be6aac
commit
f09e0369f6
@ -2932,10 +2932,15 @@ DEFUN (vtysh_show_history,
|
|||||||
/* Memory */
|
/* Memory */
|
||||||
DEFUN (vtysh_show_memory,
|
DEFUN (vtysh_show_memory,
|
||||||
vtysh_show_memory_cmd,
|
vtysh_show_memory_cmd,
|
||||||
"show memory",
|
"show memory [" DAEMONS_LIST "]",
|
||||||
SHOW_STR
|
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");
|
return show_per_daemon(vty, argv, argc, "Memory statistics for %s:\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user