Merge "Add netbox-ip-assign capability at vnf level"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-vnf-assign.json
1 [
2     {
3         "id": "4ab7a500.742b84",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 91,
8         "y": 42,
9         "z": "46985608.45d728",
10         "wires": [
11             [
12                 "41557c8.3b7a284"
13             ]
14         ]
15     },
16     {
17         "id": "ff348586.8270b8",
18         "type": "block",
19         "name": "block : atomic",
20         "xml": "<block atomic='true'>",
21         "atomic": "true",
22         "comments": "",
23         "outputs": 1,
24         "x": 121.4761962890625,
25         "y": 164.2777862548828,
26         "z": "46985608.45d728",
27         "wires": [
28             [
29                 "cd67af0a.d11ae",
30                 "f96dad58.53729",
31                 "7c74e6bd.a00fb8",
32                 "aee6c595.a3c2e8",
33                 "3e45c56a.355fba",
34                 "9470b636.3af698",
35                 "a48cbf50.8520d",
36                 "f9268c4a.ab9328",
37                 "818a22c.a82fbe"
38             ]
39         ]
40     },
41     {
42         "id": "37b4339e.be9ca4",
43         "type": "method",
44         "name": "method self-serve-vnf-assign",
45         "xml": "<method rpc='self-serve-vnf-assign' mode='sync'>\n",
46         "comments": "",
47         "outputs": 1,
48         "x": 207.76190948486328,
49         "y": 96.70635509490967,
50         "z": "46985608.45d728",
51         "wires": [
52             [
53                 "ff348586.8270b8"
54             ]
55         ]
56     },
57     {
58         "id": "41557c8.3b7a284",
59         "type": "service-logic",
60         "name": "GENERIC-RESOURCE-API ${project.version}",
61         "module": "GENERIC-RESOURCE-API",
62         "version": "${project.version}",
63         "comments": "",
64         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
65         "outputs": 1,
66         "x": 366.23819732666016,
67         "y": 42.19049263000488,
68         "z": "46985608.45d728",
69         "wires": [
70             [
71                 "37b4339e.be9ca4"
72             ]
73         ]
74     },
75     {
76         "id": "f96dad58.53729",
77         "type": "switchNode",
78         "name": "switch vnf-parameters-data.param_length",
79         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`'>\n",
80         "comments": "",
81         "outputs": 1,
82         "x": 409.6786575317383,
83         "y": 1384.5120058059692,
84         "z": "46985608.45d728",
85         "wires": [
86             [
87                 "1a76b7c7.f60c58"
88             ]
89         ]
90     },
91     {
92         "id": "1a76b7c7.f60c58",
93         "type": "other",
94         "name": "NULL",
95         "xml": "<outcome value=''>\n",
96         "comments": "",
97         "outputs": 1,
98         "x": 671.6786880493164,
99         "y": 1384.5120058059692,
100         "z": "46985608.45d728",
101         "wires": [
102             [
103                 "8db9b3e7.403cc8"
104             ]
105         ]
106     },
107     {
108         "id": "4d6ae8ce.a99a2",
109         "type": "call",
110         "name": "call GENERIC-RESOURCE-API:self-serve-ra-assignment",
111         "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-ra-assignment' mode='sync' >\n",
112         "comments": "",
113         "outputs": 1,
114         "x": 1186.9643478393555,
115         "y": 1434.0834369659424,
116         "z": "46985608.45d728",
117         "wires": [
118             [
119                 "5f59d54a.3b7624"
120             ]
121         ]
122     },
123     {
124         "id": "552faac1.e8b50c",
125         "type": "returnFailure",
126         "name": "return failure",
127         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to get RA assignments: ' + $error-message`\" />\n",
128         "comments": "",
129         "x": 1658.6785888671875,
130         "y": 1433.6548404693604,
131         "z": "46985608.45d728",
132         "wires": []
133     },
134     {
135         "id": "80370664.c86fd",
136         "type": "for",
137         "name": "foreach vnf-parameters-data.param[]",
138         "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n",
139         "comments": "",
140         "outputs": 1,
141         "x": 634.8574600219727,
142         "y": 1752.0120840072632,
143         "z": "46985608.45d728",
144         "wires": [
145             [
146                 "8260f760.79336",
147                 "2346f507.b81d6a"
148             ]
149         ]
150     },
151     {
152         "id": "cd67af0a.d11ae",
153         "type": "set",
154         "name": "set ss.capability.execution-order[]",
155         "xml": "<set>\n<parameter name='ss.capability.execution-order[0]' value='generate-name' />\n<parameter name='ss.capability.execution-order[1]' value='alts-entitlement-assign' />\n<parameter name='ss.capability.execution-order[2]' value='alts-license-assign' />\n<parameter name='ss.capability.execution-order[3]' value='vlan-tag-assign' />\n<parameter name='ss.capability.execution-order[4]' value='mS-vlan-tag-assign' />\n<parameter name='ss.capability.execution-order[5]' value='eipam-ip-assign' />\n<parameter name='ss.capability.execution-order[6]' value='netbox-ip-assign' />\n<parameter name='ss.capability.execution-order[7]' value='eipam-create-pool\"' />\n<parameter name='ss.capability.execution-order[8]' value='mac-address-assign' />\n<parameter name='ss.capability.execution-order[9]' value='mS-mac-address-assign' />\n<parameter name='ss.capability.execution-order[10]' value='create-vpe-pool' />\n<parameter name='ss.capability.execution-order[11]' value='unresolved-composite-data' />\n<parameter name='ss.capability.execution-order[12]' value='aai-vnf-put' />\n<parameter name='ss.capability.execution-order_length' value='13' />\n",
156         "comments": "",
157         "x": 383.52384185791016,
158         "y": 1223.0001401901245,
159         "z": "46985608.45d728",
160         "wires": []
161     },
162     {
163         "id": "7c74e6bd.a00fb8",
164         "type": "for",
165         "name": "foreach capability[]",
166         "xml": "<for index='cidx' start='0' end='`$ss.capability.execution-order_length`' >\n",
167         "comments": "",
168         "outputs": 1,
169         "x": 338.9286880493164,
170         "y": 1492.1191005706787,
171         "z": "46985608.45d728",
172         "wires": [
173             [
174                 "c4f31511.d9287",
175                 "4357e5bb.501284",
176                 "80370664.c86fd",
177                 "ee8b6246.5c29f"
178             ]
179         ]
180     },
181     {
182         "id": "2346f507.b81d6a",
183         "type": "switchNode",
184         "name": "switch capability-name",
185         "xml": "<switch test='`$ss.capability-name == $tmp.param.capability-name`'>\n",
186         "comments": "",
187         "outputs": 1,
188         "x": 939.2502822875977,
189         "y": 1797.6548767089844,
190         "z": "46985608.45d728",
191         "wires": [
192             [
193                 "4293f2a.d82680c"
194             ]
195         ]
196     },
197     {
198         "id": "4293f2a.d82680c",
199         "type": "outcomeTrue",
200         "name": "true",
201         "xml": "<outcome value='true'>\n",
202         "comments": "",
203         "outputs": 1,
204         "x": 1202.7502822875977,
205         "y": 1797.9048767089844,
206         "z": "46985608.45d728",
207         "wires": [
208             [
209                 "e24f05f3.ca0498"
210             ]
211         ]
212     },
213     {
214         "id": "5f59d54a.3b7624",
215         "type": "failure",
216         "name": "failure",
217         "xml": "<outcome value='failure'>\n",
218         "comments": "",
219         "outputs": 1,
220         "x": 1504.5356941223145,
221         "y": 1433.5120306015015,
222         "z": "46985608.45d728",
223         "wires": [
224             [
225                 "552faac1.e8b50c"
226             ]
227         ]
228     },
229     {
230         "id": "c4f31511.d9287",
231         "type": "set",
232         "name": "set ss.capability-name",
233         "xml": "<set>\n<parameter name='ss.capability-name' value='`$ss.capability.execution-order[$cidx]`' />\n<!--\nss.capability.execution-order[]\n-->",
234         "comments": "",
235         "x": 595.2857437133789,
236         "y": 1492.0715522766113,
237         "z": "46985608.45d728",
238         "wires": []
239     },
240     {
241         "id": "8260f760.79336",
242         "type": "set",
243         "name": "tmp.param.capability-name",
244         "xml": "<set>\n<parameter name='tmp.param.capability-name' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.capability-name`' />\n",
245         "comments": "",
246         "x": 950.607307434082,
247         "y": 1752.2620868682861,
248         "z": "46985608.45d728",
249         "wires": []
250     },
251     {
252         "id": "4357e5bb.501284",
253         "type": "set",
254         "name": "set ss.capability.action = assign",
255         "xml": "<set>\n<parameter name='ss.capability-action' value='assign' />\n",
256         "comments": "",
257         "x": 623.999885559082,
258         "y": 1538.988136291504,
259         "z": "46985608.45d728",
260         "wires": []
261     },
262     {
263         "id": "ee8b6246.5c29f",
264         "type": "set",
265         "name": "set capability-dg with 'self-serve-' + capability-name",
266         "xml": "<set>\n<parameter name='ss.capability-dg' value=\"`'self-serve-' + $ss.capability.execution-order[$cidx]`\" />\n",
267         "comments": "",
268         "x": 686.5119781494141,
269         "y": 1592.4643802642822,
270         "z": "46985608.45d728",
271         "wires": []
272     },
273     {
274         "id": "aee6c595.a3c2e8",
275         "type": "set",
276         "name": "set sdnc-generated-cloud-resources = true",
277         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.sdnc-generated-cloud-resources' value='true' />\n",
278         "comments": "",
279         "x": 412.4881362915039,
280         "y": 1276.7501487731934,
281         "z": "46985608.45d728",
282         "wires": []
283     },
284     {
285         "id": "9b585f6f.16442",
286         "type": "block",
287         "name": "block",
288         "xml": "<block>",
289         "atomic": "false",
290         "comments": "",
291         "outputs": 1,
292         "x": 668.928539276123,
293         "y": 557.4643030166626,
294         "z": "46985608.45d728",
295         "wires": [
296             [
297                 "a94d8d98.d42658",
298                 "3cb78e8d.74e962",
299                 "c8a900f1.9777a8",
300                 "78095309.0dc25c",
301                 "be27a7ea.5a181",
302                 "1b64f08.bab119",
303                 "2ec1f112.0da5c6",
304                 "6e55cc0d.b1517c",
305                 "4f11607d.71a34"
306             ]
307         ]
308     },
309     {
310         "id": "a94d8d98.d42658",
311         "type": "set",
312         "name": "set vnf-topology data",
313         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-id'\n value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.vnf-type'\n value='`$vnf-topology-operation-input.vnf-information.vnf-type`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-type'\n value='`$db.vf-model.nf-type`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-role'\n value='`$db.vf-model.nf-role`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-function'\n value='`$db.vf-model.nf-function`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-topology-identifier-structure.nf-code'\n value='`$db.vf-model.nf-code`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.tenant'\n value='`$vnf-topology-operation-input.vnf-request-input.tenant`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.aic-cloud-region'\n value='`$vnf-topology-operation-input.vnf-request-input.aic-cloud-region`' />\n \n",
314         "comments": "",
315         "x": 884.4284820556641,
316         "y": 558.523811340332,
317         "z": "46985608.45d728",
318         "wires": []
319     },
320     {
321         "id": "c4c6fe75.ec2388",
322         "type": "set",
323         "name": "set vnf-parameters-data",
324         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.'\n  value='vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.' />\n",
325         "comments": "",
326         "x": 1077.9645767211914,
327         "y": 1384.3808345794678,
328         "z": "46985608.45d728",
329         "wires": []
330     },
331     {
332         "id": "c8a900f1.9777a8",
333         "type": "set",
334         "name": "set vnf-level-oper-status to PendingCreate",
335         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",
336         "comments": "",
337         "x": 949.7184371948242,
338         "y": 1132.504020690918,
339         "z": "46985608.45d728",
340         "wires": []
341     },
342     {
343         "id": "3cb78e8d.74e962",
344         "type": "set",
345         "name": "copy input data",
346         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' \n\tvalue='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' \n\tvalue='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' \n\tvalue='$vnf-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' \n\tvalue='$vnf-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' \n\tvalue='$vnf-topology-operation-input.vnf-request-input.' />\n",
347         "comments": "",
348         "x": 867.0953521728516,
349         "y": 1082.3096599578857,
350         "z": "46985608.45d728",
351         "wires": []
352     },
353     {
354         "id": "fa0373bc.4d0538",
355         "type": "set",
356         "name": "set from DB",
357         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid'\n  value='`$db.vf-model.invariant-uuid`' />\n",
358         "comments": "",
359         "x": 1281.4286727905273,
360         "y": 670.8810405731201,
361         "z": "46985608.45d728",
362         "wires": []
363     },
364     {
365         "id": "78095309.0dc25c",
366         "type": "switchNode",
367         "name": "switch input model-invariant-uuid",
368         "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`'>\n",
369         "comments": "",
370         "outputs": 1,
371         "x": 922.2857475280762,
372         "y": 693.7054843902588,
373         "z": "46985608.45d728",
374         "wires": [
375             [
376                 "9bba5aea.a57f48",
377                 "4552d186.b6ea3"
378             ]
379         ]
380     },
381     {
382         "id": "9bba5aea.a57f48",
383         "type": "outcome",
384         "name": "NULL",
385         "xml": "<outcome value=''>",
386         "comments": "",
387         "outputs": 1,
388         "x": 1130.9524192810059,
389         "y": 670.8484477996826,
390         "z": "46985608.45d728",
391         "wires": [
392             [
393                 "fa0373bc.4d0538"
394             ]
395         ]
396     },
397     {
398         "id": "4552d186.b6ea3",
399         "type": "other",
400         "name": "other",
401         "xml": "<outcome value='Other'>\n",
402         "comments": "",
403         "outputs": 1,
404         "x": 1132.381015777588,
405         "y": 715.1340389251709,
406         "z": "46985608.45d728",
407         "wires": [
408             [
409                 "28257c6c.608bec"
410             ]
411         ]
412     },
413     {
414         "id": "28257c6c.608bec",
415         "type": "set",
416         "name": "set from input",
417         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-invariant-uuid'\n  value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n",
418         "comments": "",
419         "x": 1286.6667518615723,
420         "y": 714.5626111030579,
421         "z": "46985608.45d728",
422         "wires": []
423     },
424     {
425         "id": "ad8d3d3c.38aab8",
426         "type": "set",
427         "name": "set from DB",
428         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid'\n  value='`$db.vf-model.uuid`' />\n",
429         "comments": "",
430         "x": 1282.3809432983398,
431         "y": 759.419716835022,
432         "z": "46985608.45d728",
433         "wires": []
434     },
435     {
436         "id": "be27a7ea.5a181",
437         "type": "switchNode",
438         "name": "switch input model-uuid",
439         "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`'>\n",
440         "comments": "",
441         "outputs": 1,
442         "x": 891.9047660827637,
443         "y": 782.2442216873169,
444         "z": "46985608.45d728",
445         "wires": [
446             [
447                 "70c0f30c.080ebc",
448                 "e1067bc0.09616"
449             ]
450         ]
451     },
452     {
453         "id": "70c0f30c.080ebc",
454         "type": "outcome",
455         "name": "NULL",
456         "xml": "<outcome value=''>",
457         "comments": "",
458         "outputs": 1,
459         "x": 1131.9047393798828,
460         "y": 759.3871536254883,
461         "z": "46985608.45d728",
462         "wires": [
463             [
464                 "ad8d3d3c.38aab8"
465             ]
466         ]
467     },
468     {
469         "id": "e1067bc0.09616",
470         "type": "other",
471         "name": "other",
472         "xml": "<outcome value='Other'>\n",
473         "comments": "",
474         "outputs": 1,
475         "x": 1133.3333358764648,
476         "y": 803.6727447509766,
477         "z": "46985608.45d728",
478         "wires": [
479             [
480                 "ed31c003.6e5ff8"
481             ]
482         ]
483     },
484     {
485         "id": "ed31c003.6e5ff8",
486         "type": "set",
487         "name": "set from input",
488         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-uuid'\n  value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n",
489         "comments": "",
490         "x": 1287.6190719604492,
491         "y": 803.1013169288635,
492         "z": "46985608.45d728",
493         "wires": []
494     },
495     {
496         "id": "ea4c9359.636478",
497         "type": "set",
498         "name": "set from DB",
499         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-version'\n  value='`$db.vf-model.version`' />\n",
500         "comments": "",
501         "x": 1279.5238761901855,
502         "y": 848.2769241333008,
503         "z": "46985608.45d728",
504         "wires": []
505     },
506     {
507         "id": "1b64f08.bab119",
508         "type": "switchNode",
509         "name": "switch input model-version",
510         "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-version`'>\n",
511         "comments": "",
512         "outputs": 1,
513         "x": 903.0476379394531,
514         "y": 871.1013689041138,
515         "z": "46985608.45d728",
516         "wires": [
517             [
518                 "67f74f68.a2256",
519                 "12fefdff.fad13a"
520             ]
521         ]
522     },
523     {
524         "id": "67f74f68.a2256",
525         "type": "outcome",
526         "name": "NULL",
527         "xml": "<outcome value=''>",
528         "comments": "",
529         "outputs": 1,
530         "x": 1129.047622680664,
531         "y": 848.2443313598633,
532         "z": "46985608.45d728",
533         "wires": [
534             [
535                 "ea4c9359.636478"
536             ]
537         ]
538     },
539     {
540         "id": "12fefdff.fad13a",
541         "type": "other",
542         "name": "other",
543         "xml": "<outcome value='Other'>\n",
544         "comments": "",
545         "outputs": 1,
546         "x": 1130.476219177246,
547         "y": 892.5299224853516,
548         "z": "46985608.45d728",
549         "wires": [
550             [
551                 "f3b92182.211f8"
552             ]
553         ]
554     },
555     {
556         "id": "f3b92182.211f8",
557         "type": "set",
558         "name": "set from input",
559         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-version'\n  value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-version`' />\n",
560         "comments": "",
561         "x": 1284.7619552612305,
562         "y": 891.9584946632385,
563         "z": "46985608.45d728",
564         "wires": []
565     },
566     {
567         "id": "e1b96368.4917",
568         "type": "set",
569         "name": "set from DB",
570         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-name'\n  value='`$db.vf-model.name`' />\n",
571         "comments": "",
572         "x": 1279.5238761901855,
573         "y": 935.4197463989258,
574         "z": "46985608.45d728",
575         "wires": []
576     },
577     {
578         "id": "2ec1f112.0da5c6",
579         "type": "switchNode",
580         "name": "switch input model-name",
581         "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-name`'>\n",
582         "comments": "",
583         "outputs": 1,
584         "x": 898.0476379394531,
585         "y": 958.2441911697388,
586         "z": "46985608.45d728",
587         "wires": [
588             [
589                 "1660517c.cccf6f",
590                 "ed71187f.5311e"
591             ]
592         ]
593     },
594     {
595         "id": "1660517c.cccf6f",
596         "type": "outcome",
597         "name": "NULL",
598         "xml": "<outcome value=''>",
599         "comments": "",
600         "outputs": 1,
601         "x": 1129.047622680664,
602         "y": 935.3871536254883,
603         "z": "46985608.45d728",
604         "wires": [
605             [
606                 "e1b96368.4917"
607             ]
608         ]
609     },
610     {
611         "id": "ed71187f.5311e",
612         "type": "other",
613         "name": "other",
614         "xml": "<outcome value='Other'>\n",
615         "comments": "",
616         "outputs": 1,
617         "x": 1130.476219177246,
618         "y": 979.6727447509766,
619         "z": "46985608.45d728",
620         "wires": [
621             [
622                 "1b3b7bf2.898ee4"
623             ]
624         ]
625     },
626     {
627         "id": "1b3b7bf2.898ee4",
628         "type": "set",
629         "name": "set from input",
630         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-name'\n  value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-name`' />\n",
631         "comments": "",
632         "x": 1284.7619552612305,
633         "y": 979.1013169288635,
634         "z": "46985608.45d728",
635         "wires": []
636     },
637     {
638         "id": "6e55cc0d.b1517c",
639         "type": "set",
640         "name": "set vnf-id",
641         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id'\n   value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n",
642         "comments": "",
643         "x": 848.4047088623047,
644         "y": 610.0388488769531,
645         "z": "46985608.45d728",
646         "wires": []
647     },
648     {
649         "id": "4f11607d.71a34",
650         "type": "set",
651         "name": "set model-customization-uuid",
652         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid'\n  value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n",
653         "comments": "",
654         "x": 910.8332252502441,
655         "y": 1031.0863952636719,
656         "z": "46985608.45d728",
657         "wires": []
658     },
659     {
660         "id": "f9268c4a.ab9328",
661         "type": "switchNode",
662         "name": "switch service-data.vnfs.vnf_length",
663         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
664         "comments": "",
665         "outputs": 1,
666         "x": 395.08329010009766,
667         "y": 244.42850017547607,
668         "z": "46985608.45d728",
669         "wires": [
670             [
671                 "eb071fdf.798b28",
672                 "9f911665.8875c8",
673                 "80f3305a.6722d8"
674             ]
675         ]
676     },
677     {
678         "id": "eb071fdf.798b28",
679         "type": "other",
680         "name": "NULL",
681         "xml": "<outcome value=''>\n",
682         "comments": "",
683         "outputs": 1,
684         "x": 637.2976760864258,
685         "y": 182.98793125152588,
686         "z": "46985608.45d728",
687         "wires": [
688             [
689                 "98b86e0.9a1f69"
690             ]
691         ]
692     },
693     {
694         "id": "1b8d17c2.822de",
695         "type": "set",
696         "name": "set vnf-index=0",
697         "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",
698         "comments": "",
699         "x": 972.583381652832,
700         "y": 182.48800563812256,
701         "z": "46985608.45d728",
702         "wires": []
703     },
704     {
705         "id": "9f911665.8875c8",
706         "type": "other",
707         "name": "other",
708         "xml": "<outcome value='Other'>\n",
709         "comments": "",
710         "outputs": 1,
711         "x": 638.476203918457,
712         "y": 304.607120513916,
713         "z": "46985608.45d728",
714         "wires": [
715             [
716                 "f865c6ab.95d9"
717             ]
718         ]
719     },
720     {
721         "id": "e24f05f3.ca0498",
722         "type": "switchNode",
723         "name": "switch resource-resolution-data.status",
724         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`'>\n",
725         "comments": "",
726         "outputs": 1,
727         "x": 474.01221084594727,
728         "y": 2054.4722986221313,
729         "z": "46985608.45d728",
730         "wires": [
731             [
732                 "782e269e.4b3fb",
733                 "8956ab0b.f8051"
734             ]
735         ]
736     },
737     {
738         "id": "782e269e.4b3fb",
739         "type": "other",
740         "name": "PENDING",
741         "xml": "<outcome value='PENDING'>\n",
742         "comments": "",
743         "outputs": 1,
744         "x": 743.3694267272949,
745         "y": 2054.472254753113,
746         "z": "46985608.45d728",
747         "wires": [
748             [
749                 "5f47a6e6.b99ea8"
750             ]
751         ]
752     },
753     {
754         "id": "8956ab0b.f8051",
755         "type": "other",
756         "name": "FAILED",
757         "xml": "<outcome value='FAILED'>\n",
758         "comments": "",
759         "outputs": 1,
760         "x": 736.9052429199219,
761         "y": 2105.4365854263306,
762         "z": "46985608.45d728",
763         "wires": [
764             [
765                 "5f47a6e6.b99ea8"
766             ]
767         ]
768     },
769     {
770         "id": "5f47a6e6.b99ea8",
771         "type": "call",
772         "name": "call ss.capability-dg",
773         "xml": "<call module='GENERIC-RESOURCE-API' rpc='`$ss.capability-dg`' mode='sync' >\n",
774         "comments": "",
775         "outputs": 1,
776         "x": 952.0239753723145,
777         "y": 2106.1984367370605,
778         "z": "46985608.45d728",
779         "wires": [
780             [
781                 "598559d5.cea1e8"
782             ]
783         ]
784     },
785     {
786         "id": "4e7061c4.a89b6",
787         "type": "returnFailure",
788         "name": "return failure",
789         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Encountered error from capability: '+ $ss.capability-dg + ', with error: '+ $error-message`\" />\n",
790         "comments": "",
791         "x": 1519.5714149475098,
792         "y": 2360.174892425537,
793         "z": "46985608.45d728",
794         "wires": []
795     },
796     {
797         "id": "598559d5.cea1e8",
798         "type": "failure",
799         "name": "failure",
800         "xml": "<outcome value='failure'>\n",
801         "comments": "",
802         "outputs": 1,
803         "x": 1136.9164848327637,
804         "y": 2106.198497772217,
805         "z": "46985608.45d728",
806         "wires": [
807             [
808                 "ec2a0d97.15565"
809             ]
810         ]
811     },
812     {
813         "id": "ec2a0d97.15565",
814         "type": "block",
815         "name": "block : atomic",
816         "xml": "<block atomic='true'>",
817         "atomic": "true",
818         "comments": "",
819         "outputs": 1,
820         "x": 1300.190601348877,
821         "y": 2105.508038520813,
822         "z": "46985608.45d728",
823         "wires": [
824             [
825                 "4e7061c4.a89b6",
826                 "3dc20fce.5456d8",
827                 "a95e3cc2.662a38",
828                 "3d72d3ce.0a1af4",
829                 "8021d858.4809f8"
830             ]
831         ]
832     },
833     {
834         "id": "a95e3cc2.662a38",
835         "type": "execute",
836         "name": "generate ss-vnf url replace service-instance-id",
837         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.ss-vnf-assignments`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ss-vnf-url\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id`\"/>\n",
838         "comments": "",
839         "outputs": 1,
840         "x": 1623.5236930847168,
841         "y": 2159.024598121643,
842         "z": "46985608.45d728",
843         "wires": [
844             []
845         ]
846     },
847     {
848         "id": "8021d858.4809f8",
849         "type": "execute",
850         "name": "execute RestApiCallNode - PUT vnf",
851         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ss.vnf.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ss-vnf-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ss-vnf\" />\n\n",
852         "comments": "",
853         "outputs": 1,
854         "x": 1592.9879875183105,
855         "y": 2261.8818197250366,
856         "z": "46985608.45d728",
857         "wires": [
858             [
859                 "730d5fdb.54ca48",
860                 "9d70e9bf.a1c8d8"
861             ]
862         ]
863     },
864     {
865         "id": "730d5fdb.54ca48",
866         "type": "not-found",
867         "name": "not-found",
868         "xml": "<outcome value='not-found'>\n",
869         "comments": "",
870         "outputs": 1,
871         "x": 1867.5816535949707,
872         "y": 2315.87997341156,
873         "z": "46985608.45d728",
874         "wires": [
875             [
876                 "9daf4747.49e728"
877             ]
878         ]
879     },
880     {
881         "id": "9d70e9bf.a1c8d8",
882         "type": "failure",
883         "name": "failure",
884         "xml": "<outcome value='failure'>\n",
885         "comments": "",
886         "outputs": 1,
887         "x": 1860.0102882385254,
888         "y": 2262.3799934387207,
889         "z": "46985608.45d728",
890         "wires": [
891             [
892                 "9daf4747.49e728"
893             ]
894         ]
895     },
896     {
897         "id": "3dc20fce.5456d8",
898         "type": "set",
899         "name": "set vf data for restapi-call-node",
900         "xml": "<set>\n<parameter name='vf.vnf-id'\n    value='`$service-data.vnfs.vnf[$vnf-index].vnf-id`' />\n<parameter name='vf.vnf-data.sdnc-request-header.'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.`' />\n<parameter name='vf.vnf-data.request-information.'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.`' />\n<parameter name='vf.vnf-data.service-information.'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.`' />\n<parameter name='vf.vnf-data.vnf-information.'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.`' />\n<parameter name='vf.vnf-data.vnf-topology.'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.`' />\n<parameter name='vf.vnf-data.vnf-level-oper-status.'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.`' />\n<parameter name='vf.vnf-data.vnf-request-input.vnf-input-parameters.'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.vnf-input-parameters.`' />\n<parameter name='vf.vnf-data.vnf-request-input.request-version'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.request-version`' />\n<parameter name='vf.vnf-data.vnf-request-input.vnf-name'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.vnf-name`' />\n<parameter name='vf.vnf-data.vnf-request-input.tenant'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.tenant`' />\n<parameter name='vf.vnf-data.vnf-request-input.aic-cloud-region'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.aic-cloud-region`' />\n<parameter name='vf.vnf-data.vnf-request-input.aic-clli'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.aic-clli`' />",
901         "comments": "",
902         "x": 1575.9759941101074,
903         "y": 2105.119110107422,
904         "z": "46985608.45d728",
905         "wires": []
906     },
907     {
908         "id": "3d72d3ce.0a1af4",
909         "type": "execute",
910         "name": "generate ss-vnf url - replace vnf-id",
911         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.ss-vnf-url`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ss-vnf-url\"/>\n    <parameter name=\"target\" value=\"{vnf-id}\"/>\n    <parameter name=\"replacement\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-id`\"/>\n",
912         "comments": "",
913         "outputs": 1,
914         "x": 1587.809398651123,
915         "y": 2209.833366394043,
916         "z": "46985608.45d728",
917         "wires": [
918             []
919         ]
920     },
921     {
922         "id": "9470b636.3af698",
923         "type": "execute",
924         "name": "printContext",
925         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-vnf-assign.log' />\n",
926         "comments": "",
927         "outputs": 1,
928         "x": 339.35311126708984,
929         "y": 2554.349449157715,
930         "z": "46985608.45d728",
931         "wires": [
932             []
933         ]
934     },
935     {
936         "id": "3e45c56a.355fba",
937         "type": "set",
938         "name": "set ss.capability-type = vnf",
939         "xml": "<set>\n<parameter name='ss.capability-type' value='vnf' />\n",
940         "comments": "",
941         "x": 363.39292907714844,
942         "y": 1327.5357942581177,
943         "z": "46985608.45d728",
944         "wires": []
945     },
946     {
947         "id": "8db9b3e7.403cc8",
948         "type": "block",
949         "name": "block : atomic",
950         "xml": "<block atomic='true'>",
951         "atomic": "true",
952         "comments": "",
953         "outputs": 1,
954         "x": 836.5356597900391,
955         "y": 1384.892903327942,
956         "z": "46985608.45d728",
957         "wires": [
958             [
959                 "c4c6fe75.ec2388",
960                 "4d6ae8ce.a99a2"
961             ]
962         ]
963     },
964     {
965         "id": "8252aebc.5df44",
966         "type": "for",
967         "name": "for each existing VNF",
968         "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
969         "comments": "",
970         "outputs": 1,
971         "x": 985.5357284545898,
972         "y": 304.78579807281494,
973         "z": "46985608.45d728",
974         "wires": [
975             [
976                 "5cfbf2.554b941"
977             ]
978         ]
979     },
980     {
981         "id": "5cfbf2.554b941",
982         "type": "switchNode",
983         "name": "switch vnf-id: input vs service-data",
984         "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",
985         "comments": "",
986         "outputs": 1,
987         "x": 1262.821434020996,
988         "y": 304.85728549957275,
989         "z": "46985608.45d728",
990         "wires": [
991             [
992                 "2128570f.c158f"
993             ]
994         ]
995     },
996     {
997         "id": "2128570f.c158f",
998         "type": "outcomeTrue",
999         "name": "true",
1000         "xml": "<outcome value='true'>\n",
1001         "comments": "",
1002         "outputs": 1,
1003         "x": 1485.6072006225586,
1004         "y": 304.4287576675415,
1005         "z": "46985608.45d728",
1006         "wires": [
1007             [
1008                 "eb37f3e2.ce392"
1009             ]
1010         ]
1011     },
1012     {
1013         "id": "eb37f3e2.ce392",
1014         "type": "block",
1015         "name": "block",
1016         "xml": "<block>\n",
1017         "atomic": "false",
1018         "comments": "",
1019         "outputs": 1,
1020         "x": 1618.0714530944824,
1021         "y": 304.46431827545166,
1022         "z": "46985608.45d728",
1023         "wires": [
1024             [
1025                 "52f1ea82.cb4e34",
1026                 "432297ea.ffb6e",
1027                 "349806c9.e96892"
1028             ]
1029         ]
1030     },
1031     {
1032         "id": "52f1ea82.cb4e34",
1033         "type": "break",
1034         "name": "break",
1035         "xml": "<break>\n",
1036         "comments": "",
1037         "x": 1785.964241027832,
1038         "y": 390.4642963409424,
1039         "z": "46985608.45d728",
1040         "wires": []
1041     },
1042     {
1043         "id": "550b07af.2d8658",
1044         "type": "set",
1045         "name": "set new vnf_length = 1",
1046         "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='1' />\n",
1047         "comments": "",
1048         "x": 996.142951965332,
1049         "y": 227.82148838043213,
1050         "z": "46985608.45d728",
1051         "wires": []
1052     },
1053     {
1054         "id": "432297ea.ffb6e",
1055         "type": "set",
1056         "name": "set vnf-index = idx",
1057         "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
1058         "comments": "",
1059         "x": 1816.5357971191406,
1060         "y": 347.2499752044678,
1061         "z": "46985608.45d728",
1062         "wires": []
1063     },
1064     {
1065         "id": "a48cbf50.8520d",
1066         "type": "set",
1067         "name": "set is-new-vnf = true",
1068         "xml": "<set>\n<parameter name='is-new-vnf' value='true' />\n",
1069         "comments": "",
1070         "x": 349.3929214477539,
1071         "y": 164.32144355773926,
1072         "z": "46985608.45d728",
1073         "wires": []
1074     },
1075     {
1076         "id": "349806c9.e96892",
1077         "type": "set",
1078         "name": "set is-new-vnf = false",
1079         "xml": "<set>\n<parameter name='is-new-vnf' value='false' />\n",
1080         "comments": "",
1081         "x": 1824.5714836120605,
1082         "y": 303.9643201828003,
1083         "z": "46985608.45d728",
1084         "wires": []
1085     },
1086     {
1087         "id": "f865c6ab.95d9",
1088         "type": "block",
1089         "name": "block",
1090         "xml": "<block>\n",
1091         "atomic": "false",
1092         "comments": "",
1093         "outputs": 1,
1094         "x": 775.7500228881836,
1095         "y": 304.2500162124634,
1096         "z": "46985608.45d728",
1097         "wires": [
1098             [
1099                 "8252aebc.5df44",
1100                 "5f2b6eec.7ce8f8"
1101             ]
1102         ]
1103     },
1104     {
1105         "id": "5f2b6eec.7ce8f8",
1106         "type": "switchNode",
1107         "name": "switch is-new-vnf",
1108         "xml": "<switch test='`$is-new-vnf`'>\n",
1109         "comments": "",
1110         "outputs": 1,
1111         "x": 973.2500152587891,
1112         "y": 390.8214178085327,
1113         "z": "46985608.45d728",
1114         "wires": [
1115             [
1116                 "13b8df2d.2675e1"
1117             ]
1118         ]
1119     },
1120     {
1121         "id": "13b8df2d.2675e1",
1122         "type": "outcomeTrue",
1123         "name": "true",
1124         "xml": "<outcome value='true'>\n",
1125         "comments": "",
1126         "outputs": 1,
1127         "x": 1153.1071701049805,
1128         "y": 390.39286518096924,
1129         "z": "46985608.45d728",
1130         "wires": [
1131             [
1132                 "e518d754.42ca68"
1133             ]
1134         ]
1135     },
1136     {
1137         "id": "98b86e0.9a1f69",
1138         "type": "block",
1139         "name": "block",
1140         "xml": "<block>\n",
1141         "atomic": "false",
1142         "comments": "",
1143         "outputs": 1,
1144         "x": 791.2499923706055,
1145         "y": 182.99999713897705,
1146         "z": "46985608.45d728",
1147         "wires": [
1148             [
1149                 "1b8d17c2.822de",
1150                 "550b07af.2d8658"
1151             ]
1152         ]
1153     },
1154     {
1155         "id": "80f3305a.6722d8",
1156         "type": "other",
1157         "name": "0",
1158         "xml": "<outcome value='0'>\n",
1159         "comments": "",
1160         "outputs": 1,
1161         "x": 635.7499923706055,
1162         "y": 242.74999904632568,
1163         "z": "46985608.45d728",
1164         "wires": [
1165             [
1166                 "98b86e0.9a1f69"
1167             ]
1168         ]
1169     },
1170     {
1171         "id": "818a22c.a82fbe",
1172         "type": "switchNode",
1173         "name": "switch is-new-vnf",
1174         "xml": "<switch test='`$is-new-vnf`'>\n",
1175         "comments": "",
1176         "outputs": 1,
1177         "x": 337.25000381469727,
1178         "y": 558.2500057220459,
1179         "z": "46985608.45d728",
1180         "wires": [
1181             [
1182                 "57fdfbd7.0bb994"
1183             ]
1184         ]
1185     },
1186     {
1187         "id": "57fdfbd7.0bb994",
1188         "type": "outcomeTrue",
1189         "name": "true",
1190         "xml": "<outcome value='true'>\n",
1191         "comments": "",
1192         "outputs": 1,
1193         "x": 517.1071586608887,
1194         "y": 557.8214530944824,
1195         "z": "46985608.45d728",
1196         "wires": [
1197             [
1198                 "9b585f6f.16442"
1199             ]
1200         ]
1201     },
1202     {
1203         "id": "699a17c5.2f4418",
1204         "type": "set",
1205         "name": "set new vnf_length++",
1206         "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$service-data.vnfs.vnf_length + 1`' />\n",
1207         "comments": "",
1208         "x": 1501,
1209         "y": 437,
1210         "z": "46985608.45d728",
1211         "wires": []
1212     },
1213     {
1214         "id": "e518d754.42ca68",
1215         "type": "block",
1216         "name": "block",
1217         "xml": "<block>\n",
1218         "atomic": "false",
1219         "comments": "",
1220         "outputs": 1,
1221         "x": 1298.9999771118164,
1222         "y": 389.99996185302734,
1223         "z": "46985608.45d728",
1224         "wires": [
1225             [
1226                 "699a17c5.2f4418",
1227                 "4e889749.bdf14"
1228             ]
1229         ]
1230     },
1231     {
1232         "id": "4e889749.bdf14",
1233         "type": "set",
1234         "name": "set vnf-index = vnf_length",
1235         "xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",
1236         "comments": "",
1237         "x": 1510.4999809265137,
1238         "y": 389.49996185302734,
1239         "z": "46985608.45d728",
1240         "wires": []
1241     },
1242     {
1243         "id": "9daf4747.49e728",
1244         "type": "set",
1245         "name": "set error-message",
1246         "xml": "<set>\n<parameter name=\"error-message\" value=\"Failed to persist self-serve vnf assignments during assign in MD-SAL\" />",
1247         "comments": "",
1248         "x": 2079.928611755371,
1249         "y": 2261.25,
1250         "z": "46985608.45d728",
1251         "wires": []
1252     }
1253 ]