bb613abd80d85c90cc12e35993fa9fed3c83a153
[integration/csit.git] / tests / optf-has / has / data / plan_with_hpa_requirements_mandatory.json
1 {  
2    "name":"vCPE-with-HPA-requirement-mandatory",
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":"64",
75                                  "operator":"="
76                               },
77                               {  
78                                  "hpa-attribute-key":"virtualMemSize",
79                                  "hpa-attribute-value":"64",
80                                  "operator":"=",
81                                  "unit":"GB"
82                               }
83                            ]
84                         },
85                         {  
86                            "hpa-feature":"numa",
87                            "hpa-version":"v1",
88                            "architecture":"generic",
89                            "mandatory":"True",
90                            "directives":[],
91                            "hpa-feature-attributes":[  
92                               {  
93                                  "hpa-attribute-key":"numaNodes",
94                                  "hpa-attribute-value":"2",
95                                  "operator":"="
96                               },
97                               {  
98                                  "hpa-attribute-key":"numaCpu-0",
99                                  "hpa-attribute-value":"2",
100                                  "operator":"="
101                               },
102                               {  
103                                  "hpa-attribute-key":"numaCpu-1",
104                                  "hpa-attribute-value":"4",
105                                  "operator":"="
106                               },
107                               {  
108                                  "hpa-attribute-key":"numaMem-0",
109                                  "hpa-attribute-value":"2",
110                                  "operator":"=",
111                                  "unit":"GB"
112                               },
113                               {  
114                                  "hpa-attribute-key":"numaMem-1",
115                                  "hpa-attribute-value":"4",
116                                  "operator":"=",
117                                  "unit":"GB"
118                               }
119                            ]
120                         }
121                      ]
122                   },
123                   {  
124                      "id":"vg_2",
125                      "type":"vnfc",
126                      "directives":[
127                         {
128                            "type":"flavor_directives",
129                            "attributes":[
130                               {
131                                  "attribute_name":"flavor_label_2",
132                                  "attribute_value":""
133                               }
134                            ]
135                         }
136                      ],
137                      "flavorProperties":[  
138                         {  
139                            "hpa-feature":"basicCapabilities",
140                            "hpa-version":"v1",
141                            "architecture":"generic",
142                            "mandatory": "True",
143                            "directives":[],
144                            "hpa-feature-attributes":[  
145                               {  
146                                  "hpa-attribute-key":"numVirtualCpu",
147                                  "hpa-attribute-value":"32",
148                                  "operator":"="
149                               },
150                               {  
151                                  "hpa-attribute-key":"virtualMemSize",
152                                  "hpa-attribute-value":"128",
153                                  "operator":"=",
154                                  "unit":"GB"
155                               }
156                            ]
157                         },
158                         {  
159                            "hpa-feature":"ovsDpdk",
160                            "hpa-version":"v1",
161                            "architecture":"generic",
162                            "mandatory": "True",
163                            "directives":[],
164                            "hpa-feature-attributes":[  
165                               {  
166                                  "hpa-attribute-key":"dataProcessingAccelerationLibrary",
167                                  "hpa-attribute-value":"v18.02",
168                                  "operator":"="
169                               }
170                            ]
171                         }
172                      ]
173                   }
174                ]
175             }
176          }
177       },
178       "optimization":{  
179          "minimize":{  
180             "sum":[  
181                {  
182                   "distance_between":[  
183                      "customer_loc",
184                      "vG"
185                   ]
186                }
187             ]
188          }
189       }
190    },
191    "timeout":5,
192    "limit":3
193 }