From 972364516ba400878b9e06fe239c1f07d751d4fa Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 13 Jun 2024 22:39:18 +0200 Subject: tnet --- tnet/templates/bird-tnet-pre.conf.j2 | 7 +++++++ tnet/templates/bird-tnet.conf.j2 | 8 -------- 2 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 tnet/templates/bird-tnet-pre.conf.j2 (limited to 'tnet/templates') diff --git a/tnet/templates/bird-tnet-pre.conf.j2 b/tnet/templates/bird-tnet-pre.conf.j2 new file mode 100644 index 0000000..ba012cf --- /dev/null +++ b/tnet/templates/bird-tnet-pre.conf.j2 @@ -0,0 +1,7 @@ +define tnet = fdb1:4242:3538::/48; +define tnet_router = fdb1:4242:3538:ffff::/64; + +function is_tnet() -> bool +{ + return net ~ tnet && ! (net ~ tnet_router); +} diff --git a/tnet/templates/bird-tnet.conf.j2 b/tnet/templates/bird-tnet.conf.j2 index 6e1ba0e..57e557a 100644 --- a/tnet/templates/bird-tnet.conf.j2 +++ b/tnet/templates/bird-tnet.conf.j2 @@ -1,11 +1,3 @@ -define tnet = fdb1:4242:3538::/48; -define tnet_router = fdb1:4242:3538:ffff::/64; - -function is_tnet() -> bool -{ - return net ~ tnet && ! (net ~ tnet_router); -} - template bgp tnet_tpl { local as 4242423538; neighbor internal; -- cgit v1.2.3