sonic-utilities icon indicating copy to clipboard operation
sonic-utilities copied to clipboard

[config]: Add file check before load_minigraph command

Open stcheng opened this issue 6 years ago • 2 comments

This will prevent config load_minigraph fail during the middle of the command execution.

Signed-off-by: Shu0T1an ChenG [email protected]

stcheng avatar Aug 21 '18 17:08 stcheng

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.

stcheng avatar Aug 21 '18 17:08 stcheng

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)

qiluo-msft avatar Aug 21 '18 20:08 qiluo-msft