Added "vendor_i_type()" method to HP classes as suggested by Mikat1 on SF.

Tracker artifact 2599795. Method can be used to determine more detailed
type information about a port, eg 10/100 interface, 1000Base-LX, etc.
Details are vendor specific.
This commit is contained in:
Jeroen van Ingen
2010-07-23 15:07:58 +00:00
parent 6deceb6bd1
commit a58b774443
3 changed files with 11 additions and 0 deletions

View File

@@ -89,6 +89,7 @@ $VERSION = '2.02-cvs';
# CONFIG-MIB::hpSwitchPortTable
'hp_duplex' => 'hpSwitchPortEtherMode',
'hp_duplex_admin' => 'hpSwitchPortFastEtherMode',
'vendor_i_type' => 'hpSwitchPortType',
# HP-ICF-CHASSIS
'hp_s_oid' => 'hpicfSensorObjectId',
@@ -860,6 +861,10 @@ Returns reference to map of IIDs to current link duplex.
Returns reference to hash of IIDs to admin duplex setting.
=item $hp->vendor_i_type()
Returns reference to hash of IIDs to HP specific port type (hpSwitchPortType).
=item $hp->i_name()
Crosses i_name() with $hp->e_name() using $hp->e_port() and i_alias()