]> git.proxmox.com Git - mirror_frr.git/commit - lib/northbound_sysrepo.c
lib: fix handling of deleted nodes in the sysrepo plugin
authorRenato Westphal <renato@opensourcerouting.org>
Sat, 12 Sep 2020 01:39:35 +0000 (22:39 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 15 Sep 2020 18:56:53 +0000 (15:56 -0300)
commit7dac19f7de94ab562d6075314ae3c0eb1604ba2f
treec6ca05ee75f84bd737bde47da21aa6d3f93d4ec4
parent88e635ee6397b93a3263dbe7951f637ae4936e39
lib: fix handling of deleted nodes in the sysrepo plugin

Make the sysrepo plugin ignore the deletion of configuration
nodes that don't exist anymore instead of logging an error and
rejecting the changes. This is necessary because Sysrepo delivers
delete notifications for all nodes of a deleted data tree instead
of delivering a single delete notification of the top-level subtree
node (which would suffice for the northbound layer).

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