Merge "Add onap log spec 1.2 for osdf"
[optf/osdf.git] / test / policy-local-files / hpa_policy_vFW_1.json
1 {
2   "service": "hpaPolicy",
3   "policyName": "OSDF_DUBLIN.hpa_policy_vFW_1",
4   "description": "HPA policy for vFW",
5   "templateVersion": "OpenSource.version.1",
6   "version": "test1",
7   "priority": "3",
8   "riskType": "test",
9   "riskLevel": "2",
10   "guard": "False",
11   "content": {
12     "resources": ["vFW"],
13     "identity": "hpa-vFW",
14     "policyScope": ["vfw", "us", "international", "ip"],
15     "policyType": "hpa",
16     "flavorFeatures": [
17       {
18         "flavorProperties": [
19           {
20             "architecture": "generic",
21             "directives": [],
22             "hpa-version": "v1",
23             "hpa-feature-attributes": [
24               {
25                 "unit": "",
26                 "operator": ">=",
27                 "hpa-attribute-value": "2",
28                 "hpa-attribute-key": "numVirtualCpu"
29               },
30               {
31                 "unit": "MB",
32                 "operator": ">=",
33                 "hpa-attribute-value": "8",
34                 "hpa-attribute-key": "virtualMemSize"
35               }
36             ],
37             "hpa-feature": "basicCapabilities",
38             "mandatory": "True"
39           },
40           {
41             "architecture": "generic",
42             "directives": [],
43             "hpa-version": "v1",
44             "hpa-feature-attributes": [
45               {
46                 "unit": "",
47                 "operator": "=",
48                 "hpa-attribute-value": "2",
49                 "hpa-attribute-key": "numaNodes"
50               },
51               {
52                 "operator": "=",
53                 "hpa-attribute-value": "2",
54                 "hpa-attribute-key": "numaCpu-0"
55               },
56               {
57                 "operator": "=",
58                 "hpa-attribute-value": "4",
59                 "hpa-attribute-key": "numaCpu-1"
60               },
61               {
62                 "unit": "GB",
63                 "operator": "=",
64                 "hpa-attribute-value": "2",
65                 "hpa-attribute-key": "numaMem-0"
66               },
67               {
68                 "unit": "GB",
69                 "operator": "=",
70                 "hpa-attribute-value": "4",
71                 "hpa-attribute-key": "numaMem-1"
72               }
73             ],
74             "hpa-feature": "numa",
75             "mandatory": "True"
76           },
77           {
78             "architecture": "generic",
79             "directives": [],
80             "hpa-version": "v1",
81             "hpa-feature-attributes": [
82               {
83                 "unit": "MB",
84                 "operator": "=",
85                 "hpa-attribute-value": "2",
86                 "hpa-attribute-key": "memoryPageSize"
87               },
88               {
89                 "operator": "=",
90                 "hpa-attribute-value": "4",
91                 "hpa-attribute-key": "numberOfPages"
92               }
93             ],
94             "hpa-feature": "hugePages",
95             "mandatory": "True"
96           },
97           {
98             "architecture": "Intel64",
99             "hpa-feature": "sriovNICNetwork",
100             "hpa-version": "v1",
101             "directives": [
102               {
103                 "type": "sriovNICNetwork_directives",
104                 "attributes": [
105                   {
106                     "attribute_name": "oof_returned_vnic_type_for_firewall_protected",
107                     "attribute_value": "direct"
108                   }
109                 ]
110               }
111             ],
112             "hpa-feature-attributes": [
113               {
114                 "unit": "",
115                 "operator": "=",
116                 "hpa-attribute-value": "1",
117                 "hpa-attribute-key": "pciCount"
118               },
119               {
120                 "unit": "",
121                 "operator": "=",
122                 "hpa-attribute-value": "1234",
123                 "hpa-attribute-key": "pciVendorId"
124               },
125               {
126                 "unit": "",
127                 "operator": "=",
128                 "hpa-attribute-value": "7890",
129                 "hpa-attribute-key": "pciDeviceId"
130               }
131             ],
132             "score": "100",
133             "mandatory": "False"
134           }
135         ],
136         "type": "vnfc",
137         "id": "vfw_1",
138         "directives": [
139           {
140             "type": "flavor_directives",
141             "attributes": [
142               {
143                 "attribute_name": "label_1",
144                 "attribute_value": ""
145               }
146             ]
147           }
148         ]
149       },
150       {
151         "flavorProperties": [
152           {
153             "architecture": "generic",
154             "directives": [],
155             "hpa-version": "v1",
156             "hpa-feature-attributes": [
157               {
158                 "operator": ">=",
159                 "hpa-attribute-value": "1",
160                 "hpa-attribute-key": "numVirtualCpu"
161               },
162               {
163                 "unit": "GB",
164                 "operator": ">=",
165                 "hpa-attribute-value": "7",
166                 "hpa-attribute-key": "virtualMemSize"
167               }
168             ],
169             "hpa-feature": "basicCapabilities",
170             "mandatory": "True"
171           }
172         ],
173         "type": "vnfc",
174         "id": "vfw_2",
175         "directives": [
176           {
177             "type": "flavor_directives",
178             "attributes": [
179               {
180                 "attribute_name": "label_2",
181                 "attribute_value": ""
182               }
183             ]
184           }
185         ]
186       },
187       {
188         "id": "vfw_3",
189         "type": "vnfc",
190         "directives": [
191           {
192             "type": "flavor_directives",
193             "attributes": [
194               {
195                 "attribute_name": "label_3",
196                 "attribute_value": ""
197               }
198             ]
199           }
200         ],
201         "flavorProperties": [
202           {
203             "hpa-feature": "basicCapabilities",
204             "hpa-version": "v1",
205             "architecture": "generic",
206             "mandatory": "True",
207             "directives": [],
208             "hpa-feature-attributes": []
209           }
210         ]
211       }
212     ]
213   }
214 }