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