179abd0c964a7e1109c8665ea08c274066ad6f9c
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-vnf-assign.json
1 [
2   {
3     "id": "d69b4aac.647588",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 121.66666412353516,
8     "y": 59.999996185302734,
9     "z": "2539c931.d4e596",
10     "wires": [
11       [
12         "2849e3b8.45bb9c"
13       ]
14     ]
15   },
16   {
17     "id": "853836ae.79c2a8",
18     "type": "block",
19     "name": "block : atomic",
20     "xml": "<block atomic='true'>",
21     "atomic": "true",
22     "comments": "",
23     "outputs": 1,
24     "x": 152.14286041259766,
25     "y": 182.27778244018555,
26     "z": "2539c931.d4e596",
27     "wires": [
28       [
29         "57aa1f79.ff47b",
30         "fdd51c96.2d89",
31         "5ac18b5f.1d7c44",
32         "29496a14.3d5ef6",
33         "cf3af1fb.cae0d",
34         "2989260.b2650da",
35         "442acc2c.485fa4",
36         "595e6289.903d8c",
37         "2e34ccd3.bb5994"
38       ]
39     ]
40   },
41   {
42     "id": "8eef5a36.786b28",
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": 238.42857360839844,
49     "y": 114.7063512802124,
50     "z": "2539c931.d4e596",
51     "wires": [
52       [
53         "853836ae.79c2a8"
54       ]
55     ]
56   },
57   {
58     "id": "2849e3b8.45bb9c",
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": 396.9048614501953,
67     "y": 60.19048881530762,
68     "z": "2539c931.d4e596",
69     "wires": [
70       [
71         "8eef5a36.786b28"
72       ]
73     ]
74   },
75   {
76     "id": "fdd51c96.2d89",
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": 440.34532165527344,
83     "y": 1402.512001991272,
84     "z": "2539c931.d4e596",
85     "wires": [
86       [
87         "60e3d6fb.cf4158"
88       ]
89     ]
90   },
91   {
92     "id": "60e3d6fb.cf4158",
93     "type": "other",
94     "name": "NULL",
95     "xml": "<outcome value=''>\n",
96     "comments": "",
97     "outputs": 1,
98     "x": 702.3453521728516,
99     "y": 1402.512001991272,
100     "z": "2539c931.d4e596",
101     "wires": [
102       [
103         "d6105627.c8e418"
104       ]
105     ]
106   },
107   {
108     "id": "b53240df.c07bf",
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": 1217.6310119628906,
115     "y": 1452.0834331512451,
116     "z": "2539c931.d4e596",
117     "wires": [
118       [
119         "2e191127.f108ee"
120       ]
121     ]
122   },
123   {
124     "id": "5891962b.ba3ee8",
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": 1689.3452529907227,
130     "y": 1451.654836654663,
131     "z": "2539c931.d4e596",
132     "wires": []
133   },
134   {
135     "id": "6efb148b.cf375c",
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": 665.5241241455078,
142     "y": 1770.012080192566,
143     "z": "2539c931.d4e596",
144     "wires": [
145       [
146         "65887e2e.f61d8",
147         "52e1b29f.bb361c"
148       ]
149     ]
150   },
151   {
152     "id": "57aa1f79.ff47b",
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-assignment' />\n<parameter name='ss.capability.execution-order[6]' value='eipam-create-pool' />\n<parameter name='ss.capability.execution-order[7]' value='netbox-ip-assign' />\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": 414.1905059814453,
158     "y": 1241.0001363754272,
159     "z": "2539c931.d4e596",
160     "wires": []
161   },
162   {
163     "id": "5ac18b5f.1d7c44",
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": 369.59535217285156,
170     "y": 1510.1190967559814,
171     "z": "2539c931.d4e596",
172     "wires": [
173       [
174         "38b7eff2.abaa",
175         "d79a38d7.5d4d98",
176         "6efb148b.cf375c",
177         "13e94191.0506de"
178       ]
179     ]
180   },
181   {
182     "id": "52e1b29f.bb361c",
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": 969.9169464111328,
189     "y": 1815.654872894287,
190     "z": "2539c931.d4e596",
191     "wires": [
192       [
193         "e9beff60.c1b47"
194       ]
195     ]
196   },
197   {
198     "id": "e9beff60.c1b47",
199     "type": "outcomeTrue",
200     "name": "true",
201     "xml": "<outcome value='true'>\n",
202     "comments": "",
203     "outputs": 1,
204     "x": 1233.4169464111328,
205     "y": 1815.904872894287,
206     "z": "2539c931.d4e596",
207     "wires": [
208       [
209         "5bdd6d8.cb05594"
210       ]
211     ]
212   },
213   {
214     "id": "2e191127.f108ee",
215     "type": "failure",
216     "name": "failure",
217     "xml": "<outcome value='failure'>\n",
218     "comments": "",
219     "outputs": 1,
220     "x": 1535.2023582458496,
221     "y": 1451.5120267868042,
222     "z": "2539c931.d4e596",
223     "wires": [
224       [
225         "5891962b.ba3ee8"
226       ]
227     ]
228   },
229   {
230     "id": "38b7eff2.abaa",
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": 625.9524078369141,
236     "y": 1510.071548461914,
237     "z": "2539c931.d4e596",
238     "wires": []
239   },
240   {
241     "id": "65887e2e.f61d8",
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": 981.2739715576172,
247     "y": 1770.2620830535889,
248     "z": "2539c931.d4e596",
249     "wires": []
250   },
251   {
252     "id": "d79a38d7.5d4d98",
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": 654.6665496826172,
258     "y": 1556.9881324768066,
259     "z": "2539c931.d4e596",
260     "wires": []
261   },
262   {
263     "id": "13e94191.0506de",
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": 717.1786422729492,
269     "y": 1610.464376449585,
270     "z": "2539c931.d4e596",
271     "wires": []
272   },
273   {
274     "id": "29496a14.3d5ef6",
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": 443.15480041503906,
280     "y": 1294.750144958496,
281     "z": "2539c931.d4e596",
282     "wires": []
283   },
284   {
285     "id": "8cef310a.fddca",
286     "type": "block",
287     "name": "block",
288     "xml": "<block>",
289     "atomic": "false",
290     "comments": "",
291     "outputs": 1,
292     "x": 699.5952033996582,
293     "y": 575.4642992019653,
294     "z": "2539c931.d4e596",
295     "wires": [
296       [
297         "cb0b24ee.fbda78",
298         "4678e991.fe0228",
299         "891158b7.7641c8",
300         "19bb5ed9.08b021",
301         "6dc3189.4dc75e8",
302         "7f0c1909.1cc738",
303         "29aed783.5eada8",
304         "b2f7bf66.a949e",
305         "2cb1cef8.ac7872"
306       ]
307     ]
308   },
309   {
310     "id": "cb0b24ee.fbda78",
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": 915.0951461791992,
316     "y": 576.5238075256348,
317     "z": "2539c931.d4e596",
318     "wires": []
319   },
320   {
321     "id": "8d586e30.441d2",
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": 1108.6312408447266,
327     "y": 1402.3808307647705,
328     "z": "2539c931.d4e596",
329     "wires": []
330   },
331   {
332     "id": "891158b7.7641c8",
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": 980.3851013183594,
338     "y": 1150.5040168762207,
339     "z": "2539c931.d4e596",
340     "wires": []
341   },
342   {
343     "id": "4678e991.fe0228",
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": 897.7620162963867,
349     "y": 1100.3096561431885,
350     "z": "2539c931.d4e596",
351     "wires": []
352   },
353   {
354     "id": "f2f46e9c.cd6da",
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": 1312.0953369140625,
360     "y": 688.8810367584229,
361     "z": "2539c931.d4e596",
362     "wires": []
363   },
364   {
365     "id": "19bb5ed9.08b021",
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": 952.9524116516113,
372     "y": 711.7054805755615,
373     "z": "2539c931.d4e596",
374     "wires": [
375       [
376         "59da9427.77060c",
377         "e199643e.d97208"
378       ]
379     ]
380   },
381   {
382     "id": "59da9427.77060c",
383     "type": "outcome",
384     "name": "NULL",
385     "xml": "<outcome value=''>",
386     "comments": "",
387     "outputs": 1,
388     "x": 1161.619083404541,
389     "y": 688.8484439849854,
390     "z": "2539c931.d4e596",
391     "wires": [
392       [
393         "f2f46e9c.cd6da"
394       ]
395     ]
396   },
397   {
398     "id": "e199643e.d97208",
399     "type": "other",
400     "name": "other",
401     "xml": "<outcome value='Other'>\n",
402     "comments": "",
403     "outputs": 1,
404     "x": 1163.047679901123,
405     "y": 733.1340351104736,
406     "z": "2539c931.d4e596",
407     "wires": [
408       [
409         "e42ceacb.598138"
410       ]
411     ]
412   },
413   {
414     "id": "e42ceacb.598138",
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": 1317.3334159851074,
420     "y": 732.5626072883606,
421     "z": "2539c931.d4e596",
422     "wires": []
423   },
424   {
425     "id": "29f5b35d.29bc7c",
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": 1313.047607421875,
431     "y": 777.4197130203247,
432     "z": "2539c931.d4e596",
433     "wires": []
434   },
435   {
436     "id": "6dc3189.4dc75e8",
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": 922.5714302062988,
443     "y": 800.2442178726196,
444     "z": "2539c931.d4e596",
445     "wires": [
446       [
447         "8c03daa9.ef0868",
448         "8ef01a18.f777c8"
449       ]
450     ]
451   },
452   {
453     "id": "8c03daa9.ef0868",
454     "type": "outcome",
455     "name": "NULL",
456     "xml": "<outcome value=''>",
457     "comments": "",
458     "outputs": 1,
459     "x": 1162.571403503418,
460     "y": 777.387149810791,
461     "z": "2539c931.d4e596",
462     "wires": [
463       [
464         "29f5b35d.29bc7c"
465       ]
466     ]
467   },
468   {
469     "id": "8ef01a18.f777c8",
470     "type": "other",
471     "name": "other",
472     "xml": "<outcome value='Other'>\n",
473     "comments": "",
474     "outputs": 1,
475     "x": 1164,
476     "y": 821.6727409362793,
477     "z": "2539c931.d4e596",
478     "wires": [
479       [
480         "8f583b38.b3ca88"
481       ]
482     ]
483   },
484   {
485     "id": "8f583b38.b3ca88",
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": 1318.2857360839844,
491     "y": 821.1013131141663,
492     "z": "2539c931.d4e596",
493     "wires": []
494   },
495   {
496     "id": "8ecfcd2a.b444f",
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": 1310.1905403137207,
502     "y": 866.2769203186035,
503     "z": "2539c931.d4e596",
504     "wires": []
505   },
506   {
507     "id": "7f0c1909.1cc738",
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": 933.7143020629883,
514     "y": 889.1013650894165,
515     "z": "2539c931.d4e596",
516     "wires": [
517       [
518         "70b1cafe.70c534",
519         "e0d33652.2c6678"
520       ]
521     ]
522   },
523   {
524     "id": "70b1cafe.70c534",
525     "type": "outcome",
526     "name": "NULL",
527     "xml": "<outcome value=''>",
528     "comments": "",
529     "outputs": 1,
530     "x": 1159.7142868041992,
531     "y": 866.244327545166,
532     "z": "2539c931.d4e596",
533     "wires": [
534       [
535         "8ecfcd2a.b444f"
536       ]
537     ]
538   },
539   {
540     "id": "e0d33652.2c6678",
541     "type": "other",
542     "name": "other",
543     "xml": "<outcome value='Other'>\n",
544     "comments": "",
545     "outputs": 1,
546     "x": 1161.1428833007812,
547     "y": 910.5299186706543,
548     "z": "2539c931.d4e596",
549     "wires": [
550       [
551         "b303ac7b.e45d2"
552       ]
553     ]
554   },
555   {
556     "id": "b303ac7b.e45d2",
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": 1315.4286193847656,
562     "y": 909.9584908485413,
563     "z": "2539c931.d4e596",
564     "wires": []
565   },
566   {
567     "id": "a0c9d49b.ad59b8",
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": 1310.1905403137207,
573     "y": 953.4197425842285,
574     "z": "2539c931.d4e596",
575     "wires": []
576   },
577   {
578     "id": "29aed783.5eada8",
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": 928.7143020629883,
585     "y": 976.2441873550415,
586     "z": "2539c931.d4e596",
587     "wires": [
588       [
589         "e66234a9.911278",
590         "adbe9c1f.f9c78"
591       ]
592     ]
593   },
594   {
595     "id": "e66234a9.911278",
596     "type": "outcome",
597     "name": "NULL",
598     "xml": "<outcome value=''>",
599     "comments": "",
600     "outputs": 1,
601     "x": 1159.7142868041992,
602     "y": 953.387149810791,
603     "z": "2539c931.d4e596",
604     "wires": [
605       [
606         "a0c9d49b.ad59b8"
607       ]
608     ]
609   },
610   {
611     "id": "adbe9c1f.f9c78",
612     "type": "other",
613     "name": "other",
614     "xml": "<outcome value='Other'>\n",
615     "comments": "",
616     "outputs": 1,
617     "x": 1161.1428833007812,
618     "y": 997.6727409362793,
619     "z": "2539c931.d4e596",
620     "wires": [
621       [
622         "df7a880.bcfde78"
623       ]
624     ]
625   },
626   {
627     "id": "df7a880.bcfde78",
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": 1315.4286193847656,
633     "y": 997.1013131141663,
634     "z": "2539c931.d4e596",
635     "wires": []
636   },
637   {
638     "id": "b2f7bf66.a949e",
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": 879.0713729858398,
644     "y": 628.0388450622559,
645     "z": "2539c931.d4e596",
646     "wires": []
647   },
648   {
649     "id": "2cb1cef8.ac7872",
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": 941.4998893737793,
655     "y": 1049.0863914489746,
656     "z": "2539c931.d4e596",
657     "wires": []
658   },
659   {
660     "id": "595e6289.903d8c",
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": 425.7499542236328,
667     "y": 262.4284963607788,
668     "z": "2539c931.d4e596",
669     "wires": [
670       [
671         "18255159.e40b7f",
672         "772fa4ef.017aac",
673         "1c932b60.e73ca5"
674       ]
675     ]
676   },
677   {
678     "id": "18255159.e40b7f",
679     "type": "other",
680     "name": "NULL",
681     "xml": "<outcome value=''>\n",
682     "comments": "",
683     "outputs": 1,
684     "x": 667.9643402099609,
685     "y": 200.9879274368286,
686     "z": "2539c931.d4e596",
687     "wires": [
688       [
689         "92b4b346.1e12f"
690       ]
691     ]
692   },
693   {
694     "id": "548cf92c.4ba008",
695     "type": "set",
696     "name": "set vnf-index=0",
697     "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",
698     "comments": "",
699     "x": 1003.2500457763672,
700     "y": 200.4880018234253,
701     "z": "2539c931.d4e596",
702     "wires": []
703   },
704   {
705     "id": "772fa4ef.017aac",
706     "type": "other",
707     "name": "other",
708     "xml": "<outcome value='Other'>\n",
709     "comments": "",
710     "outputs": 1,
711     "x": 669.1428680419922,
712     "y": 322.60711669921875,
713     "z": "2539c931.d4e596",
714     "wires": [
715       [
716         "7437693b.b40168"
717       ]
718     ]
719   },
720   {
721     "id": "5bdd6d8.cb05594",
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": 504.6788749694824,
728     "y": 2072.472294807434,
729     "z": "2539c931.d4e596",
730     "wires": [
731       [
732         "87166833.ca4098",
733         "68489653.550b68"
734       ]
735     ]
736   },
737   {
738     "id": "87166833.ca4098",
739     "type": "other",
740     "name": "PENDING",
741     "xml": "<outcome value='PENDING'>\n",
742     "comments": "",
743     "outputs": 1,
744     "x": 774.0360908508301,
745     "y": 2072.4722509384155,
746     "z": "2539c931.d4e596",
747     "wires": [
748       [
749         "a28cc088.525e6"
750       ]
751     ]
752   },
753   {
754     "id": "68489653.550b68",
755     "type": "other",
756     "name": "FAILED",
757     "xml": "<outcome value='FAILED'>\n",
758     "comments": "",
759     "outputs": 1,
760     "x": 767.571907043457,
761     "y": 2123.4365816116333,
762     "z": "2539c931.d4e596",
763     "wires": [
764       [
765         "a28cc088.525e6"
766       ]
767     ]
768   },
769   {
770     "id": "a28cc088.525e6",
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": 982.6906394958496,
777     "y": 2124.1984329223633,
778     "z": "2539c931.d4e596",
779     "wires": [
780       [
781         "82a3fc61.8f2e5"
782       ]
783     ]
784   },
785   {
786     "id": "71a33c12.b5a3d4",
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": 1550.238079071045,
792     "y": 2378.17488861084,
793     "z": "2539c931.d4e596",
794     "wires": []
795   },
796   {
797     "id": "82a3fc61.8f2e5",
798     "type": "failure",
799     "name": "failure",
800     "xml": "<outcome value='failure'>\n",
801     "comments": "",
802     "outputs": 1,
803     "x": 1167.5831489562988,
804     "y": 2124.1984939575195,
805     "z": "2539c931.d4e596",
806     "wires": [
807       [
808         "1db677fa.c5f998"
809       ]
810     ]
811   },
812   {
813     "id": "1db677fa.c5f998",
814     "type": "block",
815     "name": "block : atomic",
816     "xml": "<block atomic='true'>",
817     "atomic": "true",
818     "comments": "",
819     "outputs": 1,
820     "x": 1330.857265472412,
821     "y": 2123.5080347061157,
822     "z": "2539c931.d4e596",
823     "wires": [
824       [
825         "71a33c12.b5a3d4",
826         "e1fec547.7327d8",
827         "c36d6a8.879dc98",
828         "32c8d030.41dd8",
829         "c0352a22.0df598"
830       ]
831     ]
832   },
833   {
834     "id": "c36d6a8.879dc98",
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": 1654.190357208252,
841     "y": 2177.024594306946,
842     "z": "2539c931.d4e596",
843     "wires": [
844       []
845     ]
846   },
847   {
848     "id": "c0352a22.0df598",
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": 1623.6546516418457,
855     "y": 2279.8818159103394,
856     "z": "2539c931.d4e596",
857     "wires": [
858       [
859         "9f3adb33.27f9d8",
860         "d80b620b.99918"
861       ]
862     ]
863   },
864   {
865     "id": "9f3adb33.27f9d8",
866     "type": "not-found",
867     "name": "not-found",
868     "xml": "<outcome value='not-found'>\n",
869     "comments": "",
870     "outputs": 1,
871     "x": 1898.2483177185059,
872     "y": 2333.879969596863,
873     "z": "2539c931.d4e596",
874     "wires": [
875       [
876         "b1619288.dfed9"
877       ]
878     ]
879   },
880   {
881     "id": "d80b620b.99918",
882     "type": "failure",
883     "name": "failure",
884     "xml": "<outcome value='failure'>\n",
885     "comments": "",
886     "outputs": 1,
887     "x": 1890.6769523620605,
888     "y": 2280.3799896240234,
889     "z": "2539c931.d4e596",
890     "wires": [
891       [
892         "b1619288.dfed9"
893       ]
894     ]
895   },
896   {
897     "id": "e1fec547.7327d8",
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": 1606.6426582336426,
903     "y": 2123.1191062927246,
904     "z": "2539c931.d4e596",
905     "wires": []
906   },
907   {
908     "id": "32c8d030.41dd8",
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": 1618.4760627746582,
915     "y": 2227.8333625793457,
916     "z": "2539c931.d4e596",
917     "wires": [
918       []
919     ]
920   },
921   {
922     "id": "2989260.b2650da",
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": 370.019775390625,
929     "y": 2572.3494453430176,
930     "z": "2539c931.d4e596",
931     "wires": [
932       []
933     ]
934   },
935   {
936     "id": "cf3af1fb.cae0d",
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": 394.0595932006836,
942     "y": 1345.5357904434204,
943     "z": "2539c931.d4e596",
944     "wires": []
945   },
946   {
947     "id": "d6105627.c8e418",
948     "type": "block",
949     "name": "block : atomic",
950     "xml": "<block atomic='true'>",
951     "atomic": "true",
952     "comments": "",
953     "outputs": 1,
954     "x": 867.2023239135742,
955     "y": 1402.8928995132446,
956     "z": "2539c931.d4e596",
957     "wires": [
958       [
959         "8d586e30.441d2",
960         "b53240df.c07bf"
961       ]
962     ]
963   },
964   {
965     "id": "727eaad0.1e6e64",
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": 1016.202392578125,
972     "y": 322.7857942581177,
973     "z": "2539c931.d4e596",
974     "wires": [
975       [
976         "f9213ecd.2658a"
977       ]
978     ]
979   },
980   {
981     "id": "f9213ecd.2658a",
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": 1293.4880981445312,
988     "y": 322.8572816848755,
989     "z": "2539c931.d4e596",
990     "wires": [
991       [
992         "6fc117d2.eaa0b8"
993       ]
994     ]
995   },
996   {
997     "id": "6fc117d2.eaa0b8",
998     "type": "outcomeTrue",
999     "name": "true",
1000     "xml": "<outcome value='true'>\n",
1001     "comments": "",
1002     "outputs": 1,
1003     "x": 1516.2738647460938,
1004     "y": 322.42875385284424,
1005     "z": "2539c931.d4e596",
1006     "wires": [
1007       [
1008         "f035c4cb.688108"
1009       ]
1010     ]
1011   },
1012   {
1013     "id": "f035c4cb.688108",
1014     "type": "block",
1015     "name": "block",
1016     "xml": "<block>\n",
1017     "atomic": "false",
1018     "comments": "",
1019     "outputs": 1,
1020     "x": 1648.7381172180176,
1021     "y": 322.4643144607544,
1022     "z": "2539c931.d4e596",
1023     "wires": [
1024       [
1025         "ddc53ec7.8a8ad",
1026         "a4bfc95d.69a428",
1027         "99a6f232.c02bc"
1028       ]
1029     ]
1030   },
1031   {
1032     "id": "ddc53ec7.8a8ad",
1033     "type": "break",
1034     "name": "break",
1035     "xml": "<break>\n",
1036     "comments": "",
1037     "x": 1816.6309051513672,
1038     "y": 408.4642925262451,
1039     "z": "2539c931.d4e596",
1040     "wires": []
1041   },
1042   {
1043     "id": "4d1804cd.00019c",
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": 1026.8096160888672,
1049     "y": 245.82148456573486,
1050     "z": "2539c931.d4e596",
1051     "wires": []
1052   },
1053   {
1054     "id": "a4bfc95d.69a428",
1055     "type": "set",
1056     "name": "set vnf-index = idx",
1057     "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
1058     "comments": "",
1059     "x": 1847.2024612426758,
1060     "y": 365.2499713897705,
1061     "z": "2539c931.d4e596",
1062     "wires": []
1063   },
1064   {
1065     "id": "442acc2c.485fa4",
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": 380.05958557128906,
1071     "y": 182.321439743042,
1072     "z": "2539c931.d4e596",
1073     "wires": []
1074   },
1075   {
1076     "id": "99a6f232.c02bc",
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": 1855.2381477355957,
1082     "y": 321.964316368103,
1083     "z": "2539c931.d4e596",
1084     "wires": []
1085   },
1086   {
1087     "id": "7437693b.b40168",
1088     "type": "block",
1089     "name": "block",
1090     "xml": "<block>\n",
1091     "atomic": "false",
1092     "comments": "",
1093     "outputs": 1,
1094     "x": 806.4166870117188,
1095     "y": 322.2500123977661,
1096     "z": "2539c931.d4e596",
1097     "wires": [
1098       [
1099         "727eaad0.1e6e64",
1100         "fb374db8.2b8eb"
1101       ]
1102     ]
1103   },
1104   {
1105     "id": "fb374db8.2b8eb",
1106     "type": "switchNode",
1107     "name": "switch is-new-vnf",
1108     "xml": "<switch test='`$is-new-vnf`'>\n",
1109     "comments": "",
1110     "outputs": 1,
1111     "x": 1003.9166793823242,
1112     "y": 408.82141399383545,
1113     "z": "2539c931.d4e596",
1114     "wires": [
1115       [
1116         "e7bfcf3d.b7f14"
1117       ]
1118     ]
1119   },
1120   {
1121     "id": "e7bfcf3d.b7f14",
1122     "type": "outcomeTrue",
1123     "name": "true",
1124     "xml": "<outcome value='true'>\n",
1125     "comments": "",
1126     "outputs": 1,
1127     "x": 1183.7738342285156,
1128     "y": 408.392861366272,
1129     "z": "2539c931.d4e596",
1130     "wires": [
1131       [
1132         "aecd914d.44c7b"
1133       ]
1134     ]
1135   },
1136   {
1137     "id": "92b4b346.1e12f",
1138     "type": "block",
1139     "name": "block",
1140     "xml": "<block>\n",
1141     "atomic": "false",
1142     "comments": "",
1143     "outputs": 1,
1144     "x": 821.9166564941406,
1145     "y": 200.99999332427979,
1146     "z": "2539c931.d4e596",
1147     "wires": [
1148       [
1149         "548cf92c.4ba008",
1150         "4d1804cd.00019c"
1151       ]
1152     ]
1153   },
1154   {
1155     "id": "1c932b60.e73ca5",
1156     "type": "other",
1157     "name": "0",
1158     "xml": "<outcome value='0'>\n",
1159     "comments": "",
1160     "outputs": 1,
1161     "x": 666.4166564941406,
1162     "y": 260.7499952316284,
1163     "z": "2539c931.d4e596",
1164     "wires": [
1165       [
1166         "92b4b346.1e12f"
1167       ]
1168     ]
1169   },
1170   {
1171     "id": "2e34ccd3.bb5994",
1172     "type": "switchNode",
1173     "name": "switch is-new-vnf",
1174     "xml": "<switch test='`$is-new-vnf`'>\n",
1175     "comments": "",
1176     "outputs": 1,
1177     "x": 367.9166679382324,
1178     "y": 576.2500019073486,
1179     "z": "2539c931.d4e596",
1180     "wires": [
1181       [
1182         "1c1e89f5.887da6"
1183       ]
1184     ]
1185   },
1186   {
1187     "id": "1c1e89f5.887da6",
1188     "type": "outcomeTrue",
1189     "name": "true",
1190     "xml": "<outcome value='true'>\n",
1191     "comments": "",
1192     "outputs": 1,
1193     "x": 547.7738227844238,
1194     "y": 575.8214492797852,
1195     "z": "2539c931.d4e596",
1196     "wires": [
1197       [
1198         "8cef310a.fddca"
1199       ]
1200     ]
1201   },
1202   {
1203     "id": "535721ac.1a29a",
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": 1531.6666641235352,
1209     "y": 454.99999618530273,
1210     "z": "2539c931.d4e596",
1211     "wires": []
1212   },
1213   {
1214     "id": "aecd914d.44c7b",
1215     "type": "block",
1216     "name": "block",
1217     "xml": "<block>\n",
1218     "atomic": "false",
1219     "comments": "",
1220     "outputs": 1,
1221     "x": 1329.6666412353516,
1222     "y": 407.9999580383301,
1223     "z": "2539c931.d4e596",
1224     "wires": [
1225       [
1226         "535721ac.1a29a",
1227         "189baa3c.c7d166"
1228       ]
1229     ]
1230   },
1231   {
1232     "id": "189baa3c.c7d166",
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": 1541.1666450500488,
1238     "y": 407.4999580383301,
1239     "z": "2539c931.d4e596",
1240     "wires": []
1241   },
1242   {
1243     "id": "b1619288.dfed9",
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": 2110.5952758789062,
1249     "y": 2279.2499961853027,
1250     "z": "2539c931.d4e596",
1251     "wires": []
1252   }
1253 ]