summaryrefslogtreecommitdiffstats
path: root/infra/translate-utils/src/main/java
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-10-26 12:15:47 +0200
committerMaros Marsalek <mmarsale@cisco.com>2016-10-26 12:20:33 +0200
commitb0615e61b93ef8530193bd45c270ed313dcc23a7 (patch)
treec88774f2e4aa614a0a23722533d1b5a0a5904d23 /infra/translate-utils/src/main/java
parent552ea0f719a7915788a378bb94b0ec846744747f (diff)
Enable createParents for RealtimeMappingContext
Change-Id: I2f5747a2348728b88f9ff9d5c3f0f39a98dbefdf Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'infra/translate-utils/src/main/java')
-rw-r--r--infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/RealtimeMappingContext.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/RealtimeMappingContext.java b/infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/RealtimeMappingContext.java
index 82079f0e5..f10d312f1 100644
--- a/infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/RealtimeMappingContext.java
+++ b/infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/RealtimeMappingContext.java
@@ -61,7 +61,7 @@ public final class RealtimeMappingContext implements MappingContext {
@Override
public <T extends DataObject> void merge(final InstanceIdentifier<T> path, final T data) {
final WriteTransaction writeTx = contextBindingBrokerDependency.newWriteOnlyTransaction();
- writeTx.merge(LogicalDatastoreType.OPERATIONAL, path, data);
+ writeTx.merge(LogicalDatastoreType.OPERATIONAL, path, data, true);
try {
writeTx.submit().checkedGet();
} catch (TransactionCommitFailedException e) {
@@ -72,7 +72,7 @@ public final class RealtimeMappingContext implements MappingContext {
@Override
public <T extends DataObject> void put(final InstanceIdentifier<T> path, final T data) {
final WriteTransaction writeTx = contextBindingBrokerDependency.newWriteOnlyTransaction();
- writeTx.put(LogicalDatastoreType.OPERATIONAL, path, data);
+ writeTx.put(LogicalDatastoreType.OPERATIONAL, path, data, true);
try {
writeTx.submit().checkedGet();
} catch (TransactionCommitFailedException e) {