delete uni command
[unimgr.git] / impl / src / main / java / org / opendaylight / unimgr / command / UniDeleteCommand.java
index 2308cbd29400e60b8624c1fe2ee08b9860f2b2e9..9dab51f58386777ee3cc7c2761bbdf3ee054420e 100644 (file)
@@ -56,9 +56,8 @@ public class UniDeleteCommand extends AbstractDeleteCommand {
                                                    bridgeIid,
                                                    LogicalDatastoreType.CONFIGURATION);
                     }
-                    UnimgrUtils.deleteNode(dataBroker,
-                                           removedUniIid,
-                                           LogicalDatastoreType.OPERATIONAL);
+                    InstanceIdentifier<Node> iidUni = UnimgrMapper.getUniIid(dataBroker, uniAugmentation.getIpAddress(), LogicalDatastoreType.OPERATIONAL);
+                    UnimgrUtils.deleteNode(dataBroker, iidUni, LogicalDatastoreType.OPERATIONAL);
                 }
                 else {
                     LOG.info("Received Uni Augmentation is null", removedUniIid);