Revision 7238e0cf
Added by Ermal LUÇI over 11 years ago
usr/local/www/firewall_virtual_ip.php | ||
---|---|---|
157 | 157 |
|
158 | 158 |
if ($found_carp === true && $found_other_alias === false) |
159 | 159 |
$input_errors[] = gettext("This entry cannot be deleted because it is still referenced by a CARP IP with the description") . " {$vip['descr']}."; |
160 |
} else if ($a_vip[$_GET['id']]['mode'] == "carp") { |
|
161 |
$vipiface = "{$a_vip[$_GET['id']]['interface']}_vip{$a_vip[$_GET['id']]['vhid']}"; |
|
162 |
foreach ($a_vip as $vip) { |
|
163 |
if ($vipiface == $vip['interface'] && $vip['mode'] == "ipalias") |
|
164 |
$input_errors[] = gettext("This entry cannot be deleted because it is still referenced by an IP alias entry with the description") . " {$vip['descr']}."; |
|
165 |
} |
|
166 | 160 |
} |
167 |
|
|
168 | 161 |
|
169 | 162 |
if (!$input_errors) { |
170 | 163 |
if (!session_id()) |
Also available in: Unified diff
Remove references to _vip interface and provide proper configuration for carp on FreeBSD 10. Still some places to deal with this and certainly missing upgrade code