Skip to content

Commit

Permalink
test: add MP-BGP example [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
yzguy committed Apr 8, 2024
1 parent 4b6e655 commit d71727b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions test/health_check_dns
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
no-syslog
name = dns
ip = 192.0.2.53
ip = 2001:db8::53
command = dig -t A localhost @127.0.0.1 +short
disable = /etc/exabgp/health_checks/health_check_dns.disable
up-execute = ip address add 192.0.2.53 dev lo
up-execute = ip address add 2001:db8::53 dev lo
down-execute = ip address del 192.0.2.53 dev lo
down-execute = ip address del 2001:db8::53 dev lo
disabled-execute = ip address del 192.0.2.53 dev lo
disabled-execute = ip address del 2001:db8::53 dev lo
withdraw-on-down
interval = 5
fast-interval = 1
Expand Down
5 changes: 3 additions & 2 deletions test/router.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
neighbor 100.64.0.3 {
neighbor fdcd:9464:8bad::3 {
router-id 100.64.0.2;
local-address 100.64.0.2;
local-address fdcd:9464:8bad::2;
local-as 65000;
peer-as 65001;
hold-time 30;
Expand All @@ -9,5 +9,6 @@ neighbor 100.64.0.3 {
}
family {
ipv4 unicast;
ipv6 unicast;
}
}
7 changes: 4 additions & 3 deletions test/server.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ process dns {
run /opt/venv/bin/python3 -m exabgp healthcheck --config /etc/exabgp/health_checks/health_check_dns;
encoder text;
}
neighbor 100.64.0.2 {

neighbor fdcd:9464:8bad::2 {
router-id 100.64.0.3;
connect 179;
local-address 100.64.0.3;
local-address fdcd:9464:8bad::3;
local-as 65001;
peer-as 65000;
hold-time 30;
Expand All @@ -14,6 +14,7 @@ neighbor 100.64.0.2 {
}
family {
ipv4 unicast;
ipv6 unicast;
}
api {
processes [ dns ];
Expand Down

0 comments on commit d71727b

Please sign in to comment.