Merge "Unique field moved to vnf policy"
[optf/osdf.git] / apps / templates / cms_opt_request.jsont
1 {
2   "transaction_id": "{{ transaction_id }}",
3   "request_id": "{{ request_id }}",
4   "start_date" : "{{ start_time }}",
5   "end_date" : "{{ end_time }}",
6   "change_elements" : {{ json.dumps(change_elements) }},
7   "constraints" : [
8     {
9       "type" : "general_concurrency_limit",
10       "parameters": [{{ concurrency_limit }}]
11     },
12
13     {
14       "type" : "allowed_forbidden_periods",
15       "parameters" : {{ json.dumps(allowed_periods) }}
16     }
17
18     {% if spatial_conflicts is defined and spatial_conflicts|length > 0 %}
19     ,
20     {
21       "type" : "spatial_conflict",
22       "parameters": {{ json.dumps(spatial_conflicts) }}
23     }
24     {% endif %}
25
26
27     {% if critical_periods is defined and spatial_conflicts|length > 0 %}
28     ,
29     {
30       "type" : "critical_periods",
31       "parameters": {{ json.dumps(critical_periods) }}
32     }
33     {% endif %}
34   ]
35 }