sonic-utilities
sonic-utilities copied to clipboard
[config]: Add file check before load_minigraph command
This will prevent config load_minigraph fail during the middle of the command execution.
Signed-off-by: Shu0T1an ChenG [email protected]
yes. I think the use-case for load_minigraph is that the config_db.json file is not easy to modify while right now the minigraph is the source of the 'original configuration' for the switch.
run_command("config qos reload", display_cmd=True)
Since 'qos' is a local function, why we don't directly call it?
Refers to: config/main.py:344 in ef57bac. [](commit_id = ef57bac77bcdbf0e04b0d2b0295484ee524b2331, deletion_comment = False)