Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9108823f authored by Lucas Nussbaum's avatar Lucas Nussbaum Committed by Simon Delamare
Browse files

Add Rake task to sort VLANs

parent a1de4456
Branches
No related tags found
No related merge requests found
......@@ -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() }
......
......@@ -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: ruby -Ilib -rrefrepo/input_loader -e sorted_vlan_offsets
# Please keep this sorted. After modification, use: rake sort-vlans-offsets
# Max addresses are:
# local: 15.255 (/20 network) -- overlap between sites is OK
# global: 63.255 (/18 network)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment