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
1785a099
Commit
1785a099
authored
Sep 26, 2017
by
Lucas Nussbaum
Browse files
[dev] make errors on HPC switches non-fatal
parent
0c62e663
Changes
1
Show whitespace changes
Inline
Side-by-side
generators/input-validators/check-network-description.rb
View file @
1785a099
...
...
@@ -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
...
...
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