pkgs/subnetplan: tweak GROUP_PREFIX, add colors

This commit is contained in:
Astro 2022-10-22 21:08:33 +02:00
parent 17b8627668
commit 1036fdb9fe
1 changed files with 4 additions and 2 deletions

View File

@ -57,7 +57,7 @@ nets.each do |net|
end
exit 1 if collisions > 0
GROUP_PREFIX = 16
GROUP_PREFIX = 19
groups = {}
nets.each do |net|
group = net.addr.supernet(GROUP_PREFIX).to_s
@ -101,7 +101,9 @@ def background_color desc
"#9F9F9F"
when "mgmt"
"#FF3F3F"
when "c3d2"
when "roof"
"#FF4F2F"
when "c3d2", "flpk"
"yellow"
when "serv", "cluster"
"orange"