-
Notifications
You must be signed in to change notification settings - Fork 665
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[db_migrator] Add missing attribute 'weight' to route entries in APPL…
… DB (#2691) Fixes: 201911 to 202205 warm upgrade failure in fpmsyncd reconciliation due to missing weight attr in routes. (sonic-net/sonic-buildimage#12625) How I did it Check for missing attribute weight in APPLDB route entries. If found missing this attribute is added with empty value. How to verify it Verified on physical device. 201911 to 202205 upgrade worked fine.
- Loading branch information
Showing
5 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
12 changes: 12 additions & 0 deletions
12
tests/db_migrator_input/appl_db/routes_migrate_expected.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"ROUTE_TABLE:192.168.104.0/25": { | ||
"nexthop": "10.0.0.57,10.0.0.59,10.0.0.61,10.0.0.63", | ||
"ifname" : "PortChannel101,PortChannel102,PortChannel103,PortChannel104", | ||
"weight": "" | ||
}, | ||
"ROUTE_TABLE:20c0:fe28:0:80::/64": { | ||
"nexthop": "fc00::72,fc00::76,fc00::7a,fc00::7e", | ||
"ifname" : "PortChannel101,PortChannel102,PortChannel103,PortChannel104", | ||
"weight": "" | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"ROUTE_TABLE:192.168.104.0/25": { | ||
"nexthop": "10.0.0.57,10.0.0.59,10.0.0.61,10.0.0.63", | ||
"ifname" : "PortChannel101,PortChannel102,PortChannel103,PortChannel104" | ||
}, | ||
"ROUTE_TABLE:20c0:fe28:0:80::/64": { | ||
"nexthop": "fc00::72,fc00::76,fc00::7a,fc00::7e", | ||
"ifname" : "PortChannel101,PortChannel102,PortChannel103,PortChannel104" | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"VERSIONS|DATABASE": {"VERSION": "version_1_0_1"} | ||
} |
This file contains 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