]> git.proxmox.com Git - mirror_frr.git/commit - lib/yang.c
lib: make yang_dnode_get_entry() more flexible
authorRenato Westphal <renato@opensourcerouting.org>
Sun, 25 Nov 2018 16:41:38 +0000 (14:41 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 26 Nov 2018 17:53:15 +0000 (15:53 -0200)
commit25c780a32a0de196688b3f08e82e6a56d7b49b2f
treedd5b8b0e087a70b21d6472140d5688791efae177
parent3f662078965405c6363dcecc2cc43c658c108229
lib: make yang_dnode_get_entry() more flexible

Add the "abort_if_not_found" parameter to the yang_dnode_get_entry()
function instead of always aborting when an user pointer is not
found.  This will make it possible, for example, to use this function
during the validation phase of a configuration transaction. Callers
will only need to check if the function returned NULL or not,
since new configuration objects (if any) won't be created until
the NB_EV_APPLY phase of the transaction.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/if.c
lib/yang.c
lib/yang.h
ripd/rip_northbound.c