Skip to content

[ CLI ]Refactor show interface transceiver cli command#471

Merged
jleveque merged 6 commits intosonic-net:masterfrom
keboliu:refactor-show-sfp
Mar 11, 2019
Merged

[ CLI ]Refactor show interface transceiver cli command#471
jleveque merged 6 commits intosonic-net:masterfrom
keboliu:refactor-show-sfp

Conversation

@keboliu
Copy link
Copy Markdown
Collaborator

@keboliu keboliu commented Feb 26, 2019

This PR has a dependency on sonic-net/sonic-platform-common#22 and sonic-net/sonic-platform-daemons#24

- What I did
Refactor "show interface transceiver eeprom" and "show interface transceiver presence" to get data from state db instead of access hw directly.
Detail info please refer to the design doc: https://github.com/Azure/SONiC/blob/master/doc/pmon/pmon-enhancement-design.md

also add cli vs test for these two commands.

- How I did it
Add a new scripts "sfpshow", in this scripts get sfp data from state db and convert it to cli output.

- How to verify it
run these two cli on sonic switch.

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

@keboliu keboliu changed the title Refactor show sfp [ CLI ]Refactor show interface transceiver cli command Feb 26, 2019
@keboliu
Copy link
Copy Markdown
Collaborator Author

keboliu commented Feb 26, 2019

retest this please

@jleveque
Copy link
Copy Markdown
Contributor

jleveque commented Mar 6, 2019

Please address new conflicts.

@keboliu
Copy link
Copy Markdown
Collaborator Author

keboliu commented Mar 11, 2019

retest this please

@jleveque jleveque merged commit af95a96 into sonic-net:master Mar 11, 2019
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