dd6f321599bf5194dede2d5235e1d2a5f8310e88
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-create.json
1 [\r
2     {\r
3         "id": "2de211e6.98e23e",\r
4         "type": "block",\r
5         "name": "block : atomic",\r
6         "xml": "<block atomic=\"true\">\n",\r
7         "atomic": "false",\r
8         "comments": "",\r
9         "outputs": 1,\r
10         "x": 468,\r
11         "y": 381.0000009536743,\r
12         "z": "f1f197ca.402af8",\r
13         "wires": [\r
14             [\r
15                 "6436367.bae22c8",\r
16                 "1f79f37c.52109d",\r
17                 "86c4e83c.6dd4c8",\r
18                 "e7ab9a67.b605f8",\r
19                 "1d935a3c.53bb66",\r
20                 "9465c248.bcdbd",\r
21                 "944e3f22.30053",\r
22                 "240305a4.5a5a9a",\r
23                 "5d2253aa.4bfbec",\r
24                 "b6ddeb01.d7f708",\r
25                 "83d0d62b.725028",\r
26                 "8a6622c.9c3e9e",\r
27                 "d3e9377a.b7b628",\r
28                 "166cfcae.a53de3",\r
29                 "4cde94b6.d8700c"\r
30             ]\r
31         ]\r
32     },\r
33     {\r
34         "id": "489fcd29.cfaa34",\r
35         "type": "service-logic",\r
36         "name": "GENERIC-RESOURCE-API ${project.version}",\r
37         "module": "GENERIC-RESOURCE-API",\r
38         "version": "${project.version}",\r
39         "comments": "",\r
40         "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
41         "outputs": 1,\r
42         "x": 310.00001525878906,\r
43         "y": 164.99999237060547,\r
44         "z": "f1f197ca.402af8",\r
45         "wires": [\r
46             [\r
47                 "105708eb.457607"\r
48             ]\r
49         ]\r
50     },\r
51     {\r
52         "id": "105708eb.457607",\r
53         "type": "method",\r
54         "name": "sdwan-vf-operation-vpn-create",\r
55         "xml": "<method rpc='sdwan-vf-operation-vpn-create' mode='sync'>\n",\r
56         "comments": "",\r
57         "outputs": 1,\r
58         "x": 309.00001525878906,\r
59         "y": 264.99999237060547,\r
60         "z": "f1f197ca.402af8",\r
61         "wires": [\r
62             [\r
63                 "2de211e6.98e23e"\r
64             ]\r
65         ]\r
66     },\r
67     {\r
68         "id": "a574a3fb.d3201",\r
69         "type": "dgstart",\r
70         "name": "DGSTART",\r
71         "outputs": 1,\r
72         "x": 139.50001525878906,\r
73         "y": 76,\r
74         "z": "f1f197ca.402af8",\r
75         "wires": [\r
76             [\r
77                 "489fcd29.cfaa34"\r
78             ]\r
79         ]\r
80     },\r
81     {\r
82         "id": "6436367.bae22c8",\r
83         "type": "for",\r
84         "name": "for each vnf",\r
85         "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
86         "comments": "",\r
87         "outputs": 1,\r
88         "x": 768.3294219970703,\r
89         "y": 272.49612522125244,\r
90         "z": "f1f197ca.402af8",\r
91         "wires": [\r
92             [\r
93                 "a118e404.bdd118"\r
94             ]\r
95         ]\r
96     },\r
97     {\r
98         "id": "a118e404.bdd118",\r
99         "type": "switchNode",\r
100         "name": "switch this vnf-id == input vnf-id",\r
101         "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\">    \n",\r
102         "comments": "",\r
103         "outputs": 1,\r
104         "x": 1020.3295135498047,\r
105         "y": 271.1627883911133,\r
106         "z": "f1f197ca.402af8",\r
107         "wires": [\r
108             [\r
109                 "40e93eeb.bac38"\r
110             ]\r
111         ]\r
112     },\r
113     {\r
114         "id": "948c1668.1af8e8",\r
115         "type": "set",\r
116         "name": "set vnf-index",\r
117         "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n\n",\r
118         "comments": "",\r
119         "x": 1391.9960021972656,\r
120         "y": 273.16279125213623,\r
121         "z": "f1f197ca.402af8",\r
122         "wires": []\r
123     },\r
124     {\r
125         "id": "40e93eeb.bac38",\r
126         "type": "outcomeTrue",\r
127         "name": "true",\r
128         "xml": "<outcome value='true'>\n",\r
129         "comments": "",\r
130         "outputs": 1,\r
131         "x": 1238.6628303527832,\r
132         "y": 273.16277027130127,\r
133         "z": "f1f197ca.402af8",\r
134         "wires": [\r
135             [\r
136                 "948c1668.1af8e8"\r
137             ]\r
138         ]\r
139     },\r
140     {\r
141         "id": "e7ab9a67.b605f8",\r
142         "type": "for",\r
143         "name": "for loop idx - VF input parameters",\r
144         "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
145         "comments": "",\r
146         "outputs": 1,\r
147         "x": 842.2502059936523,\r
148         "y": 494.66665840148926,\r
149         "z": "f1f197ca.402af8",\r
150         "wires": [\r
151             [\r
152                 "62290f8b.75c82"\r
153             ]\r
154         ]\r
155     },\r
156     {\r
157         "id": "62290f8b.75c82",\r
158         "type": "block",\r
159         "name": "block",\r
160         "xml": "<block>\n",\r
161         "atomic": "false",\r
162         "comments": "",\r
163         "outputs": 1,\r
164         "x": 1057.028549194336,\r
165         "y": 492.2222423553467,\r
166         "z": "f1f197ca.402af8",\r
167         "wires": [\r
168             [\r
169                 "59b05bb9.0b68b4",\r
170                 "72944c92.a776a4"\r
171             ]\r
172         ]\r
173     },\r
174     {\r
175         "id": "59b05bb9.0b68b4",\r
176         "type": "execute",\r
177         "name": "execute split parameterName",\r
178         "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
179         "comments": "",\r
180         "outputs": 1,\r
181         "x": 1253.2847518920898,\r
182         "y": 469.97038078308105,\r
183         "z": "f1f197ca.402af8",\r
184         "wires": [\r
185             []\r
186         ]\r
187     },\r
188     {\r
189         "id": "72944c92.a776a4",\r
190         "type": "set",\r
191         "name": "set parameterName",\r
192         "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
193         "comments": "",\r
194         "x": 1222.7291793823242,\r
195         "y": 506.97049713134766,\r
196         "z": "f1f197ca.402af8",\r
197         "wires": []\r
198     },\r
199     {\r
200         "id": "d0552bf7.11fd78",\r
201         "type": "comment",\r
202         "name": "Take the parameter names by removing prefix",\r
203         "info": "",\r
204         "comments": "",\r
205         "x": 1226.2504081726074,\r
206         "y": 429.33332681655884,\r
207         "z": "f1f197ca.402af8",\r
208         "wires": []\r
209     },\r
210     {\r
211         "id": "1f79f37c.52109d",\r
212         "type": "switchNode",\r
213         "name": "switch vnf_length",\r
214         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
215         "comments": "",\r
216         "outputs": 1,\r
217         "x": 782.7500152587891,\r
218         "y": 227.9999942779541,\r
219         "z": "f1f197ca.402af8",\r
220         "wires": [\r
221             [\r
222                 "f848aa6e.cfe238"\r
223             ]\r
224         ]\r
225     },\r
226     {\r
227         "id": "f848aa6e.cfe238",\r
228         "type": "other",\r
229         "name": "NULL",\r
230         "xml": "<outcome value=''>\n",\r
231         "comments": "",\r
232         "outputs": 1,\r
233         "x": 969.4166946411133,\r
234         "y": 227.3332920074463,\r
235         "z": "f1f197ca.402af8",\r
236         "wires": [\r
237             [\r
238                 "63764309.2b5d2c"\r
239             ]\r
240         ]\r
241     },\r
242     {\r
243         "id": "63764309.2b5d2c",\r
244         "type": "returnFailure",\r
245         "name": "return failure",\r
246         "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
247         "comments": "",\r
248         "x": 1151.0833206176758,\r
249         "y": 227.3332920074463,\r
250         "z": "f1f197ca.402af8",\r
251         "wires": []\r
252     },\r
253     {\r
254         "id": "86c4e83c.6dd4c8",\r
255         "type": "switchNode",\r
256         "name": "switch vf-modules.vf-module_length",\r
257         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
258         "comments": "",\r
259         "outputs": 1,\r
260         "x": 824.0000047683716,\r
261         "y": 347.9999952316284,\r
262         "z": "f1f197ca.402af8",\r
263         "wires": [\r
264             [\r
265                 "47ea1345.69aafc",\r
266                 "1d47e1b9.b5ac9e"\r
267             ]\r
268         ]\r
269     },\r
270     {\r
271         "id": "47ea1345.69aafc",\r
272         "type": "other",\r
273         "name": "Null",\r
274         "xml": "<outcome value=''>\n",\r
275         "comments": "",\r
276         "outputs": 1,\r
277         "x": 1055.000015258789,\r
278         "y": 323.99999237060547,\r
279         "z": "f1f197ca.402af8",\r
280         "wires": [\r
281             [\r
282                 "4b7cf824.56d218"\r
283             ]\r
284         ]\r
285     },\r
286     {\r
287         "id": "1d47e1b9.b5ac9e",\r
288         "type": "other",\r
289         "name": "other",\r
290         "xml": "<outcome value='Other'>\n",\r
291         "comments": "",\r
292         "outputs": 1,\r
293         "x": 1055.000015258789,\r
294         "y": 363.99999237060547,\r
295         "z": "f1f197ca.402af8",\r
296         "wires": [\r
297             [\r
298                 "ff6c5552.af6328"\r
299             ]\r
300         ]\r
301     },\r
302     {\r
303         "id": "4b7cf824.56d218",\r
304         "type": "set",\r
305         "name": "set vf-index",\r
306         "xml": "<set>\n<parameter name='vf-index' value='0' />\n",\r
307         "comments": "",\r
308         "x": 1197.500015258789,\r
309         "y": 323.99999237060547,\r
310         "z": "f1f197ca.402af8",\r
311         "wires": []\r
312     },\r
313     {\r
314         "id": "ff6c5552.af6328",\r
315         "type": "block",\r
316         "name": "block",\r
317         "xml": "<block>\n",\r
318         "atomic": "false",\r
319         "comments": "",\r
320         "outputs": 1,\r
321         "x": 1199.3570594787598,\r
322         "y": 363.9365043640137,\r
323         "z": "f1f197ca.402af8",\r
324         "wires": [\r
325             [\r
326                 "34f94cf0.e3aea4",\r
327                 "b3996c0f.5f9d2"\r
328             ]\r
329         ]\r
330     },\r
331     {\r
332         "id": "b3996c0f.5f9d2",\r
333         "type": "set",\r
334         "name": "set vf-index",\r
335         "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
336         "comments": "",\r
337         "x": 1352.055534362793,\r
338         "y": 333.5556030566804,\r
339         "z": "f1f197ca.402af8",\r
340         "wires": []\r
341     },\r
342     {\r
343         "id": "34f94cf0.e3aea4",\r
344         "type": "for",\r
345         "name": "for each existing vf-index",\r
346         "xml": "<for index='idx' start='0' end='`$vf-index`' >\n",\r
347         "comments": "",\r
348         "outputs": 1,\r
349         "x": 1408.4840393066406,\r
350         "y": 386.7777328491211,\r
351         "z": "f1f197ca.402af8",\r
352         "wires": [\r
353             [\r
354                 "441d1901.20ad48"\r
355             ]\r
356         ]\r
357     },\r
358     {\r
359         "id": "f0d652ef.7b8d",\r
360         "type": "comment",\r
361         "name": "make sure this network doesn't exist already",\r
362         "info": "",\r
363         "comments": "",\r
364         "x": 1632.1347694396973,\r
365         "y": 345.03179025650024,\r
366         "z": "f1f197ca.402af8",\r
367         "wires": []\r
368     },\r
369     {\r
370         "id": "441d1901.20ad48",\r
371         "type": "switchNode",\r
372         "name": "switch vf-module-id found",\r
373         "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
374         "comments": "",\r
375         "outputs": 1,\r
376         "x": 1683.769760131836,\r
377         "y": 386.34923553466797,\r
378         "z": "f1f197ca.402af8",\r
379         "wires": [\r
380             [\r
381                 "d51340c3.db8f7"\r
382             ]\r
383         ]\r
384     },\r
385     {\r
386         "id": "d51340c3.db8f7",\r
387         "type": "outcomeTrue",\r
388         "name": "true",\r
389         "xml": "<outcome value='true'>\n",\r
390         "comments": "",\r
391         "outputs": 1,\r
392         "x": 1584.49995803833,\r
393         "y": 444.9206666946411,\r
394         "z": "f1f197ca.402af8",\r
395         "wires": [\r
396             [\r
397                 "20af1164.21510e"\r
398             ]\r
399         ]\r
400     },\r
401     {\r
402         "id": "20af1164.21510e",\r
403         "type": "returnFailure",\r
404         "name": "return failure",\r
405         "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
406         "comments": "",\r
407         "x": 1732.2500610351562,\r
408         "y": 444.7778587634675,\r
409         "z": "f1f197ca.402af8",\r
410         "wires": []\r
411     },\r
412     {\r
413         "id": "240305a4.5a5a9a",\r
414         "type": "set",\r
415         "name": "copy input data to service data",\r
416         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-id' value='`$prop.vpn-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\n",\r
417         "comments": "",\r
418         "x": 837.8531951904297,\r
419         "y": 797.4962463378906,\r
420         "z": "f1f197ca.402af8",\r
421         "wires": []\r
422     },\r
423     {\r
424         "id": "944e3f22.30053",\r
425         "type": "execute",\r
426         "name": "execute generate-vf-module-index",\r
427         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vpn-vf-index\"/>\n",\r
428         "comments": "",\r
429         "outputs": 1,\r
430         "x": 849.186767578125,\r
431         "y": 750.1629486083984,\r
432         "z": "f1f197ca.402af8",\r
433         "wires": [\r
434             []\r
435         ]\r
436     },\r
437     {\r
438         "id": "9465c248.bcdbd",\r
439         "type": "set",\r
440         "name": "set new vf-module_length",\r
441         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index + 1`' />",\r
442         "comments": "",\r
443         "x": 821.1868286132812,\r
444         "y": 701.1629486083984,\r
445         "z": "f1f197ca.402af8",\r
446         "wires": []\r
447     },\r
448     {\r
449         "id": "1d935a3c.53bb66",\r
450         "type": "set",\r
451         "name": "set vf-module-request-input.",\r
452         "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n",\r
453         "comments": "",\r
454         "x": 821.1863555908203,\r
455         "y": 647.1542367935181,\r
456         "z": "f1f197ca.402af8",\r
457         "wires": []\r
458     },\r
459     {\r
460         "id": "5d2253aa.4bfbec",\r
461         "type": "set",\r
462         "name": "set vf-module-level-oper-status",\r
463         "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`' />",\r
464         "comments": "",\r
465         "x": 831.5001831054688,\r
466         "y": 895.0000674128532,\r
467         "z": "f1f197ca.402af8",\r
468         "wires": []\r
469     },\r
470     {\r
471         "id": "166cfcae.a53de3",\r
472         "type": "save",\r
473         "name": "save sdwan vpn resource in AAI",\r
474         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n      key='sdwan-vpn.sdwan-vpn-id = $prop.vpn-vf-index' >\n<parameter name='sdwan-vpn-id' value='`$prop.vpn-vf-index`' />\n<parameter name='sdwan-vpn-name' value='`$prop.name`' />\n<parameter name='topology' value='`$prop.topology`' />\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.vpn-vf-index + '/vf-module-data/'` \" />\n",\r
475         "comments": "",\r
476         "outputs": 1,\r
477         "x": 838.0000438690186,\r
478         "y": 940.5000152587891,\r
479         "z": "f1f197ca.402af8",\r
480         "wires": [\r
481             []\r
482         ]\r
483     },\r
484     {\r
485         "id": "b6ddeb01.d7f708",\r
486         "type": "returnSuccess",\r
487         "name": "return success",\r
488         "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
489         "comments": "",\r
490         "x": 785.7225170135498,\r
491         "y": 1033.6739058494568,\r
492         "z": "f1f197ca.402af8",\r
493         "wires": []\r
494     },\r
495     {\r
496         "id": "83d0d62b.725028",\r
497         "type": "for",\r
498         "name": "for loop i - Network input parameters",\r
499         "xml": "<for index=\"idx\" start=\"0\" end=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`\">\n",\r
500         "comments": "",\r
501         "outputs": 1,\r
502         "x": 849.2539215087891,\r
503         "y": 583.50390625,\r
504         "z": "f1f197ca.402af8",\r
505         "wires": [\r
506             [\r
507                 "4fef64f6.74978c"\r
508             ]\r
509         ]\r
510     },\r
511     {\r
512         "id": "4fef64f6.74978c",\r
513         "type": "block",\r
514         "name": "block",\r
515         "xml": "<block>\n",\r
516         "atomic": "false",\r
517         "comments": "",\r
518         "outputs": 1,\r
519         "x": 1136.4767990112305,\r
520         "y": 583.7262201309204,\r
521         "z": "f1f197ca.402af8",\r
522         "wires": [\r
523             [\r
524                 "70539f79.6843b",\r
525                 "69460cae.8c8bb4"\r
526             ]\r
527         ]\r
528     },\r
529     {\r
530         "id": "70539f79.6843b",\r
531         "type": "switchNode",\r
532         "name": "switch name",\r
533         "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'name'`\">\n\n",\r
534         "comments": "",\r
535         "outputs": 1,\r
536         "x": 1324.698642730713,\r
537         "y": 566.0595242977142,\r
538         "z": "f1f197ca.402af8",\r
539         "wires": [\r
540             [\r
541                 "63c5ecf6.3d2174"\r
542             ]\r
543         ]\r
544     },\r
545     {\r
546         "id": "69460cae.8c8bb4",\r
547         "type": "switchNode",\r
548         "name": "switch topology",\r
549         "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'topology'`\">",\r
550         "comments": "",\r
551         "outputs": 1,\r
552         "x": 1335.5383033752441,\r
553         "y": 606.0595223903656,\r
554         "z": "f1f197ca.402af8",\r
555         "wires": [\r
556             [\r
557                 "c6e54399.0667f"\r
558             ]\r
559         ]\r
560     },\r
561     {\r
562         "id": "63c5ecf6.3d2174",\r
563         "type": "outcomeTrue",\r
564         "name": "true",\r
565         "xml": "<outcome value='true'>\n",\r
566         "comments": "",\r
567         "outputs": 1,\r
568         "x": 1511.698642730713,\r
569         "y": 562.0595242977142,\r
570         "z": "f1f197ca.402af8",\r
571         "wires": [\r
572             [\r
573                 "7b7eb3bd.411e2c"\r
574             ]\r
575         ]\r
576     },\r
577     {\r
578         "id": "c6e54399.0667f",\r
579         "type": "outcomeTrue",\r
580         "name": "true",\r
581         "xml": "<outcome value='true'>\n",\r
582         "comments": "",\r
583         "outputs": 1,\r
584         "x": 1505.5383033752441,\r
585         "y": 602.0595223903656,\r
586         "z": "f1f197ca.402af8",\r
587         "wires": [\r
588             [\r
589                 "660aadb7.bbfbd4"\r
590             ]\r
591         ]\r
592     },\r
593     {\r
594         "id": "7b7eb3bd.411e2c",\r
595         "type": "set",\r
596         "name": "set name",\r
597         "xml": "<set>\n<parameter name='prop.name' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n\n",\r
598         "comments": "",\r
599         "x": 1661.69877243042,\r
600         "y": 560.659530878067,\r
601         "z": "f1f197ca.402af8",\r
602         "wires": []\r
603     },\r
604     {\r
605         "id": "660aadb7.bbfbd4",\r
606         "type": "set",\r
607         "name": "set topology",\r
608         "xml": "<set>\n<parameter name='prop.topology' value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n",\r
609         "comments": "",\r
610         "x": 1692.8717441558838,\r
611         "y": 600.5206792354584,\r
612         "z": "f1f197ca.402af8",\r
613         "wires": []\r
614     },\r
615     {\r
616         "id": "8a6622c.9c3e9e",\r
617         "type": "call",\r
618         "name": "call GENERIC-RESOURCE-API:validate-sdwan-vf-vpn-input-parameters",\r
619         "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-vf-vpn-input-parameters' mode='sync' >\n",\r
620         "comments": "",\r
621         "outputs": 1,\r
622         "x": 950.5039215087891,\r
623         "y": 173.00390625,\r
624         "z": "f1f197ca.402af8",\r
625         "wires": [\r
626             []\r
627         ]\r
628     },\r
629     {\r
630         "id": "d3e9377a.b7b628",\r
631         "type": "set",\r
632         "name": "set vf-module-object-path",\r
633         "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.site-vf-index`' />\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.vpn-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
634         "comments": "",\r
635         "x": 823.5000610351562,\r
636         "y": 846.0312868952751,\r
637         "z": "f1f197ca.402af8",\r
638         "wires": []\r
639     },\r
640     {\r
641         "id": "4cde94b6.d8700c",\r
642         "type": "save",\r
643         "name": "save service relationship in AAI",\r
644         "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.vpn-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.vpn-vf-index`\" />\n\n",\r
645         "comments": "",\r
646         "outputs": 1,\r
647         "x": 838.0001220703125,\r
648         "y": 988.0001564025879,\r
649         "z": "f1f197ca.402af8",\r
650         "wires": [\r
651             []\r
652         ]\r
653     }\r
654 ]\r