Refactored SOTN and SDWAN DG
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_sdwan-wanport-vnf-topology-operation-underlay.json
1 [
2   {
3     "id": "df1ca662.8747b8",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 92,
8     "y": 26,
9     "z": "ea31d3f9.c58ce",
10     "wires": [
11       [
12         "f03eb016.75be2"
13       ]
14     ]
15   },
16   {
17     "id": "f03eb016.75be2",
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": 208.2856903076172,
26     "y": 77.23810768127441,
27     "z": "ea31d3f9.c58ce",
28     "wires": [
29       [
30         "d1c55e79.a107d"
31       ]
32     ]
33   },
34   {
35     "id": "d1c55e79.a107d",
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": 211.42861938476562,
42     "y": 162.00003147125244,
43     "z": "ea31d3f9.c58ce",
44     "wires": [
45       [
46         "39b0cbc5.a6e634"
47       ]
48     ]
49   },
50   {
51     "id": "39b0cbc5.a6e634",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 143.66668701171875,
58     "y": 270.66673278808594,
59     "z": "ea31d3f9.c58ce",
60     "wires": [
61       [
62         "6e5ac20d.e60c4c",
63         "b99b3963.4b1368",
64         "962ad5c3.0da1a8",
65         "da982ae7.c19088",
66         "546d6174.f994f"
67       ]
68     ]
69   },
70   {
71     "id": "6e5ac20d.e60c4c",
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": 578.000431060791,
78     "y": 409.6668539047241,
79     "z": "ea31d3f9.c58ce",
80     "wires": [
81       [
82         "ad0a3663.ab8598"
83       ]
84     ]
85   },
86   {
87     "id": "2acab811.c13ee8",
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": 1368.0013427734375,
93     "y": 98.96877861022949,
94     "z": "ea31d3f9.c58ce",
95     "wires": []
96   },
97   {
98     "id": "4102e103.78e0d",
99     "type": "comment",
100     "name": "Query MDSAL for AR",
101     "info": "",
102     "comments": "",
103     "x": 1693.3340148925781,
104     "y": 122.96864795684814,
105     "z": "ea31d3f9.c58ce",
106     "wires": []
107   },
108   {
109     "id": "2988c3dc.9f08bc",
110     "type": "comment",
111     "name": "Query MDSAL to get parent service based on service instance id from AR",
112     "info": "",
113     "comments": "",
114     "x": 2163.334873199463,
115     "y": 141.96862697601318,
116     "z": "ea31d3f9.c58ce",
117     "wires": []
118   },
119   {
120     "id": "43ba54c6.bea31c",
121     "type": "success",
122     "name": "success",
123     "xml": "<outcome value='success'>\n",
124     "comments": "",
125     "outputs": 1,
126     "x": 1942.66841506958,
127     "y": 177.63526725769043,
128     "z": "ea31d3f9.c58ce",
129     "wires": [
130       [
131         "90fef119.efb27"
132       ]
133     ]
134   },
135   {
136     "id": "90fef119.efb27",
137     "type": "block",
138     "name": "block: atomic",
139     "xml": "<block atomic=\"true\">\n",
140     "atomic": "false",
141     "comments": "",
142     "outputs": 1,
143     "x": 2097.668254852295,
144     "y": 177.13510036468506,
145     "z": "ea31d3f9.c58ce",
146     "wires": [
147       [
148         "3f50e700.ebbfb8"
149       ]
150     ]
151   },
152   {
153     "id": "22fe4487.ea79bc",
154     "type": "other",
155     "name": "outcome 1",
156     "xml": "<outcome value='1'>\n",
157     "comments": "",
158     "outputs": 1,
159     "x": 2421.3587913513184,
160     "y": 173.75424098968506,
161     "z": "ea31d3f9.c58ce",
162     "wires": [
163       [
164         "eb3089e9.bab518"
165       ]
166     ]
167   },
168   {
169     "id": "202db162.ce306e",
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": 2567.1275672912598,
175     "y": 213.20122909545898,
176     "z": "ea31d3f9.c58ce",
177     "wires": []
178   },
179   {
180     "id": "b9e47095.da1a3",
181     "type": "other",
182     "name": "other",
183     "xml": "<outcome value='Other'>\n",
184     "comments": "",
185     "outputs": 1,
186     "x": 1935.5201416015625,
187     "y": 224.70127391815186,
188     "z": "ea31d3f9.c58ce",
189     "wires": [
190       [
191         "1559b306.93fa9d"
192       ]
193     ]
194   },
195   {
196     "id": "1559b306.93fa9d",
197     "type": "block",
198     "name": "block: atomic",
199     "xml": "<block atomic=\"true\">\n",
200     "atomic": "false",
201     "comments": "",
202     "outputs": 1,
203     "x": 2085.5199851989746,
204     "y": 225.36782932281494,
205     "z": "ea31d3f9.c58ce",
206     "wires": [
207       [
208         "6807513b.840e7"
209       ]
210     ]
211   },
212   {
213     "id": "d76066f5.ec2ac8",
214     "type": "other",
215     "name": "other",
216     "xml": "<outcome value='Other'>\n",
217     "comments": "",
218     "outputs": 1,
219     "x": 2409.6867446899414,
220     "y": 211.03460121154785,
221     "z": "ea31d3f9.c58ce",
222     "wires": [
223       [
224         "202db162.ce306e"
225       ]
226     ]
227   },
228   {
229     "id": "3f50e700.ebbfb8",
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": 2261.668430328369,
236     "y": 177.6352834701538,
237     "z": "ea31d3f9.c58ce",
238     "wires": [
239       [
240         "22fe4487.ea79bc",
241         "d76066f5.ec2ac8"
242       ]
243     ]
244   },
245   {
246     "id": "1ecae18f.8c5d6e",
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": 2817.0020294189453,
252     "y": 174.63526439666748,
253     "z": "ea31d3f9.c58ce",
254     "wires": []
255   },
256   {
257     "id": "eb3089e9.bab518",
258     "type": "block",
259     "name": "block: atomic",
260     "xml": "<block atomic='true'>\n",
261     "atomic": "false",
262     "comments": "",
263     "outputs": 1,
264     "x": 2571.4778213500977,
265     "y": 173.80180072784424,
266     "z": "ea31d3f9.c58ce",
267     "wires": [
268       [
269         "1ecae18f.8c5d6e",
270         "c22c6bf7.654618"
271       ]
272     ]
273   },
274   {
275     "id": "6807513b.840e7",
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": 2253.001438140869,
281     "y": 223.63520526885986,
282     "z": "ea31d3f9.c58ce",
283     "wires": []
284   },
285   {
286     "id": "bc09ac7e.2dfa1",
287     "type": "success",
288     "name": "success",
289     "xml": "<outcome value='success'>\n",
290     "comments": "",
291     "outputs": 1,
292     "x": 2040.303554534912,
293     "y": 495.7709312438965,
294     "z": "ea31d3f9.c58ce",
295     "wires": [
296       [
297         "4a6d5f3.c343ea"
298       ]
299     ]
300   },
301   {
302     "id": "f0b156c6.5db3a8",
303     "type": "other",
304     "name": "other",
305     "xml": "<outcome value='Other'>\n",
306     "comments": "",
307     "outputs": 1,
308     "x": 2032.1553573608398,
309     "y": 530.8370161056519,
310     "z": "ea31d3f9.c58ce",
311     "wires": [
312       [
313         "22ca566e.18afda"
314       ]
315     ]
316   },
317   {
318     "id": "22ca566e.18afda",
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": 2178.304130554199,
324     "y": 531.1045122146606,
325     "z": "ea31d3f9.c58ce",
326     "wires": []
327   },
328   {
329     "id": "4a6d5f3.c343ea",
330     "type": "block",
331     "name": "block",
332     "xml": "<block>\n",
333     "atomic": "false",
334     "comments": "",
335     "outputs": 1,
336     "x": 2160.3038024902344,
337     "y": 495.771014213562,
338     "z": "ea31d3f9.c58ce",
339     "wires": [
340       []
341     ]
342   },
343   {
344     "id": "c9fcea4f.295c68",
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": 1723.6683502197266,
351     "y": 595.3028893470764,
352     "z": "ea31d3f9.c58ce",
353     "wires": [
354       [
355         "d063fbaf.bf9cb8"
356       ]
357     ]
358   },
359   {
360     "id": "4b3c3b19.b12c44",
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": 2253.3349838256836,
367     "y": 564.3028907775879,
368     "z": "ea31d3f9.c58ce",
369     "wires": [
370       [
371         "353c03be.8a3dec"
372       ]
373     ]
374   },
375   {
376     "id": "353c03be.8a3dec",
377     "type": "outcomeTrue",
378     "name": "true",
379     "xml": "<outcome value='true'>\n",
380     "comments": "",
381     "outputs": 1,
382     "x": 2505.334518432617,
383     "y": 565.3028283119202,
384     "z": "ea31d3f9.c58ce",
385     "wires": [
386       [
387         "8948df3b.5b4e8"
388       ]
389     ]
390   },
391   {
392     "id": "8948df3b.5b4e8",
393     "type": "set",
394     "name": "set tmp.pnidx ",
395     "xml": "<set>\n<parameter name='tmp.pnidx' value='`$pnidx`' />\n\n",
396     "comments": "",
397     "x": 2661.3342056274414,
398     "y": 565.3028283119202,
399     "z": "ea31d3f9.c58ce",
400     "wires": []
401   },
402   {
403     "id": "f17464be.205b38",
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": 1655.3351593017578,
410     "y": 680.3025188446045,
411     "z": "ea31d3f9.c58ce",
412     "wires": [
413       [
414         "a24202ba.c8c7c"
415       ]
416     ]
417   },
418   {
419     "id": "1134832c.af388d",
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": 2107.335250854492,
426     "y": 659.3024244308472,
427     "z": "ea31d3f9.c58ce",
428     "wires": [
429       [
430         "b4638122.81f25"
431       ]
432     ]
433   },
434   {
435     "id": "b4638122.81f25",
436     "type": "outcomeTrue",
437     "name": "true",
438     "xml": "<outcome value='true'>\n",
439     "comments": "",
440     "outputs": 1,
441     "x": 2258.335262298584,
442     "y": 657.3024663925171,
443     "z": "ea31d3f9.c58ce",
444     "wires": [
445       [
446         "6ab1ecb6.c4b6a4"
447       ]
448     ]
449   },
450   {
451     "id": "6ab1ecb6.c4b6a4",
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": 2399.334991455078,
457     "y": 656.9024000167847,
458     "z": "ea31d3f9.c58ce",
459     "wires": []
460   },
461   {
462     "id": "427fd71a.a641b8",
463     "type": "switchNode",
464     "name": "switch tmp.pnidx ",
465     "xml": "<switch test=\"`$tmp.pnidx`\">\n\n",
466     "comments": "",
467     "outputs": 1,
468     "x": 1626.334976196289,
469     "y": 639.9690914154053,
470     "z": "ea31d3f9.c58ce",
471     "wires": [
472       [
473         "3b308668.883fda"
474       ]
475     ]
476   },
477   {
478     "id": "3b308668.883fda",
479     "type": "outcome",
480     "name": "NULL",
481     "xml": "<outcome value=''>\n",
482     "comments": "",
483     "outputs": 1,
484     "x": 1781.7636489868164,
485     "y": 638.5404710769653,
486     "z": "ea31d3f9.c58ce",
487     "wires": [
488       [
489         "1025ab31.d734f5"
490       ]
491     ]
492   },
493   {
494     "id": "1025ab31.d734f5",
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": 1922.1922721862793,
500     "y": 639.6835603713989,
501     "z": "ea31d3f9.c58ce",
502     "wires": []
503   },
504   {
505     "id": "3aec24fb.014f5c",
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": 1534.3348426818848,
512     "y": 742.3023405075073,
513     "z": "ea31d3f9.c58ce",
514     "wires": [
515       [
516         "11a1e34f.7c4fdd",
517         "32341b46.a26b84"
518       ]
519     ]
520   },
521   {
522     "id": "11a1e34f.7c4fdd",
523     "type": "outcomeTrue",
524     "name": "true",
525     "xml": "<outcome value='true'>\n",
526     "comments": "",
527     "outputs": 1,
528     "x": 1724.334529876709,
529     "y": 767.3028259277344,
530     "z": "ea31d3f9.c58ce",
531     "wires": [
532       [
533         "26c0cc7e.899014"
534       ]
535     ]
536   },
537   {
538     "id": "32341b46.a26b84",
539     "type": "outcomeTrue",
540     "name": "false",
541     "xml": "<outcome value='false'>\n",
542     "comments": "",
543     "outputs": 1,
544     "x": 1718.3354568481445,
545     "y": 728.3024883270264,
546     "z": "ea31d3f9.c58ce",
547     "wires": [
548       [
549         "92373ae3.dba458"
550       ]
551     ]
552   },
553   {
554     "id": "92373ae3.dba458",
555     "type": "block",
556     "name": "block",
557     "xml": "<block>\n",
558     "atomic": "false",
559     "comments": "",
560     "outputs": 1,
561     "x": 1854.3354606628418,
562     "y": 728.3024272918701,
563     "z": "ea31d3f9.c58ce",
564     "wires": [
565       []
566     ]
567   },
568   {
569     "id": "26c0cc7e.899014",
570     "type": "block",
571     "name": "block: atomic",
572     "xml": "<block atomic=\"true\">\n",
573     "atomic": "false",
574     "comments": "",
575     "outputs": 1,
576     "x": 1729.66748046875,
577     "y": 835.3020601272583,
578     "z": "ea31d3f9.c58ce",
579     "wires": [
580       [
581         "a5cfaff.0a25c5"
582       ]
583     ]
584   },
585   {
586     "id": "a5cfaff.0a25c5",
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": 2137.000732421875,
593     "y": 835.6356782913208,
594     "z": "ea31d3f9.c58ce",
595     "wires": [
596       [
597         "528bb6e8.287b28"
598       ]
599     ]
600   },
601   {
602     "id": "45c7f2c8.9bbc9c",
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": 2228.0018463134766,
608     "y": 913.6359763145447,
609     "z": "ea31d3f9.c58ce",
610     "wires": []
611   },
612   {
613     "id": "d3076636.df66e8",
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": 2246.0025482177734,
620     "y": 1024.302767753601,
621     "z": "ea31d3f9.c58ce",
622     "wires": [
623       [
624         "94a7fcab.3f18"
625       ]
626     ]
627   },
628   {
629     "id": "e9ad6cc9.abb1",
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": 2655.002658843994,
636     "y": 1027.3028545379639,
637     "z": "ea31d3f9.c58ce",
638     "wires": [
639       [
640         "356c0745.261588"
641       ]
642     ]
643   },
644   {
645     "id": "356c0745.261588",
646     "type": "outcomeTrue",
647     "name": "true",
648     "xml": "<outcome value='true'>\n",
649     "comments": "",
650     "outputs": 1,
651     "x": 2796.0029907226562,
652     "y": 1026.3028535842896,
653     "z": "ea31d3f9.c58ce",
654     "wires": [
655       [
656         "2ecc17c9.bbea08"
657       ]
658     ]
659   },
660   {
661     "id": "2ecc17c9.bbea08",
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": 2937.0030250549316,
667     "y": 1027.9027452468872,
668     "z": "ea31d3f9.c58ce",
669     "wires": []
670   },
671   {
672     "id": "7d6e3904.ff8ae8",
673     "type": "success",
674     "name": "success",
675     "xml": "<outcome value='success'>\n",
676     "comments": "",
677     "outputs": 1,
678     "x": 2732.0020446777344,
679     "y": 930.969269990921,
680     "z": "ea31d3f9.c58ce",
681     "wires": [
682       [
683         "92d1a6eb.dd91a8"
684       ]
685     ]
686   },
687   {
688     "id": "b0148b51.89ec18",
689     "type": "other",
690     "name": "other",
691     "xml": "<outcome value='Other'>\n",
692     "comments": "",
693     "outputs": 1,
694     "x": 2728.8537673950195,
695     "y": 985.0353531837463,
696     "z": "ea31d3f9.c58ce",
697     "wires": [
698       [
699         "c6ccd14a.96548"
700       ]
701     ]
702   },
703   {
704     "id": "59d6c0f4.defd7",
705     "type": "switchNode",
706     "name": "switch role hub",
707     "xml": "<switch test=\"`$prop.role == hub`\">\n",
708     "comments": "",
709     "outputs": 1,
710     "x": 2112.3351821899414,
711     "y": 1089.6358079910278,
712     "z": "ea31d3f9.c58ce",
713     "wires": [
714       [
715         "d2d633b9.72ffd",
716         "10c92564.7d8f7b"
717       ]
718     ]
719   },
720   {
721     "id": "a9370615.1e0a18",
722     "type": "block",
723     "name": "block",
724     "xml": "<block>\n",
725     "atomic": "false",
726     "comments": "",
727     "outputs": 1,
728     "x": 2428.3345680236816,
729     "y": 1065.6354112625122,
730     "z": "ea31d3f9.c58ce",
731     "wires": [
732       []
733     ]
734   },
735   {
736     "id": "f944f364.78c47",
737     "type": "success",
738     "name": "success",
739     "xml": "<outcome value='success'>\n",
740     "comments": "",
741     "outputs": 1,
742     "x": 2838.3042030334473,
743     "y": 1161.1045179367065,
744     "z": "ea31d3f9.c58ce",
745     "wires": [
746       [
747         "b250bb74.e941e8"
748       ]
749     ]
750   },
751   {
752     "id": "e08d96d8.e1bd48",
753     "type": "other",
754     "name": "other",
755     "xml": "<outcome value='Other'>\n",
756     "comments": "",
757     "outputs": 1,
758     "x": 2840.155773162842,
759     "y": 1221.170599937439,
760     "z": "ea31d3f9.c58ce",
761     "wires": [
762       [
763         "d9301d98.96024"
764       ]
765     ]
766   },
767   {
768     "id": "d9301d98.96024",
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": 2984.304546356201,
774     "y": 1183.4380140304565,
775     "z": "ea31d3f9.c58ce",
776     "wires": []
777   },
778   {
779     "id": "b250bb74.e941e8",
780     "type": "block",
781     "name": "block",
782     "xml": "<block>\n",
783     "atomic": "false",
784     "comments": "",
785     "outputs": 1,
786     "x": 2968.3042221069336,
787     "y": 1150.1046781539917,
788     "z": "ea31d3f9.c58ce",
789     "wires": [
790       []
791     ]
792   },
793   {
794     "id": "31ca4096.fa657",
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": 2440.3356018066406,
800     "y": 1149.6360107660294,
801     "z": "ea31d3f9.c58ce",
802     "wires": []
803   },
804   {
805     "id": "3250db4e.aae6c4",
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": 2484.0020751953125,
812     "y": 1271.6358003616333,
813     "z": "ea31d3f9.c58ce",
814     "wires": [
815       [
816         "5be088b1.9bd9d8"
817       ]
818     ]
819   },
820   {
821     "id": "5be088b1.9bd9d8",
822     "type": "block",
823     "name": "block atmoic",
824     "xml": "<block atomic=\"true\">\n",
825     "atomic": "false",
826     "comments": "",
827     "outputs": 1,
828     "x": 2830.6683959960938,
829     "y": 1261.6357765197754,
830     "z": "ea31d3f9.c58ce",
831     "wires": [
832       [
833         "b0a1b0f0.1cd88",
834         "64161d13.320da4",
835         "a305e869.75b198"
836       ]
837     ]
838   },
839   {
840     "id": "b0a1b0f0.1cd88",
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": 3092.668504714966,
847     "y": 1232.6367359161377,
848     "z": "ea31d3f9.c58ce",
849     "wires": [
850       [
851         "f4aa7045.eb114"
852       ]
853     ]
854   },
855   {
856     "id": "494b8c51.d5a454",
857     "type": "switchNode",
858     "name": "switch tmp.wanportvidx ",
859     "xml": "<switch test=\"`$tmp.wanportvidx`\">\n\n",
860     "comments": "",
861     "outputs": 1,
862     "x": 2565.668212890625,
863     "y": 1316.3024454116821,
864     "z": "ea31d3f9.c58ce",
865     "wires": [
866       [
867         "a2447b78.519d38"
868       ]
869     ]
870   },
871   {
872     "id": "273881de.ee082e",
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": 3747.6689834594727,
879     "y": 1225.6369161605835,
880     "z": "ea31d3f9.c58ce",
881     "wires": [
882       [
883         "b8659698.4fa9a8"
884       ]
885     ]
886   },
887   {
888     "id": "a2447b78.519d38",
889     "type": "outcome",
890     "name": "NULL",
891     "xml": "<outcome value=''>\n",
892     "comments": "",
893     "outputs": 1,
894     "x": 2737.096935272217,
895     "y": 1319.8741512298584,
896     "z": "ea31d3f9.c58ce",
897     "wires": [
898       [
899         "f6e26890.4d8a38"
900       ]
901     ]
902   },
903   {
904     "id": "f6e26890.4d8a38",
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": 2881.525650024414,
910     "y": 1322.0174312591553,
911     "z": "ea31d3f9.c58ce",
912     "wires": []
913   },
914   {
915     "id": "f4aa7045.eb114",
916     "type": "outcomeTrue",
917     "name": "true",
918     "xml": "<outcome value='true'>\n",
919     "comments": "",
920     "outputs": 1,
921     "x": 3320.66819190979,
922     "y": 1230.636736869812,
923     "z": "ea31d3f9.c58ce",
924     "wires": [
925       [
926         "ab1ef1f9.e54ea"
927       ]
928     ]
929   },
930   {
931     "id": "b8659698.4fa9a8",
932     "type": "block",
933     "name": "block atomic",
934     "xml": "<block atomic=\"true\">\n",
935     "atomic": "false",
936     "comments": "",
937     "outputs": 1,
938     "x": 3699.6701984405518,
939     "y": 1309.6374425888062,
940     "z": "ea31d3f9.c58ce",
941     "wires": [
942       [
943         "79f89faa.fb19f"
944       ]
945     ]
946   },
947   {
948     "id": "79f89faa.fb19f",
949     "type": "switchNode",
950     "name": "switch transportNetworkName",
951     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'transportNetworkName'`\">\n",
952     "comments": "",
953     "outputs": 1,
954     "x": 3917.6711139678955,
955     "y": 1307.6379308700562,
956     "z": "ea31d3f9.c58ce",
957     "wires": [
958       [
959         "863adb79.9947c8"
960       ]
961     ]
962   },
963   {
964     "id": "564bf8e9.5ea9e8",
965     "type": "set",
966     "name": "set tmp.portvidx ",
967     "xml": "<set>\n<parameter name='tmp.portvidx' value='`$arvidx`' />\n\n",
968     "comments": "",
969     "x": 3644.667995452881,
970     "y": 1183.6369037628174,
971     "z": "ea31d3f9.c58ce",
972     "wires": []
973   },
974   {
975     "id": "863adb79.9947c8",
976     "type": "outcomeTrue",
977     "name": "true",
978     "xml": "<outcome value='true'>\n",
979     "comments": "",
980     "outputs": 1,
981     "x": 4114.671541213989,
982     "y": 1306.6380996704102,
983     "z": "ea31d3f9.c58ce",
984     "wires": [
985       [
986         "896da4ec.a5e9f8"
987       ]
988     ]
989   },
990   {
991     "id": "662f75a8.5b0d6c",
992     "type": "set",
993     "name": "set prop.hub.transportNetworkName",
994     "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",
995     "comments": "",
996     "x": 4371.6733751297,
997     "y": 1506.2391166687012,
998     "z": "ea31d3f9.c58ce",
999     "wires": []
1000   },
1001   {
1002     "id": "372c4b67.d587a4",
1003     "type": "switchNode",
1004     "name": "switch  prop.hub.transportNetworkName==prop.spoke.transportNetworkName",
1005     "xml": "<switch test=\"`$prop.hub.transportNetworkName == $prop.spoke.transportNetworkName`\">\n",
1006     "comments": "",
1007     "outputs": 1,
1008     "x": 2564.00431060791,
1009     "y": 1466.3046674728394,
1010     "z": "ea31d3f9.c58ce",
1011     "wires": [
1012       [
1013         "ad67f3dd.ea7da",
1014         "f32a34f9.fa2a88"
1015       ]
1016     ]
1017   },
1018   {
1019     "id": "ad67f3dd.ea7da",
1020     "type": "outcomeTrue",
1021     "name": "true",
1022     "xml": "<outcome value='true'>\n",
1023     "comments": "",
1024     "outputs": 1,
1025     "x": 2910.0038414001465,
1026     "y": 1503.3047413825989,
1027     "z": "ea31d3f9.c58ce",
1028     "wires": [
1029       [
1030         "6ddb13cd.d02b7c"
1031       ]
1032     ]
1033   },
1034   {
1035     "id": "f32a34f9.fa2a88",
1036     "type": "outcomeTrue",
1037     "name": "false",
1038     "xml": "<outcome value='false'>\n",
1039     "comments": "",
1040     "outputs": 1,
1041     "x": 2904.004650115967,
1042     "y": 1440.3046016693115,
1043     "z": "ea31d3f9.c58ce",
1044     "wires": [
1045       [
1046         "93fee3b6.b53b4"
1047       ]
1048     ]
1049   },
1050   {
1051     "id": "93fee3b6.b53b4",
1052     "type": "block",
1053     "name": "block",
1054     "xml": "<block>\n",
1055     "atomic": "false",
1056     "comments": "",
1057     "outputs": 1,
1058     "x": 3034.004837036133,
1059     "y": 1440.3047542572021,
1060     "z": "ea31d3f9.c58ce",
1061     "wires": [
1062       []
1063     ]
1064   },
1065   {
1066     "id": "528bb6e8.287b28",
1067     "type": "block",
1068     "name": "block atomic",
1069     "xml": "<block atomic=\"true\">\n",
1070     "atomic": "false",
1071     "comments": "",
1072     "outputs": 1,
1073     "x": 1879.0322265625,
1074     "y": 944.8333101272583,
1075     "z": "ea31d3f9.c58ce",
1076     "wires": [
1077       [
1078         "45c7f2c8.9bbc9c",
1079         "9540984f.e97fb8",
1080         "b384d688.b2dd28",
1081         "59d6c0f4.defd7",
1082         "d3076636.df66e8"
1083       ]
1084     ]
1085   },
1086   {
1087     "id": "e393fec8.f9974",
1088     "type": "switchNode",
1089     "name": "switch vpnId",
1090     "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",
1091     "comments": "",
1092     "outputs": 1,
1093     "x": 2097.001266479492,
1094     "y": 703.6354351043701,
1095     "z": "ea31d3f9.c58ce",
1096     "wires": [
1097       [
1098         "d6a90986.8eb118"
1099       ]
1100     ]
1101   },
1102   {
1103     "id": "d6a90986.8eb118",
1104     "type": "outcomeTrue",
1105     "name": "true",
1106     "xml": "<outcome value='true'>\n",
1107     "comments": "",
1108     "outputs": 1,
1109     "x": 2241.001277923584,
1110     "y": 703.6354761123657,
1111     "z": "ea31d3f9.c58ce",
1112     "wires": [
1113       [
1114         "c1f6fc9b.d909f"
1115       ]
1116     ]
1117   },
1118   {
1119     "id": "c1f6fc9b.d909f",
1120     "type": "set",
1121     "name": "set prop.vpnId",
1122     "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",
1123     "comments": "",
1124     "x": 2399.0009994506836,
1125     "y": 702.2354106903076,
1126     "z": "ea31d3f9.c58ce",
1127     "wires": []
1128   },
1129   {
1130     "id": "56fbb125.4613b",
1131     "type": "set",
1132     "name": "Set prop.hubTnpId",
1133     "xml": "<set>\n<parameter name='prop.hubTnpId' value='$prop.hub.wanPortId' />\n\n",
1134     "comments": "",
1135     "x": 2616.3368072509766,
1136     "y": 1739.6364259719849,
1137     "z": "ea31d3f9.c58ce",
1138     "wires": []
1139   },
1140   {
1141     "id": "7c9721cc.23414",
1142     "type": "execute",
1143     "name": "execute RestApiCallNode underlay route",
1144     "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.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
1145     "comments": "",
1146     "outputs": 1,
1147     "x": 3437.33624458313,
1148     "y": 2571.9708592891693,
1149     "z": "ea31d3f9.c58ce",
1150     "wires": [
1151       [
1152         "f29c10b7.ab96c",
1153         "d1ca729c.637d"
1154       ]
1155     ]
1156   },
1157   {
1158     "id": "d1ca729c.637d",
1159     "type": "success",
1160     "name": "success",
1161     "xml": "<outcome value='success'>\n",
1162     "comments": "",
1163     "outputs": 1,
1164     "x": 3704.3361530303955,
1165     "y": 2599.970888853073,
1166     "z": "ea31d3f9.c58ce",
1167     "wires": [
1168       [
1169         "4079a316.d4531c"
1170       ]
1171     ]
1172   },
1173   {
1174     "id": "f29c10b7.ab96c",
1175     "type": "failure",
1176     "name": "failure",
1177     "xml": "<outcome value='failure'>\n",
1178     "comments": "",
1179     "outputs": 1,
1180     "x": 3702.335832595825,
1181     "y": 2555.97087931633,
1182     "z": "ea31d3f9.c58ce",
1183     "wires": [
1184       [
1185         "7b4a5da7.783c64"
1186       ]
1187     ]
1188   },
1189   {
1190     "id": "31f4dc9.4459824",
1191     "type": "set",
1192     "name": "Add prop.hub.route",
1193     "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",
1194     "comments": "",
1195     "x": 3381.6696243286133,
1196     "y": 2528.637367248535,
1197     "z": "ea31d3f9.c58ce",
1198     "wires": []
1199   },
1200   {
1201     "id": "bd1192a1.70e0b",
1202     "type": "execute",
1203     "name": "execute RestApiCallNode underlay route",
1204     "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.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
1205     "comments": "",
1206     "outputs": 1,
1207     "x": 3456.6696243286133,
1208     "y": 2670.637832403183,
1209     "z": "ea31d3f9.c58ce",
1210     "wires": [
1211       [
1212         "1372bf53.f8d271",
1213         "7d49f976.fe2c38"
1214       ]
1215     ]
1216   },
1217   {
1218     "id": "7d49f976.fe2c38",
1219     "type": "success",
1220     "name": "success",
1221     "xml": "<outcome value='success'>\n",
1222     "comments": "",
1223     "outputs": 1,
1224     "x": 3708.669771194458,
1225     "y": 2699.6381289958954,
1226     "z": "ea31d3f9.c58ce",
1227     "wires": [
1228       [
1229         "a38da1c5.3c2df"
1230       ]
1231     ]
1232   },
1233   {
1234     "id": "1372bf53.f8d271",
1235     "type": "failure",
1236     "name": "failure",
1237     "xml": "<outcome value='failure'>\n",
1238     "comments": "",
1239     "outputs": 1,
1240     "x": 3706.6694507598877,
1241     "y": 2655.638119459152,
1242     "z": "ea31d3f9.c58ce",
1243     "wires": [
1244       [
1245         "ae6e8595.d05358"
1246       ]
1247     ]
1248   },
1249   {
1250     "id": "1618d5.6f61e72c",
1251     "type": "returnFailure",
1252     "name": "return failure",
1253     "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",
1254     "comments": "",
1255     "x": 3996.6703186035156,
1256     "y": 2649.6383113861084,
1257     "z": "ea31d3f9.c58ce",
1258     "wires": []
1259   },
1260   {
1261     "id": "64161d13.320da4",
1262     "type": "switchNode",
1263     "name": "switch ActivateSDWANDeviceInstance",
1264     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n    \n    \n\n",
1265     "comments": "",
1266     "outputs": 1,
1267     "x": 3103.532081604004,
1268     "y": 1265.8336944580078,
1269     "z": "ea31d3f9.c58ce",
1270     "wires": [
1271       [
1272         "9f32e086.83793"
1273       ]
1274     ]
1275   },
1276   {
1277     "id": "c2ac42b9.22b8d",
1278     "type": "switchNode",
1279     "name": "switch tmp.devicevidx ",
1280     "xml": "<switch test=\"`$tmp.devicevidx`\">\n\n",
1281     "comments": "",
1282     "outputs": 1,
1283     "x": 2571.5316314697266,
1284     "y": 1358.4999265670776,
1285     "z": "ea31d3f9.c58ce",
1286     "wires": [
1287       [
1288         "e36692fe.8d819"
1289       ]
1290     ]
1291   },
1292   {
1293     "id": "e36692fe.8d819",
1294     "type": "outcome",
1295     "name": "NULL",
1296     "xml": "<outcome value=''>\n",
1297     "comments": "",
1298     "outputs": 1,
1299     "x": 2737.9600677490234,
1300     "y": 1358.0714597702026,
1301     "z": "ea31d3f9.c58ce",
1302     "wires": [
1303       [
1304         "3d811052.fd24c"
1305       ]
1306     ]
1307   },
1308   {
1309     "id": "3d811052.fd24c",
1310     "type": "returnFailure",
1311     "name": "return failure",
1312     "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",
1313     "comments": "",
1314     "x": 2878.388999938965,
1315     "y": 1360.2144346237183,
1316     "z": "ea31d3f9.c58ce",
1317     "wires": []
1318   },
1319   {
1320     "id": "9f32e086.83793",
1321     "type": "outcomeTrue",
1322     "name": "true",
1323     "xml": "<outcome value='true'>\n",
1324     "comments": "",
1325     "outputs": 1,
1326     "x": 3331.531768798828,
1327     "y": 1263.8336954116821,
1328     "z": "ea31d3f9.c58ce",
1329     "wires": [
1330       [
1331         "869ea93a.54ef48"
1332       ]
1333     ]
1334   },
1335   {
1336     "id": "869ea93a.54ef48",
1337     "type": "set",
1338     "name": "set tmp.devicevidx ",
1339     "xml": "<set>\n<parameter name='tmp.devicevidx' value='`$arvidx`' />\n\n",
1340     "comments": "",
1341     "x": 3486.531452178955,
1342     "y": 1263.8336944580078,
1343     "z": "ea31d3f9.c58ce",
1344     "wires": []
1345   },
1346   {
1347     "id": "a305e869.75b198",
1348     "type": "switchNode",
1349     "name": "switch ActivateSiteInstance",
1350     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n    \n    \n\n",
1351     "comments": "",
1352     "outputs": 1,
1353     "x": 3066.5321521759033,
1354     "y": 1299.833758354187,
1355     "z": "ea31d3f9.c58ce",
1356     "wires": [
1357       [
1358         "ab60af44.1fc14"
1359       ]
1360     ]
1361   },
1362   {
1363     "id": "aae2a2df.f7cc",
1364     "type": "switchNode",
1365     "name": "switch tmp.sitevidx ",
1366     "xml": "<switch test=\"`$tmp.sitevidx`\">\n\n",
1367     "comments": "",
1368     "outputs": 1,
1369     "x": 2570.5315017700195,
1370     "y": 1396.4998044967651,
1371     "z": "ea31d3f9.c58ce",
1372     "wires": [
1373       [
1374         "834ee4ef.5fe588"
1375       ]
1376     ]
1377   },
1378   {
1379     "id": "834ee4ef.5fe588",
1380     "type": "outcome",
1381     "name": "NULL",
1382     "xml": "<outcome value=''>\n",
1383     "comments": "",
1384     "outputs": 1,
1385     "x": 2730.959966659546,
1386     "y": 1396.0713243484497,
1387     "z": "ea31d3f9.c58ce",
1388     "wires": [
1389       [
1390         "4979a718.8325b8"
1391       ]
1392     ]
1393   },
1394   {
1395     "id": "4979a718.8325b8",
1396     "type": "returnFailure",
1397     "name": "return failure",
1398     "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",
1399     "comments": "",
1400     "x": 2879.388921737671,
1401     "y": 1398.2143306732178,
1402     "z": "ea31d3f9.c58ce",
1403     "wires": []
1404   },
1405   {
1406     "id": "ab60af44.1fc14",
1407     "type": "outcomeTrue",
1408     "name": "true",
1409     "xml": "<outcome value='true'>\n",
1410     "comments": "",
1411     "outputs": 1,
1412     "x": 3254.531717300415,
1413     "y": 1299.833924293518,
1414     "z": "ea31d3f9.c58ce",
1415     "wires": [
1416       [
1417         "1aaf3b5d.3c7645"
1418       ]
1419     ]
1420   },
1421   {
1422     "id": "1aaf3b5d.3c7645",
1423     "type": "set",
1424     "name": "set tmp.sitevidx ",
1425     "xml": "<set>\n<parameter name='tmp.sitevidx' value='`$arvidx`' />\n\n",
1426     "comments": "",
1427     "x": 3409.531400680542,
1428     "y": 1299.8339233398438,
1429     "z": "ea31d3f9.c58ce",
1430     "wires": []
1431   },
1432   {
1433     "id": "409305d5.93be5c",
1434     "type": "for",
1435     "name": "for loop deviceidx - Get wan port ID from servicedata",
1436     "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",
1437     "comments": "",
1438     "outputs": 1,
1439     "x": 2703.5333099365234,
1440     "y": 1781.8342418670654,
1441     "z": "ea31d3f9.c58ce",
1442     "wires": [
1443       [
1444         "f3da0084.2ed3d"
1445       ]
1446     ]
1447   },
1448   {
1449     "id": "490623bf.f5be2c",
1450     "type": "switchNode",
1451     "name": "switch deviceId",
1452     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.devicevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].name == 'deviceId'`\">\n",
1453     "comments": "",
1454     "outputs": 1,
1455     "x": 3188.5345611572266,
1456     "y": 1712.8350954055786,
1457     "z": "ea31d3f9.c58ce",
1458     "wires": [
1459       [
1460         "fe8795f9.d93fb8"
1461       ]
1462     ]
1463   },
1464   {
1465     "id": "fe8795f9.d93fb8",
1466     "type": "outcomeTrue",
1467     "name": "true",
1468     "xml": "<outcome value='true'>\n",
1469     "comments": "",
1470     "outputs": 1,
1471     "x": 3339.5349349975586,
1472     "y": 1709.8353395462036,
1473     "z": "ea31d3f9.c58ce",
1474     "wires": [
1475       [
1476         "9a7de836.6030f8"
1477       ]
1478     ]
1479   },
1480   {
1481     "id": "9a7de836.6030f8",
1482     "type": "set",
1483     "name": "set prop.hub.deviceId",
1484     "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",
1485     "comments": "",
1486     "x": 3514.535182952881,
1487     "y": 1709.4358644485474,
1488     "z": "ea31d3f9.c58ce",
1489     "wires": []
1490   },
1491   {
1492     "id": "e6c5f470.5c1408",
1493     "type": "for",
1494     "name": "for loop siteidx - Get site ID from servicedata",
1495     "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",
1496     "comments": "",
1497     "outputs": 1,
1498     "x": 2670.0331268310547,
1499     "y": 1843.8342113494873,
1500     "z": "ea31d3f9.c58ce",
1501     "wires": [
1502       [
1503         "ee5b33c3.334cb"
1504       ]
1505     ]
1506   },
1507   {
1508     "id": "f647b09c.a81c",
1509     "type": "comment",
1510     "name": "Add route src->dst, dst->src",
1511     "info": "",
1512     "comments": "",
1513     "x": 3005.668716430664,
1514     "y": 1860.6360301971436,
1515     "z": "ea31d3f9.c58ce",
1516     "wires": []
1517   },
1518   {
1519     "id": "2ed283b9.4ced6c",
1520     "type": "block",
1521     "name": "block atomic",
1522     "xml": "<block atomic=\"true\">\n",
1523     "atomic": "false",
1524     "comments": "",
1525     "outputs": 1,
1526     "x": 2115.334228515625,
1527     "y": 1221.968747138977,
1528     "z": "ea31d3f9.c58ce",
1529     "wires": [
1530       [
1531         "3250db4e.aae6c4",
1532         "372c4b67.d587a4",
1533         "8238d072.258df",
1534         "31ca4096.fa657",
1535         "a06e1b02.e2dcb8",
1536         "5f595aa8.cf14c4"
1537       ]
1538     ]
1539   },
1540   {
1541     "id": "8238d072.258df",
1542     "type": "block",
1543     "name": "block atmoic",
1544     "xml": "<block atomic=\"true\">\n",
1545     "atomic": "false",
1546     "comments": "",
1547     "outputs": 1,
1548     "x": 2370.333984375,
1549     "y": 1358.3021211624146,
1550     "z": "ea31d3f9.c58ce",
1551     "wires": [
1552       [
1553         "c2ac42b9.22b8d",
1554         "aae2a2df.f7cc",
1555         "494b8c51.d5a454"
1556       ]
1557     ]
1558   },
1559   {
1560     "id": "6ddb13cd.d02b7c",
1561     "type": "block",
1562     "name": "block atomic",
1563     "xml": "<block atomic=\"true\">\n",
1564     "atomic": "false",
1565     "comments": "",
1566     "outputs": 1,
1567     "x": 2390.3350219726562,
1568     "y": 1730.635643005371,
1569     "z": "ea31d3f9.c58ce",
1570     "wires": [
1571       [
1572         "56fbb125.4613b",
1573         "409305d5.93be5c",
1574         "e6c5f470.5c1408",
1575         "74f0a419.baab7c",
1576         "f5ec2256.55a71"
1577       ]
1578     ]
1579   },
1580   {
1581     "id": "53da0cfd.4e5c84",
1582     "type": "set",
1583     "name": "Add prop.spoke.route",
1584     "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",
1585     "comments": "",
1586     "x": 3391.533639907837,
1587     "y": 2639.3345935344696,
1588     "z": "ea31d3f9.c58ce",
1589     "wires": []
1590   },
1591   {
1592     "id": "b99b3963.4b1368",
1593     "type": "returnSuccess",
1594     "name": "return success",
1595     "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",
1596     "comments": "",
1597     "x": 340.3343048095703,
1598     "y": 1096.3343391418457,
1599     "z": "ea31d3f9.c58ce",
1600     "wires": []
1601   },
1602   {
1603     "id": "9692ac6c.5b398",
1604     "type": "execute",
1605     "name": "generate connection attachment AR url ",
1606     "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",
1607     "comments": "",
1608     "outputs": 1,
1609     "x": 1389.6672058105469,
1610     "y": 158.30183696746826,
1611     "z": "ea31d3f9.c58ce",
1612     "wires": [
1613       []
1614     ]
1615   },
1616   {
1617     "id": "a88c4be0.5a96c8",
1618     "type": "execute",
1619     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1620     "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",
1621     "comments": "",
1622     "outputs": 1,
1623     "x": 1516.667236328125,
1624     "y": 206.3018274307251,
1625     "z": "ea31d3f9.c58ce",
1626     "wires": [
1627       [
1628         "43ba54c6.bea31c",
1629         "b9e47095.da1a3"
1630       ]
1631     ]
1632   },
1633   {
1634     "id": "fa697270.9a4c6",
1635     "type": "execute",
1636     "name": "execute RestApiCallNode - get parent service data",
1637     "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",
1638     "comments": "",
1639     "outputs": 1,
1640     "x": 1741.0013885498047,
1641     "y": 540.3021411895752,
1642     "z": "ea31d3f9.c58ce",
1643     "wires": [
1644       [
1645         "bc09ac7e.2dfa1",
1646         "f0b156c6.5db3a8"
1647       ]
1648     ]
1649   },
1650   {
1651     "id": "9c710564.f70308",
1652     "type": "execute",
1653     "name": "generate connection attachment parent url ",
1654     "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",
1655     "comments": "",
1656     "outputs": 1,
1657     "x": 1718.0010375976562,
1658     "y": 486.30206871032715,
1659     "z": "ea31d3f9.c58ce",
1660     "wires": [
1661       []
1662     ]
1663   },
1664   {
1665     "id": "b113d667.018288",
1666     "type": "comment",
1667     "name": "full mesh do nothing",
1668     "info": "",
1669     "comments": "",
1670     "x": 1552.667839050293,
1671     "y": 697.3021068572998,
1672     "z": "ea31d3f9.c58ce",
1673     "wires": []
1674   },
1675   {
1676     "id": "9c493d3a.013fd",
1677     "type": "comment",
1678     "name": "hub-spoke",
1679     "info": "",
1680     "comments": "",
1681     "x": 2553.6672401428223,
1682     "y": 794.3019967079163,
1683     "z": "ea31d3f9.c58ce",
1684     "wires": []
1685   },
1686   {
1687     "id": "9540984f.e97fb8",
1688     "type": "execute",
1689     "name": "generate connection attachment AR url ",
1690     "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",
1691     "comments": "",
1692     "outputs": 1,
1693     "x": 2226.0003929138184,
1694     "y": 945.3019919395447,
1695     "z": "ea31d3f9.c58ce",
1696     "wires": [
1697       []
1698     ]
1699   },
1700   {
1701     "id": "b384d688.b2dd28",
1702     "type": "execute",
1703     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1704     "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",
1705     "comments": "",
1706     "outputs": 1,
1707     "x": 2357.000473022461,
1708     "y": 984.9686217308044,
1709     "z": "ea31d3f9.c58ce",
1710     "wires": [
1711       [
1712         "7d6e3904.ff8ae8",
1713         "b0148b51.89ec18"
1714       ]
1715     ]
1716   },
1717   {
1718     "id": "a06e1b02.e2dcb8",
1719     "type": "execute",
1720     "name": "generate service data url",
1721     "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",
1722     "comments": "",
1723     "outputs": 1,
1724     "x": 2407.504367828369,
1725     "y": 1186.3058919906616,
1726     "z": "ea31d3f9.c58ce",
1727     "wires": [
1728       []
1729     ]
1730   },
1731   {
1732     "id": "5f595aa8.cf14c4",
1733     "type": "execute",
1734     "name": "execute RestApiCallNode - get service data of allotted resource",
1735     "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",
1736     "comments": "",
1737     "outputs": 1,
1738     "x": 2523.5045013427734,
1739     "y": 1223.3057832717896,
1740     "z": "ea31d3f9.c58ce",
1741     "wires": [
1742       [
1743         "f944f364.78c47",
1744         "e08d96d8.e1bd48"
1745       ]
1746     ]
1747   },
1748   {
1749     "id": "10c92564.7d8f7b",
1750     "type": "outcomeTrue",
1751     "name": "true",
1752     "xml": "<outcome value='true'>\n",
1753     "comments": "",
1754     "outputs": 1,
1755     "x": 2287.5000648498535,
1756     "y": 1108.8018560409546,
1757     "z": "ea31d3f9.c58ce",
1758     "wires": [
1759       [
1760         "2ed283b9.4ced6c"
1761       ]
1762     ]
1763   },
1764   {
1765     "id": "d2d633b9.72ffd",
1766     "type": "outcomeFalse",
1767     "name": "false",
1768     "xml": "<outcome value='false'>\n",
1769     "comments": "",
1770     "outputs": 1,
1771     "x": 2293.500312805176,
1772     "y": 1065.801947593689,
1773     "z": "ea31d3f9.c58ce",
1774     "wires": [
1775       [
1776         "a9370615.1e0a18"
1777       ]
1778     ]
1779   },
1780   {
1781     "id": "c22c6bf7.654618",
1782     "type": "for",
1783     "name": "for loop roleidx - Get role from allotted resource",
1784     "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",
1785     "comments": "",
1786     "outputs": 1,
1787     "x": 2868.5008697509766,
1788     "y": 213.30177307128906,
1789     "z": "ea31d3f9.c58ce",
1790     "wires": [
1791       [
1792         "1e62939f.a940cc"
1793       ]
1794     ]
1795   },
1796   {
1797     "id": "1e62939f.a940cc",
1798     "type": "block",
1799     "name": "block",
1800     "xml": "<block>\n",
1801     "atomic": "false",
1802     "comments": "",
1803     "outputs": 1,
1804     "x": 3127.5011825561523,
1805     "y": 212.3020887374878,
1806     "z": "ea31d3f9.c58ce",
1807     "wires": [
1808       [
1809         "6368cbef.0c0714"
1810       ]
1811     ]
1812   },
1813   {
1814     "id": "6368cbef.0c0714",
1815     "type": "switchNode",
1816     "name": "switch Role",
1817     "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",
1818     "comments": "",
1819     "outputs": 1,
1820     "x": 3276.501194000244,
1821     "y": 213.3019256591797,
1822     "z": "ea31d3f9.c58ce",
1823     "wires": [
1824       [
1825         "602b9a1d.1f8fa4"
1826       ]
1827     ]
1828   },
1829   {
1830     "id": "9865389f.19f678",
1831     "type": "set",
1832     "name": "set prop.spoke.role",
1833     "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",
1834     "comments": "",
1835     "x": 3581.501754760742,
1836     "y": 210.90183353424072,
1837     "z": "ea31d3f9.c58ce",
1838     "wires": []
1839   },
1840   {
1841     "id": "602b9a1d.1f8fa4",
1842     "type": "outcomeTrue",
1843     "name": "true",
1844     "xml": "<outcome value='true'>\n",
1845     "comments": "",
1846     "outputs": 1,
1847     "x": 3412.00101852417,
1848     "y": 210.30176544189453,
1849     "z": "ea31d3f9.c58ce",
1850     "wires": [
1851       [
1852         "9865389f.19f678"
1853       ]
1854     ]
1855   },
1856   {
1857     "id": "c78c1bff.286648",
1858     "type": "switchNode",
1859     "name": "switch spoke",
1860     "xml": "<switch test=\"`$prop.spoke.role == 'spoke'`\">\n",
1861     "comments": "",
1862     "outputs": 1,
1863     "x": 1304.000373840332,
1864     "y": 357.301700592041,
1865     "z": "ea31d3f9.c58ce",
1866     "wires": [
1867       [
1868         "45674b4e.4d0684"
1869       ]
1870     ]
1871   },
1872   {
1873     "id": "45674b4e.4d0684",
1874     "type": "outcomeTrue",
1875     "name": "true",
1876     "xml": "<outcome value='true'>\n",
1877     "comments": "",
1878     "outputs": 1,
1879     "x": 1445.000129699707,
1880     "y": 358.30173778533936,
1881     "z": "ea31d3f9.c58ce",
1882     "wires": [
1883       [
1884         "44bfeb73.8a2794"
1885       ]
1886     ]
1887   },
1888   {
1889     "id": "c6974a98.f8b038",
1890     "type": "for",
1891     "name": "for i.. service-data.vnfs.vnf_length[]",
1892     "xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
1893     "comments": "",
1894     "outputs": 1,
1895     "x": 1717.5006561279297,
1896     "y": 412.3017330169678,
1897     "z": "ea31d3f9.c58ce",
1898     "wires": [
1899       [
1900         "74ae021f.4e878c"
1901       ]
1902     ]
1903   },
1904   {
1905     "id": "74ae021f.4e878c",
1906     "type": "block",
1907     "name": "block atmoic",
1908     "xml": "<block atomic=\"true\">\n",
1909     "atomic": "false",
1910     "comments": "",
1911     "outputs": 1,
1912     "x": 2051.166847229004,
1913     "y": 356.3016633987427,
1914     "z": "ea31d3f9.c58ce",
1915     "wires": [
1916       [
1917         "e5568bc9.6c4a18",
1918         "10bef5c5.4c95ea",
1919         "d2557f72.d615e"
1920       ]
1921     ]
1922   },
1923   {
1924     "id": "e5568bc9.6c4a18",
1925     "type": "switchNode",
1926     "name": "switch ActivateSDWANPortInstance",
1927     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSDWANPortInstance'`\">\n    \n    \n\n",
1928     "comments": "",
1929     "outputs": 1,
1930     "x": 2322.1668853759766,
1931     "y": 302.3025498390198,
1932     "z": "ea31d3f9.c58ce",
1933     "wires": [
1934       [
1935         "730af204.11fefc"
1936       ]
1937     ]
1938   },
1939   {
1940     "id": "730af204.11fefc",
1941     "type": "outcomeTrue",
1942     "name": "true",
1943     "xml": "<outcome value='true'>\n",
1944     "comments": "",
1945     "outputs": 1,
1946     "x": 2535.166648864746,
1947     "y": 303.3025527000427,
1948     "z": "ea31d3f9.c58ce",
1949     "wires": [
1950       [
1951         "90e7c80d.95a148"
1952       ]
1953     ]
1954   },
1955   {
1956     "id": "90e7c80d.95a148",
1957     "type": "block",
1958     "name": "block atomic",
1959     "xml": "<block atomic=\"true\">\n",
1960     "atomic": "false",
1961     "comments": "",
1962     "outputs": 1,
1963     "x": 2684.0003929138184,
1964     "y": 305.3017420768738,
1965     "z": "ea31d3f9.c58ce",
1966     "wires": [
1967       [
1968         "993b2158.a7204"
1969       ]
1970     ]
1971   },
1972   {
1973     "id": "993b2158.a7204",
1974     "type": "for",
1975     "name": "for loop widx - Get wan port ID from servicedata",
1976     "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",
1977     "comments": "",
1978     "outputs": 1,
1979     "x": 2957.000343322754,
1980     "y": 303.6689600944519,
1981     "z": "ea31d3f9.c58ce",
1982     "wires": [
1983       [
1984         "a8fb6ac2.404148"
1985       ]
1986     ]
1987   },
1988   {
1989     "id": "a8fb6ac2.404148",
1990     "type": "block",
1991     "name": "block atomic",
1992     "xml": "<block atomic=\"true\">\n",
1993     "atomic": "false",
1994     "comments": "",
1995     "outputs": 1,
1996     "x": 3226.0012702941895,
1997     "y": 302.66920614242554,
1998     "z": "ea31d3f9.c58ce",
1999     "wires": [
2000       [
2001         "f56203d5.44648",
2002         "844331fb.21709",
2003         "c8a276bd.330448",
2004         "878dc9b3.754498"
2005       ]
2006     ]
2007   },
2008   {
2009     "id": "f56203d5.44648",
2010     "type": "switchNode",
2011     "name": "switch transportNetworkName",
2012     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'transportNetworkName'`\">\n",
2013     "comments": "",
2014     "outputs": 1,
2015     "x": 3469.0023040771484,
2016     "y": 257.6697793006897,
2017     "z": "ea31d3f9.c58ce",
2018     "wires": [
2019       [
2020         "c1622f74.5acec"
2021       ]
2022     ]
2023   },
2024   {
2025     "id": "c1622f74.5acec",
2026     "type": "outcomeTrue",
2027     "name": "true",
2028     "xml": "<outcome value='true'>\n",
2029     "comments": "",
2030     "outputs": 1,
2031     "x": 3669.0020790100098,
2032     "y": 257.6699414253235,
2033     "z": "ea31d3f9.c58ce",
2034     "wires": [
2035       [
2036         "484c0f29.65918"
2037       ]
2038     ]
2039   },
2040   {
2041     "id": "484c0f29.65918",
2042     "type": "set",
2043     "name": "set prop.spoke.transportNetworkName",
2044     "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",
2045     "comments": "",
2046     "x": 3896.002815246582,
2047     "y": 259.2705235481262,
2048     "z": "ea31d3f9.c58ce",
2049     "wires": []
2050   },
2051   {
2052     "id": "44bfeb73.8a2794",
2053     "type": "block",
2054     "name": "block: atomic",
2055     "xml": "<block atomic=\"true\">\n",
2056     "atomic": "false",
2057     "comments": "",
2058     "outputs": 1,
2059     "x": 1197.9694213867188,
2060     "y": 668.2706489562988,
2061     "z": "ea31d3f9.c58ce",
2062     "wires": [
2063       [
2064         "c6974a98.f8b038",
2065         "9c710564.f70308",
2066         "fa697270.9a4c6",
2067         "c9fcea4f.295c68",
2068         "f17464be.205b38",
2069         "3aec24fb.014f5c",
2070         "427fd71a.a641b8",
2071         "3da7a5e7.865d8a"
2072       ]
2073     ]
2074   },
2075   {
2076     "id": "10bef5c5.4c95ea",
2077     "type": "switchNode",
2078     "name": "switch ActivateSDWANDeviceInstance",
2079     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n    \n    \n\n",
2080     "comments": "",
2081     "outputs": 1,
2082     "x": 2314.5003204345703,
2083     "y": 376.3017544746399,
2084     "z": "ea31d3f9.c58ce",
2085     "wires": [
2086       [
2087         "3b1b3b34.55a514"
2088       ]
2089     ]
2090   },
2091   {
2092     "id": "3b1b3b34.55a514",
2093     "type": "outcomeTrue",
2094     "name": "true",
2095     "xml": "<outcome value='true'>\n",
2096     "comments": "",
2097     "outputs": 1,
2098     "x": 2533.5000705718994,
2099     "y": 377.30173921585083,
2100     "z": "ea31d3f9.c58ce",
2101     "wires": [
2102       [
2103         "371f6a10.c50d56"
2104       ]
2105     ]
2106   },
2107   {
2108     "id": "371f6a10.c50d56",
2109     "type": "block",
2110     "name": "block atomic",
2111     "xml": "<block atomic=\"true\">\n",
2112     "atomic": "false",
2113     "comments": "",
2114     "outputs": 1,
2115     "x": 2684.3340606689453,
2116     "y": 383.3009305000305,
2117     "z": "ea31d3f9.c58ce",
2118     "wires": [
2119       [
2120         "53996c8e.9b7f34"
2121       ]
2122     ]
2123   },
2124   {
2125     "id": "53996c8e.9b7f34",
2126     "type": "for",
2127     "name": "for loop didx - Get device ID from servicedata",
2128     "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",
2129     "comments": "",
2130     "outputs": 1,
2131     "x": 2943.334312438965,
2132     "y": 385.66822576522827,
2133     "z": "ea31d3f9.c58ce",
2134     "wires": [
2135       [
2136         "f263db9e.f44158"
2137       ]
2138     ]
2139   },
2140   {
2141     "id": "f263db9e.f44158",
2142     "type": "block",
2143     "name": "block atomic",
2144     "xml": "<block atomic=\"true\">\n",
2145     "atomic": "false",
2146     "comments": "",
2147     "outputs": 1,
2148     "x": 3229.334819793701,
2149     "y": 418.66841077804565,
2150     "z": "ea31d3f9.c58ce",
2151     "wires": [
2152       [
2153         "5249df60.eaa65"
2154       ]
2155     ]
2156   },
2157   {
2158     "id": "5249df60.eaa65",
2159     "type": "switchNode",
2160     "name": "switch deviceId",
2161     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].name == 'deviceId'`\">\n",
2162     "comments": "",
2163     "outputs": 1,
2164     "x": 3412.3357315063477,
2165     "y": 418.66902112960815,
2166     "z": "ea31d3f9.c58ce",
2167     "wires": [
2168       [
2169         "78ddeb0.2bf8314"
2170       ]
2171     ]
2172   },
2173   {
2174     "id": "78ddeb0.2bf8314",
2175     "type": "outcomeTrue",
2176     "name": "true",
2177     "xml": "<outcome value='true'>\n",
2178     "comments": "",
2179     "outputs": 1,
2180     "x": 3612.335506439209,
2181     "y": 418.66918325424194,
2182     "z": "ea31d3f9.c58ce",
2183     "wires": [
2184       [
2185         "842e3e5c.4cad"
2186       ]
2187     ]
2188   },
2189   {
2190     "id": "842e3e5c.4cad",
2191     "type": "set",
2192     "name": "set prop.spoke.deviceId",
2193     "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",
2194     "comments": "",
2195     "x": 3807.3361892700195,
2196     "y": 415.26976442337036,
2197     "z": "ea31d3f9.c58ce",
2198     "wires": []
2199   },
2200   {
2201     "id": "d2557f72.d615e",
2202     "type": "switchNode",
2203     "name": "switch ActivateSiteInstance",
2204     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n    \n    \n\n",
2205     "comments": "",
2206     "outputs": 1,
2207     "x": 2293.5004348754883,
2208     "y": 437.30178594589233,
2209     "z": "ea31d3f9.c58ce",
2210     "wires": [
2211       [
2212         "1c713318.89265d"
2213       ]
2214     ]
2215   },
2216   {
2217     "id": "1c713318.89265d",
2218     "type": "outcomeTrue",
2219     "name": "true",
2220     "xml": "<outcome value='true'>\n",
2221     "comments": "",
2222     "outputs": 1,
2223     "x": 2527.500072479248,
2224     "y": 438.3017258644104,
2225     "z": "ea31d3f9.c58ce",
2226     "wires": [
2227       [
2228         "ed702e21.07c0b"
2229       ]
2230     ]
2231   },
2232   {
2233     "id": "ed702e21.07c0b",
2234     "type": "block",
2235     "name": "block atomic",
2236     "xml": "<block atomic=\"true\">\n",
2237     "atomic": "false",
2238     "comments": "",
2239     "outputs": 1,
2240     "x": 2679.3340606689453,
2241     "y": 460.30096197128296,
2242     "z": "ea31d3f9.c58ce",
2243     "wires": [
2244       [
2245         "8ec1a47c.55b508",
2246         "68bdc58a.c36e2c"
2247       ]
2248     ]
2249   },
2250   {
2251     "id": "8ec1a47c.55b508",
2252     "type": "for",
2253     "name": "for loop widx - Get wan site ID from servicedata",
2254     "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",
2255     "comments": "",
2256     "outputs": 1,
2257     "x": 2960.3338928222656,
2258     "y": 459.668164730072,
2259     "z": "ea31d3f9.c58ce",
2260     "wires": [
2261       [
2262         "edd6a6a1.36e3f8"
2263       ]
2264     ]
2265   },
2266   {
2267     "id": "edd6a6a1.36e3f8",
2268     "type": "block",
2269     "name": "block atomic",
2270     "xml": "<block atomic=\"true\">\n",
2271     "atomic": "false",
2272     "comments": "",
2273     "outputs": 1,
2274     "x": 3229.334819793701,
2275     "y": 458.66841077804565,
2276     "z": "ea31d3f9.c58ce",
2277     "wires": [
2278       [
2279         "12472c4.5235bd4",
2280         "96a23bd5.060968",
2281         "af471c20.d9cb7"
2282       ]
2283     ]
2284   },
2285   {
2286     "id": "12472c4.5235bd4",
2287     "type": "switchNode",
2288     "name": "switch siteId",
2289     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'siteId'`\">\n",
2290     "comments": "",
2291     "outputs": 1,
2292     "x": 3418.33602142334,
2293     "y": 508.66908264160156,
2294     "z": "ea31d3f9.c58ce",
2295     "wires": [
2296       [
2297         "3940a3b0.f06d3c"
2298       ]
2299     ]
2300   },
2301   {
2302     "id": "3940a3b0.f06d3c",
2303     "type": "outcomeTrue",
2304     "name": "true",
2305     "xml": "<outcome value='true'>\n",
2306     "comments": "",
2307     "outputs": 1,
2308     "x": 3618.3354988098145,
2309     "y": 496.66919708251953,
2310     "z": "ea31d3f9.c58ce",
2311     "wires": [
2312       [
2313         "bc674b05.78b928"
2314       ]
2315     ]
2316   },
2317   {
2318     "id": "bc674b05.78b928",
2319     "type": "set",
2320     "name": "set prop.spoke.siteId",
2321     "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",
2322     "comments": "",
2323     "x": 3811.336452484131,
2324     "y": 503.26982736587524,
2325     "z": "ea31d3f9.c58ce",
2326     "wires": []
2327   },
2328   {
2329     "id": "844331fb.21709",
2330     "type": "switchNode",
2331     "name": "switch wanPortId",
2332     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'wanPortId'`\">\n",
2333     "comments": "",
2334     "outputs": 1,
2335     "x": 3442.5,
2336     "y": 294.3018355369568,
2337     "z": "ea31d3f9.c58ce",
2338     "wires": [
2339       [
2340         "6b71a698.d33fe8"
2341       ]
2342     ]
2343   },
2344   {
2345     "id": "6b71a698.d33fe8",
2346     "type": "outcomeTrue",
2347     "name": "true",
2348     "xml": "<outcome value='true'>\n",
2349     "comments": "",
2350     "outputs": 1,
2351     "x": 3672.5000038146973,
2352     "y": 294.3019471168518,
2353     "z": "ea31d3f9.c58ce",
2354     "wires": [
2355       [
2356         "92bbf4e4.47a9a8"
2357       ]
2358     ]
2359   },
2360   {
2361     "id": "92bbf4e4.47a9a8",
2362     "type": "set",
2363     "name": "set prop.spoke.wanPortId",
2364     "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",
2365     "comments": "",
2366     "x": 3899.5007400512695,
2367     "y": 295.90252923965454,
2368     "z": "ea31d3f9.c58ce",
2369     "wires": []
2370   },
2371   {
2372     "id": "c8a276bd.330448",
2373     "type": "switchNode",
2374     "name": "switch providerIpAddress",
2375     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'providerIpAddress'`\">\n",
2376     "comments": "",
2377     "outputs": 1,
2378     "x": 3460.500160217285,
2379     "y": 338.30178594589233,
2380     "z": "ea31d3f9.c58ce",
2381     "wires": [
2382       [
2383         "adb74c6c.ec9a"
2384       ]
2385     ]
2386   },
2387   {
2388     "id": "adb74c6c.ec9a",
2389     "type": "outcomeTrue",
2390     "name": "true",
2391     "xml": "<outcome value='true'>\n",
2392     "comments": "",
2393     "outputs": 1,
2394     "x": 3660.4999351501465,
2395     "y": 338.3019480705261,
2396     "z": "ea31d3f9.c58ce",
2397     "wires": [
2398       [
2399         "1ca4e423.ffe23c"
2400       ]
2401     ]
2402   },
2403   {
2404     "id": "1ca4e423.ffe23c",
2405     "type": "set",
2406     "name": "set prop.spoke.providerIpAddress",
2407     "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",
2408     "comments": "",
2409     "x": 3887.5006713867188,
2410     "y": 339.90253019332886,
2411     "z": "ea31d3f9.c58ce",
2412     "wires": []
2413   },
2414   {
2415     "id": "878dc9b3.754498",
2416     "type": "switchNode",
2417     "name": "switch ipAddress",
2418     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$widx].name == 'ipAddress'`\">\n",
2419     "comments": "",
2420     "outputs": 1,
2421     "x": 3440.499988555908,
2422     "y": 377.30182218551636,
2423     "z": "ea31d3f9.c58ce",
2424     "wires": [
2425       [
2426         "728cf41e.771a8c"
2427       ]
2428     ]
2429   },
2430   {
2431     "id": "728cf41e.771a8c",
2432     "type": "outcomeTrue",
2433     "name": "true",
2434     "xml": "<outcome value='true'>\n",
2435     "comments": "",
2436     "outputs": 1,
2437     "x": 3664.4998168945312,
2438     "y": 377.3019394874573,
2439     "z": "ea31d3f9.c58ce",
2440     "wires": [
2441       [
2442         "dd2dd25f.6f587"
2443       ]
2444     ]
2445   },
2446   {
2447     "id": "dd2dd25f.6f587",
2448     "type": "set",
2449     "name": "set prop.spoke.ipAddress",
2450     "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",
2451     "comments": "",
2452     "x": 3891.5005531311035,
2453     "y": 378.90252161026,
2454     "z": "ea31d3f9.c58ce",
2455     "wires": []
2456   },
2457   {
2458     "id": "ad0a3663.ab8598",
2459     "type": "block",
2460     "name": "block: atomic",
2461     "xml": "<block atomic=\"true\">\n",
2462     "atomic": "false",
2463     "comments": "",
2464     "outputs": 1,
2465     "x": 1007.9999008178711,
2466     "y": 236.50004196166992,
2467     "z": "ea31d3f9.c58ce",
2468     "wires": [
2469       [
2470         "2acab811.c13ee8",
2471         "9692ac6c.5b398",
2472         "a88c4be0.5a96c8",
2473         "c78c1bff.286648"
2474       ]
2475     ]
2476   },
2477   {
2478     "id": "688f910f.1fade",
2479     "type": "comment",
2480     "name": "get spoke device,site,wanport info",
2481     "info": "",
2482     "comments": "",
2483     "x": 1764.96875,
2484     "y": 359.96874713897705,
2485     "z": "ea31d3f9.c58ce",
2486     "wires": []
2487   },
2488   {
2489     "id": "74cacf6d.c151",
2490     "type": "comment",
2491     "name": "Add routes only on activation of spoke Attach site",
2492     "info": "",
2493     "comments": "",
2494     "x": 1425.4999160766602,
2495     "y": 303.00006103515625,
2496     "z": "ea31d3f9.c58ce",
2497     "wires": []
2498   },
2499   {
2500     "id": "3d6571cf.a0a37e",
2501     "type": "comment",
2502     "name": "Loop for all the hub allotted resources, get respective service data and get vnfs info",
2503     "info": "",
2504     "comments": "",
2505     "x": 2181.5,
2506     "y": 798.500057220459,
2507     "z": "ea31d3f9.c58ce",
2508     "wires": []
2509   },
2510   {
2511     "id": "ee5b33c3.334cb",
2512     "type": "block",
2513     "name": "block atomic",
2514     "xml": "<block atomic=\"true\">\n",
2515     "atomic": "false",
2516     "comments": "",
2517     "outputs": 1,
2518     "x": 2945.4998321533203,
2519     "y": 1819.000135421753,
2520     "z": "ea31d3f9.c58ce",
2521     "wires": [
2522       [
2523         "c17add8f.67a28",
2524         "229bba7c.508e96"
2525       ]
2526     ]
2527   },
2528   {
2529     "id": "f3da0084.2ed3d",
2530     "type": "block",
2531     "name": "block atomic",
2532     "xml": "<block atomic=\"true\">\n",
2533     "atomic": "false",
2534     "comments": "",
2535     "outputs": 1,
2536     "x": 3012.4998321533203,
2537     "y": 1715.0000114440918,
2538     "z": "ea31d3f9.c58ce",
2539     "wires": [
2540       [
2541         "490623bf.f5be2c"
2542       ]
2543     ]
2544   },
2545   {
2546     "id": "c17add8f.67a28",
2547     "type": "switchNode",
2548     "name": "switch siteId",
2549     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].name == 'siteId'`\">\n",
2550     "comments": "",
2551     "outputs": 1,
2552     "x": 3122.499641418457,
2553     "y": 1790.9998016357422,
2554     "z": "ea31d3f9.c58ce",
2555     "wires": [
2556       [
2557         "dbd1bbe9.db4a58"
2558       ]
2559     ]
2560   },
2561   {
2562     "id": "dbd1bbe9.db4a58",
2563     "type": "outcomeTrue",
2564     "name": "true",
2565     "xml": "<outcome value='true'>\n",
2566     "comments": "",
2567     "outputs": 1,
2568     "x": 3273.500011444092,
2569     "y": 1789.999984741211,
2570     "z": "ea31d3f9.c58ce",
2571     "wires": [
2572       [
2573         "5c117986.38cf28"
2574       ]
2575     ]
2576   },
2577   {
2578     "id": "5c117986.38cf28",
2579     "type": "set",
2580     "name": "set prop.hub.siteId",
2581     "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",
2582     "comments": "",
2583     "x": 3445.5000190734863,
2584     "y": 1787.6005535125732,
2585     "z": "ea31d3f9.c58ce",
2586     "wires": []
2587   },
2588   {
2589     "id": "74f0a419.baab7c",
2590     "type": "switchNode",
2591     "name": "switch request-action",
2592     "xml": "<switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>\n",
2593     "comments": "",
2594     "outputs": 1,
2595     "x": 2598.9997482299805,
2596     "y": 2143.0004453659058,
2597     "z": "ea31d3f9.c58ce",
2598     "wires": [
2599       [
2600         "8a79d931.696778",
2601         "c7717ba5.717ea8"
2602       ]
2603     ]
2604   },
2605   {
2606     "id": "8a79d931.696778",
2607     "type": "outcome",
2608     "name": "ActivateSDWANAttachmentInstance",
2609     "xml": "<outcome value='ActivateSDWANAttachmentInstance'>",
2610     "comments": "",
2611     "outputs": 1,
2612     "x": 2869.0271530151367,
2613     "y": 1954.0314779281616,
2614     "z": "ea31d3f9.c58ce",
2615     "wires": [
2616       [
2617         "c591ad14.b9dd7"
2618       ]
2619     ]
2620   },
2621   {
2622     "id": "a7156e9f.23a1b",
2623     "type": "execute",
2624     "name": "execute RestApiCallNode underlay route",
2625     "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.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
2626     "comments": "",
2627     "outputs": 1,
2628     "x": 3457.500099182129,
2629     "y": 1883.0003824234009,
2630     "z": "ea31d3f9.c58ce",
2631     "wires": [
2632       [
2633         "3761bb2b.afc314",
2634         "4ebe8079.3f11c"
2635       ]
2636     ]
2637   },
2638   {
2639     "id": "4ebe8079.3f11c",
2640     "type": "success",
2641     "name": "success",
2642     "xml": "<outcome value='success'>\n",
2643     "comments": "",
2644     "outputs": 1,
2645     "x": 3704.499927520752,
2646     "y": 1862.0002145767212,
2647     "z": "ea31d3f9.c58ce",
2648     "wires": [
2649       [
2650         "78300110.b43b4"
2651       ]
2652     ]
2653   },
2654   {
2655     "id": "3761bb2b.afc314",
2656     "type": "failure",
2657     "name": "failure",
2658     "xml": "<outcome value='failure'>\n",
2659     "comments": "",
2660     "outputs": 1,
2661     "x": 3702.4996070861816,
2662     "y": 1818.000205039978,
2663     "z": "ea31d3f9.c58ce",
2664     "wires": [
2665       [
2666         "722e84e9.8ab54c"
2667       ]
2668     ]
2669   },
2670   {
2671     "id": "e4f1543b.8ca618",
2672     "type": "returnFailure",
2673     "name": "return failure",
2674     "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",
2675     "comments": "",
2676     "x": 3980.500762939453,
2677     "y": 1796.0005054473877,
2678     "z": "ea31d3f9.c58ce",
2679     "wires": []
2680   },
2681   {
2682     "id": "54f01fb1.eab0c",
2683     "type": "set",
2684     "name": "Add prop.hub.route",
2685     "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",
2686     "comments": "",
2687     "x": 3392.8337020874023,
2688     "y": 1853.666922569275,
2689     "z": "ea31d3f9.c58ce",
2690     "wires": []
2691   },
2692   {
2693     "id": "b0e30676.c2a618",
2694     "type": "execute",
2695     "name": "execute RestApiCallNode underlay route",
2696     "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.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
2697     "comments": "",
2698     "outputs": 1,
2699     "x": 3474.834144592285,
2700     "y": 2088.6675004959106,
2701     "z": "ea31d3f9.c58ce",
2702     "wires": [
2703       [
2704         "ad299c2d.b630e",
2705         "51decbd4.61a7c4"
2706       ]
2707     ]
2708   },
2709   {
2710     "id": "51decbd4.61a7c4",
2711     "type": "success",
2712     "name": "success",
2713     "xml": "<outcome value='success'>\n",
2714     "comments": "",
2715     "outputs": 1,
2716     "x": 3726.83424949646,
2717     "y": 2076.667459964752,
2718     "z": "ea31d3f9.c58ce",
2719     "wires": [
2720       [
2721         "b3f4e792.e33638"
2722       ]
2723     ]
2724   },
2725   {
2726     "id": "ad299c2d.b630e",
2727     "type": "failure",
2728     "name": "failure",
2729     "xml": "<outcome value='failure'>\n",
2730     "comments": "",
2731     "outputs": 1,
2732     "x": 3724.8339290618896,
2733     "y": 2032.667450428009,
2734     "z": "ea31d3f9.c58ce",
2735     "wires": [
2736       [
2737         "e6f4e702.6d5b68"
2738       ]
2739     ]
2740   },
2741   {
2742     "id": "c9cf02e0.97d29",
2743     "type": "returnFailure",
2744     "name": "return failure",
2745     "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",
2746     "comments": "",
2747     "x": 3879.8350524902344,
2748     "y": 1982.6677513122559,
2749     "z": "ea31d3f9.c58ce",
2750     "wires": []
2751   },
2752   {
2753     "id": "2726f205.443f6e",
2754     "type": "set",
2755     "name": "Add prop.spoke.route",
2756     "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",
2757     "comments": "",
2758     "x": 3415.6980171203613,
2759     "y": 2051.3642127513885,
2760     "z": "ea31d3f9.c58ce",
2761     "wires": []
2762   },
2763   {
2764     "id": "72173b95.fc02b4",
2765     "type": "set",
2766     "name": "set  prop.underlay.routeIds",
2767     "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",
2768     "comments": "",
2769     "x": 3425.665542602539,
2770     "y": 2211.0309886932373,
2771     "z": "ea31d3f9.c58ce",
2772     "wires": []
2773   },
2774   {
2775     "id": "c591ad14.b9dd7",
2776     "type": "block",
2777     "name": "block atomic",
2778     "xml": "<block atomic=\"true\">\n",
2779     "atomic": "false",
2780     "comments": "",
2781     "outputs": 1,
2782     "x": 3104.999671936035,
2783     "y": 1951.4999113082886,
2784     "z": "ea31d3f9.c58ce",
2785     "wires": [
2786       [
2787         "54f01fb1.eab0c",
2788         "2726f205.443f6e",
2789         "72173b95.fc02b4",
2790         "b0e30676.c2a618",
2791         "a7156e9f.23a1b",
2792         "541b6902.dd6b58",
2793         "77b69608.7345f8",
2794         "75459c33.78c964",
2795         "d5a685ee.a4f698",
2796         "f073f95f.7848a8"
2797       ]
2798     ]
2799   },
2800   {
2801     "id": "58ea94fe.88fe4c",
2802     "type": "block",
2803     "name": "block atomic",
2804     "xml": "<block atomic=\"true\">\n",
2805     "atomic": "false",
2806     "comments": "",
2807     "outputs": 1,
2808     "x": 3136.9997749328613,
2809     "y": 2593.5002613067627,
2810     "z": "ea31d3f9.c58ce",
2811     "wires": [
2812       [
2813         "31f4dc9.4459824",
2814         "53da0cfd.4e5c84",
2815         "7c9721cc.23414",
2816         "bd1192a1.70e0b",
2817         "de488f87.4a5ee",
2818         "cc49685f.b2d5d8",
2819         "7b57d512.398e6c"
2820       ]
2821     ]
2822   },
2823   {
2824     "id": "c7717ba5.717ea8",
2825     "type": "outcome",
2826     "name": "DeactivateSDWANAttachmentInstance",
2827     "xml": "<outcome value='DeactivateSDWANAttachmentInstance'>",
2828     "comments": "",
2829     "outputs": 1,
2830     "x": 2885.4998321533203,
2831     "y": 2587.500072479248,
2832     "z": "ea31d3f9.c58ce",
2833     "wires": [
2834       [
2835         "58ea94fe.88fe4c"
2836       ]
2837     ]
2838   },
2839   {
2840     "id": "77b69608.7345f8",
2841     "type": "set",
2842     "name": "Add sites to list and update length",
2843     "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",
2844     "comments": "",
2845     "x": 3430.0318298339844,
2846     "y": 2336.0318689346313,
2847     "z": "ea31d3f9.c58ce",
2848     "wires": []
2849   },
2850   {
2851     "id": "fd537752.3855d8",
2852     "type": "comment",
2853     "name": "save hubsiteIds and spoke siteIds for provision",
2854     "info": "",
2855     "comments": "",
2856     "x": 3462.0322036743164,
2857     "y": 2292.0317430496216,
2858     "z": "ea31d3f9.c58ce",
2859     "wires": []
2860   },
2861   {
2862     "id": "96a23bd5.060968",
2863     "type": "switchNode",
2864     "name": "switch name",
2865     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'name'`\">\n",
2866     "comments": "",
2867     "outputs": 1,
2868     "x": 3419.031005859375,
2869     "y": 458.03125,
2870     "z": "ea31d3f9.c58ce",
2871     "wires": [
2872       [
2873         "7dad2dd.add95d4"
2874       ]
2875     ]
2876   },
2877   {
2878     "id": "7dad2dd.add95d4",
2879     "type": "outcomeTrue",
2880     "name": "true",
2881     "xml": "<outcome value='true'>\n",
2882     "comments": "",
2883     "outputs": 1,
2884     "x": 3619.0307807922363,
2885     "y": 458.0314121246338,
2886     "z": "ea31d3f9.c58ce",
2887     "wires": [
2888       [
2889         "deeabd26.1be7b"
2890       ]
2891     ]
2892   },
2893   {
2894     "id": "deeabd26.1be7b",
2895     "type": "set",
2896     "name": "set prop.spoke.siteName",
2897     "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",
2898     "comments": "",
2899     "x": 3807.0315856933594,
2900     "y": 456.63202571868896,
2901     "z": "ea31d3f9.c58ce",
2902     "wires": []
2903   },
2904   {
2905     "id": "229bba7c.508e96",
2906     "type": "switchNode",
2907     "name": "switch name",
2908     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].name == 'name'`\">\n",
2909     "comments": "",
2910     "outputs": 1,
2911     "x": 3121.0310287475586,
2912     "y": 1757.5311088562012,
2913     "z": "ea31d3f9.c58ce",
2914     "wires": [
2915       [
2916         "980f0d4f.cfeac"
2917       ]
2918     ]
2919   },
2920   {
2921     "id": "980f0d4f.cfeac",
2922     "type": "outcomeTrue",
2923     "name": "true",
2924     "xml": "<outcome value='true'>\n",
2925     "comments": "",
2926     "outputs": 1,
2927     "x": 3272.0313987731934,
2928     "y": 1756.53129196167,
2929     "z": "ea31d3f9.c58ce",
2930     "wires": [
2931       [
2932         "bc242aa.e7cd1d8"
2933       ]
2934     ]
2935   },
2936   {
2937     "id": "bc242aa.e7cd1d8",
2938     "type": "set",
2939     "name": "set prop.hub.siteName",
2940     "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",
2941     "comments": "",
2942     "x": 3444.031406402588,
2943     "y": 1754.1318607330322,
2944     "z": "ea31d3f9.c58ce",
2945     "wires": []
2946   },
2947   {
2948     "id": "962ad5c3.0da1a8",
2949     "type": "set",
2950     "name": "set prop.provision.siteIds_length=0",
2951     "xml": "<set>\n<parameter name='prop.provision.siteIds_length' value='0' />\n\n\n\n",
2952     "comments": "",
2953     "x": 444.03126525878906,
2954     "y": 344.0312547683716,
2955     "z": "ea31d3f9.c58ce",
2956     "wires": []
2957   },
2958   {
2959     "id": "ba15291d.217778",
2960     "type": "execute",
2961     "name": "execute RestApiCallNode site provision urls",
2962     "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.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
2963     "comments": "",
2964     "outputs": 1,
2965     "x": 796.0312957763672,
2966     "y": 776.0314712524414,
2967     "z": "ea31d3f9.c58ce",
2968     "wires": [
2969       [
2970         "863c45b0.87f298",
2971         "e8831f50.130f7"
2972       ]
2973     ]
2974   },
2975   {
2976     "id": "e8831f50.130f7",
2977     "type": "success",
2978     "name": "success",
2979     "xml": "<outcome value='success'>\n",
2980     "comments": "",
2981     "outputs": 1,
2982     "x": 1060.0315551757812,
2983     "y": 798.0315160751343,
2984     "z": "ea31d3f9.c58ce",
2985     "wires": [
2986       []
2987     ]
2988   },
2989   {
2990     "id": "863c45b0.87f298",
2991     "type": "failure",
2992     "name": "failure",
2993     "xml": "<outcome value='failure'>\n",
2994     "comments": "",
2995     "outputs": 1,
2996     "x": 1061.0313415527344,
2997     "y": 755.0314540863037,
2998     "z": "ea31d3f9.c58ce",
2999     "wires": [
3000       [
3001         "f11e1d9d.f9f63"
3002       ]
3003     ]
3004   },
3005   {
3006     "id": "f11e1d9d.f9f63",
3007     "type": "returnFailure",
3008     "name": "return failure",
3009     "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",
3010     "comments": "",
3011     "x": 1206.0318641662598,
3012     "y": 753.0314922332764,
3013     "z": "ea31d3f9.c58ce",
3014     "wires": []
3015   },
3016   {
3017     "id": "da982ae7.c19088",
3018     "type": "for",
3019     "name": "for providx..prop.provision.siteIds[]",
3020     "xml": "<for index='providx' start='0' end='`$prop.provision.siteIds_length`' >\n",
3021     "comments": "",
3022     "outputs": 1,
3023     "x": 437.0312957763672,
3024     "y": 548.0312948226929,
3025     "z": "ea31d3f9.c58ce",
3026     "wires": [
3027       [
3028         "2d873e7f.4b1bc2"
3029       ]
3030     ]
3031   },
3032   {
3033     "id": "2d873e7f.4b1bc2",
3034     "type": "block",
3035     "name": "block atmoic",
3036     "xml": "<block atomic=\"true\">\n",
3037     "atomic": "false",
3038     "comments": "",
3039     "outputs": 1,
3040     "x": 461.0313377380371,
3041     "y": 758.031268119812,
3042     "z": "ea31d3f9.c58ce",
3043     "wires": [
3044       [
3045         "50fee5f7.6d296c",
3046         "ba15291d.217778",
3047         "89a54eb6.e2142"
3048       ]
3049     ]
3050   },
3051   {
3052     "id": "50fee5f7.6d296c",
3053     "type": "set",
3054     "name": "set prop.spoke.hubSiteId, spokeSiteId",
3055     "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",
3056     "comments": "",
3057     "x": 772.0339965820312,
3058     "y": 634.6329832077026,
3059     "z": "ea31d3f9.c58ce",
3060     "wires": []
3061   },
3062   {
3063     "id": "89a54eb6.e2142",
3064     "type": "record",
3065     "name": "record provision url response to the file",
3066     "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",
3067     "comments": "",
3068     "outputs": 1,
3069     "x": 768.0313720703125,
3070     "y": 870.0313358306885,
3071     "z": "ea31d3f9.c58ce",
3072     "wires": [
3073       []
3074     ]
3075   },
3076   {
3077     "id": "94a7fcab.3f18",
3078     "type": "block",
3079     "name": "block atmoic",
3080     "xml": "<block atomic=\"true\">\n",
3081     "atomic": "false",
3082     "comments": "",
3083     "outputs": 1,
3084     "x": 2510.031482696533,
3085     "y": 1025.0313262939453,
3086     "z": "ea31d3f9.c58ce",
3087     "wires": [
3088       [
3089         "e9ad6cc9.abb1"
3090       ]
3091     ]
3092   },
3093   {
3094     "id": "d063fbaf.bf9cb8",
3095     "type": "block",
3096     "name": "block atmoic",
3097     "xml": "<block atomic=\"true\">\n",
3098     "atomic": "false",
3099     "comments": "",
3100     "outputs": 1,
3101     "x": 1990.0311584472656,
3102     "y": 588.0313091278076,
3103     "z": "ea31d3f9.c58ce",
3104     "wires": [
3105       [
3106         "4b3c3b19.b12c44"
3107       ]
3108     ]
3109   },
3110   {
3111     "id": "a24202ba.c8c7c",
3112     "type": "block",
3113     "name": "block atmoic",
3114     "xml": "<block atomic=\"true\">\n",
3115     "atomic": "false",
3116     "comments": "",
3117     "outputs": 1,
3118     "x": 1934.0313262939453,
3119     "y": 679.0312175750732,
3120     "z": "ea31d3f9.c58ce",
3121     "wires": [
3122       [
3123         "1134832c.af388d",
3124         "e393fec8.f9974"
3125       ]
3126     ]
3127   },
3128   {
3129     "id": "541b6902.dd6b58",
3130     "type": "set",
3131     "name": "set prop.underlay.routeIds_length++",
3132     "xml": "<set>\n<parameter name='prop.underlay.routeIds_length' value='`$prop.underlay.routeIds_length + 1`' />\n\n\n\n\n",
3133     "comments": "",
3134     "x": 3455.0011596679688,
3135     "y": 2247.250065803528,
3136     "z": "ea31d3f9.c58ce",
3137     "wires": []
3138   },
3139   {
3140     "id": "75459c33.78c964",
3141     "type": "set",
3142     "name": "Update prop.provision.siteIds_length",
3143     "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",
3144     "comments": "",
3145     "x": 3438.5009002685547,
3146     "y": 2371.2501611709595,
3147     "z": "ea31d3f9.c58ce",
3148     "wires": []
3149   },
3150   {
3151     "id": "68bdc58a.c36e2c",
3152     "type": "set",
3153     "name": "set prop.spoke.siteidx",
3154     "xml": "<set>\n<parameter name='prop.spoke.siteidx' value='`$i`' />\n\n",
3155     "comments": "",
3156     "x": 2878.7501907348633,
3157     "y": 424.0000286102295,
3158     "z": "ea31d3f9.c58ce",
3159     "wires": []
3160   },
3161   {
3162     "id": "8706bf22.e777d",
3163     "type": "set",
3164     "name": "set  underlay route ids to service data",
3165     "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",
3166     "comments": "",
3167     "x": 1901.0006408691406,
3168     "y": 1911.0003986358643,
3169     "z": "ea31d3f9.c58ce",
3170     "wires": []
3171   },
3172   {
3173     "id": "546d6174.f994f",
3174     "type": "set",
3175     "name": "set prop.underlay.routeIds_length=0",
3176     "xml": "<set>\n<parameter name='prop.underlay.routeIds_length' value='0' />\n\n\n\n",
3177     "comments": "",
3178     "x": 448.9961242675781,
3179     "y": 295.9961128234863,
3180     "z": "ea31d3f9.c58ce",
3181     "wires": []
3182   },
3183   {
3184     "id": "de488f87.4a5ee",
3185     "type": "for",
3186     "name": "for loop uidx - Get route Id from prop.underlay.routeIds",
3187     "xml": "<for index=\"uidx\" start=\"0\" end=\"`$prop.underlay.routeIds_length`\">\n    \n    \n",
3188     "comments": "",
3189     "outputs": 1,
3190     "x": 3492.6630325317383,
3191     "y": 2466.3295001983643,
3192     "z": "ea31d3f9.c58ce",
3193     "wires": [
3194       [
3195         "b94dca1b.799658"
3196       ]
3197     ]
3198   },
3199   {
3200     "id": "b94dca1b.799658",
3201     "type": "block",
3202     "name": "block atomic",
3203     "xml": "<block atomic=\"true\">\n",
3204     "atomic": "false",
3205     "comments": "",
3206     "outputs": 1,
3207     "x": 3784.3297271728516,
3208     "y": 2466.3295001983643,
3209     "z": "ea31d3f9.c58ce",
3210     "wires": [
3211       [
3212         "f30a5bcf.2eba98"
3213       ]
3214     ]
3215   },
3216   {
3217     "id": "f30a5bcf.2eba98",
3218     "type": "switchNode",
3219     "name": "switch prop.hub.siteId",
3220     "xml": "<switch test=\"`$prop.underlay.routeIds[$uidx].hubSiteId == $prop.hub.siteId`\">\n",
3221     "comments": "",
3222     "outputs": 1,
3223     "x": 3973.3297424316406,
3224     "y": 2466.3296632766724,
3225     "z": "ea31d3f9.c58ce",
3226     "wires": [
3227       [
3228         "9e731b50.667688"
3229       ]
3230     ]
3231   },
3232   {
3233     "id": "9e731b50.667688",
3234     "type": "outcomeTrue",
3235     "name": "true",
3236     "xml": "<outcome value='true'>\n",
3237     "comments": "",
3238     "outputs": 1,
3239     "x": 4144.329177856445,
3240     "y": 2466.329662322998,
3241     "z": "ea31d3f9.c58ce",
3242     "wires": [
3243       [
3244         "34e4e4e1.bf23ec"
3245       ]
3246     ]
3247   },
3248   {
3249     "id": "34e4e4e1.bf23ec",
3250     "type": "block",
3251     "name": "block atomic",
3252     "xml": "<block atomic=\"true\">\n",
3253     "atomic": "false",
3254     "comments": "",
3255     "outputs": 1,
3256     "x": 4298.329177856445,
3257     "y": 2470.3296699523926,
3258     "z": "ea31d3f9.c58ce",
3259     "wires": [
3260       [
3261         "7f01b9d0.ef7bc8"
3262       ]
3263     ]
3264   },
3265   {
3266     "id": "7f01b9d0.ef7bc8",
3267     "type": "set",
3268     "name": "set prop.hubRouteId prop.spokeRouteId",
3269     "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",
3270     "comments": "",
3271     "x": 4384.32918548584,
3272     "y": 2542.32967376709,
3273     "z": "ea31d3f9.c58ce",
3274     "wires": []
3275   },
3276   {
3277     "id": "af471c20.d9cb7",
3278     "type": "switchNode",
3279     "name": "switch underlayRouteIds",
3280     "xml": "<switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'underlayRouteIds'`\">\n",
3281     "comments": "",
3282     "outputs": 1,
3283     "x": 3423.99609375,
3284     "y": 562.6627197265625,
3285     "z": "ea31d3f9.c58ce",
3286     "wires": [
3287       [
3288         "3c3b3752.f46c08"
3289       ]
3290     ]
3291   },
3292   {
3293     "id": "3c3b3752.f46c08",
3294     "type": "outcomeTrue",
3295     "name": "true",
3296     "xml": "<outcome value='true'>\n",
3297     "comments": "",
3298     "outputs": 1,
3299     "x": 3623.9955711364746,
3300     "y": 550.6628341674805,
3301     "z": "ea31d3f9.c58ce",
3302     "wires": [
3303       [
3304         "981ac32e.958e4"
3305       ]
3306     ]
3307   },
3308   {
3309     "id": "a4a704fd.090458",
3310     "type": "set",
3311     "name": "set prop.underlay.routeIds",
3312     "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",
3313     "comments": "",
3314     "x": 3994.996971130371,
3315     "y": 550.2635440826416,
3316     "z": "ea31d3f9.c58ce",
3317     "wires": []
3318   },
3319   {
3320     "id": "3da7a5e7.865d8a",
3321     "type": "switchNode",
3322     "name": "switch request-action",
3323     "xml": "<switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>\n",
3324     "comments": "",
3325     "outputs": 1,
3326     "x": 1110.9963836669922,
3327     "y": 2002.329628944397,
3328     "z": "ea31d3f9.c58ce",
3329     "wires": [
3330       [
3331         "1f1cb6fc.4dc6b9",
3332         "a206c36a.2d39f"
3333       ]
3334     ]
3335   },
3336   {
3337     "id": "1f1cb6fc.4dc6b9",
3338     "type": "outcome",
3339     "name": "ActivateSDWANAttachmentInstance",
3340     "xml": "<outcome value='ActivateSDWANAttachmentInstance'>",
3341     "comments": "",
3342     "outputs": 1,
3343     "x": 1374.9964294433594,
3344     "y": 1957.329626083374,
3345     "z": "ea31d3f9.c58ce",
3346     "wires": [
3347       [
3348         "3f4012bd.4d4d2e"
3349       ]
3350     ]
3351   },
3352   {
3353     "id": "3f4012bd.4d4d2e",
3354     "type": "block",
3355     "name": "block atomic",
3356     "xml": "<block atomic=\"true\">\n",
3357     "atomic": "false",
3358     "comments": "",
3359     "outputs": 1,
3360     "x": 1616.9689407348633,
3361     "y": 1953.7983770370483,
3362     "z": "ea31d3f9.c58ce",
3363     "wires": [
3364       [
3365         "8706bf22.e777d",
3366         "cb472a7b.dc7d38",
3367         "879af91.a400b08",
3368         "93dcb194.e6988"
3369       ]
3370     ]
3371   },
3372   {
3373     "id": "1834840f.e68edc",
3374     "type": "block",
3375     "name": "block atomic",
3376     "xml": "<block atomic=\"true\">\n",
3377     "atomic": "false",
3378     "comments": "",
3379     "outputs": 1,
3380     "x": 1620.9689292907715,
3381     "y": 2037.7985458374023,
3382     "z": "ea31d3f9.c58ce",
3383     "wires": [
3384       [
3385         "92497dd5.46538"
3386       ]
3387     ]
3388   },
3389   {
3390     "id": "a206c36a.2d39f",
3391     "type": "outcome",
3392     "name": "DeactivateSDWANAttachmentInstance",
3393     "xml": "<outcome value='DeactivateSDWANAttachmentInstance'>",
3394     "comments": "",
3395     "outputs": 1,
3396     "x": 1372.4690704345703,
3397     "y": 2039.7983827590942,
3398     "z": "ea31d3f9.c58ce",
3399     "wires": [
3400       [
3401         "1834840f.e68edc"
3402       ]
3403     ]
3404   },
3405   {
3406     "id": "92497dd5.46538",
3407     "type": "set",
3408     "name": "set input parameter length -1",
3409     "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",
3410     "comments": "",
3411     "x": 1849.6626281738281,
3412     "y": 2036.32963180542,
3413     "z": "ea31d3f9.c58ce",
3414     "wires": []
3415   },
3416   {
3417     "id": "9af7165e.2d5758",
3418     "type": "comment",
3419     "name": "Get route routes IDs",
3420     "info": "",
3421     "comments": "",
3422     "x": 3392.3294982910156,
3423     "y": 2427.6627368927,
3424     "z": "ea31d3f9.c58ce",
3425     "wires": []
3426   },
3427   {
3428     "id": "cb472a7b.dc7d38",
3429     "type": "set",
3430     "name": "set  underlay route ids to service data",
3431     "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",
3432     "comments": "",
3433     "x": 1890.329574584961,
3434     "y": 1985.662672996521,
3435     "z": "ea31d3f9.c58ce",
3436     "wires": []
3437   },
3438   {
3439     "id": "879af91.a400b08",
3440     "type": "for",
3441     "name": "for jidx paramidx - Get topology from servicedata",
3442     "xml": "<for index=\"jidx\" start=\"0\" end=\"`$prop.underlay.routeIds_length`\">\n    \n    \n",
3443     "comments": "",
3444     "outputs": 1,
3445     "x": 1979.3294982910156,
3446     "y": 1532.329444885254,
3447     "z": "ea31d3f9.c58ce",
3448     "wires": [
3449       [
3450         "cdfd8790.f983d8"
3451       ]
3452     ]
3453   },
3454   {
3455     "id": "3e5fe1f4.4771be",
3456     "type": "execute",
3457     "name": "execute concat",
3458     "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",
3459     "comments": "",
3460     "outputs": 1,
3461     "x": 2163.329833984375,
3462     "y": 1665.9966478347778,
3463     "z": "ea31d3f9.c58ce",
3464     "wires": [
3465       []
3466     ]
3467   },
3468   {
3469     "id": "328df7f4.d9d5f8",
3470     "type": "execute",
3471     "name": "execute concat",
3472     "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",
3473     "comments": "",
3474     "outputs": 1,
3475     "x": 2173.3298263549805,
3476     "y": 1618.6629858016968,
3477     "z": "ea31d3f9.c58ce",
3478     "wires": [
3479       []
3480     ]
3481   },
3482   {
3483     "id": "cdfd8790.f983d8",
3484     "type": "block",
3485     "name": "block atomic",
3486     "xml": "<block atomic=\"true\">\n",
3487     "atomic": "false",
3488     "comments": "",
3489     "outputs": 1,
3490     "x": 1886.329517364502,
3491     "y": 1717.6627750396729,
3492     "z": "ea31d3f9.c58ce",
3493     "wires": [
3494       [
3495         "328df7f4.d9d5f8",
3496         "3e5fe1f4.4771be",
3497         "413e65c4.2ce4ac",
3498         "ce595947.f7b1e8",
3499         "41c2276f.7ab7c8",
3500         "a2941eac.dd47a"
3501       ]
3502     ]
3503   },
3504   {
3505     "id": "413e65c4.2ce4ac",
3506     "type": "execute",
3507     "name": "execute concat",
3508     "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",
3509     "comments": "",
3510     "outputs": 1,
3511     "x": 2170.3295364379883,
3512     "y": 1705.6628789901733,
3513     "z": "ea31d3f9.c58ce",
3514     "wires": [
3515       []
3516     ]
3517   },
3518   {
3519     "id": "ce595947.f7b1e8",
3520     "type": "execute",
3521     "name": "execute concat",
3522     "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",
3523     "comments": "",
3524     "outputs": 1,
3525     "x": 2170.3295364379883,
3526     "y": 1741.6628789901733,
3527     "z": "ea31d3f9.c58ce",
3528     "wires": [
3529       []
3530     ]
3531   },
3532   {
3533     "id": "41c2276f.7ab7c8",
3534     "type": "execute",
3535     "name": "execute concat",
3536     "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",
3537     "comments": "",
3538     "outputs": 1,
3539     "x": 2163.3295364379883,
3540     "y": 1781.9962530136108,
3541     "z": "ea31d3f9.c58ce",
3542     "wires": [
3543       []
3544     ]
3545   },
3546   {
3547     "id": "a2941eac.dd47a",
3548     "type": "execute",
3549     "name": "execute concat",
3550     "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",
3551     "comments": "",
3552     "outputs": 1,
3553     "x": 2166.329475402832,
3554     "y": 1836.6627922058105,
3555     "z": "ea31d3f9.c58ce",
3556     "wires": [
3557       []
3558     ]
3559   },
3560   {
3561     "id": "93dcb194.e6988",
3562     "type": "set",
3563     "name": "Set tmp.routeString",
3564     "xml": "<set>\n<parameter name='tmp.routeString' value=\"\" />\n\n",
3565     "comments": "",
3566     "x": 1883.3294982910156,
3567     "y": 1473.6627759933472,
3568     "z": "ea31d3f9.c58ce",
3569     "wires": []
3570   },
3571   {
3572     "id": "981ac32e.958e4",
3573     "type": "block",
3574     "name": "block atomic",
3575     "xml": "<block atomic=\"true\">\n",
3576     "atomic": "false",
3577     "comments": "",
3578     "outputs": 1,
3579     "x": 3771.9963188171387,
3580     "y": 596.9961318969727,
3581     "z": "ea31d3f9.c58ce",
3582     "wires": [
3583       [
3584         "a4a704fd.090458",
3585         "474a807.5a3348"
3586       ]
3587     ]
3588   },
3589   {
3590     "id": "474a807.5a3348",
3591     "type": "execute",
3592     "name": "execute split |",
3593     "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",
3594     "comments": "",
3595     "outputs": 1,
3596     "x": 3949.9963302612305,
3597     "y": 616.9961318969727,
3598     "z": "ea31d3f9.c58ce",
3599     "wires": [
3600       [
3601         "5c929964.4b8ce8",
3602         "acedb986.795fa8"
3603       ]
3604     ]
3605   },
3606   {
3607     "id": "acedb986.795fa8",
3608     "type": "failure",
3609     "name": "success",
3610     "xml": "<outcome value='success'>\n",
3611     "comments": "",
3612     "outputs": 1,
3613     "x": 4126.9963455200195,
3614     "y": 597.9961309432983,
3615     "z": "ea31d3f9.c58ce",
3616     "wires": [
3617       [
3618         "96ac3ef1.0da81"
3619       ]
3620     ]
3621   },
3622   {
3623     "id": "5c929964.4b8ce8",
3624     "type": "failure",
3625     "name": "failure",
3626     "xml": "<outcome value='failure'>\n",
3627     "comments": "",
3628     "outputs": 1,
3629     "x": 4115.9963455200195,
3630     "y": 645.996132850647,
3631     "z": "ea31d3f9.c58ce",
3632     "wires": [
3633       [
3634         "90fc0aec.112218"
3635       ]
3636     ]
3637   },
3638   {
3639     "id": "62992e2c.a242f",
3640     "type": "set",
3641     "name": "set ipAddress prefixLength",
3642     "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]`' />",
3643     "comments": "",
3644     "x": 5312.997211456299,
3645     "y": 531.9963731765747,
3646     "z": "ea31d3f9.c58ce",
3647     "wires": []
3648   },
3649   {
3650     "id": "90fc0aec.112218",
3651     "type": "block",
3652     "name": "block",
3653     "xml": "<block>\n",
3654     "atomic": "false",
3655     "comments": "",
3656     "outputs": 1,
3657     "x": 4245.996349334717,
3658     "y": 645.996132850647,
3659     "z": "ea31d3f9.c58ce",
3660     "wires": [
3661       []
3662     ]
3663   },
3664   {
3665     "id": "96ac3ef1.0da81",
3666     "type": "for",
3667     "name": "for loop ridx ",
3668     "xml": "<for index=\"ridx\" start=\"0\" end=\"`$prop.underlay.routeIdsValue_length`\">\n    \n    \n",
3669     "comments": "",
3670     "outputs": 1,
3671     "x": 4272.996032714844,
3672     "y": 595.9961309432983,
3673     "z": "ea31d3f9.c58ce",
3674     "wires": [
3675       [
3676         "94fe12e4.b3272"
3677       ]
3678     ]
3679   },
3680   {
3681     "id": "94fe12e4.b3272",
3682     "type": "block",
3683     "name": "block atomic",
3684     "xml": "<block atomic=\"true\">\n",
3685     "atomic": "false",
3686     "comments": "",
3687     "outputs": 1,
3688     "x": 4451.329044342041,
3689     "y": 592.9961318969727,
3690     "z": "ea31d3f9.c58ce",
3691     "wires": [
3692       [
3693         "bc1b307a.e9066"
3694       ]
3695     ]
3696   },
3697   {
3698     "id": "bc1b307a.e9066",
3699     "type": "execute",
3700     "name": "execute split ,",
3701     "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",
3702     "comments": "",
3703     "outputs": 1,
3704     "x": 4626.329055786133,
3705     "y": 591.996129989624,
3706     "z": "ea31d3f9.c58ce",
3707     "wires": [
3708       [
3709         "479c7699.d03df8",
3710         "992b4620.1b2238"
3711       ]
3712     ]
3713   },
3714   {
3715     "id": "479c7699.d03df8",
3716     "type": "failure",
3717     "name": "success",
3718     "xml": "<outcome value='success'>\n",
3719     "comments": "",
3720     "outputs": 1,
3721     "x": 4783.32905960083,
3722     "y": 568.9961376190186,
3723     "z": "ea31d3f9.c58ce",
3724     "wires": [
3725       [
3726         "bee08918.a3dfe8"
3727       ]
3728     ]
3729   },
3730   {
3731     "id": "992b4620.1b2238",
3732     "type": "failure",
3733     "name": "failure",
3734     "xml": "<outcome value='failure'>\n",
3735     "comments": "",
3736     "outputs": 1,
3737     "x": 4772.32905960083,
3738     "y": 616.9961395263672,
3739     "z": "ea31d3f9.c58ce",
3740     "wires": [
3741       [
3742         "1506d77b.2e8159"
3743       ]
3744     ]
3745   },
3746   {
3747     "id": "1506d77b.2e8159",
3748     "type": "block",
3749     "name": "block",
3750     "xml": "<block>\n",
3751     "atomic": "false",
3752     "comments": "",
3753     "outputs": 1,
3754     "x": 4902.329063415527,
3755     "y": 616.9961395263672,
3756     "z": "ea31d3f9.c58ce",
3757     "wires": [
3758       []
3759     ]
3760   },
3761   {
3762     "id": "16eea4b9.2fb1ab",
3763     "type": "block",
3764     "name": "block atomic",
3765     "xml": "<block atomic=\"true\">\n",
3766     "atomic": "false",
3767     "comments": "",
3768     "outputs": 1,
3769     "x": 5105.661590576172,
3770     "y": 547.9962916374207,
3771     "z": "ea31d3f9.c58ce",
3772     "wires": [
3773       [
3774         "62992e2c.a242f",
3775         "2107fdbe.561112"
3776       ]
3777     ]
3778   },
3779   {
3780     "id": "2107fdbe.561112",
3781     "type": "set",
3782     "name": "set ipAddress prefixLength",
3783     "xml": "<set>\n<parameter name='prop.underlay.routeIds_length' value='`$prop.underlay.routeIds_length + 1`' />\n",
3784     "comments": "",
3785     "x": 5305.329250335693,
3786     "y": 573.996169090271,
3787     "z": "ea31d3f9.c58ce",
3788     "wires": []
3789   },
3790   {
3791     "id": "bee08918.a3dfe8",
3792     "type": "switchNode",
3793     "name": "switch prop.underlay.routeIdsValues_length",
3794     "xml": "<switch test='`$prop.underlay.routeIdsValues_length`'>\n",
3795     "comments": "",
3796     "outputs": 1,
3797     "x": 4981.663215637207,
3798     "y": 449.9961624145508,
3799     "z": "ea31d3f9.c58ce",
3800     "wires": [
3801       [
3802         "17f5531.c69dcad",
3803         "9cd3fd30.65304"
3804       ]
3805     ]
3806   },
3807   {
3808     "id": "17f5531.c69dcad",
3809     "type": "outcome",
3810     "name": "3",
3811     "xml": "<outcome value='3'>\n",
3812     "comments": "",
3813     "outputs": 1,
3814     "x": 5216.632148742676,
3815     "y": 486.9648895263672,
3816     "z": "ea31d3f9.c58ce",
3817     "wires": [
3818       [
3819         "16eea4b9.2fb1ab"
3820       ]
3821     ]
3822   },
3823   {
3824     "id": "9cd3fd30.65304",
3825     "type": "other",
3826     "name": "other",
3827     "xml": "<outcome value='Other'>\n",
3828     "comments": "",
3829     "outputs": 1,
3830     "x": 5233.663074493408,
3831     "y": 368.99610328674316,
3832     "z": "ea31d3f9.c58ce",
3833     "wires": [
3834       [
3835         "ae2b29d0.cafa18"
3836       ]
3837     ]
3838   },
3839   {
3840     "id": "ae2b29d0.cafa18",
3841     "type": "block",
3842     "name": "block",
3843     "xml": "<block>\n",
3844     "atomic": "false",
3845     "comments": "",
3846     "outputs": 1,
3847     "x": 5394.66259765625,
3848     "y": 408.99609375,
3849     "z": "ea31d3f9.c58ce",
3850     "wires": [
3851       []
3852     ]
3853   },
3854   {
3855     "id": "c6ccd14a.96548",
3856     "type": "returnFailure",
3857     "name": "return failure",
3858     "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",
3859     "comments": "",
3860     "x": 2874.002540588379,
3861     "y": 982.3028502464294,
3862     "z": "ea31d3f9.c58ce",
3863     "wires": []
3864   },
3865   {
3866     "id": "92d1a6eb.dd91a8",
3867     "type": "block",
3868     "name": "block",
3869     "xml": "<block>\n",
3870     "atomic": "false",
3871     "comments": "",
3872     "outputs": 1,
3873     "x": 2860.0020484924316,
3874     "y": 930.9692711830139,
3875     "z": "ea31d3f9.c58ce",
3876     "wires": [
3877       []
3878     ]
3879   },
3880   {
3881     "id": "d5a685ee.a4f698",
3882     "type": "set",
3883     "name": "hardcode hub route",
3884     "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",
3885     "comments": "",
3886     "x": 3394.0038681030273,
3887     "y": 1822.0039892196655,
3888     "z": "ea31d3f9.c58ce",
3889     "wires": []
3890   },
3891   {
3892     "id": "f073f95f.7848a8",
3893     "type": "set",
3894     "name": "hardcode spoke route",
3895     "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\" />",
3896     "comments": "",
3897     "x": 3409.004409790039,
3898     "y": 2020.0039653778076,
3899     "z": "ea31d3f9.c58ce",
3900     "wires": []
3901   },
3902   {
3903     "id": "cc49685f.b2d5d8",
3904     "type": "set",
3905     "name": "hardcode hub route",
3906     "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",
3907     "comments": "",
3908     "x": 3425.3335723876953,
3909     "y": 2496.000065803528,
3910     "z": "ea31d3f9.c58ce",
3911     "wires": []
3912   },
3913   {
3914     "id": "7b57d512.398e6c",
3915     "type": "set",
3916     "name": "hardcode spoke route",
3917     "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\" />",
3918     "comments": "",
3919     "x": 3450.333251953125,
3920     "y": 2608,
3921     "z": "ea31d3f9.c58ce",
3922     "wires": []
3923   },
3924   {
3925     "id": "ab1ef1f9.e54ea",
3926     "type": "block",
3927     "name": "block atmoic",
3928     "xml": "<block atomic=\"true\">\n",
3929     "atomic": "false",
3930     "comments": "",
3931     "outputs": 1,
3932     "x": 3461.0041694641113,
3933     "y": 1227.5040493011475,
3934     "z": "ea31d3f9.c58ce",
3935     "wires": [
3936       [
3937         "564bf8e9.5ea9e8",
3938         "273881de.ee082e"
3939       ]
3940     ]
3941   },
3942   {
3943     "id": "896da4ec.a5e9f8",
3944     "type": "block",
3945     "name": "block atmoic",
3946     "xml": "<block atomic=\"true\">\n",
3947     "atomic": "false",
3948     "comments": "",
3949     "outputs": 1,
3950     "x": 3791.2541217803955,
3951     "y": 1395.0040378570557,
3952     "z": "ea31d3f9.c58ce",
3953     "wires": [
3954       [
3955         "9ec9fc87.5d09e"
3956       ]
3957     ]
3958   },
3959   {
3960     "id": "9ec9fc87.5d09e",
3961     "type": "switchNode",
3962     "name": "switch transportNetworkName==prop.spoke.transportNetworkName",
3963     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.portvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value == $prop.spoke.transportNetworkName`\">\n",
3964     "comments": "",
3965     "outputs": 1,
3966     "x": 4124.004144668579,
3967     "y": 1397.004313468933,
3968     "z": "ea31d3f9.c58ce",
3969     "wires": [
3970       [
3971         "3f80722d.d94e9e"
3972       ]
3973     ]
3974   },
3975   {
3976     "id": "3f80722d.d94e9e",
3977     "type": "outcomeTrue",
3978     "name": "true",
3979     "xml": "<outcome value='true'>\n",
3980     "comments": "",
3981     "outputs": 1,
3982     "x": 3991.0055894851685,
3983     "y": 1493.0042219161987,
3984     "z": "ea31d3f9.c58ce",
3985     "wires": [
3986       [
3987         "473f2da5.df7aa4"
3988       ]
3989     ]
3990   },
3991   {
3992     "id": "473f2da5.df7aa4",
3993     "type": "block",
3994     "name": "block atmoic",
3995     "xml": "<block atomic=\"true\">\n",
3996     "atomic": "false",
3997     "comments": "",
3998     "outputs": 1,
3999     "x": 4146.755597114563,
4000     "y": 1485.0042219161987,
4001     "z": "ea31d3f9.c58ce",
4002     "wires": [
4003       [
4004         "662f75a8.5b0d6c",
4005         "d2c57b63.a72078"
4006       ]
4007     ]
4008   },
4009   {
4010     "id": "d2c57b63.a72078",
4011     "type": "set",
4012     "name": "set tmp.wanportvidx ",
4013     "xml": "<set>\n<parameter name='tmp.wanportvidx' value='`$arvidx`' />\n\n",
4014     "comments": "",
4015     "x": 4324.2565660476685,
4016     "y": 1461.004343032837,
4017     "z": "ea31d3f9.c58ce",
4018     "wires": []
4019   },
4020   {
4021     "id": "f5ec2256.55a71",
4022     "type": "for",
4023     "name": "for loop wanportvidx - Get wan port ID from servicedata",
4024     "xml": "<for index=\"wportidx\" start=\"0\" end=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
4025     "comments": "",
4026     "outputs": 1,
4027     "x": 2732.5042877197266,
4028     "y": 1673.0043449401855,
4029     "z": "ea31d3f9.c58ce",
4030     "wires": [
4031       [
4032         "a355c702.37b978"
4033       ]
4034     ]
4035   },
4036   {
4037     "id": "a355c702.37b978",
4038     "type": "block",
4039     "name": "block atomic",
4040     "xml": "<block atomic=\"true\">\n",
4041     "atomic": "false",
4042     "comments": "",
4043     "outputs": 1,
4044     "x": 3035.5056915283203,
4045     "y": 1631.004680633545,
4046     "z": "ea31d3f9.c58ce",
4047     "wires": [
4048       [
4049         "4841755.e7a768c",
4050         "7ff6e951.a32b78",
4051         "803020cc.5b481"
4052       ]
4053     ]
4054   },
4055   {
4056     "id": "4841755.e7a768c",
4057     "type": "switchNode",
4058     "name": "switch wanPortId",
4059     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'wanPortId'`\">\n",
4060     "comments": "",
4061     "outputs": 1,
4062     "x": 3234.8393783569336,
4063     "y": 1588.0048933029175,
4064     "z": "ea31d3f9.c58ce",
4065     "wires": [
4066       [
4067         "2cb90465.e59cdc"
4068       ]
4069     ]
4070   },
4071   {
4072     "id": "2cb90465.e59cdc",
4073     "type": "outcomeTrue",
4074     "name": "true",
4075     "xml": "<outcome value='true'>\n",
4076     "comments": "",
4077     "outputs": 1,
4078     "x": 3395.8397064208984,
4079     "y": 1589.00497341156,
4080     "z": "ea31d3f9.c58ce",
4081     "wires": [
4082       [
4083         "406b564f.be2668"
4084       ]
4085     ]
4086   },
4087   {
4088     "id": "406b564f.be2668",
4089     "type": "set",
4090     "name": "set prop.hub.wanPortId",
4091     "xml": "<set>\n<parameter name='prop.hub.wanPortId' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\n",
4092     "comments": "",
4093     "x": 3585.8401679992676,
4094     "y": 1588.6052494049072,
4095     "z": "ea31d3f9.c58ce",
4096     "wires": []
4097   },
4098   {
4099     "id": "7ff6e951.a32b78",
4100     "type": "switchNode",
4101     "name": "switch providerIpAddress",
4102     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'providerIpAddress'`\">\n",
4103     "comments": "",
4104     "outputs": 1,
4105     "x": 3256.367862701416,
4106     "y": 1625.2011981010437,
4107     "z": "ea31d3f9.c58ce",
4108     "wires": [
4109       [
4110         "de4c4cc0.abc22"
4111       ]
4112     ]
4113   },
4114   {
4115     "id": "de4c4cc0.abc22",
4116     "type": "outcomeTrue",
4117     "name": "true",
4118     "xml": "<outcome value='true'>\n",
4119     "comments": "",
4120     "outputs": 1,
4121     "x": 3432.3688468933105,
4122     "y": 1625.2013206481934,
4123     "z": "ea31d3f9.c58ce",
4124     "wires": [
4125       [
4126         "409dc8c5.eeb998"
4127       ]
4128     ]
4129   },
4130   {
4131     "id": "409dc8c5.eeb998",
4132     "type": "set",
4133     "name": "set prop.hub.providerIpAddress",
4134     "xml": "<set>\n<parameter name='prop.hub.providerIpAddress' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\n",
4135     "comments": "",
4136     "x": 3634.368885040283,
4137     "y": 1625.8012409210205,
4138     "z": "ea31d3f9.c58ce",
4139     "wires": []
4140   },
4141   {
4142     "id": "803020cc.5b481",
4143     "type": "switchNode",
4144     "name": "switch ipAddress",
4145     "xml": "<switch test=\"`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].name == 'ipAddress'`\">\n",
4146     "comments": "",
4147     "outputs": 1,
4148     "x": 3228.867944717407,
4149     "y": 1662.701283454895,
4150     "z": "ea31d3f9.c58ce",
4151     "wires": [
4152       [
4153         "25fd164b.117a3a"
4154       ]
4155     ]
4156   },
4157   {
4158     "id": "25fd164b.117a3a",
4159     "type": "outcomeTrue",
4160     "name": "true",
4161     "xml": "<outcome value='true'>\n",
4162     "comments": "",
4163     "outputs": 1,
4164     "x": 3432.868885040283,
4165     "y": 1662.701235294342,
4166     "z": "ea31d3f9.c58ce",
4167     "wires": [
4168       [
4169         "10522aa8.f003c5"
4170       ]
4171     ]
4172   },
4173   {
4174     "id": "10522aa8.f003c5",
4175     "type": "set",
4176     "name": "set prop.hub.ipAddress",
4177     "xml": "<set>\n<parameter name='prop.hub.ipAddress' value='`$mdsal-arsd.service-data.vnfs.vnf[$tmp.wanportvidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$wportidx].value`' />\n",
4178     "comments": "",
4179     "x": 3627.8688888549805,
4180     "y": 1662.3012108802795,
4181     "z": "ea31d3f9.c58ce",
4182     "wires": []
4183   },
4184   {
4185     "id": "722e84e9.8ab54c",
4186     "type": "block",
4187     "name": "block",
4188     "xml": "<block>\n",
4189     "atomic": "false",
4190     "comments": "",
4191     "outputs": 1,
4192     "x": 3837.254180908203,
4193     "y": 1815.2539224624634,
4194     "z": "ea31d3f9.c58ce",
4195     "wires": [
4196       []
4197     ]
4198   },
4199   {
4200     "id": "78300110.b43b4",
4201     "type": "block",
4202     "name": "block",
4203     "xml": "<block>\n",
4204     "atomic": "false",
4205     "comments": "",
4206     "outputs": 1,
4207     "x": 3849.25390625,
4208     "y": 1859.25390625,
4209     "z": "ea31d3f9.c58ce",
4210     "wires": [
4211       []
4212     ]
4213   },
4214   {
4215     "id": "e6f4e702.6d5b68",
4216     "type": "block",
4217     "name": "block",
4218     "xml": "<block>\n",
4219     "atomic": "false",
4220     "comments": "",
4221     "outputs": 1,
4222     "x": 3860.2543621063232,
4223     "y": 2026.2540483474731,
4224     "z": "ea31d3f9.c58ce",
4225     "wires": [
4226       []
4227     ]
4228   },
4229   {
4230     "id": "b3f4e792.e33638",
4231     "type": "block",
4232     "name": "block",
4233     "xml": "<block>\n",
4234     "atomic": "false",
4235     "comments": "",
4236     "outputs": 1,
4237     "x": 3861.254119873047,
4238     "y": 2073.2540493011475,
4239     "z": "ea31d3f9.c58ce",
4240     "wires": [
4241       []
4242     ]
4243   },
4244   {
4245     "id": "7b4a5da7.783c64",
4246     "type": "block",
4247     "name": "block",
4248     "xml": "<block>\n",
4249     "atomic": "false",
4250     "comments": "",
4251     "outputs": 1,
4252     "x": 3852.2542991638184,
4253     "y": 2554.0039710998535,
4254     "z": "ea31d3f9.c58ce",
4255     "wires": [
4256       []
4257     ]
4258   },
4259   {
4260     "id": "4079a316.d4531c",
4261     "type": "block",
4262     "name": "block",
4263     "xml": "<block>\n",
4264     "atomic": "false",
4265     "comments": "",
4266     "outputs": 1,
4267     "x": 3853.254056930542,
4268     "y": 2601.003972053528,
4269     "z": "ea31d3f9.c58ce",
4270     "wires": [
4271       []
4272     ]
4273   },
4274   {
4275     "id": "2a5c753b.10964a",
4276     "type": "returnFailure",
4277     "name": "return failure",
4278     "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",
4279     "comments": "",
4280     "x": 4005.336700439453,
4281     "y": 2555.9710121154785,
4282     "z": "ea31d3f9.c58ce",
4283     "wires": []
4284   },
4285   {
4286     "id": "ae6e8595.d05358",
4287     "type": "block",
4288     "name": "block",
4289     "xml": "<block>\n",
4290     "atomic": "false",
4291     "comments": "",
4292     "outputs": 1,
4293     "x": 3852.25390625,
4294     "y": 2645.00390625,
4295     "z": "ea31d3f9.c58ce",
4296     "wires": [
4297       []
4298     ]
4299   },
4300   {
4301     "id": "a38da1c5.3c2df",
4302     "type": "block",
4303     "name": "block",
4304     "xml": "<block>\n",
4305     "atomic": "false",
4306     "comments": "",
4307     "outputs": 1,
4308     "x": 3853.2536640167236,
4309     "y": 2692.0039072036743,
4310     "z": "ea31d3f9.c58ce",
4311     "wires": [
4312       []
4313     ]
4314   }
4315 ]