summaryrefslogtreecommitdiffstats
path: root/vtysh/vtysh.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-06-21 20:42:17 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-06-21 20:42:17 +0200
commitb2e266663b42d49aeaf8675684c4f438769a790c (patch)
treea65472ae6f0db8980ac8d0ac7ae036f7e41b65a8 /vtysh/vtysh.c
parentMerge pull request #745 from qlyoung/fix-lookup (diff)
downloadfrr-b2e266663b42d49aeaf8675684c4f438769a790c.tar.xz
frr-b2e266663b42d49aeaf8675684c4f438769a790c.zip
vtysh: fix various show commands
need 'do' to force ENABLE_NODE Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r--vtysh/vtysh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 76c7702fa..91f0b3bea 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -2061,7 +2061,7 @@ DEFUN (vtysh_show_work_queues,
{
unsigned int i;
int ret = CMD_SUCCESS;
- char line[] = "show work-queues\n";
+ char line[] = "do show work-queues\n";
for (i = 0; i < array_size(vtysh_client); i++)
if ( vtysh_client[i].fd >= 0 )
@@ -2171,7 +2171,7 @@ DEFUN (vtysh_show_logging,
{
unsigned int i;
int ret = CMD_SUCCESS;
- char line[] = "show logging\n";
+ char line[] = "do show logging\n";
for (i = 0; i < array_size(vtysh_client); i++)
if ( vtysh_client[i].fd >= 0 )
@@ -2487,7 +2487,7 @@ DEFUN (vtysh_write_terminal,
"For the pim daemon\n")
{
u_int i;
- char line[] = "write terminal\n";
+ char line[] = "do write terminal\n";
FILE *fp = NULL;
if (vtysh_pager_name)
@@ -2702,7 +2702,7 @@ DEFUN (vtysh_write_memory,
"Write configuration to the file (same as write memory)\n")
{
int ret = CMD_SUCCESS;
- char line[] = "write memory\n";
+ char line[] = "do write memory\n";
u_int i;
fprintf (stdout, "Note: this version of vtysh never writes vtysh.conf\n");