Skip to content

Intoroduce switch abstraction mechanism for (future) multi-node tests#218

Open
francoriba wants to merge 4 commits intoaparcar:mainfrom
fcefyn-testbed:feat/switch-abstraction
Open

Intoroduce switch abstraction mechanism for (future) multi-node tests#218
francoriba wants to merge 4 commits intoaparcar:mainfrom
fcefyn-testbed:feat/switch-abstraction

Conversation

@francoriba
Copy link
Copy Markdown

@francoriba francoriba commented Apr 6, 2026

Hi!

This is a part/component of the solution we are building for multi node tests for libremesh.

With this you should be able to support dynamic VLAN switching when running tests that require a network topology change.

The idea is: some labs keep each DUT on its own VLAN by default, but multi-node tests (for wich we want to give support in near feature) need everyone on the same VLAN for a bit. So, the new fixtures talk to labgrid-switch-abstraction over ssh to move ports onto a shared VLAN (from a config file dut-config.yaml) and put them back when the session ends. There is a "Batch mode" so we don’t open one SSH session per DUT, making the toplogy change faster.

For lab owners that are not interested in running this future type of tests the setup will not be needed.

We've been testing this approach for libremesh oriented tests using a TP link switch and we think it's the best option since each test directly configures the topology it needs. Also created a basic driver for switches that use openwrt, but we have not tested it, so it might need some adjustments, please submit a PR for that if needed.

Also added a short doc in docs/switch-abstraction.md with how to wire up switch.conf, dut-config.yaml, and the env vars (let me know if you find it redundant)

Happy to hear any thoughts :P

Signed-off-by: Franco <franco.riba@mi.unc.edu.ar>
Signed-off-by: Franco <franco.riba@mi.unc.edu.ar>
…doc duplication

Signed-off-by: Franco <franco.riba@mi.unc.edu.ar>
Signed-off-by: Franco <franco.riba@mi.unc.edu.ar>
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.

1 participant