Skip to content

[202012][db_migrator] Remove hardcoded config and migrate config from minigraph#2924

Merged
qiluo-msft merged 2 commits intosonic-net:202012from
vaibhavhd:migrator-cherrypick
Jul 26, 2023
Merged

[202012][db_migrator] Remove hardcoded config and migrate config from minigraph#2924
qiluo-msft merged 2 commits intosonic-net:202012from
vaibhavhd:migrator-cherrypick

Conversation

@vaibhavhd
Copy link
Contributor

Cherry pick of #2887

Microsoft ADO: 18217044

This PR is follow up to an old PR: #2515

This PR addresses two issues:

Not migrating RESTAPI, TELEMETRY, DEVICE_METADATA entries if they are not supported in target image's minigraph.py. Not migrating these entries if minigraph.xml file is missing. Not maintaining the config for these tables in two different places. Currently db migrator has its own constants, and minigraph.py maintains its own. How I did it
This change removes hardcoding config in migrator code, and migrating the config for RESTAPI, TELEMETRY, DEVICE_METADATA from minigraph generator.

How to verify it
Tested on a physical device.

What I did

How I did it

How to verify it

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)

…ph (sonic-net#2887)

Microsoft ADO: 18217044

This PR is follow up to an old PR: sonic-net#2515

This PR addresses two issues:

Not migrating RESTAPI, TELEMETRY, DEVICE_METADATA entries if they are not supported in target image's minigraph.py.
Not migrating these entries if minigraph.xml file is missing.
Not maintaining the config for these tables in two different places. Currently db migrator has its own constants, and minigraph.py maintains its own.
How I did it
This change removes hardcoding config in migrator code, and migrating the config for RESTAPI, TELEMETRY, DEVICE_METADATA from minigraph generator.

How to verify it
Tested on a physical device.
@qiluo-msft qiluo-msft merged commit f993cf1 into sonic-net:202012 Jul 26, 2023
lguohan pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Aug 11, 2023
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