Samuel Abels > IPDevice > IPDevice::RouterBase::LogicalInterface

Download:
IPDevice-0.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

IPDevice::RouterBase::LogicalInterface

SYNOPSIS ^

 use IPDevice::RouterBase::LogicalInterface;
 my $interface = new IPDevice::RouterBase::LogicalInterface(name => '0/1/2');
 $interface->set_ip('192.168.0.1', '255.255.255.252');
 
 my($ip, $mask) = $interface->get_ip();

DESCRIPTION ^

This module provides routines for storing informations regarding an logical IP router interface. If you have a pysical interface, use the IPDevice::RouterBase::Interface implementation instead.

CONSTRUCTOR AND METHODS ^

new([%args])

Object constructor. Valid arguments:

name: Store the logical interface name in the initial object.

set_name($name)

Set the logical interface name.

get_name()

Returns the logical interface name.

set_description($description)

Returns the interface description.

get_description()

Returns the interface description.

set_active($active)

Safe the interface's enabled status. (BOOLEAN)

get_active()

Returns the interface's enabled status. (BOOLEAN)

set_ip($ip, $mask)

Safe the logical interface's primary ip address/mask.

get_ip()

Returns the logical interface's primary ip address/mask.

set_pfxlen($pfxlen)

Safe the interface's prefix length.

get_pfxlen()

Returns the interface's prefix length.

push_secondary_ip($ip, $mask)

Push a secondary ip address to an array.

get_secondary_ips()

Returns an array of all secondary ip addresses.

pop_secondary_ip()

Pop a secondary ip address from an array.

set_unnumberedint($intname)

Set the interface name from which the unnumbered IP will be taken.

get_unnumberedint()

Returns the interface name from which the unnumbered IP will be taken.

set_bandwidth($bandwidth)

Safe the interface's configured bandwidth.

get_bandwidth()

Returns the interface's configured bandwidth.

set_ratelimit($ratelimit)

Safe the interface ratelimit.

get_ratelimit()

Returns the interface ratelimit.

set_isis_active($status)

Safe the interface's isis status. (BOOLEAN)

get_isis_active()

Returns the interface's isis status. (BOOLEAN)

set_isis_level($level)

Safe the interface's isis level. ('1', '2', '3' or '1-2', where 3 will be translated into '1-2')

get_isis_level()

Returns the interface's isis level. ('1', '2' or '1-2')

set_isis_metric($level, $metric)

Safe the interface's isis metric for the given isis level. $metric must be an integer value.

get_isis_metric($level)

Returns the interface's isis metric for the given isis level. Valid values for $level are '1' and '2'.

set_isis_passive($status)

Defines, whether the interface is isis-passive. (BOOLEAN)

get_isis_passive()

Returns the whether the interface is isis-passive. (BOOLEAN)

set_routecache_flowsampling($rcflowsampled)

Safe the interface's flowsampling status. (BOOLEAN)

get_routecache_flowsampling()

Returns the interface's flowsampling status. (BOOLEAN)

print_data()

Prints all data regarding the interface to STDOUT (e.g. for debugging).

COPYRIGHT ^

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.

AUTHOR ^

Samuel Abels <spam debain org>

syntax highlighting: