Commit 1785a099 authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

[dev] make errors on HPC switches non-fatal

parent 0c62e663
...@@ -66,6 +66,10 @@ def check_network_description(options) ...@@ -66,6 +66,10 @@ def check_network_description(options)
# scan equipments ports, search for each node # scan equipments ports, search for each node
neteqs.each do |eq| neteqs.each do |eq|
puts "looking at #{eq['uid']} ..." puts "looking at #{eq['uid']} ..."
if HPC_SWITCHES.include?(eq['uid'])
puts "This is an HPC switch. ERRORs will be non-fatal."
oldok = ok
end
eq['linecards'].each do |lc| eq['linecards'].each do |lc|
(lc['ports'] || []).each do |port| (lc['ports'] || []).each do |port|
# skip if empty port # skip if empty port
...@@ -147,6 +151,9 @@ def check_network_description(options) ...@@ -147,6 +151,9 @@ def check_network_description(options)
end end
end end
end end
if HPC_SWITCHES.include?(eq['uid'])
ok = oldok
end
end end
# find netnodes without connection # find netnodes without connection
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment