add node index to nodes

This commit is contained in:
Jonas Juselius
2022-08-24 10:47:53 +02:00
parent a0abce52e5
commit f7a8c631cb

View File

@@ -1,3 +1,3 @@
with builtins;
let nodes = genList (n: n + 1) 2; in
map (n: ({ name = "c0-${toString n}"; address = "10.1.61.10${toString n}"; })) nodes
map (n: ({ idx = n; name = "c0-${toString n}"; address = "10.255.241.${toString (n + 100)}"; })) nodes