summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/keepalived/vyatta-vrrp-state.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/keepalived/vyatta-vrrp-state.pl b/scripts/keepalived/vyatta-vrrp-state.pl
index d89aa061..6b6b0c44 100755
--- a/scripts/keepalived/vyatta-vrrp-state.pl
+++ b/scripts/keepalived/vyatta-vrrp-state.pl
@@ -96,9 +96,10 @@ if ($vrrp_state eq 'backup') {
$sysctl_intf =~ s/\./\//g;
system("sysctl -w net.ipv4.conf.".$sysctl_intf.".arp_filter=0");
system("sysctl -w net.ipv4.conf.".$sysctl_intf.".accept_local=1");
- }
- foreach my $vip (@vrrp_vips) {
+ } else {
+ foreach my $vip (@vrrp_vips) {
system("/usr/bin/arping -A -c5 -I $vrrp_intf $vip");
+ }
}
#