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.
Object constructor. Valid arguments:
name: The VRF name.
Set the BGP BGPVRF name.
Returns the BGP VRF name.
Set the BGP VRF description.
Returns the BGP VRF description.
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>
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.