Creator tagging for leafs, sort-modules: remove flag setting, yang_lib2yspec patch
This commit is contained in:
parent
6335f810d3
commit
f8324df917
5 changed files with 14 additions and 11 deletions
|
|
@ -695,6 +695,10 @@ text_modify(clicon_handle h,
|
|||
xml_flag_reset(x0, XML_FLAG_DEFAULT);
|
||||
}
|
||||
} /* x1bstr */
|
||||
if (creator){
|
||||
if (xml_creator_add(x0, creator) < 0)
|
||||
goto done;
|
||||
}
|
||||
if (changed){
|
||||
if (xml_insert(x0p, x0, insert, valstr, NULL) < 0)
|
||||
goto done;
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@
|
|||
#include "clixon_yang_parse_lib.h"
|
||||
|
||||
/*! Force add ietf-yang-library@2019-01-04 on all mount-points
|
||||
* This is a limitation of othe current implementation
|
||||
* This is a limitation of of the current implementation
|
||||
*/
|
||||
#define YANG_SCHEMA_MOUNT_YANG_LIB_FORCE
|
||||
|
||||
|
|
@ -883,9 +883,12 @@ yang_lib2yspec(clicon_handle h,
|
|||
}
|
||||
else if (yang_parse_module(h, "ietf-yang-library", "2019-01-04", yspec, NULL) < 0)
|
||||
goto fail;
|
||||
#endif
|
||||
if (yang_parse_post(h, yspec, 0) < 0)
|
||||
if (yang_parse_post(h, yspec, yang_len_get(yspec) - (1+veclen - modmin)) < 0)
|
||||
goto done;
|
||||
#else
|
||||
if (yang_parse_post(h, yspec, yang_len_get(yspec) - (veclen - modmin)) < 0)
|
||||
goto done;
|
||||
#endif
|
||||
retval = 1;
|
||||
done:
|
||||
if (vec)
|
||||
|
|
|
|||
|
|
@ -1433,11 +1433,6 @@ yang_sort_modules(yang_stmt *yspec,
|
|||
if (*ylen != modmax-modmin){
|
||||
clicon_err(OE_YANG, EFAULT, "Internal error: mismatch sort vector lengths");
|
||||
}
|
||||
/* Unmark all nodes */
|
||||
for (i=modmin; i<modmax; i++){
|
||||
yn = yang_child_i(yspec, i);
|
||||
yang_flag_set(yn, YANG_FLAG_MARK|YANG_FLAG_TMP);
|
||||
}
|
||||
retval = 0;
|
||||
done:
|
||||
return retval;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue