-
Notifications
You must be signed in to change notification settings - Fork 174
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
qemudriver: add support for netdev option in add_port_forward
#1391
base: master
Are you sure you want to change the base?
Conversation
In case there are more `user` network interfaces defined, allow to specific the netdev. If omitted, an empty string is passed and the behaviour is like before. This is useful for testing OpenWrt inside a QEMU instance, since OpenWrt expects by default a LAN interface on eth0 and a WAN interface (with uplink) on eth1. Previously the port forward would always be added to eth1, which doesn't support SSH due to firewall policies. By adding the netdev to the forward function, the SSHDriver works as expected. Signed-off-by: Paul Spooren <[email protected]>
I'm not sure if this feature is to OpenWrt specific |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1391 +/- ##
======================================
Coverage 62.2% 62.2%
======================================
Files 164 164
Lines 12191 12198 +7
======================================
+ Hits 7584 7589 +5
- Misses 4607 4609 +2 ☔ View full report in Codecov by Sentry. |
@@ -14,6 +14,10 @@ New Features in 24.0 | |||
used to pass additional options for the disk directly to QEMU | |||
- labgrid-client now has a ``write-files`` subcommand to copy files onto mass | |||
storage devices. | |||
- The `QEMUDriver` now supports a ``netdev`` argumet which can be added to the | |||
``tadd_port_forward`` in case there are more than one network interfaces |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``tadd_port_forward`` in case there are more than one network interfaces | |
``add_port_forward`` in case there are more than one network interfaces |
Looks good otherwise. Please fix the typo, rebase and mark it as "ready for review". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with typo fixed
Description
In case there are more
user
network interfaces defined, allow to specific the netdev. If omitted, an empty string is passed and the behaviour is like before.This is useful for testing OpenWrt inside a QEMU instance, since OpenWrt expects by default a LAN interface on eth0 and a WAN interface (with uplink) on eth1. Previously the port forward would always be added to eth1, which doesn't support SSH due to firewall policies. By adding the netdev to the forward function, the SSHDriver works as expected.
Checklist