diff options
Diffstat (limited to 'tnet/files')
-rw-r--r-- | tnet/files/hash/bird-tnet.conf (renamed from tnet/files/hash/bird.conf) | 8 | ||||
-rw-r--r-- | tnet/files/knot/bird-tnet.conf (renamed from tnet/files/knot/bird.conf) | 8 | ||||
-rw-r--r-- | tnet/files/node1/bird-tnet.conf (renamed from tnet/files/node1/bird.conf) | 8 | ||||
-rw-r--r-- | tnet/files/node2/bird-tnet.conf (renamed from tnet/files/node2/bird.conf) | 8 |
4 files changed, 32 insertions, 0 deletions
diff --git a/tnet/files/hash/bird.conf b/tnet/files/hash/bird-tnet.conf index 16ce2cc..b2afdc8 100644 --- a/tnet/files/hash/bird.conf +++ b/tnet/files/hash/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; 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; 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; diff --git a/tnet/files/node2/bird.conf b/tnet/files/node2/bird-tnet.conf index 99dfc5e..813b0f5 100644 --- a/tnet/files/node2/bird.conf +++ b/tnet/files/node2/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; |