-
-
Notifications
You must be signed in to change notification settings - Fork 238
qemudriver: add support for netdev option in add_port_forward
#1391
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
Conversation
|
I'm not sure if this feature is to OpenWrt specific |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1391 +/- ##
======================================
Coverage 45.2% 45.2%
======================================
Files 174 174
Lines 13743 13747 +4
======================================
+ Hits 6212 6221 +9
+ Misses 7531 7526 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
Looks good otherwise. Please fix the typo, rebase and mark it as "ready for review". |
sjg20
left a comment
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
|
@jluebbe this should be ready now, please have another look, thanks |
Bastian-Krause
left a comment
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.
What about hostfwd_remove? Doesn't that need the netdev parameter, too?
|
Thanks @Bastian-Krause I incorporated your suggestions |
71b2aff to
4711802
Compare
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 <mail@aparcar.org> [bst: rebased, prevent double space in QMP command, adjust commit message to fit labgrid's style] Signed-off-by: Bastian Krause <bst@pengutronix.de>
4711802 to
f9697e6
Compare
|
Force-pushed: rebased, prevent double space in QMP command, adjust commit subject to fit labgrid's style |
|
🍿 |
Description
In case there are more
usernetwork 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