diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-02 15:48:59 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-02 15:48:59 -0700 |
commit | e0e9d8eb04086725f3e2bd741006ac8a8eef27b3 (patch) | |
tree | b58672d23703e6a8aebc3ff3c1fd0857f1b21320 | |
parent | 20e764c614aaee654bbe492378018aae9327c9f5 (diff) | |
download | vyatta-cfg-e0e9d8eb04086725f3e2bd741006ac8a8eef27b3.tar.gz vyatta-cfg-e0e9d8eb04086725f3e2bd741006ac8a8eef27b3.zip |
new API change
* return of isActive() was inverted in original API.
-rwxr-xr-x | lib/Vyatta/Keepalived.pm | 6 |
1 files changed, 1 insertions, 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"); } |