From ceec5a1033f3a62f77f8cd9141288bd624860bc3 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Mon, 23 Sep 2019 19:01:58 +0300 Subject: [PATCH] vtysh: fix "no log facility" command Actual command from the library accepts only supported facilities, not any random word. Signed-off-by: Igor Ryzhov --- vtysh/vtysh.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index a762e9555c..5f7b8ddc8e 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 []", + NO_STR "Logging control\n" "Reset syslog facility to default (daemon)\n" - "Syslog facility\n") + LOG_FACILITY_DESC) { return CMD_SUCCESS; } -- 2.39.5