diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-09-10 08:27:01 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-09-10 08:27:01 +0000 |
commit | 5f56f362c4fc931f059447e9338831cda26159eb (patch) | |
tree | ba9434b270df16df60ed4c6e302917071279c279 /regress/usr.sbin | |
parent | fc09ad1868be420e89224e06dfbb0c403d9ff75b (diff) |
Include CLUSTER_LIST in the bad attribute tests. Also add a 2nd session
which is iBGP so we can test both CLUSTER_LIST behaviours.
Diffstat (limited to 'regress/usr.sbin')
-rw-r--r-- | regress/usr.sbin/bgpd/integrationtests/exabgp.attr.in | 37 | ||||
-rw-r--r-- | regress/usr.sbin/bgpd/integrationtests/exabgp.attr.ok | 10 |
2 files changed, 47 insertions, 0 deletions
diff --git a/regress/usr.sbin/bgpd/integrationtests/exabgp.attr.in b/regress/usr.sbin/bgpd/integrationtests/exabgp.attr.in index 14e17368335..aeeb10bb1a7 100644 --- a/regress/usr.sbin/bgpd/integrationtests/exabgp.attr.in +++ b/regress/usr.sbin/bgpd/integrationtests/exabgp.attr.in @@ -56,5 +56,42 @@ neighbor 10.12.57.1 { route 10.12.6.0/24 next-hop self attribute [ 0x20 0xc0 0x02 ]; # OTC route 10.12.7.0/24 next-hop self attribute [ 0x23 0xc0 0x02 ]; + # cluster_list + route 10.12.8.0/24 next-hop self attribute [ 0x0a 0x80 0x02 ]; } } + +neighbor 10.12.57.1 { + router-id 10.12.57.4; + local-address 10.12.57.4; + local-as 64500; + peer-as 64500; + group-updates; + adj-rib-in false; + passive false; + + family { + ipv4 unicast; + } + + static { + route 10.13.0.0/24 next-hop self; + # aggregator + route 10.13.1.0/24 next-hop self attribute [ 0x07 0xc0 0x02 ]; + # communities + route 10.13.2.0/24 next-hop self attribute [ 0x08 0xc0 0x02 ]; + # ext communities + route 10.13.3.0/24 next-hop self attribute [ 0x10 0xc0 0x02 ]; + # as4-path + route 10.13.4.0/24 next-hop self attribute [ 0x11 0xc0 0x02 ]; + # as4-aggregator + route 10.13.5.0/24 next-hop self attribute [ 0x12 0xc0 0x02 ]; + # large communities + route 10.13.6.0/24 next-hop self attribute [ 0x20 0xc0 0x02 ]; + # OTC + route 10.13.7.0/24 next-hop self attribute [ 0x23 0xc0 0x02 ]; + # cluster_list + route 10.13.8.0/24 next-hop self attribute [ 0x0a 0x80 0x02 ]; + } +} + diff --git a/regress/usr.sbin/bgpd/integrationtests/exabgp.attr.ok b/regress/usr.sbin/bgpd/integrationtests/exabgp.attr.ok index 18a1b94609b..cecb4f293b2 100644 --- a/regress/usr.sbin/bgpd/integrationtests/exabgp.attr.ok +++ b/regress/usr.sbin/bgpd/integrationtests/exabgp.attr.ok @@ -13,3 +13,13 @@ E N-? 10.12.3.0/24 10.12.57.3 100 0 64502 i N-? 10.12.5.0/24 10.12.57.3 100 0 64502 i E N-? 10.12.6.0/24 10.12.57.3 100 0 64502 i E N-? 10.12.7.0/24 10.12.57.3 100 0 64502 i + N-? 10.12.8.0/24 10.12.57.3 100 0 64502 i +I N-? 10.13.0.0/24 10.12.57.4 100 0 i +I N-? 10.13.1.0/24 10.12.57.4 100 0 i +EI N-? 10.13.2.0/24 10.12.57.4 100 0 i +EI N-? 10.13.3.0/24 10.12.57.4 100 0 i +I N-? 10.13.4.0/24 10.12.57.4 100 0 i +I N-? 10.13.5.0/24 10.12.57.4 100 0 i +EI N-? 10.13.6.0/24 10.12.57.4 100 0 i +EI N-? 10.13.7.0/24 10.12.57.4 100 0 i +EI N-? 10.13.8.0/24 10.12.57.4 100 0 i |