From 06bbc7a5ef231518a8cf8d41d642660e8e6e3741 Mon Sep 17 00:00:00 2001 From: Andriy Date: Mon, 23 Mar 2015 11:03:22 +0200 Subject: [PATCH] Update gc_private_network_bridges.rb --- lib/vagrant-lxc/action/gc_private_network_bridges.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/vagrant-lxc/action/gc_private_network_bridges.rb b/lib/vagrant-lxc/action/gc_private_network_bridges.rb index dc33a92..c6d358e 100644 --- a/lib/vagrant-lxc/action/gc_private_network_bridges.rb +++ b/lib/vagrant-lxc/action/gc_private_network_bridges.rb @@ -35,8 +35,9 @@ module Vagrant if ! driver.bridge_is_in_use?(bridge) env[:ui].info I18n.t("vagrant_lxc.messages.remove_bridge", name: bridge) - # TODO: Output that bridge is being removed - driver.remove_bridge(bridge) + if bridge_name != "lxcbr0" + driver.remove_bridge(bridge) + end end end end