-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib: nb: call child destroy CBs when YANG container is deleted #18082
lib: nb: call child destroy CBs when YANG container is deleted #18082
Conversation
While it should work and convenient for the developers, it can be very suboptimal. For example, you have a staticd I would at least test the time difference for this scenario as it can be really huge. Maybe it makes sense to make recursive deletion optional, to use in cases where thousands of child nodes are not expected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a comment above that should be at least discussed before merging this.
1d54f5d
to
abcb177
Compare
abcb177
to
be33c2d
Compare
a8b32e2
to
707c547
Compare
Looks fine with an optional flag. Not approving yet because the PR is in draft state.
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>
707c547
to
d03ecf4
Compare
@Mergifyio backport dev/10.3 stable/10.2 |
✅ Backports have been created
|
lib: nb: call child destroy CBs when YANG container is deleted (backport #18082)
lib: nb: call child destroy CBs when YANG container is deleted (backport #18082)
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.