]> git.puffer.fish Git - matthieu/frr.git/commit
lib: nb: call child destroy CBs when YANG container is deleted
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:45 +0000 (02:37 +0000)
commit3c08c6fe28e2345999cdeb3c8cba2ac8903faa8b
tree02122a352a3d0d7a3bb57d7c7a102d612cd4d6af
parent33ed0a3315682382cfbac4a6b3ff4f18b67f69d1
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