[YANGTOOLS-1014] Add DataTreeCandidates.aggregate() method Created: 06/Aug/19  Updated: 10/Apr/22  Resolved: 12/May/20

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.2

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Tadey Bilan
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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

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