Class: VagrantPlugins::QEMU::Network::Tap
- Inherits:
-
Base
- Object
- Base
- VagrantPlugins::QEMU::Network::Tap
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
Methods inherited from Base
#launch_prefix, #preflight!
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
14
15
16
|
# File 'lib/vagrant-qemu/network/tap.rb', line 14
def requires_sudo?
true
end
|