Net::ACL::RouteMapRule - Class representing a BGP-4 policy route-map rule
use Net::ACL::RouteMapRule; # Constructor $rule = new Net::ACL::RouteMapRule( Action => ACL_PERMIT, Match => { ASPath => [ $aspath_acl ], Community => [ $com_acl ], MED => [ 10, 20 ], Prefix => [ $prefix_acl ], Address => [ $ip1_acl ], Next_hop => [ $ip2_acl ], RouteSource => [ $ip3_acl ], Origin => IGP }, Set => { ASPath => [ 65001, 65001 ], # Prepend Community => [ qw( 65001:100 65001:200 ) ], Next_hop => '10.0.0.1', Local_Pref => 200, MED => 50, Origin => EGP, Weight => 42 } ); # Object Copy $clone = $rule->clone(); # Accessor Methods ($rc,$nlri) = $rule->query($prefix, $nlri, $peer);
This module represent a single route-map clause with a match part, a set part and an action. This object is used by the Net::ACL::RouteMap object. It inherits from Net::ACL::Rule, with the only chenged method being the autoconstructor method.
new() - create a new Net::ACL::RouteMapRule object
Inherited from
query()
##### FILL IN HERE ######
Net::ACL, Net::ACL::Rule, Net::ACL::RouteMap, Net::BGP, Net::BGP::NLRI, Net::BGP::Router
Martin Lorensen <bgp@martin.lorensen.dk>
To install Net::ACL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::ACL
CPAN shell
perl -MCPAN -e shell install Net::ACL
For more information on module installation, please visit the detailed CPAN module installation guide.