Update driver.rb

Fixing https://github.com/fgrehm/vagrant-lxc/issues/353 issue
This commit is contained in:
Andriy 2015-03-16 19:34:40 +02:00 committed by Michael Stucki
parent 6718fed241
commit d2c032a073

View file

@ -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