Added new log function: clicon_log_xml() for logging XML tree

This commit is contained in:
Olof hagsand 2019-02-13 11:35:49 +01:00
parent 2ca1c1292c
commit ea8c84a372
9 changed files with 79 additions and 26 deletions

View file

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