Bug 5077: Codes break the security rules
[nemo.git] / nemo-impl / src / main / java / org / opendaylight / nemo / intent / computation / VNComputationUnit.java
index dd3ed9876d0a5420fad6bc8ce031cdb50ee57aa2..b6da4d314bef66acf507637bf6b376ee29aa8c2c 100644 (file)
@@ -151,7 +151,6 @@ public class VNComputationUnit implements AutoCloseable {
 \r
         List<VirtualLink> virtualLinks = virtualNetwork.getVirtualLinks().getVirtualLink();\r
 \r
-\r
         for ( VirtualLink virtualLink : virtualLinks ) {\r
             routingAlgorithm.addEdge(new Edge(virtualLink));\r
         }\r
@@ -353,7 +352,12 @@ public class VNComputationUnit implements AutoCloseable {
 \r
             try {\r
                 result = readWriteTransaction.read(LogicalDatastoreType.CONFIGURATION, virtualRouteIid).get();\r
-            } catch ( InterruptedException | ExecutionException exception ) {\r
+            } catch ( InterruptedException exception ) {\r
+                LOG.error("Can not read the virtual route from the virtual node {} to {}.",\r
+                        route.getKey().getSrcNodeId().getValue(), route.getKey().getDestNodeId().getValue());\r
+\r
+                continue;\r
+            } catch ( ExecutionException exception ) {\r
                 LOG.error("Can not read the virtual route from the virtual node {} to {}.",\r
                         route.getKey().getSrcNodeId().getValue(), route.getKey().getDestNodeId().getValue());\r
 \r
@@ -442,7 +446,6 @@ public class VNComputationUnit implements AutoCloseable {
             Map<InstanceIdentifier<?>, DataObject> createdData = change.getCreatedData();\r
 \r
             if ( null != createdData && !createdData.isEmpty() ) {\r
-\r
                 boolean needRerouting = false;\r
 \r
                 for ( DataObject dataObject : createdData.values() ) {\r