Wildcards For Route Policy Sets; Use Wildcards For Routing Policy Sets - Cisco ASR 9000 Series Routing Configuration Manual

Aggregation services router
Hide thumbs Also See for ASR 9000 Series:
Table of Contents

Advertisement

Implementing Routing Policy
end-policy
route-policy service_policy_customer_a
if destination in prfx_set_customer_a
set extcommunity rt (1:1) additive
endif
end-policy
route-policy service_policy_customer_b
if destination in prfx_set_customer_b then
set extcommunity rt (1:1) additive
endif
end-policy
route-policy service_policy_customer_c
if destination in prfx_set_customer_c then
set extcommunity rt (1:1) additive
endif
end-policy
Here, a single parent apply statement (apply service_policy_customer*) calls (inherits) all child polices that
contain the identified character string "service_policy_customer". As each child policy is defined globally,
the parent dynamically nests the child policies based on the policy name. The parent is configured once and
inherits each child policy on demand. There is no direct association between the parent and the child policies
beyond the wildcard match statement.

Wildcards for Route Policy Sets

Route policies are defined in a modular form, and comprise of sets of comparative statements. Using wildcards
to define a range of sets, significantly reduces the complexity of a policy.
Wildcards can be used to define a range of prefix sets, community sets, AS-path sets, or extended community
sets. For information on using wildcards in policy sets, see
613.

Use Wildcards For Routing Policy Sets

This section describes examples of configuring routing policy sets with wildcards.
Use Wildcards for Prefix Sets
Use the following example to configure a routing policy with wildcards for prefix sets.
1 Configure the required prefix sets in the global configuration mode.
RP/0/RSP0/CPU0:router(config)# prefix-set pfx_set1
RP/0/RSP0/CPU0:router(config-pfx)# 1.2.3.4/32
RP/0/RSP0/CPU0:router(config-pfx)# end-set
RP/0/RSP0/CPU0:router(config)# prefix-set pfx_set2
RP/0/RSP0/CPU0:router(config-pfx)# 2.2.2.2/32
RP/0/RSP0/CPU0:router(config-pfx)# end-set
2 Configure a route policy with wildcards to refer to the prefix sets.
RP/0/RSP0/CPU0:router(config)# route-policy WILDCARD_PREFIX_SET
RP/0/RSP0/CPU0:router(config-rpl)# if destination in prefix-set* then pass else drop
endif
RP/0/RSP0/CPU0:router(config-rpl)# end-policy
This route policy configuration accepts routes with the prefixes mentioned in the two prefix sets, and drops
all other non-matching routes.
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.3.x
then
Use Wildcards For Routing Policy Sets, on page
Wildcards for Route Policy Sets
613

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents