diff options
-rwxr-xr-x | scripts/vyatta-bridge.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vyatta-bridge.pl b/scripts/vyatta-bridge.pl index 35b28fc9..a777b843 100755 --- a/scripts/vyatta-bridge.pl +++ b/scripts/vyatta-bridge.pl @@ -54,6 +54,10 @@ my $newbridge = $cfg->returnValue('bridge-group bridge'); my $cost = $cfg->returnValue('bridge-group cost'); my $priority = $cfg->returnValue('bridge-group priority'); +if (!defined($newbridge) && ($action ne 'SET')) { + $action = 'DELETE'; +} + if ($action eq 'SET') { die "Error: $ifname: not in a bridge-group\n" unless $newbridge; |