d343dc805e3f27fe5422d529e00d5d0b4e4a544f
[integration/csit.git] / tests / optf-has / has / data / plan_with_hpa_simple.json
1 {  
2    "name":"vCPE-with-HPA",
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         "hpa_constraint":{  
34             "type":"hpa",
35             "demands":[  
36                "vG"
37             ],
38             "properties":{  
39                "evaluate":[  
40                   {  
41                      "id":"vg_1",
42                      "type":"vnfc",
43                      "directives":[
44                          {
45                             "type":"flavor_directives",
46                             "attributes":[
47                                {
48                                   "attribute_name":"flavor_label_1",
49                                   "attribute_value":""
50                                }
51                             ]
52                          }
53                      ],
54                      "flavorProperties":[  
55                         {  
56                            "hpa-feature":"basicCapabilities",
57                            "hpa-version":"v1",
58                            "architecture":"generic",
59                            "mandatory": "False",
60                            "directives":[],
61                            "score": "5",
62                            "hpa-feature-attributes":[  
63                               {  
64                                  "hpa-attribute-key":"numVirtualCpu",
65                                  "hpa-attribute-value":"32",
66                                  "operator":"="
67                               },
68                               {  
69                                  "hpa-attribute-key":"virtualMemSize",
70                                  "hpa-attribute-value":"64",
71                                  "operator":"=",
72                                  "unit":"GB"
73                               }
74                            ]
75                         },
76                         {  
77                            "hpa-feature":"ovsDpdk",
78                            "hpa-version":"v1",
79                            "architecture":"generic",
80                            "mandatory": "False",
81                            "directives":[],
82                            "score": "5",
83                            "hpa-feature-attributes":[  
84                               {  
85                                  "hpa-attribute-key":"dataProcessingAccelerationLibrary",
86                                  "hpa-attribute-value":"v18.02",
87                                  "operator":"="
88                               }
89                            ]
90                         }
91                      ]
92                   },
93                   {  
94                      "id":"vg_2",
95                      "type":"vnfc",
96                      "directives":[
97                          {
98                             "type":"flavor_directives",
99                             "attributes":[
100                                {
101                                   "attribute_name":"flavor_label_2",
102                                   "attribute_value":""
103                                }
104                             ]
105                          }
106                      ],
107                      "flavorProperties":[  
108                         {  
109                            "hpa-feature":"basicCapabilities",
110                            "hpa-version":"v1",
111                            "architecture":"generic",
112                            "mandatory": "False",
113                            "directives":[],
114                            "score": "5",
115                            "hpa-feature-attributes":[  
116                               {  
117                                  "hpa-attribute-key":"numVirtualCpu",
118                                  "hpa-attribute-value":"8",
119                                  "operator":">="
120                               },
121                               {  
122                                  "hpa-attribute-key":"virtualMemSize",
123                                  "hpa-attribute-value":"16",
124                                  "operator":">=",
125                                  "unit":"GB"
126                               }
127                            ]
128                         }
129                      ]
130                   }
131                ]
132             }
133          }
134       },
135       "optimization":{  
136          "minimize":{  
137             "sum":[  
138                {  
139                   "distance_between":[  
140                      "customer_loc",
141                      "vG"
142                   ]
143                },
144                {  
145                   "distance_between":[  
146                      "customer_loc",
147                      "vG"
148                   ]
149                }
150             ]
151          }
152       }
153    },
154    "timeout":5,
155    "limit":3
156 }