From 3b8eb8c7f36ca609419acd7b69f6bc2b0743ae6b Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 30 Dec 2011 10:18:27 -0800 Subject: bridge: check for VRRP Do not allow interface with VRRP defined to be added to a bridge. --- scripts/vyatta-bridge.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/vyatta-bridge.pl') 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); -- cgit v1.2.3