From: Ondrej Zajicek Date: Sat, 14 Mar 2009 13:01:39 +0000 (+0100) Subject: Path related documentation update X-Git-Tag: v1.2.0~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad586334d51a0aef9de868e9586198e402576599;p=thirdparty%2Fbird.git Path related documentation update --- diff --git a/doc/bird.conf.example b/doc/bird.conf.example index 22221d43b..0a2aac7ea 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 ee4697ec5..239e65b33 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 *.