[YANGTOOLS-1170] Add ItemOrder.{Ordered,Unordered} concept Created: 13/Nov/20 Updated: 10/Apr/22 Resolved: 04/Dec/20 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.0.0, 6.0.2 |
| Type: | New Feature | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
YANG defines distinct equality classes based on whether order of items is significant. This is typically expressed via 'ordered-by' statement. Our NormalizedNode model does not correctly capture this property, leading to ill-defined equality contract where MapNode and LeafSetNode are involved. Define a general ItemOrder construct with two subclasses, Ordered and Unordered, which capture this contract. These need to be mutally-exclusive similar to Mutable/Immutable contract. |