summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2011-12-08 17:43:32 -0800
committerStephen Hemminger <shemminger@vyatta.com>2011-12-08 17:43:32 -0800
commitfb79482b853aa3eed53c508bc5ba9a3e2beeec3b (patch)
treeb31ddef36f4afaa4b64cc93d4a3f0ca8e9c707ca /scripts
parente34853262b6278f9f8500ff179341bebd4239fab (diff)
parentd95efab976977638d8a4bec6833cadf62107e937 (diff)
downloadvyatta-cfg-system-fb79482b853aa3eed53c508bc5ba9a3e2beeec3b.tar.gz
vyatta-cfg-system-fb79482b853aa3eed53c508bc5ba9a3e2beeec3b.zip
Merge branch 'oxnard' of fiji.vyatta.com:/git/vyatta-cfg-system into oxnard
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/keepalived/vyatta-vrrp-state.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/keepalived/vyatta-vrrp-state.pl b/scripts/keepalived/vyatta-vrrp-state.pl
index 53c7c6c9..bb04df1d 100755
--- a/scripts/keepalived/vyatta-vrrp-state.pl
+++ b/scripts/keepalived/vyatta-vrrp-state.pl
@@ -70,6 +70,7 @@ if ($vrrp_state eq 'backup') {
# comment out for now, too expensive with lots of vrrp's at boot
# Vyatta::Keepalived::snoop_for_master($vrrp_intf, $vrrp_group,
# $vrrp_vips[0], 60);
+ $vrrp_intf =~ s/\./\//g;
system("sysctl -w net.ipv4.conf.".$vrrp_intf."v".$vrrp_group.".arp_filter=1");
system("sysctl -w net.ipv4.conf.".$vrrp_intf."v".$vrrp_group.".accept_local=1");
} elsif ($vrrp_state eq 'master') {
@@ -79,6 +80,7 @@ if ($vrrp_state eq 'backup') {
# requests. Some of those host do respond to gratuitous arp replies
# so here we will send 5 gratuitous arp replies also.
#
+ $vrrp_intf =~ s/\./\//g;
system("sysctl -w net.ipv4.conf.".$vrrp_intf."v".$vrrp_group.".arp_filter=0");
system("sysctl -w net.ipv4.conf.".$vrrp_intf."v".$vrrp_group.".accept_local=1");
foreach my $vip (@vrrp_vips) {