Remove custom network action since we are not going to support it for a while

This commit is contained in:
Fabio Rehm 2013-04-05 03:12:55 -03:00
parent 04cdd1f3db
commit 670a43da00
2 changed files with 0 additions and 26 deletions

View file

@ -11,7 +11,6 @@ require 'vagrant-lxc/action/forced_halt'
require 'vagrant-lxc/action/forward_ports'
require 'vagrant-lxc/action/handle_box_metadata'
require 'vagrant-lxc/action/is_running'
require 'vagrant-lxc/action/network'
require 'vagrant-lxc/action/setup_package_files'
require 'vagrant-lxc/action/share_folders'
@ -49,7 +48,6 @@ module Vagrant
# b.use PrepareForwardedPortCollisionParams
# b.use ClearSharedFolders
b.use ShareFolders
b.use Network
b.use Vagrant::Action::Builtin::SetHostname
# b.use Customize
b.use ForwardPorts

View file

@ -1,24 +0,0 @@
module Vagrant
module LXC
module Action
class Network
def initialize(app, env)
@app = app
end
def call(env)
@env = env
env[:machine].config.vm.networks.each do |type, options|
# We only handle private networks
next if type != :private_network
env[:machine].provider_config.start_opts << "lxc.network.ipv4=#{options[:ip]}/24"
end
# Continue the middleware chain.
@app.call(env)
end
end
end
end
end