]> git.proxmox.com Git - mirror_frr.git/commit - lib/northbound.c
lib: remove entire data tree on yang_dnode_free()
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 8 Nov 2018 04:18:38 +0000 (02:18 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 26 Nov 2018 19:35:58 +0000 (17:35 -0200)
commite5dc8a44ee9732dd32358b13dd52e59527e6835f
treeadcf02114f1efec6e7a738e4ce8cf0b5fad6e8b4
parentdb452508bf3d808a33b3fc04c946d8cc2939bbb7
lib: remove entire data tree on yang_dnode_free()

For convenience, make yang_dnode_free() remove the entire data tree and
not only the data node given as a parameter.

Also, add a null-pointer check on nb_config_replace() before calling
yang_dnode_free().

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/northbound.c
lib/yang.c