NAME
App::Netdisco::SSHCollector::Platform::VOSS
DESCRIPTION
Collect ARP entries from Extreme VSP devices running the VOSS operating system.
With store_vrfs off, SNMP arpnip reads only the GlobalRouter VRF, so this module is the way to collect ARP entries from the other VRFs. With it on, SNMP reads each VRF too, and this module's arpnip_by_vrf stores each entry under its VRF and reads each VRF's IPv6 neighbors as well. arpnip reads IPv4 only.
By default this module gets ARP entries from all VRFs (0-512). To specify only certain VRFs in the config:
device_auth:
- tag: sshvsp
driver: cli
platform: VOSS
only:
- 10.1.1.1
- 192.168.0.1
username: oliver
password: letmein
vrfs: 1,5,100
The VRFs can be specified in any format that the "show ip arp vrfids" command will take. For example:
1,2,3,4,5,10
1-5,10
1-100
99
PUBLIC METHODS
- arpnip($host, $ssh, $args)
-
Retrieve ARP entries from device.
$hostis the hostname or IP address of the device.$sshis a Net::OpenSSH connection to the device.$argsis thedevice_authentry; itsvrfslimits the VRFs read.Returns a list of hashrefs in the format
{ mac => MACADDR, ip => IPADDR }. - arpnip_by_vrf($host, $ssh, $args)
-
As
arpnip, used whenstore_vrfsis on. Also readsshow ip vrfandshow ipv6 neighbor vrfids, and names each entry's VRF from theIP ArporNeighbor Informationblock it appears in (GlobalRouter is''). IPv6 addresses are returned compressed. Neighbor rows are read whatever their TYPE and STATE, and link-local and router-own rows are kept.Returns
{ entries => [ { ip, mac, vrf } ], vrf_read => { VRF => 0|1 }, vrf_list_complete => 0|1, families => [4, 6] }, or undef when the session,show ip vrfor the ARP command fails. A block is read whole when its footer counts exactly the rows parsed. A VRF is 1 only when its ARP block and its neighbor block were read whole; a VRF the device says has no IPv6 instance (MgmtRouter) counts its IPv6 as read whole and empty. When the IPv6 command is refused or times out, or the ARP command timed out so it is never sent,familiesis[4]andvrf_readcovers IPv4 only. Avrfssetting other than0-512makesvrf_list_complete0, so the VRFs it leaves out keep their stored entries.A subclass that overrides
arpnipmust also overridearpnip_by_vrf, or withstore_vrfson thisarpnip_by_vrfis used instead of the override.