Net::ACL::Match::List - Class matching data against one or more access-lists
use Net::ACL::Match::List; # Constructor $match = new Net::ACL::Match::List(2, [ Type => 'prefix-list' Name => 42 ] ); # Accessor Methods $rc = $match->match('127.0.0.0/20');
This module match data against one or more access-lists. It only matches if data if data is permited by all access-lists.
$match = new Net::ACL::Match::List(2, [ Type => 'prefix-list' Name => 42 ] );
This is the constructor for Net::ACL::Match::List objects. It returns a reference to the newly created object. The first argument is the index of the element that should be matched.
The second argument can have one of the following types:
An access-list to be matched against.
A reference to a hash passed to Net::ACL->renew
A scalar passed to Net::ACL->renew
A reference to an array one of the abover 3 types. Used to match multiple lists.
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.
Return a list with all mached lists names.
Returns the type of the first list thats matched - or undef if no lists are matched.
Net::ACL::Match, Net::ACL::Rule, Net::ACL
Martin Lorensen <bgp@martin.lorensen.dk>
To install Net::ACL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::ACL
CPAN shell
perl -MCPAN -e shell install Net::ACL
For more information on module installation, please visit the detailed CPAN module installation guide.