Insight/MIB/Bridge.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Insight/Device/NetSNMP.pm ↑ Summary Insight/MIB/Cisco_CDP.pm »
1 package SNMP::Insight::MIB::Bridge;
2  
3 #ABSTRACT: Support for data in Bridge-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.2.1.17";
15 1 mib_name "BRIDGE-MIB";
16  
17 # .1 dot1dBase
18  
19 1 has_scalar "dot1dBaseBridgeAddress" => (
20 oid => "1.1",
21 munger => 'munge_macaddress',
22 );
23  
24 1 has_scalar "dot1dBaseNumPorts" => ( oid => "1.2" );
25  
26 1 has_table "dot1dBasePortTable" => (
27 oid => "1.4",
28 index => "dot1dBasePort",
29 columns => {
30 "dot1dBasePort" => 1,
31 "dot1dBasePortIfIndex" => 2
32 }
33 );
34  
35 1 has_scalar "dot1dStpProtocolSpecification" => ( oid => "2.1" );
36  
37 # .4 dot1dTp
38  
39 1 has_table "dot1dTpFdbEntry" => (
40 oid => "4.3",
41 index => "dot1dTpFdbAddress",
42 columns => {
43 "dot1dTpFdbAddress" => [ 1, 'munge_macaddress' ],
44 "dot1dTpFdbPort" => 2,
45 "dot1dTpFdbStatus" => 3,
46 }
47 );
48  
49 1 1;
50  
51 # Local Variables:
52 # mode: cperl
53 # indent-tabs-mode: nil
54 # cperl-indent-level: 4
55 # cperl-indent-parens-as-block: t
56 # End:
57  
58 __END__
« Insight/Device/NetSNMP.pm ↑ Summary Insight/MIB/Cisco_CDP.pm »