]> git.puffer.fish Git - mirror/frr.git/commit
lib: nb: call child destroy CBs when YANG container is deleted 18192/head
authorChristian Hopps <chopps@labn.net>
Tue, 11 Feb 2025 07:12:06 +0000 (07:12 +0000)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 18 Feb 2025 02:37:59 +0000 (02:37 +0000)
commit9bd9d4a6f7f7283d562f7e612952788ed345650d
tree9ad387dcffbc46ae280eadf5157373a677527195
parent2f10852e162625b65697d8d63652a0f98f15b21e
lib: nb: call child destroy CBs when YANG container is deleted

Previously the code was only calling the child destroy callbacks if the target
deleted node was a non-presence container. We now add a flag to the callback
structure to instruct northbound to perform the rescursive delete for code that
wishes for this to happen.

- Fix wrong relative path lookup in keychain destroy callback

Signed-off-by: Christian Hopps <chopps@labn.net>
(cherry picked from commit d03ecf4562ef3ade6b7b83bf6c683c4741f395ba)
lib/keychain_nb.c
lib/northbound.c
lib/northbound.h