aboutsummaryrefslogtreecommitdiff
path: root/tnet/templates
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2024-06-13 19:59:55 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2024-06-13 19:59:55 +0200
commit8ba9372b772eb488cdfe7fac0e7919c1ae4e965e (patch)
tree06dfb3c31787d367d60f3c3992b0fdaf9d1b9917 /tnet/templates
parentb49b58d2749d50a42b25d39a744b0edc8d24bf77 (diff)
downloadinfra-8ba9372b772eb488cdfe7fac0e7919c1ae4e965e.tar.gz
infra-8ba9372b772eb488cdfe7fac0e7919c1ae4e965e.tar.bz2
infra-8ba9372b772eb488cdfe7fac0e7919c1ae4e965e.tar.xz
infra-8ba9372b772eb488cdfe7fac0e7919c1ae4e965e.zip
tnet
Diffstat (limited to 'tnet/templates')
-rw-r--r--tnet/templates/bird.conf.j25
1 files changed, 4 insertions, 1 deletions
diff --git a/tnet/templates/bird.conf.j2 b/tnet/templates/bird.conf.j2
index 45dc318..57e557a 100644
--- a/tnet/templates/bird.conf.j2
+++ b/tnet/templates/bird.conf.j2
@@ -3,7 +3,6 @@ template bgp tnet_tpl {
neighbor internal;
direct;
- rr client;
password "trygvis";
@@ -32,5 +31,9 @@ template bgp tnet_tpl {
protocol bgp tnet_{{ p }} from tnet_tpl {
neighbor {{ hostvars[p].tnet_wg[inventory_hostname].address }};
interface "tnet-{{ p }}";
+{% if tnet_bird_peers[p].rr_client|default(False) %}
+
+ rr client;
+{% endif %}
}
{% endfor %}