Class: Vagrant::LXC::Action::Network
- Inherits:
-
BaseAction
- Object
- BaseAction
- Vagrant::LXC::Action::Network
- Defined in:
- lib/vagrant-lxc/action/network.rb
Instance Method Summary collapse
Methods inherited from BaseAction
Constructor Details
This class inherits a constructor from Vagrant::LXC::Action::BaseAction
Instance Method Details
#call(env) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/vagrant-lxc/action/network.rb', line 5 def call(env) # TODO: Validate network configuration prior to anything below @env = env env[:machine].config.vm.networks.each do |type, | # We only handle private networks next if type != :private_network env[:machine].provider_config.start_opts << "lxc.network.ipv4=#{[:ip]}/24" end # Continue the middleware chain. @app.call(env) end |