diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2011-11-28 18:03:34 -0800 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2011-11-28 18:03:34 -0800 |
commit | cd3c58e14e497d85945c56a684e08a02539ebf42 (patch) | |
tree | f0bbae89bd6f2c1c032f9492ebdd8f2d8ff58e52 | |
parent | b7e1fab5e9453ae3fe3eaed61beee9e9808e8a7d (diff) | |
download | vyatta-cfg-cd3c58e14e497d85945c56a684e08a02539ebf42.tar.gz vyatta-cfg-cd3c58e14e497d85945c56a684e08a02539ebf42.zip |
Return vmac interface configuration state in vrrp_get_config()
-rwxr-xr-x | lib/Vyatta/Keepalived.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Vyatta/Keepalived.pm b/lib/Vyatta/Keepalived.pm index a7086ea..0c63476 100755 --- a/lib/Vyatta/Keepalived.pm +++ b/lib/Vyatta/Keepalived.pm @@ -249,13 +249,19 @@ sub vrrp_get_config { if (!defined $advert_int) { $advert_int = 1; } + my $vmac_interface = $config->existsOrig("interface"); + if (!defined $vmac_interface) { + $vmac_interface = 0; + } + $config->setLevel("$path vrrp vrrp-group $group authentication"); my $auth_type = $config->returnOrigValue("type"); if (!defined $auth_type) { $auth_type = "none"; } - return ($primary_addr, $priority, $preempt, $advert_int, $auth_type, @vips); + return ($primary_addr, $priority, $preempt, $advert_int, $auth_type, + $vmac_interface, @vips); } sub snoop_for_master { |