IPDevice::RouterBase::Module
use IPDevice::RouterBase::Module; my $module = new IPDevice::RouterBase::Module; $module(0)->interface(1)->set_encapsulation('ppp');
This module provides routines for storing informations regarding an IP router module.
Object constructor. Valid arguments:
name: Store the module name in the initial object.
Set the module name.
Returns the module name.
Defines the card description.
Returns the card description.
Defines the module number. When created via any class from the IPDevice::RouterBase namespace, this is automatically set.
Returns the module number.
Defines the card's memory size.
Returns the card's memory size.
Defines the card type.
Returns the card type.
Returns the interface with the given number. If it doesn't exist yet, it will be created.
Walks through all interfaces calling the function $func. Args passed to $func are:
$interface: The IPDevice::RouterBase::Interface. %data: The given data, just piped through.
If $func returns FALSE, list evaluation will be stopped and the function returns FALSE.
Walks through all IPDevice::RouterBase::LogicalInterface calling the function $func. Args passed to $func are:
$unit: The IPDevice::RouterBase::LogicalInterface. %data: The given data, just piped through.
If $func returns FALSE, list evaluation will be stopped.
Prints all data regarding the module to STDOUT (e.g. for debugging).
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.