Revert "Newcomers that register with TopologyManager should get all the existing... 18/1618/2
authorGiovanni Meo <gmeo@cisco.com>
Wed, 2 Oct 2013 19:33:49 +0000 (19:33 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 2 Oct 2013 19:48:28 +0000 (19:48 +0000)
This reverts commit 72fae1984afe741a93435269545f0346671cf305.

Reverting because it has some cascaded effects.

Change-Id: Iba8490a80ee2343d4875b1a2c5e17da7713099ee
Signed-off-by: Giovanni Meo <gmeo@cisco.com>
opendaylight/topologymanager/implementation/src/main/java/org/opendaylight/controller/topologymanager/internal/TopologyManagerImpl.java

index 5a38ecd4a61db131623b1e56efef7849bbba2800..b905a8982e83113e10b23261ab2d3045f1142c54 100644 (file)
@@ -20,7 +20,6 @@ import java.util.Iterator;
 import java.util.LinkedList;
 import java.util.List;
 import java.util.Map;
-import java.util.Map.Entry;
 import java.util.Set;
 import java.util.concurrent.BlockingQueue;
 import java.util.concurrent.ConcurrentHashMap;
@@ -116,14 +115,6 @@ public class TopologyManagerImpl implements
         if (this.topologyManagerAware != null) {
             log.debug("Adding ITopologyManagerAware: {}", s);
             this.topologyManagerAware.add(s);
-            // Reply all the known edges
-            if (this.edgesDB != null) {
-                List<TopoEdgeUpdate> existingEdges = new ArrayList<TopoEdgeUpdate>();
-                for (Entry<Edge, Set<Property>> entry : this.edgesDB.entrySet()) {
-                    existingEdges.add(new TopoEdgeUpdate(entry.getKey(), entry.getValue(), UpdateType.ADDED));
-                }
-                s.edgeUpdate(existingEdges);
-            }
         }
     }
 
@@ -138,14 +129,6 @@ public class TopologyManagerImpl implements
         if (this.topologyManagerClusterWideAware != null) {
             log.debug("Adding ITopologyManagerClusterWideAware: {}", s);
             this.topologyManagerClusterWideAware.add(s);
-            // Reply all the known edges
-            if (this.edgesDB != null) {
-                List<TopoEdgeUpdate> existingEdges = new ArrayList<TopoEdgeUpdate>();
-                for (Entry<Edge, Set<Property>> entry : this.edgesDB.entrySet()) {
-                    existingEdges.add(new TopoEdgeUpdate(entry.getKey(), entry.getValue(), UpdateType.ADDED));
-                }
-                s.edgeUpdate(existingEdges);
-            }
         }
     }