Don't show deleted ports in device overview (#11344)

This commit is contained in:
Tony Murray
2020-03-25 09:10:14 -05:00
committed by GitHub
parent 906c337cb7
commit a59ab553be

View File

@@ -4,7 +4,7 @@
$ds_in = 'INOCTETS';
$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;
if (is_array(\LibreNMS\Config::get('device_traffic_iftype'))) {
foreach (\LibreNMS\Config::get('device_traffic_iftype') as $iftype) {