Skip to content

Commit

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

Signed-off-by: Mihir Patel <[email protected]>
  • Loading branch information
mihirpat1 authored Mar 25, 2024
1 parent 04a33e1 commit e35452b
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 e35452b

Please sign in to comment.