Merge pull request #3237 from donaldsharp/actual_error

lib: If command was successful don't store the command as an error
This commit is contained in:
David Lamparter 2018-10-26 22:21:44 +02:00 committed by GitHub
commit 93f1d85c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);