From: Donald Sharp Date: Thu, 25 Oct 2018 01:03:18 +0000 (-0400) Subject: lib: If command was successful don't store the command as an error X-Git-Tag: frr-7.1-dev~239^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=b45d8ccc3280677dae5dda773f158a4b3c5e597e;p=matthieu%2Ffrr.git lib: If command was successful don't store the command as an error The CMD_SUCCESS_DAEMON case should be excluded from storing the command line that we think failed. Signed-off-by: Donald Sharp --- diff --git a/lib/command.c b/lib/command.c index 839c37b102..127e1a0a0a 100644 --- a/lib/command.c +++ b/lib/command.c @@ -1323,7 +1323,9 @@ int command_config_read_one_line(struct vty *vty, } } - if (ret != CMD_SUCCESS && ret != CMD_WARNING) { + if (ret != CMD_SUCCESS && + ret != CMD_WARNING && + ret != CMD_SUCCESS_DAEMON) { struct vty_error *ve = XCALLOC(MTYPE_TMP, sizeof(*ve)); memcpy(ve->error_buf, vty->buf, VTY_BUFSIZ);