Update bird/bird.conf.tmpl

This commit is contained in:
sump pump 2020-05-21 00:34:48 +00:00
parent 1d89a873ec
commit e09043f43f

View File

@ -14,9 +14,13 @@ log stderr all; # Using docker; defer logging to stderr (to Docker logs)
debug protocols all; # Enable debugging (this should be switched off in prod)
router id ${address};
# Custom routing tables
# See: https://bird.network.cz/?get_doc&v=20&f=bird-2.html (recommend; BIRD is neat)
ipv4 table lixonet;
# Static routes
# Define propagated routes here from the lixonet.conf "routes" variable
ipv4 table lixonet;
# Attached to the above "lixonet" routing table; "provide" these routes into it
protocol static {
ipv4 { table lixonet; };
{{ if len "${routes:-}" }}{{ range "$routes" | split "," }}route {{.}} unreachable;{{ end }}{{ end }}
@ -113,7 +117,7 @@ template bgp lixonet_client {
# aigp (see: http://www.rfc-editor.org/info/rfc7311)
# Lixonet default: originate AIGP
# This ot only allows AIGP attribute propagation, but also new AIGP attributes are
# This not only allows AIGP attribute propagation, but also new AIGP attributes are
# automatically attached to non-BGP routes with valid IGP metric (e.g. ospf_metric1)
# as they are exported to the BGP session.
# Thank-you, BIRD <3 - mane and nurd
@ -124,8 +128,6 @@ template bgp lixonet_client {
# See: https://gitlab.labs.nic.cz/labs/bird/commit/3831b619661d08d935fd78656732cd2f339ff811
export filter lixonet_export;
import filter lixonet_import;
export table lixonet;
};
};