]> git.proxmox.com Git - mirror_frr.git/commitdiff
vty: use 'do' for show memory and show modules
authorMark Stapp <mjs@voltanet.io>
Thu, 19 Apr 2018 18:00:04 +0000 (14:00 -0400)
committerMark Stapp <mjs@voltanet.io>
Tue, 24 Apr 2018 19:47:33 +0000 (15:47 -0400)
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>
vtysh/vtysh.c

index 50d6ee45899a732bae394e645475a97bc9158226..6754ec0855276f4714964c6c280a638478bc85c9 100644 (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");
 }