|
/Users/cpanrun/depot/main/contrib-patched/perl/CPAN/src/IPDevice/blib/lib/IPDevice/RouterBase/Prefixlist.pm |
new([%args])set_name($name)get_name()set_description($description)get_description()get_prefix($prefix)
IPDevice::RouterBase::Prefixlist
use IPDevice::RouterBase::Prefixlist;
my $pfxlist = new IPDevice::RouterBase::Prefixlist;
$pfxlist->set_name('Prefixlist Name');
$pfxlist->add_prefix('permit', '192.168.0.0/22', '20', '24');
This module provides routines for storing informations regarding an IP prefix list.
new([%args])Object constructor. Valid arguments:
name: The prefixlist name.
set_name($name)Set the prefixlist name.
get_name()Returns the prefixlist name.
set_description($description)Defines the card description.
get_description()Returns the card description.
Checks & adds the given IP prefix to the list. If the sequence number is not specified, the last sequence number + 5 will be used. Returns TRUE on success, otherwise FALSE.
get_prefix($prefix)Returns the IPDevice::RouterBase::PrefixlistEntry object.
Walks through all prefixlist entries calling the function $func. Args passed to $func are:
$prefix: The IPDevice::RouterBase::PrefixlistEntry. %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>
|
/Users/cpanrun/depot/main/contrib-patched/perl/CPAN/src/IPDevice/blib/lib/IPDevice/RouterBase/Prefixlist.pm |