[202012] [cherry-pick] Update db_migrator to support PORT_QOS_MAP|global#2215
Merged
bingwang-ms merged 7 commits intosonic-net:202012from Jul 26, 2022
Merged
Conversation
Signed-off-by: bingwang <[email protected]>
Signed-off-by: bingwang <[email protected]>
6 tasks
Collaborator
|
Comment left on the original PR #2205 is also applicable here. |
neethajohn
reviewed
Jul 14, 2022
Contributor
Author
Thanks. I address the issue by checking the ASIC type. The table is only generated on one platform now. Also a test scenario is added to cover that. |
neethajohn
approved these changes
Jul 15, 2022
stephenxs
approved these changes
Jul 21, 2022
neethajohn
reviewed
Jul 21, 2022
prsunny
approved these changes
Jul 26, 2022
vaibhavhd
added a commit
to sonic-net/sonic-buildimage
that referenced
this pull request
Aug 2, 2022
…11558) To include latest warmboot fixes: [202012] [cherry-pick] Update db_migrator to support `PORT_QOS_MAP|gl (sonic-net/sonic-utilities/pull/2215) [202012] Migrate missed config on cross branch warm upgrade to 202012 (sonic-net/sonic-utilities#2277) [202012] Add db_migrator_constants.py script to setup.py (sonic-net/sonic-utilities#2287)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What I did
This PR is to cherry-pick #2205 into
202012branch after resolving conflicts.This PR is to update the
db_migratorto support generation ofPORT_QOS_MAP|global.After PR sonic-net/sonic-buildimage#10565, there will be two DSCP_TO_TC_MAP
To address the issue, an entry
PORT_QOS_MAP|globalwill be added intoconfig_dbTo handle the upgrade from older image,
db_migratoris updated to generate the entry.There is no way to check if
PORT_QOS_MAP|globalis supported, so the migration is ran on all platforms. There is check insonic-swssto check the switch capability code, so it will not cause issue.How I did it
Update
db_migratorto add a common migration step.How to verify it
Verified by vstest
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)