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 the sch_add_defaults routine. #144

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

gcampbell512
Copy link
Contributor

A new routine "sch_process_qnode" has been added to better find a point in the query tree to add defaults. This fixes two issues:- 1) where the input qnode may not have been the actual node to try to add defaults to. This happens in netconf where a list key is often present but not the correct node to add defaults to. 2) where the qnode is the index node of a list. In this case both the qnode and schema need to be appropriately adjusted.

By adding the defaults more accurately, the routine cleanup_query_after_adding_defaults was no longer required.

A new routine "sch_process_qnode" has been added to better find a
point in the query tree to add defaults. This fixes two issues:-
1) where the input qnode may not have been the actual node to try to
add defaults to. This happens in netconf where a list key is often
present but not the correct node to add defaults to. 2) where the
qnode is the index node of a list. In this case both the qnode and
schema need to be appropriately adjusted.

By adding the defaults more accurately, the routine
cleanup_query_after_adding_defaults was no longer required.
@carlgsmith carlgsmith merged commit c224884 into alliedtelesis:master Dec 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