almost done whitespace cleanup

This commit is contained in:
inphobia
2019-01-19 05:33:09 +01:00
parent 16285ce2eb
commit d938a2c0d6
5 changed files with 30 additions and 30 deletions

View File

@@ -460,10 +460,10 @@ Max Baker
=head1 SYNOPSIS =head1 SYNOPSIS
my $mau = new SNMP::Info ( my $mau = new SNMP::Info (
AutoSpecify => 1, AutoSpecify => 1,
Debug => 1, Debug => 1,
DestHost => 'hpswitch', DestHost => 'hpswitch',
Community => 'public', Community => 'public',
Version => 2 Version => 2
); );
@@ -551,14 +551,14 @@ and their index in the MAU IF Table.
(C<ifMauIfIndex>) (C<ifMauIfIndex>)
=item $mau->mau_link() - Returns the type of Media Access used. =item $mau->mau_link() - Returns the type of Media Access used.
This is essentially the type of link in use. This is essentially the type of link in use.
eg. dot3MauType100BaseTXFD - 100BaseT at Full Duplex eg. dot3MauType100BaseTXFD - 100BaseT at Full Duplex
(C<ifMauType>) (C<ifMauType>)
=item $mau->mau_status() - Returns the admin link condition as =item $mau->mau_status() - Returns the admin link condition as
1 - other 1 - other
2 - unknown 2 - unknown
@@ -576,9 +576,9 @@ Use 5 and !5 to see if the link is up or down on the admin side.
(C<ifMauMediaAvailable>) (C<ifMauMediaAvailable>)
=item $mau->mau_type() - Returns a 32bit string reporting the capabilities =item $mau->mau_type() - Returns a 32bit string reporting the capabilities
of the port from a MAU POV. of the port from a MAU POV.
Directly from F<MAU-MIB> : Directly from F<MAU-MIB> :
Bit Capability Bit Capability
0 other or unknown 0 other or unknown
1 AUI 1 AUI
@@ -619,14 +619,14 @@ ports.
(C<ifMauAutoNegAdminStatus>) (C<ifMauAutoNegAdminStatus>)
=item $mau->mau_autosent() - Returns a 32 bit bit-string representing the =item $mau->mau_autosent() - Returns a 32 bit bit-string representing the
capabilities we are broadcasting on that port capabilities we are broadcasting on that port
Uses the same decoder as $mau->mau_type(). Uses the same decoder as $mau->mau_type().
(C<ifMauAutoNegCapAdvertised>) (C<ifMauAutoNegCapAdvertised>)
=item $mau->mau_autorec() - Returns a 32 bit bit-string representing the =item $mau->mau_autorec() - Returns a 32 bit bit-string representing the
capabilities of the device on the other end. capabilities of the device on the other end.
Uses the same decoder as $mau->mau_type(). Uses the same decoder as $mau->mau_type().
@@ -641,7 +641,7 @@ or provide a simpler interface to complex set operations. See
L<SNMP::Info/"SETTING DATA VIA SNMP"> for general information on set L<SNMP::Info/"SETTING DATA VIA SNMP"> for general information on set
operations. operations.
=over =over
=item $mau->mau_set_i_speed_admin(speed, ifIndex) =item $mau->mau_set_i_speed_admin(speed, ifIndex)
@@ -684,7 +684,7 @@ Accepts the following values for speed and duplex:
=head1 Utility Functions =head1 Utility Functions
=over =over
=item munge_int2bin() - Unpacks an integer into a 32bit bit string. =item munge_int2bin() - Unpacks an integer into a 32bit bit string.

View File

@@ -157,7 +157,7 @@ or C<%FUNCS> configuration. The data structure looks like:
} }
It should be noted that the order of method resolution in SNMP::Info is to It should be noted that the order of method resolution in SNMP::Info is to
first look for a defined subroutine (this is done by Perl), then the first look for a defined subroutine (this is done by Perl), then the
AUTOLOAD sequence will search for a definition in C<%GLOBALS> followed by AUTOLOAD sequence will search for a definition in C<%GLOBALS> followed by
C<%FUNCS>. C<%FUNCS>.

View File

@@ -558,7 +558,7 @@ Eric Miller
=head1 SYNOPSIS =head1 SYNOPSIS
# Let SNMP::Info determine the correct subclass for you. # Let SNMP::Info determine the correct subclass for you.
my $stack = new SNMP::Info( my $stack = new SNMP::Info(
AutoSpecify => 1, AutoSpecify => 1,
Debug => 1, Debug => 1,
@@ -566,7 +566,7 @@ Eric Miller
DestHost => 'myswitch', DestHost => 'myswitch',
Community => 'public', Community => 'public',
Version => 2 Version => 2
) )
or die "Can't connect to DestHost.\n"; or die "Can't connect to DestHost.\n";
my $class = $stack->class(); my $class = $stack->class();
@@ -620,13 +620,13 @@ Returns serial number of the chassis
=item $stack->ns_ag_ver() =item $stack->ns_ag_ver()
Returns the version of the agent in the form Returns the version of the agent in the form
'major.minor.maintenance[letters]'. 'major.minor.maintenance[letters]'.
(C<s5AgInfoVer>) (C<s5AgInfoVer>)
=item $stack->ns_op_mode() =item $stack->ns_op_mode()
Returns the stacking mode. Returns the stacking mode.
(C<s5AgSysCurrentOperationalMode>) (C<s5AgSysCurrentOperationalMode>)
@@ -821,7 +821,7 @@ Returns reference to hash. Key: Table entry, Value: Version
=head2 Pseudo F<ENTITY-MIB> information =head2 Pseudo F<ENTITY-MIB> information
These methods emulate F<ENTITY-MIB> Physical Table methods using These methods emulate F<ENTITY-MIB> Physical Table methods using
F<S5-CHASSIS-MIB>. F<S5-CHASSIS-MIB>.
=over =over
@@ -905,7 +905,7 @@ is not contained in any other entity.
=item $stack->munge_ns_grp_type() =item $stack->munge_ns_grp_type()
Munges C<s5ChasGrpType> into an C<ENTITY-MIB PhysicalClass> equivalent. Munges C<s5ChasGrpType> into an C<ENTITY-MIB PhysicalClass> equivalent.
=back =back

View File

@@ -126,14 +126,14 @@ Bill Fenner
=head1 SYNOPSIS =head1 SYNOPSIS
# Let SNMP::Info determine the correct subclass for you. # Let SNMP::Info determine the correct subclass for you.
my $poe = new SNMP::Info( my $poe = new SNMP::Info(
AutoSpecify => 1, AutoSpecify => 1,
Debug => 1, Debug => 1,
DestHost => 'myswitch', DestHost => 'myswitch',
Community => 'public', Community => 'public',
Version => 2 Version => 2
) )
or die "Can't connect to DestHost.\n"; or die "Can't connect to DestHost.\n";
my $class = $poe->class(); my $class = $poe->class();

View File

@@ -147,7 +147,7 @@ sub sonmp_if {
$port = 26; $port = 26;
} }
} }
my $index; my $index;
my $int = $sub_port ? "$slot.$port.$sub_port" : "$slot.$port"; my $int = $sub_port ? "$slot.$port.$sub_port" : "$slot.$port";
@@ -292,10 +292,10 @@ Eric Miller
=head1 SYNOPSIS =head1 SYNOPSIS
my $sonmp = new SNMP::Info ( my $sonmp = new SNMP::Info (
AutoSpecify => 1, AutoSpecify => 1,
Debug => 1, Debug => 1,
DestHost => 'router', DestHost => 'router',
Community => 'public', Community => 'public',
Version => 2 Version => 2
); );
@@ -321,7 +321,7 @@ Eric Miller
=head1 DESCRIPTION =head1 DESCRIPTION
SNMP::Info::SONMP is a subclass of SNMP::Info that provides an object oriented SNMP::Info::SONMP is a subclass of SNMP::Info that provides an object oriented
interface to the SynOptics Network Management Protocol (SONMP) information interface to the SynOptics Network Management Protocol (SONMP) information
through SNMP. through SNMP.
@@ -334,7 +334,7 @@ Discovery Protocol (NDP).
Create or use a device subclass that inherits this class. Do not use Create or use a device subclass that inherits this class. Do not use
directly. directly.
Each device implements a subset of the global and cache entries. Each device implements a subset of the global and cache entries.
Check the return value to see if that data is held by the device. Check the return value to see if that data is held by the device.
=head2 Inherited Classes =head2 Inherited Classes
@@ -368,7 +368,7 @@ Returns the offset if slot numbering does not start at 0. Defaults to 1.
=item $sonmp->port_offset() =item $sonmp->port_offset()
Returns the offset if port numbering does not start at 0. Defaults to 0. Returns the offset if port numbering does not start at 0. Defaults to 0.
=item $sonmp->hasSONMP() =item $sonmp->hasSONMP()
@@ -382,13 +382,13 @@ Returns the IP that the device is sending out for its Nmm topology info.
=item $sonmp->sonmp_run() =item $sonmp->sonmp_run()
Returns true if SONMP is on for this device. Returns true if SONMP is on for this device.
(C<s5EnMsTopStatus>) (C<s5EnMsTopStatus>)
=item $sonmp->mac() =item $sonmp->mac()
Returns MAC of the advertised IP address of this device. Returns MAC of the advertised IP address of this device.
=back =back
@@ -481,7 +481,7 @@ Returns reference to hash. Key: IID, Value: Remote IP address
If multiple entries exist with the same local port, sonmp_if(), with different If multiple entries exist with the same local port, sonmp_if(), with different
IPv4 addresses, sonmp_ip(), there is either a non SONMP device in between two or IPv4 addresses, sonmp_ip(), there is either a non SONMP device in between two or
more devices or multiple devices which are not directly connected. more devices or multiple devices which are not directly connected.
Use the data from the Layer2 Topology Table below to dig deeper. Use the data from the Layer2 Topology Table below to dig deeper.