diff options
Diffstat (limited to 'lib/Vyatta/Keepalived.pm')
-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"); } |