summaryrefslogtreecommitdiffstats
path: root/osdf/templates/conductor_interface.json
diff options
context:
space:
mode:
Diffstat (limited to 'osdf/templates/conductor_interface.json')
-rwxr-xr-xosdf/templates/conductor_interface.json58
1 files changed, 9 insertions, 49 deletions
diff --git a/osdf/templates/conductor_interface.json b/osdf/templates/conductor_interface.json
index 2b48647..64f9c4f 100755
--- a/osdf/templates/conductor_interface.json
+++ b/osdf/templates/conductor_interface.json
@@ -4,52 +4,20 @@
"timeout": {{ timeout }},
"limit": {{ limit }},
"template": {
- "conductor_template_version": "2018-02-01",
+ "homing_template_version": "2017-10-10",
"parameters": {
- "REQUEST_TYPE": "{{ requestType }}",
- "CHOSEN_REGION": "{{ chosenRegion }}",
- "LATITUDE": "{{ latitude }}",
- "LONGITUDE": "{{ longitude }}",
- {% if serviceType == 'DHV' %}
- "E2EVPNKEY": "{{ e2eVpnKey }}",
- "UCPEHOST": "{{ ucpeHostName }}",
- "EFFECTIVE_BANDWIDTH": "{{ effectiveBandwidth }}",
- "WAN_PORT1_UP": "{{ ipsec_bw_up }}",
- "WAN_PORT1_DOWN": "{{ ipsec_bw_down }}",
- "WAN_PORT2_UP": "{{ ipsec2_bw_up }}",
- "WAN_PORT2_DOWN": "{{ ipsec2_bw_down }}",
- {% endif %}
- {% if serviceType != 'DHV' %}
- "GW_TENANT_ID": "{{ gwTenantId }}",
- "PORTAL_TENANT_ID": "{{ portalTenantId }}",
- {% endif %}
- "CHOSEN_COMPLEX": "{{ chosenComplex }}",
- {% if serviceType == 'ADIOD' or serviceType == 'VPE' %}
- "BANDWIDTH": "{{ bandwidth }}",
- "UNIT": "{{ bandwidth_unit }}",
- {% endif %}
- "SERVICE_INST": "{{ serviceInstance }}",
- "PROV_STATUS": {{ json.dumps(provStatus) }}
+ "service_name": "{{ service_name }}",
+ "service_id": "{{ service_id }}",
+ "customer_lat": "{{ latitude }}",
+ "customer_long": "{{ longitude }}",
+ "REQUIRED_MEM": "{{ memory }}",
+ "REQUIRED_DISK": "{{ storage }}"
},
"locations": {
- {% if serviceType == 'DHV' %}
"customer_loc": {
- "host_name": { "get_param": "UCPEHOST" }
+ "latitude": { "get_param": "customer_lat" },
+ "longitude": { "get_param": "customer_long" }
}
- {% elif serviceType == 'ADIOD' %}
- "customer_pref_location": {
- "clli_code": { "get_param": "CHOSEN_COMPLEX" }
- }
- {% elif serviceType == 'NETBOND' %}
- "peering_point": {
- "latitude": { "get_param": "LATITUDE" },
- "longitude": { "get_param": "LONGITUDE" }
- }
- {% else %}
- "customer_pref_loc": {
- "clli_code": { "get_param": "CHOSEN_COMPLEX" }
- }
- {% endif %}
},
"demands": {{ json.dumps(demand_list) }},
{% set comma_main = joiner(",") %}
@@ -61,14 +29,6 @@
{% endfor %}
{% endfor %}
},
- "reservation": {
- {% set comma=joiner(",") %}
- {% for elem in reservation_groups %} {{ comma() }}
- {% for key, value in elem.items() %}
- "{{key}}": {{ json.dumps(value) }}
- {% endfor %}
- {% endfor %}
- },
"optimization": {
{% set comma=joiner(",") %}
{% for elem in optimization_policies %} {{ comma() }}