-
Notifications
You must be signed in to change notification settings - Fork 215
[sfputilbase] Extend get_transceiver_change_event return event #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
6904fad
82e21fb
8527ed9
83d3a6a
ce01408
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1253,8 +1253,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', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
From design perspective,
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi Qi, |
||
| like {'-1':'system_not_ready'}. | ||
| """ | ||
| return | ||
Uh oh!
There was an error while loading. Please reload this page.