Skip to content
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

Fix Module Detection Flow in modules_mgmt thread, to check power_on before power_good #28

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ def __init__(self, namespaces=None, main_thread_stop_event=None, q=None):
# SFPs state machine
def get_sm_func(self, sm, port):
SFP_SM_ENUM = {STATE_HW_NOT_PRESENT: self.check_if_hw_present
, STATE_HW_PRESENT: self.check_if_module_available
, STATE_MODULE_AVAILABLE: self.check_if_power_on
, STATE_HW_PRESENT: self.check_if_power_on
, STATE_NOT_POWERED: self.power_on_module
, STATE_POWERED: self.check_module_type
, STATE_POWERED: self.check_if_module_available
, STATE_MODULE_AVAILABLE: self.check_module_type
, STATE_FW_CONTROL: self.save_module_control_mode
, STATE_SW_CONTROL: self.save_module_control_mode
, STATE_ERROR_HANDLER: STATE_ERROR_HANDLER
Expand Down