[MDSAL-840] Fix instance-identifier mapping Created: 21/Oct/23  Updated: 13/Jan/24

Status: Confirmed
Project: mdsal
Component/s: Binding codegen, Binding runtime, Binding Spec
Affects Version/s: None
Fix Version/s: 14.0.0

Type: Improvement Priority: Highest
Reporter: Robert Varga Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

We currently map YANG's instance-identifier to yang.binding.InstanceIdentifier. Unfortunately InstanceIdentifier is not able to represent all valid instance-identifiers, as it cannot address leaf nodes.

Design a replacement for InstanceIdentifier, BindingInstanceIdentifier, which will have two basic specializations:

  • BindingDataObjectIdentifier, which is essentially InstanceIdentifier, but does not allow wildcards
  • BindingValueIdentifier, which extends InstanceIdentifier with the last leaf step, in the form of a accessor

This latter mirrors how we identify leaf values in Binding Query, so there is a precedent.


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