|
NAMENet::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 => [ 'my-as-path-list' ],
Community => [ 'my-community-list' ],
Prefix => [ 'my-prefix-list' ],
Next_hop => [ 'my-access-list' ],
Routesource => [ 'my-access-list' ],
MED => 20,
Local_Pref => 200,
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
}
);
# Accessor Methods
($rc,$nlri) = $rule->query($prefix, $nlri);
$rc = $rule->match($prefix, $nlri);
DESCRIPTIONThis module represents 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 changed method being the autoconstructor() method. CONSTRUCTOR
ACCESSOR METHODSSEE ALSONet::ACL, Net::ACL::Rule, Net::ACL::RouteMap, Net::BGP, Net::BGP::NLRI, Net::BGP::Router AUTHORMartin Lorensen <bgp@martin.lorensen.dk>
|