summaryrefslogtreecommitdiff
path: root/roles/install_babeld/templates/babeld.conf.j2
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2018-01-25 19:47:56 +0100
committerNiklas Yann Wettengel <niyawe@niyawe.de>2018-01-25 19:47:56 +0100
commitfb0ce938dc81bcb53a2fbadfe6c0074d4b05c7fd (patch)
treec265e1a27feaab3473845599ff6082e6ca01fa2e /roles/install_babeld/templates/babeld.conf.j2
parent0da10ba8bc19ab889e9c4922263f36ffc220c435 (diff)
babel mullvad_uplink fix
Diffstat (limited to 'roles/install_babeld/templates/babeld.conf.j2')
-rw-r--r--roles/install_babeld/templates/babeld.conf.j211
1 files changed, 8 insertions, 3 deletions
diff --git a/roles/install_babeld/templates/babeld.conf.j2 b/roles/install_babeld/templates/babeld.conf.j2
index 4a471dc..cd919fd 100644
--- a/roles/install_babeld/templates/babeld.conf.j2
+++ b/roles/install_babeld/templates/babeld.conf.j2
@@ -5,13 +5,18 @@
ipv6-subtrees true
# You must provide at least one interface for babeld to operate on.
-{% if 'ffrl_uplink' in group_names %}
+{% if 'fastd' in group_names %}
+{% for peer in groups['ffrl_uplink'] %}
+interface bb{{ hostvars[peer]['wireguard_bb_name'] }}
+{% endfor %}
+{% endif %}
+{% if 'mullvad_uplink' in group_names %}
{% for peer in groups['fastd'] %}
interface bb{{ hostvars[peer]['wireguard_bb_name'] }}
{% endfor %}
{% endif %}
-{% if 'fastd' in group_names %}
-{% for peer in groups['ffrl_uplink'] %}
+{% if 'ffrl_uplink' in group_names %}
+{% for peer in groups['fastd'] %}
interface bb{{ hostvars[peer]['wireguard_bb_name'] }}
{% endfor %}
{% endif %}