IPDevice::CiscoRouter::AccesslistEntry
use IPDevice::CiscoRouter::AccesslistEntry; my $entry = new IPDevice::CiscoRouter::AccesslistEntry; $entry->set_permitdeny('deny'); $entry->set_field(1, '192.168.0.0/22'); $entry->set_field(2, '20'); $entry->set_field(3, 'whatever');
This module provides routines for storing informations regarding a single Cisco ACL entry.
Object constructor. Valid arguments:
id: The ACL id. permitdeny: Valid values: permit|deny. Default is permit.
Set whether the item permits or denies something. Returns TRUE on success, otherwise FALSE.
Returns whether the item permits or denies something. ('permit'|'deny')
Set a field value. Returns TRUE on success, otherwise FALSE.
Returns the value of the field with the given fieldnumber.
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.