Testing for HpaCapabilities object
[aai/aai-common.git] / aai-core / src / test / resources / payloads / templates / hpa.json
1 {
2   "cloud-owner": "${cloud-owner}",
3   "cloud-region-id": "${cloud-region-id}",
4   "cloud-type": "openstack-pike",
5   "owner-defined-type": "OUrR8kI6Br",
6   "cloud-region-version": "Nyr",
7   "identity-url": "JHqvA1M",
8   "cloud-zone": "Y5UfJUM",
9   "complex-name": "QLP",
10   "sriov-automation": false,
11   "tenants": {
12     "tenant": [
13       {
14         "tenant-id": "${tenant-id}",
15         "tenant-name": "yhgVBcv3Pr",
16         "tenant-context": "De4NNayqFBO",
17         "vservers": {
18           "vserver": [
19             {
20               "vserver-id": "${vserver-id}",
21               "vserver-name": "P3SJ347Uyv",
22               "vserver-name2": "1dHd",
23               "prov-status": "PR04shorWQ",
24               "vserver-selflink": "v7dU8H",
25               "in-maint": false,
26               "is-closed-loop-disabled": true,
27               "volumes": {
28                 "volume": [
29                   {
30                     "volume-id": "61cbb17e-8e5f-4545-a8ea-13a0e9c9871f-vk250x",
31                     "volume-selflink": "mYkfJ9rGv"
32                   },
33                   {
34                     "volume-id": "d98083a6-b235-4e54-b19b-2ebfa1604246-vk250x",
35                     "volume-selflink": "69RRsreL4"
36                   }
37                 ]
38               },
39               "l-interfaces": {
40                 "l-interface": [
41                   {
42                     "interface-name": "top-linterface",
43                     "interface-role": "3W1FAJGSQ",
44                     "v6-wan-link-ip": "WugWw3N",
45                     "selflink": "Of4j0pU",
46                     "interface-id": "eoW",
47                     "macaddr": "XNbbIy33",
48                     "network-name": "ZETDv5sGhiS",
49                     "management-option": "qR3RyCxgEU",
50                     "interface-description": "ksuRPpWDEH7",
51                     "is-port-mirrored": false,
52                     "in-maint": false,
53                     "prov-status": "20Q0ZE6n5iB0",
54                     "is-ip-unnumbered": false,
55                     "allowed-address-pairs": "KjPXyH",
56                     "vlans": {
57                       "vlan": [
58                         {
59                           "vlan-interface": "8d225c33-7494-4173-939f-0e1e8741344d-vk250x",
60                           "vlan-id-inner": 884,
61                           "vlan-id-outer": 992,
62                           "speed-value": "RyFPm",
63                           "speed-units": "ZrckmLff7b",
64                           "vlan-description": "zjAeUFgeagpf",
65                           "backdoor-connection": "gANMvUquB",
66                           "vpn-key": "l0rV7bb2Sc",
67                           "orchestration-status": "WVnLpbzIx",
68                           "in-maint": false,
69                           "prov-status": "tYMRi6df",
70                           "is-ip-unnumbered": false,
71                           "l3-interface-ipv4-address-list": [
72                             {
73                               "l3-interface-ipv4-address": "2e7d62a5-ff93-446f-9fa3-b4ba585e742b-vk250x",
74                               "l3-interface-ipv4-prefix-length": 640,
75                               "vlan-id-inner": 652,
76                               "vlan-id-outer": 868,
77                               "is-floating": true,
78                               "neutron-network-id": "dJ8Fqs4ZTRn",
79                               "neutron-subnet-id": "HC6ji9DO8"
80                             }
81                           ],
82                           "l3-interface-ipv6-address-list": [
83                             {
84                               "l3-interface-ipv6-address": "818cd2e5-8dac-4a49-aa2e-4f97d4e98594-vk250x",
85                               "l3-interface-ipv6-prefix-length": 910,
86                               "vlan-id-inner": 116,
87                               "vlan-id-outer": 661,
88                               "is-floating": true,
89                               "neutron-network-id": "vSpYqFg5Tfe",
90                               "neutron-subnet-id": "bqkOUZSlVF"
91                             },
92                             {
93                               "l3-interface-ipv6-address": "915a8e5d-9d39-4f99-a350-c48f48ac8f46-vk250x",
94                               "l3-interface-ipv6-prefix-length": 593,
95                               "vlan-id-inner": 554,
96                               "vlan-id-outer": 762,
97                               "is-floating": false,
98                               "neutron-network-id": "b7PM",
99                               "neutron-subnet-id": "u51Ma93"
100                             }
101                           ]
102                         }
103                       ]
104                     },
105                     "sriov-vfs": {
106                       "sriov-vf": [
107                         {
108                           "pci-id": "01ca7dbe-e270-4545-a045-72e9e3fcb44b-vk250x",
109                           "vf-vlan-filter": "f9YNFlqrfHi",
110                           "vf-mac-filter": "HQhFdXpL1v",
111                           "vf-vlan-strip": true,
112                           "vf-vlan-anti-spoof-check": false,
113                           "vf-mac-anti-spoof-check": false,
114                           "vf-mirrors": "SqknCX",
115                           "vf-broadcast-allow": true,
116                           "vf-unknown-multicast-allow": false,
117                           "vf-unknown-unicast-allow": false,
118                           "vf-insert-stag": true,
119                           "vf-link-status": "MsSX9hug4u1",
120                           "neutron-network-id": "f4jq6yFxVVtC"
121                         }
122                       ]
123                     },
124                     "l-interfaces": {
125                       "l-interface": [
126                         {
127                           "interface-name": "nested-linterface1",
128                           "interface-role": "ZjOYJKIE4j9W1",
129                           "v6-wan-link-ip": "63RKRTd",
130                           "selflink": "5xF",
131                           "interface-id": "akNmnDyijrHla",
132                           "macaddr": "XLZCof4",
133                           "network-name": "yJt",
134                           "management-option": "FJ6qVt",
135                           "interface-description": "fCHE1Glz",
136                           "is-port-mirrored": false,
137                           "in-maint": false,
138                           "prov-status": "vuTb",
139                           "is-ip-unnumbered": false,
140                           "allowed-address-pairs": "5Lzn9"
141                         },
142                         {
143                           "interface-name": "nested-linterface2",
144                           "interface-role": "ZjOYJKIE4j9W1",
145                           "v6-wan-link-ip": "63RKRTd",
146                           "selflink": "5xF",
147                           "interface-id": "akNmnDyijrHla",
148                           "macaddr": "XLZCof4",
149                           "network-name": "yJt",
150                           "management-option": "FJ6qVt",
151                           "interface-description": "fCHE1Glz",
152                           "is-port-mirrored": false,
153                           "in-maint": false,
154                           "prov-status": "vuTb",
155                           "is-ip-unnumbered": false,
156                           "allowed-address-pairs": "5Lzn9"
157                         }
158                       ]
159                     },
160                     "l3-interface-ipv4-address-list": [
161                       {
162                         "l3-interface-ipv4-address": "fc25fa49-ec46-43f5-bd39-c1c9067d2962-vk250x",
163                         "l3-interface-ipv4-prefix-length": 339,
164                         "vlan-id-inner": 644,
165                         "vlan-id-outer": 701,
166                         "is-floating": true,
167                         "neutron-network-id": "IEpYVl",
168                         "neutron-subnet-id": "7uWdipdgtC4Qc"
169                       },
170                       {
171                         "l3-interface-ipv4-address": "402d29fe-baf4-47e3-9208-e12a75e25349-vk250x",
172                         "l3-interface-ipv4-prefix-length": 370,
173                         "vlan-id-inner": 971,
174                         "vlan-id-outer": 142,
175                         "is-floating": false,
176                         "neutron-network-id": "sRi62ZY3IrKkq",
177                         "neutron-subnet-id": "PeV5RhIfV2Ib7"
178                       }
179                     ],
180                     "l3-interface-ipv6-address-list": [
181                       {
182                         "l3-interface-ipv6-address": "c9befce1-5617-4525-b217-105a57f6bd59-vk250x",
183                         "l3-interface-ipv6-prefix-length": 333,
184                         "vlan-id-inner": 275,
185                         "vlan-id-outer": 324,
186                         "is-floating": true,
187                         "neutron-network-id": "em6Lc6ovvWsdx",
188                         "neutron-subnet-id": "pyx4f"
189                       },
190                       {
191                         "l3-interface-ipv6-address": "18aa594c-143b-4564-ac0c-72144aecbb66-vk250x",
192                         "l3-interface-ipv6-prefix-length": 350,
193                         "vlan-id-inner": 893,
194                         "vlan-id-outer": 37,
195                         "is-floating": false,
196                         "neutron-network-id": "lhiR1",
197                         "neutron-subnet-id": "kdfoiCb7JYBuh"
198                       }
199                     ]
200                   }
201                 ]
202               }
203             }
204           ]
205         }
206       }
207     ]
208   },
209   "flavors": {
210     "flavor": [
211       {
212         "flavor-id": "${flavor-id1}",
213         "flavor-name": "flavor-numa-cpu-topology-instruction-set",
214         "flavor-vcpus": 64,
215         "flavor-ram": 65536,
216         "flavor-disk": 1048576,
217         "flavor-ephemeral": 128,
218         "flavor-swap": "0",
219         "flavor-is-public": false,
220         "flavor-selflink": "pXtX",
221         "flavor-disabled": false,
222         "hpa-capabilities": {
223           "hpa-capability": [
224             {
225               "hpa-capability-id": "${hpa-capability-id1}",
226               "hpa-feature": "basicCapabilities",
227               "hpa-version": "v1",
228               "architecture": "generic",
229               "hpa-feature-attributes": [
230                 {
231                   "hpa-attribute-key": "numVirtualCpu",
232                   "hpa-attribute-value": "{value:4}"
233                 },
234                 {
235                   "hpa-attribute-key": "virtualMemSize",
236                   "hpa-attribute-value": "{value:4, unit:\"GB\" }"
237                 }
238               ]
239             },
240             {
241               "hpa-capability-id": "${hpa-capability-id2}",
242               "hpa-feature": "cpuTopology",
243               "hpa-version": "v1",
244               "architecture": "generic",
245               "hpa-feature-attributes": [
246                 {
247                   "hpa-attribute-key": "numCpuSockets",
248                   "hpa-attribute-value": "{value:6}"
249                 },
250                 {
251                   "hpa-attribute-key": "numCpuCores",
252                   "hpa-attribute-value": "{value:8}"
253                 },
254                 {
255                   "hpa-attribute-key": "numCpuThreads",
256                   "hpa-attribute-value": "{value:8}"
257                 }
258               ]
259             },
260             {
261               "hpa-capability-id": "${hpa-capability-id3}",
262               "hpa-feature": "numa",
263               "hpa-version": "v1",
264               "architecture": "generic",
265               "hpa-feature-attributes": [
266                 {
267                   "hpa-attribute-key": "numaNodes",
268                   "hpa-attribute-value": "{value:2}"
269                 },
270                 {
271                   "hpa-attribute-key": "numaCpu-0",
272                   "hpa-attribute-value": "{value:2}"
273                 },
274                 {
275                   "hpa-attribute-key": "numaCpu-1",
276                   "hpa-attribute-value": "{value:4}"
277                 },
278                 {
279                   "hpa-attribute-key": "numaMem-0",
280                   "hpa-attribute-value": "{value:2, unit:\"GB\" }"
281                 },
282                 {
283                   "hpa-attribute-key": "numaMem-1",
284                   "hpa-attribute-value": "{value:4, unit:\"GB\" }"
285                 }
286               ]
287             },
288             {
289               "hpa-capability-id": "${hpa-capability-id4}",
290               "hpa-feature": "cpuInstructionSetExtensions",
291               "hpa-version": "v1",
292               "architecture": "Intel64",
293               "hpa-feature-attributes": [
294                 {
295                   "hpa-attribute-key": "instructionSetExtensions",
296                   "hpa-attribute-value": "{value:{['AAA', 'BBB', 'CCC', 'DDD']}}"
297                 }
298               ]
299             }
300           ]
301         }
302       },
303       {
304         "flavor-id": "${flavor-id2}",
305         "flavor-name": "flavor-cpu-pinning-ovsdpdk-instruction-set",
306         "flavor-vcpus": 32,
307         "flavor-ram": 131072,
308         "flavor-disk": 2097152,
309         "flavor-ephemeral": 128,
310         "flavor-swap": "0",
311         "flavor-is-public": false,
312         "flavor-selflink": "pXtX",
313         "flavor-disabled": false,
314         "hpa-capabilities": {
315           "hpa-capability": [
316             {
317               "hpa-capability-id": "${hpa-capability-id5}",
318               "hpa-feature": "basicCapabilities",
319               "hpa-version": "v1",
320               "architecture": "generic",
321               "hpa-feature-attributes": [
322                 {
323                   "hpa-attribute-key": "numVirtualCpu",
324                   "hpa-attribute-value": "{value:8}"
325                 },
326                 {
327                   "hpa-attribute-key": "virtualMemSize",
328                   "hpa-attribute-value": "{value:16, unit:\"GB\" }"
329                 }
330               ]
331             },
332             {
333               "hpa-capability-id": "${hpa-capability-id6}",
334               "hpa-feature": "cpuPinning",
335               "hpa-version": "v1",
336               "architecture": "generic",
337               "hpa-feature-attributes": [
338                 {
339                   "hpa-attribute-key": "logicalCpuThreadPinningPolicy",
340                   "hpa-attribute-value": "{value:\"prefer\"}"
341                 },
342                 {
343                   "hpa-attribute-key": "logicalCpuPinningPolicy",
344                   "hpa-attribute-value": "{value:\"dedicated\"}"
345                 }
346               ]
347             },
348             {
349               "hpa-capability-id": "${hpa-capability-id7}",
350               "hpa-feature": "ovsDpdk",
351               "hpa-version": "v1",
352               "architecture": "generic",
353               "hpa-feature-attributes": [
354                 {
355                   "hpa-attribute-key": "dataProcessingAccelerationLibrary",
356                   "hpa-attribute-value": "{value:\"v18.02\"}"
357                 }
358               ]
359             },
360             {
361               "hpa-capability-id": "${hpa-capability-id8}",
362               "hpa-feature": "cpuInstructionSetExtensions",
363               "hpa-version": "v1",
364               "architecture": "generic",
365               "hpa-feature-attributes": [
366                 {
367                   "hpa-attribute-key": "instructionSetExtensions",
368                   "hpa-attribute-value": "{value:{['A11', 'B22']}}"
369                 }
370               ]
371             }
372           ]
373         }
374       }
375     ]
376   },
377   "group-assignments": {
378     "group-assignment": [
379       {
380         "group-id": "30c1bb60-1b71-4b46-910f-d33c7905a779-vk250x",
381         "group-type": "bRh",
382         "group-name": "hg11sdvW",
383         "group-description": "df3w60RR"
384       }
385     ]
386   },
387   "snapshots": {
388     "snapshot": [
389       {
390         "snapshot-id": "26c013f4-c119-4ddd-89cf-e9b2729f87e5-vk250x",
391         "snapshot-name": "0J3q8ZjyPGH",
392         "snapshot-architecture": "wMu9Tvile",
393         "snapshot-os-distro": "2Vv4Pqzu",
394         "snapshot-os-version": "Vim0fyf404YVW",
395         "application": "oxkCtHUk",
396         "application-vendor": "tTpXkD",
397         "application-version": "aOqn",
398         "snapshot-selflink": "GCapKV9Tq",
399         "prev-snapshot-id": "Imnj21xW5Hez"
400       },
401       {
402         "snapshot-id": "ee2e8769-2dcf-4a3c-90bd-a0ba91c97f13-vk250x",
403         "snapshot-name": "zRh94rw3pc1",
404         "snapshot-architecture": "FxVDY",
405         "snapshot-os-distro": "QZnKXjI5LDBSi",
406         "snapshot-os-version": "u0Bl2moOJ7bb",
407         "application": "dlXZPm9B7",
408         "application-vendor": "89tls6",
409         "application-version": "c05X",
410         "snapshot-selflink": "rmExWmnDIZu3",
411         "prev-snapshot-id": "5chZxlmHfhe"
412       }
413     ]
414   },
415   "images": {
416     "image": [
417       {
418         "image-id": "691210f6-f3f2-488f-993c-a9c9570fb71f-vk250x",
419         "image-name": "GsPzYlduuWk",
420         "image-architecture": "vNdK4fYJf",
421         "image-os-distro": "ZxYe",
422         "image-os-version": "SVBBpHEc",
423         "application": "GgBxi1zv8h2KG",
424         "application-vendor": "x6NtDNUj",
425         "application-version": "VOZYqE04K9",
426         "image-selflink": "gOzbbHZtkuh",
427         "metadata": {
428           "metadatum": [
429             {
430               "metaname": "b9565dfa-ed1f-4d35-90c6-bb56a48d9b2a-vk250x",
431               "metaval": "nyq5IHmI"
432             }
433           ]
434         }
435       },
436       {
437         "image-id": "1f00c00a-9ab7-44a0-9961-bcf5f806fef8-vk250x",
438         "image-name": "WChNCg3ThQ1Of",
439         "image-architecture": "oL2m4nUPPG6j",
440         "image-os-distro": "kf7",
441         "image-os-version": "DxTTyv4S16e",
442         "application": "Y0dytCJ2ouDk",
443         "application-vendor": "F7E7a",
444         "application-version": "8wkd3Cy",
445         "image-selflink": "5N5A",
446         "metadata": {
447           "metadatum": [
448             {
449               "metaname": "a5c4c98f-0b36-4f70-a235-5135e8e644f1-vk250x",
450               "metaval": "vupk3k29rdN"
451             },
452             {
453               "metaname": "e6084e48-df73-4854-a2be-522087b5f6a3-vk250x",
454               "metaval": "l9VaEeP"
455             }
456           ]
457         }
458       }
459     ]
460   },
461   "dvs-switches": {
462     "dvs-switch": [
463       {
464         "switch-name": "b01222d9-f9f9-493d-8ee0-9ab7c095d5a0-vk250x",
465         "vcenter-url": "NNtc"
466       },
467       {
468         "switch-name": "7abed153-9fb5-4c05-87aa-ead0feb35b16-vk250x",
469         "vcenter-url": "YSS"
470       }
471     ]
472   },
473   "oam-networks": {
474     "oam-network": [
475       {
476         "network-uuid": "af2371f8-0fa6-4d4d-90c8-9c5d3ba3e01e-vk250x",
477         "network-name": "cVevT9o20HAs4",
478         "cvlan-tag": 560,
479         "ipv4-oam-gateway-address": "F565rGb",
480         "ipv4-oam-gateway-address-prefix-length": 540
481       }
482     ]
483   },
484   "availability-zones": {
485     "availability-zone": [
486       {
487         "availability-zone-name": "9761e922-fd2a-4c96-9a13-4e62e1daccdc-vk250x",
488         "hypervisor-type": "qijdeI",
489         "operational-status": "C0KkUiJ"
490       }
491     ]
492   },
493   "vip-ipv4-address-list": [
494     {
495       "vip-ipv4-address": "08b4a6c1-c702-4449-8791-caaa5341c6d9-vk250x",
496       "vip-ipv4-prefix-length": 185,
497       "vlan-id-inner": 969,
498       "vlan-id-outer": 414,
499       "is-floating": true,
500       "neutron-network-id": "S7r90cEZ",
501       "neutron-subnet-id": "2NwjH"
502     }
503   ],
504   "vip-ipv6-address-list": [
505     {
506       "vip-ipv6-address": "f01dbad0-10c5-491c-a6e5-d972c9b99f56-vk250x",
507       "vip-ipv6-prefix-length": 365,
508       "vlan-id-inner": 326,
509       "vlan-id-outer": 927,
510       "is-floating": true,
511       "neutron-network-id": "ULEl0",
512       "neutron-subnet-id": "eyt9"
513     }
514   ]
515 }