Class: VagrantPlugins::QEMU::Network::Tap

Inherits:
Base
  • Object
show all
Defined in:
lib/vagrant-qemu/network/tap.rb

Overview

Linux TAP backend Requires pre-created tap device and bridge

Instance Method Summary collapse

Instance Method Details

#build_netdev_args(id, options) ⇒ Object



9
10
11
12
# File 'lib/vagrant-qemu/network/tap.rb', line 9

def build_netdev_args(id, options)
  tap_device = options[:tap_device] || "tap0"
  %W(-netdev tap,id=#{id},ifname=#{tap_device},script=no,downscript=no)
end

#requires_sudo?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/vagrant-qemu/network/tap.rb', line 14

def requires_sudo?
  true
end