diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2019-01-07 16:45:33 +0100 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2019-01-08 14:34:08 +0100 |
commit | 2b5da0fc18215febc4d982ed298e9be4485a7789 (patch) | |
tree | a6315602e4900742cb88ce5a20287c403658241b /lavalab-gen.py | |
parent | 866fbb4ed9f7bcc86900ab48f400a29d59013fa9 (diff) |
lavalab-gen.py: Permit qemu to use TAP devices
For full networking capacity, qemu need to access TAP devices.
This patch adds the choice of use it via the tap keyword.
Diffstat (limited to 'lavalab-gen.py')
-rwxr-xr-x | lavalab-gen.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py index e814e5e..378f40c 100755 --- a/lavalab-gen.py +++ b/lavalab-gen.py @@ -437,6 +437,11 @@ def main(): if use_kvm: dockcomp_add_device(dockcomp, worker_name, "/dev/kvm:/dev/kvm") # board specific hacks + use_tap = False + if "tap" in board: + use_tap = board["tap"] + if use_tap: + dockcomp_add_device(dockcomp, worker_name, "/dev/net/tun:/dev/net/tun") if devicetype == "qemu" and not use_kvm: device_line += "{% set no_kvm = True %}\n" if "uart" in board: |