Skip to content

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

Merged
lguohan merged 3 commits intosonic-net:masterfrom
lguohan:po5
Aug 12, 2020
Merged

[teamshow]: refactor teamshow to use state db information#1049
lguohan merged 3 commits intosonic-net:masterfrom
lguohan:po5

Conversation

@lguohan
Copy link
Copy Markdown
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)

@lguohan lguohan requested review from jleveque and prsunny August 12, 2020 07:48
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
Copy Markdown

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>
Comment thread show/portchannel.py
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.

2 participants