aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
Diffstat (limited to 'ansible')
-rw-r--r--ansible/bgp/templates/bird.conf.j228
1 files changed, 14 insertions, 14 deletions
diff --git a/ansible/bgp/templates/bird.conf.j2 b/ansible/bgp/templates/bird.conf.j2
index 1d7ff19..68550e2 100644
--- a/ansible/bgp/templates/bird.conf.j2
+++ b/ansible/bgp/templates/bird.conf.j2
@@ -40,23 +40,23 @@ protocol kernel kernel6 {
{% for peer in peers %}
protocol bgp {{ peer.name }} {
- local as {{ bgp_as }};
- neighbor {{ peer.ip }} as {{ peer.as }};
+ local as {{ bgp_as }};
+ neighbor {{ peer.ip }} as {{ peer.as }};
- password "trygvis";
+ password "trygvis";
- ipv6 {
- next hop self;
- import filter {
- if is_tnet() then accept "from {{ peer.name }}, import accept";
- reject "from {{ peer.name }}, invalid tnet";
- };
- import keep filtered;
- export filter {
- if is_tnet() then accept "from {{ peer.name }}, export accept";
- reject "from {{ peer.name }}, invalid tnet";
- };
+ ipv6 {
+ next hop self;
+ import filter {
+ if is_tnet() then accept "from {{ peer.name }}, import accept";
+ reject "from {{ peer.name }}, invalid tnet";
+ };
+ import keep filtered;
+ export filter {
+ if is_tnet() then accept "from {{ peer.name }}, export accept";
+ reject "from {{ peer.name }}, invalid tnet";
};
+ };
}
{% endfor %}
{% if bgp_radv %}