Martin Lorensen > Net-BGP-Router-0.04 > Net::BGP::ContextRouter

Download:
Net-BGP-Router-0.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.04   Source  

NAME ^

Net::BGP::ContextRouter - A Multiple Context BGP Router

SYNOPSIS ^

    use Net::BGP::ContextRouter;

    # Constructor
    $crouter = new Net::BGP::ContextRouter();

    # Accessor Methods
    $router = $crouter->context($context);

    $crouter->add_peer($context,$peer,'both',$acl);
    $crouter->remove_peer($context,$peer,'both');
    $crouter->set_policy($context,$policy);
    $crouter->set_policy($context,$peer,'in',$acl);

DESCRIPTION ^

This module implements a multiple-context BGP router using the Net::BGP::Router object.

CONSTRUCTOR ^

new() - create a new Net::BGP::ContextRouter object
    $router = new Net::BGP::ContextRouter();

This is the constructor for Net::BGP::ContextRouter object. It returns a reference to the newly created object. No arguments are allowed.

ACCESSOR METHODS ^

context()

Return a given context. If the context doesn't exist, it will be created. The argument is the name of the context. The Net::BGP::Router object representing the context is returned.

add_peer()
remove_peer()
set_policy()

Just like Net::BGP::Router->add_peer() but with the context name as the first argument.

SEE ALSO ^

Net::BGP::Router, Net::BGP, Net::BGP::Policy

AUTHOR ^

Martin Lorensen <bgp@martin.lorensen.dk>

syntax highlighting: