#10023 Fixed duplex

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

View File

@ -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'};