summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-12-27 10:33:52 -0800
committerJohn Southworth <john.southworth@vyatta.com>2011-12-27 10:33:52 -0800
commit7fda504b6dcdabdffc3245b2f28c320a3a427921 (patch)
tree58654ff87ca670fe5309a1944db963cdb5ba0708
parent8d2e7843b4e390b63cbced108d93871c34761486 (diff)
downloadvyatta-cfg-system-7fda504b6dcdabdffc3245b2f28c320a3a427921.tar.gz
vyatta-cfg-system-7fda504b6dcdabdffc3245b2f28c320a3a427921.zip
Move vrrp vmac sysctls to interface initialization in keepalived
-rwxr-xr-xscripts/keepalived/vyatta-vrrp-state.pl8
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");