Transform YANG when expressions to canonical xpath form

This commit is contained in:
Olof hagsand 2024-08-21 21:55:14 +02:00
parent 71e921520e
commit 26ca872b0c
8 changed files with 262 additions and 87 deletions

View file

@ -2091,9 +2091,10 @@ yang_check_when_xpath(cxobj *xn,
int xmalloc = 0; /* ugly help variable to clean temporary object */
/* First variant */
if ((xpath = yang_when_xpath_get(yn)) != NULL){
if (yang_when_canonical_xpath_get(yn, &xpath, &nsc) < 0)
goto done;
if (xpath != NULL){
x = xp;
nsc = yang_when_nsc_get(yn);
*hit = 1;
}
/* Second variant */