Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add recover hardware config if load golden config. #3711

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xincunli-sonic
Copy link
Contributor

@xincunli-sonic xincunli-sonic commented Jan 11, 2025

What I did

Restore hardware related configuration: asic_id, mac and platform from local file since the golden config does not have them.

How I did it

Add a function to backfill these fields asic_id, mac and platform to config db by read local files afterload golden config.

How to verify it

Using lab device to download golden config which does not have these fields, and apply through load_minigraph with overridde golden config option, then check configdb dump if they get populated correctly.

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)

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants