From 1e6c2fcdf7fa4bf8c5384ffe98baefef931bf620 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Fri, 16 Dec 2022 10:43:07 +0100 Subject: [PATCH] #10023 Fixed duplex --- pandora_server/util/plugin/pandora_snmp_bandwidth.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandora_server/util/plugin/pandora_snmp_bandwidth.pl b/pandora_server/util/plugin/pandora_snmp_bandwidth.pl index 9b28848b48..1111e8fadb 100755 --- a/pandora_server/util/plugin/pandora_snmp_bandwidth.pl +++ b/pandora_server/util/plugin/pandora_snmp_bandwidth.pl @@ -230,7 +230,12 @@ sub prepare_tree { my $duplex = snmp_get(\%duplex_call); if (ref($duplex) eq "HASH") { +<<<<<<< Updated upstream if (! exists($duplex->{'data'}) || $duplex->{'data'} eq '') { +======= + if ($duplex->{'data'} ne '2' && $duplex->{'data'} ne '3') { + # Unknown duplex. +>>>>>>> Stashed changes $duplex = 0; } else { $duplex = int $duplex->{'data'};