Commit 60963fe9 authored by Franco Fichtner's avatar Franco Fichtner

firewall: fix spurious error when moving alias interface, closes #531

parent 55586d3c
...@@ -108,10 +108,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -108,10 +108,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if (!is_ipaddr($pconfig['subnet'])) { if (!is_ipaddr($pconfig['subnet'])) {
$input_errors[] = gettext("A valid IP address must be specified."); $input_errors[] = gettext("A valid IP address must be specified.");
} else { } else {
$ignore_if = isset($id) ? $a_vip[$id]['interface'] : $pconfig['interface'];
if ($pconfig['mode'] == 'carp') { if ($pconfig['mode'] == 'carp') {
$ignore_if = $pconfig['interface']."_vip{$pconfig['vhid']}"; $ignore_if .= "_vip{$pconfig['vhid']}";
} else {
$ignore_if = $pconfig['interface'];
} }
if (is_ipaddr_configured($pconfig['subnet'], $ignore_if)) { if (is_ipaddr_configured($pconfig['subnet'], $ignore_if)) {
$input_errors[] = gettext("This IP address is being used by another interface or VIP."); $input_errors[] = gettext("This IP address is being used by another interface or VIP.");
......
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