summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_vlan_edit.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-03-30 18:20:10 +0000
committerErmal Luçi <eri@pfsense.org>2009-03-30 18:20:10 +0000
commitc6196310475fc7ee067a44429ae742722800d983 (patch)
treecf8a826e1d8e707b19cf4ef9de40c668edc2747e /usr/local/www/interfaces_vlan_edit.php
parent08057ba6e3483697cdf037db196e1fe276e6f824 (diff)
downloadpfsense-c6196310475fc7ee067a44429ae742722800d983.zip
pfsense-c6196310475fc7ee067a44429ae742722800d983.tar.gz
Do not allow to add a vlan tag on the same interface when it is used by qinq.
Diffstat (limited to 'usr/local/www/interfaces_vlan_edit.php')
-rwxr-xr-xusr/local/www/interfaces_vlan_edit.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_vlan_edit.php b/usr/local/www/interfaces_vlan_edit.php
index 85ed1f9..04f7f4b 100755
--- a/usr/local/www/interfaces_vlan_edit.php
+++ b/usr/local/www/interfaces_vlan_edit.php
@@ -87,6 +87,11 @@ if ($_POST) {
break;
}
}
+ if (is_array($config['qinqs']['qinqentry'])) {
+ foreach ($config['qinqs']['qinqentry'] as $qinq)
+ if ($qinq['tag'] == $_POST['tag'] && $qinq['if'] == $_POST['if'])
+ $input_errors[] = "A QinQ VLAN exists with this tag please remove it to use this tag with.";
+ }
if (!$input_errors) {
$vlan = array();
OpenPOWER on IntegriCloud