Topology misses host(s) if multiple hosts are found on the same port 27/4927/4
authorChi-Vien Ly <chivly@cisco.com>
Mon, 27 Jan 2014 19:35:54 +0000 (11:35 -0800)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 28 Jan 2014 20:56:51 +0000 (20:56 +0000)
Change-Id: Ief8afc9fc9dbdcc768b0fbdc8d4059fef6fd79a9
Signed-off-by: Chi-Vien Ly <chivly@cisco.com>
opendaylight/topologymanager/implementation/src/main/java/org/opendaylight/controller/topologymanager/internal/TopologyManagerImpl.java

index 3618547..cc1a8b8 100644 (file)
@@ -522,7 +522,7 @@ public class TopologyManagerImpl implements
     }
 
     @Override
-    public void updateHostLink(NodeConnector port, Host h, UpdateType t, Set<Property> props) {
+    public synchronized void updateHostLink(NodeConnector port, Host h, UpdateType t, Set<Property> props) {
 
         // Clone the property set in case non null else just
         // create an empty one. Caches allocated via infinispan