[multi-asic] Refine [override config table] for corner cases#2918
[multi-asic] Refine [override config table] for corner cases#2918wenyiz2021 merged 16 commits intosonic-net:masterfrom
Conversation
…et#2918) Handle corner case for multi-asics: 1. when golden config file is empty for multi-asic case 2. when config format is incorrect for multi-asics, e.g. localhost or namespace is missing in golden config db
|
@wenyiz2021 do we have ADO for this? Looks like an enhancement other than bug fix? |
hi @StormLiangMS, without this it was failing https://github.com/sonic-net/sonic-mgmt/blob/ffac1463a768c3dee0f2894c6c67834f2387d5df/tests/override_config_table/test_override_config_table.py#L201 so it should be bug fix. ADO number: 24339857 but I also made test_override_config_table.py to skip for now, we need NDM to push new config changes for multi-asic. |
|
@StormLiangMS , @yxieca , This is a bug fix that needs to be backported to 202205, 202211 and 202305. |
Handle corner case for multi-asics: 1. when golden config file is empty for multi-asic case 2. when config format is incorrect for multi-asics, e.g. localhost or namespace is missing in golden config db
Handle corner case for multi-asics: 1. when golden config file is empty for multi-asic case 2. when config format is incorrect for multi-asics, e.g. localhost or namespace is missing in golden config db
…et#2918) Handle corner case for multi-asics: 1. when golden config file is empty for multi-asic case 2. when config format is incorrect for multi-asics, e.g. localhost or namespace is missing in golden config db
sudo config override-config-tablecan be used in 2 flows:in the 2nd case, user can input wrong format config, e.g. not accommodate for ndm standard. we should abort CLI in this case.
another example is user tries to override with empty config, in this case nothing will be overridden.
fixes: #2916
MSFT work item: 24339857
What I did
handle the corner cases in CLI
How I did it
How to verify it
command will pass, nothing is overwritten from output of
sonic-cfggen --print-data -dcommand will abort
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)