Merge "Fixed TD policies"
[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": {
37                         "get_param": "chosen_customer_id"
38                     },
39                     "cloud-region-id": {
40                         "get_param": "chosen_region"
41                     },
42                     "model-version-id": "763731df-84fd-494b-b824-01fc59a5ff2d",
43                     "orchestration-status": ["active"],
44                     "model-invariant-id": "e7227847-dea6-4374-abca-4561b070fe7d",
45                     "service_instance_id": {
46                         "get_param": "service_id"
47                     },
48                     "prov-status": "ACTIVE"
49                 },
50                 "inventory_provider": "aai",
51                 "service_resource_id": "vFW-SINK-XX",
52                 "inventory_type": "vfmodule",
53                 "service_type": "vFW-SINK-XX",
54                 "excluded_candidates": [{
55                     "inventory_type": "vfmodule",
56                     "candidate_id": "e765d576-8755-4145-8536-0bb6d9b1dc9a"
57                 }]
58             }],
59             "vPGN": [{
60                 "attributes": {
61                     "global-customer-id": {
62                         "get_param": "chosen_customer_id"
63                     },
64                     "cloud-region-id": {
65                         "get_param": "chosen_region"
66                     },
67                     "model-version-id": "e02a7e5c-9d27-4360-ab7c-73bb83b07e3b",
68                     "orchestration-status": ["active"],
69                     "model-invariant-id": "762472ef-5284-4daa-ab32-3e7bee2ec355",
70                     "service_instance_id": {
71                         "get_param": "service_id"
72                     },
73                     "prov-status": "ACTIVE"
74                 },
75                 "inventory_provider": "aai",
76                 "service_resource_id": "vPGN-XX",
77                 "unique": "false",
78                 "inventory_type": "vfmodule",
79                 "service_type": "vPGN-XX"
80             }]
81         },
82         "optimization": {
83             "minimize": {
84                 "sum": []
85             }
86         },
87         "homing_template_version": "2017-10-10"
88     },
89     "num_solution": "100",
90     "files": {},
91     "timeout": 1200
92 }