* xml_merge() changed to use 3-value return: 1:OK, 0:Yang failed, -1: Error
* `clixon_netconf_error(category, xerr, msg, arg)` removed first argument -> `clixon_netconf_error(xerr, msg, arg)` * Renamed utility function `clixon_util_insert()` to `clixon_util_xml_mod()` and added merge functionality. * Fixed: Insertion of subtree leaf nodes were not made in the crrect place, always ended up last regardless of yang spec (if ordered-by system).
This commit is contained in:
parent
f401c07c4b
commit
0d4263e324
16 changed files with 376 additions and 274 deletions
|
|
@ -1172,12 +1172,13 @@ xml_find(cxobj *xp,
|
|||
* @see xml_wrap
|
||||
* @see xml_insert
|
||||
* @note xc is not sorted correctly, need to call xml_sort on parent
|
||||
* @see xml_insert which is a higher layer function including yang and sorting
|
||||
*/
|
||||
int
|
||||
xml_addsub(cxobj *xp,
|
||||
cxobj *xc)
|
||||
{
|
||||
int retval = -1;
|
||||
int retval = -1;
|
||||
cxobj *oldp;
|
||||
int i;
|
||||
char *pns = NULL; /* parent namespace */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue