documentation overhaul (#353)
* ident
* remove $Id$ tags from rcs software which has been retired
* make an effort to sync required mib docs with actual code
* sync even more docs with what code actually does
* some whitespace nits
* fixup example to use snmpv2 for all but the most ancient devices
* remove blurb to find more specific snmp::info classes for classes
which alrdy are as specific as they can get (eg snmp::info::layer3::vmware
doesn't need info on to find a specific module since there ain't none)
* rename all sub {vendor} strings to lowercase vendor, if cisco, juniper
and arista can be lowercase, so can be all the rest.
* fix tests
* spread some use warnings around
* use $ instead of @
* remove defines that are included via parent classes
* use strict + warnings
* remove alrdy included modules
* add comma after last list item
* typos
* mibs are found in our mib repo, not on the cisco site
* documentation fixes
This commit is contained in:
@@ -70,7 +70,7 @@ $VERSION = '3.68';
|
||||
|
||||
%MUNGE = (
|
||||
'sonmp_topo_mac' => \&SNMP::Info::munge_mac,
|
||||
'sonmp_topo_e_mac' => \&SNMP::Info::munge_mac
|
||||
'sonmp_topo_e_mac' => \&SNMP::Info::munge_mac,
|
||||
);
|
||||
|
||||
sub index_factor {
|
||||
@@ -120,7 +120,7 @@ sub sonmp_if {
|
||||
|| $sonmp->sonmp_topo_e_platform($partial)
|
||||
|| {};
|
||||
my $interfaces = $sonmp->interfaces() || {};
|
||||
my %r_interfaces = reverse %$interfaces;
|
||||
my %r_interfaces = reverse %$interfaces;
|
||||
my $index_factor = $sonmp->index_factor();
|
||||
my $slot_offset = $sonmp->slot_offset();
|
||||
my $port_offset = $sonmp->port_offset();
|
||||
@@ -305,8 +305,8 @@ Eric Miller
|
||||
|
||||
$hassonmp = $sonmp->hasSONMP() ? 'yes' : 'no';
|
||||
|
||||
# Print out a map of device ports with CDP neighbors:
|
||||
my $interfaces = $sonmp->interfaces();
|
||||
# Print out a map of device ports with SONMP neighbors:
|
||||
my $interfaces = $sonmp->interfaces();
|
||||
my $sonmp_if = $sonmp->sonmp_if();
|
||||
my $sonmp_ip = $sonmp->sonmp_ip();
|
||||
my $sonmp_port = $sonmp->sonmp_port();
|
||||
@@ -351,7 +351,7 @@ None.
|
||||
|
||||
=back
|
||||
|
||||
=head1 GLOBAL METHODS
|
||||
=head1 GLOBALS
|
||||
|
||||
These are methods that return scalar values from SNMP
|
||||
|
||||
|
||||
Reference in New Issue
Block a user