Ensure termination points are correctly deleted
[unimgr.git] / impl / src / main / java / org / opendaylight / unimgr / command / UniCreateCommand.java
index 0ffa5d4b5687564245dcf178b211b53f44460dea..711841a4aaf6089312cb711969beb2fb87072771 100644 (file)
@@ -97,7 +97,12 @@ public class UniCreateCommand extends AbstractCreateCommand {
                     Node ovsdbNode;
                     if (optionalOvsdbNode.isPresent()) {
                         ovsdbNode = optionalOvsdbNode.get();
+                        InstanceIdentifier<Node> ovsdbIid = UnimgrMapper.getOvsdbNodeIid(ovsdbNode.getNodeId());
                         LOG.info("Retrieved the OVSDB node");
+                        UnimgrUtils.createBridgeNode(dataBroker,
+                                                     ovsdbIid,
+                                                     uni,
+                                                     UnimgrConstants.DEFAULT_BRIDGE_NAME);
                         UnimgrUtils.updateUniNode(LogicalDatastoreType.CONFIGURATION,
                                                   uniKey,
                                                   uni,