summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-12-20 16:17:32 -0800
committerJohn Southworth <john.southworth@vyatta.com>2011-12-20 16:17:32 -0800
commitb0f62a63c2038cc4ac20e01927135fc1014a0eae (patch)
tree42b8105448137f5ef4cf41d557dba759353be7df /scripts
parent22fdaa7ef598b915cd54d52f10d0cf07e7f8c755 (diff)
downloadvyatta-cfg-system-b0f62a63c2038cc4ac20e01927135fc1014a0eae.tar.gz
vyatta-cfg-system-b0f62a63c2038cc4ac20e01927135fc1014a0eae.zip
Extra grat. arps are not needed for vmac interfaces
Diffstat (limited to 'scripts')
-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");
+ }
}
#