File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments