From 0b855c08fd98fb8fa0f4bc40d8df430c897b4bad Mon Sep 17 00:00:00 2001 From: Ankitkumar Patel Date: Sun, 11 Feb 2018 17:51:13 -0500 Subject: Re-org folders, onboard test folder, test config Reorganized the folder structure. Onboarded testcases. Added test config. Issue-ID: OPTFRA-74 Change-Id: I97882a162a405a18ffd287495039e15ae9d0ad7b Signed-off-by: Ankitkumar Patel --- osdf/templates/conductor_interface.json | 81 +++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100755 osdf/templates/conductor_interface.json (limited to 'osdf/templates/conductor_interface.json') diff --git a/osdf/templates/conductor_interface.json b/osdf/templates/conductor_interface.json new file mode 100755 index 0000000..2b48647 --- /dev/null +++ b/osdf/templates/conductor_interface.json @@ -0,0 +1,81 @@ +{ + "name": "{{ name }}", + "files": {}, + "timeout": {{ timeout }}, + "limit": {{ limit }}, + "template": { + "conductor_template_version": "2018-02-01", + "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) }} + }, + "locations": { + {% if serviceType == 'DHV' %} + "customer_loc": { + "host_name": { "get_param": "UCPEHOST" } + } + {% 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(",") %} + "constraints": { + {% set comma=joiner(",") %} + {% for elem in policy_groups %} {{ comma() }} + {% for key, value in elem.items() %} + "{{key}}": {{ json.dumps(value) }} + {% 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() }} + {% for key, value in elem.items() %} + "{{key}}": {{ json.dumps(value) }} + {% endfor %} + {% endfor %} + } + } +} \ No newline at end of file -- cgit 1.2.3-korg