@Override public void delete(final LogicalDatastoreType store, final InstanceIdentifier<?> path) { delegate.delete(store, path); } }
private void deleteControllers(ReadWriteTransaction transaction, List<InstanceIdentifier<ControllerEntry>> controllerEntryIids) { for (InstanceIdentifier<ControllerEntry> controllerEntryIid: controllerEntryIids) { transaction.delete(LogicalDatastoreType.OPERATIONAL, controllerEntryIid); } }
private void deleteQos(ReadWriteTransaction transaction, List<InstanceIdentifier<QosEntries>> qosEntryIids) { for (InstanceIdentifier<QosEntries> qosEntryIid: qosEntryIids) { transaction.delete(LogicalDatastoreType.OPERATIONAL, qosEntryIid); } } }
private void deleteQueue(ReadWriteTransaction transaction, List<InstanceIdentifier<Queues>> queueIids) { for (InstanceIdentifier<Queues> queueIid: queueIids) { transaction.delete(LogicalDatastoreType.OPERATIONAL, queueIid); } } }
private void deleteManagers(ReadWriteTransaction transaction, List<InstanceIdentifier<ManagerEntry>> managerEntryIids) { for (InstanceIdentifier<ManagerEntry> managerEntryIid: managerEntryIids) { transaction.delete(LogicalDatastoreType.OPERATIONAL, managerEntryIid); } }
@Override public void applyOperation(ReadWriteTransaction tx) { tx.delete(LogicalDatastoreType.OPERATIONAL, hnIID); } });
@Override public void applyOperation(ReadWriteTransaction tx) { tx.delete(LogicalDatastoreType.OPERATIONAL, lIID); } });
private <T extends DataObject> void deleteEntries(ReadWriteTransaction transaction, List<InstanceIdentifier<T>> entryIids) { for (InstanceIdentifier<T> entryIid: entryIids) { transaction.delete(LogicalDatastoreType.OPERATIONAL, entryIid); } }
@Override public void applyOperation(ReadWriteTransaction tx) { tx.delete(LogicalDatastoreType.OPERATIONAL, lnIID); } });
@Override public void applyOperation( ReadWriteTransaction tx) { tx.delete(LogicalDatastoreType.OPERATIONAL, e.getKey()); } });
@Override public void applyOperation(ReadWriteTransaction tx) { tx.delete(LogicalDatastoreType.OPERATIONAL, e.getKey()); } });
@Override public Void apply(Optional<Table> optTable) { if (optTable.isPresent()) { rwTx.delete(LogicalDatastoreType.CONFIGURATION, tablePath); } return null; } });
@Override public void applyOperation(ReadWriteTransaction tx) { tx.delete(LogicalDatastoreType.OPERATIONAL, e.getKey()); } });
@Override public void applyOperation(ReadWriteTransaction tx) { tx.delete(LogicalDatastoreType.OPERATIONAL, e.getKey()); } });
@Override public void applyOperation(final ReadWriteTransaction transaction) { transaction.delete(LogicalDatastoreType.OPERATIONAL, iiToTopologyRemovedNode); TopologyManagerUtil.removeAffectedLinks(nodeId, transaction, II_TO_TOPOLOGY); } });
private void delete(ReadWriteTransaction readWriteTransaction) { try { readWriteTransaction.delete(LogicalDatastoreType.CONFIGURATION, VppIidFactory.getInterfaceIID(new InterfaceKey(name))); } catch (IllegalStateException ex) { LOG.debug("Interface is not present in DS {}", this, ex); } } }
public static <T extends DataObject> Optional<T> removeIfExists(InstanceIdentifier<T> path) { ReadWriteTransaction rwTx = UlnMapperDatastoreDependency.getDataProvider().newReadWriteTransaction(); Optional<T> potentialResult = readFromDs(path, rwTx); if (potentialResult.isPresent()) { rwTx.delete(logicalDatastoreType, path); submitToDs(rwTx); LOG.debug("Removed present path {}", path); } else { LOG.debug("No need to remove Path {} -- it is NOT present", path); } return potentialResult; }
@Override public void applyOperation(final ReadWriteTransaction tx) { final NodeConnectorRef ref = connector.getNodeConnectorRef(); LOG.debug("removing node connector {} ", ref.getValue()); tx.delete(LogicalDatastoreType.OPERATIONAL, ref.getValue()); } });
@Override public void applyOperation(final ReadWriteTransaction tx) { final NodeRef ref = node.getNodeRef(); LOG.debug("removing node : {}", ref.getValue()); tx.delete(LogicalDatastoreType.OPERATIONAL, ref.getValue()); } });
static void removeAffectedLinks(final NodeId id, Optional<Topology> topologyOptional, ReadWriteTransaction transaction, final InstanceIdentifier<Topology> topology) { if (!topologyOptional.isPresent()) { return; } List<Link> linkList = topologyOptional.get().getLink() != null ? topologyOptional.get().getLink() : Collections.<Link> emptyList(); for (Link link : linkList) { if (id.equals(link.getSource().getSourceNode()) || id.equals(link.getDestination().getDestNode())) { transaction.delete(LogicalDatastoreType.OPERATIONAL, linkPath(link, topology)); } } }