diff --git a/lib/vagrant-lxc/action.rb b/lib/vagrant-lxc/action.rb index ab328eb..64bed0d 100644 --- a/lib/vagrant-lxc/action.rb +++ b/lib/vagrant-lxc/action.rb @@ -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 diff --git a/lib/vagrant-lxc/action/network.rb b/lib/vagrant-lxc/action/network.rb deleted file mode 100644 index 5e1e7d7..0000000 --- a/lib/vagrant-lxc/action/network.rb +++ /dev/null @@ -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