]> git.proxmox.com Git - mirror_frr.git/commit - lib/northbound.c
lib: fix a couple of yang validation issues
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 5 Apr 2019 01:28:00 +0000 (22:28 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 2 Jul 2019 01:56:52 +0000 (22:56 -0300)
commitcd327983bd840e954ce46364b1ff18b73c2bb69f
tree4b567b7f84b84b97aebb1958b4d92b127bc8fd67
parenta123bd4ad623418528442e967cc5412915e3d37b
lib: fix a couple of yang validation issues

libyang-0.16-r3 contains a commit[1] that changed the autodelete
behavior of subtrees when validating data. A few FRR commands were
affected by this change since they relied on the old autodelete
behavior.

To fix these commands, use the LYD_OPT_WHENAUTODEL flag when
validating data to restore the old autodelete behavior (which adds
a lot of convenience for us).

[1] https://github.com/CESNET/libyang/commit/bbc43b1b4

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