added cisco_comm_indexing() method for clarification/customization purposed.

This commit is contained in:
Max Baker
2004-03-02 05:46:14 +00:00
parent 094c2d548d
commit d78e5d6656
7 changed files with 43 additions and 2 deletions

View File

@@ -1,12 +1,15 @@
SNMP::Info - Perl5 OO Interface to Network Devices and SNMP MIBs SNMP::Info - Friendly OO-style interface to Network devices using SNMP.
ChangeLog $Id$ ChangeLog $Id$
version 0.8 () version 0.8 ()
+ Added Q-BRIDGE-MIB support to SNMP::Info::Bridge
+ Added Aironet AP4800 to Layer3::Aironet class + Added Aironet AP4800 to Layer3::Aironet class
+ Added C3500XL devices to the Layer2::C2900 class + Added C3500XL devices to the Layer2::C2900 class
+ Added Cisco 3750 (37xxstack) to Layer3::C6500 class + Added Cisco 3750 (37xxstack) to Layer3::C6500 class
+ Added Cisco Catalyst 4000 to Layer3::C6500 class + Added Cisco Catalyst 4000 to Layer3::C6500 class
+ Added Cisco Catalyst 2970 to Layer3::C6500 Class + Added Cisco Catalyst 2970 to Layer3::C6500 Class
* Made Cisco Commuinty string indexing a boolean method for clarification
* Added VLAN info for HP devices using Q-BRIDGE-MIB
* Fixed warning about uninitialized value in CiscoStats line 92 * Fixed warning about uninitialized value in CiscoStats line 92
* Added for more serial# checking for L2 and L3 * Added for more serial# checking for L2 and L3
* Fixed warning in Layer2::Bay about non numeric port line 199 * Fixed warning in Layer2::Bay about non numeric port line 199

15
Info.pm
View File

@@ -771,7 +771,6 @@ Usually this method is called internally from new(AutoSpecify => 1)
See device_type() entry for how a subclass is chosen. See device_type() entry for how a subclass is chosen.
=back
=cut =cut
sub specify { sub specify {
@@ -805,6 +804,20 @@ sub specify {
return $sub_obj; return $sub_obj;
} }
=item $info->cisco_comm_indexing()
Returns 0. Is an overridable method used for vlan indexing for
snmp calls on certain Cisco devices.
See L<ftp://ftp.cisco.com/pub/mibs/supportlists/wsc5000/wsc5000-communityIndexing.html>
=cut
sub cisco_comm_indexing{
0;
}
=back
=head2 Globals (Scalar Methods) =head2 Globals (Scalar Methods)
These are methods to return scalar data from RFC1213. These are methods to return scalar data from RFC1213.

View File

@@ -99,6 +99,10 @@ sub os_ver {
return undef; return undef;
} }
sub cisco_comm_indexing {
1;
}
sub interfaces { sub interfaces {
my $c1900 = shift; my $c1900 = shift;
my $i_descr = $c1900->i_description(); my $i_descr = $c1900->i_description();

View File

@@ -72,6 +72,14 @@ sub vendor {
return 'cisco'; return 'cisco';
} }
sub os {
return 'catalyst';
}
sub cisco_comm_indexing {
1;
}
sub i_duplex { sub i_duplex {
my $c2900 = shift; my $c2900 = shift;

View File

@@ -110,6 +110,10 @@ sub os_ver {
return undef; return undef;
} }
sub cisco_comm_indexing {
1;
}
1; 1;
__END__ __END__

View File

@@ -115,6 +115,10 @@ sub ports {
return $ports2; return $ports2;
} }
sub cisco_comm_indexing {
1;
}
1; 1;
__END__ __END__

View File

@@ -93,6 +93,11 @@ sub vendor {
return 'cisco'; return 'cisco';
} }
sub cisco_comm_indexing {
1;
}
1; 1;
__END__ __END__