Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grid5000
reference-repository
Commits
f1b4b704
Commit
f1b4b704
authored
Sep 20, 2017
by
Lucas Nussbaum
Browse files
[dev] check link rate
parent
822e3eef
Changes
1
Hide whitespace changes
Inline
Side-by-side
generators/input-validators/check-network-description.rb
View file @
f1b4b704
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment