Revision 5b6eac01
Added by Scott Ullrich over 16 years ago
etc/inc/interfaces.inc | ||
---|---|---|
58 | 58 |
|
59 | 59 |
function interfaces_vlan_configure() |
60 | 60 |
{ |
61 |
global $config;
|
|
61 |
global $config;
|
|
62 | 62 |
|
63 | 63 |
$i = 0; |
64 |
if (is_array($config['vlans']['vlan']) && count($config['vlans']['vlan'])) {
|
|
65 |
foreach ($config['vlans']['vlan'] as $vlan) {
|
|
64 |
if (is_array($config['vlans']['vlan']) && count($config['vlans']['vlan'])) {
|
|
65 |
foreach ($config['vlans']['vlan'] as $vlan) {
|
|
66 | 66 |
if(empty($vlan['vlanif'])) |
67 | 67 |
$vlan['vlanif'] = "vlan{$i}"; |
68 |
/* XXX: Maybe we should report any errors?! */
|
|
69 |
interface_vlan_configure($vlan['if'], $vlan['tag'], $vlan['vlanif']);
|
|
68 |
/* XXX: Maybe we should report any errors?! */
|
|
69 |
interface_vlan_configure($vlan['if'], $vlan['tag'], $vlan['vlanif']);
|
|
70 | 70 |
$i++; |
71 | 71 |
} |
72 |
}
|
|
72 |
}
|
|
73 | 73 |
} |
74 | 74 |
|
75 | 75 |
function interface_vlan_configure($if, $tag, $vlanif = "") |
Also available in: Unified diff
Use product_name