EasyManuals Logo

Cisco NCS 6000 Series User Manual

Cisco NCS 6000 Series
498 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #406 background imageLoading...
Page #406 background image
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: as-path-set, on page 384, community-set, on page 385, extcommunity-set, on page 386,
prefix-set, on page 389, and rd-set, on page 391. You may want to perform comparisons against a small number
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
Implementing Routing Policy
as-path-set

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco NCS 6000 Series and is the answer not in the manual?

Cisco NCS 6000 Series Specifications

General IconGeneral
BrandCisco
ModelNCS 6000 Series
CategoryNetwork Router
LanguageEnglish

Related product manuals