Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
grid5000
reference-repository
Commits
93837d20
Commit
93837d20
authored
Jul 01, 2019
by
Lucas Nussbaum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip clusters where kavlan is globally set to false (used for initial cluster installation)
parent
03ae1c5e
Pipeline
#84826
passed with stages
in 1 minute and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
lib/refrepo/input_loader.rb
lib/refrepo/input_loader.rb
+1
-0
No files found.
lib/refrepo/input_loader.rb
View file @
93837d20
...
...
@@ -77,6 +77,7 @@ def add_kavlan_ips(h)
# forget about allocated ips for local vlans, since we are starting a new site
allocated
.
delete_if
{
|
k
,
v
|
v
[
3
]
==
'local'
}
hs
[
'clusters'
].
each_pair
do
|
cluster_uid
,
hc
|
next
if
hc
[
'kavlan'
]
and
hc
[
'kavlan'
]
==
false
# skip clusters where kavlan is globally set to false (used for initial cluster installation)
hc
[
'nodes'
].
each_pair
do
|
node_uid
,
hn
|
raise
"Node hash for
#{
node_uid
}
is nil"
if
hn
.
nil?
raise
"Old kavlan data in input/ for
#{
node_uid
}
"
if
hn
.
has_key?
(
'kavlan'
)
...
...
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