From cd3c58e14e497d85945c56a684e08a02539ebf42 Mon Sep 17 00:00:00 2001 From: Bob Gilligan Date: Mon, 28 Nov 2011 18:03:34 -0800 Subject: Return vmac interface configuration state in vrrp_get_config() --- lib/Vyatta/Keepalived.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib') 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 { -- cgit v1.2.3