Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3bfdfb23 authored by Nicolas Perrin's avatar Nicolas Perrin
Browse files

[lib] Remove kavlan-topo management

parent 2bff8862
Branches
No related tags found
No related merge requests found
Pipeline #1067861 passed with warnings
......@@ -39,13 +39,6 @@
<%
end
if site_refapi['kavlans'].has_key?('topo')
Range.new(*site_refapi['kavlans']['topo'].split("..").map{|d| Integer(d)}).each do |kavlan_topo_id| -%>
{"value": <%= kavlan_topo_id %>, "name": "KAVLAN-<%= kavlan_topo_id %>", "type": "kavlan-topo"},
<%
end
end
if site_refapi.has_key?('kavlan_nef') -%>
{"value": <%= site_refapi['kavlan_nef'] %>, "name": "NEF", "type": "NULL"},
<%
......
......@@ -74,11 +74,6 @@ def generate_reference_api
site["type"] = "site"
site["uid"] = site_uid
#Move special entry "kavlan_topo"
if site["kavlan_topo"]
site["kavlans"]["topo"] = site.delete("kavlan_topo")
end
site_path = Pathname.new(refapi_path).join("sites", site_uid)
site_path.mkpath()
......
......@@ -66,7 +66,6 @@ kavlans:
network_ipv6: ipv6_network
gateway_ipv6: optional_ipv6_address
kavlan_ip_range: ipv4_network
kavlan_topo: optional_string
kavlan_nef: optional_integer
pdus:
<optional_hash>:
......@@ -86,4 +85,4 @@ frontend_ip: ipv4_address
ipv6:
prefix: ipv6_network
site_global_kavlan: integer
site_index: integer
\ No newline at end of file
site_index: integer
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment