* Fixed: YANG when was not properly implemented for LEAF default values

This commit is contained in:
Olof hagsand 2021-08-03 13:38:31 +02:00
parent 00645ee52b
commit 603f9724ce
4 changed files with 35 additions and 17 deletions

View file

@ -1247,7 +1247,7 @@ xml_yang_validate_all(clicon_handle h,
nsc = NULL;
}
}
if (yang_when_xpath(xt, xml_parent(xt), ys, &hit, &nr, &xpath) < 0)
if (yang_check_when_xpath(xt, xml_parent(xt), ys, &hit, &nr, &xpath) < 0)
goto done;
if (hit && nr == 0){
if ((cb = cbuf_new()) == NULL){