Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reference-repository
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
grid5000
reference-repository
Commits
d4975939
Commit
d4975939
authored
4 years ago
by
Samir Noir
Browse files
Options
Downloads
Patches
Plain Diff
[gen/wiki] put multi NICs links only after the first enabled interface
parent
e77c7d91
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#158716
passed
4 years ago
Stage: validate
Stage: generate
Stage: deploy
Stage: .post
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/refrepo/gen/wiki/generators/site_hardware.rb
+5
-3
5 additions, 3 deletions
lib/refrepo/gen/wiki/generators/site_hardware.rb
with
5 additions
and
3 deletions
lib/refrepo/gen/wiki/generators/site_hardware.rb
+
5
−
3
View file @
d4975939
...
...
@@ -308,7 +308,8 @@ def get_hardware(sites)
}.
sort_by
{
|
e
|
e
[
'device'
]
}
hard
[
'network_description'
]
=
network_description
.
map
.
with_index
do
|
e
,
i
|
nic_c
=
0
hard
[
'network_description'
]
=
network_description
.
map
do
|
e
|
s
=
e
[
'count'
]
>
1
?
"
\n
* "
:
''
s
+=
e
[
'unavailable_for_experiment'
]
?
'<span style="color:grey">'
:
''
if
e
[
'name'
].
nil?
or
e
[
'name'
]
==
e
[
'device'
]
...
...
@@ -330,8 +331,9 @@ def get_hardware(sites)
s
+=
'driver: '
+
e
[
'driver'
]
if
e
[
'driver'
]
if
e
[
'unavailable_for_experiment'
]
s
+=
' - unavailable for experiment'
elsif
e
[
'device'
]
=~
/eth/
&&
!
i
.
zero?
s
+=
' [[Advanced_KaVLAN#A_simple_multi_NICs_example|(multi NICs example)]]'
elsif
e
[
'device'
]
=~
/eth/
s
+=
' [[Advanced_KaVLAN#A_simple_multi_NICs_example|(multi NICs example)]]'
if
!
nic_c
.
zero?
nic_c
+=
1
end
s
+=
' - no KaVLAN'
if
e
[
'no_kavlan'
]
s
+=
e
[
'unavailable_for_experiment'
]
?
'</span>'
:
''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment