summaryrefslogtreecommitdiffstats
path: root/vtysh/vtysh.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2019-09-23 18:01:58 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2019-09-23 18:43:25 +0200
commitb0c363801061c6fadf4701b7df0b33efce6a4a00 (patch)
tree118236c789dc1a0631c96edf67dadec548cc3c7d /vtysh/vtysh.c
parentMerge pull request #5031 from donaldsharp/ip_protocol_doc_update (diff)
downloadfrr-b0c363801061c6fadf4701b7df0b33efce6a4a00.tar.xz
frr-b0c363801061c6fadf4701b7df0b33efce6a4a00.zip
vtysh: fix "no log facility" command
Actual command from the library accepts only supported facilities, not any random word. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'vtysh/vtysh.c')
-rw-r--r--vtysh/vtysh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index a762e9555..5f7b8ddc8 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -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;
}