From 9b6a954328cadead672e3815b46f9bfdeed59328 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 8 Oct 2023 19:56:34 +0200 Subject: bgp --- ansible/bgp/templates/bird.conf.j2 | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'ansible/bgp/templates') 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 %} -- cgit v1.2.3