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. $host is the hostname or IP address of the device. $ssh is a Net::OpenSSH connection to the device. $args is the device_auth entry; its vrfs limits the VRFs read.

Returns a list of hashrefs in the format { mac => MACADDR, ip => IPADDR }.

arpnip_by_vrf($host, $ssh, $args)

As arpnip, used when store_vrfs is on. Also reads show ip vrf and show ipv6 neighbor vrfids, and names each entry's VRF from the IP Arp or Neighbor Information block 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 vrf or 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, families is [4] and vrf_read covers IPv4 only. A vrfs setting other than 0-512 makes vrf_list_complete 0, so the VRFs it leaves out keep their stored entries.

A subclass that overrides arpnip must also override arpnip_by_vrf, or with store_vrfs on this arpnip_by_vrf is used instead of the override.