]> git.puffer.fish Git - matthieu/frr.git/commit
lib: use flag from new libyang version to simplify the code
authorRenato Westphal <renato@opensourcerouting.org>
Sat, 13 Apr 2019 00:38:57 +0000 (21:38 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 2 Jul 2019 14:32:06 +0000 (11:32 -0300)
commitdfe2273849bcf693ea1c56be4e89456a21a9a526
tree75b4f47b86fdbf9f27cc444dc7116e4033d86e71
parent716ffcc8fe63dcbe054ed1436ac3b47705e96d13
lib: use flag from new libyang version to simplify the code

When using the LYD_PATH_OPT_NOPARENTRET flag, lyd_new_path() returns
the path-referenced node instead of the first created node. This
flag wasn't available in libyang 0.16-r1 so we couldn't use it
before. Use it now to simplify the code where possible.

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