summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlexander Zubkov <green@qrator.net>2021-12-28 03:48:42 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2021-12-28 04:07:09 +0100
commite15e465720c428e765ab88fd587afb4f4f5d70ae (patch)
treecfc63e2678e88568e27e9bd0d364f411e7c3dd30 /doc
parenta2a268da4f0c05012d691b57f9b358e3f35ef121 (diff)
Doc: Document community components access operators
Diffstat (limited to 'doc')
-rw-r--r--doc/bird.sgml7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/bird.sgml b/doc/bird.sgml
index 4e4804de..d1059cb1 100644
--- a/doc/bird.sgml
+++ b/doc/bird.sgml
@@ -1292,6 +1292,9 @@ in the foot).
The same syntax can also be used to construct a pair from two arbitrary
integer expressions (for example <cf/(1+2,a)/).
+ Operators <cf/.asn/ and <cf/.data/ can be used to extract corresponding
+ components of a pair: <cf>(<m/asn/, <m/data/)</cf>.
+
<tag><label id="type-quad">quad</tag>
This is a dotted quad of numbers used to represent router IDs (and
others). Each component can have a value from 0 to 255. Literals of
@@ -1382,6 +1385,10 @@ in the foot).
pairs, LCs can be constructed using expressions for its parts, (e.g.
<cf/(myas, 10+20, 3*10)/, where <cf/myas/ is an integer variable).
+ Operators <cf/.asn/, <cf/.data1/, and <cf/.data2/ can be used
+ to extract corresponding components of LCs:
+ <cf>(<m/asn/, <m/data1/, <m/data2/)</cf>.
+
<tag><label id="type-set">int|pair|quad|ip|prefix|ec|lc|enum set</tag>
Filters recognize four types of sets. Sets are similar to strings: you
can pass them around but you can't modify them. Literals of type <cf>int