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

temp commit for independent modules code #8

Closed
wants to merge 28 commits into from

Conversation

dbarashinvd
Copy link
Owner

Why I did it

Work item tracking
  • Microsoft ADO (number only):

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

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)

@dbarashinvd dbarashinvd force-pushed the dbarashi_indep_mode_temp branch 3 times, most recently from 1f4d884 to 599b44f Compare September 11, 2023 10:45
with final decision per port if it is FW or SW control
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()

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):

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

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()

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants