From d777d98396f43d2458406b97fd9a61b275fcf976 Mon Sep 17 00:00:00 2001 From: Bill Fenner <> Date: Tue, 28 Mar 2006 22:06:48 +0000 Subject: [PATCH] Inherit CiscoStats to get the products MIB in scope so that the product ID gets translated. Enable CDP. In bridge mode it's possible that there's something to learn from it. --- Info/Layer2/Aironet.pm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Info/Layer2/Aironet.pm b/Info/Layer2/Aironet.pm index 6a1263ff..f836dc69 100644 --- a/Info/Layer2/Aironet.pm +++ b/Info/Layer2/Aironet.pm @@ -38,20 +38,23 @@ use Exporter; use SNMP::Info::Layer2; use SNMP::Info::Entity; use SNMP::Info::EtherLike; +use SNMP::Info::CiscoStats; use SNMP::Info::CiscoVTP; +use SNMP::Info::CDP; @SNMP::Info::Layer2::Aironet::ISA = qw/SNMP::Info::Layer2 SNMP::Info::Entity SNMP::Info::EtherLike - SNMP::Info::CiscoVTP Exporter/; + SNMP::Info::CiscoStats SNMP::Info::CiscoVTP SNMP::Info::CDP Exporter/; @SNMP::Info::Layer2::Aironet::EXPORT_OK = qw//; use vars qw/$VERSION %FUNCS %GLOBALS %MIBS %MUNGE $AUTOLOAD $INIT $DEBUG/; -# Set for No CDP %GLOBALS = ( %SNMP::Info::Layer2::GLOBALS, %SNMP::Info::Entity::GLOBALS, %SNMP::Info::EtherLike::GLOBALS, + %SNMP::Info::CiscoStats::GLOBALS, %SNMP::Info::CiscoVTP::GLOBALS, + %SNMP::Info::CDP::GLOBALS, 'serial' => 'entPhysicalSerialNum.1', 'descr' => 'sysDescr' ); @@ -59,20 +62,26 @@ use vars qw/$VERSION %FUNCS %GLOBALS %MIBS %MUNGE $AUTOLOAD $INIT $DEBUG/; %FUNCS = (%SNMP::Info::Layer2::FUNCS, %SNMP::Info::Entity::FUNCS, %SNMP::Info::EtherLike::FUNCS, + %SNMP::Info::CiscoStats::FUNCS, %SNMP::Info::CiscoVTP::FUNCS, + %SNMP::Info::CDP::FUNCS, ); %MIBS = ( %SNMP::Info::Layer2::MIBS, %SNMP::Info::Entity::MIBS, %SNMP::Info::EtherLike::MIBS, + %SNMP::Info::CiscoStats::MIBS, %SNMP::Info::CiscoVTP::MIBS, + %SNMP::Info::CDP::MIBS, ); %MUNGE = (%SNMP::Info::Layer2::MUNGE, %SNMP::Info::Entity::MUNGE, %SNMP::Info::EtherLike::MUNGE, + %SNMP::Info::CiscoStats::MUNGE, %SNMP::Info::CiscoVTP::MUNGE, + %SNMP::Info::CDP::MUNGE, );