mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
carp_status.php, disable ip aliases configured with vhid on "temporarily disable carp", closes https://github.com/opnsense/core/issues/3097
This commit is contained in:
parent
2c61e068a2
commit
cd632551ce
@ -56,17 +56,19 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
}
|
||||
}
|
||||
foreach ($a_vip as $vip) {
|
||||
if ($vip['mode'] == 'carp') {
|
||||
if (!empty($vip['vhid'])) {
|
||||
switch ($act) {
|
||||
case 'maintenance':
|
||||
interface_carp_configure($vip);
|
||||
case 'enable':
|
||||
if ($vip['mode'] == 'carp') {
|
||||
interface_carp_configure($vip);
|
||||
} else {
|
||||
interface_ipalias_configure($vip);
|
||||
}
|
||||
break;
|
||||
case 'disable':
|
||||
interface_vip_bring_down($vip);
|
||||
break;
|
||||
case 'enable':
|
||||
interface_carp_configure($vip);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user