예제 #1
0
 private void deleteDataWithinTransaction(
     final DOMDataWriteTransaction writeTransaction,
     final LogicalDatastoreType datastore,
     final YangInstanceIdentifier path) {
   LOG.trace("Delete {} within Restconf PATCH: {}", datastore.name(), path);
   writeTransaction.delete(datastore, path);
 }
예제 #2
0
 private CheckedFuture<Void, TransactionCommitFailedException> deleteDataViaTransaction(
     final DOMDataWriteTransaction writeTransaction,
     final LogicalDatastoreType datastore,
     final YangInstanceIdentifier path) {
   LOG.trace("Delete {} via Restconf: {}", datastore.name(), path);
   writeTransaction.delete(datastore, path);
   return writeTransaction.submit();
 }