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 fd5fad8a..bb0d41c3 100755
--- a/scripts/vyatta-bridge.pl
+++ b/scripts/vyatta-bridge.pl
@@ -64,6 +64,10 @@ if ( $action eq 'SET' ) {
die "Error: Can not add interface $ifname with addresses to bridge\n"
if (@address);
+ my @vrrp = $cfg->listNodes('vrrp vrrp-group');
+ die "Error: Can not add interface $ifname with VRRP to bridge\n"
+ if (@vrrp);
+
print "Adding interface $ifname to bridge $newbridge\n";
add_bridge_port($newbridge, $ifname, $cost, $priority);