|
/Users/cpanrun/depot/main/contrib-patched/perl/CPAN/src/IPDevice/blib/lib/IPDevice/RouterBase/BGPVRF.pm |
new([%args])set_name($name)get_name()set_description($description)get_description()neighbor($ip)
IPDevice::RouterBase::BGPVRF
use IPDevice::RouterBase::BGPVRF;
my $vrf = new IPDevice::RouterBase::BGPVRF;
$vrf->set_name('NeighborName');
my $neigh = $vrf->add_neighbor('192.168.0.2');
This module provides routines for storing informations regarding a BGP VRF.
new([%args])Object constructor. Valid arguments:
name: The VRF name.
set_name($name)Set the BGP BGPVRF name.
get_name()Returns the BGP VRF name.
set_description($description)Set the BGP VRF description.
get_description()Returns the BGP VRF description.
neighbor($ip)Returns the BGP neighbor with the given IP. If the neighbor does not exist yet, a newly created IPDevice::RouterBase::BGPNeighbor will be returned.
Walks through all BGP neighbors calling the function $func. Args passed to $func are:
$neighbor: The IPDevice::RouterBase::BGPNeighbor. %data: The given data, just piped through.
If $func returns FALSE, the neighbor list evaluation will be stopped.
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/BGPVRF.pm |