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
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
grid5000
reference-repository
Commits
de1d3764
Commit
de1d3764
authored
5 years ago
by
IMBERT Matthieu
Browse files
Options
Downloads
Patches
Plain Diff
[gen] put back ipv6 info in input yaml
parent
4d271024
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#132565
passed
5 years ago
Stage: validate
Stage: generate
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
input/grid5000/ipv6.yaml
+10
-0
10 additions, 0 deletions
input/grid5000/ipv6.yaml
lib/refrepo/input_loader.rb
+1
-12
1 addition, 12 deletions
lib/refrepo/input_loader.rb
with
11 additions
and
12 deletions
input/grid5000/ipv6.yaml
0 → 100644
+
10
−
0
View file @
de1d3764
ipv6
:
site-indexes
:
grenoble
:
1
lille
:
2
luxembourg
:
3
lyon
:
4
nancy
:
5
nantes
:
6
rennes
:
7
sophia
:
8
This diff is collapsed.
Click to expand it.
lib/refrepo/input_loader.rb
+
1
−
12
View file @
de1d3764
...
@@ -107,17 +107,6 @@ def add_kavlan_ips(h)
...
@@ -107,17 +107,6 @@ def add_kavlan_ips(h)
end
end
end
end
$ipv6_site_indexes
=
{
'grenoble'
=>
1
,
'lille'
=>
2
,
'luxembourg'
=>
3
,
'lyon'
=>
4
,
'nancy'
=>
5
,
'nantes'
=>
6
,
'rennes'
=>
7
,
'sophia'
=>
8
,
}
def
add_ipv6
(
h
)
def
add_ipv6
(
h
)
# for each node
# for each node
h
[
'sites'
].
each_pair
do
|
site_uid
,
hs
|
h
[
'sites'
].
each_pair
do
|
site_uid
,
hs
|
...
@@ -132,7 +121,7 @@ def add_ipv6(h)
...
@@ -132,7 +121,7 @@ def add_ipv6(h)
if
not
ip4
.
nil?
if
not
ip4
.
nil?
# compute and assign IPv6 based on IPv4
# compute and assign IPv6 based on IPv4
ip6
=
'2001:660:4406:'
ip6
=
'2001:660:4406:'
ip6
+=
'%x'
%
$
ipv6
_
site
_
indexes
[
site_uid
]
ip6
+=
'%x'
%
h
[
'
ipv6
'
][
'
site
-
indexes
'
]
[
site_uid
]
ip6
+=
'00:'
ip6
+=
'00:'
ip6
+=
'%x::'
%
((
ip4
.
split
(
'.'
)[
2
].
to_i
&
0b1111
)
+
1
)
ip6
+=
'%x::'
%
((
ip4
.
split
(
'.'
)[
2
].
to_i
&
0b1111
)
+
1
)
ip6
+=
'%x'
%
(
ip4
.
split
(
'.'
)[
3
].
to_i
)
ip6
+=
'%x'
%
(
ip4
.
split
(
'.'
)[
3
].
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