034f2d5d47aabb01dec8efa89906d54d4a5ddbd5
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-create.json
1 [
2   {
3     "id": "5e3d5340.60ff6c",
4     "type": "comment",
5     "name": "sdwan-vnf-topology-operation-device-activate",
6     "info": "",
7     "comments": "",
8     "x": 508.3447952270508,
9     "y": 51,
10     "z": "68e83c1d.51ded4",
11     "wires": []
12   },
13   {
14     "id": "98a7b4d5.abb6c8",
15     "type": "service-logic",
16     "name": "GENERIC-RESOURCE-API 1.2.1-SNAPSHOT",
17     "module": "GENERIC-RESOURCE-API",
18     "version": "1.2.1-SNAPSHOT",
19     "comments": "",
20     "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='1.2.1-SNAPSHOT'>",
21     "outputs": 1,
22     "x": 188.28570556640625,
23     "y": 122.0002670288086,
24     "z": "68e83c1d.51ded4",
25     "wires": [
26       [
27         "6e6cf252.6d76ac"
28       ]
29     ]
30   },
31   {
32     "id": "b122f38a.d6d66",
33     "type": "dgstart",
34     "name": "DGSTART",
35     "outputs": 1,
36     "x": 109,
37     "y": 59.76215744018555,
38     "z": "68e83c1d.51ded4",
39     "wires": [
40       [
41         "98a7b4d5.abb6c8"
42       ]
43     ]
44   },
45   {
46     "id": "acf9046.9fdadf8",
47     "type": "block",
48     "name": "block : atomic",
49     "xml": "<block atomic=\"true\">",
50     "atomic": "true",
51     "outputs": 1,
52     "x": 189.66666412353516,
53     "y": 383.4288272857666,
54     "z": "68e83c1d.51ded4",
55     "wires": [
56       [
57         "fadd626.2db7aa",
58         "3d1725f.b682bda",
59         "973ba2fa.09281",
60         "a8ec1f34.2d716",
61         "1a8342ca.6c718d",
62         "2f458da.dde6872",
63         "5b27914d.aaeea",
64         "14b0db80.805625",
65         "60a129a0.bbdd58",
66         "b0ca4039.10bf1",
67         "48942c51.646f94",
68         "f06f6e0f.f753c"
69       ]
70     ]
71   },
72   {
73     "id": "3d1725f.b682bda",
74     "type": "returnSuccess",
75     "name": "return success",
76     "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
77     "comments": "",
78     "x": 570.3336067199707,
79     "y": 1005.0958871841431,
80     "z": "68e83c1d.51ded4",
81     "wires": []
82   },
83   {
84     "id": "fadd626.2db7aa",
85     "type": "set",
86     "name": "set vnf-level-oper-status to Created",
87     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Created' />\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",
88     "comments": "",
89     "x": 659.8136177062988,
90     "y": 737.4329919815063,
91     "z": "68e83c1d.51ded4",
92     "wires": []
93   },
94   {
95     "id": "a8ec1f34.2d716",
96     "type": "set",
97     "name": "copy input data to service data",
98     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id' value='`$prop.vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='`$vnf-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='`$vnf-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='`$vnf-topology-operation-input.service-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='`$vnf-topology-operation-input.vnf-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' value='`$vnf-topology-operation-input.vnf-request-input.`' />",
99     "comments": "",
100     "x": 637.6668090820312,
101     "y": 793.4291677474976,
102     "z": "68e83c1d.51ded4",
103     "wires": []
104   },
105   {
106     "id": "3cb5e097.323b3",
107     "type": "save",
108     "name": "save deviceInstance configuration in AAI",
109     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n      key='device.id = $prop.vnf-id' >\n<parameter name='id' value='`$prop.vnf-id`' />\n<parameter name='esn' value='`$prop.device.name`' />\n<parameter name='name' value=\"true\" />\n<parameter name='description' value='`$prop.device.description`' />\n<parameter name='vendor' value='`$prop.device.vendor`' />\n<parameter name='class' value='`$prop.device.class`' />\n<parameter name='type' value='`$prop.device.deviceModel`' />\n<parameter name='version' value='`$prop.device.version`' />\n<parameter name='system-ip' value='`$prop.device.systemIp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $prop.vnf-id  + '/vnf-data/'` \" />\n",
110     "comments": "",
111     "outputs": 1,
112     "x": 1116.0007019042969,
113     "y": 810.3184747695923,
114     "z": "68e83c1d.51ded4",
115     "wires": [
116       []
117     ]
118   },
119   {
120     "id": "6e6cf252.6d76ac",
121     "type": "method",
122     "name": "method sdwan-vnf-topology-operation-device-create",
123     "xml": "<method rpc='sdwan-vnf-topology-operation-device-create' mode='sync'>\n",
124     "comments": "",
125     "outputs": 1,
126     "x": 200,
127     "y": 216.3484992980957,
128     "z": "68e83c1d.51ded4",
129     "wires": [
130       [
131         "acf9046.9fdadf8"
132       ]
133     ]
134   },
135   {
136     "id": "973ba2fa.09281",
137     "type": "set",
138     "name": "set vnfId and vnf-object-path",
139     "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $prop.vnf-id  + '/vnf-data/'` \" />",
140     "comments": "",
141     "x": 641.0002593994141,
142     "y": 686.348804473877,
143     "z": "68e83c1d.51ded4",
144     "wires": []
145   },
146   {
147     "id": "1a8342ca.6c718d",
148     "type": "set",
149     "name": "set deviceId to service data",
150     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id' value='`$prop.vnf-id`' />\n",
151     "comments": "",
152     "x": 647.0004119873047,
153     "y": 638.3490514755249,
154     "z": "68e83c1d.51ded4",
155     "wires": []
156   },
157   {
158     "id": "11b9f4bc.54a6db",
159     "type": "comment",
160     "name": "AAI resource need to update",
161     "info": "",
162     "comments": "",
163     "x": 962.0003051757812,
164     "y": 764.3489141464233,
165     "z": "68e83c1d.51ded4",
166     "wires": []
167   },
168   {
169     "id": "57ec6080.aef67",
170     "type": "execute",
171     "name": "execute generate-vnf-id",
172     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vnf-id\"/>\n",
173     "comments": "",
174     "outputs": 1,
175     "x": 1146.0006866455078,
176     "y": 151.3486099243164,
177     "z": "68e83c1d.51ded4",
178     "wires": [
179       []
180     ]
181   },
182   {
183     "id": "f5373c70.1c094",
184     "type": "save",
185     "name": "save service relationship in AAI",
186     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \n         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"device\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/devices/device/' + $prop.vnf-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"device.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vnf-id`\" />",
187     "comments": "",
188     "outputs": 1,
189     "x": 628.000560760498,
190     "y": 960.0957889556885,
191     "z": "68e83c1d.51ded4",
192     "wires": [
193       []
194     ]
195   },
196   {
197     "id": "2f458da.dde6872",
198     "type": "switchNode",
199     "name": "switch vnf-id",
200     "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\">\n",
201     "comments": "",
202     "outputs": 1,
203     "x": 610.0001068115234,
204     "y": 255.0000286102295,
205     "z": "68e83c1d.51ded4",
206     "wires": [
207       [
208         "96bd2791.9be248",
209         "67087b1d.5c3fb4"
210       ]
211     ]
212   },
213   {
214     "id": "96bd2791.9be248",
215     "type": "outcome",
216     "name": "NULL",
217     "xml": "<outcome value=''>",
218     "comments": "",
219     "outputs": 1,
220     "x": 751.0001106262207,
221     "y": 230.00002002716064,
222     "z": "68e83c1d.51ded4",
223     "wires": [
224       [
225         "17f3f6fd.04e999"
226       ]
227     ]
228   },
229   {
230     "id": "17f3f6fd.04e999",
231     "type": "block",
232     "name": "block : atomic",
233     "xml": "<block atomic=\"true\">",
234     "atomic": "true",
235     "outputs": 1,
236     "x": 899.0002136230469,
237     "y": 166.0000123977661,
238     "z": "68e83c1d.51ded4",
239     "wires": [
240       [
241         "57ec6080.aef67",
242         "3fbf12e1.7d984e",
243         "1f9131ce.7814de"
244       ]
245     ]
246   },
247   {
248     "id": "67087b1d.5c3fb4",
249     "type": "other",
250     "name": "other",
251     "xml": "<outcome value='Other'>\n",
252     "comments": "",
253     "outputs": 1,
254     "x": 747.5312881469727,
255     "y": 290.03125762939453,
256     "z": "68e83c1d.51ded4",
257     "wires": [
258       [
259         "36044171.bb341e"
260       ]
261     ]
262   },
263   {
264     "id": "71433e4d.c21fc",
265     "type": "set",
266     "name": "set prop.vnf-id",
267     "xml": "<set>\n<parameter name='prop.vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n",
268     "comments": "",
269     "x": 1062.531982421875,
270     "y": 359.03163146972656,
271     "z": "68e83c1d.51ded4",
272     "wires": []
273   },
274   {
275     "id": "36044171.bb341e",
276     "type": "block",
277     "name": "block : atomic",
278     "xml": "<block atomic=\"true\">",
279     "atomic": "true",
280     "outputs": 1,
281     "x": 898.5317077636719,
282     "y": 322.03137969970703,
283     "z": "68e83c1d.51ded4",
284     "wires": [
285       [
286         "71433e4d.c21fc",
287         "1f9131ce.7814de",
288         "ded55567.2a8678"
289       ]
290     ]
291   },
292   {
293     "id": "5b27914d.aaeea",
294     "type": "set",
295     "name": "set prop.sdncCreate=false",
296     "xml": "<set>\n<parameter name='prop.sdncCreate' value='false' />\n",
297     "comments": "",
298     "x": 684.5313568115234,
299     "y": 146.03125190734863,
300     "z": "68e83c1d.51ded4",
301     "wires": []
302   },
303   {
304     "id": "14b0db80.805625",
305     "type": "switchNode",
306     "name": "switch prop.sdncCreate",
307     "xml": "<switch test='`$prop.sdncCreate`'>\n",
308     "comments": "",
309     "outputs": 1,
310     "x": 607.0316925048828,
311     "y": 840.0316715240479,
312     "z": "68e83c1d.51ded4",
313     "wires": [
314       [
315         "f49b5933.b5d218",
316         "b6ead02e.a5302"
317       ]
318     ]
319   },
320   {
321     "id": "f49b5933.b5d218",
322     "type": "outcomeTrue",
323     "name": "true",
324     "xml": "<outcome value='true'>\n",
325     "comments": "",
326     "outputs": 1,
327     "x": 853.0314636230469,
328     "y": 810.5314083099365,
329     "z": "68e83c1d.51ded4",
330     "wires": [
331       [
332         "3cb5e097.323b3"
333       ]
334     ]
335   },
336   {
337     "id": "b6ead02e.a5302",
338     "type": "outcomeTrue",
339     "name": "false",
340     "xml": "<outcome value='false'>\n",
341     "comments": "",
342     "outputs": 1,
343     "x": 854.5314483642578,
344     "y": 865.5314226150513,
345     "z": "68e83c1d.51ded4",
346     "wires": [
347       [
348         "689dbbbf.19b784"
349       ]
350     ]
351   },
352   {
353     "id": "3fbf12e1.7d984e",
354     "type": "set",
355     "name": "set prop.updateAAIsdncCreate",
356     "xml": "<set>\n<parameter name='prop.sdncCreate' value='true' />\n",
357     "comments": "",
358     "x": 1163.5317764282227,
359     "y": 111.03133583068848,
360     "z": "68e83c1d.51ded4",
361     "wires": []
362   },
363   {
364     "id": "60a129a0.bbdd58",
365     "type": "for",
366     "name": "for loop idx - VNF input parameters",
367     "xml": "<for index=\"idx\" start=\"0\" end=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`\">\n",
368     "comments": "",
369     "outputs": 1,
370     "x": 672.5314331054688,
371     "y": 440.031286239624,
372     "z": "68e83c1d.51ded4",
373     "wires": [
374       [
375         "ea444b8d.2a7e58"
376       ]
377     ]
378   },
379   {
380     "id": "ea444b8d.2a7e58",
381     "type": "block",
382     "name": "block",
383     "xml": "<block>\n",
384     "atomic": "false",
385     "comments": "",
386     "outputs": 1,
387     "x": 887.3097763061523,
388     "y": 437.58687019348145,
389     "z": "68e83c1d.51ded4",
390     "wires": [
391       [
392         "5cf3f0ff.4ce19",
393         "c56fa091.a24ed"
394       ]
395     ]
396   },
397   {
398     "id": "c56fa091.a24ed",
399     "type": "set",
400     "name": "set parameterName",
401     "xml": "<set>\n<parameter name=\"`vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",
402     "comments": "",
403     "x": 1053.0104064941406,
404     "y": 452.3351249694824,
405     "z": "68e83c1d.51ded4",
406     "wires": []
407   },
408   {
409     "id": "5cf3f0ff.4ce19",
410     "type": "execute",
411     "name": "execute split parameterName",
412     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",
413     "comments": "",
414     "outputs": 1,
415     "x": 1083.5659790039062,
416     "y": 415.3350086212158,
417     "z": "68e83c1d.51ded4",
418     "wires": [
419       []
420     ]
421   },
422   {
423     "id": "b0ca4039.10bf1",
424     "type": "set",
425     "name": "set vnf-request-input.",
426     "xml": "<set>\n<parameter name='vnf-request-input.' value='`$vnf-topology-operation-input.vnf-request-input.`' />\n",
427     "comments": "",
428     "x": 634.5310516357422,
429     "y": 514.3560009002686,
430     "z": "68e83c1d.51ded4",
431     "wires": []
432   },
433   {
434     "id": "48942c51.646f94",
435     "type": "call",
436     "name": "call sdwan-get-device-param",
437     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-device-param' mode='sync' >\n",
438     "comments": "",
439     "outputs": 1,
440     "x": 659.5314331054688,
441     "y": 546.3561611175537,
442     "z": "68e83c1d.51ded4",
443     "wires": [
444       []
445     ]
446   },
447   {
448     "id": "76da7c24.a3ef74",
449     "type": "comment",
450     "name": "if SO provide vnf-id use that else create new",
451     "info": "",
452     "comments": "",
453     "x": 701.5312805175781,
454     "y": 200.0312614440918,
455     "z": "68e83c1d.51ded4",
456     "wires": []
457   },
458   {
459     "id": "1f9131ce.7814de",
460     "type": "block",
461     "name": "block : atomic",
462     "xml": "<block atomic=\"true\">",
463     "atomic": "true",
464     "outputs": 1,
465     "x": 1107.0317840576172,
466     "y": 248.0313549041748,
467     "z": "68e83c1d.51ded4",
468     "wires": [
469       [
470         "3b0d82e1.8f158e",
471         "2e1a03e.c5a90fc"
472       ]
473     ]
474   },
475   {
476     "id": "3b0d82e1.8f158e",
477     "type": "switchNode",
478     "name": "switch service-data.vnfs.vnf_length",
479     "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
480     "comments": "",
481     "outputs": 1,
482     "x": 1351.0316734313965,
483     "y": 205.0313482284546,
484     "z": "68e83c1d.51ded4",
485     "wires": [
486       [
487         "975a1f09.2f8c8",
488         "a0a50419.1fe858"
489       ]
490     ]
491   },
492   {
493     "id": "975a1f09.2f8c8",
494     "type": "other",
495     "name": "NULL",
496     "xml": "<outcome value=''>\n",
497     "comments": "",
498     "outputs": 1,
499     "x": 1564.7460556030273,
500     "y": 188.1741189956665,
501     "z": "68e83c1d.51ded4",
502     "wires": [
503       [
504         "3e9891d0.1834fe"
505       ]
506     ]
507   },
508   {
509     "id": "3e9891d0.1834fe",
510     "type": "set",
511     "name": "set vnf-index=0",
512     "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",
513     "comments": "",
514     "x": 1713.0317039489746,
515     "y": 185.17417335510254,
516     "z": "68e83c1d.51ded4",
517     "wires": []
518   },
519   {
520     "id": "a0a50419.1fe858",
521     "type": "other",
522     "name": "other",
523     "xml": "<outcome value='Other'>\n",
524     "comments": "",
525     "outputs": 1,
526     "x": 1568.1745529174805,
527     "y": 233.45991039276123,
528     "z": "68e83c1d.51ded4",
529     "wires": [
530       [
531         "bfe1f8cb.5f4108"
532       ]
533     ]
534   },
535   {
536     "id": "bfe1f8cb.5f4108",
537     "type": "set",
538     "name": "set vnf-index = vnf_length",
539     "xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",
540     "comments": "",
541     "x": 1752.0322952270508,
542     "y": 233.74567890167236,
543     "z": "68e83c1d.51ded4",
544     "wires": []
545   },
546   {
547     "id": "2e1a03e.c5a90fc",
548     "type": "set",
549     "name": "set new vnf_length",
550     "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",
551     "comments": "",
552     "x": 1303.0317344665527,
553     "y": 240.031343460083,
554     "z": "68e83c1d.51ded4",
555     "wires": []
556   },
557   {
558     "id": "689dbbbf.19b784",
559     "type": "save",
560     "name": "update deviceInstance configuration in AAI",
561     "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n      key='device.id = $prop.vnf-id' >\n<parameter name='id' value='`$prop.vnf-id`' />\n<parameter name='esn' value='`$prop.device.name`' />\n<parameter name='name' value=\"true\" />\n<parameter name='description' value='`$prop.device.description`' />\n<parameter name='vendor' value='`$prop.device.vendor`' />\n<parameter name='class' value='`$prop.device.class`' />\n<parameter name='type' value='`$prop.device.deviceModel`' />\n<parameter name='version' value='`$prop.device.version`' />\n<parameter name='system-ip' value='`$prop.device.systemIp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $prop.vnf-id  + '/vnf-data/'` \" />\n",
562     "comments": "",
563     "outputs": 1,
564     "x": 1108.0312805175781,
565     "y": 868.0312757492065,
566     "z": "68e83c1d.51ded4",
567     "wires": [
568       []
569     ]
570   },
571   {
572     "id": "ded55567.2a8678",
573     "type": "for",
574     "name": "for each existing VNF",
575     "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
576     "comments": "",
577     "outputs": 1,
578     "x": 1114.0313186645508,
579     "y": 320.03128814697266,
580     "z": "68e83c1d.51ded4",
581     "wires": [
582       [
583         "5b9cdd8f.43fa54"
584       ]
585     ]
586   },
587   {
588     "id": "e638f4a.543e508",
589     "type": "outcomeTrue",
590     "name": "true",
591     "xml": "<outcome value='true'>\n",
592     "comments": "",
593     "outputs": 1,
594     "x": 1650.6031284332275,
595     "y": 368.17424297332764,
596     "z": "68e83c1d.51ded4",
597     "wires": [
598       [
599         "584781cc.b608c"
600       ]
601     ]
602   },
603   {
604     "id": "584781cc.b608c",
605     "type": "returnFailure",
606     "name": "return failure",
607     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'VNF id ' + $service-data.vnfs.vnf[$idx].vnf-id\n      + ' already exists, and has order status ' + $service-data.vnfs.vnf[$idx].vnf-data.vnf-level-oper-status.order-status`\" />\n",
608     "comments": "",
609     "x": 1789.1744861602783,
610     "y": 368.17420387268066,
611     "z": "68e83c1d.51ded4",
612     "wires": []
613   },
614   {
615     "id": "e89efb32.eef4a8",
616     "type": "comment",
617     "name": "make sure this vnf-id doesn't exist already",
618     "info": "",
619     "comments": "",
620     "x": 1744.459602355957,
621     "y": 497.1741261482239,
622     "z": "68e83c1d.51ded4",
623     "wires": []
624   },
625   {
626     "id": "5b9cdd8f.43fa54",
627     "type": "switchNode",
628     "name": "switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id",
629     "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",
630     "comments": "",
631     "outputs": 1,
632     "x": 1453.0313262939453,
633     "y": 321.0312910079956,
634     "z": "68e83c1d.51ded4",
635     "wires": [
636       [
637         "e638f4a.543e508"
638       ]
639     ]
640   },
641   {
642     "id": "f06f6e0f.f753c",
643     "type": "set",
644     "name": "set deviceId to service data",
645     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.vnf-input-parameters.param_length].name' value=\"sdncCreate\" />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$prop.sdncCreate`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1`' />\n",
646     "comments": "",
647     "x": 621.0313682556152,
648     "y": 901.0312786102295,
649     "z": "68e83c1d.51ded4",
650     "wires": []
651   }
652 ]