Skip to content
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

[show][config] cli refactor for muxcable with abstract class implementation from vendors #1722

Merged
merged 5 commits into from
Aug 25, 2021

Conversation

vdahiya12
Copy link
Contributor

@vdahiya12 vdahiya12 commented Jul 23, 2021

Signed-off-by: vaibhav-dahiya vdahiya@microsoft.com

What I did

this PR adds support for cli refactor which is done for abstract class implementation of muxcable which is provided by vendors.
detailed design doc can be found sonic-net/SONiC#757

How I did it

Added the changes in muxcable.py in show and config .

How to verify it

add unit-tests as well as run on a Arista-7050cx3 switch, run unit tests.

no change in outputs, just the functionality has changed.

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)

implementation from vendors.

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
@lgtm-com
Copy link

lgtm-com bot commented Jul 23, 2021

This pull request introduces 10 alerts when merging d29e556 into acb5d84 - view on LGTM.com

new alerts:

  • 2 for Testing equality to None
  • 2 for Unused local variable
  • 2 for Unused import
  • 2 for Variable defined multiple times
  • 2 for Wrong number of arguments in a call

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
@lgtm-com
Copy link

lgtm-com bot commented Jul 29, 2021

This pull request introduces 7 alerts when merging 88caade into 679a4ba - view on LGTM.com

new alerts:

  • 2 for Testing equality to None
  • 2 for Unused local variable
  • 2 for Variable defined multiple times
  • 1 for Unused import

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
tahmed-dev
tahmed-dev previously approved these changes Aug 6, 2021
SELECT_TIMEOUT = 1000

# The empty namespace refers to linux host namespace.
EMPTY_NAMESPACE = ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: what about LINUX_HOST_NAMESPACE?

@vdahiya12 vdahiya12 merged commit 37039f5 into sonic-net:master Aug 25, 2021
@qiluo-msft
Copy link
Contributor

This commit could not be cleanly cherry-pick to 202012. Please submit another PR.

vdahiya12 added a commit to vdahiya12/sonic-utilities that referenced this pull request Aug 25, 2021
…tation from vendors (sonic-net#1722)

Signed-off-by: vaibhav-dahiya vdahiya@microsoft.com

What I did
this PR adds support for cli refactor which is done for abstract class implementation of muxcable which is provided by vendors.
detailed design doc can be found sonic-net/SONiC#757

How I did it
Added the changes in muxcable.py in show and config .

How to verify it
add unit-tests as well as run on a Arista-7050cx3 switch, run unit tests.

no change in outputs, just the functionality has changed.
Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
vdahiya12 added a commit to vdahiya12/sonic-utilities that referenced this pull request Aug 25, 2021
…tation from vendors (sonic-net#1722)

Signed-off-by: vaibhav-dahiya vdahiya@microsoft.com

What I did
this PR adds support for cli refactor which is done for abstract class implementation of muxcable which is provided by vendors.
detailed design doc can be found sonic-net/SONiC#757

How I did it
Added the changes in muxcable.py in show and config .

How to verify it
add unit-tests as well as run on a Arista-7050cx3 switch, run unit tests.

no change in outputs, just the functionality has changed.
Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
vdahiya12 added a commit that referenced this pull request Aug 26, 2021
…tation from vendors (#1722) (#1782)

Merging this in 202012 branch because there was a merge conflict in original PR while cherry-picking
#1722

#### What I did
this PR adds support for cli refactor which is done for abstract class implementation of muxcable which is provided by vendors.
detailed design doc can be found sonic-net/SONiC#757

#### How I did it
Added the changes in muxcable.py in show and config . 

#### How to verify it
add unit-tests as well as run on a Arista-7050cx3 switch, run unit tests. 

no change in outputs, just the logic has changed.
Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 18, 2022
…627)

7041400 [config reload] Call systemctl reset-failed for snmp,telemetry,mgmt-framework services (sonic-net#1773) (sonic-net#1786)
399d370 Fix logic in RIF counters print (sonic-net#1732)
8329544 [vnet_route_check] don't hardcode prefix length of /24 (sonic-net#1756)
193b028 [neighbor-advertiser] delete the tunnel maps appropriately (sonic-net#1663)
2c82bcf [neighbor_advertiser] Use existing tunnel if present for creating tunnel mappings (sonic-net#1589)
8e22960 [202012][Config] Update config command of Kdump. (sonic-net#1778)
be3e5c6 [show][config] cli refactor for muxcable with abstract class implementation from vendors (sonic-net#1722) (sonic-net#1782)
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
dd01491e4d167993b3a80517f737188151443a75 (HEAD -> 201911, origin/201911) [Monitor Vlan] Fix a typo in hostif (sonic-net#1722)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants