|
/Users/cpanrun/depot/main/contrib-patched/perl/CPAN/src/IPDevice/blib/lib/IPDevice/RouterBase/BGPNeighbor.pm |
new([%args])set_name($name)get_name()set_groupname($name)get_groupname()set_description($description)get_description()set_ip($ip)get_ip()set_as($as)get_as()set_multihop($distance)get_multihop()set_nhs($yesno)get_nhs()set_updatesource($updatesource)get_updatesource()set_softreconf_in($onoff)get_softreconf_in()set_softreconf_out($onoff)get_softreconf_out()set_active($yesno)get_active()print_data()
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.
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)
print_data()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>
|
/Users/cpanrun/depot/main/contrib-patched/perl/CPAN/src/IPDevice/blib/lib/IPDevice/RouterBase/BGPNeighbor.pm |