final RestconfTransaction transaction) {
LOG.trace("POST {} within Restconf Patch: {} with payload {}", LogicalDatastoreType.CONFIGURATION.name(),
path, payload);
- transaction.create(LogicalDatastoreType.CONFIGURATION, path, payload, schemaContext);
+ transaction.create(path, payload, schemaContext);
}
/**
private static void deleteDataWithinTransaction(final YangInstanceIdentifier path,
final RestconfTransaction transaction) {
LOG.trace("Delete {} within Restconf Patch: {}", LogicalDatastoreType.CONFIGURATION.name(), path);
- transaction.delete(LogicalDatastoreType.CONFIGURATION, path);
+ transaction.delete(path);
}
/**
LOG.trace("Merge {} within Restconf Patch: {} with payload {}", LogicalDatastoreType.CONFIGURATION.name(),
path, payload);
TransactionUtil.ensureParentsByMerge(path, schemaContext, transaction);
- transaction.merge(LogicalDatastoreType.CONFIGURATION, path, payload);
+ transaction.merge(path, payload);
}
/**
private static void removeDataWithinTransaction(final YangInstanceIdentifier path,
final RestconfTransaction transaction) {
LOG.trace("Remove {} within Restconf Patch: {}", LogicalDatastoreType.CONFIGURATION.name(), path);
- transaction.remove(LogicalDatastoreType.CONFIGURATION, path);
+ transaction.remove(path);
}
/**
final RestconfTransaction transaction) {
LOG.trace("PUT {} within Restconf Patch: {} with payload {}",
LogicalDatastoreType.CONFIGURATION.name(), path, payload);
- transaction.replace(LogicalDatastoreType.CONFIGURATION, path, payload, schemaContext);
+ transaction.replace(path, payload, schemaContext);
}
}