* Fixed: Restconf failed put/post could leave residue in candidate causing errors in next put/post
* Added -v option for backend plugins to generate validation error
This commit is contained in:
parent
a61bdffbab
commit
27bb0a1d2b
6 changed files with 79 additions and 31 deletions
|
|
@ -669,9 +669,9 @@ from_client_edit_config(clicon_handle h,
|
|||
/* If autocommit option is set or requested by client */
|
||||
if (clicon_autocommit(h) || autocommit) {
|
||||
if ((ret = candidate_commit(h, "candidate", cbret)) < 0){ /* Assume validation fail, nofatal */
|
||||
if (ret < 0)
|
||||
if (netconf_operation_failed(cbret, "application", clicon_err_reason)< 0)
|
||||
goto done;
|
||||
if (netconf_operation_failed(cbret, "application", clicon_err_reason)< 0)
|
||||
goto done;
|
||||
xmldb_copy(h, "running", "candidate");
|
||||
goto ok;
|
||||
}
|
||||
if (ret == 0){ /* discard */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue