Show dom_capability information in command: "show interfaces transceiver eeprom" #3620
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What I did
Display the DOM capability in defined in "show interfaces transceiver eeprom"
How I did it
The dom_capability has already stored in STATE_DB. Read the data from STATE_DB and display
How to verify it
admin@sonic:~$ show int trans eeprom
Ethernet0: SFP EEPROM detected
Application Advertisement: N/A
Connector: No separable connector
......
DOM Capability:
Rx_power_support: False
Temp_support: False
Tx_power_support: False
Voltage_support: False
.......
Encoding: 64B/66B
Extended Identifier: Power Class 1 Module (1.5W max.), No CLEI code present in Page 02h, No CDR in TX, No CDR in RX
....
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)