role service-bird-ffrl: replace hyphen with underscores in protocol names

This commit is contained in:
Julian Labus 2018-10-04 19:09:59 +02:00
parent 8bed1b7c5b
commit ed244ad827
No known key found for this signature in database
GPG key ID: 8AF209F2C6B3572A
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
#
{% for peer_id, peer_value in ffrl_exit_server.items() %}
protocol bgp '{{ peer_id }}' from ffrl_uplink {
protocol bgp '{{ peer_id.replace('-','_') }}' from ffrl_uplink {
source address {{ peer_value.tunnel_ipv4_network | ipaddr('net') | ipaddr('1') | ipaddr('address') }};
neighbor {{ peer_value.tunnel_ipv4_network | ipaddr('net') | ipaddr('address') }} as ffrl_as;
};

View file

@ -3,7 +3,7 @@
#
{% for peer_id, peer_value in ffrl_exit_server.items() %}
protocol bgp '{{ peer_id }}' from ffrl_uplink {
protocol bgp '{{ peer_id.replace('-','_') }}' from ffrl_uplink {
source address {{ peer_value.tunnel_ipv6_network | ipaddr('net') | ipaddr('2') | ipaddr('address') }};
neighbor {{ peer_value.tunnel_ipv6_network | ipaddr('net') | ipaddr('1') | ipaddr('address') }} as ffrl_as;
};