Fix gigabit logic in i_duplex_admin()

ISA Info
Add CiscoStack test class
This commit is contained in:
Eric A. Miller
2018-04-11 20:19:58 -04:00
parent 2301d2e60a
commit 4c51c29428
2 changed files with 185 additions and 2 deletions

View File

@@ -32,8 +32,9 @@ package SNMP::Info::CiscoStack;
use strict;
use Exporter;
use SNMP::Info;
@SNMP::Info::CiscoStack::ISA = qw/Exporter/;
@SNMP::Info::CiscoStack::ISA = qw/SNMP::Info Exporter/;
@SNMP::Info::CiscoStack::EXPORT_OK = qw//;
use vars qw/$VERSION %MIBS %FUNCS %GLOBALS %MUNGE %PORTSTAT/;
@@ -194,7 +195,7 @@ sub i_duplex_admin {
next if ( defined $partial and $iid !~ /^$partial$/ );
# Test for gigabit
if ( defined $p_duplex_cap->{$port} and $p_duplex_cap->{$port} == 1 ) {
if ( defined $p_duplex_cap->{$port} and $p_duplex_cap->{$port} == 0 ) {
$i_duplex_admin->{$iid} = 'full';
}