Commit 2c25e3e3 authored by Ad Schellevis's avatar Ad Schellevis

oops, wrong block...

parent 75e7e0e4
...@@ -58,24 +58,23 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -58,24 +58,23 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
interfaces_carp_setup(); interfaces_carp_setup();
set_single_sysctl('net.inet.carp.allow', '1'); set_single_sysctl('net.inet.carp.allow', '1');
} }
foreach ($a_vip as $vip) { }
if ($vip['mode'] == 'carp') { foreach ($a_vip as $vip) {
switch ($act) { if ($vip['mode'] == 'carp') {
case 'maintenance': switch ($act) {
interface_carp_configure($vip); case 'maintenance':
break; interface_carp_configure($vip);
case 'disable': break;
interface_vip_bring_down($vip); case 'disable':
break; interface_vip_bring_down($vip);
case 'enable': break;
interface_carp_configure($vip); case 'enable':
break; interface_carp_configure($vip);
default: break;
break; default:
} break;
} }
} }
} }
} }
......
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