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
|
|
|
|
};
|
|
|
|
|
2020-04-28 04:20:27 +00:00
|
|
|
# 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
|
|
|
|
2020-04-28 05:11:05 +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 {{ . }}";
|
2020-04-28 05:07:14 +00:00
|
|
|
{{ file (print "bird/neighbors/" .) }}
|
2020-04-28 05:14:23 +00:00
|
|
|
}; {{ end }} {{ end }}
|