summaryrefslogtreecommitdiffstats
path: root/v3po/vpp-cfg-init
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-05-25 10:59:38 +0200
committerMaros Marsalek <mmarsale@cisco.com>2016-05-25 10:59:38 +0200
commitd3e4ed3d5cd563ea20ae06dc4c6997f135d5d446 (patch)
tree6c46a1fd1c9d135857308e85d3ff8f2938d10f86 /v3po/vpp-cfg-init
parentad7888abe9853b4cdf324308486b9785c52f15e4 (diff)
Do not delete configuration in initlizers on close
Change-Id: I8e61360586d59c39039528667c19317658e53840 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'v3po/vpp-cfg-init')
-rw-r--r--v3po/vpp-cfg-init/src/main/java/io/fd/honeycomb/v3po/vpp/data/init/AbstractDataTreeConverter.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/v3po/vpp-cfg-init/src/main/java/io/fd/honeycomb/v3po/vpp/data/init/AbstractDataTreeConverter.java b/v3po/vpp-cfg-init/src/main/java/io/fd/honeycomb/v3po/vpp/data/init/AbstractDataTreeConverter.java
index 18c0dce59..575f1d860 100644
--- a/v3po/vpp-cfg-init/src/main/java/io/fd/honeycomb/v3po/vpp/data/init/AbstractDataTreeConverter.java
+++ b/v3po/vpp-cfg-init/src/main/java/io/fd/honeycomb/v3po/vpp/data/init/AbstractDataTreeConverter.java
@@ -57,10 +57,8 @@ public abstract class AbstractDataTreeConverter<O extends DataObject, C extends
@Override
public void close() throws Exception {
LOG.debug("AbstractDataTreeConverter.close()");
- final WriteTransaction writeTx = bindingDataBroker.newWriteOnlyTransaction();
- writeTx.delete(LogicalDatastoreType.CONFIGURATION, idConfig);
- writeTx.submit().checkedGet();
- LOG.info("Config initialization data for {} successfully removed.", idConfig);
+ // Not removing initialized data, since this works in cooperation with persistence, it could remove
+ // data restored by persistence or remove user configured data when shutting down HC
}
@Override