Call ys_populate_feature from if_feature_check

In some cases, the feature won't be populated yet, and therefore, we
will consider this feature as disabled.

Fixes #429
This commit is contained in:
Shmuel Hazan 2023-04-30 17:19:40 +03:00
parent 8732d118dd
commit b13917b2ac
6 changed files with 15 additions and 5 deletions

View file

@ -1986,7 +1986,7 @@ ys_parse_sub(yang_stmt *ys,
* pass 1 is not yet resolved, only check syntax, actual feature check made in next pass
* @see yang_features
*/
if (yang_subparse(yang_argument_get(ys), ys, YA_IF_FEATURE, filename, yang_linenum_get(ys), NULL) < 0)
if (yang_subparse(yang_argument_get(ys), ys, YA_IF_FEATURE, filename, yang_linenum_get(ys), NULL, NULL) < 0)
goto done;
break;
case Y_AUGMENT: /* If parent is module/submodule: absolute-schema-nodeid