Mentions légales du service

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

[dev] valid:network: when unknown node, emit warning, not error

This is useful during clusters integrations, to be able to describe
network topology in advance.
parent 21b36149
No related branches found
No related tags found
1 merge request!1062[dev] valid:network: when unknown node, emit warning, not error
Pipeline #1132826 passed with warnings
......@@ -121,8 +121,7 @@ def check_network_description(options)
'port' => mynetnodes.first['port']
}
else
puts "ERROR: this port is connected to a node that does not exist: #{port}"
ok = false
puts "WARNING: this port is connected to a node that does not exist: #{port}"
end
elsif ['switch','router'].include?(port['kind'])
mynetnodes = netnodes.select { |n| n.values_at('kind', 'uid') == port.values_at('kind', 'uid') }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment