[3317739] Fix for Baystack without POE on stack member 1 (David Baldwin)

This commit is contained in:
Oliver Gorwits
2012-04-12 10:27:55 +01:00
parent eb5a492eb9
commit 2da37f06ea
2 changed files with 23 additions and 1 deletions

View File

@@ -3,17 +3,22 @@ SNMP::Info - Friendly OO-style interface to Network devices using SNMP.
version 2.07 ()
[NEW FEATURES]
* Basic support for APC UPS devices
* [2993691] Support for SonicWALL devices in new class L3::SonicWALL (phishphreek)
* [2996795] Support for Kentrox devices in new class L2::Kentrox (phishphreek)
[ENHANCEMENTS]
* [3085411] Activate L3 properties for Netgear GSM7224v2 (phishphreek)
* [3085413] SNMP OIDs for Netgear Serial and OS Ver (phishphreek)
* [3286549] Dell LLDP Support (Nico Giefing)
* [3297786] LLDP INDEX munged to ignore TimeMark component (David Baldwin)
[BUG FIXES]
* [2988163] Detect Juniper SSG firewalls as Layer3::Netscreen (R. Kerr)
* [3297786] LLDP INDEX munged to ignore TimeMark component (David Baldwin)
* [3317739] Fix for Baystack without POE on stack member 1 (David Baldwin)
version 2.06 (2011-09-28)

View File

@@ -452,6 +452,23 @@ sub e_vendor {
return $stack->SUPER::e_vendor($partial) || $stack->ns_e_vendor($partial);
}
# fix for stack of switches without POE on module 1
# https://sourceforge.net/tracker/?func=detail&aid=3317739&group_id=70362&atid=527529
sub peth_port_ifindex {
my $stack = shift;
my $partial = shift;
my %peth_port_ifindex = ();
my $poe_port_st = $stack->peth_port_status($partial);
my $if_index = $stack->interfaces($partial);
foreach my $i (keys %$if_index) {
next unless defined $poe_port_st->{$if_index->{$i}};
$peth_port_ifindex{$if_index->{$i}} = $i;
}
return \%peth_port_ifindex;
}
1;
__END__