summaryrefslogtreecommitdiffstats
path: root/v3po/vpp-cfg-init/src/main/java
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
commit53c0697f7416ea0224d22e81734ab0ae3755d5e9 (patch)
tree13b620437b9305b77a84b70e2f9bf61ba05a08c4 /v3po/vpp-cfg-init/src/main/java
parent78111d9f0ca926664e1724850051c7f394b7bb0d (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/src/main/java')
-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