Merge "network elements change apply to all EP"
authorMartin Sunal <msunal@cisco.com>
Tue, 19 Jul 2016 10:53:13 +0000 (10:53 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 19 Jul 2016 10:53:13 +0000 (10:53 +0000)
location-providers/ne-location-provider/src/main/java/org/opendaylight/groupbasedpolicy/ne/location/provider/NeLocationProvider.java

index 04a8ea526b83b60edaae6283df5e98800214fcf6..e0b6c29bd235e8b6619471f7c0e4d80f5bf24aba 100644 (file)
@@ -383,9 +383,9 @@ public class NeLocationProvider implements DataTreeChangeListener<NetworkElement
                     .child(AbsoluteLocation.class);
                 wtx.put(LogicalDatastoreType.CONFIGURATION, iid, createRealLocation(nodeIID, connectorIID), true);
                 LOG.debug("New location created for endpoint {}", endpoint);
-                return;
             }
         }
+        return;
     }
 
     private void processDeletedEN(EndpointNetwork en, WriteTransaction wtx) {
@@ -400,9 +400,9 @@ public class NeLocationProvider implements DataTreeChangeListener<NetworkElement
                     .child(AbsoluteLocation.class);
                 wtx.delete(LogicalDatastoreType.CONFIGURATION, iid);
                 LOG.debug("Location deleted for endpoint {}", endpoint);
-                return;
             }
         }
+        return;
     }
 
     private AbsoluteLocation createRealLocation(InstanceIdentifier<?> node, String iface) {