diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-06-11 15:57:42 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-06-11 15:57:42 -0700 |
commit | 41b590edb001c5eda6b71b54d1b77a79270387c5 (patch) | |
tree | d99adff941c36866d122bf4f694af12c2f69ae50 /scripts/keepalived | |
parent | bc3053551243b835a3ee89250306d58d9213eb1c (diff) | |
parent | e4b498f815db5b52b58b84d34c143520cdd19488 (diff) | |
download | vyatta-cfg-quagga-41b590edb001c5eda6b71b54d1b77a79270387c5.tar.gz vyatta-cfg-quagga-41b590edb001c5eda6b71b54d1b77a79270387c5.zip |
Merge branch 'hollywood' of suva.vyatta.com:/git/vyatta-cfg-system into hollywood
Diffstat (limited to 'scripts/keepalived')
-rwxr-xr-x | scripts/keepalived/vyatta-keepalived.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/keepalived/vyatta-keepalived.pl b/scripts/keepalived/vyatta-keepalived.pl index e40c737a..ada5e367 100755 --- a/scripts/keepalived/vyatta-keepalived.pl +++ b/scripts/keepalived/vyatta-keepalived.pl @@ -50,6 +50,12 @@ sub keepalived_get_values { foreach my $group (@groups) { my $vrrp_instance = "vyatta-$intf-$group"; $config->setLevel("$path vrrp vrrp-group $group"); + if ($config->exists("disable")) { + VyattaKeepalived::vrrp_log("$vrrp_instance disabled - skipping"); + my $state_file = VyattaKeepalived::get_state_file($intf, $group); + system("rm -f $state_file"); + next; + } my @vips = $config->returnValues("virtual-address"); my $num_vips = scalar(@vips); if ($num_vips == 0) { |