Role service-bird-ffrl: correct ipaddr filters
This commit is contained in:
parent
ce1a690db2
commit
0edd928ec8
3 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
{% for peer_id, peer_value in ffrl_exit_server.iteritems() %}
|
||||
protocol bgp {{ peer_id }} from ffrl_uplink {
|
||||
protocol bgp '{{ peer_id }}' from ffrl_uplink {
|
||||
source address {{ peer_value.tunnel_ipv4_address | ipaddr('address') }};
|
||||
neighbor {{ peer_value.tunnel_ipv4_network | ipaddr('address') }} as ffrl_as;
|
||||
};
|
||||
|
|
|
@ -43,7 +43,7 @@ protocol static ffrl_public_routes {
|
|||
{% for mesh_id, mesh_value in meshes.iteritems() %}
|
||||
{% for prefix in mesh_value.ipv6.public %}
|
||||
route {{ prefix }} reject;
|
||||
route {{ prefix | ipaddr('net') | ipsubnet(56, magic) | ipaddr('network') }} reject;
|
||||
route {{ prefix | ipaddr('net') | ipsubnet(56, magic) | ipaddr('network/prefix') }} reject;
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
{% for peer_id, peer_value in ffrl_exit_server.iteritems() %}
|
||||
protocol bgp {{ peer_id }} from ffrl_uplink {
|
||||
protocol bgp '{{ peer_id }}' 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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue