yang load add test to not parse files if not already loaded
This commit is contained in:
parent
411a67f9d6
commit
48a7eac096
4 changed files with 36 additions and 10 deletions
|
|
@ -216,7 +216,9 @@ xml_yang_mount_set(cxobj *x,
|
|||
if ((cvv = yang_cvec_get(yu)) != NULL &&
|
||||
(cv = cvec_find(cvv, xpath)) != NULL &&
|
||||
(yspec0 = cv_void_get(cv)) != NULL){
|
||||
#if 0 /* Problematic to free yang specs here, upper layers should handle it? */
|
||||
ys_free(yspec0);
|
||||
#endif
|
||||
cv_void_set(cv, NULL);
|
||||
}
|
||||
else if ((cv = yang_cvec_add(yu, CGV_VOID, xpath)) == NULL)
|
||||
|
|
@ -247,7 +249,6 @@ xml_yang_mount_freeall(cvec *cvv)
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*! Find schema mounts - callback function for xml_apply
|
||||
*
|
||||
* @param[in] x XML node
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue