Method: Vagrant::Action::VM::Network#create_hostonly_network

Defined in:
lib/vagrant/action/vm/network.rb

#create_hostonly_network(config) ⇒ Object

Creates a new hostonly network that matches the network requested by the given host-only network configuration.



270
271
272
273
274
275
276
277
# File 'lib/vagrant/action/vm/network.rb', line 270

def create_hostonly_network(config)
  # Create the options that are going to be used to create our
  # new network.
  options = config.dup
  options[:ip] = options[:adapter_ip]

  @env[:vm].driver.create_host_only_network(options)
end