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
ce9f7961
Commit
ce9f7961
authored
5 months ago
by
MANDLER Noah
Browse files
Options
Downloads
Patches
Plain Diff
[rennes][abacus28] Remove IB interface after disabling PCI slot
parent
459a6301
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/refrepo/g5kchecks_importer.rb
+1
-1
1 addition, 1 deletion
lib/refrepo/g5kchecks_importer.rb
lib/refrepo/gen/reference-api.rb
+1
-1
1 addition, 1 deletion
lib/refrepo/gen/reference-api.rb
with
2 additions
and
2 deletions
lib/refrepo/g5kchecks_importer.rb
+
1
−
1
View file @
ce9f7961
require
'refrepo/hash/hash'
require
'refrepo/hash/hash'
INTERFACE_ORDER
=
%w(eth0 eth1 eth2 eth3 eth4 eth5 eth6 ib0 ib1 ib2 ib3 ib4 ib5 ib6 ib7 ibs1 ibs4
ibp94s0
bmc eno1 eno2 eno1np0 eno2np1 ens4f0 ens4f1 ens5f0 ens5f1 ens10f0np0 ens10f1np1 ib0.8100)
INTERFACE_ORDER
=
%w(eth0 eth1 eth2 eth3 eth4 eth5 eth6 ib0 ib1 ib2 ib3 ib4 ib5 ib6 ib7 ibs1 ibs4 bmc eno1 eno2 eno1np0 eno2np1 ens4f0 ens4f1 ens5f0 ens5f1 ens10f0np0 ens10f1np1 ib0.8100)
def
g5kchecks_importer
(
sourcedir
)
def
g5kchecks_importer
(
sourcedir
)
puts
"Importing source files from
#{
sourcedir
}
into input directory..."
puts
"Importing source files from
#{
sourcedir
}
into input directory..."
...
...
This diff is collapsed.
Click to expand it.
lib/refrepo/gen/reference-api.rb
+
1
−
1
View file @
ce9f7961
...
@@ -154,7 +154,7 @@ def generate_reference_api
...
@@ -154,7 +154,7 @@ def generate_reference_api
node
[
"storage_devices"
]
=
node
[
"storage_devices"
].
sort_by
{
|
_sd
,
v
|
v
[
'id'
]
}.
map
{
|
a
|
a
[
1
]
}
node
[
"storage_devices"
]
=
node
[
"storage_devices"
].
sort_by
{
|
_sd
,
v
|
v
[
'id'
]
}.
map
{
|
a
|
a
[
1
]
}
node
[
"network_adapters"
].
each
{
|
key
,
_hash
|
node
[
"network_adapters"
][
key
][
"device"
]
=
key
;
}
# Add "device: ethX" within the hash
node
[
"network_adapters"
].
each
{
|
key
,
_hash
|
node
[
"network_adapters"
][
key
][
"device"
]
=
key
;
}
# Add "device: ethX" within the hash
node
[
"network_adapters"
]
=
node
[
"network_adapters"
].
sort_by_array
([
"eth0"
,
"eth1"
,
"eth2"
,
"eth3"
,
"eth4"
,
"eth5"
,
"eth6"
,
"ib0.8100"
,
"ib0"
,
"ib1"
,
"ib2"
,
"ib3"
,
"ib4"
,
"ib5"
,
"ib6"
,
"ib7"
,
"ibs1"
,
"ibs3"
,
"ibs4"
,
"ibp94s0"
,
"bmc"
,
"eno1"
,
"eno2"
,
"eno1np0"
,
"eno2np1"
,
"ens4f0"
,
"ens4f1"
,
"ens5f0"
,
"ens5f1"
,
"ens10f0np0"
,
"ens10f1np1"
,
"fpga0"
,
"fpga1"
]).
values
node
[
"network_adapters"
]
=
node
[
"network_adapters"
].
sort_by_array
([
"eth0"
,
"eth1"
,
"eth2"
,
"eth3"
,
"eth4"
,
"eth5"
,
"eth6"
,
"ib0.8100"
,
"ib0"
,
"ib1"
,
"ib2"
,
"ib3"
,
"ib4"
,
"ib5"
,
"ib6"
,
"ib7"
,
"ibs1"
,
"ibs3"
,
"ibs4"
,
"bmc"
,
"eno1"
,
"eno2"
,
"eno1np0"
,
"eno2np1"
,
"ens4f0"
,
"ens4f1"
,
"ens5f0"
,
"ens5f1"
,
"ens10f0np0"
,
"ens10f1np1"
,
"fpga0"
,
"fpga1"
]).
values
node
[
"memory_devices"
].
each
{
|
key
,
_hash
|
node
[
"memory_devices"
][
key
][
"device"
]
=
key
;
}
# Add "device: dimm_a1" within the hash
node
[
"memory_devices"
].
each
{
|
key
,
_hash
|
node
[
"memory_devices"
][
key
][
"device"
]
=
key
;
}
# Add "device: dimm_a1" within the hash
node
[
"memory_devices"
]
=
node
[
"memory_devices"
].
sort_by
{
|
d
,
_
|
node
[
"memory_devices"
]
=
node
[
"memory_devices"
].
sort_by
{
|
d
,
_
|
[
d
.
gsub
(
/dimm_(\d+)/
,
'\1'
).
to_i
,
[
d
.
gsub
(
/dimm_(\d+)/
,
'\1'
).
to_i
,
...
...
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