mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Extend FS switches support, handle lowerLayerDown ifOperStatus (#10904)
* extend FS switches support * MIB compilation * HW and Ver * sensors and CPU * tests * correct version * try to handle properly "down" as not up, for OperStat like lowerLayerDown * try to handle properly "down" as not up, for OperStat like lowerLayerDown * try to handle properly "down" as not up, for OperStat like lowerLayerDown * try to replace "down" with "not up" :) * fix other ifOperStatus checks
This commit is contained in:
@@ -85,7 +85,7 @@ class GlobeController extends WidgetController
|
||||
} elseif ($data['markers'] == 'ports') {
|
||||
foreach ($location->devices as $device) {
|
||||
list($ports_down, $ports_up) = $device->ports->partition(function ($port) {
|
||||
return $port->ifOperStatus == 'down' && $port->ifAdminStatus == 'up';
|
||||
return $port->ifOperStatus != 'up' && $port->ifAdminStatus == 'up';
|
||||
});
|
||||
$count += $device->ports->count();
|
||||
$up += $ports_up->count();
|
||||
|
Reference in New Issue
Block a user