From: claudio Date: Tue, 10 Sep 2024 08:27:00 +0000 (+0000) Subject: Include CLUSTER_LIST in the bad attribute tests. Also add a 2nd session X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=eb5f73a545c360a34ed0dc12750e0c52c1be0515;p=openbsd Include CLUSTER_LIST in the bad attribute tests. Also add a 2nd session which is iBGP so we can test both CLUSTER_LIST behaviours. --- 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