mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Don't show deleted ports in device overview (#11344)
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
$ds_in = 'INOCTETS';
|
$ds_in = 'INOCTETS';
|
||||||
$ds_out = 'OUTOCTETS';
|
$ds_out = 'OUTOCTETS';
|
||||||
|
|
||||||
foreach (dbFetchRows('SELECT * FROM `ports` WHERE `device_id` = ? AND `disabled` = 0', array($device['device_id'])) as $port) {
|
foreach (dbFetchRows('SELECT * FROM `ports` WHERE `device_id` = ? AND `disabled` = 0 AND `deleted` = 0', array($device['device_id'])) as $port) {
|
||||||
$ignore = 0;
|
$ignore = 0;
|
||||||
if (is_array(\LibreNMS\Config::get('device_traffic_iftype'))) {
|
if (is_array(\LibreNMS\Config::get('device_traffic_iftype'))) {
|
||||||
foreach (\LibreNMS\Config::get('device_traffic_iftype') as $iftype) {
|
foreach (\LibreNMS\Config::get('device_traffic_iftype') as $iftype) {
|
||||||
|
Reference in New Issue
Block a user