Helper subroutines to support parts of the Netdisco application.
There are no default exports,
:all tag will export all subroutines.
Given a Device database object, and a working SNMP connection, connect to a device and discover its ARP cache for IPv4 and Neighbor cache for IPv6.
Will also discover subnets in use on the device and update the Subnets table.
Stores a new entry to the
node_ip table with the given MAC,
IP (v4 or v6) and DNS host name.
Will mark old entries for this IP as no longer
Optionally a literal string can be passed in the fourth argument for the
otherwise the current timestamp (
now()) is used.