From 2f998593cb2bbdc2f00485ef644c904012eeaebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Mon, 9 Mar 2009 02:49:22 +0000 Subject: Use the vlan tag for interface name even when creating vlans from console. --- etc/inc/config.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 3b8be5a..9cda38b 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -2787,7 +2787,7 @@ EOD; echo "Enter the VLAN tag (1-4094): "; $vlan['tag'] = chop(fgets($fp)); - $vlan['vlanif'] = "vlan{$vlanif}"; + $vlan['vlanif'] = "vlan{$vlan['tag']}"; if (!is_numericint($vlan['tag']) || ($vlan['tag'] < 1) || ($vlan['tag'] > 4094)) { echo "\nInvalid VLAN tag '{$vlan['tag']}'\n"; continue; -- cgit v1.1