IPDevice::CiscoRouter::Accesslist
use IPDevice::CiscoRouter::Accesslist; my $acl = new IPDevice::CiscoRouter::Accesslist; $acl->set_id(10); $acl->add_entry('permit', '192.168.0.0/22', '20', '24');
This module provides routines for storing informations regarding a Cisco accesslist entry.
Object constructor. Valid arguments:
id: The accesslist number.
Set the accesslist name.
Returns the accesslist number.
Set the accesslist description.
Returns the accesslist description.
Adds a new entry to the accesslist. Returns TRUE on success, otherwise FALSE.
Walks through the ACL calling the function $func for every ACL statement. Args passed to $func are:
$aclentry: The IPDevice::CiscoRouter::AccesslistEntry. %data: The given data, just piped through.
If $func returns FALSE, list evaluation will be stopped.
Copyright (c) 2004 Samuel Abels. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Samuel Abels <spam debain org>
To install IPDevice::IPv4, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IPDevice::IPv4
CPAN shell
perl -MCPAN -e shell install IPDevice::IPv4
For more information on module installation, please visit the detailed CPAN module installation guide.