aboutsummaryrefslogtreecommitdiff
path: root/tnet/files/node1
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2024-06-13 22:39:18 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2024-06-13 22:39:18 +0200
commit972364516ba400878b9e06fe239c1f07d751d4fa (patch)
tree192cbde5b2502db476b237baa9f973b406f1951e /tnet/files/node1
parent76e3c7f247f16056129d945e9002730329e57ad6 (diff)
downloadinfra-972364516ba400878b9e06fe239c1f07d751d4fa.tar.gz
infra-972364516ba400878b9e06fe239c1f07d751d4fa.tar.bz2
infra-972364516ba400878b9e06fe239c1f07d751d4fa.tar.xz
infra-972364516ba400878b9e06fe239c1f07d751d4fa.zip
tnet
Diffstat (limited to 'tnet/files/node1')
-rw-r--r--tnet/files/node1/bird-tnet-pre.conf7
-rw-r--r--tnet/files/node1/bird-tnet.conf8
2 files changed, 7 insertions, 8 deletions
diff --git a/tnet/files/node1/bird-tnet-pre.conf b/tnet/files/node1/bird-tnet-pre.conf
new file mode 100644
index 0000000..7994dfe
--- /dev/null
+++ b/tnet/files/node1/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);
+}
diff --git a/tnet/files/node1/bird-tnet.conf b/tnet/files/node1/bird-tnet.conf
index ebf0160..88bd6f8 100644
--- a/tnet/files/node1/bird-tnet.conf
+++ b/tnet/files/node1/bird-tnet.conf
@@ -1,11 +1,3 @@
-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;