diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2024-06-13 20:05:39 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2024-06-13 20:05:39 +0200 |
commit | 36f713dff28d357458b787e2f1e00a71da7bd51f (patch) | |
tree | 162871a78641b947f5e28ff6f2bf6d6b02c72d9c /tnet/templates | |
parent | 8ba9372b772eb488cdfe7fac0e7919c1ae4e965e (diff) | |
download | infra-36f713dff28d357458b787e2f1e00a71da7bd51f.tar.gz infra-36f713dff28d357458b787e2f1e00a71da7bd51f.tar.bz2 infra-36f713dff28d357458b787e2f1e00a71da7bd51f.tar.xz infra-36f713dff28d357458b787e2f1e00a71da7bd51f.zip |
tnet
Diffstat (limited to 'tnet/templates')
-rw-r--r-- | tnet/templates/bird-tnet.conf.j2 (renamed from tnet/templates/bird.conf.j2) | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tnet/templates/bird.conf.j2 b/tnet/templates/bird-tnet.conf.j2 index 57e557a..6e1ba0e 100644 --- a/tnet/templates/bird.conf.j2 +++ b/tnet/templates/bird-tnet.conf.j2 @@ -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; |