[YANGTOOLS-511] Data Tree: Enforce 'mandatory true' leaf presence Created: 24/Sep/15 Updated: 10/Apr/22 Due: 13/Jan/16 Resolved: 11/Jan/16 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Robert Varga | Assignee: | Martin Ciglan |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Issue Links: |
|
||||||||||||
| Description |
|
RFC6020 defines the conditions under which a leaf marked as mandatory needs to be present in https://tools.ietf.org/html/rfc6020#section-7.6.5. This enforcement should be part of the DataTree.prepare() phase and should validate the resulting tree. Since prepare() cannot be performed concurrently and mandatory leaves are not common, we need to maintain a cache of children paths which must be present under a particular NormalizedNodeContainer. The cache should be global and weakly-keyed on SchemaNode. |
| Comments |
| Comment by Robert Varga [ 22/Oct/15 ] |
| Comment by Peter Kajsa [ 25/Nov/15 ] |
|
Yangtools: https://git.opendaylight.org/gerrit/#/c/29929/ |
| Comment by Peter Kajsa [ 02/Dec/15 ] |
|
Patch https://git.opendaylight.org/gerrit/#/c/29929/ has been merged into two previos commits: https://git.opendaylight.org/gerrit/#/c/28666/ Controller quickfix: https://git.opendaylight.org/gerrit/#/c/30197/ |