Alcatel-Lucent 6850 Switch User Manual


 
Configuring BGP BGP Overview
OmniSwitch 6800/6850/9000 Advanced Routing Configuration Guide December 2007 page 4-15
Some examples of invalid regular expressions are shown in the following table:
Matches: 100 350 501
200 250 260 270 280 600
Doesn’t Match: 100 600
100 400 600 700
^500 Meaning: Only routes consisting of a single AS, 500.
Matches: 500
Doesn’t Match: 500 600
100 500 600
[100-199]*
500
(900|950)$
Meaning: Any route which ends with any number of occurrences of AS num-
bers in the range 100 to 199, followed by 500, followed by either a
900 or 950.
Matches: 100 150 175 500 900
100 500 950
Doesn’t Match: 100 200 500 900
100 199 500
Error Description
66543 Number is too large. AS numbers must be in the range 1 to 65535.
64,512 Possibly an error, if the user meant the number 64512. The comma gets interpreted as
a separator, thus the pattern is equivalent to the two AS numbers 64 and 512.
(100 200 | 300) Alternation sequences must consist of single AS numbers separated by vertical bars,
enclosed by parentheses.
(100*|200) No metacharacters other than vertical bars may be included within an alteration
sequence.
(100 |
(200|300))
Parthentheses may not be nested. This pattern is actually equivalent to (100|200|300).
100 ^ 200 The “^” metacharacter must occur first in the pattern, as it matches the beginning of
the AS path.
^500 $600 The “$” metacharacter must occur last in the pattern, as it matches the end of the AS
path.
^? 100 The repetition metacharacters (?,+,*) cannot be applied to the beginning of the line. If
it were legal, this pattern would be equivalent to the pattern: 100.
[1-(8|9)]* A range cannot contain an alternation sequence.