NAME
Net::ACL::Match::List - Class matching data against one or more access-lists
SYNOPSIS
use Net::ACL::Match::List;
# Constructor
$match = new Net::ACL::Match::List( [
Type => 'prefix-list'
Name => 42
] );
# Accessor Methods
$rc = $match->match('127.0.0.0/20');
DESCRIPTION
This module match data against one or more access-lists. It only matches if data if data is permited by all access-lists.
CONSTRUCTOR
new() - create a new Net::ACL::Match::List object
$match = new Net::ACL::Match::List( [
Type => 'prefix-list'
Name => 42
] );
This is the constructor for Net::ACL::Match::List objects. It returns a reference to the newly created object. It takes one argument, which can have one of the following types:
Net::ACL - An access-list to be matched against.
HASH reference - A reference to a hash passed to Net::ACL->renew
SCALAR - A scalar passed to Net::ACL->renew
ARRAY reference - A reference to an array one of the abover 3 types. Used to match multiple lists.
ACCESSOR METHODS
match()
The match method verifies if the data is permitted by all access-lists supplied to the constructor. Returns ACL_MATCH if it does, otherwise ACL_NOMATCH.
SEE ALSO
Net::ACL::Match, Net::ACL::Rule, Net::ACL
AUTHOR
Martin Lorensen <bgp@martin.lorensen.dk>