mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 08:03:30 +02:00
@@ -251,12 +251,8 @@ foreach ($ports as $port)
|
|||||||
echo("VLAN == ".$this_port['ifVlan']);
|
echo("VLAN == ".$this_port['ifVlan']);
|
||||||
|
|
||||||
// Update IF-MIB data
|
// Update IF-MIB data
|
||||||
$brk = false;
|
|
||||||
foreach ($data_oids as $oid)
|
foreach ($data_oids as $oid)
|
||||||
{
|
{
|
||||||
if( $brk === true ) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if ($port[$oid] != $this_port[$oid] && !isset($this_port[$oid]))
|
if ($port[$oid] != $this_port[$oid] && !isset($this_port[$oid]))
|
||||||
{
|
{
|
||||||
$port['update'][$oid] = array('NULL');
|
$port['update'][$oid] = array('NULL');
|
||||||
@@ -268,7 +264,7 @@ foreach ($ports as $port)
|
|||||||
if ($debug) { echo($oid . ": ".$port[$oid]." -> " . $this_port[$oid]." "); } else { echo($oid . " "); }
|
if ($debug) { echo($oid . ": ".$port[$oid]." -> " . $this_port[$oid]." "); } else { echo($oid . " "); }
|
||||||
}
|
}
|
||||||
if( ( $oid == 'ifOperStatus' || $oid == 'ifAdminStatus' ) && $this_port[$oid] == 'down' ) {
|
if( ( $oid == 'ifOperStatus' || $oid == 'ifAdminStatus' ) && $this_port[$oid] == 'down' ) {
|
||||||
$brk = true;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user