NAME

Net::ACL::RouteMapRule - Class representing a BGP-4 policy route-map rule

SYNOPSIS

    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);

DESCRIPTION

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.

CONSTRUCTOR

new() - create a new Net::ACL::RouteMapRule object

Inherited from

query()

##### FILL IN HERE ######

SEE ALSO

Net::ACL, Net::ACL::Rule, Net::ACL::RouteMap, Net::BGP, Net::BGP::NLRI, Net::BGP::Router

AUTHOR

Martin Lorensen <bgp@martin.lorensen.dk>