forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[config]: Create portchannel with LACP key (sonic-net#1473)
What I did Fix issue - sonic-net#4009 Change the LACP key to be generated from the Port Channel name instead of always being 0. When upgrading without warm-reboot update old port channels to use the new default. How I did it When adding a new port-channel add by default the key lacp_key with the value 'auto' to the port-channel table, this is done to change the port-channel LACP key to be generated from the Port Channel name instead of always being 0. When upgrading without warm-reboot, also update old port channels to use the new default. This is not done on warm-reboot to avoid the link from going down.
- Loading branch information
1 parent
6f74ba5
commit 2cdadb5
Showing
5 changed files
with
114 additions
and
3 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
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
39 changes: 39 additions & 0 deletions
39
tests/db_migrator_input/config_db/portchannel-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,39 @@ | ||
{ | ||
"PORTCHANNEL|PortChannel0": { | ||
"admin_status": "up", | ||
"members@": "Ethernet0,Ethernet4", | ||
"min_links": "2", | ||
"mtu": "9100", | ||
"lacp_key": "auto" | ||
}, | ||
"PORTCHANNEL|PortChannel1": { | ||
"admin_status": "up", | ||
"members@": "Ethernet8,Ethernet12", | ||
"min_links": "2", | ||
"mtu": "9100", | ||
"lacp_key": "auto" | ||
}, | ||
"PORTCHANNEL|PortChannel0123": { | ||
"admin_status": "up", | ||
"members@": "Ethernet16", | ||
"min_links": "1", | ||
"mtu": "9100", | ||
"lacp_key": "auto" | ||
}, | ||
"PORTCHANNEL|PortChannel0011": { | ||
"admin_status": "up", | ||
"members@": "Ethernet20,Ethernet24", | ||
"min_links": "2", | ||
"mtu": "9100", | ||
"lacp_key": "auto" | ||
}, | ||
"PORTCHANNEL|PortChannel9999": { | ||
"admin_status": "up", | ||
"mtu": "9100", | ||
"lacp_key": "auto" | ||
}, | ||
"VERSIONS|DATABASE": { | ||
"VERSION": "version_2_0_2" | ||
} | ||
} | ||
|
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,33 @@ | ||
{ | ||
"PORTCHANNEL|PortChannel0": { | ||
"admin_status": "up", | ||
"members@": "Ethernet0,Ethernet4", | ||
"min_links": "2", | ||
"mtu": "9100" | ||
}, | ||
"PORTCHANNEL|PortChannel1": { | ||
"admin_status": "up", | ||
"members@": "Ethernet8,Ethernet12", | ||
"min_links": "2", | ||
"mtu": "9100" | ||
}, | ||
"PORTCHANNEL|PortChannel0123": { | ||
"admin_status": "up", | ||
"members@": "Ethernet16", | ||
"min_links": "1", | ||
"mtu": "9100" | ||
}, | ||
"PORTCHANNEL|PortChannel0011": { | ||
"admin_status": "up", | ||
"members@": "Ethernet20,Ethernet24", | ||
"min_links": "2", | ||
"mtu": "9100" | ||
}, | ||
"PORTCHANNEL|PortChannel9999": { | ||
"admin_status": "up", | ||
"mtu": "9100" | ||
}, | ||
"VERSIONS|DATABASE": { | ||
"VERSION": "version_2_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