-
Notifications
You must be signed in to change notification settings - Fork 181
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 ability to jump in networkresource #1384
Comments
Labgrid already supports jumping over the exporter to the DUT for NetworkServiceExports, this is done by using the The other choice is to ship a correctly configured SSH configuration which includes the correct |
No, I meant specifying a network connection where you essentially have two targets, one is the DUT you want to connect to, but it might have a specific network connection and configuration where it is only available through another device which is part of the test setup. (like for example: devices with network connections only available through a PCI backplane) As you wrote this is currently possible by managing such a jump as a ssh configuration, but this would need to live on the client which I want to avoid because then each developer would need to specify this themselves. For example it currently can work like this: exporter config
and the client-side ssh config
I'd like it to become something like this: exporter config
|
The problem here is that proxymanager only allows setting a proxy globally (since it's requirements arose from the client CLI proxy requirement).
You can ship the SSH configuration with your test files and provide a wrapper script to access the second device. However here the ssh I am hesitant to add this because this duplicates functionality already found within SSH. IMO rolling out a working SSH config to developers would be a preferable option to handling this in labgrid. |
Hm, I can see your point about avoiding replicating features already found in SSH but I would also argue that this separation of configuration from the client is one of the main features of labgrid.
I'd put this feature into the connection manager class because there could be both - a proxy over the exporter which is managed in proxymanager and additional jumps to the target which are different per connection. I believe it could be implemented by adding |
It would be very nice to have the ability to specify SSH jumps for
NetworkResource
s.The main use-case would be where DUT's only have exposed networking to another specific device and not reachable directly from the client or exporter.
Would adding a
jumps
field toNetworkResouce
that contains a list of dicts specifying the jumps make sense?The text was updated successfully, but these errors were encountered: