diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2011-12-30 10:17:40 -0800 |
---|---|---|
committer | Stephen Hemminger <shemminger@vyatta.com> | 2011-12-30 11:08:26 -0800 |
commit | f1d0ff23342183e5e2732002a8ad969f4fe00ec3 (patch) | |
tree | aa600e3090125fdbac5cfc02cd1ad433e137ed72 /scripts | |
parent | d4080de7a68dc5530c57b187f88b2ed655558013 (diff) | |
download | vyatta-cfg-system-f1d0ff23342183e5e2732002a8ad969f4fe00ec3.tar.gz vyatta-cfg-system-f1d0ff23342183e5e2732002a8ad969f4fe00ec3.zip |
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.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-bonding.pl | 4 |
1 files changed, 4 insertions, 0 deletions
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 |