1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-09-18 15:28:10 +00:00

qemu: Add MACVTAP support

The networking device structure now supports MACVTAP.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2016-09-17 00:40:30 +02:00
parent 6d7dfa04bf
commit 3908185ccd

@@ -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
}