From 3908185ccd0382243899977a595d91dd8f22f150 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Sat, 17 Sep 2016 00:40:30 +0200 Subject: [PATCH] qemu: Add MACVTAP support The networking device structure now supports MACVTAP. Signed-off-by: Samuel Ortiz --- qemu.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qemu.go b/qemu.go index d835a06a2..42a2a9d7e 100644 --- a/qemu.go +++ b/qemu.go @@ -319,6 +319,9 @@ type NetDeviceType string const ( // TAP is a TAP networking device type. TAP NetDeviceType = "tap" + + // MACVTAP is a MAC virtual TAP networking device type. + MACVTAP = "macvtap" ) // NetDevice represents a guest networking device @@ -361,6 +364,8 @@ func (netdev NetDevice) Valid() bool { switch netdev.Type { case TAP: return true + case MACVTAP: + return true default: return false }