Skip to content

Commit f1f00ec

Browse files
authored
[Chassis base] Add sfp error event definition (#80)
1 parent 116eeec commit f1f00ec

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sonic_platform_base/chassis_base.py

+9
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,15 @@ def get_change_event(self, timeout=0):
433433
Ex. {'fan':{'0':'0', '2':'1'}, 'sfp':{'11':'0'}}
434434
indicates that fan 0 has been removed, fan 2
435435
has been inserted and sfp 11 has been removed.
436+
Specifically for SFP event, besides SFP plug in and plug out,
437+
there are some other error event could be raised from SFP, when
438+
these error happened, SFP eeprom will not be avalaible, XCVRD shall
439+
stop to read eeprom before SFP recovered from error status.
440+
status='2' I2C bus stuck,
441+
status='3' Bad eeprom,
442+
status='4' Unsupported cable,
443+
status='5' High Temperature,
444+
status='6' Bad cable.
436445
"""
437446
raise NotImplementedError
438447

0 commit comments

Comments
 (0)