Skip to content

[config]Support single file reload for multiasic#3349

Merged
wen587 merged 8 commits intosonic-net:masterfrom
wen587:refactor_reload
Jun 18, 2024
Merged

[config]Support single file reload for multiasic#3349
wen587 merged 8 commits intosonic-net:masterfrom
wen587:refactor_reload

Conversation

@wen587
Copy link
Copy Markdown
Contributor

@wen587 wen587 commented May 31, 2024

ADO: 27595279

What I did

Extend config reload to support single file reloading for multi-asic

How I did it

Add the single file reload support for mutli-asic

How to verify it

Unit test and manual test on multi-asic DUT

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)

@wen587 wen587 marked this pull request as ready for review June 6, 2024 06:51
xincunli-sonic
xincunli-sonic previously approved these changes Jun 11, 2024
Copy link
Copy Markdown
Contributor

@xincunli-sonic xincunli-sonic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wen587 wen587 changed the title [cnfig]Support single file reload for multiasic [config]Support single file reload for multiasic Jun 11, 2024
@qiluo-msft qiluo-msft requested a review from vaibhavhd June 12, 2024 09:39
return client, config_db


def migrate_db_to_lastest(namespace=DEFAULT_NAMESPACE):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

migrate_db_to_lastest

@vaibhavhd Could you help review?

clicommon.run_command(command, display_cmd=True)


def multiasic_write_to_db(filename, load_sysinfo):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

multiasic_write_to_db

@rlhui @abdosi @judyjoseph Could you help review?

@judyjoseph
Copy link
Copy Markdown
Contributor

looks ok to me. Btw are you validating the switch booting up with a single config file ? or this is just "config reload" command changes. I have this question, because there could be startup scripts where we explicitly check for the presence of config_db.json

@wen587
Copy link
Copy Markdown
Contributor Author

wen587 commented Jun 14, 2024

looks ok to me. Btw are you validating the switch booting up with a single config file ? or this is just "config reload" command changes. I have this question, because there could be startup scripts where we explicitly check for the presence of config_db.json

This is just config reload command and it will not impact booting up.

@qiluo-msft
Copy link
Copy Markdown
Contributor

@gechiang Could you help backport?

wen587 added a commit to wen587/sonic-utilities that referenced this pull request Aug 8, 2024
ADO: 27595279

What I did
Extend config reload to support single file reloading for multi-asic

How I did it
Add the single file reload support for mutli-asic

How to verify it
Unit test and manual test on multi-asic DUT
@wen587
Copy link
Copy Markdown
Contributor Author

wen587 commented Aug 8, 2024

#3481

bingwang-ms pushed a commit that referenced this pull request Aug 8, 2024
ADO: 27595279

What I did
Extend config reload to support single file reloading for multi-asic

How I did it
Add the single file reload support for mutli-asic

How to verify it
Unit test and manual test on multi-asic DUT
nmoray pushed a commit to nmoray/sonic-utilities that referenced this pull request Jun 25, 2025
ADO: 27595279

What I did
Extend config reload to support single file reloading for multi-asic

How I did it
Add the single file reload support for mutli-asic

How to verify it
Unit test and manual test on multi-asic DUT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants