[YANGTOOLS-832] Add instance-identifier and leaf-reference native types Created: 14/Nov/17 Updated: 10/Apr/22 Resolved: 26/Oct/21 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
We need a bridge between yang-model-api and yang-data-api where types are concerned. Specifically, we need to map TypeDefinitiion.getDefaultValue() to native types, as expected by yang-data-api. We can generalize YangInstanceIdentifier, but its deficiencies must be fixed first:
More impact/tradeoff analysis is required. |
| Comments |
| Comment by Robert Varga [ 27/Aug/18 ] |
|
With |
| Comment by Robert Varga [ 26/Oct/21 ] |
|
While this issue is older, DataNodeIdentifier solves the instance-identifier part, as it has exactly the same semantics as we need – it operates on data tree addressing and is the counterpart to SchemaNodeIdentifier. YANG parser understands both schema and data trees, hence it will have little trouble with it. DataNodeFilter solves the leaf-reference part, as it is a superset of leaf-reference can address without bringing any of the XPath complexities to the table. |