Updated the conductor adaptor
[optf/osdf.git] / osdf / templates / conductor_interface.json
1 {\r
2   "name": "{{ name }}",\r
3   "files": {},\r
4   "timeout": {{ timeout }},\r
5   "limit": {{ limit }},\r
6   "template": {\r
7     "homing_template_version": "2018-02-01",\r
8     "parameters": {\r
9             "service_name": "{{ service_name }}",\r
10         "service_id": "{{ service_id }}",\r
11         "customer_lat": "{{ latitude }}",\r
12         "customer_long": "{{ longitude }}"\r
13     },\r
14     "locations": {\r
15         "customer_loc": {\r
16             "latitude": { "get_param": "customer_lat" },\r
17             "longitude": { "get_param": "customer_long" }\r
18         }\r
19     },\r
20     "demands": {{ json.dumps(demand_list) }},\r
21     {% set comma_main = joiner(",") %}\r
22     "constraints": {\r
23       {% set comma=joiner(",") %}\r
24       {% for elem in policy_groups %} {{ comma() }}\r
25         {% for key, value in elem.items() %}\r
26           "{{key}}": {{ json.dumps(value) }}\r
27         {% endfor %}\r
28       {% endfor %}\r
29     },\r
30     "optimization": {\r
31       {% set comma=joiner(",") %}\r
32       {% for elem in optimization_policies %} {{ comma() }}\r
33         {% for key, value in elem.items() %}\r
34           "{{key}}": {{ json.dumps(value) }}\r
35         {% endfor %}\r
36       {% endfor %}\r
37     }\r
38   }\r
39 }