Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-820

Update mdsal-binding-dom-{codec,adapter} to deal with AugmentationNode being removed

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: High High
    • 12.0.0
    • None
    • Binding runtime

      YANGTOOLS-568 is removing AugmentationIdentifier and AugmentationNode, i.e. now augmented nodes are direct children of their parent container. This means that the NormalizedNode layout does not mirror the Binding layout anymore – and therefore the Binding/DOM adaptation layer needs to be updated.

      Update mdsal-binding-dom-codec to properly split an incoming NormalizedNode into its component augmentations (in the NormalizedNode->Binding direction) and assemble them back (in the Binding->NormalizedNode direction). This requires some thought around how AugmentationNodeContext really works: we certainly cannot provide DataContainerCodecPrototype.yangArg() as there is no AugmentationIdentifier anymore.

      Update mdsal-binding-dom-adapter's DataBroker adaptor to deal with read/merge/put operations involving InstanceIdentifiers ending with an augmentation class: these are not directly mappable to DOMDataBroker operations and need to be adapted. For example read() means read the parent and filter out only the children which are part of the requested augmentation. A put() means put()ing all present leaves and deleting all leaves that are part of the augmentation schema, but are missing in the provided augmentation data.

            rkashapov Ruslan Kashapov
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: