[CONTROLLER-1243] Add DataObjectModification.getDataBefore() Created: 09/Apr/15  Updated: 10/Apr/15  Resolved: 10/Apr/15

Status: Resolved
Project: controller
Component/s: mdsal
Affects Version/s: Post-Helium
Fix Version/s: None

Type: Improvement
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All



 Description   

Not exposing the before-state requires users to track this state themselves. The problem is most visible in the delete case, if the user needs some attributes to reconstruct keys to other structures in order to perform cleanup – they would effectively have to retain a InstanceIdentifier->data map to efficiently perform deletes.

This ability already exists in DataChangeEvents, which DataObjectModification is aimed to replace. Rather than forcing everyone to duplicate data, expose the before-state, as best available.



 Comments   
Comment by Robert Varga [ 09/Apr/15 ]

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

Generated at Wed Feb 07 19:55:02 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.