diff --git a/tests/suite/Justfile b/tests/suite/Justfile new file mode 100644 index 00000000..f25ed6fb --- /dev/null +++ b/tests/suite/Justfile @@ -0,0 +1,9 @@ +down: + docker-compose down + sudo rm -rf *-run + +up: + BIRD_VERSION=2.14 docker-compose up -d + +birdc container: + sudo socat - UNIX-CONNECT:./{{ container }}-run/bird.ctl diff --git a/tests/suite/alpha.conf b/tests/suite/alpha.conf new file mode 100644 index 00000000..415f0779 --- /dev/null +++ b/tests/suite/alpha.conf @@ -0,0 +1,19 @@ +router id 172.16.97.2; + +protocol device {} +protocol direct { ipv4; ipv6; } + +protocol static { + ipv4; + route 172.16.98.0/24 reject; +} + +protocol bgp bravo { + local 172.16.97.2 as 65002; + neighbor 172.16.97.3 as 65003; + + ipv4 { + import all; + export where source = RTS_STATIC; + }; +} diff --git a/tests/suite/bravo.conf b/tests/suite/bravo.conf new file mode 100644 index 00000000..fc51d412 --- /dev/null +++ b/tests/suite/bravo.conf @@ -0,0 +1,4 @@ +router id 172.16.97.3; + +protocol device {} +protocol direct { ipv4; ipv6; } diff --git a/tests/suite/docker-compose.yml b/tests/suite/docker-compose.yml new file mode 100644 index 00000000..ddbce748 --- /dev/null +++ b/tests/suite/docker-compose.yml @@ -0,0 +1,28 @@ +version: "3.8" +services: + alpha: + image: pierky/bird:${BIRD_VERSION} + container_name: alpha + volumes: + - ./alpha.conf:/etc/bird/bird.conf + - ./alpha-run/:/usr/local/var/run/ + networks: + default: + ipv4_address: 172.16.97.2 + + bravo: + image: pierky/bird:${BIRD_VERSION} + container_name: bravo + volumes: + - ./bravo.conf:/etc/bird/bird.conf + - ./bravo-run/:/usr/local/var/run/ + networks: + default: + ipv4_address: 172.16.97.3 + +networks: + default: + ipam: + driver: default + config: + - subnet: 172.16.97.0/24