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

Add DataTreeCandidates.aggregate() method

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 5.0.2
    • None
    • None

      MD-SAL has context where it has a list of DataTreeCandidate objects which form a set of changes, but it really needs to forward only the effective delta, i.e. a single DataTreeCandidate.

      Add DataTreeCandidates.aggregate(List<DataTreeCandidate> candidates) method, which will create a new DataTreeCandidate node, having following properties:

      • dataBefore matches the first candidate's dataBefore
      • dataAfter matches the last candidate's dataAfter
      • reported change tree is an accurate aggregate of the changes between the before and after state

            TadeyBilan Tadey Bilan
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: