Skip to content

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

Merged
kevinskwang merged 1 commit intosonic-net:202405from
longhuan-cisco:new_sfputil_reset_dc_to_202405
Nov 15, 2024
Merged

Add extra logic in test_sfputil to make sure modules are restored #13108#15543
kevinskwang merged 1 commit intosonic-net:202405from
longhuan-cisco:new_sfputil_reset_dc_to_202405

Conversation

@longhuan-cisco
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

@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
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