mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2969 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -92,9 +92,9 @@ if ($device['os'] == "ios" || $device['os'] == "iosxe")
|
||||
|
||||
echo('<p class=box-desc><span class=purple><a title="');
|
||||
$vlans = dbFetchRows("SELECT * FROM `ports_vlans` AS PV, vlans AS V WHERE PV.`interface_id` ='".$port['interface_id']."' and PV.`device_id` = '".$device['device_id']."' AND V.`vlan_vlan` = PV.vlan AND V.device_id = PV.device_id");
|
||||
foreach($vlans as $vlan)
|
||||
foreach ($vlans as $vlan)
|
||||
{
|
||||
if($vlan['state'] == "blocking") { $class="red"; } elseif ($vlan['state'] == "forwarding" ) { $class="green"; } else { $class = "none"; }
|
||||
if ($vlan['state'] == "blocking") { $class="red"; } elseif ($vlan['state'] == "forwarding" ) { $class="green"; } else { $class = "none"; }
|
||||
echo("<b class=".$class.">".$vlan['vlan'] ."</b> ".$vlan['vlan_descr']."<br />");
|
||||
}
|
||||
echo('">'.$port['ifTrunk'].'</a></span></p>');
|
||||
|
Reference in New Issue
Block a user