Skip to content

Commit

Permalink
add more error code to get_transceiver_change_event (sonic-net#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
keboliu authored and jleveque committed Aug 6, 2019
1 parent af6b631 commit e079b09
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sonic_platform_base/sonic_sfp/sfputilbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -1261,8 +1261,12 @@ def get_transceiver_change_event(self, timeout=0):
event. When timeout is non-zero, the function can also return when the timer expires.
When timer expires, the return status is True and events is empty.
:returns: (status, events)
:status: Boolean, True if call successful, False if not;
:events: dictionary for pysical port index and the SFP status,
status='1' represent plug in, '0' represent plug out like {'0': '1', '31':'0'}
:status: Boolean, True if call successful and no system level event/error occurred,
False if call not success or system level event/error occurred.
:events: dictionary for physical port index and the SFP status,
status='1' represent plug in, '0' represent plug out like {'0': '1', '31':'0'}
when it comes to system level event/error, the index will be '-1',
and status can be 'system_not_ready', 'system_become_ready', 'system_fail',
like {'-1':'system_not_ready'}.
"""
return

0 comments on commit e079b09

Please sign in to comment.