From d2c032a0732c49b011ad0af351289ba6a6fbcb99 Mon Sep 17 00:00:00 2001 From: Andriy Date: Mon, 16 Mar 2015 19:34:40 +0200 Subject: [PATCH] Update driver.rb Fixing https://github.com/fgrehm/vagrant-lxc/issues/353 issue --- lib/vagrant-lxc/driver.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/vagrant-lxc/driver.rb b/lib/vagrant-lxc/driver.rb index 9fe0993..1f54377 100644 --- a/lib/vagrant-lxc/driver.rb +++ b/lib/vagrant-lxc/driver.rb @@ -172,6 +172,11 @@ module Vagrant end def remove_bridge(bridge_name) + if bridge_name == "lxcbr0" + @logger.info "Skipping removal system bridge #{bridge_name}" + return + end + @logger.info "Checking whether bridge #{bridge_name} exists" brctl_output = `ifconfig -a | grep -q #{bridge_name}` return if $?.to_i != 0