Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-241

Topology data change event does not provide link removal data

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • 0.4.0
    • None
    • mdsal
    • None
    • Operating System: Mac OS
      Platform: PC

    • 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

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Unassigned Unassigned
              harmasin@cisco.com Harman Singh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: