mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
don't print header when no dot1d data is available
git-svn-id: http://www.observium.org/svn/observer/trunk@2841 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -26,8 +26,11 @@ foreach($this_vlans as $vlan)
|
||||
|
||||
echo("VLAN $vlan \n");
|
||||
|
||||
echo(str_pad("dot1d id", 10).str_pad("ifIndex", 10).str_pad("Port Name", 25).
|
||||
str_pad("Priority", 10).str_pad("State", 15).str_pad("Cost", 10)."\n");
|
||||
if ($vlan_data)
|
||||
{
|
||||
echo(str_pad("dot1d id", 10).str_pad("ifIndex", 10).str_pad("Port Name", 25).
|
||||
str_pad("Priority", 10).str_pad("State", 15).str_pad("Cost", 10)."\n");
|
||||
}
|
||||
|
||||
foreach($vlan_data as $vlan_port_id => $vlan_port)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user