Allow getting VDSL stats on "down" VDSL ports (#12753)

https://community.librenms.org/t/broken-vdsl-stats-after-update/11471/20
This commit is contained in:
Dave Browning
2021-04-14 22:33:12 +10:00
committed by GitHub
parent 3a29198238
commit ea6bd6af85

View File

@@ -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