diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-02-26 10:51:10 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-02-26 10:51:10 +0000 |
commit | 53e9bec00e25346b3912553bc6d4181a422fa229 (patch) | |
tree | 08daedb403233528e6a09f70e35ea799df9c823c /regress/usr.sbin | |
parent | d70cbcf1ecef9eafe8d77b451466b5edb728ba01 (diff) |
Extend ext-community test to include most of the possible wildchar support
Diffstat (limited to 'regress/usr.sbin')
-rw-r--r-- | regress/usr.sbin/bgpd/config/bgpd.conf.11.in | 42 | ||||
-rw-r--r-- | regress/usr.sbin/bgpd/config/bgpd.conf.11.ok | 26 |
2 files changed, 67 insertions, 1 deletions
diff --git a/regress/usr.sbin/bgpd/config/bgpd.conf.11.in b/regress/usr.sbin/bgpd/config/bgpd.conf.11.in index b1707a66c81..c1b4bf7893b 100644 --- a/regress/usr.sbin/bgpd/config/bgpd.conf.11.in +++ b/regress/usr.sbin/bgpd/config/bgpd.conf.11.in @@ -1,4 +1,4 @@ -# $OpenBSD: bgpd.conf.11.in,v 1.1 2018/12/19 15:30:13 claudio Exp $ +# $OpenBSD: bgpd.conf.11.in,v 1.2 2019/02/26 10:51:09 claudio Exp $ # test communities AS 64512 @@ -50,3 +50,43 @@ match from any set ext-community delete soo 4200000001:6002 match from any set ext-community delete odi 127.0.0.1:6003 match from any set ext-community delete ort 0x123456789abf match from any set ext-community delete ovs valid + +# wildchar matching +match from any ext-community * * +match from any ext-community rt * +match from any ext-community soo * +match from any ext-community odi * +match from any ext-community ort * +match from any ext-community mac-mob * +match from any ext-community ovs * +# more wildchar matching +match from any ext-community rt 64496:* +match from any ext-community rt 4200000001:* +match from any ext-community rt 127.0.0.1:* +match from any ext-community soo 64496:* +match from any ext-community soo 4200000001:* +match from any ext-community soo 127.0.0.1:* +# wildchar matching on sets +match from any set ext-community delete rt * +match from any set ext-community delete soo * +match from any set ext-community delete odi * +match from any set ext-community delete ort * +match from any set ext-community delete mac-mob * +match from any set ext-community delete ovs * +match from any set ext-community delete rt 64496:* +match from any set ext-community delete soo 4200000001:* +match from any set ext-community delete odi 127.0.0.1:* + +# local-as/neighbor-as matching +match from any ext-community rt 64496:local-as +match from any ext-community soo 4200000001:local-as +match from any ext-community odi 127.0.0.1:local-as +match from any ext-community rt 64497:neighbor-as +match from any ext-community soo 4200000002:neighbor-as +match from any ext-community odi 127.0.0.2:neighbor-as +match from any ext-community rt local-as:1234 +match from any ext-community soo local-as:2345 +match from any ext-community rt neighbor-as:1235 +match from any ext-community soo neighbor-as:2346 +match from any ext-community rt neighbor-as:local-as +match from any ext-community soo local-as:neighbor-as diff --git a/regress/usr.sbin/bgpd/config/bgpd.conf.11.ok b/regress/usr.sbin/bgpd/config/bgpd.conf.11.ok index 9fc7285ba4f..aaac5ac5bfa 100644 --- a/regress/usr.sbin/bgpd/config/bgpd.conf.11.ok +++ b/regress/usr.sbin/bgpd/config/bgpd.conf.11.ok @@ -37,3 +37,29 @@ match from any ext-community ovs not-found match from any ext-community rt 64496:201 ext-community soo 64496:202 match from any ext-community rt 64496:301 ext-community soo 4200000001:302 ext-community odi 127.0.0.1:303 match from any set { ext-community delete ovs valid ext-community delete ort 0x123456789abf ext-community delete odi 127.0.0.1:6003 ext-community delete soo 4200000001:6002 ext-community delete rt 64496:6001 ext-community ovs valid ext-community ort 0x123456789abc ext-community odi 127.0.0.1:5003 ext-community soo 4200000001:5002 ext-community rt 64496:5001 } +match from any ext-community * * +match from any ext-community rt * +match from any ext-community soo * +match from any ext-community odi * +match from any ext-community ort * +match from any ext-community mac-mob * +match from any ext-community ovs * +match from any ext-community rt 64496:* +match from any ext-community rt 4200000001:* +match from any ext-community rt 127.0.0.1:* +match from any ext-community soo 64496:* +match from any ext-community soo 4200000001:* +match from any ext-community soo 127.0.0.1:* +match from any set { ext-community delete odi 127.0.0.1:* ext-community delete soo 4200000001:* ext-community delete rt 64496:* ext-community delete ort * ext-community delete mac-mob * ext-community delete ovs * ext-community delete rt * ext-community delete soo * ext-community delete odi * } +match from any ext-community rt 64496:local-as +match from any ext-community soo 4200000001:local-as +match from any ext-community odi 127.0.0.1:local-as +match from any ext-community rt 64497:neighbor-as +match from any ext-community soo 4200000002:neighbor-as +match from any ext-community odi 127.0.0.2:neighbor-as +match from any ext-community rt local-as:1234 +match from any ext-community soo local-as:2345 +match from any ext-community rt neighbor-as:1235 +match from any ext-community soo neighbor-as:2346 +match from any ext-community rt neighbor-as:local-as +match from any ext-community soo local-as:neighbor-as |