-
Notifications
You must be signed in to change notification settings - Fork 659
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
[202012][sonic-utilities] CLI support for port auto negotiation #1817
Conversation
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
This pull request introduces 2 alerts when merging 863f1c5 into d03ba4f - view on LGTM.com new alerts:
|
Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
This pull request introduces 2 alerts when merging 6297d51 into d03ba4f - view on LGTM.com new alerts:
|
@prsunny @lguohan please don't merge yet. |
Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
This pull request introduces 2 alerts when merging d425dd4 into d03ba4f - view on LGTM.com new alerts:
|
This pull request introduces 2 alerts when merging 7cc0b39 into d03ba4f - view on LGTM.com new alerts:
|
Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
This pull request introduces 2 alerts when merging 6127d34 into d03ba4f - view on LGTM.com new alerts:
|
Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
This pull request introduces 2 alerts when merging 7ef0c31 into d03ba4f - view on LGTM.com new alerts:
|
Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
This pull request introduces 2 alerts when merging 65e2bb8 into d03ba4f - view on LGTM.com new alerts:
|
are we able to resolve the lgtm alert? |
This LGTM, is for mock purposes and needs to be fix. |
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.
Sorry that I couldn't post the comment earlier.
@@ -371,6 +371,16 @@ def prepare_dynamic_buffer_for_warm_reboot(self, buffer_pools=None, buffer_profi | |||
|
|||
return True | |||
|
|||
def migrate_config_db_port_table_for_auto_neg(self): |
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.
We don't need this changes in db_migrator
@@ -196,7 +197,7 @@ def test_mellanox_buffer_migrator_negative_nondefault_for_warm_reboot(self): | |||
self.mellanox_buffer_migrator_warm_reboot_runner(input_config_db, input_appl_db, expected_config_db, expected_appl_db, False) | |||
|
|||
|
|||
class TestInitConfigMigrator(object): | |||
class TestAutoNegMigrator(object): |
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 this test and changes
…1823) * [sonic-utilities]remove db_migrator logic for autoneg What I did This PR removes all the logic for db_migrator which went into #1817 , This is required because this will cause changing the logic to "0/1" to "on/off" in swss and cause a problem in upgrade. How I did it How to verify it autoneg enable/disable works with the implementation. Removing the db_migration logic so no check required Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
* 2a8957d 2021-09-14 | [202012][sonic-utilities] CLI support for port auto negotiation (sonic-net#1817) (HEAD, origin/202012) [vdahiya12] Signed-off-by: Guohan Lu <lguohan@gmail.com>
Add CLI support for port auto negotiation feature.
Add db_migrator change for auto negotiation feature
Add unit test cases for all changes
Add new subcommands to "config interface" command group to allow user configuring port auto negotiation
Add new subcommands to "show interfaces" command group to allow user show auto negotiation status
In db_migrator.py, change auto negotiation related DB field to latest one
Adding this PR because the cherry-pick from original PR #1568
has conflicts
What I did
How I did it
How to verify it
Ran the changes on Arista7050cx3 testbed
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)