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 y-cable driver for simulated mux #213

Merged
merged 9 commits into from
Aug 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
'sonic_y_cable',
'sonic_y_cable.credo',
'sonic_y_cable.broadcom',
'sonic_y_cable.microsoft'
],
# NOTE: Install also depends on sonic-config-engine for portconfig.py
# This dependency should be eliminated by moving portconfig.py
Expand Down
18 changes: 18 additions & 0 deletions sonic_y_cable/microsoft/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Design of y-cable driver implemented multiple vendor API for mux simulator

The mux simulator exposes a set of APIs for the client. To access the APIs, the client needs to know some key information:
1. The mux simulator server IP and port
2. The vm_set information
3. The port index

Port index is know to the y-cable driver. So, we need to pass items #1-#3 to the y-cable driver. We can update the existing [test_inject_y_cable_simulator_client](https://github.com/Azure/sonic-mgmt/blob/master/tests/test_pretest.py#L182) test case to pass server IP/port and vm_set information to the DUT during pretest.

Simply create a json file to `/etc/sonic/mux_simulator.json` with content like
```
{
"server_ip": "192.168.0.10",
"server_port": "8000",
"vm_set": "vms17-7",
"side": "upper_tor"
}
```
Empty file.
Loading