Skip to content
Snippets Groups Projects
Verified Commit 5ade6fe4 authored by ynerant's avatar ynerant
Browse files

[bird] Don't export some routes if we announce a /24 that we can route


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent 6a66ccd8
No related branches found
No related tags found
1 merge request!286[bird] Add configuration for ViaRézo
......@@ -8,6 +8,8 @@ loc_bird:
statics:
- 185.230.78.0/24
- 185.230.79.0/24
kernel_filter:
- 185.230.78.0/24
bgps:
- name: viarezo
allow_local_as: 1
......
......@@ -8,6 +8,8 @@ loc_bird:
statics:
- 185.230.78.0/24
- 185.230.79.0/24
kernel_filter:
- 185.230.78.0/24
bgps:
- name: viarezo
allow_local_as: 1
......
......@@ -8,6 +8,8 @@ loc_bird:
statics:
- 185.230.78.0/24
- 185.230.79.0/24
kernel_filter:
- 185.230.78.0/24
bgps:
- name: viarezo
allow_local_as: 1
......
......@@ -23,7 +23,14 @@ protocol kernel {
# persist;
scan time 60;
import none;
{% if bird.ipv4.kernel_filter is defined %}
export filter {
if ( net ~ [ {{ bird.ipv4.kernel_filter|join(', ') }} ] ) then reject;
accept;
};
{% else %}
export all;
{% endif %}
}
# The Device protocol is not a real routing protocol. It doesn't generate any
......
......@@ -22,7 +22,14 @@ protocol kernel {
# persist;
scan time 60;
import none;
{% if bird.ipv6.kernel_filter is defined %}
export filter {
if ( net ~ [ {{ bird.ipv6.kernel_filter|join(', ') }} ] ) then reject;
accept;
};
{% else %}
export all;
{% endif %}
}
# The Device protocol is not a real routing protocol. It doesn't generate any
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment