summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2011-12-30 10:18:27 -0800
committerStephen Hemminger <shemminger@vyatta.com>2011-12-30 11:09:01 -0800
commit3b8eb8c7f36ca609419acd7b69f6bc2b0743ae6b (patch)
tree731349aa837972ab7b95f634a59510c603eb437f
parentf1d0ff23342183e5e2732002a8ad969f4fe00ec3 (diff)
downloadvyatta-cfg-quagga-3b8eb8c7f36ca609419acd7b69f6bc2b0743ae6b.tar.gz
vyatta-cfg-quagga-3b8eb8c7f36ca609419acd7b69f6bc2b0743ae6b.zip
bridge: check for VRRP
Do not allow interface with VRRP defined to be added to a bridge.
-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);