Net::BGP::ContextRouter - A Multiple Context BGP Router
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);
This module implements a multiple-context BGP router using the Net::BGP::Router 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.
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.
Just like Net::BGP::Router->add_peer() but with the context name as the first argument.
Net::BGP::Router, Net::BGP, Net::BGP::Policy
Martin Lorensen <bgp@martin.lorensen.dk>
To install Net::BGP::Router, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::BGP::Router
CPAN shell
perl -MCPAN -e shell install Net::BGP::Router
For more information on module installation, please visit the detailed CPAN module installation guide.