documentation catch up

This commit is contained in:
Max Baker
2005-01-26 19:22:02 +00:00
parent 31661b1374
commit 5595fea427
3 changed files with 64 additions and 9 deletions

View File

@@ -106,7 +106,7 @@ sub model {
$model =~ s/^catalyst//; $model =~ s/^catalyst//;
# turn 355048 into 3550-48 # turn 355048 into 3550-48
if ($model =~ /^(35\d\d)(\d\d[T]?)$/) { if ($model =~ /^(35\d\d)(\d\d(T|G)?)$/) {
$model = "$1-$2"; $model = "$1-$2";
} }
return $model; return $model;
@@ -181,6 +181,10 @@ a more specific class using the method above.
=item SNMP::Info::CiscoStack =item SNMP::Info::CiscoStack
=item SNMP::Info::CDP
=item SNMP::Info::CiscoStats
=back =back
=head2 Required MIBs =head2 Required MIBs
@@ -195,6 +199,10 @@ See SNMP::Info::CiscoVTP for its own MIB requirements.
See SNMP::Info::CiscoStack for its own MIB requirements. See SNMP::Info::CiscoStack for its own MIB requirements.
See SNMP::Info::CiscoStats for its own MIB requirements.
See SNMP::Info::CDP for its own MIB requirements.
=back =back
=head1 GLOBALS =head1 GLOBALS
@@ -207,6 +215,17 @@ These are methods that return scalar value from SNMP
Returns 'cisco' Returns 'cisco'
=item $c3550->model()
Will take the translated model number and try to format it better.
355048 -> 3550-48
355012G -> 3550-12G
=item $c3550->ports()
Trys to cull the number of ports from the model number.
=back =back
=head2 Globals imported from SNMP::Info::Layer3 =head2 Globals imported from SNMP::Info::Layer3
@@ -221,6 +240,14 @@ See documentation in SNMP::Info::CiscoVTP for details.
See documentation in SNMP::Info::CiscoStack for details. See documentation in SNMP::Info::CiscoStack for details.
=head2 Globals imported from SNMP::Info::CDP
See documentation in SNMP::Info::CDP for details.
=head2 Globals imported from SNMP::Info::CiscoStats
See documentation in SNMP::Info::CiscoStats for details.
=head1 TABLE ENTRIES =head1 TABLE ENTRIES
These are methods that return tables of information in the form of a reference These are methods that return tables of information in the form of a reference
@@ -238,4 +265,12 @@ See documentation in SNMP::Info::CiscoVTP for details.
See documentation in SNMP::Info::CiscoStack for details. See documentation in SNMP::Info::CiscoStack for details.
=head2 Table Methods imported from SNMP::Info::CDP
See documentation in SNMP::Info::CDP for details.
=head2 Table Methods imported from SNMP::Info::CiscoStats
See documentation in SNMP::Info::CiscoStats for details.
=cut =cut

View File

@@ -92,13 +92,6 @@ $INIT = 0;
*SNMP::Info::Layer3::C6500::i_name = \&SNMP::Info::Layer3::i_name; *SNMP::Info::Layer3::C6500::i_name = \&SNMP::Info::Layer3::i_name;
*SNMP::Info::Layer3::C6500::i_type = \&SNMP::Info::CiscoStack::i_type; *SNMP::Info::Layer3::C6500::i_type = \&SNMP::Info::CiscoStack::i_type;
sub model {
my $c6500 = shift;
my $model1 = $c6500->model1();
return $model1 if defined $model1;
return $c6500->SUPER::model();
}
sub vendor { sub vendor {
return 'cisco'; return 'cisco';
} }
@@ -107,7 +100,6 @@ sub cisco_comm_indexing {
1; 1;
} }
1; 1;
__END__ __END__
@@ -158,6 +150,10 @@ a more specific class using the method above.
=item SNMP::Info::CiscoStack =item SNMP::Info::CiscoStack
=item SNMP::Info::CiscoStats
=item SNMP::Info::CDP
=back =back
=head2 Required MIBs =head2 Required MIBs
@@ -172,6 +168,10 @@ See SNMP::Info::CiscoVTP for its own MIB requirements.
See SNMP::Info::CiscoStack for its own MIB requirements. See SNMP::Info::CiscoStack for its own MIB requirements.
See SNMP::Info::CiscoStats for its own MIB requirements.
See SNMP::Info::CDP for its own MIB requirements.
=back =back
=head1 GLOBALS =head1 GLOBALS
@@ -198,6 +198,14 @@ See documentation in SNMP::Info::CiscoVTP for details.
See documentation in SNMP::Info::CiscoStack for details. See documentation in SNMP::Info::CiscoStack for details.
=head2 Globals imported from SNMP::Info::CDP
See documentation in SNMP::Info::CDP for details.
=head2 Globals imported from SNMP::Info::CiscoStats
See documentation in SNMP::Info::CiscoStats for details.
=head1 TABLE ENTRIES =head1 TABLE ENTRIES
These are methods that return tables of information in the form of a reference These are methods that return tables of information in the form of a reference
@@ -215,5 +223,13 @@ See documentation in SNMP::Info::CiscoVTP for details.
See documentation in SNMP::Info::CiscoStack for details. See documentation in SNMP::Info::CiscoStack for details.
=head2 Table Methods imported from SNMP::Info::CDP
See documentation in SNMP::Info::CDP for details.
=head2 Table Methods imported from SNMP::Info::CiscoStats
See documentation in SNMP::Info::CiscoStats for details.
=cut =cut

View File

@@ -134,6 +134,10 @@ See SNMP::Info::Layer3 for its own MIB requirements.
See SNMP::Info::CiscoVTP for its own MIB requirements. See SNMP::Info::CiscoVTP for its own MIB requirements.
See SNMP::Info::CiscoStats for its own MIB requirements.
See SNMP::Info::CDP for its own MIB requirements.
=back =back
=head1 GLOBALS =head1 GLOBALS