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/files/astyanax/bird-tnet-pre.conf | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tnet/files/astyanax/bird-tnet-pre.conf (limited to 'tnet/files/astyanax/bird-tnet-pre.conf') diff --git a/tnet/files/astyanax/bird-tnet-pre.conf b/tnet/files/astyanax/bird-tnet-pre.conf new file mode 100644 index 0000000..7994dfe --- /dev/null +++ b/tnet/files/astyanax/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); +} -- cgit v1.2.3