[OPNFLWPLUG-825] Configuration read when system bootup Created: 22/Nov/16  Updated: 27/Sep/21  Resolved: 24/Apr/17

Status: Resolved
Project: OpenFlowPlugin
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: wangjinzhu Assignee: Jozef Bacigal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 7218
Priority: Normal

 Description   

Current when system bootup, it reads the default parameters defined in the yang files. When system is running, if we change the parameters in the configuration file (org.opendaylight.openflowplugin.cfg), the karaf/blueprint will invoke the update() methods of the OpenFlowPluginProviderImpl.class to update the parameters dynamically. However, the system will not read the parameters in the configuration file when it bootup, which leads to confusion. For example, if we set the parameters in the configuraiion file before system bootup and keep them unchanged in the system running, the system will never read this parameters.

to make things correct, when system bootup, first it need to read default parameters defined in the yang files, and then read the parameters defined in the configuration file.



 Comments   
Comment by Tomas Slusny [ 21/Mar/17 ]

I was able to reproduce this issue too. During initialization, update method is not called (this method is called only when property file changes).
Started working on fix.

Comment by Tomas Slusny [ 22/Mar/17 ]

GERRIT: https://git.opendaylight.org/gerrit/#/c/53630/

Comment by Tomas Slusny [ 24/Apr/17 ]

Patch was merged, so this can be closed

Generated at Wed Feb 07 20:33:28 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.