mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
console: if no VLANs are there we don't have to print nothing
This commit is contained in:
parent
88a6ede3d5
commit
27a051b577
@ -137,7 +137,7 @@ EOD;
|
||||
vlan_setup($iflist, $fp);
|
||||
}
|
||||
|
||||
if (isset($config['vlans']['vlan'])) {
|
||||
if (isset($config['vlans']['vlan'][0])) {
|
||||
echo "\nVLAN interfaces:\n\n";
|
||||
foreach ($config['vlans']['vlan'] as $vlan) {
|
||||
echo sprintf("% -16s%s\n", "{$vlan['if']}_vlan{$vlan['tag']}",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user