From 87489324607f74202a38254d490406edba80b70a Mon Sep 17 00:00:00 2001 From: Jeroen van Ingen <> Date: Thu, 21 Oct 2010 10:29:57 +0000 Subject: [PATCH] Enable IPv6 support in Layer3 base class by including Layer3::Ipv6 --- ChangeLog | 1 + Info/Layer3.pm | 24 +++++++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 95282531..d7767a97 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21,6 +21,7 @@ version 2.02 () * Added Cisco CBS3xxx blade switches to L3::C6500 * Fix for FWSMs not being detected properly. Special thanks goes to Jukka Pirhonen for pointing it out. (Brian De Wolf) + + Added support for IPv6 to physical address mapping version 2.01 (06/12/09) + Added CiscoStpExtensions Class (Carlos Vicente) diff --git a/Info/Layer3.pm b/Info/Layer3.pm index 2a620f80..d578c662 100644 --- a/Info/Layer3.pm +++ b/Info/Layer3.pm @@ -39,8 +39,10 @@ use SNMP::Info::Bridge; use SNMP::Info::EtherLike; use SNMP::Info::Entity; use SNMP::Info::PowerEthernet; +use SNMP::Info::Ipv6; -@SNMP::Info::Layer3::ISA = qw/SNMP::Info::PowerEthernet +@SNMP::Info::Layer3::ISA = qw/ + SNMP::Info::PowerEthernet SNMP::Info::Ipv6 SNMP::Info::Entity SNMP::Info::EtherLike SNMP::Info::Bridge SNMP::Info Exporter/; @SNMP::Info::Layer3::EXPORT_OK = qw//; @@ -55,6 +57,7 @@ $VERSION = '2.02-cvs'; %SNMP::Info::EtherLike::MIBS, %SNMP::Info::Entity::MIBS, %SNMP::Info::PowerEthernet::MIBS, + %SNMP::Info::Ipv6::MIBS, 'IP-MIB' => 'ipNetToMediaIfIndex', 'OSPF-MIB' => 'ospfRouterId', 'BGP4-MIB' => 'bgpIdentifier', @@ -68,6 +71,7 @@ $VERSION = '2.02-cvs'; %SNMP::Info::EtherLike::GLOBALS, %SNMP::Info::Entity::GLOBALS, %SNMP::Info::PowerEthernet::GLOBALS, + %SNMP::Info::Ipv6::GLOBALS, 'mac' => 'ifPhysAddress.1', 'serial1' => '.1.3.6.1.4.1.9.3.6.3.0', # OLD-CISCO-CHASSIS-MIB::chassisId.0 @@ -82,6 +86,7 @@ $VERSION = '2.02-cvs'; %SNMP::Info::EtherLike::FUNCS, %SNMP::Info::Entity::FUNCS, %SNMP::Info::PowerEthernet::FUNCS, + %SNMP::Info::Ipv6::FUNCS, # Obsolete Address Translation Table (ARP Cache) 'old_at_index' => 'atIfIndex', @@ -141,6 +146,7 @@ $VERSION = '2.02-cvs'; %SNMP::Info::EtherLike::MUNGE, %SNMP::Info::Entity::MUNGE, %SNMP::Info::PowerEthernet::MUNGE, + %SNMP::Info::Ipv6::MUNGE, 'old_at_paddr' => \&SNMP::Info::munge_mac, 'at_paddr' => \&SNMP::Info::munge_mac, 'n2p_paddr' => \&SNMP::Info::munge_mac, @@ -397,6 +403,10 @@ after determining a more specific class using the method above. =item SNMP::Info::Entity +=item SNMP::Info::PowerEthernet + +=item SNMP::Info::Ipv6 + =back =head2 Required MIBs @@ -421,6 +431,10 @@ See L for its MIB requirements. See L for its MIB requirements. +See L for its MIB requirements. + +See L for its MIB requirements. + =head1 GLOBALS These are methods that return scalar value from SNMP @@ -761,4 +775,12 @@ See L for details. See L for details. +=head2 Table Methods imported from SNMP::Info::PowerEthernet + +See L for details. + +=head2 Table Methods imported from SNMP::Info::Ipv6 + +See L for details. + =cut