summaryrefslogtreecommitdiff
path: root/scripts/vyatta-bonding.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-bonding.pl')
-rwxr-xr-xscripts/vyatta-bonding.pl4
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