Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 1785a099 authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

[dev] make errors on HPC switches non-fatal

parent 0c62e663
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,10 @@ def check_network_description(options)
# scan equipments ports, search for each node
neteqs.each do |eq|
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|
(lc['ports'] || []).each do |port|
# skip if empty port
......@@ -147,6 +151,9 @@ def check_network_description(options)
end
end
end
if HPC_SWITCHES.include?(eq['uid'])
ok = oldok
end
end
# find netnodes without connection
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment