Helper subroutines to support parts of the Netdisco application.
There are no default exports,
:all tag will export all subroutines.
Given an IP address,
returns true if any of the items in
\@config matches that address,
otherwise returns false.
Normally you use
passing the name of the configuration setting to load.
This helper instead requires not the name of the setting,
but its value.
There are several options for what
\@config can contain:
- !!perl/regexp ^sep0.*$
"property:regex"- matched against a device property, such as
vendor(with enforced begin/end regex anchors)
To simply match all devices, use "
any" or IP Prefix "
0.0.0.0/0". Property regular expressions are anchored (that is, they must match the whole string). To match no devices we recommend an entry of "
localhost" in the setting.