From e0e9d8eb04086725f3e2bd741006ac8a8eef27b3 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Mon, 2 Aug 2010 15:48:59 -0700 Subject: new API change * return of isActive() was inverted in original API. --- lib/Vyatta/Keepalived.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/Vyatta/Keepalived.pm b/lib/Vyatta/Keepalived.pm index dc7e71b..3d8fe24 100755 --- a/lib/Vyatta/Keepalived.pm +++ b/lib/Vyatta/Keepalived.pm @@ -320,11 +320,7 @@ sub list_vrrp_intf { my $path = $intf->path(); $config->setLevel($path); if (defined $val_func) { - if ($val_func eq 'isActive') { - push @intfs, $name if $config->$val_func("vrrp") == 0; - } else { - push @intfs, $name if $config->$val_func("vrrp"); - } + push @intfs, $name if $config->$val_func("vrrp"); } else { push @intfs, $name if $config->existsOrig("vrrp"); } -- cgit v1.2.3