Role service-bird: add source IP to routes in table mwu

This commit is contained in:
Julian Labus 2019-03-20 10:21:38 +01:00
parent a8784c80eb
commit 28717aec73
No known key found for this signature in database
GPG key ID: 8AF209F2C6B3572A
2 changed files with 6 additions and 2 deletions

View file

@ -3,9 +3,10 @@
#
# Variables
define router_id = {{ loopback_net_ipv4 | ipaddr('net') | ipaddr(magic) | ipaddr('address') }};
define loopback_address = {{ loopback_net_ipv4 | ipaddr('net') | ipaddr(magic) | ipaddr('address') }};
define mwu_address_legacy = {{ bgp_ipv4_transfer_net_legacy | ipaddr('net') | ipaddr(magic) | ipaddr('address') }};
define mwu_as = {{ as_private }};
define router_id = {{ loopback_net_ipv4 | ipaddr('net') | ipaddr(magic) | ipaddr('address') }};
# General
timeformat protocol iso long;
@ -103,6 +104,7 @@ protocol kernel kernel_mwu {
scan time 30;
import none;
export filter {
krt_prefsrc = loopback_address;
{% if server_type == "gateway" %}
if is_mwu_anycast() then reject;
{% else %}

View file

@ -3,7 +3,8 @@
#
# Variables
define router_id = {{ loopback_net_ipv6 | ipaddr('net') | ipaddr(magic) | ipaddr('address') }};
define router_id = {{ loopback_net_ipv4 | ipaddr('net') | ipaddr(magic) | ipaddr('address') }};
define loopback_address = {{ loopback_net_ipv6 | ipaddr('net') | ipaddr(magic) | ipaddr('address') }};
define mwu_address_legacy = {{ bgp_ipv6_transfer_net_legacy | ipaddr('net') | ipaddr(magic) | ipaddr('address') }};
define mwu_as = {{ as_private }};
@ -91,6 +92,7 @@ protocol kernel kernel_mwu {
scan time 30;
import none;
export filter {
krt_prefsrc = loopback_address;
{% if server_type == "gateway" %}
if is_mwu_anycast() then reject;
{% else %}