@Override public void delete(final LogicalDatastoreType store, final YangInstanceIdentifier path) { delegateWriteTx.delete(store, path); }
void removeTable(final DOMDataWriteTransaction tx) { tx.delete(LogicalDatastoreType.OPERATIONAL, this.tableId); }
void removeTable(final DOMDataWriteTransaction tx) { tx.delete(LogicalDatastoreType.OPERATIONAL, this.tableId); }
@Override public void delete(final LogicalDatastoreType store, final YangInstanceIdentifier path) { if (writeTx == null) { writeTx = delegateBroker.newWriteOnlyTransaction(); } writeTx.delete(store, path); }
@Override public void delete(LogicalDatastoreType logicalDatastoreType, YangInstanceIdentifier yangInstanceIdentifier) { if (AuthzServiceImpl.isAuthorized(logicalDatastoreType, yangInstanceIdentifier, ActionType.Delete)) { domDataWriteTransaction.delete(logicalDatastoreType, yangInstanceIdentifier); } }
@Override public final void apply(final DOMDataWriteTransaction tx, final YangInstanceIdentifier base, final NodeIdentifierWithPredicates routeKey, final DataContainerNode<?> route, final ContainerNode attributes) { tx.delete(LogicalDatastoreType.OPERATIONAL, base.node(routeKey)); } }
static void delete(final DOMDataWriteTransaction tx, final LogicalDatastoreType store, final YangInstanceIdentifier path) { tx.delete(fromMdsal(store), path); }
@Override public void delete(final LogicalDatastoreType store, final YangInstanceIdentifier path) { delegate().delete(store, path); }
@Override public void delete(final LogicalDatastoreType store, final YangInstanceIdentifier path) { delegate().delete(store, path); }
private CheckedFuture<Void, TransactionCommitFailedException> deleteDataViaTransaction( final DOMDataWriteTransaction writeTransaction, final LogicalDatastoreType datastore, final YangInstanceIdentifier path) { LOG.trace("Delete " + datastore.name() + " via Restconf: {}", path); writeTransaction.delete(datastore, path); return writeTransaction.submit(); }
void removePeer() { if(this.peerPath != null) { final DOMDataWriteTransaction tx = this.chain.newWriteOnlyTransaction(); tx.delete(LogicalDatastoreType.OPERATIONAL, this.peerPath); try { tx.submit().checkedGet(); } catch (final TransactionCommitFailedException e) { LOG.debug("Failed to remove Peer {}", this.peerPath, e); } } }
@Override public void close() throws Exception { this.channel.close().addListener(new ChannelFutureListener() { @Override public void operationComplete(final ChannelFuture channelFuture) throws Exception { BmpMonitoringStationImpl.this.sessionManager.close(); } }).await(); final DOMDataWriteTransaction wTx = this.domDataBroker.newWriteOnlyTransaction(); wTx.delete(LogicalDatastoreType.OPERATIONAL, this.yangMonitorId); wTx.submit().checkedGet(); LOG.info("BMP monitoring station {} closed.", this.monitorId.getValue()); }
protected final void doDelete(final LogicalDatastoreType store, final InstanceIdentifier<?> path) { Preconditions.checkArgument(!path.isWildcarded(), "Cannot delete wildcarded path %s", path); final YangInstanceIdentifier normalized = getCodec().toYangInstanceIdentifierBlocking(path); getDelegate().delete(store, normalized); }
private void onPeerDown() { final DOMDataWriteTransaction wTx = this.domTxChain.newWriteOnlyTransaction(); wTx.delete(LogicalDatastoreType.OPERATIONAL, this.peerYangIId); wTx.submit(); close(); }
wTx.delete(LogicalDatastoreType.OPERATIONAL, this.routerYangIId); wTx.submit().checkedGet(); } catch (final TransactionCommitFailedException e) {
@Override public ListenableFuture<Void> closeServiceInstance() { LOG.info("Close RIB Singleton Service {}", this.getIdentifier()); for (final LocRibWriter locRib : this.locRibs) { try { locRib.close(); } catch (final Exception e) { LOG.warn("Could not close LocalRib reference: {}", locRib, e); } } try { final DOMDataWriteTransaction t = this.domChain.newWriteOnlyTransaction(); t.delete(LogicalDatastoreType.OPERATIONAL, getYangRibId()); t.submit().checkedGet(); } catch (final TransactionCommitFailedException e) { LOG.warn("Failed to remove RIB instance {} from DS.", getYangRibId(), e); } this.renderStats.getLocRibRouteCounter().resetAll(); if (this.configModuleTracker != null) { this.configModuleTracker.onInstanceClose(); } return Futures.immediateFuture(null); }
case DELETE: LOG.trace("App peer -> AdjRibsIn path delete: {}", childIdentifier); tx.delete(LogicalDatastoreType.OPERATIONAL, childIdentifier); break; case UNMODIFIED:
.build(); tx.delete(LogicalDatastoreType.CONFIGURATION, yid); writeCnt++; if (writeCnt == writesPerTx) {
case DELETE: case DISAPPEARED: tx.delete(LogicalDatastoreType.OPERATIONAL, childPath); LOG.debug("Route deleted. routeId={}", childPath);
tx.delete(LogicalDatastoreType.OPERATIONAL, effectiveTablePath);