[db_migrator] add required "protocol" field in ROUTE_TABLE#2766
Merged
liat-grozovik merged 3 commits intosonic-net:masterfrom Jun 14, 2023
Merged
[db_migrator] add required "protocol" field in ROUTE_TABLE#2766liat-grozovik merged 3 commits intosonic-net:masterfrom
liat-grozovik merged 3 commits intosonic-net:masterfrom
Conversation
Signed-off-by: Stepan Blyschak <[email protected]>
vaibhavhd
reviewed
May 24, 2023
scripts/db_migrator.py
Outdated
| self.appDB.set(self.appDB.APPL_DB, route_key, 'weight','') | ||
|
|
||
| if 'protocol' not in route_attr: | ||
| self.appDB.set(self.appDB.APPL_DB, route_key, 'protocol', 'bgp') |
Contributor
There was a problem hiding this comment.
Why BGP is assumed? Why can't this be left empty like weight attr? Fpmsyncd reconciliation will add the protocol as it expects. I think the reconciliation failure is only limited to attribute name and not its value.
Signed-off-by: Stepan Blyschak <[email protected]>
vaibhavhd
approved these changes
Jun 12, 2023
Contributor
vaibhavhd
left a comment
There was a problem hiding this comment.
LGTM, good to have Prince S's review too before merge.
Contributor
|
Please link which swss PR brought in this new field. Please describe how table looks like before and after this migration in verification part of description. |
Contributor
Author
|
@vaibhavhd Done |
Collaborator
|
@stepanblyschak needed only for master? |
dprital
added a commit
to dprital/sonic-buildimage
that referenced
this pull request
Jun 20, 2023
Update sonic-utilities submodule pointer to include the following: * 0b629ba Revert [chassis][voq] Clear fabric counters queue/port (2789) ([sonic-net#2882](sonic-net/sonic-utilities#2882)) * 3ba8241 [db_migtrator] Add migration of FLEX_COUNTER_DELAY_STATUS during 1911->master upgrade + fast-reboot. Add UT. ([sonic-net#2839](sonic-net/sonic-utilities#2839)) * fceef2e [chassis][voq] Clear fabric counters queue/port ([sonic-net#2789](sonic-net/sonic-utilities#2789)) * 659ba24 [syslog] Adjust runningconfiguration syslog command ([sonic-net#2843](sonic-net/sonic-utilities#2843)) * 46fba26 [db_migrator] add required protocol field in ROUTE_TABLE ([sonic-net#2766](sonic-net/sonic-utilities#2766)) * f186376 Fix issue: show interfaces transceiver eeprom -d should display same entry for CMIS cable ([sonic-net#2864](sonic-net/sonic-utilities#2864)) * de49179 fix precedence in portstat CLI ([sonic-net#2874](sonic-net/sonic-utilities#2874)) Signed-off-by: dprital <[email protected]>
dprital
added a commit
to dprital/sonic-buildimage
that referenced
this pull request
Jun 21, 2023
Update sonic-utilities submodule pointer to include the following: * 0b629ba Revert [chassis][voq] Clear fabric counters queue/port (2789) ([sonic-net#2882](sonic-net/sonic-utilities#2882)) * 3ba8241 [db_migtrator] Add migration of FLEX_COUNTER_DELAY_STATUS during 1911->master upgrade + fast-reboot. Add UT. ([sonic-net#2839](sonic-net/sonic-utilities#2839)) * fceef2e [chassis][voq] Clear fabric counters queue/port ([sonic-net#2789](sonic-net/sonic-utilities#2789)) * 659ba24 [syslog] Adjust runningconfiguration syslog command ([sonic-net#2843](sonic-net/sonic-utilities#2843)) * 46fba26 [db_migrator] add required protocol field in ROUTE_TABLE ([sonic-net#2766](sonic-net/sonic-utilities#2766)) * f186376 Fix issue: show interfaces transceiver eeprom -d should display same entry for CMIS cable ([sonic-net#2864](sonic-net/sonic-utilities#2864)) * de49179 fix precedence in portstat CLI ([sonic-net#2874](sonic-net/sonic-utilities#2874)) Signed-off-by: dprital <[email protected]>
pdhruv-marvell
pushed a commit
to pdhruv-marvell/sonic-utilities
that referenced
this pull request
Aug 23, 2023
…#2766) - What I did I added requires "protocol" field due to fpmsyncd reconcile logic (WarmRestartHelper class) requires old fvs keys to match new fvs. - How I did it Add "protocol" field in db migration. - How to verify it Upgrade from older branch to new image with supported FIB pending. The field was added by sonic-net/sonic-swss#2551. Signed-off-by: Stepan Blyschak <[email protected]>
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
I added requires "protocol" field due to fpmsyncd reconcile logic (WarmRestartHelper class) requires old fvs keys to match new fvs.
How I did it
Add "protocol" field in db migration.
How to verify it
Upgrade from older branch to new image with supported FIB pending.
The field was added by sonic-net/sonic-swss#2551.
Now, after reboot:
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)