aboutsummaryrefslogtreecommitdiff
path: root/ansible/bgp
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2023-10-08 19:56:34 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2023-10-08 19:56:34 +0200
commit9b6a954328cadead672e3815b46f9bfdeed59328 (patch)
treeded881d2a1158b746cf343342c31de94fb5aeec9 /ansible/bgp
parent9b72475b8b8e5627b678a356e232e82a6c61f8c5 (diff)
downloadinfra-9b6a954328cadead672e3815b46f9bfdeed59328.tar.gz
infra-9b6a954328cadead672e3815b46f9bfdeed59328.tar.bz2
infra-9b6a954328cadead672e3815b46f9bfdeed59328.tar.xz
infra-9b6a954328cadead672e3815b46f9bfdeed59328.zip
bgp
Diffstat (limited to 'ansible/bgp')
-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 %}