Samuel Abels > IPDevice > IPDevice::CiscoRouter::AccesslistEntry

Download:
IPDevice-0.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

IPDevice::CiscoRouter::AccesslistEntry

SYNOPSIS ^

 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');

DESCRIPTION ^

This module provides routines for storing informations regarding a single Cisco ACL entry.

CONSTRUCTOR AND METHODS ^

new([%args])

Object constructor. Valid arguments:

id: The ACL id. permitdeny: Valid values: permit|deny. Default is permit.

set_permitdeny('permit'|'deny')

Set whether the item permits or denies something. Returns TRUE on success, otherwise FALSE.

get_permitdeny()

Returns whether the item permits or denies something. ('permit'|'deny')

set_field($fieldnumber, $value)

Set a field value. Returns TRUE on success, otherwise FALSE.

get_field($fieldnumber)

Returns the value of the field with the given fieldnumber.

COPYRIGHT ^

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.

AUTHOR ^

Samuel Abels <spam debain org>

syntax highlighting: