From 4a40030a65f8029740d5c9ccb226114073f52eb8 Mon Sep 17 00:00:00 2001
From: Trygve Laugstøl <trygvis@inamo.no>
Date: Sun, 18 Aug 2024 09:43:30 +0200
Subject: Better if support

---
 ansible/group_vars/all/bird.yml |  3 +++
 ansible/group_vars/all/ipam.yml | 23 +++++++++++++++--------
 2 files changed, 18 insertions(+), 8 deletions(-)
 create mode 100644 ansible/group_vars/all/bird.yml

(limited to 'ansible')

diff --git a/ansible/group_vars/all/bird.yml b/ansible/group_vars/all/bird.yml
new file mode 100644
index 0000000..dce5afa
--- /dev/null
+++ b/ansible/group_vars/all/bird.yml
@@ -0,0 +1,3 @@
+# which version of bird is used, 0-padded with 3 digits
+# 2.15 => 2015
+birdv: 0
diff --git a/ansible/group_vars/all/ipam.yml b/ansible/group_vars/all/ipam.yml
index c182329..5c12ca2 100644
--- a/ansible/group_vars/all/ipam.yml
+++ b/ansible/group_vars/all/ipam.yml
@@ -1,10 +1,17 @@
+# Netmasks for prefixes:
+# 48: ffff:ffff:ffff:0000::
+# 52: ffff:ffff:ffff:f000::
+# 56: ffff:ffff:ffff:ff00::
+# 60: ffff:ffff:ffff:fff0::
+# 64: ffff:ffff:ffff:ffff::
 ipam6:
   networks:
-    - bitraf-dn42:
-        range: "fdb1:4242:3538:::/48"
-    - tnet-dn42:
-        range: "fdb1:4242:3538:a000::/52"
-    - conflatorio-dn42:
-        range: "fdb1:4242:3538:a001::/64"
-        hosts:
-          - conflatorio-ix: "fdb1:4242:3538:a001::ffff"
+    bitraf_dn42:
+      range: "fdb1:4242:3538:::/48"
+    tnet_dn42:
+      range: "fdb1:4242:3538:a000::/52"
+    conflatorio_dn42:
+      description: Internal network on host
+      range: "fdb1:4242:3538:a001::/64"
+      hosts:
+        - conflatorio-ix: "fdb1:4242:3538:a001::ffff"
-- 
cgit v1.2.3