aboutsummaryrefslogtreecommitdiff
path: root/tnet/files/hash/bird-tnet-pre.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tnet/files/hash/bird-tnet-pre.conf')
-rw-r--r--tnet/files/hash/bird-tnet-pre.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/tnet/files/hash/bird-tnet-pre.conf b/tnet/files/hash/bird-tnet-pre.conf
new file mode 100644
index 0000000..7994dfe
--- /dev/null
+++ b/tnet/files/hash/bird-tnet-pre.conf
@@ -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);
+}