From cf30589944b0ee239fd6ad88eea6c1ed30bbd5ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Sat, 18 Oct 2008 13:57:56 +0000 Subject: [PATCH] When creating vlan interfaces from console fill all the needed information. --- etc/inc/config.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/inc/config.inc b/etc/inc/config.inc index fd3e13e7a7..a0b514f2de 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -2539,6 +2539,8 @@ EOD; $config['vlans']['vlan'] = array(); echo "\n"; + $vlanif = 0; + while (1) { $vlan = array(); @@ -2576,13 +2578,14 @@ EOD; echo "Enter the VLAN tag (1-4094): "; $vlan['tag'] = chop(fgets($fp)); - + $vlan['vlanif'] = "vlan{$vlanif}"; if (!is_numericint($vlan['tag']) || ($vlan['tag'] < 1) || ($vlan['tag'] > 4094)) { echo "\nInvalid VLAN tag '{$vlan['tag']}'\n"; continue; } $config['vlans']['vlan'][] = $vlan; + $vlanif++; } }