]> git.puffer.fish Git - mirror/frr.git/commit
lib: fix yang_dnode_dup
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 24 Jan 2024 20:26:47 +0000 (22:26 +0200)
committerIgor Ryzhov <iryzhov@nfware.com>
Sun, 28 Jan 2024 21:28:40 +0000 (23:28 +0200)
commitfe76036002c65428c189849b578d30a3a4c179a2
treecea5de3155a5af1dd7b8118877df0efe4ea20822
parent741d1d009042222c59b71db27ead08387cbe8cb0
lib: fix yang_dnode_dup

When duplicating nodes, we should always keep flags, especially the
LYD_NEW flag that indicates not validated data. This allows to select a
new choice's case without the need to explicitly remove the existing one.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
lib/yang.c