Skip to content
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

Prevent deletion of RO leaf-lists #136

Merged
merged 1 commit into from
Oct 9, 2024
Merged

Conversation

carlgsmith
Copy link
Contributor

The checks that were in the leaf processing code need to also be in the leaf-list section. That is to check the access (rw) and also if the leaves are hidden.
If the leaf-list is ro and the user has asked to delete config-only then we also need to remove the leaves of the leaf-list from the tree otherwise we end up with a strange tree with what looks like values on the leaf-list list node.

The checks that were in the leaf processing code need
to also be in the leaf-list section. That is to check the
access (rw) and also if the leaves are hidden.
If the leaf-list is ro and the user has asked to delete
config-only then we also need to remove the leaves of the
leaf-list from the tree otherwise we end up with a strange
tree with what looks like values on the leaf-list list node.
@carlgsmith carlgsmith merged commit 1ecd80a into master Oct 9, 2024
1 check passed
@carlgsmith carlgsmith deleted the no_delete_ro_leaflist branch October 9, 2024 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants