aboutsummaryrefslogtreecommitdiff
path: root/ansible/bgp
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/bgp')
-rw-r--r--ansible/bgp/bgp.yml6
-rw-r--r--ansible/bgp/templates/bird.conf.j219
2 files changed, 2 insertions, 23 deletions
diff --git a/ansible/bgp/bgp.yml b/ansible/bgp/bgp.yml
index 4c7787a..a3e6ce3 100644
--- a/ansible/bgp/bgp.yml
+++ b/ansible/bgp/bgp.yml
@@ -1,9 +1,5 @@
- hosts:
- - akili
- - arius
- - astyanax
- - hash
- - knot
+ - bgp
tasks:
- debug:
msg: "Hello World!"
diff --git a/ansible/bgp/templates/bird.conf.j2 b/ansible/bgp/templates/bird.conf.j2
index dfda44b..1d7ff19 100644
--- a/ansible/bgp/templates/bird.conf.j2
+++ b/ansible/bgp/templates/bird.conf.j2
@@ -7,24 +7,6 @@ define tnet_link = {{ tnet_link }};
log syslog all;
debug protocols all;
-{#
-
-filter tnet_import
-{
-{% if bgp_mynet|default(false) %}
- if net ~ mynet6 then reject "tnet_import reject mynet";
-{% endif %}
- accept "tnet_import accept other";
-}
-
-filter tnet_export
-{
-{% if bgp_mynet|default(false) %}
- if net ~ mynet6 then accept "tnet_export accept mynet";
-{% endif %}
- reject "tnet_export reject other";
-}
-#}
function is_tnet()
{
@@ -64,6 +46,7 @@ protocol bgp {{ peer.name }} {
password "trygvis";
ipv6 {
+ next hop self;
import filter {
if is_tnet() then accept "from {{ peer.name }}, import accept";
reject "from {{ peer.name }}, invalid tnet";