Merge "self-serve DG for Casablanca"
[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": "8722df6b.da333",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 118,
8     "y": 57,
9     "z": "afa42c56.2fe06",
10     "wires": [
11       [
12         "5f0a72e7.8810fc"
13       ]
14     ]
15   },
16   {
17     "id": "5f0a72e7.8810fc",
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": 234.2856903076172,
26     "y": 108.23810768127441,
27     "z": "afa42c56.2fe06",
28     "wires": [
29       [
30         "a6501208.be07a"
31       ]
32     ]
33   },
34   {
35     "id": "a6501208.be07a",
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": 237.42861938476562,
42     "y": 193.00003147125244,
43     "z": "afa42c56.2fe06",
44     "wires": [
45       [
46         "fbe9ed1f.31b14"
47       ]
48     ]
49   },
50   {
51     "id": "fbe9ed1f.31b14",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 169.66668701171875,
58     "y": 301.66673278808594,
59     "z": "afa42c56.2fe06",
60     "wires": [
61       [
62         "ba308345.6a0be",
63         "723ddf07.218d1",
64         "431fc2f2.17609c",
65         "38f6b67d.380b9a",
66         "32bd7569.5de31a"
67       ]
68     ]
69   },
70   {
71     "id": "ba308345.6a0be",
72     "type": "for",
73     "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
74     "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
75     "comments": "",
76     "outputs": 1,
77     "x": 604.000431060791,
78     "y": 440.6668539047241,
79     "z": "afa42c56.2fe06",
80     "wires": [
81       [
82         "88f8bb94.113e88"
83       ]
84     ]
85   },
86   {
87     "id": "2cdd7d19.2083a2",
88     "type": "set",
89     "name": "set prop.ar.allotted-resource-id",
90     "xml": "<set>\n<parameter name='prop.ar.allotted-resource-id' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id`' />\n",
91     "comments": "",
92     "x": 1394.0013427734375,
93     "y": 129.9687786102295,
94     "z": "afa42c56.2fe06",
95     "wires": []
96   },
97   {
98     "id": "f2739d06.3f82a",
99     "type": "comment",
100     "name": "Query MDSAL for AR",
101     "info": "",
102     "comments": "",
103     "x": 1719.3340148925781,
104     "y": 153.96864795684814,
105     "z": "afa42c56.2fe06",
106     "wires": []
107   },
108   {
109     "id": "4600defb.d9dc1",
110     "type": "comment",
111     "name": "Query MDSAL to get parent service based on service instance id from AR",
112     "info": "",
113     "comments": "",
114     "x": 2189.334873199463,
115     "y": 172.96862697601318,
116     "z": "afa42c56.2fe06",
117     "wires": []
118   },
119   {
120     "id": "2398fd5d.dbac12",
121     "type": "success",
122     "name": "success",
123     "xml": "<outcome value='success'>\n",
124     "comments": "",
125     "outputs": 1,
126     "x": 1968.66841506958,
127     "y": 208.63526725769043,
128     "z": "afa42c56.2fe06",
129     "wires": [
130       [
131         "179e1db5.4a8f02"
132       ]
133     ]
134   },
135   {
136     "id": "179e1db5.4a8f02",
137     "type": "block",
138     "name": "block: atomic",
139     "xml": "<block atomic=\"true\">\n",
140     "atomic": "false",
141     "comments": "",
142     "outputs": 1,
143     "x": 2123.668254852295,
144     "y": 208.13510036468506,
145     "z": "afa42c56.2fe06",
146     "wires": [
147       [
148         "35d0f2e8.ed82ae"
149       ]
150     ]
151   },
152   {
153     "id": "f8dd83a.151c88",
154     "type": "other",
155     "name": "outcome 1",
156     "xml": "<outcome value='1'>\n",
157     "comments": "",
158     "outputs": 1,
159     "x": 2447.3587913513184,
160     "y": 204.75424098968506,
161     "z": "afa42c56.2fe06",
162     "wires": [
163       [
164         "2218a177.4e456e"
165       ]
166     ]
167   },
168   {
169     "id": "7900e8ec.0ba228",
170     "type": "returnFailure",
171     "name": "return failure",
172     "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",
173     "comments": "",
174     "x": 2593.1275672912598,
175     "y": 244.20122909545898,
176     "z": "afa42c56.2fe06",
177     "wires": []
178   },
179   {
180     "id": "7edde1df.f81a4",
181     "type": "other",
182     "name": "other",
183     "xml": "<outcome value='Other'>\n",
184     "comments": "",
185     "outputs": 1,
186     "x": 1961.5201416015625,
187     "y": 255.70127391815186,
188     "z": "afa42c56.2fe06",
189     "wires": [
190       [
191         "ae127aa8.bf8958"
192       ]
193     ]
194   },
195   {
196     "id": "ae127aa8.bf8958",
197     "type": "block",
198     "name": "block: atomic",
199     "xml": "<block atomic=\"true\">\n",
200     "atomic": "false",
201     "comments": "",
202     "outputs": 1,
203     "x": 2111.5199851989746,
204     "y": 256.36782932281494,
205     "z": "afa42c56.2fe06",
206     "wires": [
207       [
208         "c86b6674.f9da58"
209       ]
210     ]
211   },
212   {
213     "id": "735fee8b.f10fd",
214     "type": "other",
215     "name": "other",
216     "xml": "<outcome value='Other'>\n",
217     "comments": "",
218     "outputs": 1,
219     "x": 2435.6867446899414,
220     "y": 242.03460121154785,
221     "z": "afa42c56.2fe06",
222     "wires": [
223       [
224         "7900e8ec.0ba228"
225       ]
226     ]
227   },
228   {
229     "id": "35d0f2e8.ed82ae",
230     "type": "switchNode",
231     "name": "switch cr length",
232     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
233     "comments": "",
234     "outputs": 1,
235     "x": 2287.668430328369,
236     "y": 208.6352834701538,
237     "z": "afa42c56.2fe06",
238     "wires": [
239       [
240         "f8dd83a.151c88",
241         "735fee8b.f10fd"
242       ]
243     ]
244   },
245   {
246     "id": "99f51e24.95bbd",
247     "type": "set",
248     "name": "set parent-service-instance-id",
249     "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",
250     "comments": "",
251     "x": 2843.0020294189453,
252     "y": 205.63526439666748,
253     "z": "afa42c56.2fe06",
254     "wires": []
255   },
256   {
257     "id": "2218a177.4e456e",
258     "type": "block",
259     "name": "block: atomic",
260     "xml": "<block atomic='true'>\n",
261     "atomic": "false",
262     "comments": "",
263     "outputs": 1,
264     "x": 2597.4778213500977,
265     "y": 204.80180072784424,
266     "z": "afa42c56.2fe06",
267     "wires": [
268       [
269         "99f51e24.95bbd",
270         "87284033.76d89"
271       ]
272     ]
273   },
274   {
275     "id": "c86b6674.f9da58",
276     "type": "returnFailure",
277     "name": "return failure",
278     "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",
279     "comments": "",
280     "x": 2279.001438140869,
281     "y": 254.63520526885986,
282     "z": "afa42c56.2fe06",
283     "wires": []
284   },
285   {
286     "id": "3ba72ba0.13a9f4",
287     "type": "success",
288     "name": "success",
289     "xml": "<outcome value='success'>\n",
290     "comments": "",
291     "outputs": 1,
292     "x": 2066.303554534912,
293     "y": 526.7709312438965,
294     "z": "afa42c56.2fe06",
295     "wires": [
296       [
297         "3c18f953.7698e6"
298       ]
299     ]
300   },
301   {
302     "id": "b947c854.e35438",
303     "type": "other",
304     "name": "other",
305     "xml": "<outcome value='Other'>\n",
306     "comments": "",
307     "outputs": 1,
308     "x": 2058.15535736084,
309     "y": 561.8370161056519,
310     "z": "afa42c56.2fe06",
311     "wires": [
312       [
313         "5f7ffb48.00ef54"
314       ]
315     ]
316   },
317   {
318     "id": "5f7ffb48.00ef54",
319     "type": "returnFailure",
320     "name": "return failure",
321     "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",
322     "comments": "",
323     "x": 2204.304130554199,
324     "y": 562.1045122146606,
325     "z": "afa42c56.2fe06",
326     "wires": []
327   },
328   {
329     "id": "3c18f953.7698e6",
330     "type": "block",
331     "name": "block",
332     "xml": "<block>\n",
333     "atomic": "false",
334     "comments": "",
335     "outputs": 1,
336     "x": 2186.3038024902344,
337     "y": 526.771014213562,
338     "z": "afa42c56.2fe06",
339     "wires": [
340       []
341     ]
342   },
343   {
344     "id": "9ef76182.7b173",
345     "type": "for",
346     "name": "for pnidx.. mdsal-psd.networks.network_length[]",
347     "xml": "<for index='pnidx' start='0' end='`$mdsal-psd.service-data.networks.network_length`' >\n",
348     "comments": "",
349     "outputs": 1,
350     "x": 1749.6683502197266,
351     "y": 626.3028893470764,
352     "z": "afa42c56.2fe06",
353     "wires": [
354       [
355         "e38b67ea.4c8758"
356       ]
357     ]
358   },
359   {
360     "id": "348ba1e1.19e85e",
361     "type": "switchNode",
362     "name": "switch ActivateSDWANConnectivityInstance",
363     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$pnidx].network-data.request-information.request-action == 'ActivateSDWANConnectivityInstance'`\">\n    \n    \n\n",
364     "comments": "",
365     "outputs": 1,
366     "x": 2279.3349838256836,
367     "y": 595.3028907775879,
368     "z": "afa42c56.2fe06",
369     "wires": [
370       [
371         "27c81bce.91e324"
372       ]
373     ]
374   },
375   {
376     "id": "27c81bce.91e324",
377     "type": "outcomeTrue",
378     "name": "true",
379     "xml": "<outcome value='true'>\n",
380     "comments": "",
381     "outputs": 1,
382     "x": 2531.334518432617,
383     "y": 596.3028283119202,
384     "z": "afa42c56.2fe06",
385     "wires": [
386       [
387         "917509ae.cf1bf8"
388       ]
389     ]
390   },
391   {
392     "id": "917509ae.cf1bf8",
393     "type": "set",
394     "name": "set tmp.pnidx ",
395     "xml": "<set>\n<parameter name='tmp.pnidx' value='`$pnidx`' />\n\n",
396     "comments": "",
397     "x": 2687.3342056274414,
398     "y": 596.3028283119202,
399     "z": "afa42c56.2fe06",
400     "wires": []
401   },
402   {
403     "id": "1fd45985.393f26",
404     "type": "for",
405     "name": "for loop paramidx - Get topology from servicedata",
406     "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",
407     "comments": "",
408     "outputs": 1,
409     "x": 1681.3351593017578,
410     "y": 711.3025188446045,
411     "z": "afa42c56.2fe06",
412     "wires": [
413       [
414         "4ebf01e5.37d06"
415       ]
416     ]
417   },
418   {
419     "id": "8d7971fd.c23e3",
420     "type": "switchNode",
421     "name": "switch topology",
422     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$tmp.pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'topology'`\">\n",
423     "comments": "",
424     "outputs": 1,
425     "x": 2133.335250854492,
426     "y": 690.3024244308472,
427     "z": "afa42c56.2fe06",
428     "wires": [
429       [
430         "e336f6e8.a1adc8"
431       ]
432     ]
433   },
434   {
435     "id": "e336f6e8.a1adc8",
436     "type": "outcomeTrue",
437     "name": "true",
438     "xml": "<outcome value='true'>\n",
439     "comments": "",
440     "outputs": 1,
441     "x": 2284.335262298584,
442     "y": 688.3024663925171,
443     "z": "afa42c56.2fe06",
444     "wires": [
445       [
446         "f2813d3e.d5ec3"
447       ]
448     ]
449   },
450   {
451     "id": "f2813d3e.d5ec3",
452     "type": "set",
453     "name": "set topology",
454     "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",
455     "comments": "",
456     "x": 2425.334991455078,
457     "y": 687.9024000167847,
458     "z": "afa42c56.2fe06",
459     "wires": []
460   },
461   {
462     "id": "4a7f65c3.11a50c",
463     "type": "switchNode",
464     "name": "switch tmp.pnidx ",
465     "xml": "<switch test=\"`$tmp.pnidx`\">\n\n",
466     "comments": "",
467     "outputs": 1,
468     "x": 1652.334976196289,
469     "y": 670.9690914154053,
470     "z": "afa42c56.2fe06",
471     "wires": [
472       [
473         "42c35e07.6414a"
474       ]
475     ]
476   },
477   {
478     "id": "42c35e07.6414a",
479     "type": "outcome",
480     "name": "NULL",
481     "xml": "<outcome value=''>\n",
482     "comments": "",
483     "outputs": 1,
484     "x": 1807.7636489868164,
485     "y": 669.5404710769653,
486     "z": "afa42c56.2fe06",
487     "wires": [
488       [
489         "79c31704.e1ea48"
490       ]
491     ]
492   },
493   {
494     "id": "79c31704.e1ea48",
495     "type": "returnFailure",
496     "name": "return failure",
497     "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",
498     "comments": "",
499     "x": 1948.1922721862793,
500     "y": 670.6835603713989,
501     "z": "afa42c56.2fe06",
502     "wires": []
503   },
504   {
505     "id": "d058b4fc.a3d908",
506     "type": "switchNode",
507     "name": "switch topology hub-spoke",
508     "xml": "<switch test=\"`$prop.topology == 'hub-spoke'`\">\n",
509     "comments": "",
510     "outputs": 1,
511     "x": 1560.3348426818848,
512     "y": 773.3023405075073,
513     "z": "afa42c56.2fe06",
514     "wires": [
515       [
516         "80132a76.17bcc8",
517         "f4211b87.94b798"
518       ]
519     ]
520   },
521   {
522     "id": "80132a76.17bcc8",
523     "type": "outcomeTrue",
524     "name": "true",
525     "xml": "<outcome value='true'>\n",
526     "comments": "",
527     "outputs": 1,
528     "x": 1750.334529876709,
529     "y": 798.3028259277344,
530     "z": "afa42c56.2fe06",
531     "wires": [
532       [
533         "7df004fc.b974bc"
534       ]
535     ]
536   },
537   {
538     "id": "f4211b87.94b798",
539     "type": "outcomeTrue",
540     "name": "false",
541     "xml": "<outcome value='false'>\n",
542     "comments": "",
543     "outputs": 1,
544     "x": 1744.3354568481445,
545     "y": 759.3024883270264,
546     "z": "afa42c56.2fe06",
547     "wires": [
548       [
549         "f043ab05.abcb68"
550       ]
551     ]
552   },
553   {
554     "id": "f043ab05.abcb68",
555     "type": "block",
556     "name": "block",
557     "xml": "<block>\n",
558     "atomic": "false",
559     "comments": "",
560     "outputs": 1,
561     "x": 1880.3354606628418,
562     "y": 759.3024272918701,
563     "z": "afa42c56.2fe06",
564     "wires": [
565       []
566     ]
567   },
568   {
569     "id": "7df004fc.b974bc",
570     "type": "block",
571     "name": "block: atomic",
572     "xml": "<block atomic=\"true\">\n",
573     "atomic": "false",
574     "comments": "",
575     "outputs": 1,
576     "x": 1755.66748046875,
577     "y": 866.3020601272583,
578     "z": "afa42c56.2fe06",
579     "wires": [
580       [
581         "f2cfe93e.7237b8"
582       ]
583     ]
584   },
585   {
586     "id": "f2cfe93e.7237b8",
587     "type": "for",
588     "name": "for ppidx.. mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
589     "xml": "<for index='ppidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
590     "comments": "",
591     "outputs": 1,
592     "x": 2163.000732421875,
593     "y": 866.6356782913208,
594     "z": "afa42c56.2fe06",
595     "wires": [
596       [
597         "de6797a2.586c78"
598       ]
599     ]
600   },
601   {
602     "id": "ffb0cb19.6bd078",
603     "type": "set",
604     "name": "set prop.ar.provided-allotted-resource-id",
605     "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",
606     "comments": "",
607     "x": 2254.0018463134766,
608     "y": 944.6359763145447,
609     "z": "afa42c56.2fe06",
610     "wires": []
611   },
612   {
613     "id": "7d29151f.aff58c",
614     "type": "for",
615     "name": "for loop aridx - Get role from allotted resource",
616     "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",
617     "comments": "",
618     "outputs": 1,
619     "x": 2272.0025482177734,
620     "y": 1055.302767753601,
621     "z": "afa42c56.2fe06",
622     "wires": [
623       [
624         "99b001da.0efb4"
625       ]
626     ]
627   },
628   {
629     "id": "175772d7.f9d53d",
630     "type": "switchNode",
631     "name": "switch Role",
632     "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",
633     "comments": "",
634     "outputs": 1,
635     "x": 2681.002658843994,
636     "y": 1058.3028545379639,
637     "z": "afa42c56.2fe06",
638     "wires": [
639       [
640         "d13f62a9.a25bd"
641       ]
642     ]
643   },
644   {
645     "id": "d13f62a9.a25bd",
646     "type": "outcomeTrue",
647     "name": "true",
648     "xml": "<outcome value='true'>\n",
649     "comments": "",
650     "outputs": 1,
651     "x": 2822.0029907226562,
652     "y": 1057.3028535842896,
653     "z": "afa42c56.2fe06",
654     "wires": [
655       [
656         "63261a78.0b6344"
657       ]
658     ]
659   },
660   {
661     "id": "63261a78.0b6344",
662     "type": "set",
663     "name": "set prop.role",
664     "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",
665     "comments": "",
666     "x": 2963.0030250549316,
667     "y": 1058.9027452468872,
668     "z": "afa42c56.2fe06",
669     "wires": []
670   },
671   {
672     "id": "63613798.d70908",
673     "type": "success",
674     "name": "success",
675     "xml": "<outcome value='success'>\n",
676     "comments": "",
677     "outputs": 1,
678     "x": 2758.0020446777344,
679     "y": 961.969269990921,
680     "z": "afa42c56.2fe06",
681     "wires": [
682       [
683         "18ba51e1.01a3be"
684       ]
685     ]
686   },
687   {
688     "id": "9fe7ff8.35548",
689     "type": "other",
690     "name": "other",
691     "xml": "<outcome value='Other'>\n",
692     "comments": "",
693     "outputs": 1,
694     "x": 2754.8537673950195,
695     "y": 1016.0353531837463,
696     "z": "afa42c56.2fe06",
697     "wires": [
698       [
699         "2fd2f3c1.09b97c"
700       ]
701     ]
702   },
703   {
704     "id": "8ad9ee53.6aa87",
705     "type": "switchNode",
706     "name": "switch role hub",
707     "xml": "<switch test=\"`$prop.role == hub`\">\n",
708     "comments": "",
709     "outputs": 1,
710     "x": 2138.3351821899414,
711     "y": 1120.6358079910278,
712     "z": "afa42c56.2fe06",
713     "wires": [
714       [
715         "6011fd41.335614",
716         "472beb8.34ca814"
717       ]
718     ]
719   },
720   {
721     "id": "890f782e.076f68",
722     "type": "block",
723     "name": "block",
724     "xml": "<block>\n",
725     "atomic": "false",
726     "comments": "",
727     "outputs": 1,
728     "x": 2454.3345680236816,
729     "y": 1096.6354112625122,
730     "z": "afa42c56.2fe06",
731     "wires": [
732       []
733     ]
734   },
735   {
736     "id": "aa2b8cd4.2f9ae",
737     "type": "success",
738     "name": "success",
739     "xml": "<outcome value='success'>\n",
740     "comments": "",
741     "outputs": 1,
742     "x": 2864.3042030334473,
743     "y": 1192.1045179367065,
744     "z": "afa42c56.2fe06",
745     "wires": [
746       [
747         "4765f05a.45c5e"
748       ]
749     ]
750   },
751   {
752     "id": "1bed61f6.90e36e",
753     "type": "other",
754     "name": "other",
755     "xml": "<outcome value='Other'>\n",
756     "comments": "",
757     "outputs": 1,
758     "x": 2866.155773162842,
759     "y": 1252.170599937439,
760     "z": "afa42c56.2fe06",
761     "wires": [
762       [
763         "151f6728.afe339"
764       ]
765     ]
766   },
767   {
768     "id": "151f6728.afe339",
769     "type": "returnFailure",
770     "name": "return failure",
771     "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",
772     "comments": "",
773     "x": 3010.304546356201,
774     "y": 1214.4380140304565,
775     "z": "afa42c56.2fe06",
776     "wires": []
777   },
778   {
779     "id": "4765f05a.45c5e",
780     "type": "block",
781     "name": "block",
782     "xml": "<block>\n",
783     "atomic": "false",
784     "comments": "",
785     "outputs": 1,
786     "x": 2994.3042221069336,
787     "y": 1181.1046781539917,
788     "z": "afa42c56.2fe06",
789     "wires": [
790       []
791     ]
792   },
793   {
794     "id": "f7f9e60d.d46178",
795     "type": "set",
796     "name": "set prop.ar-service-instance-id",
797     "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",
798     "comments": "",
799     "x": 2466.3356018066406,
800     "y": 1180.6360107660294,
801     "z": "afa42c56.2fe06",
802     "wires": []
803   },
804   {
805     "id": "f464743.4983e88",
806     "type": "for",
807     "name": "for arvidx.. mdsal-arsd.service-data.vnfs.vnf_length[]",
808     "xml": "<for index='arvidx' start='0' end='`$mdsal-arsd.service-data.vnfs.vnf_length`' >\n",
809     "comments": "",
810     "outputs": 1,
811     "x": 2510.0020751953125,
812     "y": 1302.6358003616333,
813     "z": "afa42c56.2fe06",
814     "wires": [
815       [
816         "535fb492.abce2c"
817       ]
818     ]
819   },
820   {
821     "id": "535fb492.abce2c",
822     "type": "block",
823     "name": "block atmoic",
824     "xml": "<block atomic=\"true\">\n",
825     "atomic": "false",
826     "comments": "",
827     "outputs": 1,
828     "x": 2856.6683959960938,
829     "y": 1292.6357765197754,
830     "z": "afa42c56.2fe06",
831     "wires": [
832       [
833         "b26020e0.3a846",
834         "5e2a4404.59208c",
835         "858743af.15464"
836       ]
837     ]
838   },
839   {
840     "id": "b26020e0.3a846",
841     "type": "switchNode",
842     "name": "switch ActivateSDWANPortInstance",
843     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSDWANPortInstance'`\">\n    \n\n",
844     "comments": "",
845     "outputs": 1,
846     "x": 3118.668504714966,
847     "y": 1263.6367359161377,
848     "z": "afa42c56.2fe06",
849     "wires": [
850       [
851         "6b78409.f5b87c"
852       ]
853     ]
854   },
855   {
856     "id": "dde2f6f9.3c1848",
857     "type": "switchNode",
858     "name": "switch tmp.portvidx ",
859     "xml": "<switch test=\"`$tmp.portvidx`\">\n\n",
860     "comments": "",
861     "outputs": 1,
862     "x": 2591.668212890625,
863     "y": 1347.3024454116821,
864     "z": "afa42c56.2fe06",
865     "wires": [
866       [
867         "58f23c0f.4a7544"
868       ]
869     ]
870   },
871   {
872     "id": "3d280456.864e3c",
873     "type": "for",
874     "name": "for loop wportidx - Get wan port ID from servicedata",
875     "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",
876     "comments": "",
877     "outputs": 1,
878     "x": 2516.6688232421875,
879     "y": 1502.6367044448853,
880     "z": "afa42c56.2fe06",
881     "wires": [
882       [
883         "3b6a88cf.f649b8"
884       ]
885     ]
886   },
887   {
888     "id": "58f23c0f.4a7544",
889     "type": "outcome",
890     "name": "NULL",
891     "xml": "<outcome value=''>\n",
892     "comments": "",
893     "outputs": 1,
894     "x": 2752.0966777801514,
895     "y": 1346.8739652633667,
896     "z": "afa42c56.2fe06",
897     "wires": [
898       [
899         "6637a392.65819c"
900       ]
901     ]
902   },
903   {
904     "id": "6637a392.65819c",
905     "type": "returnFailure",
906     "name": "return failure",
907     "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",
908     "comments": "",
909     "x": 2889.525634765625,
910     "y": 1347.0173768997192,
911     "z": "afa42c56.2fe06",
912     "wires": []
913   },
914   {
915     "id": "6b78409.f5b87c",
916     "type": "outcomeTrue",
917     "name": "true",
918     "xml": "<outcome value='true'>\n",
919     "comments": "",
920     "outputs": 1,
921     "x": 3346.66819190979,
922     "y": 1261.636736869812,
923     "z": "afa42c56.2fe06",
924     "wires": [
925       [
926         "11f23b34.c014d5"
927       ]
928     ]
929   },
930   {
931     "id": "3b6a88cf.f649b8",
932     "type": "block",
933     "name": "block atomic",
934     "xml": "<block atomic=\"true\">\n",
935     "atomic": "false",
936     "comments": "",
937     "outputs": 1,
938     "x": 2859.669807434082,
939     "y": 1505.6369543075562,
940     "z": "afa42c56.2fe06",
941     "wires": [
942       [
943         "9eb62557.123aa8",
944         "6f944994.65d2c8",
945         "b81eb9e0.1976f8",
946         "3235095c.ee2c06"
947       ]
948     ]
949   },
950   {
951     "id": "9eb62557.123aa8",
952     "type": "switchNode",
953     "name": "switch transportNetworkName",
954     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'transportNetworkName'`\">\n",
955     "comments": "",
956     "outputs": 1,
957     "x": 3154.670757293701,
958     "y": 1444.6374912261963,
959     "z": "afa42c56.2fe06",
960     "wires": [
961       [
962         "a7e30f58.58c4"
963       ]
964     ]
965   },
966   {
967     "id": "11f23b34.c014d5",
968     "type": "set",
969     "name": "set tmp.portvidx ",
970     "xml": "<set>\n<parameter name='tmp.portvidx' value='`$arvidx`' />\n\n",
971     "comments": "",
972     "x": 3501.667875289917,
973     "y": 1261.6367359161377,
974     "z": "afa42c56.2fe06",
975     "wires": []
976   },
977   {
978     "id": "a7e30f58.58c4",
979     "type": "outcomeTrue",
980     "name": "true",
981     "xml": "<outcome value='true'>\n",
982     "comments": "",
983     "outputs": 1,
984     "x": 3347.6707725524902,
985     "y": 1444.63765335083,
986     "z": "afa42c56.2fe06",
987     "wires": [
988       [
989         "9cf2c3d4.0b4b5"
990       ]
991     ]
992   },
993   {
994     "id": "9cf2c3d4.0b4b5",
995     "type": "set",
996     "name": "set prop.hub.transportNetworkName",
997     "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",
998     "comments": "",
999     "x": 3565.6707801818848,
1000     "y": 1443.23823928833,
1001     "z": "afa42c56.2fe06",
1002     "wires": []
1003   },
1004   {
1005     "id": "6f944994.65d2c8",
1006     "type": "switchNode",
1007     "name": "switch wanPortId",
1008     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'wanPortId'`\">\n",
1009     "comments": "",
1010     "outputs": 1,
1011     "x": 3116.003490447998,
1012     "y": 1478.6371002197266,
1013     "z": "afa42c56.2fe06",
1014     "wires": [
1015       [
1016         "b31bd9b2.46c7d8"
1017       ]
1018     ]
1019   },
1020   {
1021     "id": "b31bd9b2.46c7d8",
1022     "type": "outcomeTrue",
1023     "name": "true",
1024     "xml": "<outcome value='true'>\n",
1025     "comments": "",
1026     "outputs": 1,
1027     "x": 3277.003818511963,
1028     "y": 1479.6371803283691,
1029     "z": "afa42c56.2fe06",
1030     "wires": [
1031       [
1032         "d3357919.f54078"
1033       ]
1034     ]
1035   },
1036   {
1037     "id": "d3357919.f54078",
1038     "type": "set",
1039     "name": "set prop.hub.wanPortId",
1040     "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",
1041     "comments": "",
1042     "x": 3467.004280090332,
1043     "y": 1479.2374563217163,
1044     "z": "afa42c56.2fe06",
1045     "wires": []
1046   },
1047   {
1048     "id": "2c43f3c.460060c",
1049     "type": "switchNode",
1050     "name": "switch  prop.hub.transportNetworkName==prop.spoke.transportNetworkName",
1051     "xml": "<switch test=\"`$prop.hub.transportNetworkName == $prop.spoke.transportNetworkName`\">\n",
1052     "comments": "",
1053     "outputs": 1,
1054     "x": 2594.004150390625,
1055     "y": 1605.304440498352,
1056     "z": "afa42c56.2fe06",
1057     "wires": [
1058       [
1059         "cf49239.d51bfe",
1060         "c6577e7a.d8dfd"
1061       ]
1062     ]
1063   },
1064   {
1065     "id": "cf49239.d51bfe",
1066     "type": "outcomeTrue",
1067     "name": "true",
1068     "xml": "<outcome value='true'>\n",
1069     "comments": "",
1070     "outputs": 1,
1071     "x": 2940.0036811828613,
1072     "y": 1642.3045144081116,
1073     "z": "afa42c56.2fe06",
1074     "wires": [
1075       [
1076         "c20a45c1.991ea8"
1077       ]
1078     ]
1079   },
1080   {
1081     "id": "c6577e7a.d8dfd",
1082     "type": "outcomeTrue",
1083     "name": "false",
1084     "xml": "<outcome value='false'>\n",
1085     "comments": "",
1086     "outputs": 1,
1087     "x": 2944.0041694641113,
1088     "y": 1577.3041467666626,
1089     "z": "afa42c56.2fe06",
1090     "wires": [
1091       [
1092         "7523e16b.4849a"
1093       ]
1094     ]
1095   },
1096   {
1097     "id": "7523e16b.4849a",
1098     "type": "block",
1099     "name": "block",
1100     "xml": "<block>\n",
1101     "atomic": "false",
1102     "comments": "",
1103     "outputs": 1,
1104     "x": 3084.0040969848633,
1105     "y": 1605.304271697998,
1106     "z": "afa42c56.2fe06",
1107     "wires": [
1108       []
1109     ]
1110   },
1111   {
1112     "id": "de6797a2.586c78",
1113     "type": "block",
1114     "name": "block atomic",
1115     "xml": "<block atomic=\"true\">\n",
1116     "atomic": "false",
1117     "comments": "",
1118     "outputs": 1,
1119     "x": 1905.0322265625,
1120     "y": 975.8333101272583,
1121     "z": "afa42c56.2fe06",
1122     "wires": [
1123       [
1124         "ffb0cb19.6bd078",
1125         "9b080888.c9b298",
1126         "1ff59188.ff36ae",
1127         "8ad9ee53.6aa87",
1128         "7d29151f.aff58c"
1129       ]
1130     ]
1131   },
1132   {
1133     "id": "524b783f.8c1128",
1134     "type": "switchNode",
1135     "name": "switch vpnId",
1136     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$tmp.pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'vpn-id'`\">\n",
1137     "comments": "",
1138     "outputs": 1,
1139     "x": 2123.001266479492,
1140     "y": 734.6354351043701,
1141     "z": "afa42c56.2fe06",
1142     "wires": [
1143       [
1144         "6c47f41b.3d3cac"
1145       ]
1146     ]
1147   },
1148   {
1149     "id": "6c47f41b.3d3cac",
1150     "type": "outcomeTrue",
1151     "name": "true",
1152     "xml": "<outcome value='true'>\n",
1153     "comments": "",
1154     "outputs": 1,
1155     "x": 2267.001277923584,
1156     "y": 734.6354761123657,
1157     "z": "afa42c56.2fe06",
1158     "wires": [
1159       [
1160         "9b1a7d07.58406"
1161       ]
1162     ]
1163   },
1164   {
1165     "id": "9b1a7d07.58406",
1166     "type": "set",
1167     "name": "set prop.vpnId",
1168     "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",
1169     "comments": "",
1170     "x": 2425.0009994506836,
1171     "y": 733.2354106903076,
1172     "z": "afa42c56.2fe06",
1173     "wires": []
1174   },
1175   {
1176     "id": "c93e7e34.eb504",
1177     "type": "set",
1178     "name": "Set prop.hubTnpId",
1179     "xml": "<set>\n<parameter name='prop.hubTnpId' value='$prop.hub.wanPortId' />\n\n",
1180     "comments": "",
1181     "x": 2631.336555480957,
1182     "y": 1731.6363048553467,
1183     "z": "afa42c56.2fe06",
1184     "wires": []
1185   },
1186   {
1187     "id": "33961398.8b885c",
1188     "type": "execute",
1189     "name": "execute RestApiCallNode underlay route",
1190     "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`\" />",
1191     "comments": "",
1192     "outputs": 1,
1193     "x": 3463.33624458313,
1194     "y": 2602.9708592891693,
1195     "z": "afa42c56.2fe06",
1196     "wires": [
1197       [
1198         "54355641.66e388",
1199         "a6852c79.79538"
1200       ]
1201     ]
1202   },
1203   {
1204     "id": "a6852c79.79538",
1205     "type": "success",
1206     "name": "success",
1207     "xml": "<outcome value='success'>\n",
1208     "comments": "",
1209     "outputs": 1,
1210     "x": 3730.3361530303955,
1211     "y": 2630.970888853073,
1212     "z": "afa42c56.2fe06",
1213     "wires": [
1214       []
1215     ]
1216   },
1217   {
1218     "id": "54355641.66e388",
1219     "type": "failure",
1220     "name": "failure",
1221     "xml": "<outcome value='failure'>\n",
1222     "comments": "",
1223     "outputs": 1,
1224     "x": 3728.335832595825,
1225     "y": 2586.97087931633,
1226     "z": "afa42c56.2fe06",
1227     "wires": [
1228       [
1229         "e784c17f.677b5"
1230       ]
1231     ]
1232   },
1233   {
1234     "id": "e784c17f.677b5",
1235     "type": "returnFailure",
1236     "name": "return failure",
1237     "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",
1238     "comments": "",
1239     "x": 3870.336519241333,
1240     "y": 2584.9709622859955,
1241     "z": "afa42c56.2fe06",
1242     "wires": []
1243   },
1244   {
1245     "id": "45a08ea1.9e3d3",
1246     "type": "set",
1247     "name": "Add prop.hub.route",
1248     "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",
1249     "comments": "",
1250     "x": 3407.6696243286133,
1251     "y": 2559.637367248535,
1252     "z": "afa42c56.2fe06",
1253     "wires": []
1254   },
1255   {
1256     "id": "5e2b5a00.fe4964",
1257     "type": "execute",
1258     "name": "execute RestApiCallNode underlay route",
1259     "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`\" />",
1260     "comments": "",
1261     "outputs": 1,
1262     "x": 3482.6696243286133,
1263     "y": 2701.637832403183,
1264     "z": "afa42c56.2fe06",
1265     "wires": [
1266       [
1267         "e568918e.3bed",
1268         "6ef02e4e.06cc1"
1269       ]
1270     ]
1271   },
1272   {
1273     "id": "6ef02e4e.06cc1",
1274     "type": "success",
1275     "name": "success",
1276     "xml": "<outcome value='success'>\n",
1277     "comments": "",
1278     "outputs": 1,
1279     "x": 3734.669771194458,
1280     "y": 2730.6381289958954,
1281     "z": "afa42c56.2fe06",
1282     "wires": [
1283       []
1284     ]
1285   },
1286   {
1287     "id": "e568918e.3bed",
1288     "type": "failure",
1289     "name": "failure",
1290     "xml": "<outcome value='failure'>\n",
1291     "comments": "",
1292     "outputs": 1,
1293     "x": 3732.6694507598877,
1294     "y": 2686.638119459152,
1295     "z": "afa42c56.2fe06",
1296     "wires": [
1297       [
1298         "43fb9f64.6e794"
1299       ]
1300     ]
1301   },
1302   {
1303     "id": "43fb9f64.6e794",
1304     "type": "returnFailure",
1305     "name": "return failure",
1306     "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",
1307     "comments": "",
1308     "x": 3874.6701374053955,
1309     "y": 2684.6382024288177,
1310     "z": "afa42c56.2fe06",
1311     "wires": []
1312   },
1313   {
1314     "id": "5e2a4404.59208c",
1315     "type": "switchNode",
1316     "name": "switch ActivateSDWANDeviceInstance",
1317     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n    \n    \n\n",
1318     "comments": "",
1319     "outputs": 1,
1320     "x": 3129.532081604004,
1321     "y": 1296.8336944580078,
1322     "z": "afa42c56.2fe06",
1323     "wires": [
1324       [
1325         "355d1cb7.8466e4"
1326       ]
1327     ]
1328   },
1329   {
1330     "id": "85c67b27.be5eb8",
1331     "type": "switchNode",
1332     "name": "switch tmp.devicevidx ",
1333     "xml": "<switch test=\"`$tmp.devicevidx`\">\n\n",
1334     "comments": "",
1335     "outputs": 1,
1336     "x": 2597.5316314697266,
1337     "y": 1389.4999265670776,
1338     "z": "afa42c56.2fe06",
1339     "wires": [
1340       [
1341         "188473e9.fdf33c"
1342       ]
1343     ]
1344   },
1345   {
1346     "id": "188473e9.fdf33c",
1347     "type": "outcome",
1348     "name": "NULL",
1349     "xml": "<outcome value=''>\n",
1350     "comments": "",
1351     "outputs": 1,
1352     "x": 2763.9600677490234,
1353     "y": 1389.0714597702026,
1354     "z": "afa42c56.2fe06",
1355     "wires": [
1356       [
1357         "ec42dab0.d633d8"
1358       ]
1359     ]
1360   },
1361   {
1362     "id": "ec42dab0.d633d8",
1363     "type": "returnFailure",
1364     "name": "return failure",
1365     "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",
1366     "comments": "",
1367     "x": 2904.388999938965,
1368     "y": 1391.2144346237183,
1369     "z": "afa42c56.2fe06",
1370     "wires": []
1371   },
1372   {
1373     "id": "355d1cb7.8466e4",
1374     "type": "outcomeTrue",
1375     "name": "true",
1376     "xml": "<outcome value='true'>\n",
1377     "comments": "",
1378     "outputs": 1,
1379     "x": 3357.531768798828,
1380     "y": 1294.8336954116821,
1381     "z": "afa42c56.2fe06",
1382     "wires": [
1383       [
1384         "73270e6c.070f4"
1385       ]
1386     ]
1387   },
1388   {
1389     "id": "73270e6c.070f4",
1390     "type": "set",
1391     "name": "set tmp.devicevidx ",
1392     "xml": "<set>\n<parameter name='tmp.devicevidx' value='`$arvidx`' />\n\n",
1393     "comments": "",
1394     "x": 3512.531452178955,
1395     "y": 1294.8336944580078,
1396     "z": "afa42c56.2fe06",
1397     "wires": []
1398   },
1399   {
1400     "id": "858743af.15464",
1401     "type": "switchNode",
1402     "name": "switch ActivateSiteInstance",
1403     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n    \n    \n\n",
1404     "comments": "",
1405     "outputs": 1,
1406     "x": 3092.5321521759033,
1407     "y": 1330.833758354187,
1408     "z": "afa42c56.2fe06",
1409     "wires": [
1410       [
1411         "f6939cb3.d0942"
1412       ]
1413     ]
1414   },
1415   {
1416     "id": "1e774611.be647a",
1417     "type": "switchNode",
1418     "name": "switch tmp.sitevidx ",
1419     "xml": "<switch test=\"`$tmp.sitevidx`\">\n\n",
1420     "comments": "",
1421     "outputs": 1,
1422     "x": 2596.5315017700195,
1423     "y": 1427.4998044967651,
1424     "z": "afa42c56.2fe06",
1425     "wires": [
1426       [
1427         "bc02814a.d7499"
1428       ]
1429     ]
1430   },
1431   {
1432     "id": "bc02814a.d7499",
1433     "type": "outcome",
1434     "name": "NULL",
1435     "xml": "<outcome value=''>\n",
1436     "comments": "",
1437     "outputs": 1,
1438     "x": 2756.959966659546,
1439     "y": 1427.0713243484497,
1440     "z": "afa42c56.2fe06",
1441     "wires": [
1442       [
1443         "d392366e.9150d8"
1444       ]
1445     ]
1446   },
1447   {
1448     "id": "d392366e.9150d8",
1449     "type": "returnFailure",
1450     "name": "return failure",
1451     "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",
1452     "comments": "",
1453     "x": 2905.388921737671,
1454     "y": 1429.2143306732178,
1455     "z": "afa42c56.2fe06",
1456     "wires": []
1457   },
1458   {
1459     "id": "f6939cb3.d0942",
1460     "type": "outcomeTrue",
1461     "name": "true",
1462     "xml": "<outcome value='true'>\n",
1463     "comments": "",
1464     "outputs": 1,
1465     "x": 3280.531717300415,
1466     "y": 1330.833924293518,
1467     "z": "afa42c56.2fe06",
1468     "wires": [
1469       [
1470         "ab570b08.b1c7a8"
1471       ]
1472     ]
1473   },
1474   {
1475     "id": "ab570b08.b1c7a8",
1476     "type": "set",
1477     "name": "set tmp.sitevidx ",
1478     "xml": "<set>\n<parameter name='tmp.sitevidx' value='`$arvidx`' />\n\n",
1479     "comments": "",
1480     "x": 3435.531400680542,
1481     "y": 1330.8339233398438,
1482     "z": "afa42c56.2fe06",
1483     "wires": []
1484   },
1485   {
1486     "id": "37339d04.d0e692",
1487     "type": "for",
1488     "name": "for loop deviceidx - Get wan port ID from servicedata",
1489     "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",
1490     "comments": "",
1491     "outputs": 1,
1492     "x": 2728.5331497192383,
1493     "y": 1767.834059715271,
1494     "z": "afa42c56.2fe06",
1495     "wires": [
1496       [
1497         "fc5d79c.538d088"
1498       ]
1499     ]
1500   },
1501   {
1502     "id": "29161345.19c04c",
1503     "type": "switchNode",
1504     "name": "switch deviceId",
1505     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.devicevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].name == 'deviceId'`\">\n",
1506     "comments": "",
1507     "outputs": 1,
1508     "x": 3189.5345039367676,
1509     "y": 1681.834927558899,
1510     "z": "afa42c56.2fe06",
1511     "wires": [
1512       [
1513         "cded98bd.ccea58"
1514       ]
1515     ]
1516   },
1517   {
1518     "id": "cded98bd.ccea58",
1519     "type": "outcomeTrue",
1520     "name": "true",
1521     "xml": "<outcome value='true'>\n",
1522     "comments": "",
1523     "outputs": 1,
1524     "x": 3340.5348777770996,
1525     "y": 1678.835171699524,
1526     "z": "afa42c56.2fe06",
1527     "wires": [
1528       [
1529         "d9cc984d.9f9d28"
1530       ]
1531     ]
1532   },
1533   {
1534     "id": "d9cc984d.9f9d28",
1535     "type": "set",
1536     "name": "set prop.hub.deviceId",
1537     "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",
1538     "comments": "",
1539     "x": 3515.535125732422,
1540     "y": 1678.4356966018677,
1541     "z": "afa42c56.2fe06",
1542     "wires": []
1543   },
1544   {
1545     "id": "125c1fec.50ea4",
1546     "type": "for",
1547     "name": "for loop siteidx - Get site ID from servicedata",
1548     "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",
1549     "comments": "",
1550     "outputs": 1,
1551     "x": 2703.0330352783203,
1552     "y": 1824.83407497406,
1553     "z": "afa42c56.2fe06",
1554     "wires": [
1555       [
1556         "d543abbf.21d958"
1557       ]
1558     ]
1559   },
1560   {
1561     "id": "e6b24865.170e78",
1562     "type": "comment",
1563     "name": "Add route src->dst, dst->src",
1564     "info": "",
1565     "comments": "",
1566     "x": 2919.6687927246094,
1567     "y": 1872.6359510421753,
1568     "z": "afa42c56.2fe06",
1569     "wires": []
1570   },
1571   {
1572     "id": "79cfeb5f.61b2e4",
1573     "type": "block",
1574     "name": "block atomic",
1575     "xml": "<block atomic=\"true\">\n",
1576     "atomic": "false",
1577     "comments": "",
1578     "outputs": 1,
1579     "x": 2141.334228515625,
1580     "y": 1252.968747138977,
1581     "z": "afa42c56.2fe06",
1582     "wires": [
1583       [
1584         "f464743.4983e88",
1585         "3d280456.864e3c",
1586         "2c43f3c.460060c",
1587         "18153066.3dcbc",
1588         "f7f9e60d.d46178",
1589         "a780d837.5bb548",
1590         "fcb5aaf7.a56738"
1591       ]
1592     ]
1593   },
1594   {
1595     "id": "18153066.3dcbc",
1596     "type": "block",
1597     "name": "block atmoic",
1598     "xml": "<block atomic=\"true\">\n",
1599     "atomic": "false",
1600     "comments": "",
1601     "outputs": 1,
1602     "x": 2396.333984375,
1603     "y": 1389.3021211624146,
1604     "z": "afa42c56.2fe06",
1605     "wires": [
1606       [
1607         "dde2f6f9.3c1848",
1608         "85c67b27.be5eb8",
1609         "1e774611.be647a"
1610       ]
1611     ]
1612   },
1613   {
1614     "id": "c20a45c1.991ea8",
1615     "type": "block",
1616     "name": "block atomic",
1617     "xml": "<block atomic=\"true\">\n",
1618     "atomic": "false",
1619     "comments": "",
1620     "outputs": 1,
1621     "x": 2416.3350219726562,
1622     "y": 1761.635643005371,
1623     "z": "afa42c56.2fe06",
1624     "wires": [
1625       [
1626         "c93e7e34.eb504",
1627         "37339d04.d0e692",
1628         "125c1fec.50ea4",
1629         "f1944c46.f8a7e"
1630       ]
1631     ]
1632   },
1633   {
1634     "id": "b81eb9e0.1976f8",
1635     "type": "switchNode",
1636     "name": "switch providerIpAddress",
1637     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'providerIpAddress'`\">\n",
1638     "comments": "",
1639     "outputs": 1,
1640     "x": 3137.5319747924805,
1641     "y": 1515.8334050178528,
1642     "z": "afa42c56.2fe06",
1643     "wires": [
1644       [
1645         "9a3783d0.0d525"
1646       ]
1647     ]
1648   },
1649   {
1650     "id": "9a3783d0.0d525",
1651     "type": "outcomeTrue",
1652     "name": "true",
1653     "xml": "<outcome value='true'>\n",
1654     "comments": "",
1655     "outputs": 1,
1656     "x": 3313.532958984375,
1657     "y": 1515.8335275650024,
1658     "z": "afa42c56.2fe06",
1659     "wires": [
1660       [
1661         "87437b42.24d3e8"
1662       ]
1663     ]
1664   },
1665   {
1666     "id": "87437b42.24d3e8",
1667     "type": "set",
1668     "name": "set prop.hub.providerIpAddress",
1669     "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",
1670     "comments": "",
1671     "x": 3515.5329971313477,
1672     "y": 1516.4334478378296,
1673     "z": "afa42c56.2fe06",
1674     "wires": []
1675   },
1676   {
1677     "id": "3235095c.ee2c06",
1678     "type": "switchNode",
1679     "name": "switch ipAddress",
1680     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'ipAddress'`\">\n",
1681     "comments": "",
1682     "outputs": 1,
1683     "x": 3110.0320568084717,
1684     "y": 1553.333490371704,
1685     "z": "afa42c56.2fe06",
1686     "wires": [
1687       [
1688         "901583b2.3d45c"
1689       ]
1690     ]
1691   },
1692   {
1693     "id": "901583b2.3d45c",
1694     "type": "outcomeTrue",
1695     "name": "true",
1696     "xml": "<outcome value='true'>\n",
1697     "comments": "",
1698     "outputs": 1,
1699     "x": 3314.0329971313477,
1700     "y": 1553.3334422111511,
1701     "z": "afa42c56.2fe06",
1702     "wires": [
1703       [
1704         "3c3cbc3f.366104"
1705       ]
1706     ]
1707   },
1708   {
1709     "id": "3c3cbc3f.366104",
1710     "type": "set",
1711     "name": "set prop.hub.ipAddress",
1712     "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",
1713     "comments": "",
1714     "x": 3509.033000946045,
1715     "y": 1552.9334177970886,
1716     "z": "afa42c56.2fe06",
1717     "wires": []
1718   },
1719   {
1720     "id": "3208baf8.6aed86",
1721     "type": "set",
1722     "name": "Add prop.spoke.route",
1723     "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",
1724     "comments": "",
1725     "x": 3417.533639907837,
1726     "y": 2670.3345935344696,
1727     "z": "afa42c56.2fe06",
1728     "wires": []
1729   },
1730   {
1731     "id": "723ddf07.218d1",
1732     "type": "returnSuccess",
1733     "name": "return success",
1734     "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",
1735     "comments": "",
1736     "x": 366.3343048095703,
1737     "y": 1127.3343391418457,
1738     "z": "afa42c56.2fe06",
1739     "wires": []
1740   },
1741   {
1742     "id": "428d17cf.9d4528",
1743     "type": "execute",
1744     "name": "generate connection attachment AR url ",
1745     "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",
1746     "comments": "",
1747     "outputs": 1,
1748     "x": 1415.6672058105469,
1749     "y": 189.30183696746826,
1750     "z": "afa42c56.2fe06",
1751     "wires": [
1752       []
1753     ]
1754   },
1755   {
1756     "id": "31785cb6.7e6854",
1757     "type": "execute",
1758     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1759     "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",
1760     "comments": "",
1761     "outputs": 1,
1762     "x": 1542.667236328125,
1763     "y": 237.3018274307251,
1764     "z": "afa42c56.2fe06",
1765     "wires": [
1766       [
1767         "2398fd5d.dbac12",
1768         "7edde1df.f81a4"
1769       ]
1770     ]
1771   },
1772   {
1773     "id": "8a7f6cb5.ac077",
1774     "type": "execute",
1775     "name": "execute RestApiCallNode - get parent service data",
1776     "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",
1777     "comments": "",
1778     "outputs": 1,
1779     "x": 1767.0013885498047,
1780     "y": 571.3021411895752,
1781     "z": "afa42c56.2fe06",
1782     "wires": [
1783       [
1784         "3ba72ba0.13a9f4",
1785         "b947c854.e35438"
1786       ]
1787     ]
1788   },
1789   {
1790     "id": "39b9e240.c55f5e",
1791     "type": "execute",
1792     "name": "generate connection attachment parent url ",
1793     "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",
1794     "comments": "",
1795     "outputs": 1,
1796     "x": 1744.0010375976562,
1797     "y": 517.3020687103271,
1798     "z": "afa42c56.2fe06",
1799     "wires": [
1800       []
1801     ]
1802   },
1803   {
1804     "id": "e2c10566.d14818",
1805     "type": "comment",
1806     "name": "full mesh do nothing",
1807     "info": "",
1808     "comments": "",
1809     "x": 1578.667839050293,
1810     "y": 728.3021068572998,
1811     "z": "afa42c56.2fe06",
1812     "wires": []
1813   },
1814   {
1815     "id": "3ed45cd4.e3df94",
1816     "type": "comment",
1817     "name": "hub-spoke",
1818     "info": "",
1819     "comments": "",
1820     "x": 2579.6672401428223,
1821     "y": 825.3019967079163,
1822     "z": "afa42c56.2fe06",
1823     "wires": []
1824   },
1825   {
1826     "id": "9b080888.c9b298",
1827     "type": "execute",
1828     "name": "generate connection attachment AR url ",
1829     "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",
1830     "comments": "",
1831     "outputs": 1,
1832     "x": 2252.0003929138184,
1833     "y": 976.3019919395447,
1834     "z": "afa42c56.2fe06",
1835     "wires": [
1836       []
1837     ]
1838   },
1839   {
1840     "id": "1ff59188.ff36ae",
1841     "type": "execute",
1842     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1843     "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",
1844     "comments": "",
1845     "outputs": 1,
1846     "x": 2383.000473022461,
1847     "y": 1015.9686217308044,
1848     "z": "afa42c56.2fe06",
1849     "wires": [
1850       [
1851         "63613798.d70908",
1852         "9fe7ff8.35548"
1853       ]
1854     ]
1855   },
1856   {
1857     "id": "a780d837.5bb548",
1858     "type": "execute",
1859     "name": "generate service data url",
1860     "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",
1861     "comments": "",
1862     "outputs": 1,
1863     "x": 2433.504367828369,
1864     "y": 1217.3058919906616,
1865     "z": "afa42c56.2fe06",
1866     "wires": [
1867       []
1868     ]
1869   },
1870   {
1871     "id": "fcb5aaf7.a56738",
1872     "type": "execute",
1873     "name": "execute RestApiCallNode - get service data of allotted resource",
1874     "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",
1875     "comments": "",
1876     "outputs": 1,
1877     "x": 2549.5045013427734,
1878     "y": 1254.3057832717896,
1879     "z": "afa42c56.2fe06",
1880     "wires": [
1881       [
1882         "aa2b8cd4.2f9ae",
1883         "1bed61f6.90e36e"
1884       ]
1885     ]
1886   },
1887   {
1888     "id": "472beb8.34ca814",
1889     "type": "outcomeTrue",
1890     "name": "true",
1891     "xml": "<outcome value='true'>\n",
1892     "comments": "",
1893     "outputs": 1,
1894     "x": 2313.5000648498535,
1895     "y": 1139.8018560409546,
1896     "z": "afa42c56.2fe06",
1897     "wires": [
1898       [
1899         "79cfeb5f.61b2e4"
1900       ]
1901     ]
1902   },
1903   {
1904     "id": "6011fd41.335614",
1905     "type": "outcomeFalse",
1906     "name": "false",
1907     "xml": "<outcome value='false'>\n",
1908     "comments": "",
1909     "outputs": 1,
1910     "x": 2319.500312805176,
1911     "y": 1096.801947593689,
1912     "z": "afa42c56.2fe06",
1913     "wires": [
1914       [
1915         "890f782e.076f68"
1916       ]
1917     ]
1918   },
1919   {
1920     "id": "87284033.76d89",
1921     "type": "for",
1922     "name": "for loop roleidx - Get role from allotted resource",
1923     "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",
1924     "comments": "",
1925     "outputs": 1,
1926     "x": 2894.5008697509766,
1927     "y": 244.30177307128906,
1928     "z": "afa42c56.2fe06",
1929     "wires": [
1930       [
1931         "73b90990.d19928"
1932       ]
1933     ]
1934   },
1935   {
1936     "id": "73b90990.d19928",
1937     "type": "block",
1938     "name": "block",
1939     "xml": "<block>\n",
1940     "atomic": "false",
1941     "comments": "",
1942     "outputs": 1,
1943     "x": 3153.5011825561523,
1944     "y": 243.3020887374878,
1945     "z": "afa42c56.2fe06",
1946     "wires": [
1947       [
1948         "8cac5932.b8b208"
1949       ]
1950     ]
1951   },
1952   {
1953     "id": "8cac5932.b8b208",
1954     "type": "switchNode",
1955     "name": "switch Role",
1956     "xml": "<switch test=\"`$mdsal-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$roleidx].name == 'role'`\">\n",
1957     "comments": "",
1958     "outputs": 1,
1959     "x": 3302.501194000244,
1960     "y": 244.3019256591797,
1961     "z": "afa42c56.2fe06",
1962     "wires": [
1963       [
1964         "bf369f65.c443d"
1965       ]
1966     ]
1967   },
1968   {
1969     "id": "9b7f20f8.db3b3",
1970     "type": "set",
1971     "name": "set prop.spoke.role",
1972     "xml": "<set>\n<parameter name='prop.spoke.role' value='`$mdsal-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$roleidx].value`' />\n",
1973     "comments": "",
1974     "x": 3607.501754760742,
1975     "y": 241.90183353424072,
1976     "z": "afa42c56.2fe06",
1977     "wires": []
1978   },
1979   {
1980     "id": "bf369f65.c443d",
1981     "type": "outcomeTrue",
1982     "name": "true",
1983     "xml": "<outcome value='true'>\n",
1984     "comments": "",
1985     "outputs": 1,
1986     "x": 3438.00101852417,
1987     "y": 241.30176544189453,
1988     "z": "afa42c56.2fe06",
1989     "wires": [
1990       [
1991         "9b7f20f8.db3b3"
1992       ]
1993     ]
1994   },
1995   {
1996     "id": "8baae43.65cdc18",
1997     "type": "switchNode",
1998     "name": "switch spoke",
1999     "xml": "<switch test=\"`$prop.spoke.role == 'spoke'`\">\n",
2000     "comments": "",
2001     "outputs": 1,
2002     "x": 1330.000373840332,
2003     "y": 388.301700592041,
2004     "z": "afa42c56.2fe06",
2005     "wires": [
2006       [
2007         "b158c146.c1f85"
2008       ]
2009     ]
2010   },
2011   {
2012     "id": "b158c146.c1f85",
2013     "type": "outcomeTrue",
2014     "name": "true",
2015     "xml": "<outcome value='true'>\n",
2016     "comments": "",
2017     "outputs": 1,
2018     "x": 1471.000129699707,
2019     "y": 389.30173778533936,
2020     "z": "afa42c56.2fe06",
2021     "wires": [
2022       [
2023         "67d378cf.68e458"
2024       ]
2025     ]
2026   },
2027   {
2028     "id": "b0c4da2c.234108",
2029     "type": "for",
2030     "name": "for i.. service-data.vnfs.vnf_length[]",
2031     "xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
2032     "comments": "",
2033     "outputs": 1,
2034     "x": 1743.5006561279297,
2035     "y": 443.3017330169678,
2036     "z": "afa42c56.2fe06",
2037     "wires": [
2038       [
2039         "63ff4ec5.ab647"
2040       ]
2041     ]
2042   },
2043   {
2044     "id": "63ff4ec5.ab647",
2045     "type": "block",
2046     "name": "block atmoic",
2047     "xml": "<block atomic=\"true\">\n",
2048     "atomic": "false",
2049     "comments": "",
2050     "outputs": 1,
2051     "x": 2077.166847229004,
2052     "y": 387.3016633987427,
2053     "z": "afa42c56.2fe06",
2054     "wires": [
2055       [
2056         "84784063.67ffb",
2057         "341080b7.07512",
2058         "ed155104.c2191"
2059       ]
2060     ]
2061   },
2062   {
2063     "id": "84784063.67ffb",
2064     "type": "switchNode",
2065     "name": "switch ActivateSDWANPortInstance",
2066     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSDWANPortInstance'`\">\n    \n    \n\n",
2067     "comments": "",
2068     "outputs": 1,
2069     "x": 2348.1668853759766,
2070     "y": 333.3025498390198,
2071     "z": "afa42c56.2fe06",
2072     "wires": [
2073       [
2074         "126e021b.594fce"
2075       ]
2076     ]
2077   },
2078   {
2079     "id": "126e021b.594fce",
2080     "type": "outcomeTrue",
2081     "name": "true",
2082     "xml": "<outcome value='true'>\n",
2083     "comments": "",
2084     "outputs": 1,
2085     "x": 2561.166648864746,
2086     "y": 334.3025527000427,
2087     "z": "afa42c56.2fe06",
2088     "wires": [
2089       [
2090         "c1a0895d.a44898"
2091       ]
2092     ]
2093   },
2094   {
2095     "id": "c1a0895d.a44898",
2096     "type": "block",
2097     "name": "block atomic",
2098     "xml": "<block atomic=\"true\">\n",
2099     "atomic": "false",
2100     "comments": "",
2101     "outputs": 1,
2102     "x": 2710.0003929138184,
2103     "y": 336.3017420768738,
2104     "z": "afa42c56.2fe06",
2105     "wires": [
2106       [
2107         "cad8cdd9.d6465"
2108       ]
2109     ]
2110   },
2111   {
2112     "id": "cad8cdd9.d6465",
2113     "type": "for",
2114     "name": "for loop widx - Get wan port ID from servicedata",
2115     "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",
2116     "comments": "",
2117     "outputs": 1,
2118     "x": 2983.000343322754,
2119     "y": 334.6689600944519,
2120     "z": "afa42c56.2fe06",
2121     "wires": [
2122       [
2123         "e45e8fbc.86968"
2124       ]
2125     ]
2126   },
2127   {
2128     "id": "e45e8fbc.86968",
2129     "type": "block",
2130     "name": "block atomic",
2131     "xml": "<block atomic=\"true\">\n",
2132     "atomic": "false",
2133     "comments": "",
2134     "outputs": 1,
2135     "x": 3252.0012702941895,
2136     "y": 333.66920614242554,
2137     "z": "afa42c56.2fe06",
2138     "wires": [
2139       [
2140         "bc53f544.71b638",
2141         "25d65cd3.81eaf4",
2142         "af8fabf7.c19df8",
2143         "97c92085.94f67"
2144       ]
2145     ]
2146   },
2147   {
2148     "id": "bc53f544.71b638",
2149     "type": "switchNode",
2150     "name": "switch transportNetworkName",
2151     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'transportNetworkName'`\">\n",
2152     "comments": "",
2153     "outputs": 1,
2154     "x": 3495.0023040771484,
2155     "y": 288.6697793006897,
2156     "z": "afa42c56.2fe06",
2157     "wires": [
2158       [
2159         "de0d2806.856438"
2160       ]
2161     ]
2162   },
2163   {
2164     "id": "de0d2806.856438",
2165     "type": "outcomeTrue",
2166     "name": "true",
2167     "xml": "<outcome value='true'>\n",
2168     "comments": "",
2169     "outputs": 1,
2170     "x": 3695.0020790100098,
2171     "y": 288.6699414253235,
2172     "z": "afa42c56.2fe06",
2173     "wires": [
2174       [
2175         "9a3c947a.1c5d88"
2176       ]
2177     ]
2178   },
2179   {
2180     "id": "9a3c947a.1c5d88",
2181     "type": "set",
2182     "name": "set prop.spoke.transportNetworkName",
2183     "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",
2184     "comments": "",
2185     "x": 3922.002815246582,
2186     "y": 290.2705235481262,
2187     "z": "afa42c56.2fe06",
2188     "wires": []
2189   },
2190   {
2191     "id": "67d378cf.68e458",
2192     "type": "block",
2193     "name": "block: atomic",
2194     "xml": "<block atomic=\"true\">\n",
2195     "atomic": "false",
2196     "comments": "",
2197     "outputs": 1,
2198     "x": 1223.9694213867188,
2199     "y": 699.2706489562988,
2200     "z": "afa42c56.2fe06",
2201     "wires": [
2202       [
2203         "b0c4da2c.234108",
2204         "39b9e240.c55f5e",
2205         "8a7f6cb5.ac077",
2206         "9ef76182.7b173",
2207         "1fd45985.393f26",
2208         "d058b4fc.a3d908",
2209         "4a7f65c3.11a50c",
2210         "86cead5c.3dd72"
2211       ]
2212     ]
2213   },
2214   {
2215     "id": "341080b7.07512",
2216     "type": "switchNode",
2217     "name": "switch ActivateSDWANDeviceInstance",
2218     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n    \n    \n\n",
2219     "comments": "",
2220     "outputs": 1,
2221     "x": 2340.5003204345703,
2222     "y": 407.3017544746399,
2223     "z": "afa42c56.2fe06",
2224     "wires": [
2225       [
2226         "b16c0723.99d848"
2227       ]
2228     ]
2229   },
2230   {
2231     "id": "b16c0723.99d848",
2232     "type": "outcomeTrue",
2233     "name": "true",
2234     "xml": "<outcome value='true'>\n",
2235     "comments": "",
2236     "outputs": 1,
2237     "x": 2559.5000705718994,
2238     "y": 408.30173921585083,
2239     "z": "afa42c56.2fe06",
2240     "wires": [
2241       [
2242         "6b12cdd6.190a84"
2243       ]
2244     ]
2245   },
2246   {
2247     "id": "6b12cdd6.190a84",
2248     "type": "block",
2249     "name": "block atomic",
2250     "xml": "<block atomic=\"true\">\n",
2251     "atomic": "false",
2252     "comments": "",
2253     "outputs": 1,
2254     "x": 2710.3340606689453,
2255     "y": 414.3009305000305,
2256     "z": "afa42c56.2fe06",
2257     "wires": [
2258       [
2259         "c142c3ae.d5baf"
2260       ]
2261     ]
2262   },
2263   {
2264     "id": "c142c3ae.d5baf",
2265     "type": "for",
2266     "name": "for loop didx - Get device ID from servicedata",
2267     "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",
2268     "comments": "",
2269     "outputs": 1,
2270     "x": 2969.334312438965,
2271     "y": 416.66822576522827,
2272     "z": "afa42c56.2fe06",
2273     "wires": [
2274       [
2275         "6fd86632.b15c78"
2276       ]
2277     ]
2278   },
2279   {
2280     "id": "6fd86632.b15c78",
2281     "type": "block",
2282     "name": "block atomic",
2283     "xml": "<block atomic=\"true\">\n",
2284     "atomic": "false",
2285     "comments": "",
2286     "outputs": 1,
2287     "x": 3255.334819793701,
2288     "y": 449.66841077804565,
2289     "z": "afa42c56.2fe06",
2290     "wires": [
2291       [
2292         "4c164cba.1f51b4"
2293       ]
2294     ]
2295   },
2296   {
2297     "id": "4c164cba.1f51b4",
2298     "type": "switchNode",
2299     "name": "switch deviceId",
2300     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].name == 'deviceId'`\">\n",
2301     "comments": "",
2302     "outputs": 1,
2303     "x": 3438.3357315063477,
2304     "y": 449.66902112960815,
2305     "z": "afa42c56.2fe06",
2306     "wires": [
2307       [
2308         "4e22d2eb.17a27c"
2309       ]
2310     ]
2311   },
2312   {
2313     "id": "4e22d2eb.17a27c",
2314     "type": "outcomeTrue",
2315     "name": "true",
2316     "xml": "<outcome value='true'>\n",
2317     "comments": "",
2318     "outputs": 1,
2319     "x": 3638.335506439209,
2320     "y": 449.66918325424194,
2321     "z": "afa42c56.2fe06",
2322     "wires": [
2323       [
2324         "bda2d14d.2382d"
2325       ]
2326     ]
2327   },
2328   {
2329     "id": "bda2d14d.2382d",
2330     "type": "set",
2331     "name": "set prop.spoke.deviceId",
2332     "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",
2333     "comments": "",
2334     "x": 3833.3361892700195,
2335     "y": 446.26976442337036,
2336     "z": "afa42c56.2fe06",
2337     "wires": []
2338   },
2339   {
2340     "id": "ed155104.c2191",
2341     "type": "switchNode",
2342     "name": "switch ActivateSiteInstance",
2343     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n    \n    \n\n",
2344     "comments": "",
2345     "outputs": 1,
2346     "x": 2319.5004348754883,
2347     "y": 468.30178594589233,
2348     "z": "afa42c56.2fe06",
2349     "wires": [
2350       [
2351         "3684ce31.756aa2"
2352       ]
2353     ]
2354   },
2355   {
2356     "id": "3684ce31.756aa2",
2357     "type": "outcomeTrue",
2358     "name": "true",
2359     "xml": "<outcome value='true'>\n",
2360     "comments": "",
2361     "outputs": 1,
2362     "x": 2553.500072479248,
2363     "y": 469.3017258644104,
2364     "z": "afa42c56.2fe06",
2365     "wires": [
2366       [
2367         "379dde17.f5f7e2"
2368       ]
2369     ]
2370   },
2371   {
2372     "id": "379dde17.f5f7e2",
2373     "type": "block",
2374     "name": "block atomic",
2375     "xml": "<block atomic=\"true\">\n",
2376     "atomic": "false",
2377     "comments": "",
2378     "outputs": 1,
2379     "x": 2705.3340606689453,
2380     "y": 491.30096197128296,
2381     "z": "afa42c56.2fe06",
2382     "wires": [
2383       [
2384         "54ff4036.7eef1",
2385         "dc7900f6.c1794"
2386       ]
2387     ]
2388   },
2389   {
2390     "id": "54ff4036.7eef1",
2391     "type": "for",
2392     "name": "for loop widx - Get wan site ID from servicedata",
2393     "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",
2394     "comments": "",
2395     "outputs": 1,
2396     "x": 2986.3338928222656,
2397     "y": 490.668164730072,
2398     "z": "afa42c56.2fe06",
2399     "wires": [
2400       [
2401         "53c73c75.c0fe44"
2402       ]
2403     ]
2404   },
2405   {
2406     "id": "53c73c75.c0fe44",
2407     "type": "block",
2408     "name": "block atomic",
2409     "xml": "<block atomic=\"true\">\n",
2410     "atomic": "false",
2411     "comments": "",
2412     "outputs": 1,
2413     "x": 3255.334819793701,
2414     "y": 489.66841077804565,
2415     "z": "afa42c56.2fe06",
2416     "wires": [
2417       [
2418         "1d2d8e3b.d07092",
2419         "812b076f.3b7138",
2420         "8b3ca259.e59f8"
2421       ]
2422     ]
2423   },
2424   {
2425     "id": "1d2d8e3b.d07092",
2426     "type": "switchNode",
2427     "name": "switch siteId",
2428     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'siteId'`\">\n",
2429     "comments": "",
2430     "outputs": 1,
2431     "x": 3444.33602142334,
2432     "y": 539.6690826416016,
2433     "z": "afa42c56.2fe06",
2434     "wires": [
2435       [
2436         "35fdfb9a.5d5ab4"
2437       ]
2438     ]
2439   },
2440   {
2441     "id": "35fdfb9a.5d5ab4",
2442     "type": "outcomeTrue",
2443     "name": "true",
2444     "xml": "<outcome value='true'>\n",
2445     "comments": "",
2446     "outputs": 1,
2447     "x": 3644.3354988098145,
2448     "y": 527.6691970825195,
2449     "z": "afa42c56.2fe06",
2450     "wires": [
2451       [
2452         "ea9da0a4.eb61c"
2453       ]
2454     ]
2455   },
2456   {
2457     "id": "ea9da0a4.eb61c",
2458     "type": "set",
2459     "name": "set prop.spoke.siteId",
2460     "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",
2461     "comments": "",
2462     "x": 3837.336452484131,
2463     "y": 534.2698273658752,
2464     "z": "afa42c56.2fe06",
2465     "wires": []
2466   },
2467   {
2468     "id": "25d65cd3.81eaf4",
2469     "type": "switchNode",
2470     "name": "switch wanPortId",
2471     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'wanPortId'`\">\n",
2472     "comments": "",
2473     "outputs": 1,
2474     "x": 3468.5,
2475     "y": 325.3018355369568,
2476     "z": "afa42c56.2fe06",
2477     "wires": [
2478       [
2479         "70f2426c.7fe2dc"
2480       ]
2481     ]
2482   },
2483   {
2484     "id": "70f2426c.7fe2dc",
2485     "type": "outcomeTrue",
2486     "name": "true",
2487     "xml": "<outcome value='true'>\n",
2488     "comments": "",
2489     "outputs": 1,
2490     "x": 3698.5000038146973,
2491     "y": 325.3019471168518,
2492     "z": "afa42c56.2fe06",
2493     "wires": [
2494       [
2495         "2a2fa3c7.e081ac"
2496       ]
2497     ]
2498   },
2499   {
2500     "id": "2a2fa3c7.e081ac",
2501     "type": "set",
2502     "name": "set prop.spoke.wanPortId",
2503     "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",
2504     "comments": "",
2505     "x": 3925.5007400512695,
2506     "y": 326.90252923965454,
2507     "z": "afa42c56.2fe06",
2508     "wires": []
2509   },
2510   {
2511     "id": "af8fabf7.c19df8",
2512     "type": "switchNode",
2513     "name": "switch providerIpAddress",
2514     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'providerIpAddress'`\">\n",
2515     "comments": "",
2516     "outputs": 1,
2517     "x": 3486.500160217285,
2518     "y": 369.30178594589233,
2519     "z": "afa42c56.2fe06",
2520     "wires": [
2521       [
2522         "b8a267e9.b9ee48"
2523       ]
2524     ]
2525   },
2526   {
2527     "id": "b8a267e9.b9ee48",
2528     "type": "outcomeTrue",
2529     "name": "true",
2530     "xml": "<outcome value='true'>\n",
2531     "comments": "",
2532     "outputs": 1,
2533     "x": 3686.4999351501465,
2534     "y": 369.3019480705261,
2535     "z": "afa42c56.2fe06",
2536     "wires": [
2537       [
2538         "1f49c17b.29132f"
2539       ]
2540     ]
2541   },
2542   {
2543     "id": "1f49c17b.29132f",
2544     "type": "set",
2545     "name": "set prop.spoke.providerIpAddress",
2546     "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",
2547     "comments": "",
2548     "x": 3913.5006713867188,
2549     "y": 370.90253019332886,
2550     "z": "afa42c56.2fe06",
2551     "wires": []
2552   },
2553   {
2554     "id": "97c92085.94f67",
2555     "type": "switchNode",
2556     "name": "switch ipAddress",
2557     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'ipAddress'`\">\n",
2558     "comments": "",
2559     "outputs": 1,
2560     "x": 3466.499988555908,
2561     "y": 408.30182218551636,
2562     "z": "afa42c56.2fe06",
2563     "wires": [
2564       [
2565         "f16f752f.3e9e18"
2566       ]
2567     ]
2568   },
2569   {
2570     "id": "f16f752f.3e9e18",
2571     "type": "outcomeTrue",
2572     "name": "true",
2573     "xml": "<outcome value='true'>\n",
2574     "comments": "",
2575     "outputs": 1,
2576     "x": 3690.4998168945312,
2577     "y": 408.3019394874573,
2578     "z": "afa42c56.2fe06",
2579     "wires": [
2580       [
2581         "ca30b35f.a1be"
2582       ]
2583     ]
2584   },
2585   {
2586     "id": "ca30b35f.a1be",
2587     "type": "set",
2588     "name": "set prop.spoke.ipAddress",
2589     "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",
2590     "comments": "",
2591     "x": 3917.5005531311035,
2592     "y": 409.90252161026,
2593     "z": "afa42c56.2fe06",
2594     "wires": []
2595   },
2596   {
2597     "id": "88f8bb94.113e88",
2598     "type": "block",
2599     "name": "block: atomic",
2600     "xml": "<block atomic=\"true\">\n",
2601     "atomic": "false",
2602     "comments": "",
2603     "outputs": 1,
2604     "x": 1033.999900817871,
2605     "y": 267.5000419616699,
2606     "z": "afa42c56.2fe06",
2607     "wires": [
2608       [
2609         "2cdd7d19.2083a2",
2610         "428d17cf.9d4528",
2611         "31785cb6.7e6854",
2612         "8baae43.65cdc18"
2613       ]
2614     ]
2615   },
2616   {
2617     "id": "47687d06.0a1964",
2618     "type": "comment",
2619     "name": "get spoke device,site,wanport info",
2620     "info": "",
2621     "comments": "",
2622     "x": 1790.96875,
2623     "y": 390.96874713897705,
2624     "z": "afa42c56.2fe06",
2625     "wires": []
2626   },
2627   {
2628     "id": "c21c0002.43242",
2629     "type": "comment",
2630     "name": "Add routes only on activation of spoke Attach site",
2631     "info": "",
2632     "comments": "",
2633     "x": 1451.4999160766602,
2634     "y": 334.00006103515625,
2635     "z": "afa42c56.2fe06",
2636     "wires": []
2637   },
2638   {
2639     "id": "7b6f0604.c9da18",
2640     "type": "comment",
2641     "name": "Loop for all the hub allotted resources, get respective service data and get vnfs info",
2642     "info": "",
2643     "comments": "",
2644     "x": 2207.5,
2645     "y": 829.500057220459,
2646     "z": "afa42c56.2fe06",
2647     "wires": []
2648   },
2649   {
2650     "id": "d543abbf.21d958",
2651     "type": "block",
2652     "name": "block atomic",
2653     "xml": "<block atomic=\"true\">\n",
2654     "atomic": "false",
2655     "comments": "",
2656     "outputs": 1,
2657     "x": 2963.4997177124023,
2658     "y": 1810.9999589920044,
2659     "z": "afa42c56.2fe06",
2660     "wires": [
2661       [
2662         "a19625ef.be4768",
2663         "450fbdd4.50bf64"
2664       ]
2665     ]
2666   },
2667   {
2668     "id": "fc5d79c.538d088",
2669     "type": "block",
2670     "name": "block atomic",
2671     "xml": "<block atomic=\"true\">\n",
2672     "atomic": "false",
2673     "comments": "",
2674     "outputs": 1,
2675     "x": 3013.4997749328613,
2676     "y": 1683.999843597412,
2677     "z": "afa42c56.2fe06",
2678     "wires": [
2679       [
2680         "29161345.19c04c"
2681       ]
2682     ]
2683   },
2684   {
2685     "id": "a19625ef.be4768",
2686     "type": "switchNode",
2687     "name": "switch siteId",
2688     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].name == 'siteId'`\">\n",
2689     "comments": "",
2690     "outputs": 1,
2691     "x": 3148.499641418457,
2692     "y": 1821.9998016357422,
2693     "z": "afa42c56.2fe06",
2694     "wires": [
2695       [
2696         "fce00f2c.408f7"
2697       ]
2698     ]
2699   },
2700   {
2701     "id": "fce00f2c.408f7",
2702     "type": "outcomeTrue",
2703     "name": "true",
2704     "xml": "<outcome value='true'>\n",
2705     "comments": "",
2706     "outputs": 1,
2707     "x": 3299.500011444092,
2708     "y": 1820.999984741211,
2709     "z": "afa42c56.2fe06",
2710     "wires": [
2711       [
2712         "a6e04d71.45ffd"
2713       ]
2714     ]
2715   },
2716   {
2717     "id": "a6e04d71.45ffd",
2718     "type": "set",
2719     "name": "set prop.hub.siteId",
2720     "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",
2721     "comments": "",
2722     "x": 3471.5000190734863,
2723     "y": 1818.6005535125732,
2724     "z": "afa42c56.2fe06",
2725     "wires": []
2726   },
2727   {
2728     "id": "f1944c46.f8a7e",
2729     "type": "switchNode",
2730     "name": "switch request-action",
2731     "xml": "<switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>\n",
2732     "comments": "",
2733     "outputs": 1,
2734     "x": 2624.9997482299805,
2735     "y": 2174.0004453659058,
2736     "z": "afa42c56.2fe06",
2737     "wires": [
2738       [
2739         "4a7669f9.690ed8",
2740         "9523edcb.d7c9a"
2741       ]
2742     ]
2743   },
2744   {
2745     "id": "4a7669f9.690ed8",
2746     "type": "outcome",
2747     "name": "ActivateSDWANAttachmentInstance",
2748     "xml": "<outcome value='ActivateSDWANAttachmentInstance'>",
2749     "comments": "",
2750     "outputs": 1,
2751     "x": 2895.0271530151367,
2752     "y": 1985.0314779281616,
2753     "z": "afa42c56.2fe06",
2754     "wires": [
2755       [
2756         "5392f603.1e5608"
2757       ]
2758     ]
2759   },
2760   {
2761     "id": "ed2e9b23.246118",
2762     "type": "execute",
2763     "name": "execute RestApiCallNode underlay route",
2764     "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`\" />",
2765     "comments": "",
2766     "outputs": 1,
2767     "x": 3483.500099182129,
2768     "y": 1914.0003824234009,
2769     "z": "afa42c56.2fe06",
2770     "wires": [
2771       [
2772         "e1bfc10d.7f44e",
2773         "523fbf6b.72c95"
2774       ]
2775     ]
2776   },
2777   {
2778     "id": "523fbf6b.72c95",
2779     "type": "success",
2780     "name": "success",
2781     "xml": "<outcome value='success'>\n",
2782     "comments": "",
2783     "outputs": 1,
2784     "x": 3730.499927520752,
2785     "y": 1893.0002145767212,
2786     "z": "afa42c56.2fe06",
2787     "wires": [
2788       []
2789     ]
2790   },
2791   {
2792     "id": "e1bfc10d.7f44e",
2793     "type": "failure",
2794     "name": "failure",
2795     "xml": "<outcome value='failure'>\n",
2796     "comments": "",
2797     "outputs": 1,
2798     "x": 3728.4996070861816,
2799     "y": 1849.000205039978,
2800     "z": "afa42c56.2fe06",
2801     "wires": [
2802       [
2803         "5684be77.d184a"
2804       ]
2805     ]
2806   },
2807   {
2808     "id": "5684be77.d184a",
2809     "type": "returnFailure",
2810     "name": "return failure",
2811     "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",
2812     "comments": "",
2813     "x": 3870.5002937316895,
2814     "y": 1847.0002880096436,
2815     "z": "afa42c56.2fe06",
2816     "wires": []
2817   },
2818   {
2819     "id": "fc0a8ce8.4d15f",
2820     "type": "set",
2821     "name": "Add prop.hub.route",
2822     "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",
2823     "comments": "",
2824     "x": 3418.8337020874023,
2825     "y": 1884.666922569275,
2826     "z": "afa42c56.2fe06",
2827     "wires": []
2828   },
2829   {
2830     "id": "4be3d8b3.562cb8",
2831     "type": "execute",
2832     "name": "execute RestApiCallNode underlay route",
2833     "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`\" />",
2834     "comments": "",
2835     "outputs": 1,
2836     "x": 3500.834144592285,
2837     "y": 2119.6675004959106,
2838     "z": "afa42c56.2fe06",
2839     "wires": [
2840       [
2841         "5f8c1bef.56c114",
2842         "a3d1295e.fa6b28"
2843       ]
2844     ]
2845   },
2846   {
2847     "id": "a3d1295e.fa6b28",
2848     "type": "success",
2849     "name": "success",
2850     "xml": "<outcome value='success'>\n",
2851     "comments": "",
2852     "outputs": 1,
2853     "x": 3752.83424949646,
2854     "y": 2107.667459964752,
2855     "z": "afa42c56.2fe06",
2856     "wires": [
2857       []
2858     ]
2859   },
2860   {
2861     "id": "5f8c1bef.56c114",
2862     "type": "failure",
2863     "name": "failure",
2864     "xml": "<outcome value='failure'>\n",
2865     "comments": "",
2866     "outputs": 1,
2867     "x": 3750.8339290618896,
2868     "y": 2063.667450428009,
2869     "z": "afa42c56.2fe06",
2870     "wires": [
2871       [
2872         "e475f129.f6d52"
2873       ]
2874     ]
2875   },
2876   {
2877     "id": "e475f129.f6d52",
2878     "type": "returnFailure",
2879     "name": "return failure",
2880     "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",
2881     "comments": "",
2882     "x": 3892.8346157073975,
2883     "y": 2061.6675333976746,
2884     "z": "afa42c56.2fe06",
2885     "wires": []
2886   },
2887   {
2888     "id": "9b5e472e.7046c8",
2889     "type": "set",
2890     "name": "Add prop.spoke.route",
2891     "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",
2892     "comments": "",
2893     "x": 3441.6980171203613,
2894     "y": 2082.3642127513885,
2895     "z": "afa42c56.2fe06",
2896     "wires": []
2897   },
2898   {
2899     "id": "f4ba3683.379f28",
2900     "type": "set",
2901     "name": "set  prop.underlay.routeIds",
2902     "xml": "<set>\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].hubSiteId' value='`$prop.hub.siteId`' />\n<!--parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].spokeSiteId' value='`$prop.spoke.siteId`' /-->\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].hubRouteId' value='`$underlayHubResp.success[0].id`' />\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].spokeRouteId' value='`$underlayspokeResp.success[0].id`' />\n\n\n\n",
2903     "comments": "",
2904     "x": 3451.665542602539,
2905     "y": 2242.0309886932373,
2906     "z": "afa42c56.2fe06",
2907     "wires": []
2908   },
2909   {
2910     "id": "5392f603.1e5608",
2911     "type": "block",
2912     "name": "block atomic",
2913     "xml": "<block atomic=\"true\">\n",
2914     "atomic": "false",
2915     "comments": "",
2916     "outputs": 1,
2917     "x": 3130.999671936035,
2918     "y": 1982.4999113082886,
2919     "z": "afa42c56.2fe06",
2920     "wires": [
2921       [
2922         "fc0a8ce8.4d15f",
2923         "9b5e472e.7046c8",
2924         "f4ba3683.379f28",
2925         "4be3d8b3.562cb8",
2926         "ed2e9b23.246118",
2927         "26c99249.a4074e",
2928         "41b2e501.e4cadc",
2929         "805d9d92.cb3bf",
2930         "f41a7058.b220e",
2931         "57accb29.01bb34"
2932       ]
2933     ]
2934   },
2935   {
2936     "id": "cf3f5a97.bb53e8",
2937     "type": "block",
2938     "name": "block atomic",
2939     "xml": "<block atomic=\"true\">\n",
2940     "atomic": "false",
2941     "comments": "",
2942     "outputs": 1,
2943     "x": 3162.9997749328613,
2944     "y": 2624.5002613067627,
2945     "z": "afa42c56.2fe06",
2946     "wires": [
2947       [
2948         "45a08ea1.9e3d3",
2949         "3208baf8.6aed86",
2950         "33961398.8b885c",
2951         "5e2b5a00.fe4964",
2952         "3396ac88.cb4974",
2953         "a8dab23b.85144",
2954         "3c48a4f4.f048ec"
2955       ]
2956     ]
2957   },
2958   {
2959     "id": "9523edcb.d7c9a",
2960     "type": "outcome",
2961     "name": "DeactivateSDWANAttachmentInstance",
2962     "xml": "<outcome value='DeactivateSDWANAttachmentInstance'>",
2963     "comments": "",
2964     "outputs": 1,
2965     "x": 2911.4998321533203,
2966     "y": 2618.500072479248,
2967     "z": "afa42c56.2fe06",
2968     "wires": [
2969       [
2970         "cf3f5a97.bb53e8"
2971       ]
2972     ]
2973   },
2974   {
2975     "id": "41b2e501.e4cadc",
2976     "type": "set",
2977     "name": "Add sites to list and update length",
2978     "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\n\n\n\n\n\n\n\n\n\n\n\n\n",
2979     "comments": "",
2980     "x": 3456.0318298339844,
2981     "y": 2367.0318689346313,
2982     "z": "afa42c56.2fe06",
2983     "wires": []
2984   },
2985   {
2986     "id": "84283d54.1b30c",
2987     "type": "comment",
2988     "name": "save hubsiteIds and spoke siteIds for provision",
2989     "info": "",
2990     "comments": "",
2991     "x": 3488.0322036743164,
2992     "y": 2323.0317430496216,
2993     "z": "afa42c56.2fe06",
2994     "wires": []
2995   },
2996   {
2997     "id": "812b076f.3b7138",
2998     "type": "switchNode",
2999     "name": "switch name",
3000     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'name'`\">\n",
3001     "comments": "",
3002     "outputs": 1,
3003     "x": 3445.031005859375,
3004     "y": 489.03125,
3005     "z": "afa42c56.2fe06",
3006     "wires": [
3007       [
3008         "e2b5302b.c9211"
3009       ]
3010     ]
3011   },
3012   {
3013     "id": "e2b5302b.c9211",
3014     "type": "outcomeTrue",
3015     "name": "true",
3016     "xml": "<outcome value='true'>\n",
3017     "comments": "",
3018     "outputs": 1,
3019     "x": 3645.0307807922363,
3020     "y": 489.0314121246338,
3021     "z": "afa42c56.2fe06",
3022     "wires": [
3023       [
3024         "3a42d854.33d438"
3025       ]
3026     ]
3027   },
3028   {
3029     "id": "3a42d854.33d438",
3030     "type": "set",
3031     "name": "set prop.spoke.siteName",
3032     "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",
3033     "comments": "",
3034     "x": 3833.0315856933594,
3035     "y": 487.63202571868896,
3036     "z": "afa42c56.2fe06",
3037     "wires": []
3038   },
3039   {
3040     "id": "450fbdd4.50bf64",
3041     "type": "switchNode",
3042     "name": "switch name",
3043     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].name == 'name'`\">\n",
3044     "comments": "",
3045     "outputs": 1,
3046     "x": 3147.0310287475586,
3047     "y": 1788.5311088562012,
3048     "z": "afa42c56.2fe06",
3049     "wires": [
3050       [
3051         "7d26f71b.6a9a68"
3052       ]
3053     ]
3054   },
3055   {
3056     "id": "7d26f71b.6a9a68",
3057     "type": "outcomeTrue",
3058     "name": "true",
3059     "xml": "<outcome value='true'>\n",
3060     "comments": "",
3061     "outputs": 1,
3062     "x": 3298.0313987731934,
3063     "y": 1787.53129196167,
3064     "z": "afa42c56.2fe06",
3065     "wires": [
3066       [
3067         "570427f3.ac5a28"
3068       ]
3069     ]
3070   },
3071   {
3072     "id": "570427f3.ac5a28",
3073     "type": "set",
3074     "name": "set prop.hub.siteName",
3075     "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",
3076     "comments": "",
3077     "x": 3470.031406402588,
3078     "y": 1785.1318607330322,
3079     "z": "afa42c56.2fe06",
3080     "wires": []
3081   },
3082   {
3083     "id": "431fc2f2.17609c",
3084     "type": "set",
3085     "name": "set prop.provision.siteIds_length=0",
3086     "xml": "<set>\n<parameter name='prop.provision.siteIds_length' value='0' />\n\n\n\n",
3087     "comments": "",
3088     "x": 470.03126525878906,
3089     "y": 375.0312547683716,
3090     "z": "afa42c56.2fe06",
3091     "wires": []
3092   },
3093   {
3094     "id": "bebb2153.0e2a7",
3095     "type": "execute",
3096     "name": "execute RestApiCallNode site provision urls",
3097     "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`\" />",
3098     "comments": "",
3099     "outputs": 1,
3100     "x": 822.0312957763672,
3101     "y": 807.0314712524414,
3102     "z": "afa42c56.2fe06",
3103     "wires": [
3104       [
3105         "e47835d0.8f5408",
3106         "8e71b3d6.afc8d"
3107       ]
3108     ]
3109   },
3110   {
3111     "id": "8e71b3d6.afc8d",
3112     "type": "success",
3113     "name": "success",
3114     "xml": "<outcome value='success'>\n",
3115     "comments": "",
3116     "outputs": 1,
3117     "x": 1086.0315551757812,
3118     "y": 829.0315160751343,
3119     "z": "afa42c56.2fe06",
3120     "wires": [
3121       []
3122     ]
3123   },
3124   {
3125     "id": "e47835d0.8f5408",
3126     "type": "failure",
3127     "name": "failure",
3128     "xml": "<outcome value='failure'>\n",
3129     "comments": "",
3130     "outputs": 1,
3131     "x": 1087.0313415527344,
3132     "y": 786.0314540863037,
3133     "z": "afa42c56.2fe06",
3134     "wires": [
3135       [
3136         "610d5a0c.9e2794"
3137       ]
3138     ]
3139   },
3140   {
3141     "id": "610d5a0c.9e2794",
3142     "type": "returnFailure",
3143     "name": "return failure",
3144     "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",
3145     "comments": "",
3146     "x": 1266.0318984985352,
3147     "y": 784.0315053462982,
3148     "z": "afa42c56.2fe06",
3149     "wires": []
3150   },
3151   {
3152     "id": "38f6b67d.380b9a",
3153     "type": "for",
3154     "name": "for providx..prop.provision.siteIds[]",
3155     "xml": "<for index='providx' start='0' end='`$prop.provision.siteIds_length`' >\n",
3156     "comments": "",
3157     "outputs": 1,
3158     "x": 463.0312957763672,
3159     "y": 579.0312948226929,
3160     "z": "afa42c56.2fe06",
3161     "wires": [
3162       [
3163         "3da0634c.7d37dc"
3164       ]
3165     ]
3166   },
3167   {
3168     "id": "3da0634c.7d37dc",
3169     "type": "block",
3170     "name": "block atmoic",
3171     "xml": "<block atomic=\"true\">\n",
3172     "atomic": "false",
3173     "comments": "",
3174     "outputs": 1,
3175     "x": 487.0313377380371,
3176     "y": 789.031268119812,
3177     "z": "afa42c56.2fe06",
3178     "wires": [
3179       [
3180         "89ba9fe.36f7b6",
3181         "bebb2153.0e2a7",
3182         "ae5d2651.0df3f8"
3183       ]
3184     ]
3185   },
3186   {
3187     "id": "89ba9fe.36f7b6",
3188     "type": "set",
3189     "name": "set prop.spoke.hubSiteId, spokeSiteId",
3190     "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",
3191     "comments": "",
3192     "x": 798.0339965820312,
3193     "y": 665.6329832077026,
3194     "z": "afa42c56.2fe06",
3195     "wires": []
3196   },
3197   {
3198     "id": "ae5d2651.0df3f8",
3199     "type": "record",
3200     "name": "record provision url response to the file",
3201     "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.success[0].url`'/>\n\n",
3202     "comments": "",
3203     "outputs": 1,
3204     "x": 794.0313720703125,
3205     "y": 901.0313358306885,
3206     "z": "afa42c56.2fe06",
3207     "wires": [
3208       []
3209     ]
3210   },
3211   {
3212     "id": "99b001da.0efb4",
3213     "type": "block",
3214     "name": "block atmoic",
3215     "xml": "<block atomic=\"true\">\n",
3216     "atomic": "false",
3217     "comments": "",
3218     "outputs": 1,
3219     "x": 2536.031482696533,
3220     "y": 1056.0313262939453,
3221     "z": "afa42c56.2fe06",
3222     "wires": [
3223       [
3224         "175772d7.f9d53d"
3225       ]
3226     ]
3227   },
3228   {
3229     "id": "e38b67ea.4c8758",
3230     "type": "block",
3231     "name": "block atmoic",
3232     "xml": "<block atomic=\"true\">\n",
3233     "atomic": "false",
3234     "comments": "",
3235     "outputs": 1,
3236     "x": 2016.0311584472656,
3237     "y": 619.0313091278076,
3238     "z": "afa42c56.2fe06",
3239     "wires": [
3240       [
3241         "348ba1e1.19e85e"
3242       ]
3243     ]
3244   },
3245   {
3246     "id": "4ebf01e5.37d06",
3247     "type": "block",
3248     "name": "block atmoic",
3249     "xml": "<block atomic=\"true\">\n",
3250     "atomic": "false",
3251     "comments": "",
3252     "outputs": 1,
3253     "x": 1960.0313262939453,
3254     "y": 710.0312175750732,
3255     "z": "afa42c56.2fe06",
3256     "wires": [
3257       [
3258         "8d7971fd.c23e3",
3259         "524b783f.8c1128"
3260       ]
3261     ]
3262   },
3263   {
3264     "id": "26c99249.a4074e",
3265     "type": "set",
3266     "name": "set prop.underlay.routeIds_length++",
3267     "xml": "<set>\n<parameter name='prop.underlay.routeIds_length' value='`$prop.underlay.routeIds_length + 1`' />\n\n\n\n\n",
3268     "comments": "",
3269     "x": 3481.0011596679688,
3270     "y": 2278.250065803528,
3271     "z": "afa42c56.2fe06",
3272     "wires": []
3273   },
3274   {
3275     "id": "805d9d92.cb3bf",
3276     "type": "set",
3277     "name": "Update prop.provision.siteIds_length",
3278     "xml": "<set>\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",
3279     "comments": "",
3280     "x": 3464.5009002685547,
3281     "y": 2402.2501611709595,
3282     "z": "afa42c56.2fe06",
3283     "wires": []
3284   },
3285   {
3286     "id": "dc7900f6.c1794",
3287     "type": "set",
3288     "name": "set prop.spoke.siteidx",
3289     "xml": "<set>\n<parameter name='prop.spoke.siteidx' value='`$i`' />\n\n",
3290     "comments": "",
3291     "x": 2904.7501907348633,
3292     "y": 455.0000286102295,
3293     "z": "afa42c56.2fe06",
3294     "wires": []
3295   },
3296   {
3297     "id": "54fe9391.9e9afc",
3298     "type": "set",
3299     "name": "set  underlay route ids to service data",
3300     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].name' value=\"underlayRouteIds\" />\n<parameter name='service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$tmp.routeString`' />\n\n\n",
3301     "comments": "",
3302     "x": 1927.0006408691406,
3303     "y": 1942.0003986358643,
3304     "z": "afa42c56.2fe06",
3305     "wires": []
3306   },
3307   {
3308     "id": "32bd7569.5de31a",
3309     "type": "set",
3310     "name": "set prop.underlay.routeIds_length=0",
3311     "xml": "<set>\n<parameter name='prop.underlay.routeIds_length' value='0' />\n\n\n\n",
3312     "comments": "",
3313     "x": 474.9961242675781,
3314     "y": 326.9961128234863,
3315     "z": "afa42c56.2fe06",
3316     "wires": []
3317   },
3318   {
3319     "id": "3396ac88.cb4974",
3320     "type": "for",
3321     "name": "for loop uidx - Get route Id from prop.underlay.routeIds",
3322     "xml": "<for index=\"uidx\" start=\"0\" end=\"`$prop.underlay.routeIds_length`\">\n    \n    \n",
3323     "comments": "",
3324     "outputs": 1,
3325     "x": 3518.6630325317383,
3326     "y": 2497.3295001983643,
3327     "z": "afa42c56.2fe06",
3328     "wires": [
3329       [
3330         "48bdd272.66024c"
3331       ]
3332     ]
3333   },
3334   {
3335     "id": "48bdd272.66024c",
3336     "type": "block",
3337     "name": "block atomic",
3338     "xml": "<block atomic=\"true\">\n",
3339     "atomic": "false",
3340     "comments": "",
3341     "outputs": 1,
3342     "x": 3810.3297271728516,
3343     "y": 2497.3295001983643,
3344     "z": "afa42c56.2fe06",
3345     "wires": [
3346       [
3347         "164a1404.cbc8dc"
3348       ]
3349     ]
3350   },
3351   {
3352     "id": "164a1404.cbc8dc",
3353     "type": "switchNode",
3354     "name": "switch prop.hub.siteId",
3355     "xml": "<switch test=\"`$prop.underlay.routeIds[$uidx].hubSiteId == $prop.hub.siteId`\">\n",
3356     "comments": "",
3357     "outputs": 1,
3358     "x": 3999.3297424316406,
3359     "y": 2497.3296632766724,
3360     "z": "afa42c56.2fe06",
3361     "wires": [
3362       [
3363         "beeec1da.addd9"
3364       ]
3365     ]
3366   },
3367   {
3368     "id": "beeec1da.addd9",
3369     "type": "outcomeTrue",
3370     "name": "true",
3371     "xml": "<outcome value='true'>\n",
3372     "comments": "",
3373     "outputs": 1,
3374     "x": 4170.329177856445,
3375     "y": 2497.329662322998,
3376     "z": "afa42c56.2fe06",
3377     "wires": [
3378       [
3379         "8b49993a.fe8e88"
3380       ]
3381     ]
3382   },
3383   {
3384     "id": "8b49993a.fe8e88",
3385     "type": "block",
3386     "name": "block atomic",
3387     "xml": "<block atomic=\"true\">\n",
3388     "atomic": "false",
3389     "comments": "",
3390     "outputs": 1,
3391     "x": 4324.329177856445,
3392     "y": 2501.3296699523926,
3393     "z": "afa42c56.2fe06",
3394     "wires": [
3395       [
3396         "ef00b5c0.d59378"
3397       ]
3398     ]
3399   },
3400   {
3401     "id": "ef00b5c0.d59378",
3402     "type": "set",
3403     "name": "set prop.hubRouteId prop.spokeRouteId",
3404     "xml": "<set>\n<parameter name='prop.hubRouteId' value='`$prop.underlay.routeIds[$uidx].hubRouteId`' />\n<parameter name='prop.spokeRouteId' value='`$prop.underlay.routeIds[$uidx].spokeRouteId`' />\n",
3405     "comments": "",
3406     "x": 4410.32918548584,
3407     "y": 2573.32967376709,
3408     "z": "afa42c56.2fe06",
3409     "wires": []
3410   },
3411   {
3412     "id": "8b3ca259.e59f8",
3413     "type": "switchNode",
3414     "name": "switch underlayRouteIds",
3415     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'underlayRouteIds'`\">\n",
3416     "comments": "",
3417     "outputs": 1,
3418     "x": 3449.99609375,
3419     "y": 593.6627197265625,
3420     "z": "afa42c56.2fe06",
3421     "wires": [
3422       [
3423         "90960264.013bb"
3424       ]
3425     ]
3426   },
3427   {
3428     "id": "90960264.013bb",
3429     "type": "outcomeTrue",
3430     "name": "true",
3431     "xml": "<outcome value='true'>\n",
3432     "comments": "",
3433     "outputs": 1,
3434     "x": 3649.9955711364746,
3435     "y": 581.6628341674805,
3436     "z": "afa42c56.2fe06",
3437     "wires": [
3438       [
3439         "dec6d150.266b1"
3440       ]
3441     ]
3442   },
3443   {
3444     "id": "f1e8e357.7d127",
3445     "type": "set",
3446     "name": "set prop.underlay.routeIds",
3447     "xml": "<set>\n<parameter name='prop.underlay.routeIdsString' value='`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].value`' />\n",
3448     "comments": "",
3449     "x": 4020.996971130371,
3450     "y": 581.2635440826416,
3451     "z": "afa42c56.2fe06",
3452     "wires": []
3453   },
3454   {
3455     "id": "86cead5c.3dd72",
3456     "type": "switchNode",
3457     "name": "switch request-action",
3458     "xml": "<switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>\n",
3459     "comments": "",
3460     "outputs": 1,
3461     "x": 1136.9963836669922,
3462     "y": 2033.329628944397,
3463     "z": "afa42c56.2fe06",
3464     "wires": [
3465       [
3466         "d86f6d8b.19f1b",
3467         "42a75c7f.9dc134"
3468       ]
3469     ]
3470   },
3471   {
3472     "id": "d86f6d8b.19f1b",
3473     "type": "outcome",
3474     "name": "ActivateSDWANAttachmentInstance",
3475     "xml": "<outcome value='ActivateSDWANAttachmentInstance'>",
3476     "comments": "",
3477     "outputs": 1,
3478     "x": 1400.9964294433594,
3479     "y": 1988.329626083374,
3480     "z": "afa42c56.2fe06",
3481     "wires": [
3482       [
3483         "1dbe9d9f.7f9c82"
3484       ]
3485     ]
3486   },
3487   {
3488     "id": "1dbe9d9f.7f9c82",
3489     "type": "block",
3490     "name": "block atomic",
3491     "xml": "<block atomic=\"true\">\n",
3492     "atomic": "false",
3493     "comments": "",
3494     "outputs": 1,
3495     "x": 1642.9689407348633,
3496     "y": 1984.7983770370483,
3497     "z": "afa42c56.2fe06",
3498     "wires": [
3499       [
3500         "54fe9391.9e9afc",
3501         "5d55b77d.4fae98",
3502         "59b1613.c1f67a",
3503         "8abe0b00.ec56e8"
3504       ]
3505     ]
3506   },
3507   {
3508     "id": "a9b02dc4.79bbe",
3509     "type": "block",
3510     "name": "block atomic",
3511     "xml": "<block atomic=\"true\">\n",
3512     "atomic": "false",
3513     "comments": "",
3514     "outputs": 1,
3515     "x": 1646.9689292907715,
3516     "y": 2068.7985458374023,
3517     "z": "afa42c56.2fe06",
3518     "wires": [
3519       [
3520         "ae1dbfd0.9ebac"
3521       ]
3522     ]
3523   },
3524   {
3525     "id": "42a75c7f.9dc134",
3526     "type": "outcome",
3527     "name": "DeactivateSDWANAttachmentInstance",
3528     "xml": "<outcome value='DeactivateSDWANAttachmentInstance'>",
3529     "comments": "",
3530     "outputs": 1,
3531     "x": 1398.4690704345703,
3532     "y": 2070.7983827590942,
3533     "z": "afa42c56.2fe06",
3534     "wires": [
3535       [
3536         "a9b02dc4.79bbe"
3537       ]
3538     ]
3539   },
3540   {
3541     "id": "ae1dbfd0.9ebac",
3542     "type": "set",
3543     "name": "set input parameter length -1",
3544     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length - 1`' />\n\n\n\n\n",
3545     "comments": "",
3546     "x": 1875.6626281738281,
3547     "y": 2067.32963180542,
3548     "z": "afa42c56.2fe06",
3549     "wires": []
3550   },
3551   {
3552     "id": "4d624738.aa86f8",
3553     "type": "comment",
3554     "name": "Get route routes IDs",
3555     "info": "",
3556     "comments": "",
3557     "x": 3418.3294982910156,
3558     "y": 2458.6627368927,
3559     "z": "afa42c56.2fe06",
3560     "wires": []
3561   },
3562   {
3563     "id": "5d55b77d.4fae98",
3564     "type": "set",
3565     "name": "set  underlay route ids to service data",
3566     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$prop.spoke.siteidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1`' />\n\n\n\n\n",
3567     "comments": "",
3568     "x": 1916.329574584961,
3569     "y": 2016.662672996521,
3570     "z": "afa42c56.2fe06",
3571     "wires": []
3572   },
3573   {
3574     "id": "59b1613.c1f67a",
3575     "type": "for",
3576     "name": "for jidx paramidx - Get topology from servicedata",
3577     "xml": "<for index=\"jidx\" start=\"0\" end=\"`$prop.underlay.routeIds_length`\">\n    \n    \n",
3578     "comments": "",
3579     "outputs": 1,
3580     "x": 2005.3294982910156,
3581     "y": 1563.329444885254,
3582     "z": "afa42c56.2fe06",
3583     "wires": [
3584       [
3585         "f4c8ed71.c2698"
3586       ]
3587     ]
3588   },
3589   {
3590     "id": "3450a2a3.3f3b2e",
3591     "type": "execute",
3592     "name": "execute concat",
3593     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$tmp.concat`'/>\n    <parameter name=\"outputPath\" value=\"tmp.concat1\"/>\n    <parameter name=\"target\" value='`$prop.underlay.routeIds[$jidx].hubRouteId`'/>\n\n\n",
3594     "comments": "",
3595     "outputs": 1,
3596     "x": 2189.329833984375,
3597     "y": 1696.9966478347778,
3598     "z": "afa42c56.2fe06",
3599     "wires": [
3600       []
3601     ]
3602   },
3603   {
3604     "id": "5db41da3.1856f4",
3605     "type": "execute",
3606     "name": "execute concat",
3607     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$prop.underlay.routeIds[$jidx].hubSiteId`'/>\n    <parameter name=\"outputPath\" value=\"tmp.concat\"/>\n    <parameter name=\"target\" value=\",\"/>\n\n\n",
3608     "comments": "",
3609     "outputs": 1,
3610     "x": 2199.3298263549805,
3611     "y": 1649.6629858016968,
3612     "z": "afa42c56.2fe06",
3613     "wires": [
3614       []
3615     ]
3616   },
3617   {
3618     "id": "f4c8ed71.c2698",
3619     "type": "block",
3620     "name": "block atomic",
3621     "xml": "<block atomic=\"true\">\n",
3622     "atomic": "false",
3623     "comments": "",
3624     "outputs": 1,
3625     "x": 1912.329517364502,
3626     "y": 1748.6627750396729,
3627     "z": "afa42c56.2fe06",
3628     "wires": [
3629       [
3630         "5db41da3.1856f4",
3631         "3450a2a3.3f3b2e",
3632         "46517f63.3d70e",
3633         "74bf87c6.f701b8",
3634         "ec44da8a.7837c8",
3635         "f31858ee.e326d8"
3636       ]
3637     ]
3638   },
3639   {
3640     "id": "46517f63.3d70e",
3641     "type": "execute",
3642     "name": "execute concat",
3643     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$tmp.concat1`'/>\n    <parameter name=\"outputPath\" value=\"tmp.concat2\"/>\n    <parameter name=\"target\" value=\",\"/>\n\n\n",
3644     "comments": "",
3645     "outputs": 1,
3646     "x": 2196.3295364379883,
3647     "y": 1736.6628789901733,
3648     "z": "afa42c56.2fe06",
3649     "wires": [
3650       []
3651     ]
3652   },
3653   {
3654     "id": "74bf87c6.f701b8",
3655     "type": "execute",
3656     "name": "execute concat",
3657     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$tmp.concat2`'/>\n    <parameter name=\"outputPath\" value=\"tmp.concat3\"/>\n    <parameter name=\"target\" value='`$prop.underlay.routeIds[$jidx].spokeRouteId`'/>\n\n\n",
3658     "comments": "",
3659     "outputs": 1,
3660     "x": 2196.3295364379883,
3661     "y": 1772.6628789901733,
3662     "z": "afa42c56.2fe06",
3663     "wires": [
3664       []
3665     ]
3666   },
3667   {
3668     "id": "ec44da8a.7837c8",
3669     "type": "execute",
3670     "name": "execute concat",
3671     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$tmp.concat3`'/>\n    <parameter name=\"outputPath\" value=\"tmp.concat4\"/>\n    <parameter name=\"target\" value=\" | \"/>\n\n\n",
3672     "comments": "",
3673     "outputs": 1,
3674     "x": 2189.3295364379883,
3675     "y": 1812.9962530136108,
3676     "z": "afa42c56.2fe06",
3677     "wires": [
3678       []
3679     ]
3680   },
3681   {
3682     "id": "f31858ee.e326d8",
3683     "type": "execute",
3684     "name": "execute concat",
3685     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n    <parameter name=\"source\" value='`$tmp.routeString`'/>\n    <parameter name=\"outputPath\" value=\"tmp.routeString\"/>\n    <parameter name=\"target\" value='`$tmp.concat4`'/>\n\n\n",
3686     "comments": "",
3687     "outputs": 1,
3688     "x": 2192.329475402832,
3689     "y": 1867.6627922058105,
3690     "z": "afa42c56.2fe06",
3691     "wires": [
3692       []
3693     ]
3694   },
3695   {
3696     "id": "8abe0b00.ec56e8",
3697     "type": "set",
3698     "name": "Set tmp.routeString",
3699     "xml": "<set>\n<parameter name='tmp.routeString' value=\"\" />\n\n",
3700     "comments": "",
3701     "x": 1909.3294982910156,
3702     "y": 1504.6627759933472,
3703     "z": "afa42c56.2fe06",
3704     "wires": []
3705   },
3706   {
3707     "id": "dec6d150.266b1",
3708     "type": "block",
3709     "name": "block atomic",
3710     "xml": "<block atomic=\"true\">\n",
3711     "atomic": "false",
3712     "comments": "",
3713     "outputs": 1,
3714     "x": 3797.9963188171387,
3715     "y": 627.9961318969727,
3716     "z": "afa42c56.2fe06",
3717     "wires": [
3718       [
3719         "f1e8e357.7d127",
3720         "38377ec9.53b982"
3721       ]
3722     ]
3723   },
3724   {
3725     "id": "38377ec9.53b982",
3726     "type": "execute",
3727     "name": "execute split |",
3728     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.underlay.routeIdsString`'/>\n<parameter name=\"regex\" value=\" | \"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.underlay.routeIdsValue\"/>\n",
3729     "comments": "",
3730     "outputs": 1,
3731     "x": 3975.9963302612305,
3732     "y": 647.9961318969727,
3733     "z": "afa42c56.2fe06",
3734     "wires": [
3735       [
3736         "3268a5b9.fb215a",
3737         "c3ab3d57.d9ba"
3738       ]
3739     ]
3740   },
3741   {
3742     "id": "c3ab3d57.d9ba",
3743     "type": "failure",
3744     "name": "success",
3745     "xml": "<outcome value='success'>\n",
3746     "comments": "",
3747     "outputs": 1,
3748     "x": 4152.9963455200195,
3749     "y": 628.9961309432983,
3750     "z": "afa42c56.2fe06",
3751     "wires": [
3752       [
3753         "d7617cb0.7601e"
3754       ]
3755     ]
3756   },
3757   {
3758     "id": "3268a5b9.fb215a",
3759     "type": "failure",
3760     "name": "failure",
3761     "xml": "<outcome value='failure'>\n",
3762     "comments": "",
3763     "outputs": 1,
3764     "x": 4141.9963455200195,
3765     "y": 676.996132850647,
3766     "z": "afa42c56.2fe06",
3767     "wires": [
3768       [
3769         "d317db0c.b51f88"
3770       ]
3771     ]
3772   },
3773   {
3774     "id": "82fa522b.8f097",
3775     "type": "set",
3776     "name": "set ipAddress prefixLength",
3777     "xml": "<set>\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].hubSiteId' value='`$prop.underlay.routeIdsValues[0]`' />\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].hubRouteId' value='`$prop.underlay.routeIdsValues[1]`' />\n<parameter name='prop.underlay.routeIds[$prop.underlay.routeIds_length].spokeRouteId' value='`$prop.underlay.routeIdsValues[2]`' />",
3778     "comments": "",
3779     "x": 5338.997211456299,
3780     "y": 562.9963731765747,
3781     "z": "afa42c56.2fe06",
3782     "wires": []
3783   },
3784   {
3785     "id": "d317db0c.b51f88",
3786     "type": "block",
3787     "name": "block",
3788     "xml": "<block>\n",
3789     "atomic": "false",
3790     "comments": "",
3791     "outputs": 1,
3792     "x": 4271.996349334717,
3793     "y": 676.996132850647,
3794     "z": "afa42c56.2fe06",
3795     "wires": [
3796       []
3797     ]
3798   },
3799   {
3800     "id": "d7617cb0.7601e",
3801     "type": "for",
3802     "name": "for loop ridx ",
3803     "xml": "<for index=\"ridx\" start=\"0\" end=\"`$prop.underlay.routeIdsValue_length`\">\n    \n    \n",
3804     "comments": "",
3805     "outputs": 1,
3806     "x": 4298.996032714844,
3807     "y": 626.9961309432983,
3808     "z": "afa42c56.2fe06",
3809     "wires": [
3810       [
3811         "bae53b24.86f3f8"
3812       ]
3813     ]
3814   },
3815   {
3816     "id": "bae53b24.86f3f8",
3817     "type": "block",
3818     "name": "block atomic",
3819     "xml": "<block atomic=\"true\">\n",
3820     "atomic": "false",
3821     "comments": "",
3822     "outputs": 1,
3823     "x": 4477.329044342041,
3824     "y": 623.9961318969727,
3825     "z": "afa42c56.2fe06",
3826     "wires": [
3827       [
3828         "95e8ce94.9a6d1"
3829       ]
3830     ]
3831   },
3832   {
3833     "id": "95e8ce94.9a6d1",
3834     "type": "execute",
3835     "name": "execute split ,",
3836     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.underlay.routeIdsValue[$ridx]`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.underlay.routeIdsValues\"/>\n",
3837     "comments": "",
3838     "outputs": 1,
3839     "x": 4652.329055786133,
3840     "y": 622.996129989624,
3841     "z": "afa42c56.2fe06",
3842     "wires": [
3843       [
3844         "17ee1f73.6ce3e1",
3845         "32bb2edf.2bc022"
3846       ]
3847     ]
3848   },
3849   {
3850     "id": "17ee1f73.6ce3e1",
3851     "type": "failure",
3852     "name": "success",
3853     "xml": "<outcome value='success'>\n",
3854     "comments": "",
3855     "outputs": 1,
3856     "x": 4809.32905960083,
3857     "y": 599.9961376190186,
3858     "z": "afa42c56.2fe06",
3859     "wires": [
3860       [
3861         "25d53393.ccdc7c"
3862       ]
3863     ]
3864   },
3865   {
3866     "id": "32bb2edf.2bc022",
3867     "type": "failure",
3868     "name": "failure",
3869     "xml": "<outcome value='failure'>\n",
3870     "comments": "",
3871     "outputs": 1,
3872     "x": 4798.32905960083,
3873     "y": 647.9961395263672,
3874     "z": "afa42c56.2fe06",
3875     "wires": [
3876       [
3877         "e299e773.789348"
3878       ]
3879     ]
3880   },
3881   {
3882     "id": "e299e773.789348",
3883     "type": "block",
3884     "name": "block",
3885     "xml": "<block>\n",
3886     "atomic": "false",
3887     "comments": "",
3888     "outputs": 1,
3889     "x": 4928.329063415527,
3890     "y": 647.9961395263672,
3891     "z": "afa42c56.2fe06",
3892     "wires": [
3893       []
3894     ]
3895   },
3896   {
3897     "id": "cee6dd44.82ca8",
3898     "type": "block",
3899     "name": "block atomic",
3900     "xml": "<block atomic=\"true\">\n",
3901     "atomic": "false",
3902     "comments": "",
3903     "outputs": 1,
3904     "x": 5131.661590576172,
3905     "y": 578.9962916374207,
3906     "z": "afa42c56.2fe06",
3907     "wires": [
3908       [
3909         "82fa522b.8f097",
3910         "e872fc0f.e3138"
3911       ]
3912     ]
3913   },
3914   {
3915     "id": "e872fc0f.e3138",
3916     "type": "set",
3917     "name": "set ipAddress prefixLength",
3918     "xml": "<set>\n<parameter name='prop.underlay.routeIds_length' value='`$prop.underlay.routeIds_length + 1`' />\n",
3919     "comments": "",
3920     "x": 5331.329250335693,
3921     "y": 604.996169090271,
3922     "z": "afa42c56.2fe06",
3923     "wires": []
3924   },
3925   {
3926     "id": "25d53393.ccdc7c",
3927     "type": "switchNode",
3928     "name": "switch prop.underlay.routeIdsValues_length",
3929     "xml": "<switch test='`$prop.underlay.routeIdsValues_length`'>\n",
3930     "comments": "",
3931     "outputs": 1,
3932     "x": 5007.663215637207,
3933     "y": 480.9961624145508,
3934     "z": "afa42c56.2fe06",
3935     "wires": [
3936       [
3937         "1988903d.6e7c9",
3938         "31c7868c.1d918a"
3939       ]
3940     ]
3941   },
3942   {
3943     "id": "1988903d.6e7c9",
3944     "type": "outcome",
3945     "name": "3",
3946     "xml": "<outcome value='3'>\n",
3947     "comments": "",
3948     "outputs": 1,
3949     "x": 5242.632148742676,
3950     "y": 517.9648895263672,
3951     "z": "afa42c56.2fe06",
3952     "wires": [
3953       [
3954         "cee6dd44.82ca8"
3955       ]
3956     ]
3957   },
3958   {
3959     "id": "31c7868c.1d918a",
3960     "type": "other",
3961     "name": "other",
3962     "xml": "<outcome value='Other'>\n",
3963     "comments": "",
3964     "outputs": 1,
3965     "x": 5259.663074493408,
3966     "y": 399.99610328674316,
3967     "z": "afa42c56.2fe06",
3968     "wires": [
3969       [
3970         "c3b9df69.c6c78"
3971       ]
3972     ]
3973   },
3974   {
3975     "id": "c3b9df69.c6c78",
3976     "type": "block",
3977     "name": "block",
3978     "xml": "<block>\n",
3979     "atomic": "false",
3980     "comments": "",
3981     "outputs": 1,
3982     "x": 5420.66259765625,
3983     "y": 439.99609375,
3984     "z": "afa42c56.2fe06",
3985     "wires": [
3986       []
3987     ]
3988   },
3989   {
3990     "id": "2fd2f3c1.09b97c",
3991     "type": "returnFailure",
3992     "name": "return failure",
3993     "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",
3994     "comments": "",
3995     "x": 2900.002540588379,
3996     "y": 1013.3028502464294,
3997     "z": "afa42c56.2fe06",
3998     "wires": []
3999   },
4000   {
4001     "id": "18ba51e1.01a3be",
4002     "type": "block",
4003     "name": "block",
4004     "xml": "<block>\n",
4005     "atomic": "false",
4006     "comments": "",
4007     "outputs": 1,
4008     "x": 2886.0020484924316,
4009     "y": 961.9692711830139,
4010     "z": "afa42c56.2fe06",
4011     "wires": [
4012       []
4013     ]
4014   },
4015   {
4016     "id": "f41a7058.b220e",
4017     "type": "set",
4018     "name": "hardcode hub route",
4019     "xml": "<set>\n<parameter name='prop.hub.ipAddress' value=\"10.2.0.2\" />\n<parameter name='prop.hub.providerIpAddress' value=\"10.2.0.0/16\" />\n\n\n",
4020     "comments": "",
4021     "x": 3420.0038681030273,
4022     "y": 1853.0039892196655,
4023     "z": "afa42c56.2fe06",
4024     "wires": []
4025   },
4026   {
4027     "id": "57accb29.01bb34",
4028     "type": "set",
4029     "name": "hardcode spoke route",
4030     "xml": "<set>\n<parameter name='prop.spoke.ipAddress' value=\"10.3.0.1\" />\n<parameter name='prop.spoke.providerIpAddress' value=\"10.3.0.0/16\" />",
4031     "comments": "",
4032     "x": 3435.004409790039,
4033     "y": 2051.0039653778076,
4034     "z": "afa42c56.2fe06",
4035     "wires": []
4036   },
4037   {
4038     "id": "a8dab23b.85144",
4039     "type": "set",
4040     "name": "hardcode hub route",
4041     "xml": "<set>\n<parameter name='prop.hub.ipAddress' value=\"10.2.0.2\" />\n<parameter name='prop.hub.providerIpAddress' value=\"10.2.0.0/16\" />\n\n\n",
4042     "comments": "",
4043     "x": 3470.333251953125,
4044     "y": 2532,
4045     "z": "afa42c56.2fe06",
4046     "wires": []
4047   },
4048   {
4049     "id": "3c48a4f4.f048ec",
4050     "type": "set",
4051     "name": "hardcode spoke route",
4052     "xml": "<set>\n<parameter name='prop.spoke.ipAddress' value=\"10.3.0.1\" />\n<parameter name='prop.spoke.providerIpAddress' value=\"10.3.0.0/16\" />",
4053     "comments": "",
4054     "x": 3476.333251953125,
4055     "y": 2639,
4056     "z": "afa42c56.2fe06",
4057     "wires": []
4058   }
4059 ]