diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-12-27 10:33:52 -0800 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-12-27 10:33:52 -0800 |
commit | 7fda504b6dcdabdffc3245b2f28c320a3a427921 (patch) | |
tree | 58654ff87ca670fe5309a1944db963cdb5ba0708 | |
parent | 8d2e7843b4e390b63cbced108d93871c34761486 (diff) | |
download | vyatta-cfg-system-7fda504b6dcdabdffc3245b2f28c320a3a427921.tar.gz vyatta-cfg-system-7fda504b6dcdabdffc3245b2f28c320a3a427921.zip |
Move vrrp vmac sysctls to interface initialization in keepalived
-rwxr-xr-x | scripts/keepalived/vyatta-vrrp-state.pl | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/scripts/keepalived/vyatta-vrrp-state.pl b/scripts/keepalived/vyatta-vrrp-state.pl index 6b6b0c44..1b2f4964 100755 --- a/scripts/keepalived/vyatta-vrrp-state.pl +++ b/scripts/keepalived/vyatta-vrrp-state.pl @@ -78,10 +78,6 @@ if ($vrrp_state eq 'backup') { if ($transition_intf =~ m/\w+v\d+/){ system("iptables -t raw -D VYATTA_VRRP_FILTER -i ".$transition_intf." ! -p 112 -j DROP"); system("iptables -t raw -I VYATTA_VRRP_FILTER -i ".$transition_intf." ! -p 112 -j DROP"); - my $sysctl_intf = $transition_intf; - $sysctl_intf =~ s/\./\//g; - system("sysctl -w net.ipv4.conf.".$sysctl_intf.".arp_filter=1"); - system("sysctl -w net.ipv4.conf.".$sysctl_intf.".accept_local=1"); } } elsif ($vrrp_state eq 'master') { # @@ -92,10 +88,6 @@ if ($vrrp_state eq 'backup') { # if ($transition_intf =~ m/\w+v\d+/){ system("iptables -t raw -D VYATTA_VRRP_FILTER -i ".$transition_intf." ! -p 112 -j DROP"); - my $sysctl_intf = $transition_intf; - $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"); } else { foreach my $vip (@vrrp_vips) { system("/usr/bin/arping -A -c5 -I $vrrp_intf $vip"); |