diff --git a/bird/bird.conf.tmpl b/bird/bird.conf.tmpl index 4b9612a..4f3dbda 100644 --- a/bird/bird.conf.tmpl +++ b/bird/bird.conf.tmpl @@ -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; }; };