Samuel Abels > IPDevice > IPDevice::RouterBase::BGPVRF

Download:
IPDevice-0.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

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>

syntax highlighting: