update link to upper-constraints.txt
[optf/osdf.git] / test / policy-local-files / hpa_policy_vGMuxInfra_1.json
1 {
2   "OSDF_FRANKFURT.hpa_policy_vGMuxInfra_1": {
3     "type": "onap.policies.optimization.resource.HpaPolicy",
4     "version": "1.0.0",
5     "type_version": "1.0.0",
6     "metadata": {
7       "policy-id": "OSDF_FRANKFURT.hpa_policy_vGMuxInfra_1",
8       "policy-version": 1
9     },
10     "properties": {
11       "scope": [
12         "OSDF_FRANKFURT" 
13       ],
14       "services": [
15         "vCPE"
16       ],
17       "resources": [
18         "vGMuxInfra"
19       ],
20       "geography": [
21         "US",
22         "INTERNATIONAL"
23       ],
24       "identity": "hpa-vGMuxInfra",
25       "flavorFeatures": [
26         {
27           "id": "vgmux_1",
28           "type": "vnfc",
29           "directives": [
30             {
31               "type": "flavor_directives",
32               "attributes": [
33                 {
34                   "attribute_name": "flavor_label_vm_01",
35                   "attribute_value": ""
36                 }
37               ]
38             }
39           ],
40           "flavorProperties": [
41            {  
42               "hpa-feature" : "cpuTopology",
43               "mandatory" : "True",
44               "architecture": "generic",
45               "directives": [],
46               "hpa-feature-attributes": [
47                 {"hpa-attribute-key":"numCpuSockets", "hpa-attribute-value": "2","operator": ">=", "unit": ""},
48                 {"hpa-attribute-key":"numCpuSockets", "hpa-attribute-value": "4","operator": "<=", "unit": ""},
49                 {"hpa-attribute-key":"numCpuCores", "hpa-attribute-value": "2", "operator":">=", "unit": ""},
50                 {"hpa-attribute-key":"numCpuCores", "hpa-attribute-value": "4", "operator":"<=", "unit": ""},
51                 {"hpa-attribute-key":"numCpuThreads", "hpa-attribute-value": "4", "operator":">=", "unit": ""},
52                 {"hpa-attribute-key":"numCpuThreads", "hpa-attribute-value": "8", "operator":"<=", "unit": ""}
53               ]
54             },
55            {
56               "hpa-feature": "basicCapabilities",
57               "mandatory": true,
58               "architecture": "generic",
59               "directives": [],
60               "hpa-feature-attributes": [
61                 {
62                   "hpa-attribute-key": "numVirtualCpu",
63                   "hpa-attribute-value": 6,
64                   "operator": [
65                     "="
66                   ],
67                   "unit": ""
68                 },
69                 {
70                   "hpa-attribute-key": "virtualMemSize",
71                   "hpa-attribute-value": 6,
72                   "operator": [
73                     "="
74                   ],
75                   "unit": ""
76                 }
77               ]
78             },
79             {
80               "hpa-feature": "ovsDpdk",
81               "mandatory": false,
82               "score": 3,
83               "architecture": "generic",
84               "directives": [],
85               "hpa-feature-attributes": [
86                 {
87                   "hpa-attribute-key": "dataProcessingAccelerationLibrary",
88                   "hpa-attribute-value": "ovsDpdk_version",
89                   "operator": [
90                     "="
91                   ],
92                   "unit": ""
93                 }
94               ]
95             },
96             {
97               "hpa-feature": "cpuInstructionSetExtensions",
98               "mandatory": true,
99               "architecture": "INTEL-64",
100               "directives": [],
101               "hpa-feature-attributes": [
102                 {
103                   "hpa-attribute-key": "instructionSetExtensions",
104                   "hpa-attribute-value": [
105                     "<CPUINST>",
106                     "<CPUINST>"
107                   ],
108                   "operator": [
109                     "ALL"
110                   ],
111                   "unit": ""
112                 }
113               ]
114             }
115           ]
116         },
117         {
118           "id": "vgmux_2",
119           "type": "vnfc",
120           "directives": [
121             {
122               "type": "flavor_directives",
123               "attributes": [
124                 {
125                   "attribute_name": "flavor_label_vm_02",
126                   "attribute_value": ""
127                 }
128               ]
129             }
130           ],
131           "flavorProperties":[
132             {
133               "hpa-feature" : "cpuPinningy",
134               "mandatory" : "True",
135               "architecture": "generic",
136               "directives": [],
137               "hpa-feature-attributes": [
138                 {"hpa-attribute-key":"logicalCpuThreadPinningPolicy", "hpa-attribute-value":"<CPUTHREADPOLICY>", "operator": "=", "unit":""},
139                 {"hpa-attribute-key":"logicalCpuPinningPolicy", "hpa-attribute-value": "<CPUPOLICY>","operator": "=", "unit":""}
140               ]
141             },
142  {
143               "hpa-feature" : "basicCapabilities",
144               "mandatory" : "True",
145               "architecture": "generic",
146               "directives": [],
147               "hpa-feature-attributes": [
148                 {"hpa-attribute-key": "numVirtualCpu", "hpa-attribute-value": "6", "operator": "=", "unit": ""},
149                 {"hpa-attribute-key": "virtualMemSize", "hpa-attribute-value":"6", "operator": "=", "unit": "GB"}
150               ]
151             },
152             {
153               "hpa-feature" : "localStorage",
154               "mandatory" : "False",
155               "score" : "5",
156               "architecture": "generic",
157               "directives": [],
158               "hpa-feature-attributes": [
159                 {"hpa-attribute-key": "diskSize", "hpa-attribute-value": "2", "operator": "=", "unit": "GB"},
160                 {"hpa-attribute-key": "ephemeralDiskSize", "hpa-attribute-value": "2", "operator": "=", "unit": "GB"},
161                 {"hpa-attribute-key": "swapMemSize", "hpa-attribute-value":"16", "operator": "=", "unit": "MB"}
162               ]
163             },
164             {
165               "hpa-feature" : "pciePassthrough",
166               "mandatory" : "True",
167               "architecture": "generic",
168               "directives": [],
169               "hpa-feature-attributes": [
170                 {"hpa-attribute-key": "pciCount", "hpa-attribute-value": "2", "operator": "=", "unit": ""},
171                 {"hpa-attribute-key": "pciVendorId", "hpa-attribute-value":"8086", "operator": "=", "unit": ""},
172                 {"hpa-attribute-key": "pciDeviceId", "hpa-attribute-value": "2", "operator": "=", "unit": ""}
173               ]
174             }
175 ]
176         },
177         {
178           "id": "vgmux_3",
179           "type": "vnfc",
180           "directives": [
181             {
182               "type": "flavor_directives",
183               "attributes": [
184                 {
185                   "attribute_name": "flavor_label_vm_03",
186                   "attribute_value": ""
187                 }
188               ]
189             }
190           ],
191           "flavorProperties":[
192             {
193               "hpa-feature" : "numa",
194               "mandatory" : "False",
195               "score" : "5",
196               "architecture": "generic",
197               "directives": [],
198               "hpa-feature-attributes": [
199                 {"hpa-attribute-key": "numaNodes", "hpa-attribute-value": "2", "operator": "=", "unit": ""},
200                 {"hpa-attribute-key": "numaCpu-0", "hpa-attribute-value":"2", "operator": "=", "unit": ""},
201                 {"hpa-attribute-key": "numaMem-0", "hpa-attribute-value": "2048", "operator": "=", "unit": "MB"},
202                 {"hpa-attribute-key": "numaCpu-1", "hpa-attribute-value":"4", "operator": "=", "unit": ""},
203                 {"hpa-attribute-key": "numaMem-1", "value": "4096", "operator": "=", "unit": "MB"}
204               ]
205 },
206             {
207               "hpa-feature" : "basicCapabilities",
208               "mandatory" : "True",
209               "architecture": "generic",
210               "directives": [],
211               "hpa-feature-attributes": [
212                 {"hpa-attribute-key": "numVirtualCpu", "hpa-attribute-value": "6", "operator": "=", "unit": ""},
213                 {"hpa-attribute-key": "virtualMemSize", "hpa-attribute-value":"6", "operator": "=", "unit": "GB"}
214               ]
215             },
216             {
217               "hpa-feature" : "hugePages",
218               "mandatory" : "False",
219               "score" : "7",
220               "architecture": "generic",
221               "directives": [],
222               "hpa-feature-attributes": [
223                  {"hpa-attribute-key": "memoryPageSize", "hpa-attribute-value": "<MEMORYPAGESIZE>", "operator": "=", "unit": ""}
224               ]
225             }
226           ]
227         }
228       ]
229     }
230   }
231 }