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


Net-BGP-Router documentation  | view source Contained in the Net-BGP-Router distribution.

Index


NAME

Top

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

SYNOPSIS

Top

    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

Top

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

CONSTRUCTOR

Top

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

Top

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

Top

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

AUTHOR

Top

Martin Lorensen <bgp@martin.lorensen.dk>


Net-BGP-Router documentation  | view source Contained in the Net-BGP-Router distribution.