diff options
Diffstat (limited to 'tnet/files/lhn2pi')
-rw-r--r-- | tnet/files/lhn2pi/bird-tnet-pre.conf | 7 | ||||
-rw-r--r-- | tnet/files/lhn2pi/bird-tnet.conf | 8 |
2 files changed, 7 insertions, 8 deletions
diff --git a/tnet/files/lhn2pi/bird-tnet-pre.conf b/tnet/files/lhn2pi/bird-tnet-pre.conf new file mode 100644 index 0000000..7994dfe --- /dev/null +++ b/tnet/files/lhn2pi/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/lhn2pi/bird-tnet.conf b/tnet/files/lhn2pi/bird-tnet.conf index 5d5939b..864ad0b 100644 --- a/tnet/files/lhn2pi/bird-tnet.conf +++ b/tnet/files/lhn2pi/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; |