Fix SDNC parameters save in AAI failure
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.json
1 [\r
2     {\r
3         "id": "a55c86e0.b5aa88",\r
4         "type": "switchNode",\r
5         "name": "switch this vnf-id == input vnf-id",\r
6         "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\">    \n",\r
7         "comments": "",\r
8         "outputs": 1,\r
9         "x": 969.829511642456,\r
10         "y": 145.13152599334717,\r
11         "z": "13a3e634.05943a",\r
12         "wires": [\r
13             [\r
14                 "89879683.435e28"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "654795a8.0c14ac",\r
20         "type": "service-logic",\r
21         "name": "GENERIC-RESOURCE-API ${project.version}",\r
22         "module": "GENERIC-RESOURCE-API",\r
23         "version": "${project.version}",\r
24         "comments": "",\r
25         "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}'>",\r
26         "outputs": 1,\r
27         "x": 242.49999809265137,\r
28         "y": 172.96871852874756,\r
29         "z": "13a3e634.05943a",\r
30         "wires": [\r
31             [\r
32                 "9d67b8bb.5c3018"\r
33             ]\r
34         ]\r
35     },\r
36     {\r
37         "id": "9d67b8bb.5c3018",\r
38         "type": "method",\r
39         "name": "sdwan-vf-operation-device-create",\r
40         "xml": "<method rpc='sdwan-vf-operation-device-create' mode='sync'>\n",\r
41         "comments": "",\r
42         "outputs": 1,\r
43         "x": 241.49999809265137,\r
44         "y": 272.96871852874756,\r
45         "z": "13a3e634.05943a",\r
46         "wires": [\r
47             [\r
48                 "b03e92e3.4a48b"\r
49             ]\r
50         ]\r
51     },\r
52     {\r
53         "id": "5c240948.ac8cb8",\r
54         "type": "dgstart",\r
55         "name": "DGSTART",\r
56         "outputs": 1,\r
57         "x": 128,\r
58         "y": 65.9687271118164,\r
59         "z": "13a3e634.05943a",\r
60         "wires": [\r
61             [\r
62                 "654795a8.0c14ac"\r
63             ]\r
64         ]\r
65     },\r
66     {\r
67         "id": "b03e92e3.4a48b",\r
68         "type": "block",\r
69         "name": "block : atomic",\r
70         "xml": "<block atomic=\"true\">\n",\r
71         "atomic": "false",\r
72         "comments": "",\r
73         "outputs": 1,\r
74         "x": 400.4999828338623,\r
75         "y": 388.9687271118164,\r
76         "z": "13a3e634.05943a",\r
77         "wires": [\r
78             [\r
79                 "949786f1.863f68",\r
80                 "ea17361a.fd7708",\r
81                 "efdf1074.6df6a",\r
82                 "398e0031.2e059",\r
83                 "cb5e3f0e.d096d",\r
84                 "759de3b6.0709dc",\r
85                 "115eabc8.0c7c94",\r
86                 "a28188f1.6060e8",\r
87                 "97ec72bd.6232e",\r
88                 "e24672d6.3f64f",\r
89                 "56ec94bf.93da3c",\r
90                 "9d805d88.8f8ee",\r
91                 "64fa5b44.3987c4",\r
92                 "8956e9de.67f788"\r
93             ]\r
94         ]\r
95     },\r
96     {\r
97         "id": "949786f1.863f68",\r
98         "type": "for",\r
99         "name": "for each vnf",\r
100         "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
101         "comments": "",\r
102         "outputs": 1,\r
103         "x": 717.8294200897217,\r
104         "y": 146.46486282348633,\r
105         "z": "13a3e634.05943a",\r
106         "wires": [\r
107             [\r
108                 "a55c86e0.b5aa88"\r
109             ]\r
110         ]\r
111     },\r
112     {\r
113         "id": "5c7606f2.618b18",\r
114         "type": "set",\r
115         "name": "set vnf-index",\r
116         "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",\r
117         "comments": "",\r
118         "x": 1341.496000289917,\r
119         "y": 147.13152885437012,\r
120         "z": "13a3e634.05943a",\r
121         "wires": []\r
122     },\r
123     {\r
124         "id": "89879683.435e28",\r
125         "type": "outcomeTrue",\r
126         "name": "true",\r
127         "xml": "<outcome value='true'>\n",\r
128         "comments": "",\r
129         "outputs": 1,\r
130         "x": 1188.1628284454346,\r
131         "y": 147.13150787353516,\r
132         "z": "13a3e634.05943a",\r
133         "wires": [\r
134             [\r
135                 "5c7606f2.618b18"\r
136             ]\r
137         ]\r
138     },\r
139     {\r
140         "id": "efdf1074.6df6a",\r
141         "type": "for",\r
142         "name": "for loop idx - VF input parameters",\r
143         "xml": "<for index=\"idx\" start=\"0\" end=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`\">\n\n",\r
144         "comments": "",\r
145         "outputs": 1,\r
146         "x": 798.7501583099365,\r
147         "y": 547.6354074478149,\r
148         "z": "13a3e634.05943a",\r
149         "wires": [\r
150             [\r
151                 "aa19f798.d86af8"\r
152             ]\r
153         ]\r
154     },\r
155     {\r
156         "id": "aa19f798.d86af8",\r
157         "type": "block",\r
158         "name": "block",\r
159         "xml": "<block>\n",\r
160         "atomic": "false",\r
161         "comments": "",\r
162         "outputs": 1,\r
163         "x": 1013.5285015106201,\r
164         "y": 545.1909914016724,\r
165         "z": "13a3e634.05943a",\r
166         "wires": [\r
167             [\r
168                 "5ba25a3d.6d9bd4",\r
169                 "bcc6d89b.3d5508"\r
170             ]\r
171         ]\r
172     },\r
173     {\r
174         "id": "5ba25a3d.6d9bd4",\r
175         "type": "execute",\r
176         "name": "execute split parameterName",\r
177         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",\r
178         "comments": "",\r
179         "outputs": 1,\r
180         "x": 1209.784704208374,\r
181         "y": 522.9391298294067,\r
182         "z": "13a3e634.05943a",\r
183         "wires": [\r
184             []\r
185         ]\r
186     },\r
187     {\r
188         "id": "bcc6d89b.3d5508",\r
189         "type": "set",\r
190         "name": "set parameterName",\r
191         "xml": "<set>\n<parameter name=\"`vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",\r
192         "comments": "",\r
193         "x": 1179.2291316986084,\r
194         "y": 559.9392461776733,\r
195         "z": "13a3e634.05943a",\r
196         "wires": []\r
197     },\r
198     {\r
199         "id": "ea17361a.fd7708",\r
200         "type": "switchNode",\r
201         "name": "switch vnf_length",\r
202         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
203         "comments": "",\r
204         "outputs": 1,\r
205         "x": 732.2500133514404,\r
206         "y": 101.96873188018799,\r
207         "z": "13a3e634.05943a",\r
208         "wires": [\r
209             [\r
210                 "fb03dd5b.a92d3"\r
211             ]\r
212         ]\r
213     },\r
214     {\r
215         "id": "fb03dd5b.a92d3",\r
216         "type": "other",\r
217         "name": "NULL",\r
218         "xml": "<outcome value=''>\n",\r
219         "comments": "",\r
220         "outputs": 1,\r
221         "x": 918.9166927337646,\r
222         "y": 101.30202960968018,\r
223         "z": "13a3e634.05943a",\r
224         "wires": [\r
225             [\r
226                 "54203a8b.1592b4"\r
227             ]\r
228         ]\r
229     },\r
230     {\r
231         "id": "54203a8b.1592b4",\r
232         "type": "returnFailure",\r
233         "name": "return failure",\r
234         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"There are no VNFs in MD-SAL\" />\n",\r
235         "comments": "",\r
236         "x": 1100.5833187103271,\r
237         "y": 101.30202960968018,\r
238         "z": "13a3e634.05943a",\r
239         "wires": []\r
240     },\r
241     {\r
242         "id": "759de3b6.0709dc",\r
243         "type": "set",\r
244         "name": "copy input data to service data",\r
245         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-id' value='`$prop.vf-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.sdnc-request-header.' value='`$vf-module-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.request-information.' value='`$vf-module-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.service-information.' value='`$vf-module-topology-operation-input.service-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vnf-information.' value='`$vf-module-topology-operation-input.vnf-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n\n\n",\r
246         "comments": "",\r
247         "x": 783.3531398773193,\r
248         "y": 714.4649891853333,\r
249         "z": "13a3e634.05943a",\r
250         "wires": []\r
251     },\r
252     {\r
253         "id": "398e0031.2e059",\r
254         "type": "set",\r
255         "name": "set vf-module-request-input.",\r
256         "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n",\r
257         "comments": "",\r
258         "x": 789.6862964630127,\r
259         "y": 610.122971534729,\r
260         "z": "13a3e634.05943a",\r
261         "wires": []\r
262     },\r
263     {\r
264         "id": "cb5e3f0e.d096d",\r
265         "type": "call",\r
266         "name": "call sdwan-get-vf-module-device-param",\r
267         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-device-param' mode='sync' >\n",\r
268         "comments": "",\r
269         "outputs": 1,\r
270         "x": 815.686674118042,\r
271         "y": 666.1232051849365,\r
272         "z": "13a3e634.05943a",\r
273         "wires": [\r
274             []\r
275         ]\r
276     },\r
277     {\r
278         "id": "115eabc8.0c7c94",\r
279         "type": "set",\r
280         "name": "set vf-module-object-path",\r
281         "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vf-id`'/>    \n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $prop.vf-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",\r
282         "comments": "",\r
283         "x": 778.5000324249268,\r
284         "y": 764.968834400177,\r
285         "z": "13a3e634.05943a",\r
286         "wires": []\r
287     },\r
288     {\r
289         "id": "a28188f1.6060e8",\r
290         "type": "set",\r
291         "name": "set vf-module-level-oper-status",\r
292         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.order-status'  value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.last-rpc-action'  value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.last-action'  value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\n",\r
293         "comments": "",\r
294         "x": 786.0001354217529,\r
295         "y": 812.9687986373901,\r
296         "z": "13a3e634.05943a",\r
297         "wires": []\r
298     },\r
299     {\r
300         "id": "2bd76b30.e44c14",\r
301         "type": "save",\r
302         "name": "save sdwan vpn resource in AAI",\r
303         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n      key='device.device-id = $prop.vf-id' >\n<parameter name='device-id' value='`$prop.vf-id`' />\n<parameter name='esn' value='`$prop.device.esn`' />\n<parameter name='device-name' value='`$prop.device.name`' />\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='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vf-module-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $service-data.vnfs.vnf[$vnf-index].vnf-id  + '/vnf-data/vf-modules/vf-module/' + $prop.vf-id + '/vf-module-data/'` \" />\n",\r
304         "comments": "",\r
305         "outputs": 1,\r
306         "x": 1220.500051498413,\r
307         "y": 838.4687461853027,\r
308         "z": "13a3e634.05943a",\r
309         "wires": [\r
310             []\r
311         ]\r
312     },\r
313     {\r
314         "id": "e24672d6.3f64f",\r
315         "type": "save",\r
316         "name": "save service relationship in AAI",\r
317         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf:relationship-list' \n      key='generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' \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.vf-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"device.device-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vf-id`\" />\n\n",\r
318         "comments": "",\r
319         "outputs": 1,\r
320         "x": 789.4999294281006,\r
321         "y": 906.4687976837158,\r
322         "z": "13a3e634.05943a",\r
323         "wires": [\r
324             []\r
325         ]\r
326     },\r
327     {\r
328         "id": "97ec72bd.6232e",\r
329         "type": "returnSuccess",\r
330         "name": "return success",\r
331         "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",\r
332         "comments": "",\r
333         "x": 738.2224597930908,\r
334         "y": 952.6426405906677,\r
335         "z": "13a3e634.05943a",\r
336         "wires": []\r
337     },\r
338     {\r
339         "id": "5aff085f.4f6678",\r
340         "type": "execute",\r
341         "name": "execute generate-vf-id",\r
342         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vf-id\"/>\n",\r
343         "comments": "",\r
344         "outputs": 1,\r
345         "x": 1265.6667766571045,\r
346         "y": 226.3020715713501,\r
347         "z": "13a3e634.05943a",\r
348         "wires": [\r
349             []\r
350         ]\r
351     },\r
352     {\r
353         "id": "6d401f41.38c65",\r
354         "type": "block",\r
355         "name": "block : atomic",\r
356         "xml": "<block atomic=\"true\">",\r
357         "atomic": "true",\r
358         "outputs": 1,\r
359         "x": 1018.6663036346436,\r
360         "y": 240.9534740447998,\r
361         "z": "13a3e634.05943a",\r
362         "wires": [\r
363             [\r
364                 "5aff085f.4f6678",\r
365                 "5b632a30.5bb984",\r
366                 "3542675.5ce1998"\r
367             ]\r
368         ]\r
369     },\r
370     {\r
371         "id": "931487e.1357f78",\r
372         "type": "set",\r
373         "name": "set prop.vf-id",\r
374         "xml": "<set>\n<parameter name='prop.vf-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n",\r
375         "comments": "",\r
376         "x": 1224.1981716156006,\r
377         "y": 443.98510932922363,\r
378         "z": "13a3e634.05943a",\r
379         "wires": []\r
380     },\r
381     {\r
382         "id": "4589ca44.abd4b4",\r
383         "type": "block",\r
384         "name": "block : atomic",\r
385         "xml": "<block atomic=\"true\">",\r
386         "atomic": "true",\r
387         "outputs": 1,\r
388         "x": 1018.1977977752686,\r
389         "y": 396.9848413467407,\r
390         "z": "13a3e634.05943a",\r
391         "wires": [\r
392             [\r
393                 "931487e.1357f78",\r
394                 "5b632a30.5bb984",\r
395                 "5d9e7b7e.ca4bf4"\r
396             ]\r
397         ]\r
398     },\r
399     {\r
400         "id": "5b632a30.5bb984",\r
401         "type": "block",\r
402         "name": "block : atomic",\r
403         "xml": "<block atomic=\"true\">",\r
404         "atomic": "true",\r
405         "outputs": 1,\r
406         "x": 1253.6978969573975,\r
407         "y": 320.98486518859863,\r
408         "z": "13a3e634.05943a",\r
409         "wires": [\r
410             [\r
411                 "66c1c6a1.0380b8",\r
412                 "7a26fc83.04adb4"\r
413             ]\r
414         ]\r
415     },\r
416     {\r
417         "id": "4aab28a9.38e418",\r
418         "type": "other",\r
419         "name": "NULL",\r
420         "xml": "<outcome value=''>\n",\r
421         "comments": "",\r
422         "outputs": 1,\r
423         "x": 1715.4121894836426,\r
424         "y": 240.12759113311768,\r
425         "z": "13a3e634.05943a",\r
426         "wires": [\r
427             [\r
428                 "6d61baf9.e5ff54"\r
429             ]\r
430         ]\r
431     },\r
432     {\r
433         "id": "6d61baf9.e5ff54",\r
434         "type": "set",\r
435         "name": "set vf-index=0",\r
436         "xml": "<set>\n<parameter name='vf-index' value='0' />\n",\r
437         "comments": "",\r
438         "x": 1863.6978378295898,\r
439         "y": 237.1276454925537,\r
440         "z": "13a3e634.05943a",\r
441         "wires": []\r
442     },\r
443     {\r
444         "id": "31602a2e.23f6d6",\r
445         "type": "other",\r
446         "name": "other",\r
447         "xml": "<outcome value='Other'>\n",\r
448         "comments": "",\r
449         "outputs": 1,\r
450         "x": 1718.8406867980957,\r
451         "y": 285.4133825302124,\r
452         "z": "13a3e634.05943a",\r
453         "wires": [\r
454             [\r
455                 "794d6b8.233bf94"\r
456             ]\r
457         ]\r
458     },\r
459     {\r
460         "id": "794d6b8.233bf94",\r
461         "type": "set",\r
462         "name": "set vf-index = vf_length",\r
463         "xml": "<set>\n<parameter name='vf-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n",\r
464         "comments": "",\r
465         "x": 1902.698429107666,\r
466         "y": 285.69915103912354,\r
467         "z": "13a3e634.05943a",\r
468         "wires": []\r
469     },\r
470     {\r
471         "id": "66c1c6a1.0380b8",\r
472         "type": "set",\r
473         "name": "set new vF_length",\r
474         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index + 1`' />\n",\r
475         "comments": "",\r
476         "x": 1431.6979007720947,\r
477         "y": 349.9848289489746,\r
478         "z": "13a3e634.05943a",\r
479         "wires": []\r
480     },\r
481     {\r
482         "id": "4261b847.26d008",\r
483         "type": "outcomeTrue",\r
484         "name": "true",\r
485         "xml": "<outcome value='true'>\n",\r
486         "comments": "",\r
487         "outputs": 1,\r
488         "x": 1668.269338607788,\r
489         "y": 380.12776374816895,\r
490         "z": "13a3e634.05943a",\r
491         "wires": [\r
492             [\r
493                 "f7fccba6.c15138"\r
494             ]\r
495         ]\r
496     },\r
497     {\r
498         "id": "f7fccba6.c15138",\r
499         "type": "returnFailure",\r
500         "name": "return failure",\r
501         "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",\r
502         "comments": "",\r
503         "x": 1806.8406963348389,\r
504         "y": 380.127724647522,\r
505         "z": "13a3e634.05943a",\r
506         "wires": []\r
507     },\r
508     {\r
509         "id": "5d0b6c.7fe7e494",\r
510         "type": "other",\r
511         "name": "other",\r
512         "xml": "<outcome value='Other'>\n",\r
513         "comments": "",\r
514         "outputs": 1,\r
515         "x": 867.1973781585693,\r
516         "y": 364.9847192764282,\r
517         "z": "13a3e634.05943a",\r
518         "wires": [\r
519             [\r
520                 "4589ca44.abd4b4"\r
521             ]\r
522         ]\r
523     },\r
524     {\r
525         "id": "cd8f5874.903778",\r
526         "type": "outcome",\r
527         "name": "NULL",\r
528         "xml": "<outcome value=''>",\r
529         "comments": "",\r
530         "outputs": 1,\r
531         "x": 870.6662006378174,\r
532         "y": 304.95348167419434,\r
533         "z": "13a3e634.05943a",\r
534         "wires": [\r
535             [\r
536                 "6d401f41.38c65"\r
537             ]\r
538         ]\r
539     },\r
540     {\r
541         "id": "9419aeb4.031d3",\r
542         "type": "comment",\r
543         "name": "if SO provide vf-id use that else create new",\r
544         "info": "",\r
545         "comments": "",\r
546         "x": 1568.1973934173584,\r
547         "y": 200.9847230911255,\r
548         "z": "13a3e634.05943a",\r
549         "wires": []\r
550     },\r
551     {\r
552         "id": "9d805d88.8f8ee",\r
553         "type": "switchNode",\r
554         "name": "switch vf-id",\r
555         "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",\r
556         "comments": "",\r
557         "outputs": 1,\r
558         "x": 729.6661968231201,\r
559         "y": 329.9534902572632,\r
560         "z": "13a3e634.05943a",\r
561         "wires": [\r
562             [\r
563                 "cd8f5874.903778",\r
564                 "5d0b6c.7fe7e494"\r
565             ]\r
566         ]\r
567     },\r
568     {\r
569         "id": "56ec94bf.93da3c",\r
570         "type": "switchNode",\r
571         "name": "switch vnf-index",\r
572         "xml": "<switch test='`$vnf-index`'>\n",\r
573         "comments": "",\r
574         "outputs": 1,\r
575         "x": 729.5312633514404,\r
576         "y": 194.99999713897705,\r
577         "z": "13a3e634.05943a",\r
578         "wires": [\r
579             [\r
580                 "8e07f88.10c5a08"\r
581             ]\r
582         ]\r
583     },\r
584     {\r
585         "id": "8e07f88.10c5a08",\r
586         "type": "other",\r
587         "name": "Null",\r
588         "xml": "<outcome value=''>\n",\r
589         "comments": "",\r
590         "outputs": 1,\r
591         "x": 891.5313091278076,\r
592         "y": 193.99999618530273,\r
593         "z": "13a3e634.05943a",\r
594         "wires": [\r
595             [\r
596                 "33f9f4dc.b667cc"\r
597             ]\r
598         ]\r
599     },\r
600     {\r
601         "id": "33f9f4dc.b667cc",\r
602         "type": "returnFailure",\r
603         "name": "return failure",\r
604         "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 not found in service-data\" />\n",\r
605         "comments": "",\r
606         "x": 1040.781400680542,\r
607         "y": 191.77787399291992,\r
608         "z": "13a3e634.05943a",\r
609         "wires": []\r
610     },\r
611     {\r
612         "id": "7a26fc83.04adb4",\r
613         "type": "switchNode",\r
614         "name": "switch vf-modules.vf-module_length",\r
615         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
616         "comments": "",\r
617         "outputs": 1,\r
618         "x": 1493.5312404632568,\r
619         "y": 266.0000123977661,\r
620         "z": "13a3e634.05943a",\r
621         "wires": [\r
622             [\r
623                 "4aab28a9.38e418",\r
624                 "31602a2e.23f6d6"\r
625             ]\r
626         ]\r
627     },\r
628     {\r
629         "id": "98ab03a3.4fb31",\r
630         "type": "switchNode",\r
631         "name": "switch vf-module-id found",\r
632         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",\r
633         "comments": "",\r
634         "outputs": 1,\r
635         "x": 1485.5312404632568,\r
636         "y": 388.49998664855957,\r
637         "z": "13a3e634.05943a",\r
638         "wires": [\r
639             [\r
640                 "4261b847.26d008"\r
641             ]\r
642         ]\r
643     },\r
644     {\r
645         "id": "5d9e7b7e.ca4bf4",\r
646         "type": "for",\r
647         "name": "for each existing vf-index",\r
648         "xml": "<for index='idx' start='0' end='`$vf-index`' >\n",\r
649         "comments": "",\r
650         "outputs": 1,\r
651         "x": 1249.5312404632568,\r
652         "y": 392.49998664855957,\r
653         "z": "13a3e634.05943a",\r
654         "wires": [\r
655             [\r
656                 "98ab03a3.4fb31"\r
657             ]\r
658         ]\r
659     },\r
660     {\r
661         "id": "64fa5b44.3987c4",\r
662         "type": "set",\r
663         "name": "set prop.sdncCreate=false",\r
664         "xml": "<set>\n<parameter name='prop.sdncCreate' value='false' />\n",\r
665         "comments": "",\r
666         "x": 760.0312404632568,\r
667         "y": 58,\r
668         "z": "13a3e634.05943a",\r
669         "wires": []\r
670     },\r
671     {\r
672         "id": "3542675.5ce1998",\r
673         "type": "set",\r
674         "name": "set prop.sdncCreate=true",\r
675         "xml": "<set>\n<parameter name='prop.sdncCreate' value='true' />\n",\r
676         "comments": "",\r
677         "x": 1279.0312480926514,\r
678         "y": 188.99999904632568,\r
679         "z": "13a3e634.05943a",\r
680         "wires": []\r
681     },\r
682     {\r
683         "id": "8956e9de.67f788",\r
684         "type": "switchNode",\r
685         "name": "switch prop.sdncCreate",\r
686         "xml": "<switch test='`$prop.sdncCreate`'>\n",\r
687         "comments": "",\r
688         "outputs": 1,\r
689         "x": 768.0313053131104,\r
690         "y": 862.0000276565552,\r
691         "z": "13a3e634.05943a",\r
692         "wires": [\r
693             [\r
694                 "530d4a6f.95a5a4",\r
695                 "ed2fc8ce.6d54b8"\r
696             ]\r
697         ]\r
698     },\r
699     {\r
700         "id": "ed2fc8ce.6d54b8",\r
701         "type": "outcomeFalse",\r
702         "name": "false",\r
703         "xml": "<outcome value='false'>\n",\r
704         "comments": "",\r
705         "outputs": 1,\r
706         "x": 983.0313034057617,\r
707         "y": 873.0000276565552,\r
708         "z": "13a3e634.05943a",\r
709         "wires": [\r
710             [\r
711                 "f6984691.7e9e18"\r
712             ]\r
713         ]\r
714     },\r
715     {\r
716         "id": "530d4a6f.95a5a4",\r
717         "type": "outcomeTrue",\r
718         "name": "true",\r
719         "xml": "<outcome value='true'>\n",\r
720         "comments": "",\r
721         "outputs": 1,\r
722         "x": 986.0313034057617,\r
723         "y": 834.9999961853027,\r
724         "z": "13a3e634.05943a",\r
725         "wires": [\r
726             [\r
727                 "2bd76b30.e44c14"\r
728             ]\r
729         ]\r
730     },\r
731     {\r
732         "id": "f6984691.7e9e18",\r
733         "type": "save",\r
734         "name": "update sdwan vpn resource in AAI",\r
735         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n      key='device.device-id = $prop.vf-id' >\n<parameter name='device-id' value='`$prop.vf-id`' />\n<parameter name='esn' value='`$prop.device.esn`' />\n<parameter name='device-name' value='`$prop.device.name`' />\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='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vf-module-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $service-data.vnfs.vnf[$vnf-index].vnf-id  + '/vnf-data/vf-modules/vf-module/' + $prop.vf-id + '/vf-module-data/'` \" />\n",\r
736         "comments": "",\r
737         "outputs": 1,\r
738         "x": 1217.0312480926514,\r
739         "y": 878.9999990463257,\r
740         "z": "13a3e634.05943a",\r
741         "wires": [\r
742             []\r
743         ]\r
744     }\r
745 ]