summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/interfaces_groups_edit.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_groups_edit.php b/usr/local/www/interfaces_groups_edit.php
index 51feffd..430bd7b 100755
--- a/usr/local/www/interfaces_groups_edit.php
+++ b/usr/local/www/interfaces_groups_edit.php
@@ -71,6 +71,11 @@ if ($_POST) {
if (preg_match("/([^a-zA-Z])+/", $_POST['ifname'], $match))
$input_errors[] = "Only letters A-Z are allowed as the group name.";
+ $ifaces = get_configured_interface_with_descr();
+ foreach ($ifaces as $gif => $gdescr) {
+ if ($gdescr == $_POST['ifname'] || $gif == $_POST['ifname'])
+ $input_errors[] = "The specified group name is already used by an interface. Please choose another name.";
+ }
$ifgroupentry = array();
$ifgroupentry['ifname'] = $_POST['ifname'];
$members = "";
OpenPOWER on IntegriCloud