summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_vlan_edit.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-06-08 17:57:15 +0000
committerErmal Luçi <eri@pfsense.org>2009-06-08 17:57:15 +0000
commit83bdca55920ca6ab3d848f0993d57a1f9b85098f (patch)
tree19bf46f0ddb0566af0bc8994ee9ba2df8e9deab4 /usr/local/www/interfaces_vlan_edit.php
parentef0269508610f837212ec2d0ecd2435f126d61a9 (diff)
downloadpfsense-83bdca55920ca6ab3d848f0993d57a1f9b85098f.zip
pfsense-83bdca55920ca6ab3d848f0993d57a1f9b85098f.tar.gz
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@
Diffstat (limited to 'usr/local/www/interfaces_vlan_edit.php')
-rwxr-xr-xusr/local/www/interfaces_vlan_edit.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_vlan_edit.php b/usr/local/www/interfaces_vlan_edit.php
index 04f7f4b..95cdd1f 100755
--- a/usr/local/www/interfaces_vlan_edit.php
+++ b/usr/local/www/interfaces_vlan_edit.php
@@ -98,7 +98,12 @@ if ($_POST) {
$vlan['if'] = $_POST['if'];
$vlan['tag'] = $_POST['tag'];
$vlan['descr'] = $_POST['descr'];
- $vlan['vlanif'] = "vlan{$_POST['tag']}";
+ if (isset($id) && $a_vlans[$id])
+ $vlan['vlanif'] = "vlan{$id}";
+ else {
+ $id = count($a_vlans);
+ $vlan['vlanif'] = "vlan{$id}";
+ }
$vlan['vlanif'] = interface_vlan_configure($vlan);
if ($vlan['vlanif'] == "" || !stristr($vlan['vlanif'], "vlan"))
OpenPOWER on IntegriCloud