[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
Platform: All


Issue Links:
Blocks
is blocked by BGPCEP-331 Openconfig mandatory descendant missing Resolved
is blocked by YANGTOOLS-553 Yang parser does not determine config... Resolved

 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 ]

https://git.opendaylight.org/gerrit/28666

Comment by Peter Kajsa [ 25/Nov/15 ]

Yangtools: https://git.opendaylight.org/gerrit/#/c/29929/
Controller quickfix: https://git.opendaylight.org/gerrit/#/c/30197/

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/
https://git.opendaylight.org/gerrit/#/c/28712/

Controller quickfix: https://git.opendaylight.org/gerrit/#/c/30197/

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