From a58b7744435254b93a10547c5dd577fea6f3e88c Mon Sep 17 00:00:00 2001 From: Jeroen van Ingen <> Date: Fri, 23 Jul 2010 15:07:58 +0000 Subject: [PATCH] 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. --- ChangeLog | 1 + Info/Layer2/HP.pm | 5 +++++ Info/Layer2/HP4000.pm | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 61cbe1fa..f91fef13 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,7 @@ version 2.02 () * Implemented os_bin() method in CiscoStats + [2980787] Fix for C1900 bp_index not containing interfaces. (Brian De Wolf) + + [2599795] Added vendor_i_type() method to HP and HP4000 clases version 2.01 (06/12/09) + Added CiscoStpExtensions Class (Carlos Vicente) diff --git a/Info/Layer2/HP.pm b/Info/Layer2/HP.pm index 18c88fee..e55a964f 100644 --- a/Info/Layer2/HP.pm +++ b/Info/Layer2/HP.pm @@ -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() diff --git a/Info/Layer2/HP4000.pm b/Info/Layer2/HP4000.pm index e594f81d..9b3d04d7 100644 --- a/Info/Layer2/HP4000.pm +++ b/Info/Layer2/HP4000.pm @@ -99,6 +99,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', @@ -649,6 +650,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()