Update driver.rb
Fixing https://github.com/fgrehm/vagrant-lxc/issues/353 issue
This commit is contained in:
parent
6718fed241
commit
d2c032a073
1 changed files with 5 additions and 0 deletions
|
@ -172,6 +172,11 @@ module Vagrant
|
||||||
end
|
end
|
||||||
|
|
||||||
def remove_bridge(bridge_name)
|
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"
|
@logger.info "Checking whether bridge #{bridge_name} exists"
|
||||||
brctl_output = `ifconfig -a | grep -q #{bridge_name}`
|
brctl_output = `ifconfig -a | grep -q #{bridge_name}`
|
||||||
return if $?.to_i != 0
|
return if $?.to_i != 0
|
||||||
|
|
Loading…
Reference in a new issue