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.h | |
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.h')
-rw-r--r-- | lib/yang.h | 3 |
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. */ |