-
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
[sonic-utilities] CLI support for port auto negotiation #1568
Conversation
Conflicts: tests/mock_tables/state_db.json
Conflicts: scripts/portconfig tests/mock_tables/state_db.json
This pull request introduces 1 alert when merging edc5f51 into e296a69 - view on LGTM.com new alerts:
|
The test case failures are not related to this change, could you please help re-trigger the test? |
The LGTM warning can be ignored. The warning code is for mock purpose. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
This pull request introduces 1 alert when merging 87d9861 into c166f66 - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove unused import per LGTM
The unused import is for mock purpose: import mock_tables.dbconnector |
Ah, yeah. That's annoying. We need to find a better way to do this (maybe using |
This pull request introduces 1 alert when merging 8eaf2e8 into 615e531 - view on LGTM.com new alerts:
|
The unused import is for mock purpose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please also update the Command Reference guide to reflect the new show and config commands?
…lities into port-auto-neg
This pull request introduces 1 alert when merging 4adca3e into a71ff02 - view on LGTM.com new alerts:
|
…rator test cases as well (#1614) - What I did Originally, the method advance_version_for_expected_database was introduced (in #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 (#1568) and port-channel for LACP key (#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 <[email protected]>
#### What I did 1. Add CLI support for port auto negotiation feature. 2. Add db_migrator change for auto negotiation feature 2. Add unit test cases for all changes #### How I did it 1. Add new subcommands to "config interface" command group to allow user configuring port auto negotiation 2. Add new subcommands to "show interfaces" command group to allow user show auto negotiation status 3. In db_migrator.py, change auto negotiation related DB field to latest one
…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 <[email protected]>
…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 <[email protected]>
1. Add CLI support for port auto negotiation feature. 2. Add db_migrator change for auto negotiation feature 2. Add unit test cases for all changes 1. Add new subcommands to "config interface" command group to allow user configuring port auto negotiation 2. Add new subcommands to "show interfaces" command group to allow user show auto negotiation status 3. In db_migrator.py, change auto negotiation related DB field to latest one
* [sonic-utilities] CLI support for port auto negotiation (#1568) 1. Add CLI support for port auto negotiation feature. 2. Add db_migrator change for auto negotiation feature 2. Add unit test cases for all changes 1. Add new subcommands to "config interface" command group to allow user configuring port auto negotiation 2. Add new subcommands to "show interfaces" command group to allow user show auto negotiation status 3. In db_migrator.py, change auto negotiation related DB field to latest one Signed-off-by: vaibhav-dahiya <[email protected]> Co-authored-by: Junchao-Mellanox <[email protected]>
This PR could not be cleanly cherry-picked to 202012. Please submit another PR. |
What I did
How I did it
How to verify it
Add unit tests for each new commands and db_migrator
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)