aboutsummaryrefslogtreecommitdiff
path: root/tnet/templates
diff options
context:
space:
mode:
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 %}