diff options
Diffstat (limited to 'lib/yang.c')
| -rw-r--r-- | lib/yang.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/yang.c b/lib/yang.c index 6b797ffde3..e426b3af3e 100644 --- a/lib/yang.c +++ b/lib/yang.c @@ -195,7 +195,8 @@ next: return YANG_ITER_CONTINUE; LY_TREE_FOR (snode->child, child) { - if (child->parent != snode) + if (!CHECK_FLAG(flags, YANG_ITER_ALLOW_AUGMENTATIONS) + && child->parent != snode) continue; ret = yang_snodes_iterate_subtree(child, cb, flags, arg); |
