aboutsummaryrefslogtreecommitdiff
path: root/tnet/files/lhn2ix/bird-tnet.conf
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/lhn2ix/bird-tnet.conf
parent76e3c7f247f16056129d945e9002730329e57ad6 (diff)
downloadinfra-master.tar.gz
infra-master.tar.bz2
infra-master.tar.xz
infra-master.zip
Diffstat (limited to 'tnet/files/lhn2ix/bird-tnet.conf')
-rw-r--r--tnet/files/lhn2ix/bird-tnet.conf41
1 files changed, 0 insertions, 41 deletions
diff --git a/tnet/files/lhn2ix/bird-tnet.conf b/tnet/files/lhn2ix/bird-tnet.conf
deleted file mode 100644
index b020368..0000000
--- a/tnet/files/lhn2ix/bird-tnet.conf
+++ /dev/null
@@ -1,41 +0,0 @@
-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;
-
- direct;
-
- password "trygvis";
-
- ipv6 {
- next hop self;
- import filter {
- if is_tnet() then {
- print proto, ": import accept, net=", net, ", from=", from, ", gw=", gw;
- accept;
- }
- print proto, ": import reject, reason=not tnet"; reject;
- };
- # newer bird's only
- # import keep filtered;
- export filter {
- if is_tnet() then {
- print proto, ": export accept, net=", net, ", from=", from, ", gw=", gw;
- accept;
- }
- print proto, ": export reject, reason=not tnet"; reject;
- };
- };
-}
-
-protocol bgp tnet_knot from tnet_tpl {
- neighbor fdb1:4242:3538:ffff:18b7:d3ec:5608:db9a;
- interface "tnet-knot";
-}