From 8ba9372b772eb488cdfe7fac0e7919c1ae4e965e Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 13 Jun 2024 19:59:55 +0200 Subject: tnet --- tnet/templates/bird.conf.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tnet/templates') 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 %} -- cgit v1.2.3