IPDevice::RouterBase::BGPNeighbor
use IPDevice::RouterBase::BGPNeighbor; my $neigh = new IPDevice::RouterBase::BGPNeighbor; $neigh->set_name('Neighbor Name'); $neigh->set_ip('192.168.0.2');
This module provides routines for storing informations regarding a BGP neighbor.
Object constructor. Valid arguments:
name: The neighbor name. ip: The neighbor ip.
Set the BGP neighbor name.
Returns the BGP neighbor name.
Set the BGP group name.
Returns the BGP group name.
Set the BGP neighbor description.
Returns the BGP neighbor description.
Checks & sets the neighbor IP address. Returns FALSE if the ip is invalid, otherwise TRUE.
Returns the neighbor IP address.
Set the BGP neighbor AS number. (INTEGER)
Returns the BGP neighbor AS number. (INTEGER)
Set the BGP neighbor eBGP multihop distance. (INTEGER)
Returns the BGP neighbor eBGP multihop distance. (INTEGER)
Define, whether or not to use BGP next-hop-self. (BOOLEAN)
Returns whether or not to use BGP next-hop-self. (BOOLEAN)
Defines the BGP session update source.
Returns the BGP session update source.
Set whether inbound soft-reconfiguration is enabled. (BOOLEAN)
Returns whether inbound soft-reconfiguration is enabled. (BOOLEAN)
Set whether outbound soft-reconfiguration is enabled. (BOOLEAN)
Returns whether outbound soft-reconfiguration is enabled. (BOOLEAN)
Define, whether or not the neigbor is enabled. (BOOLEAN)
Returns whether or not the neigbor is enabled. (BOOLEAN)
Prints the BGP neighbor's data out.
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.