mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 16:48:43 +00:00
Path related documentation update
This commit is contained in:
parent
cf18603491
commit
ad586334d5
@ -190,7 +190,7 @@ protocol static {
|
|||||||
# bgp_community = -empty-; bgp_community.add((65000,5678));
|
# bgp_community = -empty-; bgp_community.add((65000,5678));
|
||||||
## if (65000,5678) ~ bgp_community then
|
## if (65000,5678) ~ bgp_community then
|
||||||
## bgp_community.add((0, 1));
|
## bgp_community.add((0, 1));
|
||||||
# if bgp_path ~ / 65000 / then
|
# if bgp_path ~ [= 65000 =] then
|
||||||
# bgp_path.prepend(65000);
|
# bgp_path.prepend(65000);
|
||||||
# accept;
|
# accept;
|
||||||
# }
|
# }
|
||||||
|
@ -525,13 +525,13 @@ incompatible with each other (that is to prevent you from shooting in the foot).
|
|||||||
|
|
||||||
<tag/bgpmask/
|
<tag/bgpmask/
|
||||||
BGP masks are patterns used for BGP path matching
|
BGP masks are patterns used for BGP path matching
|
||||||
(using <cf>path ˜ |2 3 5 *|</cf> syntax). The masks
|
(using <cf>path ˜ [= 2 3 5 * =]</cf> syntax). The masks
|
||||||
resemble wildcard patterns as used by UNIX shells. Autonomous
|
resemble wildcard patterns as used by UNIX shells. Autonomous
|
||||||
system numbers match themselves, <cf/*/ matches any (even empty)
|
system numbers match themselves, <cf/*/ matches any (even empty)
|
||||||
sequence of arbitrary AS numbers. For example:
|
sequence of arbitrary AS numbers. For example, if <cf>bgp_path</cf> is 4 3 2 1, then:
|
||||||
<tt>|4 3 2 1| ˜ |? 4 3 *|</tt> is true, but
|
<tt>bgp_path ˜ [= * 4 3 * =]</tt> is true, but
|
||||||
<tt>|4 3 2 1| ˜ |? 4 5 *|</tt> is false.
|
<tt>bgp_path ˜ [= * 4 5 * =]</tt> is false.
|
||||||
There is also old syntax that uses / instead of | and ? instead of *.
|
There is also old syntax that uses / .. / instead of [= .. =] and ? instead of *.
|
||||||
<tag/clist/
|
<tag/clist/
|
||||||
Community list is similar to set of pairs,
|
Community list is similar to set of pairs,
|
||||||
except that unlike other sets, it can be modified.
|
except that unlike other sets, it can be modified.
|
||||||
|
Loading…
Reference in New Issue
Block a user