summaryrefslogtreecommitdiffstats
path: root/lib/yang.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-11-13 23:36:48 +0100
committerRenato Westphal <renato@opensourcerouting.org>2018-11-26 20:38:08 +0100
commit544ca69a5cc7da81ad2f9f72110b34ee03b7cc44 (patch)
tree84daae9c8863af8bffae0ef910fbcc5f6f5f65f6 /lib/yang.h
parentlib: rework the yang schema node iteration functions (diff)
downloadfrr-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.h')
-rw-r--r--lib/yang.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/yang.h b/lib/yang.h
index 940f5d38e..2c18017af 100644
--- a/lib/yang.h
+++ b/lib/yang.h
@@ -98,6 +98,9 @@ enum yang_iter_flags {
/* Filter implicitely created nodes. */
YANG_ITER_FILTER_IMPLICIT = (1<<3),
+
+ /* Allow iteration over augmentations. */
+ YANG_ITER_ALLOW_AUGMENTATIONS = (1<<4),
};
/* Callback used by the yang_snodes_iterate_*() family of functions. */