4760d35a9aaf22d4e39b5e6ee4c3f24b871897eb
[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": "ad9a9168.e57ff",\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": 956.03125,\r
10         "y": 159.13152408599854,\r
11         "z": "46bf2b6e.2c0e64",\r
12         "wires": [\r
13             [\r
14                 "e7246404.3ab3d8"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "6ad25904.845b18",\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": 228.7017364501953,\r
28         "y": 186.96871662139893,\r
29         "z": "46bf2b6e.2c0e64",\r
30         "wires": [\r
31             [\r
32                 "f16fce6c.5d5ba"\r
33             ]\r
34         ]\r
35     },\r
36     {\r
37         "id": "f16fce6c.5d5ba",\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": 227.7017364501953,\r
44         "y": 286.9687166213989,\r
45         "z": "46bf2b6e.2c0e64",\r
46         "wires": [\r
47             [\r
48                 "c112bcf.84b4e4"\r
49             ]\r
50         ]\r
51     },\r
52     {\r
53         "id": "1a36f303.fc1c1d",\r
54         "type": "dgstart",\r
55         "name": "DGSTART",\r
56         "outputs": 1,\r
57         "x": 114.20173835754395,\r
58         "y": 79.96872520446777,\r
59         "z": "46bf2b6e.2c0e64",\r
60         "wires": [\r
61             [\r
62                 "6ad25904.845b18"\r
63             ]\r
64         ]\r
65     },\r
66     {\r
67         "id": "c112bcf.84b4e4",\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": 386.70172119140625,\r
75         "y": 402.9687252044678,\r
76         "z": "46bf2b6e.2c0e64",\r
77         "wires": [\r
78             [\r
79                 "abed0b7b.e9c438",\r
80                 "724392ca.bd7b5c",\r
81                 "2b72757.931558a",\r
82                 "a49a2243.bbcb2",\r
83                 "c992605b.552a5",\r
84                 "40876e67.4cc8d",\r
85                 "86ee3fd8.45a8b",\r
86                 "414cae1d.205f6",\r
87                 "7ba39512.c516ac",\r
88                 "3a2a0968.648d36",\r
89                 "7024b9ac.3160d8",\r
90                 "fdab20c0.e8295",\r
91                 "d3c28e8a.2aecc",\r
92                 "b7d7095a.45e048"\r
93             ]\r
94         ]\r
95     },\r
96     {\r
97         "id": "abed0b7b.e9c438",\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": 704.0311584472656,\r
104         "y": 160.4648609161377,\r
105         "z": "46bf2b6e.2c0e64",\r
106         "wires": [\r
107             [\r
108                 "ad9a9168.e57ff"\r
109             ]\r
110         ]\r
111     },\r
112     {\r
113         "id": "4ed9f1d2.fc2b7",\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": 1327.697738647461,\r
119         "y": 161.13152694702148,\r
120         "z": "46bf2b6e.2c0e64",\r
121         "wires": []\r
122     },\r
123     {\r
124         "id": "e7246404.3ab3d8",\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": 1174.3645668029785,\r
131         "y": 161.13150596618652,\r
132         "z": "46bf2b6e.2c0e64",\r
133         "wires": [\r
134             [\r
135                 "4ed9f1d2.fc2b7"\r
136             ]\r
137         ]\r
138     },\r
139     {\r
140         "id": "2b72757.931558a",\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": 784.9518966674805,\r
147         "y": 561.6354055404663,\r
148         "z": "46bf2b6e.2c0e64",\r
149         "wires": [\r
150             [\r
151                 "1cf539f3.af1b96"\r
152             ]\r
153         ]\r
154     },\r
155     {\r
156         "id": "1cf539f3.af1b96",\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": 999.7302398681641,\r
164         "y": 559.1909894943237,\r
165         "z": "46bf2b6e.2c0e64",\r
166         "wires": [\r
167             [\r
168                 "1a9f780a.a03398",\r
169                 "dcb3e18.352e72"\r
170             ]\r
171         ]\r
172     },\r
173     {\r
174         "id": "1a9f780a.a03398",\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": 1195.986442565918,\r
181         "y": 536.9391279220581,\r
182         "z": "46bf2b6e.2c0e64",\r
183         "wires": [\r
184             []\r
185         ]\r
186     },\r
187     {\r
188         "id": "dcb3e18.352e72",\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": 1165.4308700561523,\r
194         "y": 573.9392442703247,\r
195         "z": "46bf2b6e.2c0e64",\r
196         "wires": []\r
197     },\r
198     {\r
199         "id": "724392ca.bd7b5c",\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": 718.4517517089844,\r
206         "y": 115.96872997283936,\r
207         "z": "46bf2b6e.2c0e64",\r
208         "wires": [\r
209             [\r
210                 "b66cc394.12346"\r
211             ]\r
212         ]\r
213     },\r
214     {\r
215         "id": "b66cc394.12346",\r
216         "type": "other",\r
217         "name": "NULL",\r
218         "xml": "<outcome value=''>\n",\r
219         "comments": "",\r
220         "outputs": 1,\r
221         "x": 905.1184310913086,\r
222         "y": 115.30202770233154,\r
223         "z": "46bf2b6e.2c0e64",\r
224         "wires": [\r
225             [\r
226                 "c5ad3c03.3e718"\r
227             ]\r
228         ]\r
229     },\r
230     {\r
231         "id": "c5ad3c03.3e718",\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": 1086.785057067871,\r
237         "y": 115.30202770233154,\r
238         "z": "46bf2b6e.2c0e64",\r
239         "wires": []\r
240     },\r
241     {\r
242         "id": "40876e67.4cc8d",\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": 769.5548782348633,\r
248         "y": 728.4649872779846,\r
249         "z": "46bf2b6e.2c0e64",\r
250         "wires": []\r
251     },\r
252     {\r
253         "id": "a49a2243.bbcb2",\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": 775.8880348205566,\r
259         "y": 624.1229696273804,\r
260         "z": "46bf2b6e.2c0e64",\r
261         "wires": []\r
262     },\r
263     {\r
264         "id": "c992605b.552a5",\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": 801.8884124755859,\r
271         "y": 680.1232032775879,\r
272         "z": "46bf2b6e.2c0e64",\r
273         "wires": [\r
274             []\r
275         ]\r
276     },\r
277     {\r
278         "id": "86ee3fd8.45a8b",\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": 764.7017707824707,\r
284         "y": 778.9688324928284,\r
285         "z": "46bf2b6e.2c0e64",\r
286         "wires": []\r
287     },\r
288     {\r
289         "id": "414cae1d.205f6",\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": 772.2018737792969,\r
295         "y": 826.9687967300415,\r
296         "z": "46bf2b6e.2c0e64",\r
297         "wires": []\r
298     },\r
299     {\r
300         "id": "c8a9b81e.4dea68",\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-version`' /-->\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": 1206.701789855957,\r
307         "y": 852.4687442779541,\r
308         "z": "46bf2b6e.2c0e64",\r
309         "wires": [\r
310             []\r
311         ]\r
312     },\r
313     {\r
314         "id": "3a2a0968.648d36",\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": 775.7016677856445,\r
321         "y": 920.4687957763672,\r
322         "z": "46bf2b6e.2c0e64",\r
323         "wires": [\r
324             []\r
325         ]\r
326     },\r
327     {\r
328         "id": "7ba39512.c516ac",\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": 724.4241981506348,\r
334         "y": 966.6426386833191,\r
335         "z": "46bf2b6e.2c0e64",\r
336         "wires": []\r
337     },\r
338     {\r
339         "id": "faa86376.49175",\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": 1251.8685150146484,\r
346         "y": 240.30206966400146,\r
347         "z": "46bf2b6e.2c0e64",\r
348         "wires": [\r
349             []\r
350         ]\r
351     },\r
352     {\r
353         "id": "491e4f90.e2d44",\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": 1004.8680419921875,\r
360         "y": 254.95347213745117,\r
361         "z": "46bf2b6e.2c0e64",\r
362         "wires": [\r
363             [\r
364                 "faa86376.49175",\r
365                 "1889b968.9cafa7",\r
366                 "c8eb51dd.8bc9f"\r
367             ]\r
368         ]\r
369     },\r
370     {\r
371         "id": "74ee118f.3bdb3",\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": 1210.3999099731445,\r
377         "y": 457.985107421875,\r
378         "z": "46bf2b6e.2c0e64",\r
379         "wires": []\r
380     },\r
381     {\r
382         "id": "dfbd61c4.ba851",\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": 1004.3995361328125,\r
389         "y": 410.9848394393921,\r
390         "z": "46bf2b6e.2c0e64",\r
391         "wires": [\r
392             [\r
393                 "74ee118f.3bdb3",\r
394                 "1889b968.9cafa7",\r
395                 "f58396e4.0282e8"\r
396             ]\r
397         ]\r
398     },\r
399     {\r
400         "id": "1889b968.9cafa7",\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": 1239.8996353149414,\r
407         "y": 334.98486328125,\r
408         "z": "46bf2b6e.2c0e64",\r
409         "wires": [\r
410             [\r
411                 "ecce0898.ef26d8",\r
412                 "e6c1d3e3.fb47b"\r
413             ]\r
414         ]\r
415     },\r
416     {\r
417         "id": "e28abe4b.99802",\r
418         "type": "other",\r
419         "name": "NULL",\r
420         "xml": "<outcome value=''>\n",\r
421         "comments": "",\r
422         "outputs": 1,\r
423         "x": 1701.6139278411865,\r
424         "y": 254.12758922576904,\r
425         "z": "46bf2b6e.2c0e64",\r
426         "wires": [\r
427             [\r
428                 "4d6a716f.84ac8"\r
429             ]\r
430         ]\r
431     },\r
432     {\r
433         "id": "4d6a716f.84ac8",\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": 1849.8995761871338,\r
439         "y": 251.12764358520508,\r
440         "z": "46bf2b6e.2c0e64",\r
441         "wires": []\r
442     },\r
443     {\r
444         "id": "ad9a94b.6789668",\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": 1705.0424251556396,\r
451         "y": 299.41338062286377,\r
452         "z": "46bf2b6e.2c0e64",\r
453         "wires": [\r
454             [\r
455                 "aa7a0bdb.e96638"\r
456             ]\r
457         ]\r
458     },\r
459     {\r
460         "id": "aa7a0bdb.e96638",\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": 1888.90016746521,\r
466         "y": 299.6991491317749,\r
467         "z": "46bf2b6e.2c0e64",\r
468         "wires": []\r
469     },\r
470     {\r
471         "id": "ecce0898.ef26d8",\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": 1417.8996391296387,\r
477         "y": 363.984827041626,\r
478         "z": "46bf2b6e.2c0e64",\r
479         "wires": []\r
480     },\r
481     {\r
482         "id": "b86e63fd.fc195",\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": 1654.471076965332,\r
489         "y": 394.1277618408203,\r
490         "z": "46bf2b6e.2c0e64",\r
491         "wires": [\r
492             [\r
493                 "5a9cb21d.1f494c"\r
494             ]\r
495         ]\r
496     },\r
497     {\r
498         "id": "5a9cb21d.1f494c",\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": 1793.0424346923828,\r
504         "y": 394.12772274017334,\r
505         "z": "46bf2b6e.2c0e64",\r
506         "wires": []\r
507     },\r
508     {\r
509         "id": "2f10259c.95f9fa",\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": 853.3991165161133,\r
516         "y": 378.9847173690796,\r
517         "z": "46bf2b6e.2c0e64",\r
518         "wires": [\r
519             [\r
520                 "dfbd61c4.ba851"\r
521             ]\r
522         ]\r
523     },\r
524     {\r
525         "id": "c5868d60.4eb9c",\r
526         "type": "outcome",\r
527         "name": "NULL",\r
528         "xml": "<outcome value=''>",\r
529         "comments": "",\r
530         "outputs": 1,\r
531         "x": 856.8679389953613,\r
532         "y": 318.9534797668457,\r
533         "z": "46bf2b6e.2c0e64",\r
534         "wires": [\r
535             [\r
536                 "491e4f90.e2d44"\r
537             ]\r
538         ]\r
539     },\r
540     {\r
541         "id": "585f0966.3b4ab8",\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": 1554.3991317749023,\r
547         "y": 214.98472118377686,\r
548         "z": "46bf2b6e.2c0e64",\r
549         "wires": []\r
550     },\r
551     {\r
552         "id": "fdab20c0.e8295",\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": 715.8679351806641,\r
559         "y": 343.95348834991455,\r
560         "z": "46bf2b6e.2c0e64",\r
561         "wires": [\r
562             [\r
563                 "c5868d60.4eb9c",\r
564                 "2f10259c.95f9fa"\r
565             ]\r
566         ]\r
567     },\r
568     {\r
569         "id": "7024b9ac.3160d8",\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": 715.7330017089844,\r
576         "y": 208.99999523162842,\r
577         "z": "46bf2b6e.2c0e64",\r
578         "wires": [\r
579             [\r
580                 "a1384c59.cdef8"\r
581             ]\r
582         ]\r
583     },\r
584     {\r
585         "id": "a1384c59.cdef8",\r
586         "type": "other",\r
587         "name": "Null",\r
588         "xml": "<outcome value=''>\n",\r
589         "comments": "",\r
590         "outputs": 1,\r
591         "x": 877.7330474853516,\r
592         "y": 207.9999942779541,\r
593         "z": "46bf2b6e.2c0e64",\r
594         "wires": [\r
595             [\r
596                 "b60890ce.7212a"\r
597             ]\r
598         ]\r
599     },\r
600     {\r
601         "id": "b60890ce.7212a",\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": 1026.983139038086,\r
607         "y": 205.7778720855713,\r
608         "z": "46bf2b6e.2c0e64",\r
609         "wires": []\r
610     },\r
611     {\r
612         "id": "e6c1d3e3.fb47b",\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": 1479.7329788208008,\r
619         "y": 280.0000104904175,\r
620         "z": "46bf2b6e.2c0e64",\r
621         "wires": [\r
622             [\r
623                 "e28abe4b.99802",\r
624                 "ad9a94b.6789668"\r
625             ]\r
626         ]\r
627     },\r
628     {\r
629         "id": "62be0465.8c201c",\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": 1471.7329788208008,\r
636         "y": 402.49998474121094,\r
637         "z": "46bf2b6e.2c0e64",\r
638         "wires": [\r
639             [\r
640                 "b86e63fd.fc195"\r
641             ]\r
642         ]\r
643     },\r
644     {\r
645         "id": "f58396e4.0282e8",\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": 1235.7329788208008,\r
652         "y": 406.49998474121094,\r
653         "z": "46bf2b6e.2c0e64",\r
654         "wires": [\r
655             [\r
656                 "62be0465.8c201c"\r
657             ]\r
658         ]\r
659     },\r
660     {\r
661         "id": "d3c28e8a.2aecc",\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": 746.2329788208008,\r
667         "y": 71.99999809265137,\r
668         "z": "46bf2b6e.2c0e64",\r
669         "wires": []\r
670     },\r
671     {\r
672         "id": "c8eb51dd.8bc9f",\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": 1265.2329864501953,\r
678         "y": 202.99999713897705,\r
679         "z": "46bf2b6e.2c0e64",\r
680         "wires": []\r
681     },\r
682     {\r
683         "id": "b7d7095a.45e048",\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": 754.2330436706543,\r
690         "y": 876.0000257492065,\r
691         "z": "46bf2b6e.2c0e64",\r
692         "wires": [\r
693             [\r
694                 "bb597028.866e9",\r
695                 "18aecad0.0cad25"\r
696             ]\r
697         ]\r
698     },\r
699     {\r
700         "id": "18aecad0.0cad25",\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": 969.2330417633057,\r
707         "y": 887.0000257492065,\r
708         "z": "46bf2b6e.2c0e64",\r
709         "wires": [\r
710             [\r
711                 "8ea3c05b.19b31"\r
712             ]\r
713         ]\r
714     },\r
715     {\r
716         "id": "bb597028.866e9",\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": 972.2330417633057,\r
723         "y": 848.9999942779541,\r
724         "z": "46bf2b6e.2c0e64",\r
725         "wires": [\r
726             [\r
727                 "c8a9b81e.4dea68"\r
728             ]\r
729         ]\r
730     },\r
731     {\r
732         "id": "8ea3c05b.19b31",\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-version`' />\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": 1203.2329864501953,\r
739         "y": 892.999997138977,\r
740         "z": "46bf2b6e.2c0e64",\r
741         "wires": [\r
742             []\r
743         ]\r
744     }\r
745 ]