summaryrefslogtreecommitdiff
path: root/ansible/bgp/templates/bird.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/bgp/templates/bird.conf.j2')
-rw-r--r--ansible/bgp/templates/bird.conf.j219
1 files changed, 1 insertions, 18 deletions
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";