diff --git a/Info/Airespace.pm b/Info/Airespace.pm index ad02e793..b391dc56 100644 --- a/Info/Airespace.pm +++ b/Info/Airespace.pm @@ -1118,6 +1118,9 @@ switch. Returns 00000011. Class emulates Layer 2 functionality for Thin APs through proprietary MIBs. +=item $airespace->at_netaddr() +=item $airespace->at_paddr() + =item $airespace->serial() (C) diff --git a/Info/Ipv6.pm b/Info/Ipv6.pm index 5d8ef466..e7aa4799 100644 --- a/Info/Ipv6.pm +++ b/Info/Ipv6.pm @@ -90,7 +90,7 @@ $VERSION = '2.01'; sub ipv6_n2p_mac { my $info = shift; my $return; - my $phys_addr = &test_methods( $info, { + my $phys_addr = &_test_methods( $info, { ip_n2p_phys_addr => IPMIB, c_inet_phys_addr => CISCO, i6_n2p_phys_addr => IPV6MIB, @@ -110,14 +110,14 @@ sub ipv6_n2p_mac { } } } - printf("%s: data comes from %s.\n", &my_sub_name, $info->method_used() ) if $info->debug(); + printf("%s: data comes from %s.\n", &_my_sub_name, $info->_method_used() ) if $info->debug(); return $return; } sub ipv6_n2p_addr { my $info = shift; my $return; - my $net_addr = &test_methods( $info, { + my $net_addr = &_test_methods( $info, { ip_n2p_phys_addr => IPMIB, c_inet_phys_addr => CISCO, i6_n2p_phys_addr => IPV6MIB, @@ -139,14 +139,14 @@ sub ipv6_n2p_addr { } } } - printf("%s: data comes from %s.\n", &my_sub_name, $info->method_used() ) if $info->debug(); + printf("%s: data comes from %s.\n", &_my_sub_name, $info->_method_used() ) if $info->debug(); return $return; } sub ipv6_n2p_if { my $info = shift; my $return; - my $phys_addr = &test_methods( $info, { + my $phys_addr = &_test_methods( $info, { ip_n2p_phys_addr => IPMIB, c_inet_phys_addr => CISCO, i6_n2p_phys_addr => IPV6MIB, @@ -166,14 +166,14 @@ sub ipv6_n2p_if { } } } - printf("%s: data comes from %s.\n", &my_sub_name, $info->method_used() ) if $info->debug(); + printf("%s: data comes from %s.\n", &_my_sub_name, $info->_method_used() ) if $info->debug(); return $return; } sub ipv6_n2p_type { my $info = shift; my $return; - my $phys_type = &test_methods( $info, { + my $phys_type = &_test_methods( $info, { ip_n2p_phys_type => IPMIB, c_inet_phys_type => CISCO, i6_n2p_phys_type => IPV6MIB, @@ -193,14 +193,14 @@ sub ipv6_n2p_type { } } } - printf("%s: data comes from %s.\n", &my_sub_name, $info->method_used() ) if $info->debug(); + printf("%s: data comes from %s.\n", &_my_sub_name, $info->_method_used() ) if $info->debug(); return $return; } sub ipv6_n2p_state { my $info = shift; my $return; - my $phys_state = &test_methods( $info, { + my $phys_state = &_test_methods( $info, { ip_n2p_phys_state => IPMIB, c_inet_phys_state => CISCO, i6_n2p_phys_state => IPV6MIB, @@ -220,14 +220,14 @@ sub ipv6_n2p_state { } } } - printf("%s: data comes from %s.\n", &my_sub_name, $info->method_used() ) if $info->debug(); + printf("%s: data comes from %s.\n", &_my_sub_name, $info->_method_used() ) if $info->debug(); return $return; } sub ipv6_index { my $info = shift; my $return; - my $ipv6_index = &test_methods( $info, { + my $ipv6_index = &_test_methods( $info, { ip_addr6_index => IPMIB, c_addr6_index => CISCO, }); @@ -240,14 +240,14 @@ sub ipv6_index { } } } - printf("%s: data comes from %s.\n", &my_sub_name, $info->method_used() ) if $info->debug(); + printf("%s: data comes from %s.\n", &_my_sub_name, $info->_method_used() ) if $info->debug(); return $return; } sub ipv6_type { my $info = shift; my $return; - my $ipv6_type = &test_methods( $info, { + my $ipv6_type = &_test_methods( $info, { ip_addr6_type => IPMIB, c_addr6_type => CISCO, }); @@ -260,14 +260,14 @@ sub ipv6_type { } } } - printf("%s: data comes from %s.\n", &my_sub_name, $info->method_used() ) if $info->debug(); + printf("%s: data comes from %s.\n", &_my_sub_name, $info->_method_used() ) if $info->debug(); return $return; } sub ipv6_pfx_origin { my $info = shift; my $return; - my $ipv6_pfx_origin = &test_methods( $info, { + my $ipv6_pfx_origin = &_test_methods( $info, { ip_pfx_origin => IPMIB, c_pfx_origin => CISCO, }); @@ -280,11 +280,11 @@ sub ipv6_pfx_origin { } } } - printf("%s: data comes from %s.\n", &my_sub_name, $info->method_used() ) if $info->debug(); + printf("%s: data comes from %s.\n", &_my_sub_name, $info->_method_used() ) if $info->debug(); return $return; } -sub method_used { +sub _method_used { my $info = shift; my $return = 'none of the MIBs'; if (defined $info::METHOD) { @@ -299,7 +299,7 @@ sub method_used { return $return; } -sub test_methods { +sub _test_methods { my $info = shift; my $test = shift; my $return = {}; @@ -313,18 +313,11 @@ sub test_methods { return $return; } -sub my_sub_name { +sub _my_sub_name { my @callinfo = caller(1); return $callinfo[3]; } -=item munge_physaddr() - -Takes an octet stream (HEX-STRING) and returns a colon separated ASCII hex -string. - -=cut - sub munge_physaddr { my $addr = shift; return unless defined $addr; @@ -339,12 +332,13 @@ __END__ =head1 NAME -SNMP::Info::Ipv6 - SNMP Interface for mapping IPv6 addresses to MACs and interfaces, using information from +SNMP::Info::Ipv6 - SNMP Interface for obtaining configured IPv6 addresses and +mapping IPv6 addresses to MACs and interfaces, using information from F, F and/or F. =head1 AUTHOR -Jeroen van Ingen +Jeroen van Ingen and Carlos Vicente =head1 SYNOPSIS @@ -398,7 +392,35 @@ none. These are methods that return tables of information in the form of a reference to a hash. -=head2 Internet Address Translation table +=head2 Internet Address Table + +=over + +=item $info->ipv6_n2p_addr() + +=item $info->ipv6_n2p_if() + +=item $info->ipv6_n2p_mac() + +=item $info->ipv6_n2p_state() + +=item $info->ipv6_n2p_type() + +=item $info->ipv6_index() + +Maps an IPv6 address to an interface C + +=item $info->ipv6_type() + +Maps an IPv6 address to its type (unicast, anycast, etc.) + +=item $info->ipv6_pfx_origin() + +Maps an IPv6 prefix with its origin (manual, well-known, dhcp, etc.) + +=back + +=head2 Internet Address Translation Table =over @@ -408,4 +430,15 @@ Maps an address of type C on interface C =back +=head1 MUNGES + +=over + +=item munge_physaddr() + +Takes an octet stream (HEX-STRING) and returns a colon separated ASCII hex +string. + +=back + =cut diff --git a/Info/Layer2/Airespace.pm b/Info/Layer2/Airespace.pm index b0a667d6..47c0ccf9 100644 --- a/Info/Layer2/Airespace.pm +++ b/Info/Layer2/Airespace.pm @@ -234,14 +234,14 @@ See documentation in L for details. These are methods that return tables of information in the form of a reference to a hash. +=over + +=item cd11_mac() + +=back + =head2 Overrides -=over - -=item None - -=back - =head2 Table Methods imported from SNMP::Info::Airespace See documentation in L for details. @@ -254,4 +254,16 @@ See documentation in L for details. See documentation in L for details. +=head1 MUNGES + +=over + +=item munge_64bits() + +=item munge_cd11_rateset() + +=item munge_cd11_txrate() + +=back + =cut diff --git a/Info/Layer2/HP.pm b/Info/Layer2/HP.pm index d53ddd02..0f4bc4ec 100644 --- a/Info/Layer2/HP.pm +++ b/Info/Layer2/HP.pm @@ -970,4 +970,17 @@ Munge for c_id which handles CDP and LLDP. =back +=head1 SET METHODS + +These are methods that provide SNMP set functionality for overridden methods +or provide a simpler interface to complex set operations. See +L for general information on set +operations. + +=over + +=item set_i_vlan() + +=item set_i_vlan_tagged() + =cut diff --git a/Info/Layer2/HP4000.pm b/Info/Layer2/HP4000.pm index 9b3d04d7..3a7b899c 100644 --- a/Info/Layer2/HP4000.pm +++ b/Info/Layer2/HP4000.pm @@ -705,4 +705,17 @@ See documentation in L for details. See documentation in L for details. +=head1 SET METHODS + +These are methods that provide SNMP set functionality for overridden methods +or provide a simpler interface to complex set operations. See +L for general information on set +operations. + +=over + +=item set_i_vlan() + +=item set_i_vlan_tagged() + =cut diff --git a/Info/Layer3/C3550.pm b/Info/Layer3/C3550.pm index bc814791..7e61f186 100644 --- a/Info/Layer3/C3550.pm +++ b/Info/Layer3/C3550.pm @@ -556,6 +556,8 @@ See documentation in L for details. These are methods that return tables of information in the form of a reference to a hash. +=over + =item $c3550->c_if() Returns reference to hash. Key: iid Value: local device port (interfaces) @@ -586,6 +588,8 @@ chassis component associated with the remote system. Returns reference to hash. Key: iid Value: Remote Device Type +=back + =head2 Overrides =over diff --git a/Info/Layer3/Juniper.pm b/Info/Layer3/Juniper.pm index 3e83d498..0f42ddc0 100644 --- a/Info/Layer3/Juniper.pm +++ b/Info/Layer3/Juniper.pm @@ -311,6 +311,25 @@ Returns LLDP information. =back +=head2 Forwarding Table (C) + +=over + +=item $juniper->fw_mac() + +Returns reference to hash of forwarding table MAC Addresses + +(C) + +=item $juniper->fw_port() + +Returns reference to hash of forwarding table entries port interface +identifier (iid) + +(C) + +=back + =head2 Table Methods imported from SNMP::Info::Layer3 See documentation in L for details.