-
Notifications
You must be signed in to change notification settings - Fork 0
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
temp commit for independent modules code #8
Conversation
1f4d884
to
599b44f
Compare
599b44f
to
4b85757
Compare
with final decision per port if it is FW or SW control
70c462f
to
90aa94e
Compare
and dynamic module detection
workaround for FW issue of eeprom access blocked for passive cables
added common code in functions added power_good sysfs countinga and poll dummy read added chassis thread destructor commented code
@@ -123,6 +126,12 @@ def __init__(self): | |||
self._RJ45_port_inited = False | |||
self._RJ45_port_list = None | |||
|
|||
self.threads = [] | |||
self.modules_mgmt_thread = threading.Thread() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.modules_mgmt_thread = None
logger.log_info("timerTask waiting_modules_list after deletion: {}".format(self.waiting_modules_list)) | ||
time.sleep(1) | ||
i += 1 | ||
def get_sysfs_legacy_ethernet_port_fd(self, sysfs_fd, port): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change it and remove port breakout
logger.log_info("add_port_to_wait_reset waiting_list after adding: {}".format(self.waiting_modules_list)) | ||
|
||
def add_ports_state_to_state_db(self, dynamic=False): | ||
state_db = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use global state_db instance
logger.log_info(f"{detection_method} detection putting sfp_changes_dict {self.sfp_changes_dict} " | ||
f"in modules changes queue...") | ||
try: | ||
self.modules_queue_lock.acquire() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove the queue lock
platform/mellanox/mlnx-platform-api/sonic_platform/modules_mgmt.py
Outdated
Show resolved
Hide resolved
since it does not return None anymore
and fix some issues
…shi_indep_mode_temp
…new table added to Redis DB
Why I did it
Work item tracking
How I did it
How to verify it
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)