vty: use 'do' for show memory and show modules

show mem and show modules won't work in config modes without
passing 'do' to other running daemons.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
Mark Stapp 2018-04-19 14:00:04 -04:00
parent 8a87a46d7f
commit d991a3ea84

View File

@ -2162,7 +2162,7 @@ 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("do show memory\n", "Memory statistics for %s:\n");
}
DEFUN (vtysh_show_modules,
@ -2171,7 +2171,7 @@ DEFUN (vtysh_show_modules,
SHOW_STR
"Loaded modules\n")
{
return show_per_daemon("show modules\n",
return show_per_daemon("do show modules\n",
"Module information for %s:\n");
}