From 7da003e9e1c85741be72b344badf5e1d371c4e13 Mon Sep 17 00:00:00 2001 From: Alex Harpin <development@landsofshadow.co.uk> Date: Mon, 19 Oct 2015 07:40:14 +0100 Subject: vyatta-cfg-system: allow bridge slaves to be moved from empty bridges Allow interfaces to be moved from one bridge to another when they are already configured as part of an empty bridge-group. Bug #476 http://bugzilla.vyos.net/show_bug.cgi?id=476 --- scripts/vyatta-bridge.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/vyatta-bridge.pl b/scripts/vyatta-bridge.pl index a777b843..36d59212 100755 --- a/scripts/vyatta-bridge.pl +++ b/scripts/vyatta-bridge.pl @@ -58,6 +58,10 @@ if (!defined($newbridge) && ($action ne 'SET')) { $action = 'DELETE'; } +if (!defined($oldbridge) && ($action ne 'DELETE')) { + $action = 'SET'; +} + if ($action eq 'SET') { die "Error: $ifname: not in a bridge-group\n" unless $newbridge; -- cgit v1.2.3