new([%args])set_name($name)get_name()set_description($description)get_description()set_number($name)get_number()set_serialnumber($serialumber)get_serialnumber()set_type($type)get_type()interface($interfacenumber)print_data()
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.
new([%args])Object constructor. Valid arguments:
name: Store the module name in the initial object.
set_name($name)Set the module name.
get_name()Returns the module name.
set_description($description)Defines the card description.
get_description()Returns the card description.
set_number($name)Defines the module number. When created via any class from the IPDevice::RouterBase namespace, this is automatically set.
get_number()Returns the module number.
set_serialnumber($serialumber)Defines the card's memory size.
get_serialnumber()Returns the card's memory size.
set_type($type)Defines the card type.
get_type()Returns the card type.
interface($interfacenumber)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.
print_data()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>