diff --git a/doc/bird.conf.example b/doc/bird.conf.example index 22221d43..0a2aac7e 100644 --- a/doc/bird.conf.example +++ b/doc/bird.conf.example @@ -190,7 +190,7 @@ protocol static { # bgp_community = -empty-; bgp_community.add((65000,5678)); ## if (65000,5678) ~ bgp_community then ## bgp_community.add((0, 1)); -# if bgp_path ~ / 65000 / then +# if bgp_path ~ [= 65000 =] then # bgp_path.prepend(65000); # accept; # } diff --git a/doc/bird.sgml b/doc/bird.sgml index ee4697ec..239e65b3 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -525,13 +525,13 @@ incompatible with each other (that is to prevent you from shooting in the foot). path ˜ |2 3 5 *| syntax). The masks + (using path ˜ [= 2 3 5 * =] syntax). The masks resemble wildcard patterns as used by UNIX shells. Autonomous system numbers match themselves, |4 3 2 1| ˜ |? 4 3 *| is true, but - |4 3 2 1| ˜ |? 4 5 *| is false. - There is also old syntax that uses / instead of | and ? instead of *. + sequence of arbitrary AS numbers. For example, if bgp_path is 4 3 2 1, then: + bgp_path ˜ [= * 4 3 * =] is true, but + bgp_path ˜ [= * 4 5 * =] is false. + There is also old syntax that uses / .. / instead of [= .. =] and ? instead of *.