Merge "Update the policy scope to 'OSDF_DUBLIN'"
[optf/osdf.git] / test / placement-tests / request_placement_vfmod.json
1 {
2     "name": "de4f04e3-0a65-470b-9d07-8ea6c2fb3e10",
3     "template": {
4         "constraints": {
5             "affinity_vFW_TD": {
6                 "demands": ["vFW-SINK", "vPGN"],
7                 "properties": {
8                     "category": "region",
9                     "qualifier": "same"
10                 },
11                 "type": "zone"
12             }
13         },
14         "parameters": {
15             "service_name": "vFW_TD",
16             "chosen_region": "RegionOne",
17             "service_id": "3e8d118c-10ca-4b4b-b3db-089b5e9e6a1c",
18             "customer_long": 2.2,
19             "REQUIRED_MEM": "",
20             "customer_lat": 1.1,
21             "REQUIRED_DISK": ""
22         },
23         "locations": {
24             "customer_loc": {
25                 "longitude": {
26                     "get_param": "customer_long"
27                 },
28                 "latitude": {
29                     "get_param": "customer_lat"
30                 }
31             }
32         },
33         "demands": {
34             "vFW-SINK": [{
35                 "attributes": {
36                     "global-customer-id": "Demonstration",
37                     "cloud-region-id": {
38                         "get_param": "chosen_region"
39                     },
40                     "model-version-id": "763731df-84fd-494b-b824-01fc59a5ff2d",
41                     "orchestration-status": ["active"],
42                     "model-invariant-id": "e7227847-dea6-4374-abca-4561b070fe7d",
43                     "service_instance_id": {
44                         "get_param": "service_id"
45                     },
46                     "prov-status": "ACTIVE"
47                 },
48                 "inventory_provider": "aai",
49                 "service_resource_id": "vFW-SINK-XX",
50                 "inventory_type": "vfmodule",
51                 "service_type": "vFW-SINK-XX",
52                 "excluded_candidates": [{
53                     "inventory_type": "vfmodule",
54                     "candidate_id": "e765d576-8755-4145-8536-0bb6d9b1dc9a"
55                 }]
56             }],
57             "vPGN": [{
58                 "attributes": {
59                     "global-customer-id": "Demonstration",
60                     "cloud-region-id": {
61                         "get_param": "chosen_region"
62                     },
63                     "model-version-id": "e02a7e5c-9d27-4360-ab7c-73bb83b07e3b",
64                     "orchestration-status": ["active"],
65                     "model-invariant-id": "762472ef-5284-4daa-ab32-3e7bee2ec355",
66                     "service_instance_id": {
67                         "get_param": "service_id"
68                     },
69                     "prov-status": "ACTIVE"
70                 },
71                 "inventory_provider": "aai",
72                 "service_resource_id": "vPGN-XX",
73                 "unique": "false",
74                 "inventory_type": "vfmodule",
75                 "service_type": "vPGN-XX"
76             }]
77         },
78         "optimization": {
79             "minimize": {
80                 "sum": []
81             }
82         },
83         "homing_template_version": "2017-10-10"
84     },
85     "num_solution": "100",
86     "files": {},
87     "timeout": 1200
88 }