diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2018-11-13 20:36:48 -0200 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2018-11-26 17:38:08 -0200 |
| commit | 544ca69a5cc7da81ad2f9f72110b34ee03b7cc44 (patch) | |
| tree | 84daae9c8863af8bffae0ef910fbcc5f6f5f65f6 /lib/yang.c | |
| parent | e0ccfad220d80c1d02b327fd0ee24faf6a8d2bd4 (diff) | |
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 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); |
