[CONTROLLER-241] Topology data change event does not provide link removal data Created: 28/Mar/14  Updated: 19/Oct/17  Resolved: 08/Apr/14

Status: Resolved
Project: controller
Component/s: mdsal
Affects Version/s: 0.4.0
Fix Version/s: None

Type: Bug
Reporter: Harman Singh Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Mac OS
Platform: PC


Issue Links:
Duplicate
duplicates CONTROLLER-220 DataChange even is inconsistent with ... Resolved
External issue ID: 605

 Description   

I am trying to listen to MD-SAL topology changes, specifically creation and removal of links.

I register my listener for Links like following -

dataService.registerDataChangeListener(
InstanceIdentifier.builder(NetworkTopology.class).child(Topology.class, new TopologyKey(new TopologyId("flow:1")))
.child(Link.class).toInstance(), new TopologyListener());

Where my TopologyListener class, which implements DataChangeListener looks like following -

public class TopologyListener implements DataChangeListener{

@Override
public void onDataChanged(
DataChangeEvent<InstanceIdentifier<?>, DataObject> change)

{ Map<InstanceIdentifier<?>, DataObject> linkCreated = change.getCreatedOperationalData(); Set<InstanceIdentifier<?>> linkRemoved = change.getRemovedOperationalData(); }

Now, when a link is removed, change.getRemovedOperationalData() does not have data, its empty Set.

It should have removed link data



 Comments   
Comment by Tony Tkacik [ 02/Apr/14 ]

Are you able to see the link in restconf after removal?

Comment by Harman Singh [ 02/Apr/14 ]

No, link is not present in topology restconf. Its just the data change event, does not give removed link information

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