new([%args])set_name($id)get_name()set_description($id)get_description()
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.
new([%args])Object constructor. Valid arguments:
id: The accesslist number.
set_name($id)Set the accesslist name.
get_name()Returns the accesslist number.
set_description($id)Set the accesslist description.
get_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>