Commit 9108823f authored by Lucas Nussbaum's avatar Lucas Nussbaum Committed by Simon Delamare

Add Rake task to sort VLANs

parent a1de4456
......@@ -195,6 +195,12 @@ task "reference-api" do
desc "Output sorted VLAN offsets table (to update the input YAML after modification)"
task "sort-vlans-offsets" do
#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| }
......@@ -54,7 +54,7 @@ vlans:
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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment