The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Netdisco::Util::Permission

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_acl_no( $ip | $instance, $setting_name )

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.

See App::Netdisco::Manual::Configuration for details of what $setting_name can contain.

check_acl_only( $ip | $instance, $setting_name )

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.

See App::Netdisco::Manual::Configuration for details of what $setting_name can contain.

check_acl( $ip | $instance, $configitem | \@config )

Given an IP address or object instance, compares it to the items in \@config 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.

Accepts instances of classes representing Netdisco Devices, Netdisco Device IPs, and NetAddr::IP family objects.

There are several options for what \@config can contain. See App::Netdisco::Manual::Configuration for the details.