BUG-2714 OVSDB needs to be more proactive in reporting errors with underlying OVS... 62/39762/2
authorvinoth <m.vinoth@hcl.com>
Thu, 2 Jun 2016 17:25:27 +0000 (22:55 +0530)
committerVinothkumar <m.vinoth@hcl.com>
Thu, 2 Jun 2016 12:30:44 +0000 (12:30 +0000)
 * Logging an error message if br-int interface is not available while creating a network.
 * More discussion details with community can be found in below link,
   https://lists.opendaylight.org/pipermail/ovsdb-dev/2016-May/003206.html

Change-Id: Ic1f9cbbe77c4b5f51724c8efec52bfa9860ab6b4
Signed-off-by: vinoth <m.vinoth@hcl.com>
openstack/net-virt/src/main/java/org/opendaylight/netvirt/openstack/netvirt/impl/SecurityServicesImpl.java

index 7f5f96f0aa5c7aa985412faea0f3e62bdd62b2c3..3ccdf8bdada2166feca4faacbaa88a5112c2b439 100644 (file)
@@ -580,6 +580,9 @@ public class SecurityServicesImpl implements ConfigInterface, SecurityServicesMa
         for (Node topologyNode : toplogyNodes) {
             try {
                 Node node = southbound.getBridgeNode(topologyNode,Constants.INTEGRATION_BRIDGE);
+                if (node == null) {
+                    LOG.error("getNode: br-int interface is not found for node:{}", topologyNode.getNodeId().getValue());
+                }
                 List<OvsdbTerminationPointAugmentation> ovsdbPorts = southbound.getTerminationPointsOfBridge(node);
                 for (OvsdbTerminationPointAugmentation ovsdbPort : ovsdbPorts) {
                     String uuid = southbound.getInterfaceExternalIdsValue(ovsdbPort,