16.03.2014 Views

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Junos 10.4 <strong>Policy</strong> <strong>Framework</strong> <strong>Configuration</strong> <strong>Guide</strong><br />

Community regular expressions evaluate the string specified in term on a<br />

character-by-character basis. For example, if you specify 1234:5678 as term, the regular<br />

expressions see nine discrete characters, including the colon (:), instead of two sets of<br />

numbers (1234 and 5678) separated by a colon.<br />

NOTE: In Junos OS Release 9.1 and later, you can specify 4-byte AS numbers<br />

as defined in RFC 4893, BGP Support for Four-octet AS Number Space, as<br />

well as the 2-byte AS numbers that are supported in earlier releases of the<br />

Junos OS. For more information about configuring AS numbers, see the Junos<br />

OS Routing Protocols <strong>Configuration</strong> <strong>Guide</strong>.<br />

Table 17: Community Attribute Regular Expression Operators<br />

Operator<br />

Match Definition<br />

{m,n}<br />

At least m and at most n repetitions of term. Both m and n must be positive integers,<br />

and m must be smaller than n.<br />

{m}<br />

Exactly m repetitions of term. m must be a positive integer.<br />

{m,}<br />

m or more repetitions of term. m must be a positive integer.<br />

*<br />

Zero or more repetitions of term. This is equivalent to {0,}.<br />

+<br />

One or more repetitions of term. This is equivalent to {1,}.<br />

?<br />

Zero or one repetition of term. This is equivalent to {0,1}.<br />

|<br />

One of the two terms on either side of the pipe.<br />

–<br />

Between a starting and ending range, inclusive.<br />

^<br />

Character at the beginning of a community attribute regular expression. We<br />

recommend the use of this operator for the clearest interpretation of your community<br />

attribute regular expression. If you do not use this operator, the regular expression<br />

123:456 could also match a route tagged with 5123:456.<br />

$<br />

Character at the end of a community attribute regular expression. We recommend<br />

the use of this operator for the clearest interpretation of your community attribute<br />

regular expression. If you do not use this operator, the regular expression 123:456<br />

could also match a route tagged with 123:4563.<br />

[ ]<br />

Set of characters. One character from the set can match. To specify the start and<br />

end of a range, use a hyphen (-). To specify a set of characters that do not match,<br />

use the caret (^) as the first character after the opening square bracket ([).<br />

( )<br />

Group of terms that are enclosed in parentheses. If enclosed in quotation marks with<br />

no intervening space ("()" ), indicates a null. Intervening space between the<br />

parentheses and the terms is ignored.<br />

106<br />

Copyright © 2010, <strong>Juniper</strong> <strong>Networks</strong>, Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!