a0a0fa282e32bde1b03ab92d486f1cccdb324b58
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-wanport-vnf-topology-operation-underlay.json
1 [
2   {
3     "id": "b5ebbde.e59a04",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 109,
8     "y": 43,
9     "z": "33eaf422.44290c",
10     "wires": [
11       [
12         "a87f9663.877998"
13       ]
14     ]
15   },
16   {
17     "id": "a87f9663.877998",
18     "type": "service-logic",
19     "name": "GENERIC-RESOURCE-API ${project.version}",
20     "module": "GENERIC-RESOURCE-API",
21     "version": "${project.version}",
22     "comments": "",
23     "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}'>",
24     "outputs": 1,
25     "x": 225.2856903076172,
26     "y": 94.23810768127441,
27     "z": "33eaf422.44290c",
28     "wires": [
29       [
30         "8c1b6d3.067719"
31       ]
32     ]
33   },
34   {
35     "id": "8c1b6d3.067719",
36     "type": "method",
37     "name": "method sdwan-wanport-vnf-topology-operation-underlay",
38     "xml": "<method rpc='sdwan-wanport-vnf-topology-operation-underlay' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 228.42861938476562,
42     "y": 179.00003147125244,
43     "z": "33eaf422.44290c",
44     "wires": [
45       [
46         "3cd9be6d.873c82"
47       ]
48     ]
49   },
50   {
51     "id": "3cd9be6d.873c82",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 160.66668701171875,
58     "y": 287.66673278808594,
59     "z": "33eaf422.44290c",
60     "wires": [
61       [
62         "2d7b33ef.a2d9ac",
63         "383a5f3d.e4cb2",
64         "70ceaafc.e0d3f4",
65         "c880f4e9.6d6098"
66       ]
67     ]
68   },
69   {
70     "id": "2d7b33ef.a2d9ac",
71     "type": "for",
72     "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
73     "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
74     "comments": "",
75     "outputs": 1,
76     "x": 598.0004119873047,
77     "y": 398.66683769226074,
78     "z": "33eaf422.44290c",
79     "wires": [
80       [
81         "e9598182.81589"
82       ]
83     ]
84   },
85   {
86     "id": "be430b5e.14a828",
87     "type": "set",
88     "name": "set prop.ar.allotted-resource-id",
89     "xml": "<set>\n<parameter name='prop.ar.allotted-resource-id' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id`' />\n",
90     "comments": "",
91     "x": 1385.0013427734375,
92     "y": 115.96877861022949,
93     "z": "33eaf422.44290c",
94     "wires": []
95   },
96   {
97     "id": "423b3b97.a50914",
98     "type": "comment",
99     "name": "Query MDSAL for AR",
100     "info": "",
101     "comments": "",
102     "x": 1710.3340148925781,
103     "y": 139.96864795684814,
104     "z": "33eaf422.44290c",
105     "wires": []
106   },
107   {
108     "id": "dab21607.3703b8",
109     "type": "comment",
110     "name": "Query MDSAL to get parent service based on service instance id from AR",
111     "info": "",
112     "comments": "",
113     "x": 2180.334873199463,
114     "y": 158.96862697601318,
115     "z": "33eaf422.44290c",
116     "wires": []
117   },
118   {
119     "id": "90cd3398.44586",
120     "type": "success",
121     "name": "success",
122     "xml": "<outcome value='success'>\n",
123     "comments": "",
124     "outputs": 1,
125     "x": 1959.66841506958,
126     "y": 194.63526725769043,
127     "z": "33eaf422.44290c",
128     "wires": [
129       [
130         "1d70b537.cd409b"
131       ]
132     ]
133   },
134   {
135     "id": "1d70b537.cd409b",
136     "type": "block",
137     "name": "block: atomic",
138     "xml": "<block atomic=\"true\">\n",
139     "atomic": "false",
140     "comments": "",
141     "outputs": 1,
142     "x": 2114.668254852295,
143     "y": 194.13510036468506,
144     "z": "33eaf422.44290c",
145     "wires": [
146       [
147         "d282839d.a628"
148       ]
149     ]
150   },
151   {
152     "id": "bce07922.8c4f98",
153     "type": "other",
154     "name": "outcome 1",
155     "xml": "<outcome value='1'>\n",
156     "comments": "",
157     "outputs": 1,
158     "x": 2438.3587913513184,
159     "y": 190.75424098968506,
160     "z": "33eaf422.44290c",
161     "wires": [
162       [
163         "3b07cad3.619296"
164       ]
165     ]
166   },
167   {
168     "id": "ee52805a.8bd8",
169     "type": "returnFailure",
170     "name": "return failure",
171     "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=\"Error: Connection attachement resource not found\" />\n    \n",
172     "comments": "",
173     "x": 2584.1275672912598,
174     "y": 230.20122909545898,
175     "z": "33eaf422.44290c",
176     "wires": []
177   },
178   {
179     "id": "259f1fc9.28f91",
180     "type": "other",
181     "name": "other",
182     "xml": "<outcome value='Other'>\n",
183     "comments": "",
184     "outputs": 1,
185     "x": 1952.5201416015625,
186     "y": 241.70127391815186,
187     "z": "33eaf422.44290c",
188     "wires": [
189       [
190         "b7b7bf01.123cf"
191       ]
192     ]
193   },
194   {
195     "id": "b7b7bf01.123cf",
196     "type": "block",
197     "name": "block: atomic",
198     "xml": "<block atomic=\"true\">\n",
199     "atomic": "false",
200     "comments": "",
201     "outputs": 1,
202     "x": 2102.5199851989746,
203     "y": 242.36782932281494,
204     "z": "33eaf422.44290c",
205     "wires": [
206       [
207         "7cd11e1b.bfaf1"
208       ]
209     ]
210   },
211   {
212     "id": "7c51c058.0306e",
213     "type": "other",
214     "name": "other",
215     "xml": "<outcome value='Other'>\n",
216     "comments": "",
217     "outputs": 1,
218     "x": 2426.6867446899414,
219     "y": 228.03460121154785,
220     "z": "33eaf422.44290c",
221     "wires": [
222       [
223         "ee52805a.8bd8"
224       ]
225     ]
226   },
227   {
228     "id": "d282839d.a628",
229     "type": "switchNode",
230     "name": "switch cr length",
231     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
232     "comments": "",
233     "outputs": 1,
234     "x": 2278.668430328369,
235     "y": 194.6352834701538,
236     "z": "33eaf422.44290c",
237     "wires": [
238       [
239         "bce07922.8c4f98",
240         "7c51c058.0306e"
241       ]
242     ]
243   },
244   {
245     "id": "91cc0551.bc01e8",
246     "type": "set",
247     "name": "set parent-service-instance-id",
248     "xml": "<set>\n<parameter name='prop.parent-service-instance-id' value='`$mdsal-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.parent-service-instance-id`' />\n\n",
249     "comments": "",
250     "x": 2834.0020294189453,
251     "y": 191.63526439666748,
252     "z": "33eaf422.44290c",
253     "wires": []
254   },
255   {
256     "id": "3b07cad3.619296",
257     "type": "block",
258     "name": "block: atomic",
259     "xml": "<block atomic='true'>\n",
260     "atomic": "false",
261     "comments": "",
262     "outputs": 1,
263     "x": 2588.4778213500977,
264     "y": 190.80180072784424,
265     "z": "33eaf422.44290c",
266     "wires": [
267       [
268         "91cc0551.bc01e8",
269         "dc60366a.2e9048"
270       ]
271     ]
272   },
273   {
274     "id": "7cd11e1b.bfaf1",
275     "type": "returnFailure",
276     "name": "return failure",
277     "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=\"Error: Connection attachement resource not found\" />\n    \n",
278     "comments": "",
279     "x": 2270.001438140869,
280     "y": 240.63520526885986,
281     "z": "33eaf422.44290c",
282     "wires": []
283   },
284   {
285     "id": "dab3ccab.cce12",
286     "type": "success",
287     "name": "success",
288     "xml": "<outcome value='success'>\n",
289     "comments": "",
290     "outputs": 1,
291     "x": 2057.303554534912,
292     "y": 512.7709312438965,
293     "z": "33eaf422.44290c",
294     "wires": [
295       [
296         "d5fc5211.c019"
297       ]
298     ]
299   },
300   {
301     "id": "4c1ffccd.7a1ed4",
302     "type": "other",
303     "name": "other",
304     "xml": "<outcome value='Other'>\n",
305     "comments": "",
306     "outputs": 1,
307     "x": 2049.15535736084,
308     "y": 547.8370161056519,
309     "z": "33eaf422.44290c",
310     "wires": [
311       [
312         "4fdb783b.5926a8"
313       ]
314     ]
315   },
316   {
317     "id": "4fdb783b.5926a8",
318     "type": "returnFailure",
319     "name": "return failure",
320     "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=\"Error: SOTN resource not found\" />\n    \n",
321     "comments": "",
322     "x": 2195.304130554199,
323     "y": 548.1045122146606,
324     "z": "33eaf422.44290c",
325     "wires": []
326   },
327   {
328     "id": "d5fc5211.c019",
329     "type": "block",
330     "name": "block",
331     "xml": "<block>\n",
332     "atomic": "false",
333     "comments": "",
334     "outputs": 1,
335     "x": 2177.3038024902344,
336     "y": 512.771014213562,
337     "z": "33eaf422.44290c",
338     "wires": [
339       []
340     ]
341   },
342   {
343     "id": "c5126628.a1afc8",
344     "type": "for",
345     "name": "for pnidx.. mdsal-psd.networks.network_length[]",
346     "xml": "<for index='pnidx' start='0' end='`$mdsal-psd.service-data.networks.network_length`' >\n",
347     "comments": "",
348     "outputs": 1,
349     "x": 1740.6683502197266,
350     "y": 612.3028893470764,
351     "z": "33eaf422.44290c",
352     "wires": [
353       [
354         "84a7b7df.1615b8"
355       ]
356     ]
357   },
358   {
359     "id": "c8ac708.b0a709",
360     "type": "switchNode",
361     "name": "switch ActivateSDWANConnectivityInstance",
362     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$pnidx].network-data.request-information.request-action == 'ActivateSDWANConnectivityInstance'`\">\n    \n    \n\n",
363     "comments": "",
364     "outputs": 1,
365     "x": 2277.3349990844727,
366     "y": 583.3028283119202,
367     "z": "33eaf422.44290c",
368     "wires": [
369       [
370         "af2e2a1f.e9aba8"
371       ]
372     ]
373   },
374   {
375     "id": "af2e2a1f.e9aba8",
376     "type": "outcomeTrue",
377     "name": "true",
378     "xml": "<outcome value='true'>\n",
379     "comments": "",
380     "outputs": 1,
381     "x": 2522.334518432617,
382     "y": 582.3028283119202,
383     "z": "33eaf422.44290c",
384     "wires": [
385       [
386         "64a2447b.58478c"
387       ]
388     ]
389   },
390   {
391     "id": "64a2447b.58478c",
392     "type": "set",
393     "name": "set tmp.pnidx ",
394     "xml": "<set>\n<parameter name='tmp.pnidx' value='`$pnidx`' />\n\n",
395     "comments": "",
396     "x": 2678.3342056274414,
397     "y": 582.3028283119202,
398     "z": "33eaf422.44290c",
399     "wires": []
400   },
401   {
402     "id": "cf236aa.4478b98",
403     "type": "for",
404     "name": "for loop paramidx - Get topology from servicedata",
405     "xml": "<for index=\"paramidx\" start=\"0\" end=\"`$mdsal-psd.service-data.networks.network[$tmp.pnidx].network-data.network-request-input.network-input-parameters.param_length`\">\n    \n    \n",
406     "comments": "",
407     "outputs": 1,
408     "x": 1746.3349304199219,
409     "y": 662.3024039268494,
410     "z": "33eaf422.44290c",
411     "wires": [
412       [
413         "8e2c0789.42db78"
414       ]
415     ]
416   },
417   {
418     "id": "5a69b1be.1055d",
419     "type": "switchNode",
420     "name": "switch topology",
421     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$tmp.pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'topology'`\">\n",
422     "comments": "",
423     "outputs": 1,
424     "x": 2178.335252761841,
425     "y": 660.3024020195007,
426     "z": "33eaf422.44290c",
427     "wires": [
428       [
429         "333e463b.eac74a"
430       ]
431     ]
432   },
433   {
434     "id": "333e463b.eac74a",
435     "type": "outcomeTrue",
436     "name": "true",
437     "xml": "<outcome value='true'>\n",
438     "comments": "",
439     "outputs": 1,
440     "x": 2329.3352642059326,
441     "y": 658.3024439811707,
442     "z": "33eaf422.44290c",
443     "wires": [
444       [
445         "3622de43.1881c2"
446       ]
447     ]
448   },
449   {
450     "id": "3622de43.1881c2",
451     "type": "set",
452     "name": "set topology",
453     "xml": "<set>\n<parameter name='prop.topology' value='`$mdsal-psd.service-data.networks.network[$tmp.pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].value`' />\n",
454     "comments": "",
455     "x": 2470.3349933624268,
456     "y": 657.9023776054382,
457     "z": "33eaf422.44290c",
458     "wires": []
459   },
460   {
461     "id": "b9ac21ad.456c9",
462     "type": "switchNode",
463     "name": "switch tmp.pnidx ",
464     "xml": "<switch test=\"`$tmp.pnidx`\">\n\n",
465     "comments": "",
466     "outputs": 1,
467     "x": 2184.3346939086914,
468     "y": 622.9690413475037,
469     "z": "33eaf422.44290c",
470     "wires": [
471       [
472         "14fa21e1.174cde"
473       ]
474     ]
475   },
476   {
477     "id": "14fa21e1.174cde",
478     "type": "outcome",
479     "name": "NULL",
480     "xml": "<outcome value=''>\n",
481     "comments": "",
482     "outputs": 1,
483     "x": 2331.7633361816406,
484     "y": 622.5404515266418,
485     "z": "33eaf422.44290c",
486     "wires": [
487       [
488         "aa33b299.d2b4d"
489       ]
490     ]
491   },
492   {
493     "id": "aa33b299.d2b4d",
494     "type": "returnFailure",
495     "name": "return failure",
496     "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",
497     "comments": "",
498     "x": 2475.1921920776367,
499     "y": 622.6835255622864,
500     "z": "33eaf422.44290c",
501     "wires": []
502   },
503   {
504     "id": "f19570ac.55187",
505     "type": "switchNode",
506     "name": "switch topology hub-spoke",
507     "xml": "<switch test=\"`$prop.topology == 'hub-spoke'`\">\n",
508     "comments": "",
509     "outputs": 1,
510     "x": 1551.3348426818848,
511     "y": 759.3023405075073,
512     "z": "33eaf422.44290c",
513     "wires": [
514       [
515         "aa80dabf.aca3c8",
516         "4031750f.9789cc"
517       ]
518     ]
519   },
520   {
521     "id": "aa80dabf.aca3c8",
522     "type": "outcomeTrue",
523     "name": "true",
524     "xml": "<outcome value='true'>\n",
525     "comments": "",
526     "outputs": 1,
527     "x": 1741.334529876709,
528     "y": 784.3028259277344,
529     "z": "33eaf422.44290c",
530     "wires": [
531       [
532         "768ac816.c95648"
533       ]
534     ]
535   },
536   {
537     "id": "4031750f.9789cc",
538     "type": "outcomeTrue",
539     "name": "false",
540     "xml": "<outcome value='false'>\n",
541     "comments": "",
542     "outputs": 1,
543     "x": 1742.3353233337402,
544     "y": 712.3024568557739,
545     "z": "33eaf422.44290c",
546     "wires": [
547       [
548         "bcb708b4.4756f8"
549       ]
550     ]
551   },
552   {
553     "id": "bcb708b4.4756f8",
554     "type": "block",
555     "name": "block",
556     "xml": "<block>\n",
557     "atomic": "false",
558     "comments": "",
559     "outputs": 1,
560     "x": 1872.3353271484375,
561     "y": 711.3024568557739,
562     "z": "33eaf422.44290c",
563     "wires": [
564       []
565     ]
566   },
567   {
568     "id": "768ac816.c95648",
569     "type": "block",
570     "name": "block: atomic",
571     "xml": "<block atomic=\"true\">\n",
572     "atomic": "false",
573     "comments": "",
574     "outputs": 1,
575     "x": 1746.66748046875,
576     "y": 852.3020601272583,
577     "z": "33eaf422.44290c",
578     "wires": [
579       [
580         "37a8a2fc.2a711e"
581       ]
582     ]
583   },
584   {
585     "id": "37a8a2fc.2a711e",
586     "type": "for",
587     "name": "for ppidx.. mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
588     "xml": "<for index='ppidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
589     "comments": "",
590     "outputs": 1,
591     "x": 2154.000732421875,
592     "y": 852.6356782913208,
593     "z": "33eaf422.44290c",
594     "wires": [
595       [
596         "2c05f76b.7d8c98"
597       ]
598     ]
599   },
600   {
601     "id": "27aa5d13.3e58c2",
602     "type": "set",
603     "name": "set prop.ar.provided-allotted-resource-id",
604     "xml": "<set>\n<parameter name='prop.ar.provided-allotted-resource-id' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$ppidx].allotted-resource-id`' />\n\n",
605     "comments": "",
606     "x": 2245.0018463134766,
607     "y": 930.6359763145447,
608     "z": "33eaf422.44290c",
609     "wires": []
610   },
611   {
612     "id": "2e8e3485.54a23c",
613     "type": "for",
614     "name": "for loop aridx - Get role from allotted resource",
615     "xml": "<for index=\"aridx\" start=\"0\" end=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`\">\n    \n    \n",
616     "comments": "",
617     "outputs": 1,
618     "x": 2263.0025482177734,
619     "y": 1041.302767753601,
620     "z": "33eaf422.44290c",
621     "wires": [
622       [
623         "1e03ba47.0fb3f6"
624       ]
625     ]
626   },
627   {
628     "id": "a525e63a.cc2b38",
629     "type": "switchNode",
630     "name": "switch Role",
631     "xml": "<switch test=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$aridx].name == 'Role'`\">\n",
632     "comments": "",
633     "outputs": 1,
634     "x": 2672.002658843994,
635     "y": 1044.3028545379639,
636     "z": "33eaf422.44290c",
637     "wires": [
638       [
639         "3f99d6d3.e0611a"
640       ]
641     ]
642   },
643   {
644     "id": "3f99d6d3.e0611a",
645     "type": "outcomeTrue",
646     "name": "true",
647     "xml": "<outcome value='true'>\n",
648     "comments": "",
649     "outputs": 1,
650     "x": 2813.0029907226562,
651     "y": 1043.3028535842896,
652     "z": "33eaf422.44290c",
653     "wires": [
654       [
655         "7bec0d2f.0381d4"
656       ]
657     ]
658   },
659   {
660     "id": "7bec0d2f.0381d4",
661     "type": "set",
662     "name": "set prop.role",
663     "xml": "<set>\n<parameter name='prop.role' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$aridx].value`' />\n",
664     "comments": "",
665     "x": 2954.0030250549316,
666     "y": 1044.9027452468872,
667     "z": "33eaf422.44290c",
668     "wires": []
669   },
670   {
671     "id": "8fa9655b.7c6ef8",
672     "type": "success",
673     "name": "success",
674     "xml": "<outcome value='success'>\n",
675     "comments": "",
676     "outputs": 1,
677     "x": 2749.0020446777344,
678     "y": 947.969269990921,
679     "z": "33eaf422.44290c",
680     "wires": [
681       [
682         "788b9cb8.8b37d4"
683       ]
684     ]
685   },
686   {
687     "id": "3a2551b1.4f0ace",
688     "type": "other",
689     "name": "other",
690     "xml": "<outcome value='Other'>\n",
691     "comments": "",
692     "outputs": 1,
693     "x": 2745.8537673950195,
694     "y": 1002.0353531837463,
695     "z": "33eaf422.44290c",
696     "wires": [
697       [
698         "5672e76f.825118"
699       ]
700     ]
701   },
702   {
703     "id": "5672e76f.825118",
704     "type": "returnFailure",
705     "name": "return failure",
706     "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=\"Error: SOTN resource not found\" />\n    \n",
707     "comments": "",
708     "x": 2891.002540588379,
709     "y": 999.3028502464294,
710     "z": "33eaf422.44290c",
711     "wires": []
712   },
713   {
714     "id": "788b9cb8.8b37d4",
715     "type": "block",
716     "name": "block",
717     "xml": "<block>\n",
718     "atomic": "false",
719     "comments": "",
720     "outputs": 1,
721     "x": 2877.0020484924316,
722     "y": 947.9692711830139,
723     "z": "33eaf422.44290c",
724     "wires": [
725       []
726     ]
727   },
728   {
729     "id": "f102bda6.18929",
730     "type": "switchNode",
731     "name": "switch role hub",
732     "xml": "<switch test=\"`$prop.role == hub`\">\n",
733     "comments": "",
734     "outputs": 1,
735     "x": 2129.3351821899414,
736     "y": 1106.6358079910278,
737     "z": "33eaf422.44290c",
738     "wires": [
739       [
740         "145fa94e.f27887",
741         "f3be5614.599b68"
742       ]
743     ]
744   },
745   {
746     "id": "da4408c3.f5c0d8",
747     "type": "block",
748     "name": "block",
749     "xml": "<block>\n",
750     "atomic": "false",
751     "comments": "",
752     "outputs": 1,
753     "x": 2445.3345680236816,
754     "y": 1082.6354112625122,
755     "z": "33eaf422.44290c",
756     "wires": [
757       []
758     ]
759   },
760   {
761     "id": "77da5adf.834034",
762     "type": "success",
763     "name": "success",
764     "xml": "<outcome value='success'>\n",
765     "comments": "",
766     "outputs": 1,
767     "x": 2855.3042030334473,
768     "y": 1178.1045179367065,
769     "z": "33eaf422.44290c",
770     "wires": [
771       [
772         "8a4c0c4d.62361"
773       ]
774     ]
775   },
776   {
777     "id": "8429ea0a.844dc8",
778     "type": "other",
779     "name": "other",
780     "xml": "<outcome value='Other'>\n",
781     "comments": "",
782     "outputs": 1,
783     "x": 2857.155773162842,
784     "y": 1238.170599937439,
785     "z": "33eaf422.44290c",
786     "wires": [
787       [
788         "e9382022.a0267"
789       ]
790     ]
791   },
792   {
793     "id": "e9382022.a0267",
794     "type": "returnFailure",
795     "name": "return failure",
796     "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=\"Error: SDWAN service-data not found\" />\n    \n",
797     "comments": "",
798     "x": 3001.304546356201,
799     "y": 1200.4380140304565,
800     "z": "33eaf422.44290c",
801     "wires": []
802   },
803   {
804     "id": "8a4c0c4d.62361",
805     "type": "block",
806     "name": "block",
807     "xml": "<block>\n",
808     "atomic": "false",
809     "comments": "",
810     "outputs": 1,
811     "x": 2985.3042221069336,
812     "y": 1167.1046781539917,
813     "z": "33eaf422.44290c",
814     "wires": [
815       []
816     ]
817   },
818   {
819     "id": "cf6c45e0.a382b8",
820     "type": "set",
821     "name": "set prop.ar-service-instance-id",
822     "xml": "<set>\n<parameter name='prop.ar-service-instance-id' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.consuming-service-instance-id`' />\n",
823     "comments": "",
824     "x": 2457.3356018066406,
825     "y": 1166.6360107660294,
826     "z": "33eaf422.44290c",
827     "wires": []
828   },
829   {
830     "id": "57a73c1e.aeb484",
831     "type": "for",
832     "name": "for arvidx.. mdsal-arsd.service-data.vnfs.vnf_length[]",
833     "xml": "<for index='arvidx' start='0' end='`$mdsal-arsd.service-data.vnfs.vnf_length`' >\n",
834     "comments": "",
835     "outputs": 1,
836     "x": 2501.0020751953125,
837     "y": 1288.6358003616333,
838     "z": "33eaf422.44290c",
839     "wires": [
840       [
841         "c345e276.9551d"
842       ]
843     ]
844   },
845   {
846     "id": "c345e276.9551d",
847     "type": "block",
848     "name": "block atmoic",
849     "xml": "<block atomic=\"true\">\n",
850     "atomic": "false",
851     "comments": "",
852     "outputs": 1,
853     "x": 2847.6683959960938,
854     "y": 1278.6357765197754,
855     "z": "33eaf422.44290c",
856     "wires": [
857       [
858         "568b8936.7e3108",
859         "39f7ac2d.b359d4",
860         "5ab57864.07d758"
861       ]
862     ]
863   },
864   {
865     "id": "568b8936.7e3108",
866     "type": "switchNode",
867     "name": "switch ActivateSDWANPortInstance",
868     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSDWANPortInstance'`\">\n    \n\n",
869     "comments": "",
870     "outputs": 1,
871     "x": 3105.6684799194336,
872     "y": 1233.636646270752,
873     "z": "33eaf422.44290c",
874     "wires": [
875       [
876         "61fa4242.861d3c"
877       ]
878     ]
879   },
880   {
881     "id": "cb874e53.482c8",
882     "type": "switchNode",
883     "name": "switch tmp.portvidx ",
884     "xml": "<switch test=\"`$tmp.portvidx`\">\n\n",
885     "comments": "",
886     "outputs": 1,
887     "x": 2582.668212890625,
888     "y": 1333.3024454116821,
889     "z": "33eaf422.44290c",
890     "wires": [
891       [
892         "6aed06ab.403dd8"
893       ]
894     ]
895   },
896   {
897     "id": "815939d8.db2788",
898     "type": "for",
899     "name": "for loop wportidx - Get wan port ID from servicedata",
900     "xml": "<for index=\"wportidx\" start=\"0\" end=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
901     "comments": "",
902     "outputs": 1,
903     "x": 2507.6688232421875,
904     "y": 1488.6367044448853,
905     "z": "33eaf422.44290c",
906     "wires": [
907       [
908         "233ccbaa.09c2a4"
909       ]
910     ]
911   },
912   {
913     "id": "6aed06ab.403dd8",
914     "type": "outcome",
915     "name": "NULL",
916     "xml": "<outcome value=''>\n",
917     "comments": "",
918     "outputs": 1,
919     "x": 2743.0966777801514,
920     "y": 1332.8739652633667,
921     "z": "33eaf422.44290c",
922     "wires": [
923       [
924         "ed789211.6aa24"
925       ]
926     ]
927   },
928   {
929     "id": "ed789211.6aa24",
930     "type": "returnFailure",
931     "name": "return failure",
932     "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 (port) not found in service-data\" />\n",
933     "comments": "",
934     "x": 2880.525634765625,
935     "y": 1333.0173768997192,
936     "z": "33eaf422.44290c",
937     "wires": []
938   },
939   {
940     "id": "61fa4242.861d3c",
941     "type": "outcomeTrue",
942     "name": "true",
943     "xml": "<outcome value='true'>\n",
944     "comments": "",
945     "outputs": 1,
946     "x": 3333.668167114258,
947     "y": 1231.6366472244263,
948     "z": "33eaf422.44290c",
949     "wires": [
950       [
951         "8dcdd808.562708"
952       ]
953     ]
954   },
955   {
956     "id": "233ccbaa.09c2a4",
957     "type": "block",
958     "name": "block atomic",
959     "xml": "<block atomic=\"true\">\n",
960     "atomic": "false",
961     "comments": "",
962     "outputs": 1,
963     "x": 2850.669807434082,
964     "y": 1491.6369543075562,
965     "z": "33eaf422.44290c",
966     "wires": [
967       [
968         "a50a8ecc.70146",
969         "c6553e69.23e06",
970         "a6ca66b6.132b88",
971         "f8ad0824.756498"
972       ]
973     ]
974   },
975   {
976     "id": "a50a8ecc.70146",
977     "type": "switchNode",
978     "name": "switch transportNetworkName",
979     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'transportNetworkName'`\">\n",
980     "comments": "",
981     "outputs": 1,
982     "x": 3145.670757293701,
983     "y": 1430.6374912261963,
984     "z": "33eaf422.44290c",
985     "wires": [
986       [
987         "1b0657c2.3d75f8"
988       ]
989     ]
990   },
991   {
992     "id": "8dcdd808.562708",
993     "type": "set",
994     "name": "set tmp.portvidx ",
995     "xml": "<set>\n<parameter name='tmp.portvidx' value='`$arvidx`' />\n\n",
996     "comments": "",
997     "x": 3488.6678504943848,
998     "y": 1231.636646270752,
999     "z": "33eaf422.44290c",
1000     "wires": []
1001   },
1002   {
1003     "id": "1b0657c2.3d75f8",
1004     "type": "outcomeTrue",
1005     "name": "true",
1006     "xml": "<outcome value='true'>\n",
1007     "comments": "",
1008     "outputs": 1,
1009     "x": 3338.6707725524902,
1010     "y": 1430.63765335083,
1011     "z": "33eaf422.44290c",
1012     "wires": [
1013       [
1014         "b34f100.12863f"
1015       ]
1016     ]
1017   },
1018   {
1019     "id": "b34f100.12863f",
1020     "type": "set",
1021     "name": "set prop.hub.transportNetworkName",
1022     "xml": "<set>\n<parameter name='prop.hub.transportNetworkName' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\n",
1023     "comments": "",
1024     "x": 3556.6707801818848,
1025     "y": 1429.23823928833,
1026     "z": "33eaf422.44290c",
1027     "wires": []
1028   },
1029   {
1030     "id": "c6553e69.23e06",
1031     "type": "switchNode",
1032     "name": "switch wanPortId",
1033     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'wanPortId'`\">\n",
1034     "comments": "",
1035     "outputs": 1,
1036     "x": 3107.003490447998,
1037     "y": 1464.6371002197266,
1038     "z": "33eaf422.44290c",
1039     "wires": [
1040       [
1041         "2bec9518.ec7c8a"
1042       ]
1043     ]
1044   },
1045   {
1046     "id": "2bec9518.ec7c8a",
1047     "type": "outcomeTrue",
1048     "name": "true",
1049     "xml": "<outcome value='true'>\n",
1050     "comments": "",
1051     "outputs": 1,
1052     "x": 3268.003818511963,
1053     "y": 1465.6371803283691,
1054     "z": "33eaf422.44290c",
1055     "wires": [
1056       [
1057         "37425798.ff2018"
1058       ]
1059     ]
1060   },
1061   {
1062     "id": "37425798.ff2018",
1063     "type": "set",
1064     "name": "set prop.hub.wanPortId",
1065     "xml": "<set>\n<parameter name='prop.hub.wanPortId' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\n",
1066     "comments": "",
1067     "x": 3458.004280090332,
1068     "y": 1465.2374563217163,
1069     "z": "33eaf422.44290c",
1070     "wires": []
1071   },
1072   {
1073     "id": "d298818e.120b",
1074     "type": "switchNode",
1075     "name": "switch  prop.hub.transportNetworkName==prop.spoke.transportNetworkName",
1076     "xml": "<switch test=\"`$prop.hub.transportNetworkName == $prop.spoke.transportNetworkName`\">\n",
1077     "comments": "",
1078     "outputs": 1,
1079     "x": 2585.004150390625,
1080     "y": 1591.304440498352,
1081     "z": "33eaf422.44290c",
1082     "wires": [
1083       [
1084         "7a56c9bb.004ba8",
1085         "6f7c3402.62f4ac"
1086       ]
1087     ]
1088   },
1089   {
1090     "id": "7a56c9bb.004ba8",
1091     "type": "outcomeTrue",
1092     "name": "true",
1093     "xml": "<outcome value='true'>\n",
1094     "comments": "",
1095     "outputs": 1,
1096     "x": 2931.0036811828613,
1097     "y": 1628.3045144081116,
1098     "z": "33eaf422.44290c",
1099     "wires": [
1100       [
1101         "3d53e5a5.8f912a"
1102       ]
1103     ]
1104   },
1105   {
1106     "id": "6f7c3402.62f4ac",
1107     "type": "outcomeTrue",
1108     "name": "false",
1109     "xml": "<outcome value='false'>\n",
1110     "comments": "",
1111     "outputs": 1,
1112     "x": 2935.0041694641113,
1113     "y": 1563.3041467666626,
1114     "z": "33eaf422.44290c",
1115     "wires": [
1116       [
1117         "67b638dd.ee4608"
1118       ]
1119     ]
1120   },
1121   {
1122     "id": "67b638dd.ee4608",
1123     "type": "block",
1124     "name": "block",
1125     "xml": "<block>\n",
1126     "atomic": "false",
1127     "comments": "",
1128     "outputs": 1,
1129     "x": 3075.0040969848633,
1130     "y": 1591.304271697998,
1131     "z": "33eaf422.44290c",
1132     "wires": [
1133       []
1134     ]
1135   },
1136   {
1137     "id": "2c05f76b.7d8c98",
1138     "type": "block",
1139     "name": "block atomic",
1140     "xml": "<block atomic=\"true\">\n",
1141     "atomic": "false",
1142     "comments": "",
1143     "outputs": 1,
1144     "x": 1896.0322265625,
1145     "y": 961.8333101272583,
1146     "z": "33eaf422.44290c",
1147     "wires": [
1148       [
1149         "27aa5d13.3e58c2",
1150         "2e8e3485.54a23c",
1151         "f102bda6.18929",
1152         "74cd5045.40831",
1153         "447d9e5f.d5a82"
1154       ]
1155     ]
1156   },
1157   {
1158     "id": "e66f705e.b1887",
1159     "type": "switchNode",
1160     "name": "switch vpnId",
1161     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$tmp.pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'vpnId'`\">\n",
1162     "comments": "",
1163     "outputs": 1,
1164     "x": 2168.001268386841,
1165     "y": 704.6354126930237,
1166     "z": "33eaf422.44290c",
1167     "wires": [
1168       [
1169         "3f0e1104.f843be"
1170       ]
1171     ]
1172   },
1173   {
1174     "id": "3f0e1104.f843be",
1175     "type": "outcomeTrue",
1176     "name": "true",
1177     "xml": "<outcome value='true'>\n",
1178     "comments": "",
1179     "outputs": 1,
1180     "x": 2312.0012798309326,
1181     "y": 704.6354537010193,
1182     "z": "33eaf422.44290c",
1183     "wires": [
1184       [
1185         "ca8d4515.16e2d8"
1186       ]
1187     ]
1188   },
1189   {
1190     "id": "ca8d4515.16e2d8",
1191     "type": "set",
1192     "name": "set prop.vpnId",
1193     "xml": "<set>\n<parameter name='prop.vpnId' value='`$mdsal-psd.service-data.networks.network[$tmp.pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].value`' />\n",
1194     "comments": "",
1195     "x": 2470.001001358032,
1196     "y": 703.2353882789612,
1197     "z": "33eaf422.44290c",
1198     "wires": []
1199   },
1200   {
1201     "id": "49f7ab80.b2f444",
1202     "type": "set",
1203     "name": "Set prop.hubTnpId",
1204     "xml": "<set>\n<parameter name='prop.hubTnpId' value='$prop.hub.wanPortId' />\n\n",
1205     "comments": "",
1206     "x": 2622.336555480957,
1207     "y": 1717.6363048553467,
1208     "z": "33eaf422.44290c",
1209     "wires": []
1210   },
1211   {
1212     "id": "e429ce4e.ff4d3",
1213     "type": "execute",
1214     "name": "execute RestApiCallNode underlay route",
1215     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-underlay.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/routing-protocol/static/action/batch-delete'`\" />\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=\"underlayHubResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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`\" />",
1216     "comments": "",
1217     "outputs": 1,
1218     "x": 3483.335531234741,
1219     "y": 2176.970527648926,
1220     "z": "33eaf422.44290c",
1221     "wires": [
1222       [
1223         "ec4a9fe3.5d773",
1224         "c11c5434.daa9b8"
1225       ]
1226     ]
1227   },
1228   {
1229     "id": "c11c5434.daa9b8",
1230     "type": "success",
1231     "name": "success",
1232     "xml": "<outcome value='success'>\n",
1233     "comments": "",
1234     "outputs": 1,
1235     "x": 3730.3355026245117,
1236     "y": 2161.970682144165,
1237     "z": "33eaf422.44290c",
1238     "wires": [
1239       []
1240     ]
1241   },
1242   {
1243     "id": "ec4a9fe3.5d773",
1244     "type": "failure",
1245     "name": "failure",
1246     "xml": "<outcome value='failure'>\n",
1247     "comments": "",
1248     "outputs": 1,
1249     "x": 3728.3351821899414,
1250     "y": 2117.970672607422,
1251     "z": "33eaf422.44290c",
1252     "wires": [
1253       [
1254         "dfdd1a66.f211b8"
1255       ]
1256     ]
1257   },
1258   {
1259     "id": "dfdd1a66.f211b8",
1260     "type": "returnFailure",
1261     "name": "return failure",
1262     "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 sdwan hub route underlay rest api\" />\n",
1263     "comments": "",
1264     "x": 3870.335868835449,
1265     "y": 2115.9707555770874,
1266     "z": "33eaf422.44290c",
1267     "wires": []
1268   },
1269   {
1270     "id": "f88633ef.4a895",
1271     "type": "set",
1272     "name": "Add prop.hub.route",
1273     "xml": "<set>\n<parameter name='prop.route.id' value='`$prop.hubRouteId`' />\n<parameter name='prop.route.vpnId' value='`$prop.vpnId`' />\n<parameter name='prop.route.siteId' value='`$prop.hub.siteId`' />\n<parameter name='prop.route.deviceId' value='`$prop.hub.deviceId`' />\n<parameter name='prop.route.providerIpAddress' value='`$prop.hub.providerIpAddress`' />\n<parameter name='prop.route.wanportId' value='`$prop.spoke.wanportId`' />\n<parameter name='prop.route.ipAddress' value='`$prop.hub.ipAddress`' />\n\n\n",
1274     "comments": "",
1275     "x": 3414.669235229492,
1276     "y": 2140.6372261047363,
1277     "z": "33eaf422.44290c",
1278     "wires": []
1279   },
1280   {
1281     "id": "9c47cd10.cba71",
1282     "type": "execute",
1283     "name": "execute RestApiCallNode underlay route",
1284     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-underlay.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/routing-protocol/static/action/batch-delete'`\" />\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=\"underlayspokeResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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`\" />",
1285     "comments": "",
1286     "outputs": 1,
1287     "x": 3489.669235229492,
1288     "y": 2282.637691259384,
1289     "z": "33eaf422.44290c",
1290     "wires": [
1291       [
1292         "97c364c.1574998",
1293         "46a68448.91960c"
1294       ]
1295     ]
1296   },
1297   {
1298     "id": "46a68448.91960c",
1299     "type": "success",
1300     "name": "success",
1301     "xml": "<outcome value='success'>\n",
1302     "comments": "",
1303     "outputs": 1,
1304     "x": 3734.669120788574,
1305     "y": 2261.6379222869873,
1306     "z": "33eaf422.44290c",
1307     "wires": [
1308       []
1309     ]
1310   },
1311   {
1312     "id": "97c364c.1574998",
1313     "type": "failure",
1314     "name": "failure",
1315     "xml": "<outcome value='failure'>\n",
1316     "comments": "",
1317     "outputs": 1,
1318     "x": 3732.668800354004,
1319     "y": 2217.637912750244,
1320     "z": "33eaf422.44290c",
1321     "wires": [
1322       [
1323         "32d31d6b.e39f42"
1324       ]
1325     ]
1326   },
1327   {
1328     "id": "32d31d6b.e39f42",
1329     "type": "returnFailure",
1330     "name": "return failure",
1331     "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 sdwan spoke route underlay rest api\" />\n",
1332     "comments": "",
1333     "x": 3874.6694869995117,
1334     "y": 2215.6379957199097,
1335     "z": "33eaf422.44290c",
1336     "wires": []
1337   },
1338   {
1339     "id": "39f7ac2d.b359d4",
1340     "type": "switchNode",
1341     "name": "switch ActivateSDWANDeviceInstance",
1342     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n    \n    \n\n",
1343     "comments": "",
1344     "outputs": 1,
1345     "x": 3116.5320568084717,
1346     "y": 1266.833604812622,
1347     "z": "33eaf422.44290c",
1348     "wires": [
1349       [
1350         "f872eafd.ca0638"
1351       ]
1352     ]
1353   },
1354   {
1355     "id": "50e86192.f47ba",
1356     "type": "switchNode",
1357     "name": "switch tmp.devicevidx ",
1358     "xml": "<switch test=\"`$tmp.devicevidx`\">\n\n",
1359     "comments": "",
1360     "outputs": 1,
1361     "x": 2588.5316314697266,
1362     "y": 1375.4999265670776,
1363     "z": "33eaf422.44290c",
1364     "wires": [
1365       [
1366         "e276c36a.0c845"
1367       ]
1368     ]
1369   },
1370   {
1371     "id": "e276c36a.0c845",
1372     "type": "outcome",
1373     "name": "NULL",
1374     "xml": "<outcome value=''>\n",
1375     "comments": "",
1376     "outputs": 1,
1377     "x": 2754.9600677490234,
1378     "y": 1375.0714597702026,
1379     "z": "33eaf422.44290c",
1380     "wires": [
1381       [
1382         "58c8206f.bb829"
1383       ]
1384     ]
1385   },
1386   {
1387     "id": "58c8206f.bb829",
1388     "type": "returnFailure",
1389     "name": "return failure",
1390     "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 (device) not found in service-data\" />\n",
1391     "comments": "",
1392     "x": 2895.388999938965,
1393     "y": 1377.2144346237183,
1394     "z": "33eaf422.44290c",
1395     "wires": []
1396   },
1397   {
1398     "id": "f872eafd.ca0638",
1399     "type": "outcomeTrue",
1400     "name": "true",
1401     "xml": "<outcome value='true'>\n",
1402     "comments": "",
1403     "outputs": 1,
1404     "x": 3344.531744003296,
1405     "y": 1264.8336057662964,
1406     "z": "33eaf422.44290c",
1407     "wires": [
1408       [
1409         "9b7f11e8.f156f"
1410       ]
1411     ]
1412   },
1413   {
1414     "id": "9b7f11e8.f156f",
1415     "type": "set",
1416     "name": "set tmp.devicevidx ",
1417     "xml": "<set>\n<parameter name='tmp.devicevidx' value='`$arvidx`' />\n\n",
1418     "comments": "",
1419     "x": 3499.531427383423,
1420     "y": 1264.833604812622,
1421     "z": "33eaf422.44290c",
1422     "wires": []
1423   },
1424   {
1425     "id": "5ab57864.07d758",
1426     "type": "switchNode",
1427     "name": "switch ActivateSiteInstance",
1428     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n    \n    \n\n",
1429     "comments": "",
1430     "outputs": 1,
1431     "x": 3079.532127380371,
1432     "y": 1300.8336687088013,
1433     "z": "33eaf422.44290c",
1434     "wires": [
1435       [
1436         "c3a08b58.d519a8"
1437       ]
1438     ]
1439   },
1440   {
1441     "id": "971c87ae.5fde98",
1442     "type": "switchNode",
1443     "name": "switch tmp.sitevidx ",
1444     "xml": "<switch test=\"`$tmp.sitevidx`\">\n\n",
1445     "comments": "",
1446     "outputs": 1,
1447     "x": 2587.5315017700195,
1448     "y": 1413.4998044967651,
1449     "z": "33eaf422.44290c",
1450     "wires": [
1451       [
1452         "9fcf4fcb.f5c0f"
1453       ]
1454     ]
1455   },
1456   {
1457     "id": "9fcf4fcb.f5c0f",
1458     "type": "outcome",
1459     "name": "NULL",
1460     "xml": "<outcome value=''>\n",
1461     "comments": "",
1462     "outputs": 1,
1463     "x": 2747.959966659546,
1464     "y": 1413.0713243484497,
1465     "z": "33eaf422.44290c",
1466     "wires": [
1467       [
1468         "2e7d1637.59ed7a"
1469       ]
1470     ]
1471   },
1472   {
1473     "id": "2e7d1637.59ed7a",
1474     "type": "returnFailure",
1475     "name": "return failure",
1476     "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 (site) not found in service-data\" />\n",
1477     "comments": "",
1478     "x": 2896.388921737671,
1479     "y": 1415.2143306732178,
1480     "z": "33eaf422.44290c",
1481     "wires": []
1482   },
1483   {
1484     "id": "c3a08b58.d519a8",
1485     "type": "outcomeTrue",
1486     "name": "true",
1487     "xml": "<outcome value='true'>\n",
1488     "comments": "",
1489     "outputs": 1,
1490     "x": 3267.531692504883,
1491     "y": 1300.8338346481323,
1492     "z": "33eaf422.44290c",
1493     "wires": [
1494       [
1495         "90c635f1.794b58"
1496       ]
1497     ]
1498   },
1499   {
1500     "id": "90c635f1.794b58",
1501     "type": "set",
1502     "name": "set tmp.sitevidx ",
1503     "xml": "<set>\n<parameter name='tmp.sitevidx' value='`$arvidx`' />\n\n",
1504     "comments": "",
1505     "x": 3422.5313758850098,
1506     "y": 1300.833833694458,
1507     "z": "33eaf422.44290c",
1508     "wires": []
1509   },
1510   {
1511     "id": "d7805819.9cd108",
1512     "type": "for",
1513     "name": "for loop deviceidx - Get wan port ID from servicedata",
1514     "xml": "<for index=\"deviceidx\" start=\"0\" end=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.devicevidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
1515     "comments": "",
1516     "outputs": 1,
1517     "x": 2719.5331497192383,
1518     "y": 1753.834059715271,
1519     "z": "33eaf422.44290c",
1520     "wires": [
1521       [
1522         "82cf7632.68ed28"
1523       ]
1524     ]
1525   },
1526   {
1527     "id": "2060fdef.b0b7d2",
1528     "type": "switchNode",
1529     "name": "switch deviceId",
1530     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.devicevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].name == 'deviceId'`\">\n",
1531     "comments": "",
1532     "outputs": 1,
1533     "x": 3180.5345039367676,
1534     "y": 1667.834927558899,
1535     "z": "33eaf422.44290c",
1536     "wires": [
1537       [
1538         "2cf983c4.8e5dac"
1539       ]
1540     ]
1541   },
1542   {
1543     "id": "2cf983c4.8e5dac",
1544     "type": "outcomeTrue",
1545     "name": "true",
1546     "xml": "<outcome value='true'>\n",
1547     "comments": "",
1548     "outputs": 1,
1549     "x": 3331.5348777770996,
1550     "y": 1664.835171699524,
1551     "z": "33eaf422.44290c",
1552     "wires": [
1553       [
1554         "234f9431.3dcaac"
1555       ]
1556     ]
1557   },
1558   {
1559     "id": "234f9431.3dcaac",
1560     "type": "set",
1561     "name": "set prop.hub.deviceId",
1562     "xml": "<set>\n<parameter name='prop.hub.deviceId' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.devicevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].value`' />\n",
1563     "comments": "",
1564     "x": 3506.535125732422,
1565     "y": 1664.4356966018677,
1566     "z": "33eaf422.44290c",
1567     "wires": []
1568   },
1569   {
1570     "id": "4ed5eacf.f6a1c4",
1571     "type": "for",
1572     "name": "for loop siteidx - Get site ID from servicedata",
1573     "xml": "<for index=\"siteidx\" start=\"0\" end=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
1574     "comments": "",
1575     "outputs": 1,
1576     "x": 2694.0330352783203,
1577     "y": 1810.83407497406,
1578     "z": "33eaf422.44290c",
1579     "wires": [
1580       [
1581         "c6190b7b.0c6f78"
1582       ]
1583     ]
1584   },
1585   {
1586     "id": "c9e1f848.8aa118",
1587     "type": "switchNode",
1588     "name": "switch spokeRouteId",
1589     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].name == 'spokeRouteId'`\">\n",
1590     "comments": "",
1591     "outputs": 1,
1592     "x": 3160.034511566162,
1593     "y": 1822.8348779678345,
1594     "z": "33eaf422.44290c",
1595     "wires": [
1596       [
1597         "480353b6.36bf3c"
1598       ]
1599     ]
1600   },
1601   {
1602     "id": "480353b6.36bf3c",
1603     "type": "outcomeTrue",
1604     "name": "true",
1605     "xml": "<outcome value='true'>\n",
1606     "comments": "",
1607     "outputs": 1,
1608     "x": 3323.035057067871,
1609     "y": 1820.8351745605469,
1610     "z": "33eaf422.44290c",
1611     "wires": [
1612       [
1613         "7e8ff406.9f32cc"
1614       ]
1615     ]
1616   },
1617   {
1618     "id": "7e8ff406.9f32cc",
1619     "type": "set",
1620     "name": "set prop.spokeRouteId",
1621     "xml": "<set>\n<parameter name='prop.spokeRouteId' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].value`' />\n",
1622     "comments": "",
1623     "x": 3492.0350646972656,
1624     "y": 1820.4357604980469,
1625     "z": "33eaf422.44290c",
1626     "wires": []
1627   },
1628   {
1629     "id": "4f4875cc.67999c",
1630     "type": "comment",
1631     "name": "Add route src->dst, dst->src",
1632     "info": "",
1633     "comments": "",
1634     "x": 2910.6687927246094,
1635     "y": 1858.6359510421753,
1636     "z": "33eaf422.44290c",
1637     "wires": []
1638   },
1639   {
1640     "id": "2f1d0b59.a2f164",
1641     "type": "block",
1642     "name": "block atomic",
1643     "xml": "<block atomic=\"true\">\n",
1644     "atomic": "false",
1645     "comments": "",
1646     "outputs": 1,
1647     "x": 2132.334228515625,
1648     "y": 1238.968747138977,
1649     "z": "33eaf422.44290c",
1650     "wires": [
1651       [
1652         "57a73c1e.aeb484",
1653         "815939d8.db2788",
1654         "d298818e.120b",
1655         "bc0801cd.444e3",
1656         "cf6c45e0.a382b8",
1657         "380e9d46.aac952",
1658         "150f28bb.9cebb7"
1659       ]
1660     ]
1661   },
1662   {
1663     "id": "bc0801cd.444e3",
1664     "type": "block",
1665     "name": "block atmoic",
1666     "xml": "<block atomic=\"true\">\n",
1667     "atomic": "false",
1668     "comments": "",
1669     "outputs": 1,
1670     "x": 2387.333984375,
1671     "y": 1375.3021211624146,
1672     "z": "33eaf422.44290c",
1673     "wires": [
1674       [
1675         "cb874e53.482c8",
1676         "50e86192.f47ba",
1677         "971c87ae.5fde98"
1678       ]
1679     ]
1680   },
1681   {
1682     "id": "3d53e5a5.8f912a",
1683     "type": "block",
1684     "name": "block atomic",
1685     "xml": "<block atomic=\"true\">\n",
1686     "atomic": "false",
1687     "comments": "",
1688     "outputs": 1,
1689     "x": 2381.3349609375,
1690     "y": 1747.6356172561646,
1691     "z": "33eaf422.44290c",
1692     "wires": [
1693       [
1694         "49f7ab80.b2f444",
1695         "d7805819.9cd108",
1696         "4ed5eacf.f6a1c4",
1697         "927db1a6.0967b",
1698         "9c607856.359088"
1699       ]
1700     ]
1701   },
1702   {
1703     "id": "a6ca66b6.132b88",
1704     "type": "switchNode",
1705     "name": "switch providerIpAddress",
1706     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'providerIpAddress'`\">\n",
1707     "comments": "",
1708     "outputs": 1,
1709     "x": 3128.5319747924805,
1710     "y": 1501.8334050178528,
1711     "z": "33eaf422.44290c",
1712     "wires": [
1713       [
1714         "22164d6f.99a622"
1715       ]
1716     ]
1717   },
1718   {
1719     "id": "22164d6f.99a622",
1720     "type": "outcomeTrue",
1721     "name": "true",
1722     "xml": "<outcome value='true'>\n",
1723     "comments": "",
1724     "outputs": 1,
1725     "x": 3304.532958984375,
1726     "y": 1501.8335275650024,
1727     "z": "33eaf422.44290c",
1728     "wires": [
1729       [
1730         "46635360.d5dd9c"
1731       ]
1732     ]
1733   },
1734   {
1735     "id": "46635360.d5dd9c",
1736     "type": "set",
1737     "name": "set prop.hub.providerIpAddress",
1738     "xml": "<set>\n<parameter name='prop.hub.providerIpAddress' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\n",
1739     "comments": "",
1740     "x": 3506.5329971313477,
1741     "y": 1502.4334478378296,
1742     "z": "33eaf422.44290c",
1743     "wires": []
1744   },
1745   {
1746     "id": "f8ad0824.756498",
1747     "type": "switchNode",
1748     "name": "switch ipAddress",
1749     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'ipAddress'`\">\n",
1750     "comments": "",
1751     "outputs": 1,
1752     "x": 3101.0320568084717,
1753     "y": 1539.333490371704,
1754     "z": "33eaf422.44290c",
1755     "wires": [
1756       [
1757         "ae5c5a08.535ae8"
1758       ]
1759     ]
1760   },
1761   {
1762     "id": "ae5c5a08.535ae8",
1763     "type": "outcomeTrue",
1764     "name": "true",
1765     "xml": "<outcome value='true'>\n",
1766     "comments": "",
1767     "outputs": 1,
1768     "x": 3305.0329971313477,
1769     "y": 1539.3334422111511,
1770     "z": "33eaf422.44290c",
1771     "wires": [
1772       [
1773         "a2ccd569.27b3a8"
1774       ]
1775     ]
1776   },
1777   {
1778     "id": "a2ccd569.27b3a8",
1779     "type": "set",
1780     "name": "set prop.hub.ipAddress",
1781     "xml": "<set>\n<parameter name='prop.hub.ipAddress' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\n",
1782     "comments": "",
1783     "x": 3500.033000946045,
1784     "y": 1538.9334177970886,
1785     "z": "33eaf422.44290c",
1786     "wires": []
1787   },
1788   {
1789     "id": "7ec8de50.abc7a",
1790     "type": "set",
1791     "name": "Add prop.spoke.route",
1792     "xml": "<set>\n<parameter name='prop.route.id' value='`$prop.spokeRouteId`' />\n<parameter name='prop.route.vpnId' value='`$prop.vpnId`' />\n<parameter name='prop.route.siteId' value='`$prop.spoke.siteId`' />\n<parameter name='prop.route.deviceId' value='`$prop.spoke.deviceId`' />\n<parameter name='prop.route.providerIpAddress' value='`$prop.spoke.providerIpAddress`' />\n<parameter name='prop.route.wanportId' value='`$prop.hub.wanportId`' />\n<parameter name='prop.route.ipAddress' value='`$prop.spoke.ipAddress`' />\n\n\n\n\n",
1793     "comments": "",
1794     "x": 3424.533250808716,
1795     "y": 2251.334452390671,
1796     "z": "33eaf422.44290c",
1797     "wires": []
1798   },
1799   {
1800     "id": "383a5f3d.e4cb2",
1801     "type": "returnSuccess",
1802     "name": "return success",
1803     "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",
1804     "comments": "",
1805     "x": 357.3343048095703,
1806     "y": 1113.3343391418457,
1807     "z": "33eaf422.44290c",
1808     "wires": []
1809   },
1810   {
1811     "id": "66dd18ab.e48f08",
1812     "type": "execute",
1813     "name": "generate connection attachment AR url ",
1814     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$prop.ar.allotted-resource-id`\"/>\n",
1815     "comments": "",
1816     "outputs": 1,
1817     "x": 1406.6672058105469,
1818     "y": 175.30183696746826,
1819     "z": "33eaf422.44290c",
1820     "wires": [
1821       []
1822     ]
1823   },
1824   {
1825     "id": "8e4434c9.93e608",
1826     "type": "execute",
1827     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1828     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-connection`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
1829     "comments": "",
1830     "outputs": 1,
1831     "x": 1533.667236328125,
1832     "y": 223.3018274307251,
1833     "z": "33eaf422.44290c",
1834     "wires": [
1835       [
1836         "90cd3398.44586",
1837         "259f1fc9.28f91"
1838       ]
1839     ]
1840   },
1841   {
1842     "id": "b50f711c.f7671",
1843     "type": "execute",
1844     "name": "execute RestApiCallNode - get parent service data",
1845     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-parent-connection`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n",
1846     "comments": "",
1847     "outputs": 1,
1848     "x": 1759.0013122558594,
1849     "y": 537.3021445274353,
1850     "z": "33eaf422.44290c",
1851     "wires": [
1852       [
1853         "dab3ccab.cce12",
1854         "4c1ffccd.7a1ed4"
1855       ]
1856     ]
1857   },
1858   {
1859     "id": "4176c827.c206f8",
1860     "type": "execute",
1861     "name": "generate connection attachment parent url ",
1862     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-parent-connection\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$prop.parent-service-instance-id`\"/>\n",
1863     "comments": "",
1864     "outputs": 1,
1865     "x": 1735.0010375976562,
1866     "y": 503.30206871032715,
1867     "z": "33eaf422.44290c",
1868     "wires": [
1869       []
1870     ]
1871   },
1872   {
1873     "id": "38bc1f98.0d705",
1874     "type": "comment",
1875     "name": "full mesh do nothing",
1876     "info": "",
1877     "comments": "",
1878     "x": 1569.667839050293,
1879     "y": 714.3021068572998,
1880     "z": "33eaf422.44290c",
1881     "wires": []
1882   },
1883   {
1884     "id": "d2bafee.be2ed",
1885     "type": "comment",
1886     "name": "hub-spoke",
1887     "info": "",
1888     "comments": "",
1889     "x": 2570.6672401428223,
1890     "y": 811.3019967079163,
1891     "z": "33eaf422.44290c",
1892     "wires": []
1893   },
1894   {
1895     "id": "74cd5045.40831",
1896     "type": "execute",
1897     "name": "generate connection attachment AR url ",
1898     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$prop.ar.provided-allotted-resource-id`\"/>\n",
1899     "comments": "",
1900     "outputs": 1,
1901     "x": 2243.0003929138184,
1902     "y": 962.3019919395447,
1903     "z": "33eaf422.44290c",
1904     "wires": [
1905       []
1906     ]
1907   },
1908   {
1909     "id": "447d9e5f.d5a82",
1910     "type": "execute",
1911     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1912     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-connection`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-providedAr\" />\n\n",
1913     "comments": "",
1914     "outputs": 1,
1915     "x": 2374.000473022461,
1916     "y": 1001.9686217308044,
1917     "z": "33eaf422.44290c",
1918     "wires": [
1919       [
1920         "8fa9655b.7c6ef8",
1921         "3a2551b1.4f0ace"
1922       ]
1923     ]
1924   },
1925   {
1926     "id": "380e9d46.aac952",
1927     "type": "execute",
1928     "name": "generate service data url",
1929     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$prop.ar-service-instance-id`\"/>\n",
1930     "comments": "",
1931     "outputs": 1,
1932     "x": 2424.504367828369,
1933     "y": 1203.3058919906616,
1934     "z": "33eaf422.44290c",
1935     "wires": [
1936       []
1937     ]
1938   },
1939   {
1940     "id": "150f28bb.9cebb7",
1941     "type": "execute",
1942     "name": "execute RestApiCallNode - get service data of allotted resource",
1943     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-connection`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-arsd\" />\n\n",
1944     "comments": "",
1945     "outputs": 1,
1946     "x": 2540.5045013427734,
1947     "y": 1240.3057832717896,
1948     "z": "33eaf422.44290c",
1949     "wires": [
1950       [
1951         "77da5adf.834034",
1952         "8429ea0a.844dc8"
1953       ]
1954     ]
1955   },
1956   {
1957     "id": "f3be5614.599b68",
1958     "type": "outcomeTrue",
1959     "name": "true",
1960     "xml": "<outcome value='true'>\n",
1961     "comments": "",
1962     "outputs": 1,
1963     "x": 2304.5000648498535,
1964     "y": 1125.8018560409546,
1965     "z": "33eaf422.44290c",
1966     "wires": [
1967       [
1968         "2f1d0b59.a2f164"
1969       ]
1970     ]
1971   },
1972   {
1973     "id": "145fa94e.f27887",
1974     "type": "outcomeFalse",
1975     "name": "false",
1976     "xml": "<outcome value='false'>\n",
1977     "comments": "",
1978     "outputs": 1,
1979     "x": 2310.500312805176,
1980     "y": 1082.801947593689,
1981     "z": "33eaf422.44290c",
1982     "wires": [
1983       [
1984         "da4408c3.f5c0d8"
1985       ]
1986     ]
1987   },
1988   {
1989     "id": "dc60366a.2e9048",
1990     "type": "for",
1991     "name": "for loop roleidx - Get role from allotted resource",
1992     "xml": "<for index=\"roleidx\" start=\"0\" end=\"`$mdsal-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`\">\n    \n    \n",
1993     "comments": "",
1994     "outputs": 1,
1995     "x": 2885.5008697509766,
1996     "y": 230.30177307128906,
1997     "z": "33eaf422.44290c",
1998     "wires": [
1999       [
2000         "b2e56fad.1ec69"
2001       ]
2002     ]
2003   },
2004   {
2005     "id": "b2e56fad.1ec69",
2006     "type": "block",
2007     "name": "block",
2008     "xml": "<block>\n",
2009     "atomic": "false",
2010     "comments": "",
2011     "outputs": 1,
2012     "x": 3144.5011825561523,
2013     "y": 229.3020887374878,
2014     "z": "33eaf422.44290c",
2015     "wires": [
2016       [
2017         "694d9509.75a9ec"
2018       ]
2019     ]
2020   },
2021   {
2022     "id": "694d9509.75a9ec",
2023     "type": "switchNode",
2024     "name": "switch Role",
2025     "xml": "<switch test=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$roleidx].name == 'role'`\">\n",
2026     "comments": "",
2027     "outputs": 1,
2028     "x": 3293.501194000244,
2029     "y": 230.3019256591797,
2030     "z": "33eaf422.44290c",
2031     "wires": [
2032       [
2033         "7d090fc5.01ae4"
2034       ]
2035     ]
2036   },
2037   {
2038     "id": "c3f6a3e4.765a9",
2039     "type": "set",
2040     "name": "set prop.spoke.role",
2041     "xml": "<set>\n<parameter name='prop.spoke.role' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$roleidx].value`' />\n",
2042     "comments": "",
2043     "x": 3598.501754760742,
2044     "y": 227.90183353424072,
2045     "z": "33eaf422.44290c",
2046     "wires": []
2047   },
2048   {
2049     "id": "7d090fc5.01ae4",
2050     "type": "outcomeTrue",
2051     "name": "true",
2052     "xml": "<outcome value='true'>\n",
2053     "comments": "",
2054     "outputs": 1,
2055     "x": 3429.00101852417,
2056     "y": 227.30176544189453,
2057     "z": "33eaf422.44290c",
2058     "wires": [
2059       [
2060         "c3f6a3e4.765a9"
2061       ]
2062     ]
2063   },
2064   {
2065     "id": "64901ca2.c8fd44",
2066     "type": "switchNode",
2067     "name": "switch spoke",
2068     "xml": "<switch test=\"`$prop.spoke.role == 'spoke'`\">\n",
2069     "comments": "",
2070     "outputs": 1,
2071     "x": 1321.000373840332,
2072     "y": 374.301700592041,
2073     "z": "33eaf422.44290c",
2074     "wires": [
2075       [
2076         "3df0d9b2.5cda06"
2077       ]
2078     ]
2079   },
2080   {
2081     "id": "3df0d9b2.5cda06",
2082     "type": "outcomeTrue",
2083     "name": "true",
2084     "xml": "<outcome value='true'>\n",
2085     "comments": "",
2086     "outputs": 1,
2087     "x": 1462.000129699707,
2088     "y": 375.30173778533936,
2089     "z": "33eaf422.44290c",
2090     "wires": [
2091       [
2092         "e7d060c2.d5397"
2093       ]
2094     ]
2095   },
2096   {
2097     "id": "51f4030a.ed3f5c",
2098     "type": "for",
2099     "name": "for i.. service-data.vnfs.vnf_length[]",
2100     "xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
2101     "comments": "",
2102     "outputs": 1,
2103     "x": 1734.5006561279297,
2104     "y": 429.3017330169678,
2105     "z": "33eaf422.44290c",
2106     "wires": [
2107       [
2108         "62a2db1c.5168f4"
2109       ]
2110     ]
2111   },
2112   {
2113     "id": "62a2db1c.5168f4",
2114     "type": "block",
2115     "name": "block atmoic",
2116     "xml": "<block atomic=\"true\">\n",
2117     "atomic": "false",
2118     "comments": "",
2119     "outputs": 1,
2120     "x": 2068.166847229004,
2121     "y": 373.3016633987427,
2122     "z": "33eaf422.44290c",
2123     "wires": [
2124       [
2125         "5123e57d.8bae0c",
2126         "23b51d10.325942",
2127         "e569fce4.0fcf9"
2128       ]
2129     ]
2130   },
2131   {
2132     "id": "5123e57d.8bae0c",
2133     "type": "switchNode",
2134     "name": "switch ActivateSDWANPortInstance",
2135     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSDWANPortInstance'`\">\n    \n    \n\n",
2136     "comments": "",
2137     "outputs": 1,
2138     "x": 2339.1668853759766,
2139     "y": 319.3025498390198,
2140     "z": "33eaf422.44290c",
2141     "wires": [
2142       [
2143         "6db9ff05.77666"
2144       ]
2145     ]
2146   },
2147   {
2148     "id": "6db9ff05.77666",
2149     "type": "outcomeTrue",
2150     "name": "true",
2151     "xml": "<outcome value='true'>\n",
2152     "comments": "",
2153     "outputs": 1,
2154     "x": 2552.166648864746,
2155     "y": 320.3025527000427,
2156     "z": "33eaf422.44290c",
2157     "wires": [
2158       [
2159         "277a3bfe.22cd04"
2160       ]
2161     ]
2162   },
2163   {
2164     "id": "277a3bfe.22cd04",
2165     "type": "block",
2166     "name": "block atomic",
2167     "xml": "<block atomic=\"true\">\n",
2168     "atomic": "false",
2169     "comments": "",
2170     "outputs": 1,
2171     "x": 2701.0003929138184,
2172     "y": 322.3017420768738,
2173     "z": "33eaf422.44290c",
2174     "wires": [
2175       [
2176         "342216f2.a96c5a"
2177       ]
2178     ]
2179   },
2180   {
2181     "id": "342216f2.a96c5a",
2182     "type": "for",
2183     "name": "for loop widx - Get wan port ID from servicedata",
2184     "xml": "<for index=\"widx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
2185     "comments": "",
2186     "outputs": 1,
2187     "x": 2974.000343322754,
2188     "y": 320.6689600944519,
2189     "z": "33eaf422.44290c",
2190     "wires": [
2191       [
2192         "bd426655.141608"
2193       ]
2194     ]
2195   },
2196   {
2197     "id": "bd426655.141608",
2198     "type": "block",
2199     "name": "block atomic",
2200     "xml": "<block atomic=\"true\">\n",
2201     "atomic": "false",
2202     "comments": "",
2203     "outputs": 1,
2204     "x": 3243.0012702941895,
2205     "y": 319.66920614242554,
2206     "z": "33eaf422.44290c",
2207     "wires": [
2208       [
2209         "d3ada690.01d678",
2210         "daf81956.349368",
2211         "5bef4443.c838fc",
2212         "a4bd0e48.6d82f"
2213       ]
2214     ]
2215   },
2216   {
2217     "id": "d3ada690.01d678",
2218     "type": "switchNode",
2219     "name": "switch transportNetworkName",
2220     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'transportNetworkName'`\">\n",
2221     "comments": "",
2222     "outputs": 1,
2223     "x": 3486.0023040771484,
2224     "y": 274.6697793006897,
2225     "z": "33eaf422.44290c",
2226     "wires": [
2227       [
2228         "894b8be3.a2d3b8"
2229       ]
2230     ]
2231   },
2232   {
2233     "id": "894b8be3.a2d3b8",
2234     "type": "outcomeTrue",
2235     "name": "true",
2236     "xml": "<outcome value='true'>\n",
2237     "comments": "",
2238     "outputs": 1,
2239     "x": 3686.0020790100098,
2240     "y": 274.6699414253235,
2241     "z": "33eaf422.44290c",
2242     "wires": [
2243       [
2244         "4cf3ccb2.4c44b4"
2245       ]
2246     ]
2247   },
2248   {
2249     "id": "4cf3ccb2.4c44b4",
2250     "type": "set",
2251     "name": "set prop.spoke.transportNetworkName",
2252     "xml": "<set>\n<parameter name='prop.spoke.transportNetworkName' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].value`' />\n",
2253     "comments": "",
2254     "x": 3913.002815246582,
2255     "y": 276.2705235481262,
2256     "z": "33eaf422.44290c",
2257     "wires": []
2258   },
2259   {
2260     "id": "e7d060c2.d5397",
2261     "type": "block",
2262     "name": "block: atomic",
2263     "xml": "<block atomic=\"true\">\n",
2264     "atomic": "false",
2265     "comments": "",
2266     "outputs": 1,
2267     "x": 1214.9694213867188,
2268     "y": 685.2706489562988,
2269     "z": "33eaf422.44290c",
2270     "wires": [
2271       [
2272         "51f4030a.ed3f5c",
2273         "4176c827.c206f8",
2274         "b50f711c.f7671",
2275         "c5126628.a1afc8",
2276         "cf236aa.4478b98",
2277         "f19570ac.55187"
2278       ]
2279     ]
2280   },
2281   {
2282     "id": "23b51d10.325942",
2283     "type": "switchNode",
2284     "name": "switch ActivateSDWANDeviceInstance",
2285     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n    \n    \n\n",
2286     "comments": "",
2287     "outputs": 1,
2288     "x": 2331.5003204345703,
2289     "y": 393.3017544746399,
2290     "z": "33eaf422.44290c",
2291     "wires": [
2292       [
2293         "14d0bfc7.55b7a"
2294       ]
2295     ]
2296   },
2297   {
2298     "id": "14d0bfc7.55b7a",
2299     "type": "outcomeTrue",
2300     "name": "true",
2301     "xml": "<outcome value='true'>\n",
2302     "comments": "",
2303     "outputs": 1,
2304     "x": 2550.5000705718994,
2305     "y": 394.30173921585083,
2306     "z": "33eaf422.44290c",
2307     "wires": [
2308       [
2309         "da1c13db.62f86"
2310       ]
2311     ]
2312   },
2313   {
2314     "id": "da1c13db.62f86",
2315     "type": "block",
2316     "name": "block atomic",
2317     "xml": "<block atomic=\"true\">\n",
2318     "atomic": "false",
2319     "comments": "",
2320     "outputs": 1,
2321     "x": 2701.3340606689453,
2322     "y": 400.3009305000305,
2323     "z": "33eaf422.44290c",
2324     "wires": [
2325       [
2326         "e71b7f46.84637"
2327       ]
2328     ]
2329   },
2330   {
2331     "id": "e71b7f46.84637",
2332     "type": "for",
2333     "name": "for loop didx - Get device ID from servicedata",
2334     "xml": "<for index=\"didx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
2335     "comments": "",
2336     "outputs": 1,
2337     "x": 2960.334312438965,
2338     "y": 402.66822576522827,
2339     "z": "33eaf422.44290c",
2340     "wires": [
2341       [
2342         "ae18d850.3d05e8"
2343       ]
2344     ]
2345   },
2346   {
2347     "id": "ae18d850.3d05e8",
2348     "type": "block",
2349     "name": "block atomic",
2350     "xml": "<block atomic=\"true\">\n",
2351     "atomic": "false",
2352     "comments": "",
2353     "outputs": 1,
2354     "x": 3246.334819793701,
2355     "y": 435.66841077804565,
2356     "z": "33eaf422.44290c",
2357     "wires": [
2358       [
2359         "1383d6a4.a044c9"
2360       ]
2361     ]
2362   },
2363   {
2364     "id": "1383d6a4.a044c9",
2365     "type": "switchNode",
2366     "name": "switch deviceId",
2367     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].name == 'deviceId'`\">\n",
2368     "comments": "",
2369     "outputs": 1,
2370     "x": 3429.3357315063477,
2371     "y": 435.66902112960815,
2372     "z": "33eaf422.44290c",
2373     "wires": [
2374       [
2375         "cbbd7b54.04add8"
2376       ]
2377     ]
2378   },
2379   {
2380     "id": "cbbd7b54.04add8",
2381     "type": "outcomeTrue",
2382     "name": "true",
2383     "xml": "<outcome value='true'>\n",
2384     "comments": "",
2385     "outputs": 1,
2386     "x": 3629.335506439209,
2387     "y": 435.66918325424194,
2388     "z": "33eaf422.44290c",
2389     "wires": [
2390       [
2391         "2002292c.f851e6"
2392       ]
2393     ]
2394   },
2395   {
2396     "id": "2002292c.f851e6",
2397     "type": "set",
2398     "name": "set prop.spoke.deviceId",
2399     "xml": "<set>\n<parameter name='prop.spoke.deviceId' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].value`' />\n",
2400     "comments": "",
2401     "x": 3824.3361892700195,
2402     "y": 432.26976442337036,
2403     "z": "33eaf422.44290c",
2404     "wires": []
2405   },
2406   {
2407     "id": "e569fce4.0fcf9",
2408     "type": "switchNode",
2409     "name": "switch ActivateSiteInstance",
2410     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n    \n    \n\n",
2411     "comments": "",
2412     "outputs": 1,
2413     "x": 2310.5004348754883,
2414     "y": 454.30178594589233,
2415     "z": "33eaf422.44290c",
2416     "wires": [
2417       [
2418         "2c51cabd.1c1bf6"
2419       ]
2420     ]
2421   },
2422   {
2423     "id": "2c51cabd.1c1bf6",
2424     "type": "outcomeTrue",
2425     "name": "true",
2426     "xml": "<outcome value='true'>\n",
2427     "comments": "",
2428     "outputs": 1,
2429     "x": 2544.500072479248,
2430     "y": 455.3017258644104,
2431     "z": "33eaf422.44290c",
2432     "wires": [
2433       [
2434         "4b1a4a05.7589d4"
2435       ]
2436     ]
2437   },
2438   {
2439     "id": "4b1a4a05.7589d4",
2440     "type": "block",
2441     "name": "block atomic",
2442     "xml": "<block atomic=\"true\">\n",
2443     "atomic": "false",
2444     "comments": "",
2445     "outputs": 1,
2446     "x": 2696.3340606689453,
2447     "y": 477.30096197128296,
2448     "z": "33eaf422.44290c",
2449     "wires": [
2450       [
2451         "bfdd7dbc.be644"
2452       ]
2453     ]
2454   },
2455   {
2456     "id": "bfdd7dbc.be644",
2457     "type": "for",
2458     "name": "for loop widx - Get wan site ID from servicedata",
2459     "xml": "<for index=\"sidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
2460     "comments": "",
2461     "outputs": 1,
2462     "x": 2977.3338928222656,
2463     "y": 476.668164730072,
2464     "z": "33eaf422.44290c",
2465     "wires": [
2466       [
2467         "86ec8da.eb7757"
2468       ]
2469     ]
2470   },
2471   {
2472     "id": "86ec8da.eb7757",
2473     "type": "block",
2474     "name": "block atomic",
2475     "xml": "<block atomic=\"true\">\n",
2476     "atomic": "false",
2477     "comments": "",
2478     "outputs": 1,
2479     "x": 3246.334819793701,
2480     "y": 475.66841077804565,
2481     "z": "33eaf422.44290c",
2482     "wires": [
2483       [
2484         "ea6a5ab7.abd8e8",
2485         "b2aac804.e6f348"
2486       ]
2487     ]
2488   },
2489   {
2490     "id": "ea6a5ab7.abd8e8",
2491     "type": "switchNode",
2492     "name": "switch name",
2493     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'siteId'`\">\n",
2494     "comments": "",
2495     "outputs": 1,
2496     "x": 3435.335723876953,
2497     "y": 513.6690349578857,
2498     "z": "33eaf422.44290c",
2499     "wires": [
2500       [
2501         "46e734ca.67fa0c"
2502       ]
2503     ]
2504   },
2505   {
2506     "id": "46e734ca.67fa0c",
2507     "type": "outcomeTrue",
2508     "name": "true",
2509     "xml": "<outcome value='true'>\n",
2510     "comments": "",
2511     "outputs": 1,
2512     "x": 3635.3354988098145,
2513     "y": 513.6691970825195,
2514     "z": "33eaf422.44290c",
2515     "wires": [
2516       [
2517         "f2397edb.062c5"
2518       ]
2519     ]
2520   },
2521   {
2522     "id": "f2397edb.062c5",
2523     "type": "set",
2524     "name": "set prop.spoke.siteId",
2525     "xml": "<set>\n<parameter name='prop.spoke.siteId' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].value`' />\n",
2526     "comments": "",
2527     "x": 3823.3363037109375,
2528     "y": 512.2698106765747,
2529     "z": "33eaf422.44290c",
2530     "wires": []
2531   },
2532   {
2533     "id": "daf81956.349368",
2534     "type": "switchNode",
2535     "name": "switch wanPortId",
2536     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'wanPortId'`\">\n",
2537     "comments": "",
2538     "outputs": 1,
2539     "x": 3459.5,
2540     "y": 311.3018355369568,
2541     "z": "33eaf422.44290c",
2542     "wires": [
2543       [
2544         "34972355.9c297c"
2545       ]
2546     ]
2547   },
2548   {
2549     "id": "34972355.9c297c",
2550     "type": "outcomeTrue",
2551     "name": "true",
2552     "xml": "<outcome value='true'>\n",
2553     "comments": "",
2554     "outputs": 1,
2555     "x": 3689.5000038146973,
2556     "y": 311.3019471168518,
2557     "z": "33eaf422.44290c",
2558     "wires": [
2559       [
2560         "6f9ff7e2.2957f8"
2561       ]
2562     ]
2563   },
2564   {
2565     "id": "6f9ff7e2.2957f8",
2566     "type": "set",
2567     "name": "set prop.spoke.wanPortId",
2568     "xml": "<set>\n<parameter name='prop.spoke.wanPortId' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].value`' />\n",
2569     "comments": "",
2570     "x": 3916.5007400512695,
2571     "y": 312.90252923965454,
2572     "z": "33eaf422.44290c",
2573     "wires": []
2574   },
2575   {
2576     "id": "5bef4443.c838fc",
2577     "type": "switchNode",
2578     "name": "switch providerIpAddress",
2579     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'providerIpAddress'`\">\n",
2580     "comments": "",
2581     "outputs": 1,
2582     "x": 3477.500160217285,
2583     "y": 355.30178594589233,
2584     "z": "33eaf422.44290c",
2585     "wires": [
2586       [
2587         "9220a2ce.263ec"
2588       ]
2589     ]
2590   },
2591   {
2592     "id": "9220a2ce.263ec",
2593     "type": "outcomeTrue",
2594     "name": "true",
2595     "xml": "<outcome value='true'>\n",
2596     "comments": "",
2597     "outputs": 1,
2598     "x": 3677.4999351501465,
2599     "y": 355.3019480705261,
2600     "z": "33eaf422.44290c",
2601     "wires": [
2602       [
2603         "95bab342.b39b3"
2604       ]
2605     ]
2606   },
2607   {
2608     "id": "95bab342.b39b3",
2609     "type": "set",
2610     "name": "set prop.spoke.providerIpAddress",
2611     "xml": "<set>\n<parameter name='prop.spoke.providerIpAddress' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].value`' />\n",
2612     "comments": "",
2613     "x": 3904.5006713867188,
2614     "y": 356.90253019332886,
2615     "z": "33eaf422.44290c",
2616     "wires": []
2617   },
2618   {
2619     "id": "a4bd0e48.6d82f",
2620     "type": "switchNode",
2621     "name": "switch ipAddress",
2622     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'ipAddress'`\">\n",
2623     "comments": "",
2624     "outputs": 1,
2625     "x": 3457.499988555908,
2626     "y": 394.30182218551636,
2627     "z": "33eaf422.44290c",
2628     "wires": [
2629       [
2630         "511d5688.773858"
2631       ]
2632     ]
2633   },
2634   {
2635     "id": "511d5688.773858",
2636     "type": "outcomeTrue",
2637     "name": "true",
2638     "xml": "<outcome value='true'>\n",
2639     "comments": "",
2640     "outputs": 1,
2641     "x": 3681.4998168945312,
2642     "y": 394.3019394874573,
2643     "z": "33eaf422.44290c",
2644     "wires": [
2645       [
2646         "fc2e69a1.2d4298"
2647       ]
2648     ]
2649   },
2650   {
2651     "id": "fc2e69a1.2d4298",
2652     "type": "set",
2653     "name": "set prop.spoke.ipAddress",
2654     "xml": "<set>\n<parameter name='prop.spoke.ipAddress' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].value`' />\n",
2655     "comments": "",
2656     "x": 3908.5005531311035,
2657     "y": 395.90252161026,
2658     "z": "33eaf422.44290c",
2659     "wires": []
2660   },
2661   {
2662     "id": "e9598182.81589",
2663     "type": "block",
2664     "name": "block: atomic",
2665     "xml": "<block atomic=\"true\">\n",
2666     "atomic": "false",
2667     "comments": "",
2668     "outputs": 1,
2669     "x": 1024.999900817871,
2670     "y": 253.50004196166992,
2671     "z": "33eaf422.44290c",
2672     "wires": [
2673       [
2674         "be430b5e.14a828",
2675         "66dd18ab.e48f08",
2676         "8e4434c9.93e608",
2677         "64901ca2.c8fd44"
2678       ]
2679     ]
2680   },
2681   {
2682     "id": "813e415f.e07c",
2683     "type": "comment",
2684     "name": "get spoke device,site,wanport info",
2685     "info": "",
2686     "comments": "",
2687     "x": 1781.96875,
2688     "y": 376.96874713897705,
2689     "z": "33eaf422.44290c",
2690     "wires": []
2691   },
2692   {
2693     "id": "2db9ead7.c2b4b6",
2694     "type": "comment",
2695     "name": "Add routes only on activation of spoke Attach site",
2696     "info": "",
2697     "comments": "",
2698     "x": 1418.4998245239258,
2699     "y": 336.0000162124634,
2700     "z": "33eaf422.44290c",
2701     "wires": []
2702   },
2703   {
2704     "id": "2dcb0ef7.828042",
2705     "type": "comment",
2706     "name": "Loop for all the hub allotted resources, get respective service data and get vnfs info",
2707     "info": "",
2708     "comments": "",
2709     "x": 2198.5,
2710     "y": 815.500057220459,
2711     "z": "33eaf422.44290c",
2712     "wires": []
2713   },
2714   {
2715     "id": "c6190b7b.0c6f78",
2716     "type": "block",
2717     "name": "block atomic",
2718     "xml": "<block atomic=\"true\">\n",
2719     "atomic": "false",
2720     "comments": "",
2721     "outputs": 1,
2722     "x": 2954.4997177124023,
2723     "y": 1796.9999589920044,
2724     "z": "33eaf422.44290c",
2725     "wires": [
2726       [
2727         "c9e1f848.8aa118",
2728         "f616545c.e692d8",
2729         "dcfe4dc9.3d83d",
2730         "edcfc449.815b98"
2731       ]
2732     ]
2733   },
2734   {
2735     "id": "82cf7632.68ed28",
2736     "type": "block",
2737     "name": "block atomic",
2738     "xml": "<block atomic=\"true\">\n",
2739     "atomic": "false",
2740     "comments": "",
2741     "outputs": 1,
2742     "x": 3004.4997749328613,
2743     "y": 1669.999843597412,
2744     "z": "33eaf422.44290c",
2745     "wires": [
2746       [
2747         "2060fdef.b0b7d2"
2748       ]
2749     ]
2750   },
2751   {
2752     "id": "dcfe4dc9.3d83d",
2753     "type": "switchNode",
2754     "name": "switch hubRouteId",
2755     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].name == 'hubRouteId'`\">\n",
2756     "comments": "",
2757     "outputs": 1,
2758     "x": 3159.4996376037598,
2759     "y": 1784.9998378753662,
2760     "z": "33eaf422.44290c",
2761     "wires": [
2762       [
2763         "4b1456a4.ed61c8"
2764       ]
2765     ]
2766   },
2767   {
2768     "id": "4b1456a4.ed61c8",
2769     "type": "outcomeTrue",
2770     "name": "true",
2771     "xml": "<outcome value='true'>\n",
2772     "comments": "",
2773     "outputs": 1,
2774     "x": 3322.5000228881836,
2775     "y": 1784.000150680542,
2776     "z": "33eaf422.44290c",
2777     "wires": [
2778       [
2779         "71be6aaa.93fe04"
2780       ]
2781     ]
2782   },
2783   {
2784     "id": "71be6aaa.93fe04",
2785     "type": "set",
2786     "name": "set prop.hubRouteId",
2787     "xml": "<set>\n<parameter name='prop.hubRouteId' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].value`' />\n",
2788     "comments": "",
2789     "x": 3482.500015258789,
2790     "y": 1781.6005897521973,
2791     "z": "33eaf422.44290c",
2792     "wires": []
2793   },
2794   {
2795     "id": "f616545c.e692d8",
2796     "type": "switchNode",
2797     "name": "switch siteId",
2798     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].name == 'siteId'`\">\n",
2799     "comments": "",
2800     "outputs": 1,
2801     "x": 3141.4996185302734,
2802     "y": 1749.9998207092285,
2803     "z": "33eaf422.44290c",
2804     "wires": [
2805       [
2806         "3ef84487.f4b53c"
2807       ]
2808     ]
2809   },
2810   {
2811     "id": "3ef84487.f4b53c",
2812     "type": "outcomeTrue",
2813     "name": "true",
2814     "xml": "<outcome value='true'>\n",
2815     "comments": "",
2816     "outputs": 1,
2817     "x": 3292.499988555908,
2818     "y": 1749.0000038146973,
2819     "z": "33eaf422.44290c",
2820     "wires": [
2821       [
2822         "97d8673.5139598"
2823       ]
2824     ]
2825   },
2826   {
2827     "id": "97d8673.5139598",
2828     "type": "set",
2829     "name": "set prop.hub.siteId",
2830     "xml": "<set>\n<parameter name='prop.hub.siteId' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].value`' />\n",
2831     "comments": "",
2832     "x": 3464.4999961853027,
2833     "y": 1746.6005725860596,
2834     "z": "33eaf422.44290c",
2835     "wires": []
2836   },
2837   {
2838     "id": "927db1a6.0967b",
2839     "type": "switchNode",
2840     "name": "switch request-action",
2841     "xml": "<switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>\n",
2842     "comments": "",
2843     "outputs": 1,
2844     "x": 2619.9996948242188,
2845     "y": 2002.0004615783691,
2846     "z": "33eaf422.44290c",
2847     "wires": [
2848       [
2849         "1a118523.efe04b",
2850         "3baee628.49c52a"
2851       ]
2852     ]
2853   },
2854   {
2855     "id": "1a118523.efe04b",
2856     "type": "outcome",
2857     "name": "ActivateSDWANAttachmentInstance",
2858     "xml": "<outcome value='ActivateSDWANAttachmentInstance'>",
2859     "comments": "",
2860     "outputs": 1,
2861     "x": 2886.0271530151367,
2862     "y": 1971.0314779281616,
2863     "z": "33eaf422.44290c",
2864     "wires": [
2865       [
2866         "78365f62.f88ae"
2867       ]
2868     ]
2869   },
2870   {
2871     "id": "d881cca6.da522",
2872     "type": "execute",
2873     "name": "execute RestApiCallNode underlay route",
2874     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-underlay.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/routing-protocol/static'`\" />\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=\"underlayHubResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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`\" />",
2875     "comments": "",
2876     "outputs": 1,
2877     "x": 3480.4997940063477,
2878     "y": 1892.000228881836,
2879     "z": "33eaf422.44290c",
2880     "wires": [
2881       [
2882         "e1ec68ab.cefaf8",
2883         "62d40a0d.8230b4"
2884       ]
2885     ]
2886   },
2887   {
2888     "id": "62d40a0d.8230b4",
2889     "type": "success",
2890     "name": "success",
2891     "xml": "<outcome value='success'>\n",
2892     "comments": "",
2893     "outputs": 1,
2894     "x": 3721.499927520752,
2895     "y": 1879.0002145767212,
2896     "z": "33eaf422.44290c",
2897     "wires": [
2898       []
2899     ]
2900   },
2901   {
2902     "id": "e1ec68ab.cefaf8",
2903     "type": "failure",
2904     "name": "failure",
2905     "xml": "<outcome value='failure'>\n",
2906     "comments": "",
2907     "outputs": 1,
2908     "x": 3719.4996070861816,
2909     "y": 1835.000205039978,
2910     "z": "33eaf422.44290c",
2911     "wires": [
2912       [
2913         "93f8ad33.2f9f3"
2914       ]
2915     ]
2916   },
2917   {
2918     "id": "93f8ad33.2f9f3",
2919     "type": "returnFailure",
2920     "name": "return failure",
2921     "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 sdwan hub route underlay rest api\" />\n",
2922     "comments": "",
2923     "x": 3861.5002937316895,
2924     "y": 1833.0002880096436,
2925     "z": "33eaf422.44290c",
2926     "wires": []
2927   },
2928   {
2929     "id": "2cb0acf9.dc8014",
2930     "type": "set",
2931     "name": "Add prop.hub.route",
2932     "xml": "<set>\n<parameter name='prop.route.vpnId' value='`$prop.vpnId`' />\n<parameter name='prop.route.siteId' value='`$prop.hub.siteId`' />\n<parameter name='prop.route.deviceId' value='`$prop.hub.deviceId`' />\n<parameter name='prop.route.providerIpAddress' value='`$prop.hub.providerIpAddress`' />\n<parameter name='prop.route.wanportId' value='`$prop.spoke.wanportId`' />\n<parameter name='prop.route.ipAddress' value='`$prop.hub.ipAddress`' />\n\n\n",
2933     "comments": "",
2934     "x": 3411.8334980010986,
2935     "y": 1855.6669273376465,
2936     "z": "33eaf422.44290c",
2937     "wires": []
2938   },
2939   {
2940     "id": "a3cb5620.778698",
2941     "type": "execute",
2942     "name": "execute RestApiCallNode underlay route",
2943     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-underlay.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/routing-protocol/static'`\" />\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=\"underlayspokeResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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`\" />",
2944     "comments": "",
2945     "outputs": 1,
2946     "x": 3486.8334980010986,
2947     "y": 1997.6673924922943,
2948     "z": "33eaf422.44290c",
2949     "wires": [
2950       [
2951         "da8f9dd5.0d7f2",
2952         "54a9a5c9.a84bec"
2953       ]
2954     ]
2955   },
2956   {
2957     "id": "54a9a5c9.a84bec",
2958     "type": "success",
2959     "name": "success",
2960     "xml": "<outcome value='success'>\n",
2961     "comments": "",
2962     "outputs": 1,
2963     "x": 3732.833745956421,
2964     "y": 1991.6674008369446,
2965     "z": "33eaf422.44290c",
2966     "wires": [
2967       []
2968     ]
2969   },
2970   {
2971     "id": "da8f9dd5.0d7f2",
2972     "type": "failure",
2973     "name": "failure",
2974     "xml": "<outcome value='failure'>\n",
2975     "comments": "",
2976     "outputs": 1,
2977     "x": 3730.8334255218506,
2978     "y": 1947.6673913002014,
2979     "z": "33eaf422.44290c",
2980     "wires": [
2981       [
2982         "405d037f.766c0c"
2983       ]
2984     ]
2985   },
2986   {
2987     "id": "405d037f.766c0c",
2988     "type": "returnFailure",
2989     "name": "return failure",
2990     "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 sdwan spoke route underlay rest api\" />\n",
2991     "comments": "",
2992     "x": 3872.8341121673584,
2993     "y": 1945.667474269867,
2994     "z": "33eaf422.44290c",
2995     "wires": []
2996   },
2997   {
2998     "id": "cf64a525.59cc78",
2999     "type": "set",
3000     "name": "Add prop.spoke.route",
3001     "xml": "<set>\n<parameter name='prop.route.vpnId' value='`$prop.vpnId`' />\n<parameter name='prop.route.siteId' value='`$prop.spoke.siteId`' />\n<parameter name='prop.route.deviceId' value='`$prop.spoke.deviceId`' />\n<parameter name='prop.route.providerIpAddress' value='`$prop.spoke.providerIpAddress`' />\n<parameter name='prop.route.wanportId' value='`$prop.hub.wanportId`' />\n<parameter name='prop.route.ipAddress' value='`$prop.spoke.ipAddress`' />\n\n\n",
3002     "comments": "",
3003     "x": 3421.6975135803223,
3004     "y": 1966.364153623581,
3005     "z": "33eaf422.44290c",
3006     "wires": []
3007   },
3008   {
3009     "id": "986185e9.8eec08",
3010     "type": "set",
3011     "name": "set route Id's in site parameters",
3012     "xml": "<set>\n<parameter name='mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].name' value='hubRouteId' />\n<parameter name='mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$underlayHubResp[0].id`' />\n<parameter name='mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1].name' value='spokeRouteId' />\n<parameter name='mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1].value' value='`$underlayspokeResp[0].id`' />\n<parameter name='mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 2`' />\n\n\n\n\n",
3013     "comments": "",
3014     "x": 3446.6644744873047,
3015     "y": 2054.0307354927063,
3016     "z": "33eaf422.44290c",
3017     "wires": []
3018   },
3019   {
3020     "id": "78365f62.f88ae",
3021     "type": "block",
3022     "name": "block atomic",
3023     "xml": "<block atomic=\"true\">\n",
3024     "atomic": "false",
3025     "comments": "",
3026     "outputs": 1,
3027     "x": 3121.999671936035,
3028     "y": 1968.4999113082886,
3029     "z": "33eaf422.44290c",
3030     "wires": [
3031       [
3032         "2cb0acf9.dc8014",
3033         "cf64a525.59cc78",
3034         "986185e9.8eec08",
3035         "a3cb5620.778698",
3036         "d881cca6.da522"
3037       ]
3038     ]
3039   },
3040   {
3041     "id": "105d9963.f193b7",
3042     "type": "block",
3043     "name": "block atomic",
3044     "xml": "<block atomic=\"true\">\n",
3045     "atomic": "false",
3046     "comments": "",
3047     "outputs": 1,
3048     "x": 3142.999668121338,
3049     "y": 2046.5001020431519,
3050     "z": "33eaf422.44290c",
3051     "wires": [
3052       [
3053         "f88633ef.4a895",
3054         "7ec8de50.abc7a",
3055         "e429ce4e.ff4d3",
3056         "9c47cd10.cba71"
3057       ]
3058     ]
3059   },
3060   {
3061     "id": "3baee628.49c52a",
3062     "type": "outcome",
3063     "name": "DeactivateSDWANAttachmentInstance",
3064     "xml": "<outcome value='DeactivateSDWANAttachmentInstance'>",
3065     "comments": "",
3066     "outputs": 1,
3067     "x": 2891.499725341797,
3068     "y": 2040.4999132156372,
3069     "z": "33eaf422.44290c",
3070     "wires": [
3071       [
3072         "105d9963.f193b7"
3073       ]
3074     ]
3075   },
3076   {
3077     "id": "9c607856.359088",
3078     "type": "set",
3079     "name": "Add sites to list and update length",
3080     "xml": "<set>\n<parameter name='prop.provision.siteIds[$prop.provision.siteIds_length].hubSiteName' value='`$prop.hub.siteName`' />\n<parameter name='prop.provision.siteIds[$prop.provision.siteIds_length].hubSiteId' value='`$prop.hub.siteId`' />\n<parameter name='prop.provision.siteIds[$prop.provision.siteIds_length].spokeSiteName' value='`$prop.spoke.siteName`' />\n<parameter name='prop.provision.siteIds[$prop.provision.siteIds_length].spokeSiteId' value='`$prop.spoke.siteId`' />\n<parameter name='prop.provision.siteIds_length' value='`$prop.provision.siteIds_length + 1`' />\n\n\n\n\n\n\n\n\n\n\n\n\n",
3081     "comments": "",
3082     "x": 2636.030891418457,
3083     "y": 2295.031482696533,
3084     "z": "33eaf422.44290c",
3085     "wires": []
3086   },
3087   {
3088     "id": "5323bc16.bbf554",
3089     "type": "comment",
3090     "name": "save hubsiteIds and spoke siteIds for provision",
3091     "info": "",
3092     "comments": "",
3093     "x": 2668.031265258789,
3094     "y": 2251.0313568115234,
3095     "z": "33eaf422.44290c",
3096     "wires": []
3097   },
3098   {
3099     "id": "b2aac804.e6f348",
3100     "type": "switchNode",
3101     "name": "switch name",
3102     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'name'`\">\n",
3103     "comments": "",
3104     "outputs": 1,
3105     "x": 3436.031005859375,
3106     "y": 475.03125,
3107     "z": "33eaf422.44290c",
3108     "wires": [
3109       [
3110         "2e9ab920.c2df16"
3111       ]
3112     ]
3113   },
3114   {
3115     "id": "2e9ab920.c2df16",
3116     "type": "outcomeTrue",
3117     "name": "true",
3118     "xml": "<outcome value='true'>\n",
3119     "comments": "",
3120     "outputs": 1,
3121     "x": 3636.0307807922363,
3122     "y": 475.0314121246338,
3123     "z": "33eaf422.44290c",
3124     "wires": [
3125       [
3126         "3bc80b86.299434"
3127       ]
3128     ]
3129   },
3130   {
3131     "id": "3bc80b86.299434",
3132     "type": "set",
3133     "name": "set prop.spoke.siteName",
3134     "xml": "<set>\n<parameter name='prop.spoke.siteName' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].value`' />\n",
3135     "comments": "",
3136     "x": 3824.0315856933594,
3137     "y": 473.63202571868896,
3138     "z": "33eaf422.44290c",
3139     "wires": []
3140   },
3141   {
3142     "id": "edcfc449.815b98",
3143     "type": "switchNode",
3144     "name": "switch name",
3145     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].name == 'name'`\">\n",
3146     "comments": "",
3147     "outputs": 1,
3148     "x": 3140.031005859375,
3149     "y": 1716.5311279296875,
3150     "z": "33eaf422.44290c",
3151     "wires": [
3152       [
3153         "47785d0f.321164"
3154       ]
3155     ]
3156   },
3157   {
3158     "id": "47785d0f.321164",
3159     "type": "outcomeTrue",
3160     "name": "true",
3161     "xml": "<outcome value='true'>\n",
3162     "comments": "",
3163     "outputs": 1,
3164     "x": 3291.0313758850098,
3165     "y": 1715.5313110351562,
3166     "z": "33eaf422.44290c",
3167     "wires": [
3168       [
3169         "36650635.dab3aa"
3170       ]
3171     ]
3172   },
3173   {
3174     "id": "36650635.dab3aa",
3175     "type": "set",
3176     "name": "set prop.hub.siteName",
3177     "xml": "<set>\n<parameter name='prop.hub.siteName' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].value`' />\n",
3178     "comments": "",
3179     "x": 3463.0313835144043,
3180     "y": 1713.1318798065186,
3181     "z": "33eaf422.44290c",
3182     "wires": []
3183   },
3184   {
3185     "id": "70ceaafc.e0d3f4",
3186     "type": "set",
3187     "name": "set prop.provision.siteIds_length=0",
3188     "xml": "<set>\n<parameter name='prop.provision.siteIds_length' value='0' />\n\n\n\n",
3189     "comments": "",
3190     "x": 461.03126525878906,
3191     "y": 361.0312547683716,
3192     "z": "33eaf422.44290c",
3193     "wires": []
3194   },
3195   {
3196     "id": "2ebcd1d4.0c3f8e",
3197     "type": "execute",
3198     "name": "execute RestApiCallNode site provision urls",
3199     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-site-provision.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/sites/provision-urls'`\" />\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=\"provisionUrlRsp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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`\" />",
3200     "comments": "",
3201     "outputs": 1,
3202     "x": 813.0312957763672,
3203     "y": 793.0314712524414,
3204     "z": "33eaf422.44290c",
3205     "wires": [
3206       [
3207         "ad0b5373.47c4b",
3208         "2423f336.bee55c"
3209       ]
3210     ]
3211   },
3212   {
3213     "id": "2423f336.bee55c",
3214     "type": "success",
3215     "name": "success",
3216     "xml": "<outcome value='success'>\n",
3217     "comments": "",
3218     "outputs": 1,
3219     "x": 1077.0315551757812,
3220     "y": 815.0315160751343,
3221     "z": "33eaf422.44290c",
3222     "wires": [
3223       []
3224     ]
3225   },
3226   {
3227     "id": "ad0b5373.47c4b",
3228     "type": "failure",
3229     "name": "failure",
3230     "xml": "<outcome value='failure'>\n",
3231     "comments": "",
3232     "outputs": 1,
3233     "x": 1078.0313415527344,
3234     "y": 772.0314540863037,
3235     "z": "33eaf422.44290c",
3236     "wires": [
3237       [
3238         "21440771.f9b178"
3239       ]
3240     ]
3241   },
3242   {
3243     "id": "21440771.f9b178",
3244     "type": "returnFailure",
3245     "name": "return failure",
3246     "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 provision url rest api\" />\n",
3247     "comments": "",
3248     "x": 1257.0318984985352,
3249     "y": 770.0315053462982,
3250     "z": "33eaf422.44290c",
3251     "wires": []
3252   },
3253   {
3254     "id": "c880f4e9.6d6098",
3255     "type": "for",
3256     "name": "for providx..prop.provision.siteIds[]",
3257     "xml": "<for index='providx' start='0' end='`$prop.provision.siteIds_length`' >\n",
3258     "comments": "",
3259     "outputs": 1,
3260     "x": 454.0312957763672,
3261     "y": 565.0312948226929,
3262     "z": "33eaf422.44290c",
3263     "wires": [
3264       [
3265         "6ab9e97f.2340e8"
3266       ]
3267     ]
3268   },
3269   {
3270     "id": "6ab9e97f.2340e8",
3271     "type": "block",
3272     "name": "block atmoic",
3273     "xml": "<block atomic=\"true\">\n",
3274     "atomic": "false",
3275     "comments": "",
3276     "outputs": 1,
3277     "x": 478.0313377380371,
3278     "y": 775.031268119812,
3279     "z": "33eaf422.44290c",
3280     "wires": [
3281       [
3282         "5392610f.9b85f",
3283         "2ebcd1d4.0c3f8e",
3284         "e83cbadb.6b3148"
3285       ]
3286     ]
3287   },
3288   {
3289     "id": "5392610f.9b85f",
3290     "type": "set",
3291     "name": "set prop.spoke.hubSiteId, spokeSiteId",
3292     "xml": "<set>\n<parameter name='prop.provision.hubSitename' value='`$prop.provision.siteIds[$providx].hubSiteName`' />\n<parameter name='prop.provision.spokeSitename' value='`$prop.provision.siteIds[$providx].spokeSiteName`' />\n<parameter name='prop.provision.hubspokesite[0]' value='`$prop.provision.siteIds[$providx].hubSiteId`' />\n<parameter name='prop.provision.hubspokesite[1]' value='`$prop.provision.siteIds[$providx].spokeSiteId`' />\n<parameter name='prop.provision.hubspokesite_length' value='2' />\n",
3293     "comments": "",
3294     "x": 789.0339965820312,
3295     "y": 651.6329832077026,
3296     "z": "33eaf422.44290c",
3297     "wires": []
3298   },
3299   {
3300     "id": "e83cbadb.6b3148",
3301     "type": "record",
3302     "name": "record provision url response to the file",
3303     "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"`'/opt/opendaylight/current/data/log/' + 'HUB-' + $prop.provision.hubSitename + '-SPOKE-' + $prop.provision.spokeSitename + '-provisionUrl'`\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value='`$provisionUrlRsp`'/>\n\n",
3304     "comments": "",
3305     "outputs": 1,
3306     "x": 785.0313720703125,
3307     "y": 887.0313358306885,
3308     "z": "33eaf422.44290c",
3309     "wires": [
3310       []
3311     ]
3312   },
3313   {
3314     "id": "1e03ba47.0fb3f6",
3315     "type": "block",
3316     "name": "block atmoic",
3317     "xml": "<block atomic=\"true\">\n",
3318     "atomic": "false",
3319     "comments": "",
3320     "outputs": 1,
3321     "x": 2527.031482696533,
3322     "y": 1042.0313262939453,
3323     "z": "33eaf422.44290c",
3324     "wires": [
3325       [
3326         "a525e63a.cc2b38"
3327       ]
3328     ]
3329   },
3330   {
3331     "id": "84a7b7df.1615b8",
3332     "type": "block",
3333     "name": "block atmoic",
3334     "xml": "<block atomic=\"true\">\n",
3335     "atomic": "false",
3336     "comments": "",
3337     "outputs": 1,
3338     "x": 2007.0311584472656,
3339     "y": 605.0313091278076,
3340     "z": "33eaf422.44290c",
3341     "wires": [
3342       [
3343         "c8ac708.b0a709",
3344         "b9ac21ad.456c9"
3345       ]
3346     ]
3347   },
3348   {
3349     "id": "8e2c0789.42db78",
3350     "type": "block",
3351     "name": "block atmoic",
3352     "xml": "<block atomic=\"true\">\n",
3353     "atomic": "false",
3354     "comments": "",
3355     "outputs": 1,
3356     "x": 2014.0312194824219,
3357     "y": 680.0311765670776,
3358     "z": "33eaf422.44290c",
3359     "wires": [
3360       [
3361         "5a69b1be.1055d",
3362         "e66f705e.b1887"
3363       ]
3364     ]
3365   }
3366 ]