lixonet-ee/bird/bird.conf.tmpl

30 lines
912 B
Cheetah
Raw Normal View History

2020-04-28 04:16:29 +00:00
log stderr all; # Using docker; defer logging to stderr
debug protocols all; # Enable debugging
2020-04-28 04:17:15 +00:00
router id ${address};
2020-04-28 04:16:29 +00:00
2020-04-28 04:50:43 +00:00
# Disable automatically generating direct routes to all network interfaces.
protocol direct {
disabled; # Disable by default
};
# Define a template to use when connecting to other BGP clients on the EE network
template bgp lixonet_client {
2020-04-28 04:17:15 +00:00
local as ${asn};
2020-04-28 04:43:11 +00:00
source address ${address}; # What local address we use for the TCP connection
path metric 1; # Prefer routes with shorter paths (like Cisco does)
next hop self;
2020-04-28 04:57:39 +00:00
# TODO: Syntax error?
# aigp originate;
2020-04-28 04:43:11 +00:00
2020-04-28 04:48:05 +00:00
};
2020-04-28 04:16:29 +00:00
# Neighbors
2020-04-28 05:14:23 +00:00
{{ range files "bird/neighbors" }} {{ if ne . "${name}" }}
2020-04-28 05:10:33 +00:00
protocol bgp {{ . }} from lixonet_client {
2020-04-28 05:15:32 +00:00
description "Lixonet BGP link from ${address} (ASN: ${asn}) to {{ . }}";
{{ file (print "bird/neighbors/" .) }}
2020-04-28 05:14:23 +00:00
}; {{ end }} {{ end }}