App::Netdisco::Util::Permission
Helper subroutines to support parts of the Netdisco application.
There are no default exports, however the :all tag will export all subroutines.
:all
Given an IP address or object instance, returns true if the configuration setting $setting_name matches, else returns false. If the setting is undefined or empty, then check_acl_no also returns false.
$setting_name
check_acl_no
If $setting_name is a valid setting, then it will be resolved to the access control list, else we assume you passed an ACL entry or ACL.
See App::Netdisco::Manual::Configuration for details of what $acl may contain.
$acl
Given an IP address or object instance, returns true if the configuration setting $setting_name matches, else returns false. If the setting is undefined or empty, then check_acl_only also returns true.
check_acl_only
Given an IP address or object instance, compares it to the items in \@acl then returns true or false. You can control whether any item must match or all must match, and items can be negated to invert the match logic.
\@acl
Accepts instances of classes representing Netdisco Devices, Netdisco Device IPs, and NetAddr::IP family objects.
There are several options for what \@acl may contain. See App::Netdisco::Manual::Configuration for the details.
To install App::Netdisco, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Netdisco
CPAN shell
perl -MCPAN -e shell install App::Netdisco
For more information on module installation, please visit the detailed CPAN module installation guide.