Merge "Add test suit for SDC helm chart validator"
[integration/csit.git] / tests / optf-has / has / data / plan_with_hpa_requirements_optionals.json
1 {
2    "name":"vCPE-HPA-Requirement-Optional",
3    "template":{
4       "homing_template_version":"2017-10-10",
5       "parameters":{
6          "service_name":"Residential vCPE",
7          "service_id":"vcpe_service_id",
8          "customer_lat":45.395968,
9          "customer_long":-71.135344,
10          "REQUIRED_MEM":4,
11          "REQUIRED_DISK":100,
12          "pnf_id":"some_pnf_id"
13       },
14       "locations":{
15          "customer_loc":{
16             "latitude":{
17                "get_param":"customer_lat"
18             },
19             "longitude":{
20                "get_param":"customer_long"
21             }
22          }
23       },
24       "demands":{
25          "vG":[
26             {
27                "inventory_provider":"aai",
28                "inventory_type":"cloud"
29             }
30          ]
31       },
32       "constraints":{
33          "constraint_vg_customer":{
34             "type":"distance_to_location",
35             "demands":[
36                "vG"
37             ],
38             "properties":{
39                "distance":"< 100 km",
40                "location":"customer_loc"
41             }
42          },
43          "hpa_constraint":{
44             "type":"hpa",
45             "demands":[
46                "vG"
47             ],
48             "properties":{
49                "evaluate":[
50                   {
51                      "id":"vg_1",
52                      "type":"vnfc",
53                      "directives":[
54                         {
55                            "type":"flavor_directives",
56                            "attributes":[
57                               {
58                                  "attribute_name":"flavor_label_1",
59                                  "attribute_value":""
60                               }
61                            ]
62                         }
63                      ],
64                      "flavorProperties":[
65                         {
66                            "hpa-feature":"basicCapabilities",
67                            "hpa-version":"v1",
68                            "architecture":"generic",
69                            "mandatory": "True",
70                            "directives":[],
71                            "hpa-feature-attributes":[
72                               {
73                                  "hpa-attribute-key":"numVirtualCpu",
74                                  "hpa-attribute-value":"4",
75                                  "operator":">="
76                               },
77                               {
78                                  "hpa-attribute-key":"virtualMemSize",
79                                  "hpa-attribute-value":"8",
80                                  "operator":">=",
81                                  "unit":"GB"
82                               }
83                            ]
84                         },
85                          {
86                            "hpa-feature":"instructionSetExtensions",
87                            "hpa-version":"v1",
88                            "architecture":"Intel64",
89                            "mandatory": "True",
90                            "directives":[],
91                            "hpa-feature-attributes":[
92                               {
93                                  "hpa-attribute-key":"instructionSetExtensions",
94                                  "hpa-attribute-value":["aes", "sse", "avx", "smt"],
95                                  "operator":"ALL",
96                                  "unit":""
97                               }
98                            ]
99                         },
100                         {
101                            "hpa-feature":"numa",
102                            "hpa-version":"v1",
103                            "architecture":"generic",
104                            "mandatory":"False",
105                            "score":"3",
106                            "directives":[],
107                            "hpa-feature-attributes":[
108                               {
109                                  "hpa-attribute-key":"numaNodes",
110                                  "hpa-attribute-value":"2",
111                                  "operator":"="
112                               },
113                               {
114                                  "hpa-attribute-key":"numaCpu-0",
115                                  "hpa-attribute-value":"2",
116                                  "operator":"="
117                               },
118                               {
119                                  "hpa-attribute-key":"numaCpu-1",
120                                  "hpa-attribute-value":"4",
121                                  "operator":"="
122                               },
123                               {
124                                  "hpa-attribute-key":"numaMem-0",
125                                  "hpa-attribute-value":"2",
126                                  "operator":"=",
127                                  "unit":"GB"
128                               },
129                               {
130                                  "hpa-attribute-key":"numaMem-1",
131                                  "hpa-attribute-value":"4",
132                                  "operator":"=",
133                                  "unit":"GB"
134                               }
135                            ]
136                         }
137                      ]
138                   },
139                   {
140                      "id":"vg_2",
141                      "type":"vnfc",
142                      "directives":[
143                         {
144                            "type":"flavor_directives",
145                            "attributes":[
146                               {
147                                  "attribute_name":"flavor_label_2",
148                                  "attribute_value":""
149                               }
150                            ]
151                         }
152                      ],
153                      "flavorProperties":[
154                         {
155                            "hpa-feature":"basicCapabilities",
156                            "hpa-version":"v1",
157                            "architecture":"generic",
158                            "mandatory": "True",
159                            "directives":[],
160                            "hpa-feature-attributes":[
161                               {
162                                  "hpa-attribute-key":"numVirtualCpu",
163                                  "hpa-attribute-value":"4",
164                                  "operator":">="
165                               },
166                               {
167                                  "hpa-attribute-key":"virtualMemSize",
168                                  "hpa-attribute-value":"8",
169                                  "operator":">=",
170                                  "unit":"GB"
171                               }
172                            ]
173                         },
174                          {
175                            "hpa-feature":"ovsDpdk",
176                            "hpa-version":"v1",
177                            "architecture":"generic",
178                            "mandatory": "False",
179                            "score":"5",
180                            "directives":[],
181                            "hpa-feature-attributes":[
182                               {
183                                  "hpa-attribute-key":"dataProcessingAccelerationLibrary",
184                                  "hpa-attribute-value":"v18.02",
185                                  "operator":"="
186                               }
187                            ]
188                         },
189                         {
190                            "hpa-feature":"numa",
191                            "hpa-version":"v1",
192                            "architecture":"generic",
193                            "mandatory":"False",
194                            "score":"3",
195                            "directives":[],
196                            "hpa-feature-attributes":[
197                               {
198                                  "hpa-attribute-key":"numaNodes",
199                                  "hpa-attribute-value":"2",
200                                  "operator":"="
201                               },
202                               {
203                                  "hpa-attribute-key":"numaCpu-0",
204                                  "hpa-attribute-value":"2",
205                                  "operator":"="
206                               },
207                               {
208                                  "hpa-attribute-key":"numaCpu-1",
209                                  "hpa-attribute-value":"4",
210                                  "operator":"="
211                               },
212                               {
213                                  "hpa-attribute-key":"numaMem-0",
214                                  "hpa-attribute-value":"2",
215                                  "operator":"=",
216                                  "unit":"GB"
217                               },
218                               {
219                                  "hpa-attribute-key":"numaMem-1",
220                                  "hpa-attribute-value":"4",
221                                  "operator":"=",
222                                  "unit":"GB"
223                               }
224                            ]
225                         }
226                      ]
227                   }
228                ]
229             }
230          }
231       },
232       "optimization":{
233          "minimize":{
234             "sum":[
235                {
236                   "distance_between":[
237                      "customer_loc",
238                      "vG"
239                   ]
240                }
241             ]
242          }
243       }
244    },
245    "timeout":5,
246    "limit":3
247 }