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
9108823f
Commit
9108823f
authored
6 years ago
by
Lucas Nussbaum
Committed by
Simon Delamare
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add Rake task to sort VLANs
parent
a1de4456
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Rakefile
+6
-0
6 additions, 0 deletions
Rakefile
input/grid5000/vlans.yaml
+1
-1
1 addition, 1 deletion
input/grid5000/vlans.yaml
with
7 additions
and
1 deletion
Rakefile
+
6
−
0
View file @
9108823f
...
...
@@ -195,6 +195,12 @@ task "reference-api" do
generate_reference_api
end
desc
"Output sorted VLAN offsets table (to update the input YAML after modification)"
task
"sort-vlans-offsets"
do
sorted_vlan_offsets
end
#Hack rake: call only the first task and consider the rest as arguments to this task
currentTask
=
Rake
.
application
.
top_level_tasks
.
first
taskNames
=
Rake
.
application
.
tasks
().
map
{
|
task
|
task
.
name
()
}
...
...
This diff is collapsed.
Click to expand it.
input/grid5000/vlans.yaml
+
1
−
1
View file @
9108823f
...
...
@@ -54,7 +54,7 @@ vlans:
address
:
10.47.192.0
type
:
global
# Allocation of VLAN offsets (relative to VLAN IPs above)
# Please keep this sorted. After modification, use: r
uby -Ilib -rrefrepo/input_loader -
e sort
ed_
vlan
_
offsets
# Please keep this sorted. After modification, use: r
ak
e sort
-
vlan
s-
offsets
# Max addresses are:
# local: 15.255 (/20 network) -- overlap between sites is OK
# global: 63.255 (/18 network)
...
...
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