Hi, I'm developing a new module in Openflowplugin project wherein I've created a new config yang and xml from which some configuration parameters are read during the start up (from xml) and which also could be updated during run time(from yang-REST).
Yang file: container arbitrator-config { leaf arbitrator-reconcile-enabled { description "Is arbitrator reconciliation in process."; type boolean; default false; } } XML file: <arbitrator-config xmlns="urn:opendaylight:params:xml:ns:yang:openflowplugin:app:arbitrator-reconcile:service"> <arbitrator-reconcile-enabled>false</arbitrator-reconcile-enabled> </arbitrator-config> This configuration param is read correctly during the startup and available. Also , there is no issue when I update in the REST when the updated value is the same as the old value. But whenever I toggle the value of this param using REST, the bundle containing this yang goes for a restart. Karaf Logs: 2018-05-02 12:07:49,413 | INFO | erRestartService | printContainerRestartServiceImpl | 212 - org.opendaylight.controller.blueprint - 0.9.0.SNAPSHOT | Restarting blueprint containers for bundle org.opendaylight.openflowplugin.applications.forwardingrules-manager_0.7.0.SNAPSHOT [394] and its dependent bundles [] 2018-05-02 12:07:49,474 | INFO | ainer-ThreadPool | BlueprintExtender | 18 - org.apache.aries.blueprint.core - 1.8.3 | Destroying BlueprintContainer for bundle org.opendaylight.openflowplugin.applications.forwardingrules-manager/0.7.0.SNAPSHOT 2018-05-02 12:07:49,721 | INFO | ainer-ThreadPool | printContainerRestartServiceImpl | 212 - org.opendaylight.controller.blueprint - 0.9.0.SNAPSHOT | Restarting blueprint container for bundle org.opendaylight.openflowplugin.applications.forwardingrules-manager_0.7.0.SNAPSHOT [394] with paths [bundleentry://394.fwk1534755892/org/opendaylight/blueprint/forwardingrules-manager.xml] 2018-05-02 12:07:49,747 | INFO | ainer-ThreadPool | itratorReconciliationManagerImpl | 394 - org.opendaylight.openflowplugin.applications.forwardingrules-manager - 0.7.0.SNAPSHOT | ArbitratorReconciliationManager has started successfully. 2018-05-02 12:07:49,749 | INFO | ainer-ThreadPool | ConfigurationServiceFactory | 405 - org.opendaylight.openflowplugin.impl - 0.7.0.SNAPSHOT | org.opendaylight.openflowplugin.applications.frm.impl.ForwardingRulesManagerImpl@6537f052 was registered as configuration listener to OpenFlowPlugin configuration service 2018-05-02 12:07:49,752 | INFO | ainer-ThreadPool | ForwardingRulesManagerImpl | 394 - org.opendaylight.openflowplugin.applications.forwardingrules-manager - 0.7.0.SNAPSHOT | ForwardingRulesManager has started successfully. Can someone help me with this. Thanks and Regards, Gobinath Suganthan
_______________________________________________ controller-dev mailing list controller-dev@lists.opendaylight.org https://lists.opendaylight.org/mailman/listinfo/controller-dev