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

Fix issues with "with-defaults" #140

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

gcampbell512
Copy link
Contributor

The netconf code for processing "with-defaults" has been aligned to be similar to the existing restconf code. In particular netconf is now only passing the part of the tree that needs to have the "with-defaults" modifications made to it.

A new routine has been added to detect if a query is only for leaf fields. In that case when "with-defaults" is set to report-all, there is no need to check if we need to add additional defaults.

Adding "with-defaults" "report-all" defaults is complex. A new routine
has been added ("sch_add_defaults") to handle the complexity.

Both the restconf and netconf code for processing "with-defaults" has
been changed to use the new routine in other commits.

The routine sch_traverse_tree has been simplified as it no longer requires
the depth parameter to handle special netconf trees.
@carlgsmith carlgsmith merged commit b107386 into alliedtelesis:master Nov 12, 2024
1 check passed
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