1# $OpenBSD: bgpd.conf.11.in,v 1.2 2019/02/26 10:51:09 claudio Exp $
2# test communities
3
4AS 64512
5
6# extended communities 2-byte AS
7match from any ext-community rt 64496:1
8match from any ext-community soo 64496:2
9match from any ext-community odi 64496:3
10match from any ext-community bdc 64496:4
11match from any ext-community srcas 64496:5
12match from any ext-community l2vid 64496:6
13# extended communities 4-byte AS
14match from any ext-community rt 4200000001:7
15match from any ext-community soo 4200000001:8
16match from any ext-community odi 4200000001:9
17match from any ext-community bdc 4200000001:10
18match from any ext-community srcas 4200000001:11
19# extended communities IPv4
20match from any ext-community rt 127.0.0.1:12
21match from any ext-community soo 127.0.0.1:13
22match from any ext-community odi 127.0.0.1:14
23match from any ext-community ori 127.0.0.1:15
24match from any ext-community l2vid 127.0.0.1:16
25match from any ext-community vrfri 127.0.0.1:17
26# extended communities opaque
27match from any ext-community ort 0x123456789ab0
28match from any ext-community defgw 0x123456789ab1
29# extended communities evpn
30match from any ext-community mac-mob 0x123456789ab2
31match from any ext-community esi-lab 0x123456789ab3
32match from any ext-community esi-rt 0x123456789ab4
33# extended communities ovs
34match from any ext-community ovs valid
35match from any ext-community ovs invalid
36match from any ext-community ovs not-found
37
38# multiple
39match from any ext-community rt 64496:201 ext-community soo 64496:202
40match from any ext-community rt 64496:301 ext-community soo 4200000001:302 ext-community odi 127.0.0.1:303
41
42# set and delete community
43match from any set ext-community rt 64496:5001
44match from any set ext-community soo 4200000001:5002
45match from any set ext-community odi 127.0.0.1:5003
46match from any set ext-community ort 0x123456789abc
47match from any set ext-community ovs valid
48match from any set ext-community delete rt 64496:6001
49match from any set ext-community delete soo 4200000001:6002
50match from any set ext-community delete odi 127.0.0.1:6003
51match from any set ext-community delete ort 0x123456789abf
52match from any set ext-community delete ovs valid
53
54# wildchar matching
55match from any ext-community * *
56match from any ext-community rt *
57match from any ext-community soo *
58match from any ext-community odi *
59match from any ext-community ort *
60match from any ext-community mac-mob *
61match from any ext-community ovs *
62# more wildchar matching
63match from any ext-community rt 64496:*
64match from any ext-community rt 4200000001:*
65match from any ext-community rt 127.0.0.1:*
66match from any ext-community soo 64496:*
67match from any ext-community soo 4200000001:*
68match from any ext-community soo 127.0.0.1:*
69#  wildchar matching on sets
70match from any set ext-community delete rt *
71match from any set ext-community delete soo *
72match from any set ext-community delete odi *
73match from any set ext-community delete ort *
74match from any set ext-community delete mac-mob *
75match from any set ext-community delete ovs *
76match from any set ext-community delete rt 64496:*
77match from any set ext-community delete soo 4200000001:*
78match from any set ext-community delete odi 127.0.0.1:*
79
80# local-as/neighbor-as matching
81match from any ext-community rt 64496:local-as
82match from any ext-community soo 4200000001:local-as
83match from any ext-community odi 127.0.0.1:local-as
84match from any ext-community rt 64497:neighbor-as
85match from any ext-community soo 4200000002:neighbor-as
86match from any ext-community odi 127.0.0.2:neighbor-as
87match from any ext-community rt local-as:1234
88match from any ext-community soo local-as:2345
89match from any ext-community rt neighbor-as:1235
90match from any ext-community soo neighbor-as:2346
91match from any ext-community rt neighbor-as:local-as
92match from any ext-community soo local-as:neighbor-as
93