diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2010-12-08 15:40:44 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2010-12-08 15:40:44 -0800 |
commit | 371a1311ca914d224a994cb8ce3cbb48dd478b8d (patch) | |
tree | fe127a861b3f0ce04430c7895c22be5f45a9521f /lib | |
parent | 3662ee3c481b09cd838a3bafbe9df722792d9509 (diff) | |
download | vyatta-cfg-371a1311ca914d224a994cb8ce3cbb48dd478b8d.tar.gz vyatta-cfg-371a1311ca914d224a994cb8ce3cbb48dd478b8d.zip |
Fix display of source address in "show vrrp".
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Vyatta/Keepalived.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Vyatta/Keepalived.pm b/lib/Vyatta/Keepalived.pm index 3d8fe24..fb575a1 100755 --- a/lib/Vyatta/Keepalived.pm +++ b/lib/Vyatta/Keepalived.pm @@ -197,7 +197,8 @@ sub vrrp_get_config { $path = $interface->path(); $config->setLevel($path); - my $primary_addr = $config->returnOrigValue("address"); + my @addr = getIP($intf, 4); + my $primary_addr = shift @addr; if (!defined $primary_addr) { $primary_addr = "0.0.0.0"; } |