Oliver Gorwits > App-Netdisco-2.020003_003 > App::Netdisco::Util::SanityCheck

Download:
App-Netdisco-2.020003_003.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: App-Netdisco-2.023000

NAME ^

App::Netdisco::Util::SanityCheck

DESCRIPTION ^

Helper subroutines to support parts of the Netdisco application.

There are no default exports, however the :all tag will export all subroutines.

EXPORT_OK ^

check_mac( $device, $node, $port_macs? )

Given a Device database object and a MAC address, perform various sanity checks which need to be done before writing an ARP/Neighbor entry to the database storage.

Returns false, and might log a debug level message, if the checks fail.

Returns a true value if these checks pass:

Optionally pass a cached set of Device port MAC addresses as the third argument, in which case an additional check is added:

syntax highlighting: