When configuring radvd, check if carp is enabled. Ticket #4252

This commit is contained in:
Renato Botelho 2015-01-22 09:00:54 -02:00
parent 42cc62a2e7
commit 150d479bc5

View File

@ -96,8 +96,8 @@ function services_radvd_configure($blacklist = array()) {
}
if (strstr($dhcpv6if, "_vip")) {
// CARP IP, find parent
if (get_carp_interface_status($dhcpv6if) != "MASTER")
// CARP IP, check if it's enabled and find parent
if (!get_carp_status() || get_carp_interface_status($dhcpv6if) != "MASTER")
continue;
$ifparent = link_carp_interface_to_parent($dhcpv6if);
$realif = convert_friendly_interface_to_real_interface_name($ifparent);