Added new log function: clicon_log_xml() for logging XML tree
This commit is contained in:
parent
2ca1c1292c
commit
ea8c84a372
9 changed files with 79 additions and 26 deletions
|
|
@ -983,6 +983,11 @@ netconf_trymerge(cxobj *x,
|
|||
char *reason = NULL;
|
||||
cxobj *xc;
|
||||
|
||||
if (*xret == NULL){
|
||||
if ((*xret = xml_dup(x)) == NULL)
|
||||
goto done;
|
||||
goto ok;
|
||||
}
|
||||
if (xml_merge(*xret, x, yspec, &reason) < 0)
|
||||
goto done;
|
||||
if (reason){
|
||||
|
|
@ -993,6 +998,7 @@ netconf_trymerge(cxobj *x,
|
|||
retval = 1;
|
||||
goto done;
|
||||
}
|
||||
ok:
|
||||
retval = 0;
|
||||
done:
|
||||
if (reason)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue