Fix SDWAN device DG to create AAI resource
[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": "5c12f35e.e1cabc",\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": 887.3294982910156,\r
10         "y": 250.16278743743896,\r
11         "z": "67d8f5f.109b30c",\r
12         "wires": [\r
13             [\r
14                 "fc9a82de.84ce"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "b009e5d5.1d5ff8",\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": 177,\r
28         "y": 143.99999141693115,\r
29         "z": "67d8f5f.109b30c",\r
30         "wires": [\r
31             [\r
32                 "9b496cef.08cf1"\r
33             ]\r
34         ]\r
35     },\r
36     {\r
37         "id": "9b496cef.08cf1",\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": 176,\r
44         "y": 243.99999141693115,\r
45         "z": "67d8f5f.109b30c",\r
46         "wires": [\r
47             [\r
48                 "a4608885.5f82c8"\r
49             ]\r
50         ]\r
51     },\r
52     {\r
53         "id": "7da866ae.544bb8",\r
54         "type": "dgstart",\r
55         "name": "DGSTART",\r
56         "outputs": 1,\r
57         "x": 98.50000381469727,\r
58         "y": 39,\r
59         "z": "67d8f5f.109b30c",\r
60         "wires": [\r
61             [\r
62                 "b009e5d5.1d5ff8"\r
63             ]\r
64         ]\r
65     },\r
66     {\r
67         "id": "a4608885.5f82c8",\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": 334.99998474121094,\r
75         "y": 360,\r
76         "z": "67d8f5f.109b30c",\r
77         "wires": [\r
78             [\r
79                 "4e77e130.304fb",\r
80                 "802c77ca.22e778",\r
81                 "9922275a.527928",\r
82                 "e01d2f82.7429f",\r
83                 "a8f9e83.8a6e918",\r
84                 "c8a186f7.659098",\r
85                 "b9b958fd.141f08",\r
86                 "f27c9cac.ebc18",\r
87                 "35a34bb1.948374",\r
88                 "178a7bac.307b74",\r
89                 "7fbeb541.aa905c",\r
90                 "4845313f.7a00d",\r
91                 "e8cf2ce.61834d",\r
92                 "d9a88b51.5c3ff8"\r
93             ]\r
94         ]\r
95     },\r
96     {\r
97         "id": "4e77e130.304fb",\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": 635.3294067382812,\r
104         "y": 251.49612426757812,\r
105         "z": "67d8f5f.109b30c",\r
106         "wires": [\r
107             [\r
108                 "5c12f35e.e1cabc"\r
109             ]\r
110         ]\r
111     },\r
112     {\r
113         "id": "ddad9e6f.97581",\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": 1258.9959869384766,\r
119         "y": 252.1627902984619,\r
120         "z": "67d8f5f.109b30c",\r
121         "wires": []\r
122     },\r
123     {\r
124         "id": "fc9a82de.84ce",\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": 1105.6628150939941,\r
131         "y": 252.16276931762695,\r
132         "z": "67d8f5f.109b30c",\r
133         "wires": [\r
134             [\r
135                 "ddad9e6f.97581"\r
136             ]\r
137         ]\r
138     },\r
139     {\r
140         "id": "e01d2f82.7429f",\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": 709.2501907348633,\r
147         "y": 473.66665744781494,\r
148         "z": "67d8f5f.109b30c",\r
149         "wires": [\r
150             [\r
151                 "7ea0d8c4.d056e8"\r
152             ]\r
153         ]\r
154     },\r
155     {\r
156         "id": "7ea0d8c4.d056e8",\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": 924.0285339355469,\r
164         "y": 471.22224140167236,\r
165         "z": "67d8f5f.109b30c",\r
166         "wires": [\r
167             [\r
168                 "c6b87ab0.44cce8",\r
169                 "f6199a92.b6bb08"\r
170             ]\r
171         ]\r
172     },\r
173     {\r
174         "id": "c6b87ab0.44cce8",\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": 1120.2847366333008,\r
181         "y": 448.97037982940674,\r
182         "z": "67d8f5f.109b30c",\r
183         "wires": [\r
184             []\r
185         ]\r
186     },\r
187     {\r
188         "id": "f6199a92.b6bb08",\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": 1089.7291641235352,\r
194         "y": 485.97049617767334,\r
195         "z": "67d8f5f.109b30c",\r
196         "wires": []\r
197     },\r
198     {\r
199         "id": "92e456fa.39e618",\r
200         "type": "comment",\r
201         "name": "Take the parameter names by removing prefix",\r
202         "info": "",\r
203         "comments": "",\r
204         "x": 1093.2503929138184,\r
205         "y": 408.3333258628845,\r
206         "z": "67d8f5f.109b30c",\r
207         "wires": []\r
208     },\r
209     {\r
210         "id": "802c77ca.22e778",\r
211         "type": "switchNode",\r
212         "name": "switch vnf_length",\r
213         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
214         "comments": "",\r
215         "outputs": 1,\r
216         "x": 649.75,\r
217         "y": 206.99999332427979,\r
218         "z": "67d8f5f.109b30c",\r
219         "wires": [\r
220             [\r
221                 "b9775757.c586e8"\r
222             ]\r
223         ]\r
224     },\r
225     {\r
226         "id": "b9775757.c586e8",\r
227         "type": "other",\r
228         "name": "NULL",\r
229         "xml": "<outcome value=''>\n",\r
230         "comments": "",\r
231         "outputs": 1,\r
232         "x": 836.4166793823242,\r
233         "y": 206.33329105377197,\r
234         "z": "67d8f5f.109b30c",\r
235         "wires": [\r
236             [\r
237                 "8ca0a76c.6a9638"\r
238             ]\r
239         ]\r
240     },\r
241     {\r
242         "id": "8ca0a76c.6a9638",\r
243         "type": "returnFailure",\r
244         "name": "return failure",\r
245         "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
246         "comments": "",\r
247         "x": 1018.0833053588867,\r
248         "y": 206.33329105377197,\r
249         "z": "67d8f5f.109b30c",\r
250         "wires": []\r
251     },\r
252     {\r
253         "id": "9922275a.527928",\r
254         "type": "switchNode",\r
255         "name": "switch vf-modules.vf-module_length",\r
256         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
257         "comments": "",\r
258         "outputs": 1,\r
259         "x": 690.9999895095825,\r
260         "y": 326.9999942779541,\r
261         "z": "67d8f5f.109b30c",\r
262         "wires": [\r
263             [\r
264                 "c5166da1.64b87",\r
265                 "f58b3753.891bc8"\r
266             ]\r
267         ]\r
268     },\r
269     {\r
270         "id": "c5166da1.64b87",\r
271         "type": "other",\r
272         "name": "Null",\r
273         "xml": "<outcome value=''>\n",\r
274         "comments": "",\r
275         "outputs": 1,\r
276         "x": 922,\r
277         "y": 302.99999141693115,\r
278         "z": "67d8f5f.109b30c",\r
279         "wires": [\r
280             [\r
281                 "4d85b0fa.e45f4"\r
282             ]\r
283         ]\r
284     },\r
285     {\r
286         "id": "f58b3753.891bc8",\r
287         "type": "other",\r
288         "name": "other",\r
289         "xml": "<outcome value='Other'>\n",\r
290         "comments": "",\r
291         "outputs": 1,\r
292         "x": 922,\r
293         "y": 342.99999141693115,\r
294         "z": "67d8f5f.109b30c",\r
295         "wires": [\r
296             [\r
297                 "3cc5230a.5b2c3c"\r
298             ]\r
299         ]\r
300     },\r
301     {\r
302         "id": "4d85b0fa.e45f4",\r
303         "type": "set",\r
304         "name": "set vf-index",\r
305         "xml": "<set>\n<parameter name='vf-index' value='0' />\n",\r
306         "comments": "",\r
307         "x": 1064.5,\r
308         "y": 302.99999141693115,\r
309         "z": "67d8f5f.109b30c",\r
310         "wires": []\r
311     },\r
312     {\r
313         "id": "3cc5230a.5b2c3c",\r
314         "type": "block",\r
315         "name": "block",\r
316         "xml": "<block>\n",\r
317         "atomic": "false",\r
318         "comments": "",\r
319         "outputs": 1,\r
320         "x": 1066.3570442199707,\r
321         "y": 342.93650341033936,\r
322         "z": "67d8f5f.109b30c",\r
323         "wires": [\r
324             [\r
325                 "1560cc74.e1f714",\r
326                 "105e52c3.2d94dd"\r
327             ]\r
328         ]\r
329     },\r
330     {\r
331         "id": "105e52c3.2d94dd",\r
332         "type": "set",\r
333         "name": "set vf-index",\r
334         "xml": "<set>\n<parameter name='vf-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n\n",\r
335         "comments": "",\r
336         "x": 1219.055519104004,\r
337         "y": 312.5556021030061,\r
338         "z": "67d8f5f.109b30c",\r
339         "wires": []\r
340     },\r
341     {\r
342         "id": "1560cc74.e1f714",\r
343         "type": "for",\r
344         "name": "for each existing vf-index",\r
345         "xml": "<for index='idx' start='0' end='`$vf-index`' >\n",\r
346         "comments": "",\r
347         "outputs": 1,\r
348         "x": 1275.4840240478516,\r
349         "y": 365.7777318954468,\r
350         "z": "67d8f5f.109b30c",\r
351         "wires": [\r
352             [\r
353                 "e9396ecf.61386"\r
354             ]\r
355         ]\r
356     },\r
357     {\r
358         "id": "9bfcdd3d.e8854",\r
359         "type": "comment",\r
360         "name": "make sure this network doesn't exist already",\r
361         "info": "",\r
362         "comments": "",\r
363         "x": 1499.1347541809082,\r
364         "y": 324.0317893028259,\r
365         "z": "67d8f5f.109b30c",\r
366         "wires": []\r
367     },\r
368     {\r
369         "id": "e9396ecf.61386",\r
370         "type": "switchNode",\r
371         "name": "switch vf-module-id found",\r
372         "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
373         "comments": "",\r
374         "outputs": 1,\r
375         "x": 1550.7697448730469,\r
376         "y": 365.34923458099365,\r
377         "z": "67d8f5f.109b30c",\r
378         "wires": [\r
379             [\r
380                 "7c76b41d.ea06ac"\r
381             ]\r
382         ]\r
383     },\r
384     {\r
385         "id": "7c76b41d.ea06ac",\r
386         "type": "outcomeTrue",\r
387         "name": "true",\r
388         "xml": "<outcome value='true'>\n",\r
389         "comments": "",\r
390         "outputs": 1,\r
391         "x": 1451.499942779541,\r
392         "y": 423.9206657409668,\r
393         "z": "67d8f5f.109b30c",\r
394         "wires": [\r
395             [\r
396                 "91b09a0a.6c6428"\r
397             ]\r
398         ]\r
399     },\r
400     {\r
401         "id": "91b09a0a.6c6428",\r
402         "type": "returnFailure",\r
403         "name": "return failure",\r
404         "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=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id already found in service-data\" />\n",\r
405         "comments": "",\r
406         "x": 1599.2500457763672,\r
407         "y": 423.7778578097932,\r
408         "z": "67d8f5f.109b30c",\r
409         "wires": []\r
410     },\r
411     {\r
412         "id": "35a34bb1.948374",\r
413         "type": "set",\r
414         "name": "copy input data to service data",\r
415         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-id' value='`$prop.device-vf-index`' />\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<!--parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-topology.' value='`$tmp.vf-module-topology.`' /-->\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index+1`' />\n\n",\r
416         "comments": "",\r
417         "x": 702.8531951904297,\r
418         "y": 753.496214389801,\r
419         "z": "67d8f5f.109b30c",\r
420         "wires": []\r
421     },\r
422     {\r
423         "id": "f27c9cac.ebc18",\r
424         "type": "execute",\r
425         "name": "execute generate-vf-module-index",\r
426         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.device-vf-index\"/>\n",\r
427         "comments": "",\r
428         "outputs": 1,\r
429         "x": 711.1866912841797,\r
430         "y": 700.162947177887,\r
431         "z": "67d8f5f.109b30c",\r
432         "wires": [\r
433             []\r
434         ]\r
435     },\r
436     {\r
437         "id": "b9b958fd.141f08",\r
438         "type": "set",\r
439         "name": "set new vf-module_length",\r
440         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index + 1`' />",\r
441         "comments": "",\r
442         "x": 685.1866683959961,\r
443         "y": 646.1628408432007,\r
444         "z": "67d8f5f.109b30c",\r
445         "wires": []\r
446     },\r
447     {\r
448         "id": "a8f9e83.8a6e918",\r
449         "type": "set",\r
450         "name": "set vf-module-request-input.",\r
451         "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n",\r
452         "comments": "",\r
453         "x": 700.1863288879395,\r
454         "y": 536.154221534729,\r
455         "z": "67d8f5f.109b30c",\r
456         "wires": []\r
457     },\r
458     {\r
459         "id": "c8a186f7.659098",\r
460         "type": "call",\r
461         "name": "call sdwan-get-vf-module-device-param",\r
462         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-device-param' mode='sync' >\n",\r
463         "comments": "",\r
464         "outputs": 1,\r
465         "x": 726.1867065429688,\r
466         "y": 592.1544551849365,\r
467         "z": "67d8f5f.109b30c",\r
468         "wires": [\r
469             []\r
470         ]\r
471     },\r
472     {\r
473         "id": "178a7bac.307b74",\r
474         "type": "set",\r
475         "name": "set vf-module-object-path",\r
476         "xml": "<set>\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.device-vf-index\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
477         "comments": "",\r
478         "x": 698.0000877380371,\r
479         "y": 804.0000596046448,\r
480         "z": "67d8f5f.109b30c",\r
481         "wires": []\r
482     },\r
483     {\r
484         "id": "7fbeb541.aa905c",\r
485         "type": "set",\r
486         "name": "set vf-module-level-oper-status",\r
487         "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
488         "comments": "",\r
489         "x": 705.5001907348633,\r
490         "y": 852.0000238418579,\r
491         "z": "67d8f5f.109b30c",\r
492         "wires": []\r
493     },\r
494     {\r
495         "id": "e8cf2ce.61834d",\r
496         "type": "save",\r
497         "name": "save sdwan vpn resource in AAI",\r
498         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n      key='device.device-id = $prop.device-vf-index' >\n<parameter name='device-id' value='`$prop.device-vf-index`' />\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.device-vf-index + '/vf-module-data/'` \" />\n",\r
499         "comments": "",\r
500         "outputs": 1,\r
501         "x": 713.0001373291016,\r
502         "y": 910.4999666213989,\r
503         "z": "67d8f5f.109b30c",\r
504         "wires": [\r
505             []\r
506         ]\r
507     },\r
508     {\r
509         "id": "d9a88b51.5c3ff8",\r
510         "type": "save",\r
511         "name": "save service relationship in AAI",\r
512         "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.device-vf-index`\" />\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.device-vf-index`\" />\n\n",\r
513         "comments": "",\r
514         "outputs": 1,\r
515         "x": 708.9999847412109,\r
516         "y": 945.5000228881836,\r
517         "z": "67d8f5f.109b30c",\r
518         "wires": [\r
519             []\r
520         ]\r
521     },\r
522     {\r
523         "id": "4845313f.7a00d",\r
524         "type": "returnSuccess",\r
525         "name": "return success",\r
526         "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
527         "comments": "",\r
528         "x": 657.7225151062012,\r
529         "y": 991.6738657951355,\r
530         "z": "67d8f5f.109b30c",\r
531         "wires": []\r
532     },\r
533     {\r
534         "id": "b5bea2af.4d20d",\r
535         "type": "comment",\r
536         "name": "TODO: if SO passes vnf-id, need to update prop.sdncCreate as true",\r
537         "info": "if SO passes vnf-id, need to update prop.sdncCreate as true",\r
538         "comments": "",\r
539         "x": 806.6974792480469,\r
540         "y": 141.0160083770752,\r
541         "z": "67d8f5f.109b30c",\r
542         "wires": []\r
543     }\r
544 ]