]> git.puffer.fish Git - mirror/frr.git/commitdiff
vtysh: fix various show commands 747/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 21 Jun 2017 18:42:17 +0000 (18:42 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 21 Jun 2017 18:42:17 +0000 (18:42 +0000)
need 'do' to force ENABLE_NODE

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
vtysh/vtysh.c

index 76c7702fa0a83ca2cc753da635da3f07103726f9..91f0b3bea62c0d50a1d3f970e4814b0d5dcb87fc 100644 (file)
@@ -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");