Make sure to account for IP aliases on lo0 here, or they get duplicated on each CARP sync
This commit is contained in:
parent
1e2cb1f88e
commit
049d42115f
|
@ -202,9 +202,9 @@ function restore_config_section_xmlrpc($raw_params) {
|
|||
foreach ($config['virtualip']['vip'] as $vipindex => $vip) {
|
||||
if ($vip['mode'] == "carp")
|
||||
$oldvips["{$vip['interface']}_vip{$vip['vhid']}"] = "{$vip['password']}{$vip['advskew']}{$vip['subnet']}{$vip['subnet_bits']}{$vip['advbase']}";
|
||||
else if ($vip['mode'] == "ipalias" && strstr($vip['interface'], "_vip"))
|
||||
else if ($vip['mode'] == "ipalias" && (strstr($vip['interface'], "_vip") || strstr($vip['interface'], "lo0")))
|
||||
$oldvips[$vip['subnet']] = "{$vip['interface']}{$vip['subnet']}{$vip['subnet_bits']}";
|
||||
else if (($vip['mode'] == "ipalias" || $vip['mode'] == 'proxyarp') && !strstr($vip['interface'], "_vip"))
|
||||
else if (($vip['mode'] == "ipalias" || $vip['mode'] == 'proxyarp') && !(strstr($vip['interface'], "_vip") || strstr($vip['interface'], "lo0")))
|
||||
$vipbackup[] = $vip;
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue