summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/vyatta-bridge.pl4
1 files changed, 4 insertions, 0 deletions
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;