Skip to content

Commit

Permalink
[Chassis base] Add sfp error event definition (sonic-net#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
keboliu authored Apr 16, 2020
1 parent 116eeec commit f1f00ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sonic_platform_base/chassis_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,15 @@ def get_change_event(self, timeout=0):
Ex. {'fan':{'0':'0', '2':'1'}, 'sfp':{'11':'0'}}
indicates that fan 0 has been removed, fan 2
has been inserted and sfp 11 has been removed.
Specifically for SFP event, besides SFP plug in and plug out,
there are some other error event could be raised from SFP, when
these error happened, SFP eeprom will not be avalaible, XCVRD shall
stop to read eeprom before SFP recovered from error status.
status='2' I2C bus stuck,
status='3' Bad eeprom,
status='4' Unsupported cable,
status='5' High Temperature,
status='6' Bad cable.
"""
raise NotImplementedError

0 comments on commit f1f00ec

Please sign in to comment.