Commit f1b4b704 authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

[dev] check link rate

parent 822e3eef
......@@ -185,8 +185,15 @@ def check_network_description(options)
end
end
end
# FIXME check rates
links.each do |l|
nn = netnodes.select { |n| n['nickname'] == l['target'] }.first
next if nn['kind'] != 'node'
if l['rate'] != nn['rate']
puts "ERROR: invalid rate for #{l}: netnode has #{l['rate']}"
ok = false
end
end
if options[:dot]
generate_dot(netnodes, links, site)
......
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