From 933c1e71ee08e09a2554ca37050213a6b6ae26ad Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Sun, 23 Jun 2024 12:27:03 +0200 Subject: bird: Multiple babel if names --- roles/uvok_bird/templates/clearnet.conf.j2 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'roles/uvok_bird/templates/clearnet.conf.j2') 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 %} -- cgit v1.2.3