Wildcards For Route Policy Sets - Cisco NCS 6000 Series Configuration Manual

Ios xr release 6.4.x
Hide thumbs Also See for NCS 6000 Series:
Table of Contents

Advertisement

Implementing Routing 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
449.
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/RP0/CPU0:router(config)# prefix-set pfx_set1
RP/0/RP0/CPU0:router(config-pfx)# 1.2.3.4/32
RP/0/RP0/CPU0:router(config-pfx)# end-set
RP/0/RP0/CPU0:router(config)# prefix-set pfx_set2
RP/0/RP0/CPU0:router(config-pfx)# 2.2.2.2/32
RP/0/RP0/CPU0:router(config-pfx)# end-set
2. Configure a route policy with wildcards to refer to the prefix sets.
RP/0/RP0/CPU0:router(config)# route-policy WILDCARD_PREFIX_SET
RP/0/RP0/CPU0:router(config-rpl)# if destination in prefix-set* then pass else drop endif
RP/0/RP0/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.
3. Commit your configuration.
RP/0/RP0/CPU0:router(config)# commit
This completes the configuration of routing policy with wildcards for prefix sets. For detailed information on
prefix sets, see
Use Wildcards for AS-Path Sets
Use the following example to configure a routing policy with wildcards for AS-path sets.
prefix-set, on page
389.
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
Wildcards for Route Policy Sets
Use Wildcards For Routing Policy Sets, on page
449

Advertisement

Table of Contents
loading

Table of Contents