Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[config/main.py] Modify reload() function to load configuration from …
…init_cfg.json implicitly (sonic-net#812) * [config/main.py] Modify the load() and reload() functions to load config from config_db.json and init_cfg.json. Signed-off-by: Yong Zhao <yozhao@microsoft.com> * [config/main.py] Undo the changes which load the configuration from init_cfg.json for load() function and define a constant string for the path of init_cfg.json. Signed-off-by: Yong Zhao <yozhao@microsoft.com> * [config/main.py] Correct a typo. Signed-off-by: Yong Zhao <yozhao@microsoft.com> * [config/main.py] Added an else statement in line 551 to decide whether the init_cfg.json exsits or not in reload function. Signed-off-by: Yong Zhao <yozhao@microsoft.com> * [config/main.py] Correct a typo error. Signed-off-by: Yong Zhao <yozhao@microsoft.com> * [config/main.py] Change the loading order and we should first load init_cfg.json and then config_db.json. Signed-off-by: Yong Zhao <yozhao@microsoft.com> * [config/main.py] Use constant string to represent the path of init_cfg.json. Signed-off-by: Yong Zhao <yozhao@microsoft.com>
- Loading branch information