MFC 12386

Do not allow interface descriptions to match an alias name. They end up colliding in the PF MACRO space.

Ticket #996
This commit is contained in:
Scott Ullrich 2006-05-26 03:35:32 +00:00
parent 1c39d2d5d0
commit cfa466bb14

View File

@ -117,6 +117,14 @@ if ($_POST) {
break;
}
}
/* check for name interface description conflicts */
foreach($config['interfaces'] as $interface) {
if($interface['descr'] == $_POST['name']) {
$input_errors[] = gettext("An interface description with this name already exists.");
break;
}
}
if (!$input_errors) {
$alias = array();