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