Yang schema mount: repaired yanglib statedata mountpoint

Example: patch to fix "dual xpath" issue
This commit is contained in:
Olof hagsand 2023-02-07 17:12:52 +01:00
parent 8699af97fb
commit 8f7ae33262
5 changed files with 31 additions and 10 deletions

View file

@ -202,7 +202,7 @@ xml_yang_mount_set(cxobj *x,
(yu = yang_find(y, Y_UNKNOWN, "yangmnt:mount-point")) == NULL){
goto done;
}
if (xml2xpath(x, NULL, 0, &xpath) < 0)
if (xml2xpath(x, NULL, 1, &xpath) < 0)
goto done;
if ((cvv = yang_cvec_get(yu)) != NULL &&
(cv = cvec_find(cvv, xpath)) != NULL &&