From 72f3cf2421324d9282addb7a880784b7ee05de0c Mon Sep 17 00:00:00 2001 From: Giovanni Meo Date: Wed, 2 Oct 2013 19:33:49 +0000 Subject: [PATCH] Revert "Newcomers that register with TopologyManager should get all the existing edges" This reverts commit 72fae1984afe741a93435269545f0346671cf305. Reverting because it has some cascaded effects. Change-Id: Iba8490a80ee2343d4875b1a2c5e17da7713099ee Signed-off-by: Giovanni Meo --- .../internal/TopologyManagerImpl.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/opendaylight/topologymanager/implementation/src/main/java/org/opendaylight/controller/topologymanager/internal/TopologyManagerImpl.java b/opendaylight/topologymanager/implementation/src/main/java/org/opendaylight/controller/topologymanager/internal/TopologyManagerImpl.java index 5a38ecd4a6..b905a8982e 100644 --- a/opendaylight/topologymanager/implementation/src/main/java/org/opendaylight/controller/topologymanager/internal/TopologyManagerImpl.java +++ b/opendaylight/topologymanager/implementation/src/main/java/org/opendaylight/controller/topologymanager/internal/TopologyManagerImpl.java @@ -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 existingEdges = new ArrayList(); - for (Entry> 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 existingEdges = new ArrayList(); - for (Entry> entry : this.edgesDB.entrySet()) { - existingEdges.add(new TopoEdgeUpdate(entry.getKey(), entry.getValue(), UpdateType.ADDED)); - } - s.edgeUpdate(existingEdges); - } } } -- 2.36.6