Skip to content

Commit

Permalink
Update driver.rb
Browse files Browse the repository at this point in the history
Fixing fgrehm#353 issue
  • Loading branch information
podarok authored and stucki committed Aug 25, 2015
1 parent 6718fed commit d2c032a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/vagrant-lxc/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ def bridge_is_in_use?(bridge_name)
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
Expand Down

0 comments on commit d2c032a

Please sign in to comment.