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