Fixed device-id fetch issue in sdwan-lan-port DG
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.json
1 [\r
2     {\r
3         "id": "d9c4f19e.fd2e7",\r
4         "type": "switchNode",\r
5         "name": "switch vf-modules.vf-module_length",\r
6         "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
7         "comments": "",\r
8         "outputs": 1,\r
9         "x": 672.25390625,\r
10         "y": 347.99999046325684,\r
11         "z": "d0c9a483.09f7c8",\r
12         "wires": [\r
13             [\r
14                 "cef58dbf.65cb",\r
15                 "2919e925.39dec6",\r
16                 "e1d6ced2.e1fdf"\r
17             ]\r
18         ]\r
19     },\r
20     {\r
21         "id": "f7e66a22.01e028",\r
22         "type": "dgstart",\r
23         "name": "DGSTART",\r
24         "outputs": 1,\r
25         "x": 209.25390243530273,\r
26         "y": 39,\r
27         "z": "d0c9a483.09f7c8",\r
28         "wires": [\r
29             [\r
30                 "c86c7fcc.d57a3"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "c86c7fcc.d57a3",\r
36         "type": "service-logic",\r
37         "name": "GENERIC-RESOURCE-API ${project.version}",\r
38         "module": "GENERIC-RESOURCE-API",\r
39         "version": "${project.version}",\r
40         "comments": "",\r
41         "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
42         "outputs": 1,\r
43         "x": 278.5396041870117,\r
44         "y": 102.23810958862305,\r
45         "z": "d0c9a483.09f7c8",\r
46         "wires": [\r
47             [\r
48                 "8a66936c.4ecc5"\r
49             ]\r
50         ]\r
51     },\r
52     {\r
53         "id": "8a66936c.4ecc5",\r
54         "type": "method",\r
55         "name": "method sdwan-vf-operation-lanport-activate",\r
56         "xml": "<method rpc='sdwan-vf-operation-lanport-activate' mode='sync'>\n",\r
57         "comments": "",\r
58         "outputs": 1,\r
59         "x": 290.25389862060547,\r
60         "y": 196.58634185791016,\r
61         "z": "d0c9a483.09f7c8",\r
62         "wires": [\r
63             [\r
64                 "b4cb95ed.cde538"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "b4cb95ed.cde538",\r
70         "type": "block",\r
71         "name": "block : atomic",\r
72         "xml": "<block atomic=\"true\">",\r
73         "atomic": "true",\r
74         "outputs": 1,\r
75         "x": 290.92057037353516,\r
76         "y": 452.666708946228,\r
77         "z": "d0c9a483.09f7c8",\r
78         "wires": [\r
79             [\r
80                 "f3bcc30.03c554",\r
81                 "ac79d525.fd1fd8",\r
82                 "d9c4f19e.fd2e7",\r
83                 "1bfdbcc3.c7cd93",\r
84                 "6e8941e2.a043c",\r
85                 "901afcf1.d22f3",\r
86                 "ef04791b.55e268",\r
87                 "8364ef5f.25f26",\r
88                 "6278217c.89959",\r
89                 "760751d.6fd76b",\r
90                 "cd4a9b23.d614c8",\r
91                 "44113153.ffa83",\r
92                 "b05dede5.e0278",\r
93                 "45f5fb20.78ea64",\r
94                 "b07fc696.74dd68",\r
95                 "8fa1111d.08c36",\r
96                 "a897b863.5cfc78",\r
97                 "9bf6789f.a0ec08",\r
98                 "537766b1.131458",\r
99                 "8ffe71d6.e37e5",\r
100                 "b5fcdf55.56396",\r
101                 "695214fd.2c4fdc",\r
102                 "188a2b9c.34d5e4"\r
103             ]\r
104         ]\r
105     },\r
106     {\r
107         "id": "ac79d525.fd1fd8",\r
108         "type": "for",\r
109         "name": "for each vnf",\r
110         "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
111         "comments": "",\r
112         "outputs": 1,\r
113         "x": 622.2852630615234,\r
114         "y": 276.2691411972046,\r
115         "z": "d0c9a483.09f7c8",\r
116         "wires": [\r
117             [\r
118                 "8d9e53be.f0301"\r
119             ]\r
120         ]\r
121     },\r
122     {\r
123         "id": "f3bcc30.03c554",\r
124         "type": "switchNode",\r
125         "name": "switch vnf_length",\r
126         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
127         "comments": "",\r
128         "outputs": 1,\r
129         "x": 627.2539176940918,\r
130         "y": 215.00001049041748,\r
131         "z": "d0c9a483.09f7c8",\r
132         "wires": [\r
133             [\r
134                 "193a9775.d88519"\r
135             ]\r
136         ]\r
137     },\r
138     {\r
139         "id": "193a9775.d88519",\r
140         "type": "outcome",\r
141         "name": "NULL",\r
142         "xml": "<outcome value=''>\n",\r
143         "comments": "",\r
144         "outputs": 1,\r
145         "x": 807.2538986206055,\r
146         "y": 214,\r
147         "z": "d0c9a483.09f7c8",\r
148         "wires": [\r
149             [\r
150                 "4b9a0abb.eb1bb4"\r
151             ]\r
152         ]\r
153     },\r
154     {\r
155         "id": "4b9a0abb.eb1bb4",\r
156         "type": "returnFailure",\r
157         "name": "return failure",\r
158         "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-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
159         "comments": "",\r
160         "x": 956.6826248168945,\r
161         "y": 215.14291763305664,\r
162         "z": "d0c9a483.09f7c8",\r
163         "wires": []\r
164     },\r
165     {\r
166         "id": "8d9e53be.f0301",\r
167         "type": "switchNode",\r
168         "name": "switch this vnf-id == input vnf-id",\r
169         "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\">    \n",\r
170         "comments": "",\r
171         "outputs": 1,\r
172         "x": 845.2539138793945,\r
173         "y": 277.00000619888306,\r
174         "z": "d0c9a483.09f7c8",\r
175         "wires": [\r
176             [\r
177                 "835ec48b.329e88"\r
178             ]\r
179         ]\r
180     },\r
181     {\r
182         "id": "835ec48b.329e88",\r
183         "type": "outcomeTrue",\r
184         "name": "true",\r
185         "xml": "<outcome value='true'>\n",\r
186         "comments": "",\r
187         "outputs": 1,\r
188         "x": 1060.2538986206055,\r
189         "y": 275,\r
190         "z": "d0c9a483.09f7c8",\r
191         "wires": [\r
192             [\r
193                 "38760c6e.34c224"\r
194             ]\r
195         ]\r
196     },\r
197     {\r
198         "id": "38760c6e.34c224",\r
199         "type": "set",\r
200         "name": "set vnf-index",\r
201         "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",\r
202         "comments": "",\r
203         "x": 1224.2538986206055,\r
204         "y": 270,\r
205         "z": "d0c9a483.09f7c8",\r
206         "wires": []\r
207     },\r
208     {\r
209         "id": "2919e925.39dec6",\r
210         "type": "outcome",\r
211         "name": "NULL",\r
212         "xml": "<outcome value=''>\n",\r
213         "comments": "",\r
214         "outputs": 1,\r
215         "x": 894.2538986206055,\r
216         "y": 382,\r
217         "z": "d0c9a483.09f7c8",\r
218         "wires": [\r
219             [\r
220                 "4642ed44.17b144"\r
221             ]\r
222         ]\r
223     },\r
224     {\r
225         "id": "cef58dbf.65cb",\r
226         "type": "outcome",\r
227         "name": "0",\r
228         "xml": "<outcome value='0'>\n",\r
229         "comments": "",\r
230         "outputs": 1,\r
231         "x": 899.2538948059082,\r
232         "y": 328.9999990463257,\r
233         "z": "d0c9a483.09f7c8",\r
234         "wires": [\r
235             [\r
236                 "4642ed44.17b144"\r
237             ]\r
238         ]\r
239     },\r
240     {\r
241         "id": "4642ed44.17b144",\r
242         "type": "returnFailure",\r
243         "name": "return failure",\r
244         "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-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",\r
245         "comments": "",\r
246         "x": 1057.2538986206055,\r
247         "y": 342,\r
248         "z": "d0c9a483.09f7c8",\r
249         "wires": []\r
250     },\r
251     {\r
252         "id": "e1d6ced2.e1fdf",\r
253         "type": "other",\r
254         "name": "other",\r
255         "xml": "<outcome value='Other'>\n",\r
256         "comments": "",\r
257         "outputs": 1,\r
258         "x": 894.2538986206055,\r
259         "y": 443,\r
260         "z": "d0c9a483.09f7c8",\r
261         "wires": [\r
262             [\r
263                 "1bffa38f.f0c50c"\r
264             ]\r
265         ]\r
266     },\r
267     {\r
268         "id": "3daf6135.38733e",\r
269         "type": "set",\r
270         "name": "set vf-module_length",\r
271         "xml": "<set>\n<parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n",\r
272         "comments": "",\r
273         "x": 1248.2539138793945,\r
274         "y": 441.0000139474869,\r
275         "z": "d0c9a483.09f7c8",\r
276         "wires": []\r
277     },\r
278     {\r
279         "id": "1bffa38f.f0c50c",\r
280         "type": "block",\r
281         "name": "block : atomic",\r
282         "xml": "<block atomic=\"true\">",\r
283         "atomic": "true",\r
284         "outputs": 1,\r
285         "x": 1055.2539443969727,\r
286         "y": 439.99999141693115,\r
287         "z": "d0c9a483.09f7c8",\r
288         "wires": [\r
289             [\r
290                 "3daf6135.38733e",\r
291                 "ef25b392.fb9e5"\r
292             ]\r
293         ]\r
294     },\r
295     {\r
296         "id": "ef25b392.fb9e5",\r
297         "type": "for",\r
298         "name": "for each existing vf-index",\r
299         "xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",\r
300         "comments": "",\r
301         "outputs": 1,\r
302         "x": 1267.2538833618164,\r
303         "y": 493.99999046325684,\r
304         "z": "d0c9a483.09f7c8",\r
305         "wires": [\r
306             [\r
307                 "a5aa4ea3.3a9f8"\r
308             ]\r
309         ]\r
310     },\r
311     {\r
312         "id": "a5aa4ea3.3a9f8",\r
313         "type": "switchNode",\r
314         "name": "switch vf-module-id found",\r
315         "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
316         "comments": "",\r
317         "outputs": 1,\r
318         "x": 1510.2538986206055,\r
319         "y": 489,\r
320         "z": "d0c9a483.09f7c8",\r
321         "wires": [\r
322             [\r
323                 "291f40c7.f811f"\r
324             ]\r
325         ]\r
326     },\r
327     {\r
328         "id": "291f40c7.f811f",\r
329         "type": "outcomeTrue",\r
330         "name": "true",\r
331         "xml": "<outcome value='true'>\n",\r
332         "comments": "",\r
333         "outputs": 1,\r
334         "x": 1708.253927230835,\r
335         "y": 476.0000066757202,\r
336         "z": "d0c9a483.09f7c8",\r
337         "wires": [\r
338             [\r
339                 "62bd116.37066f"\r
340             ]\r
341         ]\r
342     },\r
343     {\r
344         "id": "62bd116.37066f",\r
345         "type": "block",\r
346         "name": "block : atomic",\r
347         "xml": "<block atomic=\"true\">",\r
348         "atomic": "true",\r
349         "outputs": 1,\r
350         "x": 1860.2538986206055,\r
351         "y": 478,\r
352         "z": "d0c9a483.09f7c8",\r
353         "wires": [\r
354             [\r
355                 "fceeafa7.b7652",\r
356                 "767f5d19.fe3e84",\r
357                 "f1e44e3e.f0b3c"\r
358             ]\r
359         ]\r
360     },\r
361     {\r
362         "id": "fceeafa7.b7652",\r
363         "type": "set",\r
364         "name": "set tmp.vidx and ctx.vnf-data",\r
365         "xml": "<set>\n<parameter name='tmp.vidx' value='`$idx`' />\n<parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\n",\r
366         "comments": "",\r
367         "x": 2088.2540130615234,\r
368         "y": 420.00000381469727,\r
369         "z": "d0c9a483.09f7c8",\r
370         "wires": []\r
371     },\r
372     {\r
373         "id": "767f5d19.fe3e84",\r
374         "type": "set",\r
375         "name": "set vf-module-request-input.",\r
376         "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\n\n",\r
377         "comments": "",\r
378         "x": 2092.2540130615234,\r
379         "y": 474.00000381469727,\r
380         "z": "d0c9a483.09f7c8",\r
381         "wires": []\r
382     },\r
383     {\r
384         "id": "1bfdbcc3.c7cd93",\r
385         "type": "returnSuccess",\r
386         "name": "return success",\r
387         "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
388         "comments": "",\r
389         "x": 606.2540168762207,\r
390         "y": 2089.501151561737,\r
391         "z": "d0c9a483.09f7c8",\r
392         "wires": []\r
393     },\r
394     {\r
395         "id": "f1e44e3e.f0b3c",\r
396         "type": "call",\r
397         "name": "call sdwan-get-vf-module-lanport-param",\r
398         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lanport-param' mode='sync' >\n",\r
399         "comments": "",\r
400         "outputs": 1,\r
401         "x": 2122.7090377807617,\r
402         "y": 525.0104961395264,\r
403         "z": "d0c9a483.09f7c8",\r
404         "wires": [\r
405             []\r
406         ]\r
407     },\r
408     {\r
409         "id": "aa0d1480.7f1978",\r
410         "type": "for",\r
411         "name": "for vf-modules.vf-module_length",\r
412         "xml": "<for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length`' >\n",\r
413         "comments": "",\r
414         "outputs": 1,\r
415         "x": 1379.5080871582031,\r
416         "y": 553.0040807723999,\r
417         "z": "d0c9a483.09f7c8",\r
418         "wires": [\r
419             [\r
420                 "9ed7ce57.d6ce"\r
421             ]\r
422         ]\r
423     },\r
424     {\r
425         "id": "1f605289.f2eb7d",\r
426         "type": "switchNode",\r
427         "name": "switch this deviceName == vf-input",\r
428         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == $prop.lan.deviceName`\">\n",\r
429         "comments": "",\r
430         "outputs": 1,\r
431         "x": 1450.50830078125,\r
432         "y": 626.0042104721069,\r
433         "z": "d0c9a483.09f7c8",\r
434         "wires": [\r
435             [\r
436                 "b123da61.76e8a8"\r
437             ]\r
438         ]\r
439     },\r
440     {\r
441         "id": "9ed7ce57.d6ce",\r
442         "type": "for",\r
443         "name": "for vf-module-input-param length",\r
444         "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",\r
445         "comments": "",\r
446         "outputs": 1,\r
447         "x": 1665.5079345703125,\r
448         "y": 555.0041646957397,\r
449         "z": "d0c9a483.09f7c8",\r
450         "wires": [\r
451             [\r
452                 "f599447.9ac3fb8"\r
453             ]\r
454         ]\r
455     },\r
456     {\r
457         "id": "b123da61.76e8a8",\r
458         "type": "outcomeTrue",\r
459         "name": "true",\r
460         "xml": "<outcome value='true'>\n",\r
461         "comments": "",\r
462         "outputs": 1,\r
463         "x": 1670.5080242156982,\r
464         "y": 627.0042181015015,\r
465         "z": "d0c9a483.09f7c8",\r
466         "wires": [\r
467             [\r
468                 "2d7f5405.e9306c"\r
469             ]\r
470         ]\r
471     },\r
472     {\r
473         "id": "2d7f5405.e9306c",\r
474         "type": "for",\r
475         "name": "for vf-modules.vf-module_length",\r
476         "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",\r
477         "comments": "",\r
478         "outputs": 1,\r
479         "x": 1915.5081024169922,\r
480         "y": 627.0041356086731,\r
481         "z": "d0c9a483.09f7c8",\r
482         "wires": [\r
483             [\r
484                 "faceb28.d0a9d5"\r
485             ]\r
486         ]\r
487     },\r
488     {\r
489         "id": "faceb28.d0a9d5",\r
490         "type": "switchNode",\r
491         "name": "switch deviceId == input vf-id",\r
492         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'deviceId'`\">\n    \n\n\n",\r
493         "comments": "",\r
494         "outputs": 1,\r
495         "x": 2223.5083770751953,\r
496         "y": 610.0041036605835,\r
497         "z": "d0c9a483.09f7c8",\r
498         "wires": [\r
499             [\r
500                 "ec659d9d.8002"\r
501             ]\r
502         ]\r
503     },\r
504     {\r
505         "id": "ec659d9d.8002",\r
506         "type": "outcomeTrue",\r
507         "name": "true",\r
508         "xml": "<outcome value='true'>\n",\r
509         "comments": "",\r
510         "outputs": 1,\r
511         "x": 2432.508415222168,\r
512         "y": 612.004096031189,\r
513         "z": "d0c9a483.09f7c8",\r
514         "wires": [\r
515             [\r
516                 "73ebf520.d1f88c"\r
517             ]\r
518         ]\r
519     },\r
520     {\r
521         "id": "73ebf520.d1f88c",\r
522         "type": "set",\r
523         "name": "set prop.lan.deviceId",\r
524         "xml": "<set>\n<parameter name='prop.lan.deviceId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />\n",\r
525         "comments": "",\r
526         "x": 2609.5083808898926,\r
527         "y": 608.0042867660522,\r
528         "z": "d0c9a483.09f7c8",\r
529         "wires": []\r
530     },\r
531     {\r
532         "id": "6e8941e2.a043c",\r
533         "type": "for",\r
534         "name": "for service-data.vnfs.vnf_length",\r
535         "xml": "<for index='vnfidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
536         "comments": "",\r
537         "outputs": 1,\r
538         "x": 633.5078125,\r
539         "y": 420.00404262542725,\r
540         "z": "d0c9a483.09f7c8",\r
541         "wires": [\r
542             [\r
543                 "5c633f8a.ecb75"\r
544             ]\r
545         ]\r
546     },\r
547     {\r
548         "id": "415f5cb9.3a6e44",\r
549         "type": "switchNode",\r
550         "name": "switch ActivateSDWANSiteInstance",\r
551         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANSiteInstance'`\">\n",\r
552         "comments": "",\r
553         "outputs": 1,\r
554         "x": 1270.258186340332,\r
555         "y": 737.0039882659912,\r
556         "z": "d0c9a483.09f7c8",\r
557         "wires": [\r
558             [\r
559                 "55fab2c0.18755c"\r
560             ]\r
561         ]\r
562     },\r
563     {\r
564         "id": "ba32492c.0e54c8",\r
565         "type": "for",\r
566         "name": "for vf-modules.vf-module_length",\r
567         "xml": "<for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length`' >\n",\r
568         "comments": "",\r
569         "outputs": 1,\r
570         "x": 916.2580261230469,\r
571         "y": 704.0040283203125,\r
572         "z": "d0c9a483.09f7c8",\r
573         "wires": [\r
574             [\r
575                 "bd374d2.a7cdcb"\r
576             ]\r
577         ]\r
578     },\r
579     {\r
580         "id": "b07fc696.74dd68",\r
581         "type": "for",\r
582         "name": "for service-data.vnfs.vnf_length",\r
583         "xml": "<for index='vnfidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
584         "comments": "",\r
585         "outputs": 1,\r
586         "x": 667.2578811645508,\r
587         "y": 635.0039081573486,\r
588         "z": "d0c9a483.09f7c8",\r
589         "wires": [\r
590             [\r
591                 "ba32492c.0e54c8"\r
592             ]\r
593         ]\r
594     },\r
595     {\r
596         "id": "55fab2c0.18755c",\r
597         "type": "outcomeTrue",\r
598         "name": "true",\r
599         "xml": "<outcome value='true'>\n",\r
600         "comments": "",\r
601         "outputs": 1,\r
602         "x": 1492.2581024169922,\r
603         "y": 737.0040698051453,\r
604         "z": "d0c9a483.09f7c8",\r
605         "wires": [\r
606             [\r
607                 "2d0cb991.e67216"\r
608             ]\r
609         ]\r
610     },\r
611     {\r
612         "id": "2d0cb991.e67216",\r
613         "type": "for",\r
614         "name": "for vf-modules.vf-module_length",\r
615         "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",\r
616         "comments": "",\r
617         "outputs": 1,\r
618         "x": 1573.5081100463867,\r
619         "y": 811.5040712356567,\r
620         "z": "d0c9a483.09f7c8",\r
621         "wires": [\r
622             [\r
623                 "f98893a0.de7a4"\r
624             ]\r
625         ]\r
626     },\r
627     {\r
628         "id": "39ba7083.5ed54",\r
629         "type": "switchNode",\r
630         "name": "switch siteId",\r
631         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'siteId'`\">\n    \n\n\n",\r
632         "comments": "",\r
633         "outputs": 1,\r
634         "x": 1956.5084686279297,\r
635         "y": 818.5041785240173,\r
636         "z": "d0c9a483.09f7c8",\r
637         "wires": [\r
638             [\r
639                 "36c8a445.c6055c"\r
640             ]\r
641         ]\r
642     },\r
643     {\r
644         "id": "36c8a445.c6055c",\r
645         "type": "outcomeTrue",\r
646         "name": "true",\r
647         "xml": "<outcome value='true'>\n",\r
648         "comments": "",\r
649         "outputs": 1,\r
650         "x": 2133.508487701416,\r
651         "y": 821.5040187835693,\r
652         "z": "d0c9a483.09f7c8",\r
653         "wires": [\r
654             [\r
655                 "cb17586e.80dbb8"\r
656             ]\r
657         ]\r
658     },\r
659     {\r
660         "id": "cafa7b8b.465778",\r
661         "type": "set",\r
662         "name": "set prop.attach.siteId",\r
663         "xml": "<set>\n<parameter name='prop.attach.siteId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />\n",\r
664         "comments": "",\r
665         "x": 2517.5089950561523,\r
666         "y": 795.5040702819824,\r
667         "z": "d0c9a483.09f7c8",\r
668         "wires": []\r
669     },\r
670     {\r
671         "id": "cb17586e.80dbb8",\r
672         "type": "block",\r
673         "name": "block : atomic",\r
674         "xml": "<block atomic=\"true\">",\r
675         "atomic": "true",\r
676         "outputs": 1,\r
677         "x": 2292.7586784362793,\r
678         "y": 817.0040588378906,\r
679         "z": "d0c9a483.09f7c8",\r
680         "wires": [\r
681             [\r
682                 "cafa7b8b.465778",\r
683                 "9412ef29.cc029",\r
684                 "4b9ca75a.7fc698",\r
685                 "2f9763b5.4e87fc"\r
686             ]\r
687         ]\r
688     },\r
689     {\r
690         "id": "8fa1111d.08c36",\r
691         "type": "get-resource",\r
692         "name": "get-resource esr-thirdparty-sdnc",\r
693         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = SDWANController AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
694         "comments": "",\r
695         "outputs": 1,\r
696         "x": 628.2578277587891,\r
697         "y": 954.5039968490601,\r
698         "z": "d0c9a483.09f7c8",\r
699         "wires": [\r
700             [\r
701                 "4a5d401e.8bf8e",\r
702                 "1ff4f9b4.f19fb6",\r
703                 "8afdb3bf.1d43d"\r
704             ]\r
705         ]\r
706     },\r
707     {\r
708         "id": "4a5d401e.8bf8e",\r
709         "type": "success",\r
710         "name": "success",\r
711         "xml": "<outcome value='success'>\n",\r
712         "comments": "",\r
713         "outputs": 1,\r
714         "x": 872.2578887939453,\r
715         "y": 918.5039968490601,\r
716         "z": "d0c9a483.09f7c8",\r
717         "wires": [\r
718             [\r
719                 "ec14c17f.6e2c1"\r
720             ]\r
721         ]\r
722     },\r
723     {\r
724         "id": "1ff4f9b4.f19fb6",\r
725         "type": "not-found",\r
726         "name": "not-found",\r
727         "xml": "<outcome value='not-found'>\n",\r
728         "comments": "",\r
729         "outputs": 1,\r
730         "x": 874.7487716674805,\r
731         "y": 954.0780334472656,\r
732         "z": "d0c9a483.09f7c8",\r
733         "wires": [\r
734             [\r
735                 "7501ffb3.13588"\r
736             ]\r
737         ]\r
738     },\r
739     {\r
740         "id": "8afdb3bf.1d43d",\r
741         "type": "other",\r
742         "name": "other",\r
743         "xml": "<outcome value='Other'>\n",\r
744         "comments": "",\r
745         "outputs": 1,\r
746         "x": 870.0817794799805,\r
747         "y": 990.4113922119141,\r
748         "z": "d0c9a483.09f7c8",\r
749         "wires": [\r
750             [\r
751                 "26b83768.3bb758"\r
752             ]\r
753         ]\r
754     },\r
755     {\r
756         "id": "26b83768.3bb758",\r
757         "type": "returnFailure",\r
758         "name": "return failure",\r
759         "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=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
760         "comments": "",\r
761         "x": 1023.8542709350586,\r
762         "y": 987.8504791259766,\r
763         "z": "d0c9a483.09f7c8",\r
764         "wires": []\r
765     },\r
766     {\r
767         "id": "7501ffb3.13588",\r
768         "type": "returnFailure",\r
769         "name": "return failure",\r
770         "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=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
771         "comments": "",\r
772         "x": 1020.3201675415039,\r
773         "y": 952.3637208938599,\r
774         "z": "d0c9a483.09f7c8",\r
775         "wires": []\r
776     },\r
777     {\r
778         "id": "ec14c17f.6e2c1",\r
779         "type": "set",\r
780         "name": "set controller data",\r
781         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",\r
782         "comments": "",\r
783         "x": 1032.757999420166,\r
784         "y": 916.5039367675781,\r
785         "z": "d0c9a483.09f7c8",\r
786         "wires": []\r
787     },\r
788     {\r
789         "id": "a897b863.5cfc78",\r
790         "type": "execute",\r
791         "name": "execute RestApiCallNode Get token",\r
792         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",\r
793         "comments": "",\r
794         "outputs": 1,\r
795         "x": 642.1960601806641,\r
796         "y": 1057.62509059906,\r
797         "z": "d0c9a483.09f7c8",\r
798         "wires": [\r
799             [\r
800                 "b99d5bfa.8263b8",\r
801                 "3b97c655.fec2fa"\r
802             ]\r
803         ]\r
804     },\r
805     {\r
806         "id": "b99d5bfa.8263b8",\r
807         "type": "success",\r
808         "name": "success",\r
809         "xml": "<outcome value='success'>\n",\r
810         "comments": "",\r
811         "outputs": 1,\r
812         "x": 877.1961860656738,\r
813         "y": 1043.6250791549683,\r
814         "z": "d0c9a483.09f7c8",\r
815         "wires": [\r
816             [\r
817                 "da99c661.cc9138"\r
818             ]\r
819         ]\r
820     },\r
821     {\r
822         "id": "3b97c655.fec2fa",\r
823         "type": "failure",\r
824         "name": "failure",\r
825         "xml": "<outcome value='failure'>\n",\r
826         "comments": "",\r
827         "outputs": 1,\r
828         "x": 876.4461860656738,\r
829         "y": 1079.2679862976074,\r
830         "z": "d0c9a483.09f7c8",\r
831         "wires": [\r
832             [\r
833                 "d1dde0a7.dc9a2"\r
834             ]\r
835         ]\r
836     },\r
837     {\r
838         "id": "d1dde0a7.dc9a2",\r
839         "type": "returnFailure",\r
840         "name": "return failure",\r
841         "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=\"Error executing get token rest api\" />\n",\r
842         "comments": "",\r
843         "x": 1025.1961936950684,\r
844         "y": 1080.0180683135986,\r
845         "z": "d0c9a483.09f7c8",\r
846         "wires": []\r
847     },\r
848     {\r
849         "id": "da99c661.cc9138",\r
850         "type": "set",\r
851         "name": "set token-id",\r
852         "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",\r
853         "comments": "",\r
854         "x": 1019.1961936950684,\r
855         "y": 1042.6250801086426,\r
856         "z": "d0c9a483.09f7c8",\r
857         "wires": []\r
858     },\r
859     {\r
860         "id": "537766b1.131458",\r
861         "type": "execute",\r
862         "name": "execute RestApiCallNode device port create",\r
863         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdlan-port.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/ports'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"portResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
864         "comments": "",\r
865         "outputs": 1,\r
866         "x": 668.28515625,\r
867         "y": 1209.0782289505005,\r
868         "z": "d0c9a483.09f7c8",\r
869         "wires": [\r
870             [\r
871                 "8649541f.c916f8",\r
872                 "490b0339.21ab4c"\r
873             ]\r
874         ]\r
875     },\r
876     {\r
877         "id": "8649541f.c916f8",\r
878         "type": "success",\r
879         "name": "success",\r
880         "xml": "<outcome value='success'>\n",\r
881         "comments": "",\r
882         "outputs": 1,\r
883         "x": 917.2852153778076,\r
884         "y": 1223.0784349441528,\r
885         "z": "d0c9a483.09f7c8",\r
886         "wires": [\r
887             [\r
888                 "53d53343.edd9cc"\r
889             ]\r
890         ]\r
891     },\r
892     {\r
893         "id": "490b0339.21ab4c",\r
894         "type": "failure",\r
895         "name": "failure",\r
896         "xml": "<outcome value='failure'>\n",\r
897         "comments": "",\r
898         "outputs": 1,\r
899         "x": 917.2852153778076,\r
900         "y": 1185.0782704353333,\r
901         "z": "d0c9a483.09f7c8",\r
902         "wires": [\r
903             [\r
904                 "bb7e9ee8.bdde5"\r
905             ]\r
906         ]\r
907     },\r
908     {\r
909         "id": "bb7e9ee8.bdde5",\r
910         "type": "returnFailure",\r
911         "name": "return failure",\r
912         "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=\"Error executing Create device port rest api\" />\n",\r
913         "comments": "",\r
914         "x": 1061.2855491638184,\r
915         "y": 1184.078269958496,\r
916         "z": "d0c9a483.09f7c8",\r
917         "wires": []\r
918     },\r
919     {\r
920         "id": "53d53343.edd9cc",\r
921         "type": "block",\r
922         "name": "block : atomic",\r
923         "xml": "<block atomic=\"true\">",\r
924         "atomic": "true",\r
925         "comments": "",\r
926         "outputs": 1,\r
927         "x": 1064.2852268218994,\r
928         "y": 1224.0782737731934,\r
929         "z": "d0c9a483.09f7c8",\r
930         "wires": [\r
931             []\r
932         ]\r
933     },\r
934     {\r
935         "id": "901afcf1.d22f3",\r
936         "type": "set",\r
937         "name": "set prop.lan.devicePortId",\r
938         "xml": "<set>\n<parameter name='prop.lan.devicePortId' value='`$portResp.success[0].id`' />\n",\r
939         "comments": "",\r
940         "x": 610.9424171447754,\r
941         "y": 1262.1794338226318,\r
942         "z": "d0c9a483.09f7c8",\r
943         "wires": []\r
944     },\r
945     {\r
946         "id": "44729f10.35f05",\r
947         "type": "comment",\r
948         "name": "Create port",\r
949         "info": "",\r
950         "comments": "",\r
951         "x": 569.9510955810547,\r
952         "y": 1175.522253036499,\r
953         "z": "d0c9a483.09f7c8",\r
954         "wires": []\r
955     },\r
956     {\r
957         "id": "9bf6789f.a0ec08",\r
958         "type": "call",\r
959         "name": "call sdwan-get-tenant-auth",\r
960         "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-tenant-auth' mode='sync' >\n",\r
961         "comments": "",\r
962         "outputs": 1,\r
963         "x": 616.9510955810547,\r
964         "y": 1124.1886892318726,\r
965         "z": "d0c9a483.09f7c8",\r
966         "wires": [\r
967             []\r
968         ]\r
969     },\r
970     {\r
971         "id": "eeb61a62.766e08",\r
972         "type": "execute",\r
973         "name": "execute RestApiCallNode bridge domain create",\r
974         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdlan-bridge-domain.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/bridge-domains'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"bridgeDomainResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
975         "comments": "",\r
976         "outputs": 1,\r
977         "x": 1090.9354057312012,\r
978         "y": 1304.188857793808,\r
979         "z": "d0c9a483.09f7c8",\r
980         "wires": [\r
981             [\r
982                 "925721ce.9c9c3",\r
983                 "4887b469.84db6c"\r
984             ]\r
985         ]\r
986     },\r
987     {\r
988         "id": "925721ce.9c9c3",\r
989         "type": "success",\r
990         "name": "success",\r
991         "xml": "<outcome value='success'>\n",\r
992         "comments": "",\r
993         "outputs": 1,\r
994         "x": 1411.935432434082,\r
995         "y": 1321.1891782283783,\r
996         "z": "d0c9a483.09f7c8",\r
997         "wires": [\r
998             [\r
999                 "ae68593e.8ba108"\r
1000             ]\r
1001         ]\r
1002     },\r
1003     {\r
1004         "id": "4887b469.84db6c",\r
1005         "type": "failure",\r
1006         "name": "failure",\r
1007         "xml": "<outcome value='failure'>\n",\r
1008         "comments": "",\r
1009         "outputs": 1,\r
1010         "x": 1414.935459136963,\r
1011         "y": 1286.1889598369598,\r
1012         "z": "d0c9a483.09f7c8",\r
1013         "wires": [\r
1014             [\r
1015                 "79f2f146.ca204"\r
1016             ]\r
1017         ]\r
1018     },\r
1019     {\r
1020         "id": "79f2f146.ca204",\r
1021         "type": "returnFailure",\r
1022         "name": "return failure",\r
1023         "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=\"Error executing Create bridge domain rest api\" />\n",\r
1024         "comments": "",\r
1025         "x": 1617.935848236084,\r
1026         "y": 1282.1890671253204,\r
1027         "z": "d0c9a483.09f7c8",\r
1028         "wires": []\r
1029     },\r
1030     {\r
1031         "id": "ae68593e.8ba108",\r
1032         "type": "block",\r
1033         "name": "block : atomic",\r
1034         "xml": "<block atomic=\"true\">",\r
1035         "atomic": "true",\r
1036         "comments": "",\r
1037         "outputs": 1,\r
1038         "x": 1618.9354133605957,\r
1039         "y": 1317.1889336109161,\r
1040         "z": "d0c9a483.09f7c8",\r
1041         "wires": [\r
1042             []\r
1043         ]\r
1044     },\r
1045     {\r
1046         "id": "ccce6236.dc74f",\r
1047         "type": "comment",\r
1048         "name": "Create bridge domain",\r
1049         "info": "",\r
1050         "comments": "",\r
1051         "x": 1034.6012992858887,\r
1052         "y": 1270.6330835819244,\r
1053         "z": "d0c9a483.09f7c8",\r
1054         "wires": []\r
1055     },\r
1056     {\r
1057         "id": "ef04791b.55e268",\r
1058         "type": "switchNode",\r
1059         "name": "switch portSwitch",\r
1060         "xml": "<switch test=\"`$prop.lan.portSwitch == 'layer2-port'`\">\n\n",\r
1061         "comments": "",\r
1062         "outputs": 1,\r
1063         "x": 590.7128715515137,\r
1064         "y": 1305.855489730835,\r
1065         "z": "d0c9a483.09f7c8",\r
1066         "wires": [\r
1067             [\r
1068                 "c3342bc2.390e38"\r
1069             ]\r
1070         ]\r
1071     },\r
1072     {\r
1073         "id": "c3342bc2.390e38",\r
1074         "type": "outcomeTrue",\r
1075         "name": "true",\r
1076         "xml": "<outcome value='true'>\n",\r
1077         "comments": "",\r
1078         "outputs": 1,\r
1079         "x": 769.7129020690918,\r
1080         "y": 1305.966812133789,\r
1081         "z": "d0c9a483.09f7c8",\r
1082         "wires": [\r
1083             [\r
1084                 "eeb61a62.766e08"\r
1085             ]\r
1086         ]\r
1087     },\r
1088     {\r
1089         "id": "8364ef5f.25f26",\r
1090         "type": "execute",\r
1091         "name": "execute split ip and mask",\r
1092         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.lan.ipAddress`'/>\n<parameter name=\"regex\" value=\"/\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"ipandMask\"/>\n",\r
1093         "comments": "",\r
1094         "outputs": 1,\r
1095         "x": 615.2578659057617,\r
1096         "y": 1405.7540397644043,\r
1097         "z": "d0c9a483.09f7c8",\r
1098         "wires": [\r
1099             [\r
1100                 "760fe778.7861c8",\r
1101                 "4e9c561e.4ac8b8"\r
1102             ]\r
1103         ]\r
1104     },\r
1105     {\r
1106         "id": "4e9c561e.4ac8b8",\r
1107         "type": "failure",\r
1108         "name": "success",\r
1109         "xml": "<outcome value='success'>\n",\r
1110         "comments": "",\r
1111         "outputs": 1,\r
1112         "x": 816.257884979248,\r
1113         "y": 1383.7540311813354,\r
1114         "z": "d0c9a483.09f7c8",\r
1115         "wires": [\r
1116             [\r
1117                 "3c0ad409.f6e78c"\r
1118             ]\r
1119         ]\r
1120     },\r
1121     {\r
1122         "id": "760fe778.7861c8",\r
1123         "type": "failure",\r
1124         "name": "failure",\r
1125         "xml": "<outcome value='failure'>\n",\r
1126         "comments": "",\r
1127         "outputs": 1,\r
1128         "x": 816.2578887939453,\r
1129         "y": 1424.7540349960327,\r
1130         "z": "d0c9a483.09f7c8",\r
1131         "wires": [\r
1132             [\r
1133                 "af9e51cb.86f12"\r
1134             ]\r
1135         ]\r
1136     },\r
1137     {\r
1138         "id": "3c0ad409.f6e78c",\r
1139         "type": "set",\r
1140         "name": "set ipAddress prefixLength",\r
1141         "xml": "<set>\n<parameter name='prop.lan.ip-address' value='`$ipandMask[0]`' />\n<parameter name='prop.lan.prefixLength' value='`$ipandMask[1]`' />",\r
1142         "comments": "",\r
1143         "x": 1013.2579040527344,\r
1144         "y": 1381.7540311813354,\r
1145         "z": "d0c9a483.09f7c8",\r
1146         "wires": []\r
1147     },\r
1148     {\r
1149         "id": "af9e51cb.86f12",\r
1150         "type": "returnFailure",\r
1151         "name": "return failure",\r
1152         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",\r
1153         "comments": "",\r
1154         "x": 971.2578964233398,\r
1155         "y": 1421.7540340423584,\r
1156         "z": "d0c9a483.09f7c8",\r
1157         "wires": []\r
1158     },\r
1159     {\r
1160         "id": "a9e3f075.4494b",\r
1161         "type": "comment",\r
1162         "name": "Create wan port",\r
1163         "info": "",\r
1164         "comments": "",\r
1165         "x": 588.2677421569824,\r
1166         "y": 1358.7640895843506,\r
1167         "z": "d0c9a483.09f7c8",\r
1168         "wires": []\r
1169     },\r
1170     {\r
1171         "id": "cd240d96.e63a6",\r
1172         "type": "comment",\r
1173         "name": "TODO: split ip/mask",\r
1174         "info": "",\r
1175         "comments": "",\r
1176         "x": 1012.2675361633301,\r
1177         "y": 1343.9343032836914,\r
1178         "z": "d0c9a483.09f7c8",\r
1179         "wires": []\r
1180     },\r
1181     {\r
1182         "id": "8ffe71d6.e37e5",\r
1183         "type": "execute",\r
1184         "name": "execute RestApiCallNode IPSubnets create",\r
1185         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdlan-ip-subnets.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/ip-subnets'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"lanPortResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
1186         "comments": "",\r
1187         "outputs": 1,\r
1188         "x": 674.0292358398438,\r
1189         "y": 1481.8749294281006,\r
1190         "z": "d0c9a483.09f7c8",\r
1191         "wires": [\r
1192             [\r
1193                 "87d7037c.ae081",\r
1194                 "b63381ea.1d864"\r
1195             ]\r
1196         ]\r
1197     },\r
1198     {\r
1199         "id": "b63381ea.1d864",\r
1200         "type": "failure",\r
1201         "name": "failure",\r
1202         "xml": "<outcome value='failure'>\n",\r
1203         "comments": "",\r
1204         "outputs": 1,\r
1205         "x": 943.0292663574219,\r
1206         "y": 1468.8749017715454,\r
1207         "z": "d0c9a483.09f7c8",\r
1208         "wires": [\r
1209             [\r
1210                 "594e98d1.fab688"\r
1211             ]\r
1212         ]\r
1213     },\r
1214     {\r
1215         "id": "87d7037c.ae081",\r
1216         "type": "success",\r
1217         "name": "success",\r
1218         "xml": "<outcome value='success'>\n",\r
1219         "comments": "",\r
1220         "outputs": 1,\r
1221         "x": 940.029239654541,\r
1222         "y": 1503.8751201629639,\r
1223         "z": "d0c9a483.09f7c8",\r
1224         "wires": [\r
1225             [\r
1226                 "5e9af700.a76ce8"\r
1227             ]\r
1228         ]\r
1229     },\r
1230     {\r
1231         "id": "594e98d1.fab688",\r
1232         "type": "returnFailure",\r
1233         "name": "return failure",\r
1234         "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=\"Error executing Create device port rest api\" />\n",\r
1235         "comments": "",\r
1236         "x": 1096.0296478271484,\r
1237         "y": 1464.8751277923584,\r
1238         "z": "d0c9a483.09f7c8",\r
1239         "wires": []\r
1240     },\r
1241     {\r
1242         "id": "5e9af700.a76ce8",\r
1243         "type": "block",\r
1244         "name": "block : atomic",\r
1245         "xml": "<block atomic=\"true\">",\r
1246         "atomic": "true",\r
1247         "comments": "",\r
1248         "outputs": 1,\r
1249         "x": 1087.0292205810547,\r
1250         "y": 1504.8748760223389,\r
1251         "z": "d0c9a483.09f7c8",\r
1252         "wires": [\r
1253             [\r
1254                 "4982389d.632728"\r
1255             ]\r
1256         ]\r
1257     },\r
1258     {\r
1259         "id": "4982389d.632728",\r
1260         "type": "set",\r
1261         "name": "set prop.lan.lanPortId",\r
1262         "xml": "<set>\n<parameter name='prop.lan.lanPortId' value='`lanPortResp.success[0].id`' />\n",\r
1263         "comments": "",\r
1264         "x": 1293.9183235168457,\r
1265         "y": 1507.208342552185,\r
1266         "z": "d0c9a483.09f7c8",\r
1267         "wires": []\r
1268     },\r
1269     {\r
1270         "id": "695214fd.2c4fdc",\r
1271         "type": "execute",\r
1272         "name": "execute RestApiCallNode create vpn topology",\r
1273         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-topology.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpn1Id + '/topology'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
1274         "comments": "",\r
1275         "outputs": 1,\r
1276         "x": 699.5396575927734,\r
1277         "y": 1640.333706855774,\r
1278         "z": "d0c9a483.09f7c8",\r
1279         "wires": [\r
1280             [\r
1281                 "d46aab2e.402878",\r
1282                 "f79fe60.440a918"\r
1283             ]\r
1284         ]\r
1285     },\r
1286     {\r
1287         "id": "f79fe60.440a918",\r
1288         "type": "success",\r
1289         "name": "success",\r
1290         "xml": "<outcome value='success'>\n",\r
1291         "comments": "",\r
1292         "outputs": 1,\r
1293         "x": 938.539571762085,\r
1294         "y": 1687.333193898201,\r
1295         "z": "d0c9a483.09f7c8",\r
1296         "wires": [\r
1297             [\r
1298                 "be3a59b0.64c5a8"\r
1299             ]\r
1300         ]\r
1301     },\r
1302     {\r
1303         "id": "be3a59b0.64c5a8",\r
1304         "type": "block",\r
1305         "name": "block : atomic",\r
1306         "xml": "<block atomic=\"true\">",\r
1307         "atomic": "true",\r
1308         "comments": "",\r
1309         "outputs": 1,\r
1310         "x": 1108.5395107269287,\r
1311         "y": 1690.333193898201,\r
1312         "z": "d0c9a483.09f7c8",\r
1313         "wires": [\r
1314             []\r
1315         ]\r
1316     },\r
1317     {\r
1318         "id": "cb1060d7.72a6a",\r
1319         "type": "returnFailure",\r
1320         "name": "return failure",\r
1321         "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=\"Error executing Create vpn topology failed\" />\n",\r
1322         "comments": "",\r
1323         "x": 1108.5396327972412,\r
1324         "y": 1646.333193898201,\r
1325         "z": "d0c9a483.09f7c8",\r
1326         "wires": []\r
1327     },\r
1328     {\r
1329         "id": "d46aab2e.402878",\r
1330         "type": "failure",\r
1331         "name": "failure",\r
1332         "xml": "<outcome value='failure'>\n",\r
1333         "comments": "",\r
1334         "outputs": 1,\r
1335         "x": 941.5395107269287,\r
1336         "y": 1646.333193898201,\r
1337         "z": "d0c9a483.09f7c8",\r
1338         "wires": [\r
1339             [\r
1340                 "cb1060d7.72a6a"\r
1341             ]\r
1342         ]\r
1343     },\r
1344     {\r
1345         "id": "b5fcdf55.56396",\r
1346         "type": "execute",\r
1347         "name": "execute RestApiCallNode create vpn ",\r
1348         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/vpn'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",\r
1349         "comments": "",\r
1350         "outputs": 1,\r
1351         "x": 661.538013458252,\r
1352         "y": 1571.8328762054443,\r
1353         "z": "d0c9a483.09f7c8",\r
1354         "wires": [\r
1355             [\r
1356                 "1dcea603.d095ca",\r
1357                 "286fea94.caec26"\r
1358             ]\r
1359         ]\r
1360     },\r
1361     {\r
1362         "id": "286fea94.caec26",\r
1363         "type": "success",\r
1364         "name": "success",\r
1365         "xml": "<outcome value='success'>\n",\r
1366         "comments": "",\r
1367         "outputs": 1,\r
1368         "x": 882.5379161834717,\r
1369         "y": 1593.8328419923782,\r
1370         "z": "d0c9a483.09f7c8",\r
1371         "wires": [\r
1372             [\r
1373                 "8857322c.003b2"\r
1374             ]\r
1375         ]\r
1376     },\r
1377     {\r
1378         "id": "8857322c.003b2",\r
1379         "type": "block",\r
1380         "name": "block : atomic",\r
1381         "xml": "<block atomic=\"true\">",\r
1382         "atomic": "true",\r
1383         "comments": "",\r
1384         "outputs": 1,\r
1385         "x": 1052.5378551483154,\r
1386         "y": 1596.8328419923782,\r
1387         "z": "d0c9a483.09f7c8",\r
1388         "wires": [\r
1389             []\r
1390         ]\r
1391     },\r
1392     {\r
1393         "id": "94eea86a.175328",\r
1394         "type": "returnFailure",\r
1395         "name": "return failure",\r
1396         "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=\"Error executing Create vpn failed\" />\n",\r
1397         "comments": "",\r
1398         "x": 1052.537977218628,\r
1399         "y": 1552.8328419923782,\r
1400         "z": "d0c9a483.09f7c8",\r
1401         "wires": []\r
1402     },\r
1403     {\r
1404         "id": "1dcea603.d095ca",\r
1405         "type": "failure",\r
1406         "name": "failure",\r
1407         "xml": "<outcome value='failure'>\n",\r
1408         "comments": "",\r
1409         "outputs": 1,\r
1410         "x": 885.5378551483154,\r
1411         "y": 1552.8328419923782,\r
1412         "z": "d0c9a483.09f7c8",\r
1413         "wires": [\r
1414             [\r
1415                 "94eea86a.175328"\r
1416             ]\r
1417         ]\r
1418     },\r
1419     {\r
1420         "id": "7ec433f0.4a2dec",\r
1421         "type": "switchNode",\r
1422         "name": "switch ActivateSDWANVpnInstance",\r
1423         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANVpnInstance'`\">\n",\r
1424         "comments": "",\r
1425         "outputs": 1,\r
1426         "x": 1248.5398406982422,\r
1427         "y": 858.3332567214966,\r
1428         "z": "d0c9a483.09f7c8",\r
1429         "wires": [\r
1430             [\r
1431                 "df6b5755.18ea68"\r
1432             ]\r
1433         ]\r
1434     },\r
1435     {\r
1436         "id": "bd374d2.a7cdcb",\r
1437         "type": "block",\r
1438         "name": "block",\r
1439         "xml": "<block>\n",\r
1440         "atomic": "false",\r
1441         "comments": "",\r
1442         "outputs": 1,\r
1443         "x": 1005.8729438781738,\r
1444         "y": 787.3333368301392,\r
1445         "z": "d0c9a483.09f7c8",\r
1446         "wires": [\r
1447             [\r
1448                 "415f5cb9.3a6e44",\r
1449                 "7ec433f0.4a2dec"\r
1450             ]\r
1451         ]\r
1452     },\r
1453     {\r
1454         "id": "df6b5755.18ea68",\r
1455         "type": "outcomeTrue",\r
1456         "name": "true",\r
1457         "xml": "<outcome value='true'>\n",\r
1458         "comments": "",\r
1459         "outputs": 1,\r
1460         "x": 1344.2063522338867,\r
1461         "y": 932.3333377838135,\r
1462         "z": "d0c9a483.09f7c8",\r
1463         "wires": [\r
1464             [\r
1465                 "a2c862ed.3d8da"\r
1466             ]\r
1467         ]\r
1468     },\r
1469     {\r
1470         "id": "a2c862ed.3d8da",\r
1471         "type": "for",\r
1472         "name": "for vf-modules.vf-module_length",\r
1473         "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",\r
1474         "comments": "",\r
1475         "outputs": 1,\r
1476         "x": 1558.4562377929688,\r
1477         "y": 933.8333144187927,\r
1478         "z": "d0c9a483.09f7c8",\r
1479         "wires": [\r
1480             [\r
1481                 "26c3d6b7.9af80a"\r
1482             ]\r
1483         ]\r
1484     },\r
1485     {\r
1486         "id": "26c3d6b7.9af80a",\r
1487         "type": "switchNode",\r
1488         "name": "switch vpn-id",\r
1489         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'vpn-id'`\">\n    \n\n\n",\r
1490         "comments": "",\r
1491         "outputs": 1,\r
1492         "x": 1805.4562759399414,\r
1493         "y": 928.8333973884583,\r
1494         "z": "d0c9a483.09f7c8",\r
1495         "wires": [\r
1496             [\r
1497                 "73c96ff0.116a"\r
1498             ]\r
1499         ]\r
1500     },\r
1501     {\r
1502         "id": "73c96ff0.116a",\r
1503         "type": "outcomeTrue",\r
1504         "name": "true",\r
1505         "xml": "<outcome value='true'>\n",\r
1506         "comments": "",\r
1507         "outputs": 1,\r
1508         "x": 1956.2062301635742,\r
1509         "y": 930.3333129882812,\r
1510         "z": "d0c9a483.09f7c8",\r
1511         "wires": [\r
1512             [\r
1513                 "736b8a4d.4ec784"\r
1514             ]\r
1515         ]\r
1516     },\r
1517     {\r
1518         "id": "736b8a4d.4ec784",\r
1519         "type": "set",\r
1520         "name": "set prop.vpn1Id",\r
1521         "xml": "<set>\n<parameter name='prop.vpn1Id' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />\n",\r
1522         "comments": "",\r
1523         "x": 2130.2069778442383,\r
1524         "y": 930.3333714008331,\r
1525         "z": "d0c9a483.09f7c8",\r
1526         "wires": []\r
1527     },\r
1528     {\r
1529         "id": "9412ef29.cc029",\r
1530         "type": "set",\r
1531         "name": "Add sites to list and update length",\r
1532         "xml": "<set>\n<parameter name='prop.siteIds[$prop.siteIds_length]' value='`$prop.attach.siteId`' />\n<parameter name='prop.siteIds_length' value='`$prop.siteIds_length + 1`' />\n\n\n\n\n\n\n\n\n\n\n\n\n\n",\r
1533         "comments": "",\r
1534         "x": 2560.540351867676,\r
1535         "y": 836.3333714008331,\r
1536         "z": "d0c9a483.09f7c8",\r
1537         "wires": []\r
1538     },\r
1539     {\r
1540         "id": "4b9ca75a.7fc698",\r
1541         "type": "set",\r
1542         "name": "Add site attachement to list and update length",\r
1543         "xml": "<set>\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].siteId' value='`$prop.attach.siteId`' />\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles[0]' value='`$prop.role`' />\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles_length' value='1' />\n<parameter name='prop.siteAttachements_length' value='`$prop.siteAttachements_length + 1`' />\n\n\n\n\n\n\n\n\n\n\n\n\n",\r
1544         "comments": "",\r
1545         "x": 2591.5402450561523,\r
1546         "y": 879.3333377838135,\r
1547         "z": "d0c9a483.09f7c8",\r
1548         "wires": []\r
1549     },\r
1550     {\r
1551         "id": "6278217c.89959",\r
1552         "type": "set",\r
1553         "name": "set prop.siteAttachement_length=0",\r
1554         "xml": "<set>\n<parameter name='prop.siteAttachements_length' value='0' />\n<parameter name='prop.siteIds_length' value='0' />\n\n\n\n",\r
1555         "comments": "",\r
1556         "x": 677.5396194458008,\r
1557         "y": 584.333330154419,\r
1558         "z": "d0c9a483.09f7c8",\r
1559         "wires": []\r
1560     },\r
1561     {\r
1562         "id": "f98893a0.de7a4",\r
1563         "type": "block",\r
1564         "name": "block atomic",\r
1565         "xml": "<block atomic=\"true\">\n",\r
1566         "atomic": "false",\r
1567         "comments": "",\r
1568         "outputs": 1,\r
1569         "x": 1790.873275756836,\r
1570         "y": 812.3333358764648,\r
1571         "z": "d0c9a483.09f7c8",\r
1572         "wires": [\r
1573             [\r
1574                 "39ba7083.5ed54",\r
1575                 "5110ed96.6f1424",\r
1576                 "c2809bfd.795218"\r
1577             ]\r
1578         ]\r
1579     },\r
1580     {\r
1581         "id": "5110ed96.6f1424",\r
1582         "type": "switchNode",\r
1583         "name": "switch role",\r
1584         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'role'`\">\n    \n\n\n",\r
1585         "comments": "",\r
1586         "outputs": 1,\r
1587         "x": 1953.2062072753906,\r
1588         "y": 743.3333349227905,\r
1589         "z": "d0c9a483.09f7c8",\r
1590         "wires": [\r
1591             [\r
1592                 "1e253f6e.5c04c1"\r
1593             ]\r
1594         ]\r
1595     },\r
1596     {\r
1597         "id": "1e253f6e.5c04c1",\r
1598         "type": "outcomeTrue",\r
1599         "name": "true",\r
1600         "xml": "<outcome value='true'>\n",\r
1601         "comments": "",\r
1602         "outputs": 1,\r
1603         "x": 2116.206211090088,\r
1604         "y": 738.3333358764648,\r
1605         "z": "d0c9a483.09f7c8",\r
1606         "wires": [\r
1607             [\r
1608                 "76558c73.4a9c94"\r
1609             ]\r
1610         ]\r
1611     },\r
1612     {\r
1613         "id": "76558c73.4a9c94",\r
1614         "type": "block",\r
1615         "name": "block : atomic",\r
1616         "xml": "<block atomic=\"true\">",\r
1617         "atomic": "true",\r
1618         "outputs": 1,\r
1619         "x": 2284.206253051758,\r
1620         "y": 732.3333339691162,\r
1621         "z": "d0c9a483.09f7c8",\r
1622         "wires": [\r
1623             [\r
1624                 "7fa808fb.9dfb68",\r
1625                 "74735438.9332ac",\r
1626                 "138a0f19.6e1331"\r
1627             ]\r
1628         ]\r
1629     },\r
1630     {\r
1631         "id": "74735438.9332ac",\r
1632         "type": "switchNode",\r
1633         "name": "switch sd-wan-edge",\r
1634         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == 'sd-wan-edge'`\">\n\n",\r
1635         "comments": "",\r
1636         "outputs": 1,\r
1637         "x": 2479.206382751465,\r
1638         "y": 693.3333253860474,\r
1639         "z": "d0c9a483.09f7c8",\r
1640         "wires": [\r
1641             [\r
1642                 "201641a0.5890ce"\r
1643             ]\r
1644         ]\r
1645     },\r
1646     {\r
1647         "id": "7fa808fb.9dfb68",\r
1648         "type": "switchNode",\r
1649         "name": "switch dsvpn-hub",\r
1650         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'dsvpn-hub'`\">\n    \n\n\n",\r
1651         "comments": "",\r
1652         "outputs": 1,\r
1653         "x": 2476.2064895629883,\r
1654         "y": 748.333340883255,\r
1655         "z": "d0c9a483.09f7c8",\r
1656         "wires": [\r
1657             [\r
1658                 "f53ab0a6.6d677"\r
1659             ]\r
1660         ]\r
1661     },\r
1662     {\r
1663         "id": "69b796c5.6fe848",\r
1664         "type": "set",\r
1665         "name": "set spoke role",\r
1666         "xml": "<set>\n<parameter name='prop.role' value=\"spoke\" />\n",\r
1667         "comments": "",\r
1668         "x": 2809.2065048217773,\r
1669         "y": 687.3333711624146,\r
1670         "z": "d0c9a483.09f7c8",\r
1671         "wires": []\r
1672     },\r
1673     {\r
1674         "id": "861df320.7eae2",\r
1675         "type": "set",\r
1676         "name": "set hub role",\r
1677         "xml": "<set>\n<parameter name='prop.role' value=\"hub\" />\n",\r
1678         "comments": "",\r
1679         "x": 2808.2062644958496,\r
1680         "y": 742.3333549499512,\r
1681         "z": "d0c9a483.09f7c8",\r
1682         "wires": []\r
1683     },\r
1684     {\r
1685         "id": "201641a0.5890ce",\r
1686         "type": "outcomeTrue",\r
1687         "name": "true",\r
1688         "xml": "<outcome value='true'>\n",\r
1689         "comments": "",\r
1690         "outputs": 1,\r
1691         "x": 2649.2063522338867,\r
1692         "y": 689,\r
1693         "z": "d0c9a483.09f7c8",\r
1694         "wires": [\r
1695             [\r
1696                 "69b796c5.6fe848"\r
1697             ]\r
1698         ]\r
1699     },\r
1700     {\r
1701         "id": "f53ab0a6.6d677",\r
1702         "type": "outcomeTrue",\r
1703         "name": "true",\r
1704         "xml": "<outcome value='true'>\n",\r
1705         "comments": "",\r
1706         "outputs": 1,\r
1707         "x": 2653.2063522338867,\r
1708         "y": 744,\r
1709         "z": "d0c9a483.09f7c8",\r
1710         "wires": [\r
1711             [\r
1712                 "861df320.7eae2"\r
1713             ]\r
1714         ]\r
1715     },\r
1716     {\r
1717         "id": "188a2b9c.34d5e4",\r
1718         "type": "update",\r
1719         "name": "update SDWAN VPN status to AAI",\r
1720         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='lan-port-config' \n      key='sdwan-vpn.sdwan-vpn-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id' >\n<parameter name='sdwan-vpn-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<parameter name='operational-status' value='Active' />\n<parameter name='lan-port-config-id' value='`$prop.lan-port-config-id`' />",\r
1721         "comments": "",\r
1722         "outputs": 1,\r
1723         "x": 661.5708885192871,\r
1724         "y": 2008.031280040741,\r
1725         "z": "d0c9a483.09f7c8",\r
1726         "wires": [\r
1727             []\r
1728         ]\r
1729     },\r
1730     {\r
1731         "id": "44113153.ffa83",\r
1732         "type": "set",\r
1733         "name": "set vf-module-level-oper-status",\r
1734         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.order-status'  value='Active' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].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[$tmp.vidx].vf-module-data.vf-module-level-oper-status.last-action'  value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />",\r
1735         "comments": "",\r
1736         "x": 658.2059059143066,\r
1737         "y": 1951.1261107651517,\r
1738         "z": "d0c9a483.09f7c8",\r
1739         "wires": []\r
1740     },\r
1741     {\r
1742         "id": "cd4a9b23.d614c8",\r
1743         "type": "set",\r
1744         "name": "set vf-module-id and vf-module-object-path",\r
1745         "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 + $vf-module-topology-operation-input.vf-module-information.vf-module-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
1746         "comments": "",\r
1747         "x": 692.2059059143066,\r
1748         "y": 1902.6261098114774,\r
1749         "z": "d0c9a483.09f7c8",\r
1750         "wires": []\r
1751     },\r
1752     {\r
1753         "id": "760751d.6fd76b",\r
1754         "type": "set",\r
1755         "name": "copy input data in service-data",\r
1756         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].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[$tmp.vidx].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[$tmp.vidx].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[$tmp.vidx].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />\n",\r
1757         "comments": "",\r
1758         "x": 656.2058601379395,\r
1759         "y": 1854.876064300537,\r
1760         "z": "d0c9a483.09f7c8",\r
1761         "wires": []\r
1762     },\r
1763     {\r
1764         "id": "45f5fb20.78ea64",\r
1765         "type": "set",\r
1766         "name": "set device PortId to service data",\r
1767         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length].name' value='devicePortId' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length].value' value='`$prop.lan.devicePortId`' />\n",\r
1768         "comments": "",\r
1769         "x": 662.5709266662598,\r
1770         "y": 1748.0314636230469,\r
1771         "z": "d0c9a483.09f7c8",\r
1772         "wires": []\r
1773     },\r
1774     {\r
1775         "id": "b05dede5.e0278",\r
1776         "type": "set",\r
1777         "name": "set lan PortId to service data",\r
1778         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length].name' value='lanPortId' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length].value' value='`$prop.lan.lanPortId`' />\n",\r
1779         "comments": "",\r
1780         "x": 648.5708503723145,\r
1781         "y": 1802.0312767028809,\r
1782         "z": "d0c9a483.09f7c8",\r
1783         "wires": []\r
1784     },\r
1785     {\r
1786         "id": "2f9763b5.4e87fc",\r
1787         "type": "record",\r
1788         "name": "record",\r
1789         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic21.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"prop.attach.siteId\"/>\n<parameter name=\"field3\" value='`$prop.attach.siteId`'/>\n",\r
1790         "comments": "",\r
1791         "outputs": 1,\r
1792         "x": 2485.5709915161133,\r
1793         "y": 924.5312805175781,\r
1794         "z": "d0c9a483.09f7c8",\r
1795         "wires": [\r
1796             []\r
1797         ]\r
1798     },\r
1799     {\r
1800         "id": "138a0f19.6e1331",\r
1801         "type": "record",\r
1802         "name": "record",\r
1803         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic22.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"set spoke role\"/>\n",\r
1804         "comments": "",\r
1805         "outputs": 1,\r
1806         "x": 2454.571002960205,\r
1807         "y": 655.531247138977,\r
1808         "z": "d0c9a483.09f7c8",\r
1809         "wires": [\r
1810             []\r
1811         ]\r
1812     },\r
1813     {\r
1814         "id": "c2809bfd.795218",\r
1815         "type": "record",\r
1816         "name": "record",\r
1817         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic23.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"param-name\"/>\n<parameter name=\"field3\" value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name`'/>\n",\r
1818         "comments": "",\r
1819         "outputs": 1,\r
1820         "x": 1948.5708541870117,\r
1821         "y": 687.53125,\r
1822         "z": "d0c9a483.09f7c8",\r
1823         "wires": [\r
1824             []\r
1825         ]\r
1826     },\r
1827     {\r
1828         "id": "a37e9bab.abd118",\r
1829         "type": "comment",\r
1830         "name": "**revert the changes",\r
1831         "info": "",\r
1832         "comments": "",\r
1833         "x": 1349.5708808898926,\r
1834         "y": 693.0312824249268,\r
1835         "z": "d0c9a483.09f7c8",\r
1836         "wires": []\r
1837     },\r
1838     {\r
1839         "id": "4a795886.274f28",\r
1840         "type": "switchNode",\r
1841         "name": "switch vf-modules.vf-module_length",\r
1842         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length >= '0'`\">\n\n<!--switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\"-->\n",\r
1843         "comments": "",\r
1844         "outputs": 1,\r
1845         "x": 892.7538909912109,\r
1846         "y": 507.25390625,\r
1847         "z": "d0c9a483.09f7c8",\r
1848         "wires": [\r
1849             [\r
1850                 "779d12ab.8187fc"\r
1851             ]\r
1852         ]\r
1853     },\r
1854     {\r
1855         "id": "779d12ab.8187fc",\r
1856         "type": "outcomeTrue",\r
1857         "name": "true",\r
1858         "xml": "<outcome value='true'>\n",\r
1859         "comments": "",\r
1860         "outputs": 1,\r
1861         "x": 998.75390625,\r
1862         "y": 558.25390625,\r
1863         "z": "d0c9a483.09f7c8",\r
1864         "wires": [\r
1865             [\r
1866                 "e23c505c.41fa2"\r
1867             ]\r
1868         ]\r
1869     },\r
1870     {\r
1871         "id": "5c633f8a.ecb75",\r
1872         "type": "block",\r
1873         "name": "block : atomic",\r
1874         "xml": "<block atomic=\"true\">",\r
1875         "atomic": "true",\r
1876         "outputs": 1,\r
1877         "x": 693.0039138793945,\r
1878         "y": 468.0039048194885,\r
1879         "z": "d0c9a483.09f7c8",\r
1880         "wires": [\r
1881             [\r
1882                 "4a795886.274f28"\r
1883             ]\r
1884         ]\r
1885     },\r
1886     {\r
1887         "id": "e23c505c.41fa2",\r
1888         "type": "block",\r
1889         "name": "block : atomic",\r
1890         "xml": "<block atomic=\"true\">",\r
1891         "atomic": "true",\r
1892         "outputs": 1,\r
1893         "x": 1151.003890991211,\r
1894         "y": 555.0039281845093,\r
1895         "z": "d0c9a483.09f7c8",\r
1896         "wires": [\r
1897             [\r
1898                 "aa0d1480.7f1978"\r
1899             ]\r
1900         ]\r
1901     },\r
1902     {\r
1903         "id": "f599447.9ac3fb8",\r
1904         "type": "block",\r
1905         "name": "block : atomic",\r
1906         "xml": "<block atomic=\"true\">",\r
1907         "atomic": "true",\r
1908         "outputs": 1,\r
1909         "x": 1894.7539710998535,\r
1910         "y": 553.0039119720459,\r
1911         "z": "d0c9a483.09f7c8",\r
1912         "wires": [\r
1913             [\r
1914                 "1f605289.f2eb7d"\r
1915             ]\r
1916         ]\r
1917     }\r
1918 ]