Cisco NCS 6000 Series Configuration Manual page 406

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

Advertisement

as-path-set
a condition such as:
if destination in backup-routes then
evaluates as FALSE for every route, because there is no match-condition in the prefix set that it satisfies.
Five kinds of sets exist:
prefix-set, on page
of elements, such as two or three community values, for example. To allow for these comparisons, the user
can enumerate these values directly. These enumerations are referred to as inline sets. Functionally, inline
sets are equivalent to named sets, but allow for simple tests to be inline. Thus, comparisons do not require
that a separate named set be maintained when only one or two elements are being compared. See the set types
described in the following sections for the syntax. In general, the syntax for an inline set is a comma-separated
list surrounded by parentheses as follows: (element-entry , element-entry , element-entry, ...element-entry),
where element-entry is an entry of an item appropriate to the type of usage such as a prefix or a community
value.
The following is an example using an inline community set:
route-policy sample-inline
if community matches-any ([10..15]:100) then
set local-preference 100
endif
end-policy
The following is an equivalent example using the named set test-communities:
community-set test-communities
10:100,
11:100,
12:100,
13:100,
14:100,
15:100
end-set
route-policy sample
if community matches-any test-communities then
set local-preference 100
endif
end-policy
Both of these policies are functionally equivalent, but the inline form does not require the configuration of
the community set just to store the six values. You can choose the form appropriate to the configuration
context. In the following sections, examples of both the named set version and the inline form are provided
where appropriate.
as-path-set
An AS path set comprises operations for matching an AS path attribute. The only matching operation is a
regular expression match.
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
384
as-path-set, on page
384,
389, and
rd-set, on page
391. You may want to perform comparisons against a small number
community-set, on page
385,
Implementing Routing Policy
extcommunity-set, on page
386,

Advertisement

Table of Contents
loading

Table of Contents