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

[dualtor]: Make force_active_tor a fixture #3096

Merged
merged 3 commits into from
Mar 5, 2021

Conversation

theasianpianist
Copy link
Contributor

  • Enables automatic teardown/cleanup

Signed-off-by: Lawrence Lee [email protected]

Description of PR

Summary:
Fixes # (issue)

Type of change

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

Approach

What is the motivation for this PR?

This util runs config mux mode active on a DUT, which may leave it in an unexpected state when starting the next test.

How did you do it?

Use the 'fixture yields function' pattern to enable automatic cleanup (running config mux mode auto for the affected ports during teardown)

How did you verify/test it?

Any platform specific information?

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

Documentation

* Enables automatic teardown/cleanup

Signed-off-by: Lawrence Lee <[email protected]>
@theasianpianist theasianpianist requested review from bingwang-ms and a team March 4, 2021 20:09
Copy link
Contributor

@vaibhavhd vaibhavhd left a comment

Choose a reason for hiding this comment

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

Minor comments, LGTM otherwise.

tests/common/dualtor/dual_tor_utils.py Outdated Show resolved Hide resolved
tests/common/dualtor/dual_tor_utils.py Outdated Show resolved Hide resolved
* Change internal function name
* Remove redundant check

Signed-off-by: Lawrence Lee <[email protected]>
@theasianpianist theasianpianist merged commit 1437820 into sonic-net:master Mar 5, 2021
@theasianpianist theasianpianist deleted the tor-switch-util branch March 5, 2021 18:24
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