summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-10-25 03:03:18 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-10-25 03:03:18 +0200
commitb45d8ccc3280677dae5dda773f158a4b3c5e597e (patch)
tree89e004b4e44a20715df547c33a667f3055da2b26
parentMerge pull request #3222 from srimohans/community (diff)
downloadfrr-b45d8ccc3280677dae5dda773f158a4b3c5e597e.tar.xz
frr-b45d8ccc3280677dae5dda773f158a4b3c5e597e.zip
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 <sharpd@cumulusnetworks.com>
-rw-r--r--lib/command.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/command.c b/lib/command.c
index 839c37b10..127e1a0a0 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);