Commit 87011deb authored by Ad Schellevis's avatar Ad Schellevis

(vips) remove odd logic

parent ac8eba7d
...@@ -1916,29 +1916,21 @@ function interfaces_vips_configure($interface = '') ...@@ -1916,29 +1916,21 @@ function interfaces_vips_configure($interface = '')
$carp_setuped = false; $carp_setuped = false;
$anyproxyarp = false; $anyproxyarp = false;
foreach ($config['virtualip']['vip'] as $vip) { foreach ($config['virtualip']['vip'] as $vip) {
switch ($vip['mode']) { if ($interface == "" || $vip['interface'] == $interface) {
case "proxyarp": switch ($vip['mode']) {
/* nothing it is handled on interface_proxyarp_configure() */ case "proxyarp":
if ($interface <> "" && $vip['interface'] <> $interface) { $anyproxyarp = true;
continue; break;
} case "ipalias":
$anyproxyarp = true; interface_ipalias_configure($vip);
break; break;
case "ipalias": case "carp":
if ($interface <> "" && $vip['interface'] <> $interface) { if ($carp_setuped == false) {
continue; $carp_setuped = true;
} }
interface_ipalias_configure($vip); interface_carp_configure($vip);
break; break;
case "carp": }
if ($interface <> "" && $vip['interface'] <> $interface) {
continue;
}
if ($carp_setuped == false) {
$carp_setuped = true;
}
interface_carp_configure($vip);
break;
} }
} }
if ($carp_setuped == true) { if ($carp_setuped == true) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment