From ad586334d51a0aef9de868e9586198e402576599 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sat, 14 Mar 2009 14:01:39 +0100 Subject: Path related documentation update --- doc/bird.conf.example | 2 +- doc/bird.sgml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'doc') diff --git a/doc/bird.conf.example b/doc/bird.conf.example index 22221d4..0a2aac7 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 ee4697e..239e65b 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 *.