Cisco NCS 6000 Series Configuration Manual page 407

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

Advertisement

Implementing Routing Policy
Named Set Form
The named set form uses the ios-regex keyword to indicate the type of regular expression and requires single
quotation marks around the regular expression.
The following is a sample definition of a named AS path set:
as-path-set aset1
ios-regex '_42$',
ios-regex '_127$'
end-set
This AS path set comprises two elements. When used in a matching operation, this AS path set matches any
route whose AS path ends with either the autonomous system (AS) number 42 or 127.
To remove the named AS path set, use the no as-path-set aset1 command-line interface (CLI) command.
Note
Regular expression matching is CPU intensive. The policy performance can be substantially improved by
either collapsing the regular expression patterns together to reduce the total number of regular expression
invocations or by using equivalent native as-path match operations such as 'as-path neighbor-is', 'as-path
originates-from' or 'as-path passes-through'.
Inline Set Form
The inline set form is a parenthesized list of comma-separated expressions, as follows:
(ios-regex '_42$', ios-regex '_127$')
This set matches the same AS paths as the previously named set, but does not require the extra effort of
creating a named set separate from the policy that uses it.
community-set
A community-set holds community values for matching against the BGP community attribute. A community
is a 32-bit quantity. Integer community values must be split in half and expressed as two unsigned decimal
integers in the range from 0 to 65535, separated by a colon. Single 32-bit community values are not allowed.
The following is the named set form:
Named Set Form
community-set cset1
12:34,
12:56,
12:78,
internet
end-set
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
community-set
385

Advertisement

Table of Contents
loading

Table of Contents