summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-06-12 11:37:50 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2023-09-12 15:27:46 +0200
commit5951dfbd5ed21d973e7627740c069d6612d7b899 (patch)
tree473a1e79b5837700b7abe93f5437e1afe494ce94 /doc
parentae8ecafda9e28bfd417795fbb43408d6857df76d (diff)
Filter: any lvalue can get its methods called
Diffstat (limited to 'doc')
-rw-r--r--doc/bird.sgml6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/bird.sgml b/doc/bird.sgml
index 351039dc..dc1d2285 100644
--- a/doc/bird.sgml
+++ b/doc/bird.sgml
@@ -1604,7 +1604,8 @@ in the foot).
Statement <cf><m/P/ = prepend(<m/P/, <m/A/);</cf> can be shortened to
<cf><m/P/.prepend(<m/A/);</cf> if <m/P/ is appropriate route attribute
- (for example <cf/bgp_path/). Similarly for <cf/delete/ and <cf/filter/.
+ (for example <cf/bgp_path/) or a local variable.
+ Similarly for <cf/delete/ and <cf/filter/.
<tag><label id="type-bgpmask">bgpmask</tag>
BGP masks are patterns used for BGP path matching (using <cf>path
@@ -1653,7 +1654,8 @@ in the foot).
Statement <cf><m/C/ = add(<m/C/, <m/P/);</cf> can be shortened to
<cf><m/C/.add(<m/P/);</cf> if <m/C/ is appropriate route attribute (for
- example <cf/bgp_community/). Similarly for <cf/delete/ and <cf/filter/.
+ example <cf/bgp_community/) or a local variable.
+ Similarly for <cf/delete/ and <cf/filter/.
<cf><m/C/.min</cf> returns the minimum element of clist <m/C/.