From 35213d5cb2b395d416f65ddbe62212389b96bcb9 Mon Sep 17 00:00:00 2001 From: Jeroen van Ingen Date: Tue, 2 Dec 2014 13:22:20 +0100 Subject: [PATCH] Add LLDP into base Layer3 class --- Info/Layer3.pm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Info/Layer3.pm b/Info/Layer3.pm index 91ecf70b..f45631d2 100644 --- a/Info/Layer3.pm +++ b/Info/Layer3.pm @@ -41,11 +41,13 @@ use SNMP::Info::Entity; use SNMP::Info::PowerEthernet; use SNMP::Info::IPv6; use SNMP::Info::AdslLine; +use SNMP::Info::LLDP; @SNMP::Info::Layer3::ISA = qw/ SNMP::Info::PowerEthernet SNMP::Info::IPv6 SNMP::Info::Entity SNMP::Info::EtherLike SNMP::Info::Bridge SNMP::Info::AdslLine + SNMP::Info::LLDP SNMP::Info Exporter/; @SNMP::Info::Layer3::EXPORT_OK = qw//; @@ -61,6 +63,7 @@ $VERSION = '3.21_001'; %SNMP::Info::Entity::MIBS, %SNMP::Info::PowerEthernet::MIBS, %SNMP::Info::IPv6::MIBS, + %SNMP::Info::LLDP::MIBS, 'IP-MIB' => 'ipNetToMediaIfIndex', 'OSPF-MIB' => 'ospfRouterId', 'BGP4-MIB' => 'bgpIdentifier', @@ -76,6 +79,7 @@ $VERSION = '3.21_001'; %SNMP::Info::Entity::GLOBALS, %SNMP::Info::PowerEthernet::GLOBALS, %SNMP::Info::IPv6::GLOBALS, + %SNMP::Info::LLDP::GLOBALS, 'mac' => 'ifPhysAddress.1', 'serial1' => '.1.3.6.1.4.1.9.3.6.3.0', # OLD-CISCO-CHASSIS-MIB::chassisId.0 @@ -92,6 +96,7 @@ $VERSION = '3.21_001'; %SNMP::Info::Entity::FUNCS, %SNMP::Info::PowerEthernet::FUNCS, %SNMP::Info::IPv6::FUNCS, + %SNMP::Info::LLDP::FUNCS, # Obsolete Address Translation Table (ARP Cache) 'old_at_index' => 'atIfIndex', @@ -150,6 +155,7 @@ $VERSION = '3.21_001'; %SNMP::Info::Entity::MUNGE, %SNMP::Info::PowerEthernet::MUNGE, %SNMP::Info::IPv6::MUNGE, + %SNMP::Info::LLDP::MUNGE, 'old_at_paddr' => \&SNMP::Info::munge_mac, 'at_paddr' => \&SNMP::Info::munge_mac, 'n2p_paddr' => \&SNMP::Info::munge_mac, @@ -410,6 +416,8 @@ after determining a more specific class using the method above. =item SNMP::Info::IPv6 +=item SNMP::Info::LLDP + =back =head2 Required MIBs @@ -438,6 +446,8 @@ 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 @@ -511,6 +521,10 @@ See L for details. See L for details. +=head2 Global Methods imported from SNMP::Info::LLDP + +See L for details. + =head1 TABLE METHODS These are methods that return tables of information in the form of a reference @@ -780,4 +794,8 @@ See L for details. See L for details. +=head2 Table Methods imported from SNMP::Info::LLDP + +See L for details. + =cut