]> git.ipfire.org Git - thirdparty/bird.git/commit
Filter: Add operators to pick community components
authorAlexander Zubkov <green@qrator.net>
Tue, 28 Dec 2021 02:46:13 +0000 (03:46 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 28 Dec 2021 03:07:00 +0000 (04:07 +0100)
commita2a268da4f0c05012d691b57f9b358e3f35ef121
tree8e6dd992e2f36a93b1431b717630e8216a4b29b7
parenta39cd2cc0b0c64235457c07e2b618318bbdfcacd
Filter: Add operators to pick community components

Add operators that can be used to pick components from
pair (standard community) or lc (large community) types.
For example:

(10, 20).asn --> 10
(10, 20).data --> 20

(10, 20, 30).asn --> 10
(10, 20, 30).data1 --> 20
(10, 20, 30).data2 --> 30

Signed-off-by: Alexander Zubkov <green@qrator.net>
filter/config.Y
filter/f-inst.c
filter/test.conf