[YANGTOOLS-972] YANG parser should bind leaf-instantiated leafref paths Created: 25/Mar/19  Updated: 05/Jan/24

Status: Confirmed
Project: yangtools
Component/s: parser
Affects Version/s: None
Fix Version/s: 14.0.0

Type: New Feature Priority: Medium
Reporter: Robert Varga Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
blocks YANGTOOLS-973 YANG parser should validate leafref p... Confirmed

 Description   

Since YANGTOOLS-969 introduced support for parsing leafref path expressions, this support is not complete, as it does not perform binding of unqualified QNames when a leaf is completely instantiated.

As a first step, we should recognize when we are parsing the argument value in an instantiated-leaf case and perform full binding.

As the second step, we should hook onto StatementSupport.adaptArgumentValue() and intercept the case when leaves from groupings are landing in their final instantiation. This may require some trickery, as type statements are reused when they are copied.

The third step, which is probably related to the second one, is how to validate typedef references when they are used in leaves.

Finally we need to define how binding relates to LeafrefTypeDefinition, as currently we do not have an avenue how to update an the path expression and our users are doing dirty tricks to parse them out.


Generated at Wed Feb 07 20:54:50 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.