private static void createDataWithinTransaction(final YangInstanceIdentifier path, final NormalizedNode payload,
final EffectiveModelContext schemaContext,
final RestconfTransaction transaction) {
- LOG.trace("POST {} within Restconf Patch: {} with payload {}", LogicalDatastoreType.CONFIGURATION.name(),
- path, payload);
+ LOG.trace("POST {} within Restconf Patch: {} with payload {}", LogicalDatastoreType.CONFIGURATION, path,
+ payload);
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);
+ LOG.trace("Delete {} within Restconf Patch: {}", LogicalDatastoreType.CONFIGURATION, path);
transaction.delete(path);
}
private static void mergeDataWithinTransaction(final YangInstanceIdentifier path, final NormalizedNode payload,
final EffectiveModelContext schemaContext,
final RestconfTransaction transaction) {
- LOG.trace("Merge {} within Restconf Patch: {} with payload {}", LogicalDatastoreType.CONFIGURATION.name(),
- path, payload);
+ LOG.trace("Merge {} within Restconf Patch: {} with payload {}", LogicalDatastoreType.CONFIGURATION, path,
+ payload);
TransactionUtil.ensureParentsByMerge(path, schemaContext, transaction);
transaction.merge(path, payload);
}
*/
private static void removeDataWithinTransaction(final YangInstanceIdentifier path,
final RestconfTransaction transaction) {
- LOG.trace("Remove {} within Restconf Patch: {}", LogicalDatastoreType.CONFIGURATION.name(), path);
+ LOG.trace("Remove {} within Restconf Patch: {}", LogicalDatastoreType.CONFIGURATION, path);
transaction.remove(path);
}
private static void replaceDataWithinTransaction(final YangInstanceIdentifier path, final NormalizedNode payload,
final EffectiveModelContext schemaContext,
final RestconfTransaction transaction) {
- LOG.trace("PUT {} within Restconf Patch: {} with payload {}",
- LogicalDatastoreType.CONFIGURATION.name(), path, payload);
+ LOG.trace("PUT {} within Restconf Patch: {} with payload {}", LogicalDatastoreType.CONFIGURATION, path,
+ payload);
transaction.replace(path, payload, schemaContext);
}
}