]> git.proxmox.com Git - mirror_frr.git/commitdiff
vtysh: "Command incomplete: log syslog"
authorDaniel Walton <dwalton@cumulusnetworks.com>
Mon, 24 Apr 2017 18:22:29 +0000 (18:22 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Mon, 24 Apr 2017 18:22:29 +0000 (18:22 +0000)
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Before
======
root@spine-1[~]# cat /etc/frr/frr.conf
no log monitor
!
service integrated-vtysh-config
!
log syslog
!
log syslog informational
!
line vty
!
root@spine-1[~]#
root@spine-1[~]# vtysh -m -f /etc/frr/frr.conf
no log monitor
!
service integrated-vtysh-config
!
line 5: % Command incomplete: log syslog

root@spine-1[~]#

After
=====
root@spine-1[~]# vtysh -m -f /etc/frr/frr.conf
no log monitor
!
service integrated-vtysh-config
!
log syslog
!
log syslog informational
!
line vty
!
end
root@spine-1[~]#

vtysh/vtysh.c

index d0038ea3cf30bcaf507a2588cd385d8f2d614006..74f865b6135f852da442194f37dd040d22d18ecf 100644 (file)
@@ -2165,7 +2165,7 @@ DEFUNSH (VTYSH_ALL,
 DEFUNSH (VTYSH_ALL,
         vtysh_log_syslog,
         vtysh_log_syslog_cmd,
-        "log syslog <emergencies|alerts|critical|errors|warnings|notifications|informational|debugging>",
+        "log syslog [<emergencies|alerts|critical|errors|warnings|notifications|informational|debugging>]",
         "Logging control\n"
         "Set syslog logging level\n"
          LOG_LEVEL_DESC)