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.
Object constructor. Valid arguments:
name: The prefixlist name.
Set the prefixlist name.
Returns the prefixlist name.
Defines the card 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.
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>
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.