diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2018-11-13 23:36:48 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2018-11-26 20:38:08 +0100 |
commit | 544ca69a5cc7da81ad2f9f72110b34ee03b7cc44 (patch) | |
tree | 84daae9c8863af8bffae0ef910fbcc5f6f5f65f6 /lib/yang.c | |
parent | lib: rework the yang schema node iteration functions (diff) | |
download | frr-544ca69a5cc7da81ad2f9f72110b34ee03b7cc44.tar.xz frr-544ca69a5cc7da81ad2f9f72110b34ee03b7cc44.zip |
lib: add support for YANG lists with mixed config and state data
A YANG list that contains both configuration and state data must have
the following callbacks: create(), delete(), get_next(), get_keys()
and lookup_entry().
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
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 6b797ffde..e426b3af3 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); |