Do not remove system bridge virbr0

This commit is contained in:
Michael Stucki 2015-08-25 14:36:59 +02:00 committed by Franz Pletz
parent 3257bd25bb
commit 9e5637a9fe
2 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ module Vagrant
if ! driver.bridge_is_in_use?(bridge)
env[:ui].info I18n.t("vagrant_lxc.messages.remove_bridge", name: bridge)
if bridge != "lxcbr0"
unless ['lxcbr0', 'virbr0'].include? bridge
driver.remove_bridge(bridge)
end
end

View file

@ -191,7 +191,7 @@ module Vagrant
end
def remove_bridge(bridge_name)
if bridge_name == "lxcbr0"
if ['lxcbr0', 'virbr0'].include? bridge_name
@logger.info "Skipping removal system bridge #{bridge_name}"
return
end