aboutsummaryrefslogtreecommitdiffstats
path: root/config/openospfd
diff options
context:
space:
mode:
Diffstat (limited to 'config/openospfd')
-rw-r--r--config/openospfd/openospfd.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/openospfd/openospfd.inc b/config/openospfd/openospfd.inc
index c131142a..d6a3e67d 100644
--- a/config/openospfd/openospfd.inc
+++ b/config/openospfd/openospfd.inc
@@ -186,13 +186,13 @@ function ospfd_install_conf() {
}
function ospfd_validate_interface() {
- global $config, $g, $input_errors;
+ global $config, $g, $id, $input_errors;
if ($config['installedpackages']['ospfdinterfaces']['config']) {
foreach ($config['installedpackages']['ospfdinterfaces']['config'] as $index => $conf) {
if ($index == 0)
continue;
- if ($conf['interface'] == $_POST['interface'])
+ if ($id != $index && $conf['interface'] == $_POST['interface'])
$input_errors[] = "Interface {$_POST['interface']} is already configured.";
}
}