since the role capability is now shown in more cases.
-# $OpenBSD: Makefile,v 1.13 2023/04/12 09:09:41 claudio Exp $
+# $OpenBSD: Makefile,v 1.14 2024/04/09 09:33:46 claudio Exp $
-BGPDTESTS=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
+BGPDTESTS=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
.for n in ${BGPDTESTS}
BGPD_TARGETS+=bgpd${n}
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
neighbor 127.0.0.3 {
remote-as 3
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
neighbor 127.0.0.4 {
remote-as 4
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
enforce neighbor-as yes
enforce local-as yes
announce IPv6 unicast
+ announce policy no
}
neighbor 192.0.2.5 {
remote-as 5
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
neighbor 2001:db8:abcd::5 {
remote-as 5
enforce neighbor-as yes
enforce local-as yes
announce IPv6 unicast
+ announce policy no
}
neighbor 192.0.2.6 {
remote-as 6
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
neighbor 2001:db8:abcd::6 {
remote-as 6
enforce neighbor-as yes
enforce local-as yes
announce IPv6 unicast
+ announce policy no
}
neighbor 192.0.2.7 {
remote-as 7
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
group "TEST" {
neighbor 192.0.2.2 {
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
neighbor 2001:db8:abcd::2 {
remote-as 2
enforce neighbor-as yes
enforce local-as yes
announce IPv6 unicast
+ announce policy no
}
neighbor 192.0.2.3 {
remote-as 3
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
neighbor 2001:db8:abcd::3 {
remote-as 3
enforce neighbor-as yes
enforce local-as yes
announce IPv6 unicast
+ announce policy no
}
neighbor 192.0.2.4 {
remote-as 4
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
neighbor 2001:db8:abcd::4 {
remote-as 4
enforce neighbor-as yes
enforce local-as yes
announce IPv6 unicast
+ announce policy no
}
}
announce IPv4 unicast
announce IPv4 vpn
announce IPv4 flowspec
+ announce policy no
}
neighbor 2001:db8::1 {
remote-as 64496
announce IPv6 unicast
announce IPv6 vpn
announce IPv6 flowspec
+ announce policy no
}
--- /dev/null
+# $OpenBSD: bgpd.conf.16.in,v 1.1 2024/04/09 09:33:46 claudio Exp $
+# test announce statements
+
+AS 1
+
+neighbor 192.0.2.1 {
+ remote-as 64496
+ role peer
+
+ announce inet unicast
+ announce inet vpn
+ announce inet flowspec
+ announce inet6 unicast
+ announce inet6 vpn
+ announce inet6 flowspec
+
+ announce add-path recv yes
+ announce add-path send all
+
+ announce as-4byte yes
+ announce enhanced refresh yes
+ announce policy yes
+ announce refresh yes
+ announce restart yes
+}
+
+neighbor 192.0.2.2 {
+ remote-as 64496
+ role peer
+
+ announce inet none
+ announce inet6 none
+
+ announce add-path recv no
+ announce add-path send no
+
+ announce as-4byte no
+ announce enhanced refresh no
+ announce policy no
+ announce refresh no
+ announce restart no
+}
+
+neighbor 192.0.2.3 {
+ remote-as 64496
+ role peer
+
+ announce inet unicast enforce
+ announce inet6 unicast enforce
+
+ announce add-path recv enforce
+ announce add-path send best plus 3 enforce
+
+ announce as-4byte enforce
+ announce enhanced refresh enforce
+ announce policy enforce
+ announce refresh enforce
+ announce restart enforce
+}
--- /dev/null
+AS 1
+router-id 127.0.0.1
+socket "/var/run/bgpd.sock.0"
+listen on 0.0.0.0
+listen on ::
+
+
+rde rib Adj-RIB-In no evaluate
+rde rib Loc-RIB rtable 0 fib-update yes
+
+neighbor 192.0.2.1 {
+ remote-as 64496
+ role peer
+ enforce neighbor-as yes
+ enforce local-as yes
+ announce IPv4 unicast
+ announce IPv6 unicast
+ announce IPv4 vpn
+ announce IPv6 vpn
+ announce IPv4 flowspec
+ announce IPv6 flowspec
+ announce enhanced refresh yes
+ announce add-path recv yes
+ announce add-path send all
+ announce policy yes
+}
+neighbor 192.0.2.2 {
+ remote-as 64496
+ role peer
+ enforce neighbor-as yes
+ enforce local-as yes
+ announce IPv4 none
+ announce IPv6 none
+ announce refresh no
+ announce restart no
+ announce as4byte no
+ announce policy no
+}
+neighbor 192.0.2.3 {
+ remote-as 64496
+ role peer
+ enforce neighbor-as yes
+ enforce local-as yes
+ announce IPv4 unicast enforce
+ announce IPv6 unicast enforce
+ announce refresh enforce
+ announce enhanced refresh enforce
+ announce restart enforce
+ announce as4byte enforce
+ announce add-path recv enforce
+ announce add-path send best plus 3 enforce
+ announce policy enforce
+}
enforce neighbor-as yes
enforce local-as yes
announce IPv6 unicast
+ announce policy no
}
allow from 2001:db8::1 prefix 2001:db8:300::/64
allow from 2001:db8::1 prefix 2001:db8:200::/64
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
neighbor 192.0.2.2 {
remote-as 64496
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
neighbor 192.0.2.3 {
descr "test-peer"
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
group "testing" {
neighbor 192.0.2.7 {
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
neighbor 192.0.2.8 {
remote-as 64496
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
neighbor 192.0.2.6 {
descr "test2-peer"
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
neighbor 192.0.2.4 {
remote-as 64496
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
neighbor 192.0.2.5 {
descr "test2-peer"
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
}
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
neighbor 192.0.2.11 {
descr "test3-peer"
enforce neighbor-as yes
enforce local-as yes
announce IPv4 unicast
+ announce policy no
}
}