From f1d0ff23342183e5e2732002a8ad969f4fe00ec3 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 30 Dec 2011 10:17:40 -0800 Subject: bonding: do not allow interface with VRRP to be enslaved Add missing check to prevent adding interface with VRRP defined to be add to a bond-group. --- scripts/vyatta-bonding.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') diff --git a/scripts/vyatta-bonding.pl b/scripts/vyatta-bonding.pl index eac89f07..71707126 100755 --- a/scripts/vyatta-bonding.pl +++ b/scripts/vyatta-bonding.pl @@ -221,6 +221,10 @@ sub commit_check { my @addr = $cfg->returnValues('address'); die "Error: can not add interface $slave with addresses to bond-group\n" if (@addr); + + my @vrrp = $cfg->listNodes('vrrp vrrp-group'); + die "Error: can not add interface $slave with VRRP to bond-group\n" + if (@vrrp); } # bonding requires interface to be down before enslaving -- cgit v1.2.3