aboutsummaryrefslogtreecommitdiff
path: root/tnet/files/knot
diff options
context:
space:
mode:
Diffstat (limited to 'tnet/files/knot')
-rw-r--r--tnet/files/knot/bird-tnet.conf (renamed from tnet/files/knot/bird.conf)8
1 files changed, 8 insertions, 0 deletions
diff --git a/tnet/files/knot/bird.conf b/tnet/files/knot/bird-tnet.conf
index fcecc19..32f06cb 100644
--- a/tnet/files/knot/bird.conf
+++ b/tnet/files/knot/bird-tnet.conf
@@ -1,3 +1,11 @@
+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;