Allowed apps to specify whether the existing component config value should be overridden
Change-Id: Ic0992adb49cbcce17e17a71af954fbeeafde97d3
diff --git a/core/net/src/main/java/org/onosproject/cfg/impl/ComponentConfigManager.java b/core/net/src/main/java/org/onosproject/cfg/impl/ComponentConfigManager.java
index 0a78bcd..6418bc9 100644
--- a/core/net/src/main/java/org/onosproject/cfg/impl/ComponentConfigManager.java
+++ b/core/net/src/main/java/org/onosproject/cfg/impl/ComponentConfigManager.java
@@ -173,12 +173,17 @@
@Override
public void preSetProperty(String componentName, String name, String value) {
+ preSetProperty(componentName, name, value, true);
+ }
+
+ @Override
+ public void preSetProperty(String componentName, String name, String value, boolean override) {
checkPermission(CONFIG_WRITE);
checkNotNull(componentName, COMPONENT_NULL);
checkNotNull(name, PROPERTY_NULL);
checkValidity(componentName, name, value);
- store.setProperty(componentName, name, value);
+ store.setProperty(componentName, name, value, override);
}
@Override