Policies and ACLs
ExtremeWare XOS 11.1 Concepts Guide
194
Here are some additional examples of using regular expressions in the AS-Path statement.
The following AS-Path statement matches AS paths that contain only (begin and end with) AS number
65535:
as-path "^65535$"
The following AS-Path statement matches AS paths beginning with AS number 65535, ending with AS
number 14490, and containing no other AS paths:
as-path "^65535 14490$"
The following AS-Path statement matches AS paths beginning with AS number 1, followed by any AS
number from 2 - 8, and ending with either AS number 11, 13, or 15:
as-path "^1 2-8 [11 13 15]$"
The following AS-Path statement matches AS paths beginning with AS number 111 and ending with
any AS number from 2 - 8:
as-path "111 [2-8]$"
The following AS-Path statement matches AS paths beginning with AS number 111 and ending with
any additional AS number, or beginning and ending with AS number 111:
as-path "111 .?"
Policy Action Statements
Table 29
lists the possible action statements. These are the actions taken when the policy match
conditions are met in a policy entry.
Path of any length that begins with AS numbers 4, 5,
6
“4 5 6 .*”
4 5 6 4 5 6 7 8 9
Path of any length that ends with AS numbers 4, 5, 6
“.* 4 5 6 $”
4 5 6
1 2 3 4 5 6
Table 29: Policy actions
Action
Description
as-path "<as_num> {<as_num1> <as_num2>
<as_num3> …. <as_numN>}";
Prepends the entire list of as-numbers to the as-path of
the route.
community [no-advertise | no-export | no-export-
subconfed | <community_num>
{<community_num1> <community_num2> ….
<community_numN>} | <as_num> :
<community_num> [<as_num1>
<community_num1> <as_num2>
<community_num2> ….}];
Replaces the existing community attribute of a route by
the communities specified by the action statement.
Communities must be enclosed in double quotes ("").
Table 28: Policy regular expression examples (Continued)
Attribute
Regular Expression
Example Matches
Summary of Contents for ExtremeWare XOS 11.1
Page 16: ...Contents ExtremeWare XOS 11 1 Concepts Guide 16...
Page 20: ...Preface ExtremeWare XOS 11 1 Concepts Guide 20...
Page 21: ...1 Using ExtremeWare XOS...
Page 22: ......
Page 78: ...Managing the ExtremeWare XOS Software ExtremeWare XOS 11 1 Concepts Guide 78...
Page 168: ...Virtual LANs ExtremeWare XOS 11 1 Concepts Guide 168...
Page 200: ...Policies and ACLs ExtremeWare XOS 11 1 Concepts Guide 200...
Page 252: ...Security ExtremeWare XOS 11 1 Concepts Guide 252...
Page 265: ...2 Using Switching and Routing Protocols...
Page 266: ......
Page 294: ...Ethernet Automatic Protection Switching ExtremeWare XOS 11 1 Concepts Guide 294...
Page 354: ...Extreme Standby Router Protocol ExtremeWare XOS 11 1 Concepts Guide 354...
Page 416: ...IP Multicast Routing ExtremeWare XOS 11 1 Concepts Guide 416...
Page 417: ...3 Appendixes...
Page 418: ......
Page 432: ...Software Upgrade and Boot Options ExtremeWare XOS 11 1 Concepts Guide 432...