Beispiel #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);
 }
Beispiel #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();
 }