Intoroduce switch abstraction mechanism for (future) multi-node tests#218
Open
francoriba wants to merge 4 commits intoaparcar:mainfrom
Open
Intoroduce switch abstraction mechanism for (future) multi-node tests#218francoriba wants to merge 4 commits intoaparcar:mainfrom
francoriba wants to merge 4 commits intoaparcar:mainfrom
Conversation
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>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mdwith 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