network elements change apply to all EP 40/41640/4
authorMatej Perina <matej.perina@pantheon.sk>
Mon, 11 Jul 2016 09:30:52 +0000 (11:30 +0200)
committerMatej Perina <matej.perina@pantheon.sk>
Mon, 18 Jul 2016 08:48:01 +0000 (08:48 +0000)
Change-Id: I89dbabbb08104c8684aacd5f3c3ee29b5b912324
Signed-off-by: Matej Perina <matej.perina@pantheon.sk>
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) {