aboutsummaryrefslogtreecommitdiff
path: root/tnet/templates/bird-tnet-pre.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'tnet/templates/bird-tnet-pre.conf.j2')
-rw-r--r--tnet/templates/bird-tnet-pre.conf.j27
1 files changed, 7 insertions, 0 deletions
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);
+}