diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2008-06-19 14:34:14 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2008-06-19 14:34:14 -0700 |
commit | d98f4100b278761efd067479c7c8ed8c0eddedf1 (patch) | |
tree | 23acd61569f627ead2767151ed5aefeed919e0c1 /scripts/keepalived/vyatta-keepalived.pl | |
parent | 0d0a70245a9d0399c39843547ce5b63b72a1ab35 (diff) | |
download | vyatta-cfg-quagga-d98f4100b278761efd067479c7c8ed8c0eddedf1.tar.gz vyatta-cfg-quagga-d98f4100b278761efd067479c7c8ed8c0eddedf1.zip |
Fix 2030: Enhancement: VRRP preemption hold down timer
Diffstat (limited to 'scripts/keepalived/vyatta-keepalived.pl')
-rwxr-xr-x | scripts/keepalived/vyatta-keepalived.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/keepalived/vyatta-keepalived.pl b/scripts/keepalived/vyatta-keepalived.pl index ada5e367..c41fa7e2 100755 --- a/scripts/keepalived/vyatta-keepalived.pl +++ b/scripts/keepalived/vyatta-keepalived.pl @@ -74,6 +74,10 @@ sub keepalived_get_values { if (!defined $preempt) { $preempt = "true"; } + my $preempt_delay = $config->returnValue("preempt-delay"); + if (defined $preempt_delay and $preempt eq "false") { + print "Warning: preempt delay is ignored when preempt=false\n"; + } my $advert_int = $config->returnValue("advertise-interval"); if (!defined $advert_int) { $advert_int = 1; @@ -121,6 +125,9 @@ sub keepalived_get_values { if ($preempt eq "false") { $output .= "\tnopreempt\n"; } + if (defined $preempt_delay) { + $output .= "\tpreempt_delay $preempt_delay\n"; + } $output .= "\tadvert_int $advert_int\n"; if (defined $auth_type) { $output .= "\tauthentication {\n"; |