From: Igor Ryzhov Date: Thu, 8 Apr 2021 15:47:43 +0000 (+0300) Subject: vtysh: add "show memory" for a single daemon X-Git-Tag: base_8.0~165^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=f09e0369f6c90377183f3a0c2e08d7f1e0b1e65f;p=mirror%2Ffrr.git vtysh: add "show memory" for a single daemon Signed-off-by: Igor Ryzhov --- diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 3764188292..931eb91593 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -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"); }