Skip to content

Commit 1f98ca3

Browse files
committed
resolve BUGFIX detect unresolved augment also in non-implemented modules
Fixes #395
1 parent 34f04ae commit 1f98ca3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/resolve.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6264,9 +6264,9 @@ check_leafref_features(struct lys_type *type)
62646264
if (iter->nodetype & (LYS_INPUT | LYS_OUTPUT)) {
62656265
continue;
62666266
}
6267-
if (iter->parent && (iter->parent->nodetype == LYS_AUGMENT) && lys_node_module(iter->parent)->implemented) {
6267+
if (iter->parent && (iter->parent->nodetype == LYS_AUGMENT)) {
62686268
aug = (struct lys_node_augment *)iter->parent;
6269-
if ((aug->flags & LYS_NOTAPPLIED) || !aug->target) {
6269+
if ((aug->module->implemented && (aug->flags & LYS_NOTAPPLIED)) || !aug->target) {
62706270
/* unresolved augment, wait until it's resolved */
62716271
ret = EXIT_FAILURE;
62726272
goto cleanup;
@@ -6279,9 +6279,9 @@ check_leafref_features(struct lys_type *type)
62796279
if (iter->nodetype & (LYS_INPUT | LYS_OUTPUT)) {
62806280
continue;
62816281
}
6282-
if (iter->parent && (iter->parent->nodetype == LYS_AUGMENT) && lys_node_module(iter->parent)->implemented) {
6282+
if (iter->parent && (iter->parent->nodetype == LYS_AUGMENT)) {
62836283
aug = (struct lys_node_augment *)iter->parent;
6284-
if ((aug->flags & LYS_NOTAPPLIED) || !aug->target) {
6284+
if ((aug->module->implemented && (aug->flags & LYS_NOTAPPLIED)) || !aug->target) {
62856285
/* unresolved augment, wait until it's resolved */
62866286
ret = EXIT_FAILURE;
62876287
goto cleanup;

0 commit comments

Comments
 (0)