Class: VagrantPlugins::QEMU::Network::Base

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

Direct Known Subclasses

Socket, Tap, Vmnet

Instance Method Summary collapse

Instance Method Details

#build_netdev_args(id, options) ⇒ Array<String>

Build -netdev arguments for the advanced network NIC

Parameters:

  • id (String)

    netdev id (e.g. “net1”)

  • options (Hash)

    provider config options

Returns:

  • (Array<String>)

    QEMU command line arguments

Raises:

  • (NotImplementedError)


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

def build_netdev_args(id, options)
  raise NotImplementedError
end

#requires_sudo?Boolean

Whether this backend requires sudo to run QEMU

Returns:

  • (Boolean)


15
16
17
# File 'lib/vagrant-qemu/network/base.rb', line 15

def requires_sudo?
  false
end