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