summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authoruvok cheetah2024-06-23 12:27:03 +0200
committeruvok cheetah2024-06-23 12:30:55 +0200
commit933c1e71ee08e09a2554ca37050213a6b6ae26ad (patch)
tree03ddf0fe11ab1908b5d2318761c6c423c05542a9 /roles
parent4e0d25429228879e4110e7b0061e63d4992eb5ce (diff)
bird: Multiple babel if names
Diffstat (limited to 'roles')
-rw-r--r--roles/uvok_bird/defaults/main.yml2
-rw-r--r--roles/uvok_bird/templates/clearnet.conf.j29
2 files changed, 8 insertions, 3 deletions
diff --git a/roles/uvok_bird/defaults/main.yml b/roles/uvok_bird/defaults/main.yml
index 4138414..232f0ef 100644
--- a/roles/uvok_bird/defaults/main.yml
+++ b/roles/uvok_bird/defaults/main.yml
@@ -7,7 +7,7 @@ uvok_bird_opts:
use_fallback: false
preferred_ip: "::1"
clear_prefixes: []
- babel_if_name:
+ babel_if_names: []
router_id: "0.0.0.0"
clear_as: "64496"
rpki1: "127.0.0.1"
diff --git a/roles/uvok_bird/templates/clearnet.conf.j2 b/roles/uvok_bird/templates/clearnet.conf.j2
index 8f17d68..95adec4 100644
--- a/roles/uvok_bird/templates/clearnet.conf.j2
+++ b/roles/uvok_bird/templates/clearnet.conf.j2
@@ -85,7 +85,7 @@ template bgp pt_rc from pt_clearnet {
};
}
-{% if uvok_bird_opts.babel_if_name %}
+{% if uvok_bird_opts.babel_if_names %}
protocol babel p_myas_babel {
ipv6 {
table t_myas_babel;
@@ -93,8 +93,13 @@ protocol babel p_myas_babel {
export where source ~ [RTS_DEVICE, RTS_BABEL];
};
- interface "{{ uvok_bird_opts.babel_if_name }}" {
+{% for babif in uvok_bird_opts.babel_if_names %}
+ interface "{{ babif }}" {
+ # needs newer bird2
+ type tunnel;
};
+{% endfor %}
+
}
{% endif %}