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

Update test_pretest to inject mux_simulator.json for simulated y_cable driver #4106

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

wangxin
Copy link
Collaborator

@wangxin wangxin commented Aug 23, 2021

Description of PR

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 201911

Approach

What is the motivation for this PR?

The simulated y_cable driver needs configurations of the mux simulator to work.
Process xcvrd in pmon will try to load simulated y_cable driver if
/etc/sonic/mux_simulator.json is found on DUT.

How did you do it?

This change updated the test_pretest.py script to inject /etc/sonic/mux_simulator.json to DUT.

This change can co-exist with the code for injecting 'y_cable_simulator_client.py'
to DUT. Process xcvrd will decide which one to load.

How did you verify/test it?

Use run_tests.sh to run decap/test_decap.py on dual ToR testbed without skipping pretest.

Any platform specific information?

Dual ToR only.

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

Documentation

…e driver

The simulated y_cable driver needs configurations of the mux simulator to work.
Process xcvrd in pmon will try to load simulated y_cable driver if
/etc/sonic/mux_simulator.json is found on DUT. This change updated the
test_pretest.py script to inject /etc/sonic/mux_simulator.json to DUT.

This change can co-exist with the code for injecting 'y_cable_simulator_client.py'
to DUT. Process xcvrd will decide which one to load.

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
@wangxin wangxin requested a review from a team as a code owner August 23, 2021 10:27
@wangxin wangxin merged commit 542f0c1 into sonic-net:master Aug 25, 2021
@wangxin wangxin deleted the inje-mux-simulator-conf branch September 9, 2021 08:07
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
…e driver (sonic-net#4106)

What is the motivation for this PR?
The simulated y_cable driver needs configurations of the mux simulator to work.
Process xcvrd in pmon will try to load simulated y_cable driver if
/etc/sonic/mux_simulator.json is found on DUT.

How did you do it?
This change updated the test_pretest.py script to inject /etc/sonic/mux_simulator.json to DUT.

This change can co-exist with the code for injecting 'y_cable_simulator_client.py'
to DUT. Process xcvrd will decide which one to load.

How did you verify/test it?
Use run_tests.sh to run decap/test_decap.py on dual ToR testbed without skipping pretest.

Any platform specific information?
Dual ToR only.

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
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