Insight/MIB/Cisco_CDP.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Insight/MIB/Bridge.pm ↑ Summary Insight/MIB/Cisco_VTP.pm »
1 package SNMP::Insight::MIB::Cisco_CDP;
2  
3 #ABSTRACT: Support for data in CISCO-CDP-MIB
4  
5 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 our $VERSION = '0.002'; #TRIAL VERSION:
8  
9 1 ▶use SNMP::Insight::Moose::MIB;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 with 'SNMP::Insight::MIB';
13  
14 1 mib_oid "1.3.6.1.4.1.9.9.23";
15  
16 1 mib_name "CISCO-CDP-MIB";
17  
18 1 has_table 'cdpCacheTable' => (
19 oid => '1.2.1',
20 index => 'cdpCacheAddress',
21 columns => {
22 "cdpCacheAddress" => [ '4', 'munge_ipaddress' ],
23 "cdpCacheDevicePort" => '7',
24 "cdpCacheDeviceId" => '6',
25 "cdpCacheSysName" => '17',
26 }
27 );
28  
29 1 1;
30  
31 # Local Variables:
32 # mode: cperl
33 # indent-tabs-mode: nil
34 # cperl-indent-level: 4
35 # cperl-indent-parens-as-block: t
36 # End:
37  
38 __END__
« Insight/MIB/Bridge.pm ↑ Summary Insight/MIB/Cisco_VTP.pm »