Configuring Route Policies
420 7705 SAR OS Router Configuration Guide
Note:
1. The null keyword matches an empty AS path.
BGP and OSPF Route Policy Support
BGP and OSPF require route policy support. Figure 12 and Figure 13 show how route 
policies are evaluated in each protocol. Figure 12 depicts BGP support, which applies a route 
policy as an internal part of the BGP route selection process. Figure 13 depicts OSPF support, 
which applies routing policies at the edge of the protocol, in order to control only the routes 
that are announced to or accepted from the Routing Table Manager (RTM).
AS number is 11 and community value is any number 
that starts with 1
^11:(1.*)$  11:1
11:100
11:1100
AS number is any number and community value is any 
number that ends with 1, 2, or 3
^(.*):(.*[1-3])$ 11:1
100:2002
333:55553
…
AS number is 11 or 22 and community value is any 
number that starts with 3 and ends with 4, 5 or 9
^((11)|(22)):(3.
*[459])$
11:34
22:3335
11:3777779
…
AS number is 11 or 22 and community value ends in 33 
or 44
[^((11|22)):(.*(
(33)|(44)))$
11:33
22:99944
22:555533
…
Table 62: AS Path and Community Regular Expression Examples (Continued)
AS Path to Match Criteria Regular Expression Examples of Matches