]> git.puffer.fish Git - mirror/frr.git/commitdiff
vtysh: fix "no log facility" command 5037/head
authorIgor Ryzhov <iryzhov@nfware.com>
Mon, 23 Sep 2019 16:01:58 +0000 (19:01 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Mon, 23 Sep 2019 16:43:25 +0000 (19:43 +0300)
Actual command from the library accepts only supported facilities, not
any random word.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
vtysh/vtysh.c

index a762e9555caf871aa03dda75c757c9b2d7a28c2e..5f7b8ddc8e2e209152e24fcb84b904082813c214 100644 (file)
@@ -2548,10 +2548,11 @@ DEFUNSH(VTYSH_ALL, vtysh_log_facility, vtysh_log_facility_cmd,
 }
 
 DEFUNSH(VTYSH_ALL, no_vtysh_log_facility, no_vtysh_log_facility_cmd,
-       "no log facility [FACILITY]", NO_STR
+       "no log facility [<kern|user|mail|daemon|auth|syslog|lpr|news|uucp|cron|local0|local1|local2|local3|local4|local5|local6|local7>]",
+       NO_STR
        "Logging control\n"
        "Reset syslog facility to default (daemon)\n"
-       "Syslog facility\n")
+       LOG_FACILITY_DESC)
 {
        return CMD_SUCCESS;
 }