IPDevice::RouterBase::Card
use IPDevice::RouterBase::Card; my $card = new IPDevice::RouterBase::Card; $card->module(1)->interface(2)->set_encapsulation('ppp');
This module provides routines for storing informations regarding an IP router card.
Object constructor. Valid arguments:
name: Store the card name in the initial object.
Defines the card number. When created via any class from the IPDevice::RouterBase namespace, this is automatically set.
Returns the card number.
Defines the card description.
Returns the card description.
Defines the card's interface speed.
Returns the card's speed.
Defines the card's memory size.
Returns the card's memory size.
Defines the card's line-memory size.
Returns the card's line-memory size.
Defines the card's serial number.
Returns the card's serial number.
Defines the card vendor's part number.
Returns the card vendor's part number.
Defines the card type.
Returns the card type.
Defines the processor type.
Returns the processor type.
Defines whether the card is slave.
Returns whether the card is slave.
Defines the slot size of the slot with the given number.
Returns the slot size for the slot with the given number.
Defines a string describing the slot content for the slot with the given number.
Returns a string describing the slot content for the slot with the given number.
Defines the active boot image.
Returns the active boot image.
Returns the module with the given number. If it doesn't exist, it will be created. If no module number is given, a virtual module will be returned. You can, for example, add interfaces that do not have a pysical module there.
Returns the interface with the given number. If it doesn't exist, it will be created. Returns undef only on an error.
Walks through all modules calling the function $func. Args passed to $func are:
$module: The IPDevice::RouterBase::Module. %data: The given data, just piped through.
If $func returns FALSE, list evaluation will be stopped.
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.
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.
Prints all data regarding the card 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.