The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

IPDevice::RouterBase::BGPNeighbor

SYNOPSIS

 use IPDevice::RouterBase::BGPNeighbor;
 my $neigh = new IPDevice::RouterBase::BGPNeighbor;
 $neigh->set_name('Neighbor Name');
 $neigh->set_ip('192.168.0.2');

DESCRIPTION

This module provides routines for storing informations regarding a BGP neighbor.

CONSTRUCTOR AND METHODS

new([%args])

Object constructor. Valid arguments:

name: The neighbor name. ip: The neighbor ip.

set_name($name)

Set the BGP neighbor name.

get_name()

Returns the BGP neighbor name.

set_groupname($name)

Set the BGP group name.

get_groupname()

Returns the BGP group name.

set_description($description)

Set the BGP neighbor description.

get_description()

Returns the BGP neighbor description.

set_ip($ip)

Checks & sets the neighbor IP address. Returns FALSE if the ip is invalid, otherwise TRUE.

get_ip()

Returns the neighbor IP address.

set_as($as)

Set the BGP neighbor AS number. (INTEGER)

get_as()

Returns the BGP neighbor AS number. (INTEGER)

set_multihop($distance)

Set the BGP neighbor eBGP multihop distance. (INTEGER)

get_multihop()

Returns the BGP neighbor eBGP multihop distance. (INTEGER)

set_nhs($yesno)

Define, whether or not to use BGP next-hop-self. (BOOLEAN)

get_nhs()

Returns whether or not to use BGP next-hop-self. (BOOLEAN)

set_updatesource($updatesource)

Defines the BGP session update source.

get_updatesource()

Returns the BGP session update source.

set_softreconf_in($onoff)

Set whether inbound soft-reconfiguration is enabled. (BOOLEAN)

get_softreconf_in()

Returns whether inbound soft-reconfiguration is enabled. (BOOLEAN)

set_softreconf_out($onoff)

Set whether outbound soft-reconfiguration is enabled. (BOOLEAN)

get_softreconf_out()

Returns whether outbound soft-reconfiguration is enabled. (BOOLEAN)

set_active($yesno)

Define, whether or not the neigbor is enabled. (BOOLEAN)

get_active()

Returns whether or not the neigbor is enabled. (BOOLEAN)

Prints the BGP neighbor's data out.

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>