summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_vlan_edit.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-06-08 22:14:34 +0000
committerErmal Luçi <eri@pfsense.org>2009-06-08 22:14:34 +0000
commite1c449c0362c89b1d7c4ab2a1a860e88938cfcde (patch)
tree86cae093b6bad3bcbd9f13c3042b78da7fe31ae4 /usr/local/www/interfaces_vlan_edit.php
parent83bdca55920ca6ab3d848f0993d57a1f9b85098f (diff)
downloadpfsense-e1c449c0362c89b1d7c4ab2a1a860e88938cfcde.zip
pfsense-e1c449c0362c89b1d7c4ab2a1a860e88938cfcde.tar.gz
Revert "Do not use tags for vlan interface names since there might be same vlan tags on different parent interfaces and this will break configs and will hide the reason it does not work. Thanks-to: smos@"
This reverts commit 83bdca55920ca6ab3d848f0993d57a1f9b85098f.
Diffstat (limited to 'usr/local/www/interfaces_vlan_edit.php')
-rwxr-xr-xusr/local/www/interfaces_vlan_edit.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr/local/www/interfaces_vlan_edit.php b/usr/local/www/interfaces_vlan_edit.php
index 95cdd1f..04f7f4b 100755
--- a/usr/local/www/interfaces_vlan_edit.php
+++ b/usr/local/www/interfaces_vlan_edit.php
@@ -98,12 +98,7 @@ if ($_POST) {
$vlan['if'] = $_POST['if'];
$vlan['tag'] = $_POST['tag'];
$vlan['descr'] = $_POST['descr'];
- if (isset($id) && $a_vlans[$id])
- $vlan['vlanif'] = "vlan{$id}";
- else {
- $id = count($a_vlans);
- $vlan['vlanif'] = "vlan{$id}";
- }
+ $vlan['vlanif'] = "vlan{$_POST['tag']}";
$vlan['vlanif'] = interface_vlan_configure($vlan);
if ($vlan['vlanif'] == "" || !stristr($vlan['vlanif'], "vlan"))
OpenPOWER on IntegriCloud