CCVPN extension site resource DGs
[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": "b9b83207.589ec",\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": 1124.8294982910156,\r
10         "y": 251.16278839111328,\r
11         "z": "c7d3e3a8.96c6a",\r
12         "wires": [\r
13             [\r
14                 "8cae152d.7cd218"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "e1800fba.baf5f",\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": 414.5,\r
28         "y": 144.99999237060547,\r
29         "z": "c7d3e3a8.96c6a",\r
30         "wires": [\r
31             [\r
32                 "6d32e66a.a8bcf8"\r
33             ]\r
34         ]\r
35     },\r
36     {\r
37         "id": "6d32e66a.a8bcf8",\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": 413.5,\r
44         "y": 244.99999237060547,\r
45         "z": "c7d3e3a8.96c6a",\r
46         "wires": [\r
47             [\r
48                 "1cc250f1.53fd7f"\r
49             ]\r
50         ]\r
51     },\r
52     {\r
53         "id": "9c8db0b.eb2055",\r
54         "type": "dgstart",\r
55         "name": "DGSTART",\r
56         "outputs": 1,\r
57         "x": 244,\r
58         "y": 56,\r
59         "z": "c7d3e3a8.96c6a",\r
60         "wires": [\r
61             [\r
62                 "e1800fba.baf5f"\r
63             ]\r
64         ]\r
65     },\r
66     {\r
67         "id": "1cc250f1.53fd7f",\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": 572.4999847412109,\r
75         "y": 361.0000009536743,\r
76         "z": "c7d3e3a8.96c6a",\r
77         "wires": [\r
78             [\r
79                 "3397e2d.64c521e",\r
80                 "92ec911d.95b14",\r
81                 "fa9c393f.4d0eb8",\r
82                 "1192cb09.4cd2d5",\r
83                 "3e5eeaad.69c6b6",\r
84                 "7e451b6c.fd6624",\r
85                 "f6264050.f42d5",\r
86                 "9e2c8c11.572dc",\r
87                 "407f8a81.546654",\r
88                 "f1088162.3598e",\r
89                 "4489ad98.445654",\r
90                 "860ccaf0.19f1e8"\r
91             ]\r
92         ]\r
93     },\r
94     {\r
95         "id": "3397e2d.64c521e",\r
96         "type": "for",\r
97         "name": "for each vnf",\r
98         "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
99         "comments": "",\r
100         "outputs": 1,\r
101         "x": 872.8294067382812,\r
102         "y": 252.49612522125244,\r
103         "z": "c7d3e3a8.96c6a",\r
104         "wires": [\r
105             [\r
106                 "b9b83207.589ec"\r
107             ]\r
108         ]\r
109     },\r
110     {\r
111         "id": "1913a60e.b7faaa",\r
112         "type": "set",\r
113         "name": "set vnf-index",\r
114         "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",\r
115         "comments": "",\r
116         "x": 1496.4959869384766,\r
117         "y": 253.16279125213623,\r
118         "z": "c7d3e3a8.96c6a",\r
119         "wires": []\r
120     },\r
121     {\r
122         "id": "8cae152d.7cd218",\r
123         "type": "outcomeTrue",\r
124         "name": "true",\r
125         "xml": "<outcome value='true'>\n",\r
126         "comments": "",\r
127         "outputs": 1,\r
128         "x": 1343.1628150939941,\r
129         "y": 253.16277027130127,\r
130         "z": "c7d3e3a8.96c6a",\r
131         "wires": [\r
132             [\r
133                 "1913a60e.b7faaa"\r
134             ]\r
135         ]\r
136     },\r
137     {\r
138         "id": "1192cb09.4cd2d5",\r
139         "type": "for",\r
140         "name": "for loop idx - VF input parameters",\r
141         "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
142         "comments": "",\r
143         "outputs": 1,\r
144         "x": 946.7501907348633,\r
145         "y": 474.66665840148926,\r
146         "z": "c7d3e3a8.96c6a",\r
147         "wires": [\r
148             [\r
149                 "f80594ca.7a0348"\r
150             ]\r
151         ]\r
152     },\r
153     {\r
154         "id": "f80594ca.7a0348",\r
155         "type": "block",\r
156         "name": "block",\r
157         "xml": "<block>\n",\r
158         "atomic": "false",\r
159         "comments": "",\r
160         "outputs": 1,\r
161         "x": 1161.5285339355469,\r
162         "y": 472.2222423553467,\r
163         "z": "c7d3e3a8.96c6a",\r
164         "wires": [\r
165             [\r
166                 "99d262e0.f0c14",\r
167                 "9b7ec3.98d4c14"\r
168             ]\r
169         ]\r
170     },\r
171     {\r
172         "id": "99d262e0.f0c14",\r
173         "type": "execute",\r
174         "name": "execute split parameterName",\r
175         "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
176         "comments": "",\r
177         "outputs": 1,\r
178         "x": 1357.7847366333008,\r
179         "y": 449.97038078308105,\r
180         "z": "c7d3e3a8.96c6a",\r
181         "wires": [\r
182             []\r
183         ]\r
184     },\r
185     {\r
186         "id": "9b7ec3.98d4c14",\r
187         "type": "set",\r
188         "name": "set parameterName",\r
189         "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
190         "comments": "",\r
191         "x": 1327.2291641235352,\r
192         "y": 486.97049713134766,\r
193         "z": "c7d3e3a8.96c6a",\r
194         "wires": []\r
195     },\r
196     {\r
197         "id": "1ce3af0c.391b61",\r
198         "type": "comment",\r
199         "name": "Take the parameter names by removing prefix",\r
200         "info": "",\r
201         "comments": "",\r
202         "x": 1330.7503929138184,\r
203         "y": 409.33332681655884,\r
204         "z": "c7d3e3a8.96c6a",\r
205         "wires": []\r
206     },\r
207     {\r
208         "id": "92ec911d.95b14",\r
209         "type": "switchNode",\r
210         "name": "switch vnf_length",\r
211         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
212         "comments": "",\r
213         "outputs": 1,\r
214         "x": 887.25,\r
215         "y": 207.9999942779541,\r
216         "z": "c7d3e3a8.96c6a",\r
217         "wires": [\r
218             [\r
219                 "1b06d72a.f85559"\r
220             ]\r
221         ]\r
222     },\r
223     {\r
224         "id": "1b06d72a.f85559",\r
225         "type": "other",\r
226         "name": "NULL",\r
227         "xml": "<outcome value=''>\n",\r
228         "comments": "",\r
229         "outputs": 1,\r
230         "x": 1073.9166793823242,\r
231         "y": 207.3332920074463,\r
232         "z": "c7d3e3a8.96c6a",\r
233         "wires": [\r
234             [\r
235                 "7e3909f0.27dd48"\r
236             ]\r
237         ]\r
238     },\r
239     {\r
240         "id": "7e3909f0.27dd48",\r
241         "type": "returnFailure",\r
242         "name": "return failure",\r
243         "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
244         "comments": "",\r
245         "x": 1255.5833053588867,\r
246         "y": 207.3332920074463,\r
247         "z": "c7d3e3a8.96c6a",\r
248         "wires": []\r
249     },\r
250     {\r
251         "id": "fa9c393f.4d0eb8",\r
252         "type": "switchNode",\r
253         "name": "switch vf-modules.vf-module_length",\r
254         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
255         "comments": "",\r
256         "outputs": 1,\r
257         "x": 928.4999895095825,\r
258         "y": 327.9999952316284,\r
259         "z": "c7d3e3a8.96c6a",\r
260         "wires": [\r
261             [\r
262                 "fe3884f5.3db408",\r
263                 "f43025e1.350458"\r
264             ]\r
265         ]\r
266     },\r
267     {\r
268         "id": "fe3884f5.3db408",\r
269         "type": "other",\r
270         "name": "Null",\r
271         "xml": "<outcome value=''>\n",\r
272         "comments": "",\r
273         "outputs": 1,\r
274         "x": 1159.5,\r
275         "y": 303.99999237060547,\r
276         "z": "c7d3e3a8.96c6a",\r
277         "wires": [\r
278             [\r
279                 "ec84c7cd.2c42f8"\r
280             ]\r
281         ]\r
282     },\r
283     {\r
284         "id": "f43025e1.350458",\r
285         "type": "other",\r
286         "name": "other",\r
287         "xml": "<outcome value='Other'>\n",\r
288         "comments": "",\r
289         "outputs": 1,\r
290         "x": 1159.5,\r
291         "y": 343.99999237060547,\r
292         "z": "c7d3e3a8.96c6a",\r
293         "wires": [\r
294             [\r
295                 "3d425c4c.b021a4"\r
296             ]\r
297         ]\r
298     },\r
299     {\r
300         "id": "ec84c7cd.2c42f8",\r
301         "type": "set",\r
302         "name": "set vf-index",\r
303         "xml": "<set>\n<parameter name='vf-index' value='0' />\n",\r
304         "comments": "",\r
305         "x": 1302,\r
306         "y": 303.99999237060547,\r
307         "z": "c7d3e3a8.96c6a",\r
308         "wires": []\r
309     },\r
310     {\r
311         "id": "3d425c4c.b021a4",\r
312         "type": "block",\r
313         "name": "block",\r
314         "xml": "<block>\n",\r
315         "atomic": "false",\r
316         "comments": "",\r
317         "outputs": 1,\r
318         "x": 1303.8570442199707,\r
319         "y": 343.9365043640137,\r
320         "z": "c7d3e3a8.96c6a",\r
321         "wires": [\r
322             [\r
323                 "30d4aa0b.cee996",\r
324                 "8e933b3.56987c8"\r
325             ]\r
326         ]\r
327     },\r
328     {\r
329         "id": "8e933b3.56987c8",\r
330         "type": "set",\r
331         "name": "set vf-index",\r
332         "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
333         "comments": "",\r
334         "x": 1456.555519104004,\r
335         "y": 313.5556030566804,\r
336         "z": "c7d3e3a8.96c6a",\r
337         "wires": []\r
338     },\r
339     {\r
340         "id": "30d4aa0b.cee996",\r
341         "type": "for",\r
342         "name": "for each existing vf-index",\r
343         "xml": "<for index='idx' start='0' end='`$vf-index`' >\n",\r
344         "comments": "",\r
345         "outputs": 1,\r
346         "x": 1512.9840240478516,\r
347         "y": 366.7777328491211,\r
348         "z": "c7d3e3a8.96c6a",\r
349         "wires": [\r
350             [\r
351                 "40a39312.e2cd5c"\r
352             ]\r
353         ]\r
354     },\r
355     {\r
356         "id": "f966e582.bd5968",\r
357         "type": "comment",\r
358         "name": "make sure this network doesn't exist already",\r
359         "info": "",\r
360         "comments": "",\r
361         "x": 1736.6347541809082,\r
362         "y": 325.03179025650024,\r
363         "z": "c7d3e3a8.96c6a",\r
364         "wires": []\r
365     },\r
366     {\r
367         "id": "40a39312.e2cd5c",\r
368         "type": "switchNode",\r
369         "name": "switch vf-module-id found",\r
370         "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
371         "comments": "",\r
372         "outputs": 1,\r
373         "x": 1788.2697448730469,\r
374         "y": 366.34923553466797,\r
375         "z": "c7d3e3a8.96c6a",\r
376         "wires": [\r
377             [\r
378                 "d61c18df.dc4958"\r
379             ]\r
380         ]\r
381     },\r
382     {\r
383         "id": "d61c18df.dc4958",\r
384         "type": "outcomeTrue",\r
385         "name": "true",\r
386         "xml": "<outcome value='true'>\n",\r
387         "comments": "",\r
388         "outputs": 1,\r
389         "x": 1688.999942779541,\r
390         "y": 424.9206666946411,\r
391         "z": "c7d3e3a8.96c6a",\r
392         "wires": [\r
393             [\r
394                 "d629e081.56166"\r
395             ]\r
396         ]\r
397     },\r
398     {\r
399         "id": "d629e081.56166",\r
400         "type": "returnFailure",\r
401         "name": "return failure",\r
402         "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
403         "comments": "",\r
404         "x": 1836.7500457763672,\r
405         "y": 424.7778587634675,\r
406         "z": "c7d3e3a8.96c6a",\r
407         "wires": []\r
408     },\r
409     {\r
410         "id": "407f8a81.546654",\r
411         "type": "set",\r
412         "name": "copy input data to service data",\r
413         "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
414         "comments": "",\r
415         "x": 940.3531951904297,\r
416         "y": 754.4962153434753,\r
417         "z": "c7d3e3a8.96c6a",\r
418         "wires": []\r
419     },\r
420     {\r
421         "id": "9e2c8c11.572dc",\r
422         "type": "execute",\r
423         "name": "execute generate-vf-module-index",\r
424         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.device-vf-index\"/>\n",\r
425         "comments": "",\r
426         "outputs": 1,\r
427         "x": 948.6866912841797,\r
428         "y": 701.1629481315613,\r
429         "z": "c7d3e3a8.96c6a",\r
430         "wires": [\r
431             []\r
432         ]\r
433     },\r
434     {\r
435         "id": "f6264050.f42d5",\r
436         "type": "set",\r
437         "name": "set new vf-module_length",\r
438         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index + 1`' />",\r
439         "comments": "",\r
440         "x": 922.6866683959961,\r
441         "y": 647.162841796875,\r
442         "z": "c7d3e3a8.96c6a",\r
443         "wires": []\r
444     },\r
445     {\r
446         "id": "3e5eeaad.69c6b6",\r
447         "type": "set",\r
448         "name": "set vf-module-request-input.",\r
449         "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n",\r
450         "comments": "",\r
451         "x": 937.6863288879395,\r
452         "y": 537.1542224884033,\r
453         "z": "c7d3e3a8.96c6a",\r
454         "wires": []\r
455     },\r
456     {\r
457         "id": "7e451b6c.fd6624",\r
458         "type": "call",\r
459         "name": "call sdwan-get-vf-module-device-param",\r
460         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-device-param' mode='sync' >\n",\r
461         "comments": "",\r
462         "outputs": 1,\r
463         "x": 963.6867065429688,\r
464         "y": 593.1544561386108,\r
465         "z": "c7d3e3a8.96c6a",\r
466         "wires": [\r
467             []\r
468         ]\r
469     },\r
470     {\r
471         "id": "f1088162.3598e",\r
472         "type": "set",\r
473         "name": "set vf-module-object-path",\r
474         "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
475         "comments": "",\r
476         "x": 935.5000877380371,\r
477         "y": 805.0000605583191,\r
478         "z": "c7d3e3a8.96c6a",\r
479         "wires": []\r
480     },\r
481     {\r
482         "id": "4489ad98.445654",\r
483         "type": "set",\r
484         "name": "set vf-module-level-oper-status",\r
485         "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
486         "comments": "",\r
487         "x": 943.0001907348633,\r
488         "y": 853.0000247955322,\r
489         "z": "c7d3e3a8.96c6a",\r
490         "wires": []\r
491     },\r
492     {\r
493         "id": "a1ffaa29.5bb868",\r
494         "type": "save",\r
495         "name": "save sdwan vpn resource in AAI",\r
496         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='site-resource' \n      key='site-resource.site-resource-id = $prop.site-vf-index' >\n<parameter name='site-resource-id' value='`$prop.site-vf-index`' />\n<parameter name='site-resource-name' value='`$prop.site.name`' />\n<parameter name='description' value='`$prop.site.description`' />\n<parameter name='type' value='`$prop.site.type`' />\n<parameter name='role' value='`$prop.site.role`' />\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.site-vf-index + '/vf-module-data/'` \" />",\r
497         "comments": "",\r
498         "outputs": 1,\r
499         "x": 947.5000419616699,\r
500         "y": 899.4999761581421,\r
501         "z": "c7d3e3a8.96c6a",\r
502         "wires": [\r
503             []\r
504         ]\r
505     },\r
506     {\r
507         "id": "503ce76b.44e798",\r
508         "type": "save",\r
509         "name": "save service relationship in AAI",\r
510         "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=\"sdwan-vpn\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/sdwan-vpns/sdwan-vpn/' + $prop.site-vf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"sdwan-vpn.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.site-vf-index`\" />\n\n\n<!--save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='site-resource:relationship-list' \n      key='site-resource.site-resource-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=\"sdwan-site\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/sdwan-sites/sdwan-site/' + $prop.site-vf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"sdwan-vpn.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.site-vf-index`\" /-->\n",\r
511         "comments": "",\r
512         "outputs": 1,\r
513         "x": 946.4999847412109,\r
514         "y": 946.5000238418579,\r
515         "z": "c7d3e3a8.96c6a",\r
516         "wires": [\r
517             []\r
518         ]\r
519     },\r
520     {\r
521         "id": "860ccaf0.19f1e8",\r
522         "type": "returnSuccess",\r
523         "name": "return success",\r
524         "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
525         "comments": "",\r
526         "x": 895.2225151062012,\r
527         "y": 992.6738667488098,\r
528         "z": "c7d3e3a8.96c6a",\r
529         "wires": []\r
530     }\r
531 ]