Skip to content

Commit

Permalink
Modify "show interface transceiver status" CLI to show SW cmis state (s…
Browse files Browse the repository at this point in the history
…onic-net#3238)

Signed-off-by: Mihir Patel <[email protected]>
  • Loading branch information
mihirpat1 authored and mssonicbld committed Mar 26, 2024
1 parent fb4a090 commit d6b1fbb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/mock_tables/state_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@
"rx_sig_power_max": "40"
},
"TRANSCEIVER_STATUS|Ethernet44":{
"cmis_state": "READY",
"DP1State": "DataPathActivated",
"DP2State": "DataPathActivated",
"DP3State": "DataPathActivated",
Expand Down
1 change: 1 addition & 0 deletions tests/sfp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@

test_qsfp_dd_status_output = """\
Ethernet44:
CMIS State (SW): READY
Tx fault flag on media lane 1: False
Tx fault flag on media lane 2: False
Tx fault flag on media lane 3: False
Expand Down
1 change: 1 addition & 0 deletions utilities_common/sfp_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
# For non-CMIS, only first 1 or 4 lanes are applicable.
# For CMIS, all 8 lanes are applicable.
QSFP_STATUS_MAP = {
'cmis_state': 'CMIS State (SW)',
'txfault1': 'Tx fault flag on media lane 1',
'txfault2': 'Tx fault flag on media lane 2',
'txfault3': 'Tx fault flag on media lane 3',
Expand Down

0 comments on commit d6b1fbb

Please sign in to comment.