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:
parent
8732d118dd
commit
b13917b2ac
6 changed files with 15 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue