summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-12-08 15:40:44 -0800
committerStig Thormodsrud <stig@vyatta.com>2010-12-08 15:40:44 -0800
commit371a1311ca914d224a994cb8ce3cbb48dd478b8d (patch)
treefe127a861b3f0ce04430c7895c22be5f45a9521f
parent3662ee3c481b09cd838a3bafbe9df722792d9509 (diff)
downloadvyatta-cfg-371a1311ca914d224a994cb8ce3cbb48dd478b8d.tar.gz
vyatta-cfg-371a1311ca914d224a994cb8ce3cbb48dd478b8d.zip
Fix display of source address in "show vrrp".
-rwxr-xr-xlib/Vyatta/Keepalived.pm3
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";
}