]> 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)
committerChristian Hopps <chopps@labn.net>
Fri, 14 Feb 2025 18:14:30 +0000 (18:14 +0000)
commitd03ecf4562ef3ade6b7b83bf6c683c4741f395ba
treec98c21a9d07c6168c6702c8d0787a51d9ee77bf7
parentbaf4c1a78fe4cafdbb2cdbed030a31ea04a18c4a
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>
lib/keychain_nb.c
lib/northbound.c
lib/northbound.h