Remove custom network action since we are not going to support it for a while
This commit is contained in:
parent
04cdd1f3db
commit
670a43da00
2 changed files with 0 additions and 26 deletions
|
@ -11,7 +11,6 @@ require 'vagrant-lxc/action/forced_halt'
|
||||||
require 'vagrant-lxc/action/forward_ports'
|
require 'vagrant-lxc/action/forward_ports'
|
||||||
require 'vagrant-lxc/action/handle_box_metadata'
|
require 'vagrant-lxc/action/handle_box_metadata'
|
||||||
require 'vagrant-lxc/action/is_running'
|
require 'vagrant-lxc/action/is_running'
|
||||||
require 'vagrant-lxc/action/network'
|
|
||||||
require 'vagrant-lxc/action/setup_package_files'
|
require 'vagrant-lxc/action/setup_package_files'
|
||||||
require 'vagrant-lxc/action/share_folders'
|
require 'vagrant-lxc/action/share_folders'
|
||||||
|
|
||||||
|
@ -49,7 +48,6 @@ module Vagrant
|
||||||
# b.use PrepareForwardedPortCollisionParams
|
# b.use PrepareForwardedPortCollisionParams
|
||||||
# b.use ClearSharedFolders
|
# b.use ClearSharedFolders
|
||||||
b.use ShareFolders
|
b.use ShareFolders
|
||||||
b.use Network
|
|
||||||
b.use Vagrant::Action::Builtin::SetHostname
|
b.use Vagrant::Action::Builtin::SetHostname
|
||||||
# b.use Customize
|
# b.use Customize
|
||||||
b.use ForwardPorts
|
b.use ForwardPorts
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in a new issue