-
-
25 Jun 2004 21:16:05 UTC
- Distribution: IPDevice
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (404 / 0 / 0)
- Kwalitee
Bus factor: 0- % Coverage
- License: unknown
- Activity
24 month- Tools
- Download (23.47KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
IPDevice::RouterBase::BGPVRF
SYNOPSIS
use IPDevice::RouterBase::BGPVRF; my $vrf = new IPDevice::RouterBase::BGPVRF; $vrf->set_name('NeighborName'); my $neigh = $vrf->add_neighbor('192.168.0.2');
DESCRIPTION
This module provides routines for storing informations regarding a BGP VRF.
CONSTRUCTOR AND METHODS
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.
foreach_neighbor($func, $data)
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
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>
Module Install Instructions
To install IPDevice::IPv4, copy and paste the appropriate command in to your terminal.
cpanm IPDevice::IPv4
perl -MCPAN -e shell install IPDevice::IPv4
For more information on module installation, please visit the detailed CPAN module installation guide.