Fixed: [Openconfig configuration on Juniper MX does not work](https://github.com/clicon/clixon-controller/issues/20)

This commit is contained in:
Olof hagsand 2023-08-11 17:12:11 +02:00
parent 6d53603c55
commit 3b636b51f0
2 changed files with 7 additions and 2 deletions

View file

@ -179,8 +179,12 @@ ys_grouping_resolve(yang_stmt *yuses,
else {
ys = yuses; /* Check upwards in hierarchy for matching groupings */
while (1){
if ((yp = yang_parent_get(ys)) == NULL)
break;
if (ys->ys_mymodule){
yp = ys->ys_mymodule;
}
else
if ((yp = yang_parent_get(ys)) == NULL)
break;
if ((keyw = yang_keyword_get(yp)) == Y_SPEC)
break;
else if (keyw == Y_MODULE || keyw == Y_SUBMODULE){ /* Try submodules */