diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-12-06 11:47:40 -0800 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-12-06 11:49:30 -0800 |
commit | 691ade1fdb5291a6ecc4433e784f9d31d6288931 (patch) | |
tree | 846fecb433bcf1ce59b0d1e0a3828b47be5525b6 /lib | |
parent | 466e149d7f33c226a7fa566de6aa6baf0aa06ea0 (diff) | |
download | vyatta-cfg-691ade1fdb5291a6ecc4433e784f9d31d6288931.tar.gz vyatta-cfg-691ade1fdb5291a6ecc4433e784f9d31d6288931.zip |
Fix source address display problem in address owner case for vrrp
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Vyatta/Keepalived.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Vyatta/Keepalived.pm b/lib/Vyatta/Keepalived.pm index 0c63476..6a81b47 100755 --- a/lib/Vyatta/Keepalived.pm +++ b/lib/Vyatta/Keepalived.pm @@ -253,6 +253,10 @@ sub vrrp_get_config { if (!defined $vmac_interface) { $vmac_interface = 0; } + if ($vmac_interface && $primary_addr eq "0.0.0.0"){ + $primary_addr = $vips[0]; + $primary_addr =~ s/(.*?)\/.*/$1/; + } $config->setLevel("$path vrrp vrrp-group $group authentication"); my $auth_type = $config->returnOrigValue("type"); |