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 code for warm reboot to work with FW controlled ports #15

Closed
wants to merge 1 commit into from

Conversation

dbarashinvd
Copy link
Owner

Why I did it

fix the code to work also after warm reboot
to work with FW controlled ports
in warm reboot the control state sysfs of each port does not change unlike reboot or fast boot

Work item tracking
  • Microsoft ADO (number only):

How I did it

check procfs cmdline if warm reboot done
this is due to the fact pmon dont recognize warm reboot when it's taking place since pmon is loaded after warm reboot is finished
if warm reboot done - check in static detection part for each port if it's FW controlled. if so - leave it this way and stop the state machine flow (set it to final state).

How to verify it

boot a switch with CMIS host management with at least one FW controlled port (non active cables or non cmis cables)
then run warm reboot
verify no errors of sysfs reading appears for control sysfs

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)

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.

1 participant