Skip to content

Commit e35452b

Browse files
authored
Modify "show interface transceiver status" CLI to show SW cmis state (#3238)
Signed-off-by: Mihir Patel <[email protected]>
1 parent 04a33e1 commit e35452b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tests/mock_tables/state_db.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@
374374
"rx_sig_power_max": "40"
375375
},
376376
"TRANSCEIVER_STATUS|Ethernet44":{
377+
"cmis_state": "READY",
377378
"DP1State": "DataPathActivated",
378379
"DP2State": "DataPathActivated",
379380
"DP3State": "DataPathActivated",

tests/sfp_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@
304304

305305
test_qsfp_dd_status_output = """\
306306
Ethernet44:
307+
CMIS State (SW): READY
307308
Tx fault flag on media lane 1: False
308309
Tx fault flag on media lane 2: False
309310
Tx fault flag on media lane 3: False

utilities_common/sfp_helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
# For non-CMIS, only first 1 or 4 lanes are applicable.
4848
# For CMIS, all 8 lanes are applicable.
4949
QSFP_STATUS_MAP = {
50+
'cmis_state': 'CMIS State (SW)',
5051
'txfault1': 'Tx fault flag on media lane 1',
5152
'txfault2': 'Tx fault flag on media lane 2',
5253
'txfault3': 'Tx fault flag on media lane 3',

0 commit comments

Comments
 (0)