#10023 Fixed duplex 2

This commit is contained in:
Daniel Maya 2022-12-16 10:48:03 +01:00
parent 1e6c2fcdf7
commit 1d3d460ad5
1 changed files with 1 additions and 5 deletions

View File

@ -230,12 +230,8 @@ 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') {
if (! exists($duplex->{'data'}) || ($duplex->{'data'} ne '2' && $duplex->{'data'} ne '3')) {
# Unknown duplex.
>>>>>>> Stashed changes
$duplex = 0;
} else {
$duplex = int $duplex->{'data'};