From ea6bd6af856400c0417b0dd05e71af274bf19514 Mon Sep 17 00:00:00 2001 From: Dave Browning Date: Wed, 14 Apr 2021 22:33:12 +1000 Subject: [PATCH] Allow getting VDSL stats on "down" VDSL ports (#12753) https://community.librenms.org/t/broken-vdsl-stats-after-update/11471/20 --- includes/polling/ports.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/polling/ports.inc.php b/includes/polling/ports.inc.php index 41581afc5c..08cb9c850b 100644 --- a/includes/polling/ports.inc.php +++ b/includes/polling/ports.inc.php @@ -738,9 +738,9 @@ foreach ($ports as $port) { if (! empty($port['skipped'])) { // We don't care about statistics for skipped selective polling ports d_echo("$port_id skipped because selective polling ports is set."); - } elseif ($port['ifType'] != 'adsl' && $port['ifOperStatus'] == 'down' && $port['ifOperStatus_prev'] == 'down' && $this_port['ifOperStatus'] == 'down' && $this_port['ifLastChange'] == $port['ifLastChange']) { + } elseif ($port['ifType'] != 'vdsl' && $port['ifType'] != 'adsl' && $port['ifOperStatus'] == 'down' && $port['ifOperStatus_prev'] == 'down' && $this_port['ifOperStatus'] == 'down' && $this_port['ifLastChange'] == $port['ifLastChange']) { // We don't care about statistics for down ports on which states did not change since last polling - // We still take into account 'adsl' ports that may update speed/noise even if the interface is status down + // We still take into account 'adsl' & 'vdsl' ports that may update speed/noise even if the interface is status down d_echo("$port_id skipped because port is still down since last polling."); } else { // End parse ifAlias