add node index to nodes
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
with builtins;
|
with builtins;
|
||||||
let nodes = genList (n: n + 1) 2; in
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user