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

Add extra logic in test_sfputil to make sure modules are restored #13108 #15543

Merged

Conversation

longhuan-cisco
Copy link
Contributor

Description of PR

Summary:
Manual cherry-pick of #13108 to 202405 branch

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

…nic-net#13108)

* Add extra logic in test_sfputil to make sure modules are restored

* Fix flake8 E125

* Use config dom enable/disable

* flake8 fix

* Use context manager and remove unnecessary sleep

* Handle breakout case propperly and increase wait_time

* Add skip for lpmode handling and fix for breakout

* Restore dom_polling to origional

* Add comments

* Add lpmode on/off seq, remove lpmode restore logic and avoid starting admin-down ports

* Fix typo for lpmode on/off
Copy link
Contributor

@wsycqyz wsycqyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am ok with the pr

Copy link
Collaborator

@kevinskwang kevinskwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kevinskwang kevinskwang merged commit 51f6c59 into sonic-net:202405 Nov 15, 2024
13 checks passed
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.

3 participants