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-show-vrrp.pl | |
parent | 0d0a70245a9d0399c39843547ce5b63b72a1ab35 (diff) | |
download | vyatta-cfg-system-d98f4100b278761efd067479c7c8ed8c0eddedf1.tar.gz vyatta-cfg-system-d98f4100b278761efd067479c7c8ed8c0eddedf1.zip |
Fix 2030: Enhancement: VRRP preemption hold down timer
Diffstat (limited to 'scripts/keepalived/vyatta-show-vrrp.pl')
-rwxr-xr-x | scripts/keepalived/vyatta-show-vrrp.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/keepalived/vyatta-show-vrrp.pl b/scripts/keepalived/vyatta-show-vrrp.pl index 98fb376e..e8157d21 100755 --- a/scripts/keepalived/vyatta-show-vrrp.pl +++ b/scripts/keepalived/vyatta-show-vrrp.pl @@ -130,8 +130,8 @@ sub get_master_info { } if ( -f $master_file) { - my $master_ip = `grep ip.src $master_file`; - my $master_mac = `grep eth.src $master_file`; + my $master_ip = `grep ip.src $master_file 2> /dev/null`; + my $master_mac = `grep eth.src $master_file 2> /dev/null`; chomp $master_ip; chomp $master_mac; # regex for show="xx:xx:xx:xx:xx:xx @@ -141,7 +141,7 @@ sub get_master_info { $master_mac = uc($1); if ($arp_mac ne $master_mac) { VyattaKeepalived::snoop_for_master($intf, $group, $vip, 2); - $master_ip = `grep ip.src $master_file`; + $master_ip = `grep ip.src $master_file 2> /dev/null`; } } @@ -154,7 +154,7 @@ sub get_master_info { system("mv $master_file /tmp"); } - my $priority = `grep vrrp.prio $master_file`; + my $priority = `grep vrrp.prio $master_file 2> /dev/null`; chomp $priority; if (defined $priority and $priority =~ m/show=\"(\d+)\"/) { $priority = $1; |