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

[teamshow]: refactor teamshow to use state db information #1049

Merged
merged 3 commits into from
Aug 12, 2020

Conversation

lguohan
Copy link
Contributor

@lguohan lguohan commented Aug 12, 2020

- What I did
previously, teamshow needs to read data from teamdctl command
output. As teamdmon daemon has been developed to put data into
state db. Now, teamshow can get data from state db.

Also remove teamshow command and incoporate as part of show
command.

Also add extensive unit tests

Signed-off-by: Guohan Lu lguohan@gmail.com

- How I did it
let teamshow read data from state db

- How to verify it
unit test and dut test

coverage

show/portchannel.py                           92      5    95%

- 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)

previously, teamshow needs to read data from teamdctl command
output. As teamdmon daemon has been developed to put data into
state db. Now, teamshow can get data from state db.

Also remove teamshow command and incoporate as part of show
command.

Also add extensive unit tests

Signed-off-by: Guohan Lu <lguohan@gmail.com>
@lgtm-com
Copy link

lgtm-com bot commented Aug 12, 2020

This pull request introduces 5 alerts when merging 40899c9bdc6e1d6362e8e5742db93e037c8191bb into 91986b7 - view on LGTM.com

new alerts:

  • 5 for Unused import

Signed-off-by: Guohan Lu <lguohan@gmail.com>
show/portchannel.py Outdated Show resolved Hide resolved
Signed-off-by: Guohan Lu <lguohan@gmail.com>
@lguohan lguohan merged commit 84b2c5b into sonic-net:master Aug 12, 2020
@lguohan lguohan deleted the po5 branch August 12, 2020 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants