-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[config]: Create portchannel with LACP key #1473
[config]: Create portchannel with LACP key #1473
Conversation
fe74721
to
bc851af
Compare
dce8b59
to
dafdcea
Compare
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
retest this please |
cfcbe42
to
4177043
Compare
@yaxia and @judyjoseph any further comments or we are good to cont? tests are also passing :-) |
eea6435
to
1fdf2dc
Compare
Sry, I missed responding earlier - @DavidZagury could you take care of Ying's comment to verify the config DB indeed has the lacp_key present in case of cold boot ? thanks |
f7e4652
to
3e1955a
Compare
I have added a tests that check the db_migrator has added an lacp_key to the db |
1239ad7
to
f48161c
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
8a07160
to
cf3faab
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
kindly reminder @yxieca and @judyjoseph can you please review / approve? |
@DavidZagury, could you resolve the conflicts, before we can merge in. thanks. |
25ad3f1
to
bbc0364
Compare
bbc0364
to
cab01d0
Compare
can you add better description for the pr? for example, can you add description for the db_migrator change? |
@lguohan and @tahmed-dev can you please review latest comments? if all is OK please approve so we can merge. |
…rator test cases as well (sonic-net#1614) - What I did Originally, the method advance_version_for_expected_database was introduced (in sonic-net#1566) to handle the case the latest version in CONFIG_DB is greater than the latest version in mellanox_buffer_migrator. Now there are other database migrators whose test cases can also encounter this situation, like port auto-negotiation (sonic-net#1568) and port-channel for LACP key (sonic-net#1473). So I would like to make the method public, available for all database migrators. Related database migrator test cases have been updated accordingly. - How to verify it Run the unit test. Signed-off-by: Stephen Sun <stephens@nvidia.com>
@DavidZagury can you please confirm that all comments were handled include the test? If so, we can ask @lguohan to review and approve |
|
…rator test cases as well (sonic-net#1614) - What I did Originally, the method advance_version_for_expected_database was introduced (in sonic-net#1566) to handle the case the latest version in CONFIG_DB is greater than the latest version in mellanox_buffer_migrator. Now there are other database migrators whose test cases can also encounter this situation, like port auto-negotiation (sonic-net#1568) and port-channel for LACP key (sonic-net#1473). So I would like to make the method public, available for all database migrators. Related database migrator test cases have been updated accordingly. - How to verify it Run the unit test. Signed-off-by: Stephen Sun <stephens@nvidia.com>
What I did Fix issue - sonic-net/sonic-buildimage#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.
d03c6ccc90b92d9319c500a8adcf727a9fa5609b (HEAD -> 201911, origin/201911) [intfsorch] Init proxy_arp variable while adding router interface. (sonic-net#1473) 9e7c0bc8e3f2c7c5422f2f8a2c6498f659dcdf84 [drop counters] Clarify log messages for initial counter setup (sonic-net#1445) da8ac754fa1c36f9bb7ba1210017f915f339cfe0 Create vnet tunnel map only if it doesn't exist (sonic-net#1482) Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Including the following changes: [bitmap_vnet] Remove BMTOR implementation (sonic-net#1496) [intfsorch] Init proxy_arp variable while adding router interface. (sonic-net#1473) [drop counters] Clarify log messages for initial counter setup (sonic-net#1445) Signed-off-by: Liat Grozovik <liatg@nvidia.com>
This PR depends on:
What I did
Fix issue - sonic-net/sonic-buildimage#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.
How to verify it
Create a new port-channel, add a port and run tcpdump on this port.
LACP Key should be the number in the end of the port channel name with leading 1.
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)