Nested Wildcard Apply Policy - Cisco NCS 6000 Series Configuration Manual

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

Advertisement

Nested Wildcard Apply Policy

Hierarchical policy conditions
pass
pass followed by done
done
drop
Nested Wildcard Apply Policy
The hierarchical constructs of Routing Policy Language (RPL) allows one policy to refer to another policy.
The referred or called policy is known as a child policy. The policy from which another policy is referred is
called calling or parent policy. A calling or parent policy can nest multiple child policies for attachment to a
common set of BGP neighbors. The nested wildcard apply policy allows wildcard (*) based apply nesting.
The wildcard operation permits declaration of a generic apply statement that calls all policies that contain a
specific defined set of alphanumeric characters, defined on the router.
A wildcard is specified by placing an asterisk (*) at the end of the policy name in an apply statement. Passing
parameters to wildcard policy is not supported. The wildcard indicates that any value for that portion of the
apply policy matches.
To illustrate nested wildcard apply policy, consider this policy hierarchy:
route-policy Nested_Wilcard
apply service_policy_customer*
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
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
448
Possible done statement execution
sequence
pass
Continue_list
pass or set action statement
Stmt_list
done
Stmt_list without pass or set
operation
DONE
Stmt_list
drop
Stmt_list
then
Implementing Routing Policy
Behavior
Marks the return value as "true" and
continues execution within the
same policy condition.
If there is no statement after "pass",
returns "true".
Marks the return value as "true" and
continues execution till the done
statement. Returns "true" to the
apply policy condition to take
"true-path".
Returns " false". Condition takes
"false-path".
The prefix is dropped or rejected.

Advertisement

Table of Contents
loading

Table of Contents