Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-511

Data Tree: Enforce 'mandatory true' leaf presence

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    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.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              martin.ciglan Martin Ciglan
              rovarga Robert Varga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: