Merge "self-serve dg patch"
[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
156 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",
157     "comments": "",
158     "x": 414.1905059814453,
159     "y": 1241.0001363754272,
160     "z": "2539c931.d4e596",
161     "wires": []
162   },
163   {
164     "id": "5ac18b5f.1d7c44",
165     "type": "for",
166     "name": "foreach capability[]",
167     "xml": "<for index='cidx' start='0' end='`$ss.capability.execution-order_length`' >\n",
168     "comments": "",
169     "outputs": 1,
170     "x": 369.59535217285156,
171     "y": 1510.1190967559814,
172     "z": "2539c931.d4e596",
173     "wires": [
174       [
175         "38b7eff2.abaa",
176         "d79a38d7.5d4d98",
177         "6efb148b.cf375c",
178         "13e94191.0506de"
179       ]
180     ]
181   },
182   {
183     "id": "52e1b29f.bb361c",
184     "type": "switchNode",
185     "name": "switch capability-name",
186     "xml": "<switch test='`$ss.capability-name == $tmp.param.capability-name`'>\n",
187     "comments": "",
188     "outputs": 1,
189     "x": 969.9169464111328,
190     "y": 1815.654872894287,
191     "z": "2539c931.d4e596",
192     "wires": [
193       [
194         "e9beff60.c1b47"
195       ]
196     ]
197   },
198   {
199     "id": "e9beff60.c1b47",
200     "type": "outcomeTrue",
201     "name": "true",
202     "xml": "<outcome value='true'>\n",
203     "comments": "",
204     "outputs": 1,
205     "x": 1233.4169464111328,
206     "y": 1815.904872894287,
207     "z": "2539c931.d4e596",
208     "wires": [
209       [
210         "5bdd6d8.cb05594"
211       ]
212     ]
213   },
214   {
215     "id": "2e191127.f108ee",
216     "type": "failure",
217     "name": "failure",
218     "xml": "<outcome value='failure'>\n",
219     "comments": "",
220     "outputs": 1,
221     "x": 1535.2023582458496,
222     "y": 1451.5120267868042,
223     "z": "2539c931.d4e596",
224     "wires": [
225       [
226         "5891962b.ba3ee8"
227       ]
228     ]
229   },
230   {
231     "id": "38b7eff2.abaa",
232     "type": "set",
233     "name": "set ss.capability-name",
234     "xml": "<set>\n<parameter name='ss.capability-name' value='`$ss.capability.execution-order[$cidx]`' />\n<!--\nss.capability.execution-order[]\n-->",
235     "comments": "",
236     "x": 625.9524078369141,
237     "y": 1510.071548461914,
238     "z": "2539c931.d4e596",
239     "wires": []
240   },
241   {
242     "id": "65887e2e.f61d8",
243     "type": "set",
244     "name": "tmp.param.capability-name",
245     "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",
246     "comments": "",
247     "x": 981.2739715576172,
248     "y": 1770.2620830535889,
249     "z": "2539c931.d4e596",
250     "wires": []
251   },
252   {
253     "id": "d79a38d7.5d4d98",
254     "type": "set",
255     "name": "set ss.capability-action = assign",
256     "xml": "<set>\n<parameter name='ss.capability-action' value='assign' />\n",
257     "comments": "",
258     "x": 654.6665496826172,
259     "y": 1556.9881324768066,
260     "z": "2539c931.d4e596",
261     "wires": []
262   },
263   {
264     "id": "13e94191.0506de",
265     "type": "set",
266     "name": "set capability-dg with 'self-serve-' + capability-name",
267     "xml": "<set>\n<parameter name='ss.capability-dg' value=\"`'self-serve-' + $ss.capability.execution-order[$cidx]`\" />\n",
268     "comments": "",
269     "x": 717.1786422729492,
270     "y": 1610.464376449585,
271     "z": "2539c931.d4e596",
272     "wires": []
273   },
274   {
275     "id": "29496a14.3d5ef6",
276     "type": "set",
277     "name": "set sdnc-generated-cloud-resources = true",
278     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.sdnc-generated-cloud-resources' value='true' />\n",
279     "comments": "",
280     "x": 443.15480041503906,
281     "y": 1294.750144958496,
282     "z": "2539c931.d4e596",
283     "wires": []
284   },
285   {
286     "id": "8cef310a.fddca",
287     "type": "block",
288     "name": "block",
289     "xml": "<block>",
290     "atomic": "false",
291     "comments": "",
292     "outputs": 1,
293     "x": 699.5952033996582,
294     "y": 575.4642992019653,
295     "z": "2539c931.d4e596",
296     "wires": [
297       [
298         "cb0b24ee.fbda78",
299         "4678e991.fe0228",
300         "891158b7.7641c8",
301         "19bb5ed9.08b021",
302         "6dc3189.4dc75e8",
303         "7f0c1909.1cc738",
304         "29aed783.5eada8",
305         "b2f7bf66.a949e",
306         "2cb1cef8.ac7872"
307       ]
308     ]
309   },
310   {
311     "id": "cb0b24ee.fbda78",
312     "type": "set",
313     "name": "set vnf-topology data",
314     "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",
315     "comments": "",
316     "x": 915.0951461791992,
317     "y": 576.5238075256348,
318     "z": "2539c931.d4e596",
319     "wires": []
320   },
321   {
322     "id": "8d586e30.441d2",
323     "type": "set",
324     "name": "set vnf-parameters-data",
325     "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",
326     "comments": "",
327     "x": 1108.6312408447266,
328     "y": 1402.3808307647705,
329     "z": "2539c931.d4e596",
330     "wires": []
331   },
332   {
333     "id": "891158b7.7641c8",
334     "type": "set",
335     "name": "set vnf-level-oper-status to PendingCreate",
336     "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",
337     "comments": "",
338     "x": 980.3851013183594,
339     "y": 1150.5040168762207,
340     "z": "2539c931.d4e596",
341     "wires": []
342   },
343   {
344     "id": "4678e991.fe0228",
345     "type": "set",
346     "name": "copy input data",
347     "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",
348     "comments": "",
349     "x": 897.7620162963867,
350     "y": 1100.3096561431885,
351     "z": "2539c931.d4e596",
352     "wires": []
353   },
354   {
355     "id": "f2f46e9c.cd6da",
356     "type": "set",
357     "name": "set from DB",
358     "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",
359     "comments": "",
360     "x": 1312.0953369140625,
361     "y": 688.8810367584229,
362     "z": "2539c931.d4e596",
363     "wires": []
364   },
365   {
366     "id": "19bb5ed9.08b021",
367     "type": "switchNode",
368     "name": "switch input model-invariant-uuid",
369     "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`'>\n",
370     "comments": "",
371     "outputs": 1,
372     "x": 952.9524116516113,
373     "y": 711.7054805755615,
374     "z": "2539c931.d4e596",
375     "wires": [
376       [
377         "59da9427.77060c",
378         "e199643e.d97208"
379       ]
380     ]
381   },
382   {
383     "id": "59da9427.77060c",
384     "type": "outcome",
385     "name": "NULL",
386     "xml": "<outcome value=''>",
387     "comments": "",
388     "outputs": 1,
389     "x": 1161.619083404541,
390     "y": 688.8484439849854,
391     "z": "2539c931.d4e596",
392     "wires": [
393       [
394         "f2f46e9c.cd6da"
395       ]
396     ]
397   },
398   {
399     "id": "e199643e.d97208",
400     "type": "other",
401     "name": "other",
402     "xml": "<outcome value='Other'>\n",
403     "comments": "",
404     "outputs": 1,
405     "x": 1163.047679901123,
406     "y": 733.1340351104736,
407     "z": "2539c931.d4e596",
408     "wires": [
409       [
410         "e42ceacb.598138"
411       ]
412     ]
413   },
414   {
415     "id": "e42ceacb.598138",
416     "type": "set",
417     "name": "set from input",
418     "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",
419     "comments": "",
420     "x": 1317.3334159851074,
421     "y": 732.5626072883606,
422     "z": "2539c931.d4e596",
423     "wires": []
424   },
425   {
426     "id": "29f5b35d.29bc7c",
427     "type": "set",
428     "name": "set from DB",
429     "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",
430     "comments": "",
431     "x": 1313.047607421875,
432     "y": 777.4197130203247,
433     "z": "2539c931.d4e596",
434     "wires": []
435   },
436   {
437     "id": "6dc3189.4dc75e8",
438     "type": "switchNode",
439     "name": "switch input model-uuid",
440     "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`'>\n",
441     "comments": "",
442     "outputs": 1,
443     "x": 922.5714302062988,
444     "y": 800.2442178726196,
445     "z": "2539c931.d4e596",
446     "wires": [
447       [
448         "8c03daa9.ef0868",
449         "8ef01a18.f777c8"
450       ]
451     ]
452   },
453   {
454     "id": "8c03daa9.ef0868",
455     "type": "outcome",
456     "name": "NULL",
457     "xml": "<outcome value=''>",
458     "comments": "",
459     "outputs": 1,
460     "x": 1162.571403503418,
461     "y": 777.387149810791,
462     "z": "2539c931.d4e596",
463     "wires": [
464       [
465         "29f5b35d.29bc7c"
466       ]
467     ]
468   },
469   {
470     "id": "8ef01a18.f777c8",
471     "type": "other",
472     "name": "other",
473     "xml": "<outcome value='Other'>\n",
474     "comments": "",
475     "outputs": 1,
476     "x": 1164,
477     "y": 821.6727409362793,
478     "z": "2539c931.d4e596",
479     "wires": [
480       [
481         "8f583b38.b3ca88"
482       ]
483     ]
484   },
485   {
486     "id": "8f583b38.b3ca88",
487     "type": "set",
488     "name": "set from input",
489     "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",
490     "comments": "",
491     "x": 1318.2857360839844,
492     "y": 821.1013131141663,
493     "z": "2539c931.d4e596",
494     "wires": []
495   },
496   {
497     "id": "8ecfcd2a.b444f",
498     "type": "set",
499     "name": "set from DB",
500     "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",
501     "comments": "",
502     "x": 1310.1905403137207,
503     "y": 866.2769203186035,
504     "z": "2539c931.d4e596",
505     "wires": []
506   },
507   {
508     "id": "7f0c1909.1cc738",
509     "type": "switchNode",
510     "name": "switch input model-version",
511     "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-version`'>\n",
512     "comments": "",
513     "outputs": 1,
514     "x": 933.7143020629883,
515     "y": 889.1013650894165,
516     "z": "2539c931.d4e596",
517     "wires": [
518       [
519         "70b1cafe.70c534",
520         "e0d33652.2c6678"
521       ]
522     ]
523   },
524   {
525     "id": "70b1cafe.70c534",
526     "type": "outcome",
527     "name": "NULL",
528     "xml": "<outcome value=''>",
529     "comments": "",
530     "outputs": 1,
531     "x": 1159.7142868041992,
532     "y": 866.244327545166,
533     "z": "2539c931.d4e596",
534     "wires": [
535       [
536         "8ecfcd2a.b444f"
537       ]
538     ]
539   },
540   {
541     "id": "e0d33652.2c6678",
542     "type": "other",
543     "name": "other",
544     "xml": "<outcome value='Other'>\n",
545     "comments": "",
546     "outputs": 1,
547     "x": 1161.1428833007812,
548     "y": 910.5299186706543,
549     "z": "2539c931.d4e596",
550     "wires": [
551       [
552         "b303ac7b.e45d2"
553       ]
554     ]
555   },
556   {
557     "id": "b303ac7b.e45d2",
558     "type": "set",
559     "name": "set from input",
560     "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",
561     "comments": "",
562     "x": 1315.4286193847656,
563     "y": 909.9584908485413,
564     "z": "2539c931.d4e596",
565     "wires": []
566   },
567   {
568     "id": "a0c9d49b.ad59b8",
569     "type": "set",
570     "name": "set from DB",
571     "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",
572     "comments": "",
573     "x": 1310.1905403137207,
574     "y": 953.4197425842285,
575     "z": "2539c931.d4e596",
576     "wires": []
577   },
578   {
579     "id": "29aed783.5eada8",
580     "type": "switchNode",
581     "name": "switch input model-name",
582     "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-name`'>\n",
583     "comments": "",
584     "outputs": 1,
585     "x": 928.7143020629883,
586     "y": 976.2441873550415,
587     "z": "2539c931.d4e596",
588     "wires": [
589       [
590         "e66234a9.911278",
591         "adbe9c1f.f9c78"
592       ]
593     ]
594   },
595   {
596     "id": "e66234a9.911278",
597     "type": "outcome",
598     "name": "NULL",
599     "xml": "<outcome value=''>",
600     "comments": "",
601     "outputs": 1,
602     "x": 1159.7142868041992,
603     "y": 953.387149810791,
604     "z": "2539c931.d4e596",
605     "wires": [
606       [
607         "a0c9d49b.ad59b8"
608       ]
609     ]
610   },
611   {
612     "id": "adbe9c1f.f9c78",
613     "type": "other",
614     "name": "other",
615     "xml": "<outcome value='Other'>\n",
616     "comments": "",
617     "outputs": 1,
618     "x": 1161.1428833007812,
619     "y": 997.6727409362793,
620     "z": "2539c931.d4e596",
621     "wires": [
622       [
623         "df7a880.bcfde78"
624       ]
625     ]
626   },
627   {
628     "id": "df7a880.bcfde78",
629     "type": "set",
630     "name": "set from input",
631     "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",
632     "comments": "",
633     "x": 1315.4286193847656,
634     "y": 997.1013131141663,
635     "z": "2539c931.d4e596",
636     "wires": []
637   },
638   {
639     "id": "b2f7bf66.a949e",
640     "type": "set",
641     "name": "set vnf-id",
642     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id'\n   value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n",
643     "comments": "",
644     "x": 879.0713729858398,
645     "y": 628.0388450622559,
646     "z": "2539c931.d4e596",
647     "wires": []
648   },
649   {
650     "id": "2cb1cef8.ac7872",
651     "type": "set",
652     "name": "set model-customization-uuid",
653     "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",
654     "comments": "",
655     "x": 941.4998893737793,
656     "y": 1049.0863914489746,
657     "z": "2539c931.d4e596",
658     "wires": []
659   },
660   {
661     "id": "595e6289.903d8c",
662     "type": "switchNode",
663     "name": "switch service-data.vnfs.vnf_length",
664     "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
665     "comments": "",
666     "outputs": 1,
667     "x": 425.7499542236328,
668     "y": 262.4284963607788,
669     "z": "2539c931.d4e596",
670     "wires": [
671       [
672         "18255159.e40b7f",
673         "772fa4ef.017aac",
674         "1c932b60.e73ca5"
675       ]
676     ]
677   },
678   {
679     "id": "18255159.e40b7f",
680     "type": "other",
681     "name": "NULL",
682     "xml": "<outcome value=''>\n",
683     "comments": "",
684     "outputs": 1,
685     "x": 667.9643402099609,
686     "y": 200.9879274368286,
687     "z": "2539c931.d4e596",
688     "wires": [
689       [
690         "92b4b346.1e12f"
691       ]
692     ]
693   },
694   {
695     "id": "548cf92c.4ba008",
696     "type": "set",
697     "name": "set vnf-index=0",
698     "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",
699     "comments": "",
700     "x": 1003.2500457763672,
701     "y": 200.4880018234253,
702     "z": "2539c931.d4e596",
703     "wires": []
704   },
705   {
706     "id": "772fa4ef.017aac",
707     "type": "other",
708     "name": "other",
709     "xml": "<outcome value='Other'>\n",
710     "comments": "",
711     "outputs": 1,
712     "x": 669.1428680419922,
713     "y": 322.60711669921875,
714     "z": "2539c931.d4e596",
715     "wires": [
716       [
717         "7437693b.b40168"
718       ]
719     ]
720   },
721   {
722     "id": "5bdd6d8.cb05594",
723     "type": "switchNode",
724     "name": "switch resource-resolution-data.status",
725     "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$pidx].resource-resolution-data.status`'>\n",
726     "comments": "",
727     "outputs": 1,
728     "x": 504.6788749694824,
729     "y": 2072.472294807434,
730     "z": "2539c931.d4e596",
731     "wires": [
732       [
733         "87166833.ca4098",
734         "68489653.550b68"
735       ]
736     ]
737   },
738   {
739     "id": "87166833.ca4098",
740     "type": "other",
741     "name": "PENDING",
742     "xml": "<outcome value='PENDING'>\n",
743     "comments": "",
744     "outputs": 1,
745     "x": 774.0360908508301,
746     "y": 2072.4722509384155,
747     "z": "2539c931.d4e596",
748     "wires": [
749       [
750         "a28cc088.525e6"
751       ]
752     ]
753   },
754   {
755     "id": "68489653.550b68",
756     "type": "other",
757     "name": "FAILED",
758     "xml": "<outcome value='FAILED'>\n",
759     "comments": "",
760     "outputs": 1,
761     "x": 767.571907043457,
762     "y": 2123.4365816116333,
763     "z": "2539c931.d4e596",
764     "wires": [
765       [
766         "a28cc088.525e6"
767       ]
768     ]
769   },
770   {
771     "id": "a28cc088.525e6",
772     "type": "call",
773     "name": "call ss.capability-dg",
774     "xml": "<call module='GENERIC-RESOURCE-API' rpc='`$ss.capability-dg`' mode='sync' >\n",
775     "comments": "",
776     "outputs": 1,
777     "x": 982.6906394958496,
778     "y": 2124.1984329223633,
779     "z": "2539c931.d4e596",
780     "wires": [
781       [
782         "82a3fc61.8f2e5"
783       ]
784     ]
785   },
786   {
787     "id": "71a33c12.b5a3d4",
788     "type": "returnFailure",
789     "name": "return failure",
790     "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",
791     "comments": "",
792     "x": 1550.238079071045,
793     "y": 2378.17488861084,
794     "z": "2539c931.d4e596",
795     "wires": []
796   },
797   {
798     "id": "82a3fc61.8f2e5",
799     "type": "failure",
800     "name": "failure",
801     "xml": "<outcome value='failure'>\n",
802     "comments": "",
803     "outputs": 1,
804     "x": 1167.5831489562988,
805     "y": 2124.1984939575195,
806     "z": "2539c931.d4e596",
807     "wires": [
808       [
809         "1db677fa.c5f998"
810       ]
811     ]
812   },
813   {
814     "id": "1db677fa.c5f998",
815     "type": "block",
816     "name": "block : atomic",
817     "xml": "<block atomic='true'>",
818     "atomic": "true",
819     "comments": "",
820     "outputs": 1,
821     "x": 1330.857265472412,
822     "y": 2123.5080347061157,
823     "z": "2539c931.d4e596",
824     "wires": [
825       [
826         "71a33c12.b5a3d4",
827         "e1fec547.7327d8",
828         "c36d6a8.879dc98",
829         "32c8d030.41dd8",
830         "c0352a22.0df598"
831       ]
832     ]
833   },
834   {
835     "id": "c36d6a8.879dc98",
836     "type": "execute",
837     "name": "generate ss-vnf url replace service-instance-id",
838     "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",
839     "comments": "",
840     "outputs": 1,
841     "x": 1654.190357208252,
842     "y": 2177.024594306946,
843     "z": "2539c931.d4e596",
844     "wires": [
845       []
846     ]
847   },
848   {
849     "id": "c0352a22.0df598",
850     "type": "execute",
851     "name": "execute RestApiCallNode - PUT vnf",
852     "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",
853     "comments": "",
854     "outputs": 1,
855     "x": 1623.6546516418457,
856     "y": 2279.8818159103394,
857     "z": "2539c931.d4e596",
858     "wires": [
859       [
860         "9f3adb33.27f9d8",
861         "d80b620b.99918"
862       ]
863     ]
864   },
865   {
866     "id": "9f3adb33.27f9d8",
867     "type": "not-found",
868     "name": "not-found",
869     "xml": "<outcome value='not-found'>\n",
870     "comments": "",
871     "outputs": 1,
872     "x": 1898.2483177185059,
873     "y": 2333.879969596863,
874     "z": "2539c931.d4e596",
875     "wires": [
876       [
877         "b1619288.dfed9"
878       ]
879     ]
880   },
881   {
882     "id": "d80b620b.99918",
883     "type": "failure",
884     "name": "failure",
885     "xml": "<outcome value='failure'>\n",
886     "comments": "",
887     "outputs": 1,
888     "x": 1890.6769523620605,
889     "y": 2280.3799896240234,
890     "z": "2539c931.d4e596",
891     "wires": [
892       [
893         "b1619288.dfed9"
894       ]
895     ]
896   },
897   {
898     "id": "e1fec547.7327d8",
899     "type": "set",
900     "name": "set vf data for restapi-call-node",
901     "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`' />",
902     "comments": "",
903     "x": 1606.6426582336426,
904     "y": 2123.1191062927246,
905     "z": "2539c931.d4e596",
906     "wires": []
907   },
908   {
909     "id": "32c8d030.41dd8",
910     "type": "execute",
911     "name": "generate ss-vnf url - replace vnf-id",
912     "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",
913     "comments": "",
914     "outputs": 1,
915     "x": 1618.4760627746582,
916     "y": 2227.8333625793457,
917     "z": "2539c931.d4e596",
918     "wires": [
919       []
920     ]
921   },
922   {
923     "id": "2989260.b2650da",
924     "type": "execute",
925     "name": "printContext",
926     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-vnf-assign.log' />\n",
927     "comments": "",
928     "outputs": 1,
929     "x": 370.019775390625,
930     "y": 2572.3494453430176,
931     "z": "2539c931.d4e596",
932     "wires": [
933       []
934     ]
935   },
936   {
937     "id": "cf3af1fb.cae0d",
938     "type": "set",
939     "name": "set ss.capability-type = vnf",
940     "xml": "<set>\n<parameter name='ss.capability-type' value='vnf' />\n",
941     "comments": "",
942     "x": 394.0595932006836,
943     "y": 1345.5357904434204,
944     "z": "2539c931.d4e596",
945     "wires": []
946   },
947   {
948     "id": "d6105627.c8e418",
949     "type": "block",
950     "name": "block : atomic",
951     "xml": "<block atomic='true'>",
952     "atomic": "true",
953     "comments": "",
954     "outputs": 1,
955     "x": 867.2023239135742,
956     "y": 1402.8928995132446,
957     "z": "2539c931.d4e596",
958     "wires": [
959       [
960         "8d586e30.441d2",
961         "b53240df.c07bf"
962       ]
963     ]
964   },
965   {
966     "id": "727eaad0.1e6e64",
967     "type": "for",
968     "name": "for each existing VNF",
969     "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
970     "comments": "",
971     "outputs": 1,
972     "x": 1016.202392578125,
973     "y": 322.7857942581177,
974     "z": "2539c931.d4e596",
975     "wires": [
976       [
977         "f9213ecd.2658a"
978       ]
979     ]
980   },
981   {
982     "id": "f9213ecd.2658a",
983     "type": "switchNode",
984     "name": "switch vnf-id: input vs service-data",
985     "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",
986     "comments": "",
987     "outputs": 1,
988     "x": 1293.4880981445312,
989     "y": 322.8572816848755,
990     "z": "2539c931.d4e596",
991     "wires": [
992       [
993         "6fc117d2.eaa0b8"
994       ]
995     ]
996   },
997   {
998     "id": "6fc117d2.eaa0b8",
999     "type": "outcomeTrue",
1000     "name": "true",
1001     "xml": "<outcome value='true'>\n",
1002     "comments": "",
1003     "outputs": 1,
1004     "x": 1516.2738647460938,
1005     "y": 322.42875385284424,
1006     "z": "2539c931.d4e596",
1007     "wires": [
1008       [
1009         "f035c4cb.688108"
1010       ]
1011     ]
1012   },
1013   {
1014     "id": "f035c4cb.688108",
1015     "type": "block",
1016     "name": "block",
1017     "xml": "<block>\n",
1018     "atomic": "false",
1019     "comments": "",
1020     "outputs": 1,
1021     "x": 1648.7381172180176,
1022     "y": 322.4643144607544,
1023     "z": "2539c931.d4e596",
1024     "wires": [
1025       [
1026         "ddc53ec7.8a8ad",
1027         "a4bfc95d.69a428",
1028         "99a6f232.c02bc"
1029       ]
1030     ]
1031   },
1032   {
1033     "id": "ddc53ec7.8a8ad",
1034     "type": "break",
1035     "name": "break",
1036     "xml": "<break>\n",
1037     "comments": "",
1038     "x": 1816.6309051513672,
1039     "y": 408.4642925262451,
1040     "z": "2539c931.d4e596",
1041     "wires": []
1042   },
1043   {
1044     "id": "4d1804cd.00019c",
1045     "type": "set",
1046     "name": "set new vnf_length = 1",
1047     "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='1' />\n",
1048     "comments": "",
1049     "x": 1026.8096160888672,
1050     "y": 245.82148456573486,
1051     "z": "2539c931.d4e596",
1052     "wires": []
1053   },
1054   {
1055     "id": "a4bfc95d.69a428",
1056     "type": "set",
1057     "name": "set vnf-index = idx",
1058     "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
1059     "comments": "",
1060     "x": 1847.2024612426758,
1061     "y": 365.2499713897705,
1062     "z": "2539c931.d4e596",
1063     "wires": []
1064   },
1065   {
1066     "id": "442acc2c.485fa4",
1067     "type": "set",
1068     "name": "set is-new-vnf = true",
1069     "xml": "<set>\n<parameter name='is-new-vnf' value='true' />\n",
1070     "comments": "",
1071     "x": 380.05958557128906,
1072     "y": 182.321439743042,
1073     "z": "2539c931.d4e596",
1074     "wires": []
1075   },
1076   {
1077     "id": "99a6f232.c02bc",
1078     "type": "set",
1079     "name": "set is-new-vnf = false",
1080     "xml": "<set>\n<parameter name='is-new-vnf' value='false' />\n",
1081     "comments": "",
1082     "x": 1855.2381477355957,
1083     "y": 321.964316368103,
1084     "z": "2539c931.d4e596",
1085     "wires": []
1086   },
1087   {
1088     "id": "7437693b.b40168",
1089     "type": "block",
1090     "name": "block",
1091     "xml": "<block>\n",
1092     "atomic": "false",
1093     "comments": "",
1094     "outputs": 1,
1095     "x": 806.4166870117188,
1096     "y": 322.2500123977661,
1097     "z": "2539c931.d4e596",
1098     "wires": [
1099       [
1100         "727eaad0.1e6e64",
1101         "fb374db8.2b8eb"
1102       ]
1103     ]
1104   },
1105   {
1106     "id": "fb374db8.2b8eb",
1107     "type": "switchNode",
1108     "name": "switch is-new-vnf",
1109     "xml": "<switch test='`$is-new-vnf`'>\n",
1110     "comments": "",
1111     "outputs": 1,
1112     "x": 1003.9166793823242,
1113     "y": 408.82141399383545,
1114     "z": "2539c931.d4e596",
1115     "wires": [
1116       [
1117         "e7bfcf3d.b7f14"
1118       ]
1119     ]
1120   },
1121   {
1122     "id": "e7bfcf3d.b7f14",
1123     "type": "outcomeTrue",
1124     "name": "true",
1125     "xml": "<outcome value='true'>\n",
1126     "comments": "",
1127     "outputs": 1,
1128     "x": 1183.7738342285156,
1129     "y": 408.392861366272,
1130     "z": "2539c931.d4e596",
1131     "wires": [
1132       [
1133         "aecd914d.44c7b"
1134       ]
1135     ]
1136   },
1137   {
1138     "id": "92b4b346.1e12f",
1139     "type": "block",
1140     "name": "block",
1141     "xml": "<block>\n",
1142     "atomic": "false",
1143     "comments": "",
1144     "outputs": 1,
1145     "x": 821.9166564941406,
1146     "y": 200.99999332427979,
1147     "z": "2539c931.d4e596",
1148     "wires": [
1149       [
1150         "548cf92c.4ba008",
1151         "4d1804cd.00019c"
1152       ]
1153     ]
1154   },
1155   {
1156     "id": "1c932b60.e73ca5",
1157     "type": "other",
1158     "name": "0",
1159     "xml": "<outcome value='0'>\n",
1160     "comments": "",
1161     "outputs": 1,
1162     "x": 666.4166564941406,
1163     "y": 260.7499952316284,
1164     "z": "2539c931.d4e596",
1165     "wires": [
1166       [
1167         "92b4b346.1e12f"
1168       ]
1169     ]
1170   },
1171   {
1172     "id": "2e34ccd3.bb5994",
1173     "type": "switchNode",
1174     "name": "switch is-new-vnf",
1175     "xml": "<switch test='`$is-new-vnf`'>\n",
1176     "comments": "",
1177     "outputs": 1,
1178     "x": 367.9166679382324,
1179     "y": 576.2500019073486,
1180     "z": "2539c931.d4e596",
1181     "wires": [
1182       [
1183         "1c1e89f5.887da6"
1184       ]
1185     ]
1186   },
1187   {
1188     "id": "1c1e89f5.887da6",
1189     "type": "outcomeTrue",
1190     "name": "true",
1191     "xml": "<outcome value='true'>\n",
1192     "comments": "",
1193     "outputs": 1,
1194     "x": 547.7738227844238,
1195     "y": 575.8214492797852,
1196     "z": "2539c931.d4e596",
1197     "wires": [
1198       [
1199         "8cef310a.fddca"
1200       ]
1201     ]
1202   },
1203   {
1204     "id": "535721ac.1a29a",
1205     "type": "set",
1206     "name": "set new vnf_length++",
1207     "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$service-data.vnfs.vnf_length + 1`' />\n",
1208     "comments": "",
1209     "x": 1531.6666641235352,
1210     "y": 454.99999618530273,
1211     "z": "2539c931.d4e596",
1212     "wires": []
1213   },
1214   {
1215     "id": "aecd914d.44c7b",
1216     "type": "block",
1217     "name": "block",
1218     "xml": "<block>\n",
1219     "atomic": "false",
1220     "comments": "",
1221     "outputs": 1,
1222     "x": 1329.6666412353516,
1223     "y": 407.9999580383301,
1224     "z": "2539c931.d4e596",
1225     "wires": [
1226       [
1227         "535721ac.1a29a",
1228         "189baa3c.c7d166"
1229       ]
1230     ]
1231   },
1232   {
1233     "id": "189baa3c.c7d166",
1234     "type": "set",
1235     "name": "set vnf-index = vnf_length",
1236     "xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",
1237     "comments": "",
1238     "x": 1541.1666450500488,
1239     "y": 407.4999580383301,
1240     "z": "2539c931.d4e596",
1241     "wires": []
1242   },
1243   {
1244     "id": "b1619288.dfed9",
1245     "type": "set",
1246     "name": "set error-message",
1247     "xml": "<set>\n<parameter name=\"error-message\" value=\"Failed to persist self-serve vnf assignments during assign in MD-SAL\" />",
1248     "comments": "",
1249     "x": 2110.5952758789062,
1250     "y": 2279.2499961853027,
1251     "z": "2539c931.d4e596",
1252     "wires": []
1253   }
1254 ]