summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-08-02 15:48:59 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-08-02 15:48:59 -0700
commite0e9d8eb04086725f3e2bd741006ac8a8eef27b3 (patch)
treeb58672d23703e6a8aebc3ff3c1fd0857f1b21320 /lib/Vyatta
parent20e764c614aaee654bbe492378018aae9327c9f5 (diff)
downloadvyatta-cfg-e0e9d8eb04086725f3e2bd741006ac8a8eef27b3.tar.gz
vyatta-cfg-e0e9d8eb04086725f3e2bd741006ac8a8eef27b3.zip
new API change
* return of isActive() was inverted in original API.
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-xlib/Vyatta/Keepalived.pm6
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");
}