From 670a43da0076573fe67adc5d07fab021cd377c5c Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Fri, 5 Apr 2013 03:12:55 -0300 Subject: [PATCH] Remove custom network action since we are not going to support it for a while --- lib/vagrant-lxc/action.rb | 2 -- lib/vagrant-lxc/action/network.rb | 24 ------------------------ 2 files changed, 26 deletions(-) delete mode 100644 lib/vagrant-lxc/action/network.rb 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