58b8c3eb3f345aa4a4c169070e7916ef95b86525
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-activate.json
1 [
2   {
3     "id": "80dd667e.b96f28",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 113,
8     "y": 41,
9     "z": "dffc6494.bbb2d8",
10     "wires": [
11       [
12         "7472205c.aef1a"
13       ]
14     ]
15   },
16   {
17     "id": "7472205c.aef1a",
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": 304.0000057220459,
26     "y": 111.00001811981201,
27     "z": "dffc6494.bbb2d8",
28     "wires": [
29       [
30         "37ba3eae.275d42"
31       ]
32     ]
33   },
34   {
35     "id": "37ba3eae.275d42",
36     "type": "method",
37     "name": "sdwan-attachment-topology-operation-activate",
38     "xml": "<method rpc='sdwan-attachment-topology-operation-activate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 292.00012397766113,
42     "y": 199.00000095367432,
43     "z": "dffc6494.bbb2d8",
44     "wires": [
45       [
46         "ee5288e.f42de78"
47       ]
48     ]
49   },
50   {
51     "id": "ee5288e.f42de78",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 194.00013732910156,
59     "y": 885.0002890825272,
60     "z": "dffc6494.bbb2d8",
61     "wires": [
62       [
63         "b85a45bf.0bc7a8",
64         "1151bd20.7a3e23",
65         "9037088f.df5478",
66         "dae5e077.3dcd8",
67         "5bfd91ae.4a06",
68         "4bcdea66.6625d4",
69         "3d8eaf9a.38bd9",
70         "1c9f2051.6c4ec",
71         "5bbd58f7.5f7198",
72         "40c05ce.b6f2ba4",
73         "c934c812.741518",
74         "cfd66b10.01cc08",
75         "5daf20a3.56c58",
76         "235295.bc1afd6c",
77         "9bb2f2c0.a869e",
78         "78a5dd87.45acf4",
79         "12273108.2aad0f",
80         "989cf904.9df618",
81         "38de1063.b6c52",
82         "1b86e032.9e8d5",
83         "27476583.31719a",
84         "6f11d9b9.d9b5a8",
85         "d462299e.954ef8"
86       ]
87     ]
88   },
89   {
90     "id": "b85a45bf.0bc7a8",
91     "type": "set",
92     "name": "set tmp.ar.allotted-resource-id,etc",
93     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
94     "comments": "",
95     "x": 704.9935626983643,
96     "y": 152.99348783493042,
97     "z": "dffc6494.bbb2d8",
98     "wires": []
99   },
100   {
101     "id": "7b859e23.ef0a6",
102     "type": "comment",
103     "name": "set tmp ar-id to fetch resource from MDSAL",
104     "info": "",
105     "comments": "",
106     "x": 733.9538745880127,
107     "y": 117.02528381347656,
108     "z": "dffc6494.bbb2d8",
109     "wires": []
110   },
111   {
112     "id": "1151bd20.7a3e23",
113     "type": "set",
114     "name": "set tmp.ar.self-link",
115     "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
116     "comments": "",
117     "x": 658.993501663208,
118     "y": 245.99349308013916,
119     "z": "dffc6494.bbb2d8",
120     "wires": []
121   },
122   {
123     "id": "dae5e077.3dcd8",
124     "type": "execute",
125     "name": "execute Properties",
126     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
127     "comments": "",
128     "outputs": 1,
129     "x": 665.255392074585,
130     "y": 333.66022205352783,
131     "z": "dffc6494.bbb2d8",
132     "wires": [
133       []
134     ]
135   },
136   {
137     "id": "9037088f.df5478",
138     "type": "execute",
139     "name": "generate allotted-resource tmp.ar-url",
140     "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\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
141     "comments": "",
142     "outputs": 1,
143     "x": 712.255449295044,
144     "y": 421.6602258682251,
145     "z": "dffc6494.bbb2d8",
146     "wires": [
147       []
148     ]
149   },
150   {
151     "id": "8334555.85225a8",
152     "type": "comment",
153     "name": "GET connection-attachment-allotted-resource from mdsal",
154     "info": "",
155     "comments": "",
156     "x": 766.8084106445312,
157     "y": 490.53865146636963,
158     "z": "dffc6494.bbb2d8",
159     "wires": []
160   },
161   {
162     "id": "3f9851c.f3967ae",
163     "type": "comment",
164     "name": "Used for setting output to API Handler",
165     "info": "",
166     "comments": "",
167     "x": 712.9935321807861,
168     "y": 212.99350261688232,
169     "z": "dffc6494.bbb2d8",
170     "wires": []
171   },
172   {
173     "id": "1e81abbc.616b14",
174     "type": "comment",
175     "name": "Obtain different URL, template location etc",
176     "info": "For saving resource information to MDSAL & for AAI",
177     "comments": "",
178     "x": 730.9934978485107,
179     "y": 298.8823833465576,
180     "z": "dffc6494.bbb2d8",
181     "wires": []
182   },
183   {
184     "id": "72dc7ecf.95a62",
185     "type": "comment",
186     "name": "Used to Get AR by id to MDSAL, same as self-link",
187     "info": "",
188     "comments": "",
189     "x": 756.9935169219971,
190     "y": 385.882342338562,
191     "z": "dffc6494.bbb2d8",
192     "wires": []
193   },
194   {
195     "id": "e6ee5327.c0d68",
196     "type": "success",
197     "name": "success",
198     "xml": "<outcome value='success'>\n",
199     "comments": "",
200     "outputs": 1,
201     "x": 1220.6668224334717,
202     "y": 503.99997901916504,
203     "z": "dffc6494.bbb2d8",
204     "wires": [
205       [
206         "8c680853.310ea8"
207       ]
208     ]
209   },
210   {
211     "id": "8c680853.310ea8",
212     "type": "block",
213     "name": "block: atomic",
214     "xml": "<block atomic=\"true\">\n",
215     "atomic": "false",
216     "comments": "",
217     "outputs": 1,
218     "x": 1364.6669006347656,
219     "y": 461.4998970031738,
220     "z": "dffc6494.bbb2d8",
221     "wires": [
222       [
223         "925fb80e.34f158"
224       ]
225     ]
226   },
227   {
228     "id": "925fb80e.34f158",
229     "type": "switchNode",
230     "name": "switch cr length",
231     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
232     "comments": "",
233     "outputs": 1,
234     "x": 1533.5243244171143,
235     "y": 459.11906814575195,
236     "z": "dffc6494.bbb2d8",
237     "wires": [
238       [
239         "26b8d340.46df1c",
240         "7a829be2.af0124"
241       ]
242     ]
243   },
244   {
245     "id": "26b8d340.46df1c",
246     "type": "other",
247     "name": "outcome 1",
248     "xml": "<outcome value='1'>\n",
249     "comments": "",
250     "outputs": 1,
251     "x": 1688.8574600219727,
252     "y": 431.1189832687378,
253     "z": "dffc6494.bbb2d8",
254     "wires": [
255       [
256         "1395b904.dff867"
257       ]
258     ]
259   },
260   {
261     "id": "1395b904.dff867",
262     "type": "block",
263     "name": "block: atomic",
264     "xml": "<block atomic='true'>\n",
265     "atomic": "false",
266     "comments": "",
267     "outputs": 1,
268     "x": 1847.3812637329102,
269     "y": 429.02383041381836,
270     "z": "dffc6494.bbb2d8",
271     "wires": [
272       [
273         "bca835dc.03acf8",
274         "60209a3f.8f2c74",
275         "20e59893.8ce128"
276       ]
277     ]
278   },
279   {
280     "id": "a8ed7d7b.3441",
281     "type": "returnFailure",
282     "name": "return failure",
283     "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 attachment resource not exist\" />\n    \n",
284     "comments": "",
285     "x": 1787.5191955566406,
286     "y": 536.0660648345947,
287     "z": "dffc6494.bbb2d8",
288     "wires": []
289   },
290   {
291     "id": "2e147334.04188c",
292     "type": "other",
293     "name": "other",
294     "xml": "<outcome value='Other'>\n",
295     "comments": "",
296     "outputs": 1,
297     "x": 1212.5186252593994,
298     "y": 539.0660638809204,
299     "z": "dffc6494.bbb2d8",
300     "wires": [
301       [
302         "b263ea5d.751198"
303       ]
304     ]
305   },
306   {
307     "id": "b263ea5d.751198",
308     "type": "block",
309     "name": "block: atomic",
310     "xml": "<block atomic=\"true\">\n",
311     "atomic": "false",
312     "comments": "",
313     "outputs": 1,
314     "x": 1392.518575668335,
315     "y": 539.7326145172119,
316     "z": "dffc6494.bbb2d8",
317     "wires": [
318       [
319         "a8ed7d7b.3441"
320       ]
321     ]
322   },
323   {
324     "id": "7a829be2.af0124",
325     "type": "other",
326     "name": "other",
327     "xml": "<outcome value='Other'>\n",
328     "comments": "",
329     "outputs": 1,
330     "x": 1680.1854629516602,
331     "y": 490.39935779571533,
332     "z": "dffc6494.bbb2d8",
333     "wires": [
334       [
335         "a8ed7d7b.3441"
336       ]
337     ]
338   },
339   {
340     "id": "bca835dc.03acf8",
341     "type": "set",
342     "name": "set connection-attachment-ar from get",
343     "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
344     "comments": "",
345     "x": 2094.4447174072266,
346     "y": 402.00008249282837,
347     "z": "dffc6494.bbb2d8",
348     "wires": []
349   },
350   {
351     "id": "60209a3f.8f2c74",
352     "type": "set",
353     "name": "set oper-status",
354     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
355     "comments": "",
356     "x": 2043.4449863433838,
357     "y": 504.4286185503006,
358     "z": "dffc6494.bbb2d8",
359     "wires": []
360   },
361   {
362     "id": "20e59893.8ce128",
363     "type": "switchNode",
364     "name": "switch order-status",
365     "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
366     "comments": "",
367     "outputs": 1,
368     "x": 2045.444803237915,
369     "y": 444.0000435113907,
370     "z": "dffc6494.bbb2d8",
371     "wires": [
372       [
373         "c22325f7.252dc8",
374         "892b7c23.01481"
375       ]
376     ]
377   },
378   {
379     "id": "c22325f7.252dc8",
380     "type": "outcome",
381     "name": "outcome Created",
382     "xml": "<outcome value='Created'>\n",
383     "comments": "",
384     "outputs": 1,
385     "x": 2273.0451526641846,
386     "y": 435.00010073184967,
387     "z": "dffc6494.bbb2d8",
388     "wires": [
389       [
390         "8f64788b.479f58"
391       ]
392     ]
393   },
394   {
395     "id": "892b7c23.01481",
396     "type": "outcome",
397     "name": "outcome Other",
398     "xml": "<outcome value='Other'>\n",
399     "comments": "",
400     "outputs": 1,
401     "x": 2267.759048461914,
402     "y": 474.42865800857544,
403     "z": "dffc6494.bbb2d8",
404     "wires": [
405       [
406         "7e065517.d9cffc"
407       ]
408     ]
409   },
410   {
411     "id": "8f64788b.479f58",
412     "type": "block",
413     "name": "block",
414     "xml": "<block>\n",
415     "atomic": "false",
416     "comments": "",
417     "outputs": 1,
418     "x": 2432.515281677246,
419     "y": 435.37570571899414,
420     "z": "dffc6494.bbb2d8",
421     "wires": [
422       []
423     ]
424   },
425   {
426     "id": "7e065517.d9cffc",
427     "type": "returnFailure",
428     "name": "return failure",
429     "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\" \n    value=\"`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
430     "comments": "",
431     "x": 2443.666862487793,
432     "y": 473.000057220459,
433     "z": "dffc6494.bbb2d8",
434     "wires": []
435   },
436   {
437     "id": "6f92ad01.bceb24",
438     "type": "call",
439     "name": "call GENERIC-RESOURCE-API:sdwan-get-saved-ar-param",
440     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-saved-ar-param' mode='sync' >\n",
441     "comments": "",
442     "outputs": 1,
443     "x": 937.3030433654785,
444     "y": 610.4936294555664,
445     "z": "dffc6494.bbb2d8",
446     "wires": [
447       []
448     ]
449   },
450   {
451     "id": "5bfd91ae.4a06",
452     "type": "block",
453     "name": "block: atomic",
454     "xml": "<block atomic=\"true\">\n",
455     "atomic": "false",
456     "comments": "",
457     "outputs": 1,
458     "x": 631.3091430664062,
459     "y": 611.5,
460     "z": "dffc6494.bbb2d8",
461     "wires": [
462       [
463         "6f92ad01.bceb24"
464       ]
465     ]
466   },
467   {
468     "id": "ab12c387.518e3",
469     "type": "comment",
470     "name": "GET parent-service-data from mdsal to check existence of other End point",
471     "info": "",
472     "comments": "",
473     "x": 809.00048828125,
474     "y": 682.53173828125,
475     "z": "dffc6494.bbb2d8",
476     "wires": []
477   },
478   {
479     "id": "20314e6c.dff2b2",
480     "type": "comment",
481     "name": "GET connection-attachment-ar to store AR data from mdsal",
482     "info": "",
483     "comments": "",
484     "x": 2156.4727783203125,
485     "y": 362.5039367675781,
486     "z": "dffc6494.bbb2d8",
487     "wires": []
488   },
489   {
490     "id": "4bcdea66.6625d4",
491     "type": "set",
492     "name": "set tmp.ar.parent-service-instance-id",
493     "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
494     "comments": "",
495     "x": 694.9688110351562,
496     "y": 712.0001220703125,
497     "z": "dffc6494.bbb2d8",
498     "wires": []
499   },
500   {
501     "id": "15984952.556e87",
502     "type": "success",
503     "name": "success",
504     "xml": "<outcome value='success'>\n",
505     "comments": "",
506     "outputs": 1,
507     "x": 1054.968978881836,
508     "y": 769.0000915527344,
509     "z": "dffc6494.bbb2d8",
510     "wires": [
511       [
512         "de6674d7.fb4908"
513       ]
514     ]
515   },
516   {
517     "id": "6badb4c9.fd121c",
518     "type": "other",
519     "name": "other",
520     "xml": "<outcome value='Other'>\n",
521     "comments": "",
522     "outputs": 1,
523     "x": 1046.8207817077637,
524     "y": 804.0661764144897,
525     "z": "dffc6494.bbb2d8",
526     "wires": [
527       [
528         "d2de38fb.c9bd98"
529       ]
530     ]
531   },
532   {
533     "id": "d2de38fb.c9bd98",
534     "type": "returnFailure",
535     "name": "return failure",
536     "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: Parent service data not available\" />\n    \n",
537     "comments": "",
538     "x": 1192.9695625305176,
539     "y": 803.3335876464844,
540     "z": "dffc6494.bbb2d8",
541     "wires": []
542   },
543   {
544     "id": "de6674d7.fb4908",
545     "type": "block",
546     "name": "block",
547     "xml": "<block>\n",
548     "atomic": "false",
549     "comments": "",
550     "outputs": 1,
551     "x": 1185.9690742492676,
552     "y": 769.0001525878906,
553     "z": "dffc6494.bbb2d8",
554     "wires": [
555       []
556     ]
557   },
558   {
559     "id": "3fee618.47cf19e",
560     "type": "failure",
561     "name": "failure",
562     "xml": "<outcome value='failure'>\n",
563     "comments": "",
564     "outputs": 1,
565     "x": 868.7312831878662,
566     "y": 1801.953821182251,
567     "z": "dffc6494.bbb2d8",
568     "wires": [
569       [
570         "ce560694.4e0568"
571       ]
572     ]
573   },
574   {
575     "id": "ce560694.4e0568",
576     "type": "returnFailure",
577     "name": "return failure",
578     "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=\"AAI failed\" />\n",
579     "comments": "",
580     "x": 1035.2551040649414,
581     "y": 1828.5728282928467,
582     "z": "dffc6494.bbb2d8",
583     "wires": []
584   },
585   {
586     "id": "c68d8601.616f38",
587     "type": "failure",
588     "name": "not-found",
589     "xml": "<outcome value='not-found'>\n",
590     "comments": "",
591     "outputs": 1,
592     "x": 870.8265113830566,
593     "y": 1849.715663909912,
594     "z": "dffc6494.bbb2d8",
595     "wires": [
596       [
597         "ce560694.4e0568"
598       ]
599     ]
600   },
601   {
602     "id": "4f78f27.2aadb0c",
603     "type": "comment",
604     "name": "Save Resource to AAI",
605     "info": "",
606     "comments": "",
607     "x": 642.7789268493652,
608     "y": 1790.302984237671,
609     "z": "dffc6494.bbb2d8",
610     "wires": []
611   },
612   {
613     "id": "9bb2f2c0.a869e",
614     "type": "set",
615     "name": "set output to api handler",
616     "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
617     "comments": "",
618     "x": 657.5466232299805,
619     "y": 1711.828465461731,
620     "z": "dffc6494.bbb2d8",
621     "wires": []
622   },
623   {
624     "id": "12273108.2aad0f",
625     "type": "returnSuccess",
626     "name": "return success",
627     "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",
628     "comments": "",
629     "x": 617.959794998169,
630     "y": 1897.4442539215088,
631     "z": "dffc6494.bbb2d8",
632     "wires": []
633   },
634   {
635     "id": "235295.bc1afd6c",
636     "type": "execute",
637     "name": "execute RestApiCallNode - PUT AR by id",
638     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sdwan-attachment.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\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='PUT' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
639     "comments": "",
640     "outputs": 1,
641     "x": 710.2787055969238,
642     "y": 1636.4693183898926,
643     "z": "dffc6494.bbb2d8",
644     "wires": [
645       [
646         "fbd9f3da.ac92e",
647         "d531264d.6e9598",
648         "ceab622e.44add"
649       ]
650     ]
651   },
652   {
653     "id": "fbd9f3da.ac92e",
654     "type": "not-found",
655     "name": "not-found",
656     "xml": "<outcome value='not-found'>\n",
657     "comments": "",
658     "outputs": 1,
659     "x": 964.9201278686523,
660     "y": 1680.8007125854492,
661     "z": "dffc6494.bbb2d8",
662     "wires": [
663       [
664         "6996a4e1.52814c"
665       ]
666     ]
667   },
668   {
669     "id": "d531264d.6e9598",
670     "type": "failure",
671     "name": "failure",
672     "xml": "<outcome value='failure'>\n",
673     "comments": "",
674     "outputs": 1,
675     "x": 966.9201507568359,
676     "y": 1639.3006767258048,
677     "z": "dffc6494.bbb2d8",
678     "wires": [
679       [
680         "6996a4e1.52814c"
681       ]
682     ]
683   },
684   {
685     "id": "ceab622e.44add",
686     "type": "success",
687     "name": "success",
688     "xml": "<outcome value='success'>\n",
689     "comments": "",
690     "outputs": 1,
691     "x": 970.6702346801758,
692     "y": 1590.657829284668,
693     "z": "dffc6494.bbb2d8",
694     "wires": [
695       [
696         "a90a3596.a63828"
697       ]
698     ]
699   },
700   {
701     "id": "6996a4e1.52814c",
702     "type": "returnFailure",
703     "name": "return failure",
704     "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 updating md-sal for connection-attachment-allotted-resource\" />\n",
705     "comments": "",
706     "x": 1125.670253753662,
707     "y": 1659.0507431030273,
708     "z": "dffc6494.bbb2d8",
709     "wires": []
710   },
711   {
712     "id": "a90a3596.a63828",
713     "type": "block",
714     "name": "block",
715     "xml": "<block>\n",
716     "atomic": "false",
717     "comments": "",
718     "outputs": 1,
719     "x": 1098.3261795043945,
720     "y": 1592.8499975204468,
721     "z": "dffc6494.bbb2d8",
722     "wires": [
723       []
724     ]
725   },
726   {
727     "id": "40c05ce.b6f2ba4",
728     "type": "set",
729     "name": "set ar-data",
730     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n",
731     "comments": "",
732     "x": 612.4923210144043,
733     "y": 1470.850219488144,
734     "z": "dffc6494.bbb2d8",
735     "wires": []
736   },
737   {
738     "id": "cfd66b10.01cc08",
739     "type": "execute",
740     "name": "execute getTime",
741     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
742     "comments": "",
743     "outputs": 1,
744     "x": 629.7781639099121,
745     "y": 1543.46981716156,
746     "z": "dffc6494.bbb2d8",
747     "wires": [
748       []
749     ]
750   },
751   {
752     "id": "5daf20a3.56c58",
753     "type": "set",
754     "name": "set allotted-resource-oper-status",
755     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Active' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
756     "comments": "",
757     "x": 679.7652435302734,
758     "y": 1580.4208974838257,
759     "z": "dffc6494.bbb2d8",
760     "wires": []
761   },
762   {
763     "id": "c934c812.741518",
764     "type": "set",
765     "name": "set model-data",
766     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
767     "comments": "",
768     "x": 626.3338623046875,
769     "y": 1510.0248699188232,
770     "z": "dffc6494.bbb2d8",
771     "wires": []
772   },
773   {
774     "id": "39e69165.d7e96e",
775     "type": "comment",
776     "name": "Prepare data for allotted-resource addition to MDSAL",
777     "info": "This will add to allotted-resource which is present inside service.",
778     "comments": "",
779     "x": 739.6673240661621,
780     "y": 1431.0248219966888,
781     "z": "dffc6494.bbb2d8",
782     "wires": []
783   },
784   {
785     "id": "76218215.a6538c",
786     "type": "comment",
787     "name": "Add to allotted-resources in mdsal",
788     "info": "",
789     "comments": "",
790     "x": 681.2471504211426,
791     "y": 1398.438123703003,
792     "z": "dffc6494.bbb2d8",
793     "wires": []
794   },
795   {
796     "id": "78a5dd87.45acf4",
797     "type": "update",
798     "name": "update AAI allotted-resource",
799     "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n        pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"Active\" />\n",
800     "comments": "",
801     "outputs": 1,
802     "x": 669.2232055664062,
803     "y": 1827.755126953125,
804     "z": "dffc6494.bbb2d8",
805     "wires": [
806       [
807         "3fee618.47cf19e",
808         "c68d8601.616f38"
809       ]
810     ]
811   },
812   {
813     "id": "3d8eaf9a.38bd9",
814     "type": "execute",
815     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
816     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\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",
817     "comments": "",
818     "outputs": 1,
819     "x": 841.0039672851562,
820     "y": 522.00390625,
821     "z": "dffc6494.bbb2d8",
822     "wires": [
823       [
824         "e6ee5327.c0d68",
825         "2e147334.04188c"
826       ]
827     ]
828   },
829   {
830     "id": "1c9f2051.6c4ec",
831     "type": "execute",
832     "name": "execute RestApiCallNode - get-resource parent service data",
833     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\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",
834     "comments": "",
835     "outputs": 1,
836     "x": 764.0040893554688,
837     "y": 785.0040893554688,
838     "z": "dffc6494.bbb2d8",
839     "wires": [
840       [
841         "15984952.556e87",
842         "6badb4c9.fd121c"
843       ]
844     ]
845   },
846   {
847     "id": "5bbd58f7.5f7198",
848     "type": "execute",
849     "name": "get parent-service-data url",
850     "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-psd\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
851     "comments": "",
852     "outputs": 1,
853     "x": 664.0039978027344,
854     "y": 748.0039224624634,
855     "z": "dffc6494.bbb2d8",
856     "wires": [
857       []
858     ]
859   },
860   {
861     "id": "f4b4f93.ed2c608",
862     "type": "set",
863     "name": "set prop.ar.provided-allotted-resource-id",
864     "xml": "<set>\n<parameter name='prop.ar.provided-allotted-resource-id' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id`' />\n\n",
865     "comments": "",
866     "x": 1521.9964752197266,
867     "y": 837.1218557357788,
868     "z": "dffc6494.bbb2d8",
869     "wires": []
870   },
871   {
872     "id": "a15a79a.36a3388",
873     "type": "success",
874     "name": "success",
875     "xml": "<outcome value='success'>\n",
876     "comments": "",
877     "outputs": 1,
878     "x": 2027.9970703125,
879     "y": 931.4551391601562,
880     "z": "dffc6494.bbb2d8",
881     "wires": [
882       [
883         "a3fba491.823078"
884       ]
885     ]
886   },
887   {
888     "id": "9877a25.829156",
889     "type": "other",
890     "name": "other",
891     "xml": "<outcome value='Other'>\n",
892     "comments": "",
893     "outputs": 1,
894     "x": 2031.848445892334,
895     "y": 893.52121925354,
896     "z": "dffc6494.bbb2d8",
897     "wires": [
898       [
899         "7dae3a54.790c34"
900       ]
901     ]
902   },
903   {
904     "id": "70d2ed6a.c33784",
905     "type": "for",
906     "name": "for arvidx.. mdsal-sd.service-data.vnfs.vnf_length[]",
907     "xml": "<for index='arvidx' start='0' end='`$mdsal-sd.service-data.vnfs.vnf_length`' >\n",
908     "comments": "",
909     "outputs": 1,
910     "x": 1923.9976425170898,
911     "y": 1659.1222692728043,
912     "z": "dffc6494.bbb2d8",
913     "wires": [
914       [
915         "3299d5bb.c8fffa"
916       ]
917     ]
918   },
919   {
920     "id": "3299d5bb.c8fffa",
921     "type": "block",
922     "name": "block atmoic",
923     "xml": "<block atomic=\"true\">\n",
924     "atomic": "false",
925     "comments": "",
926     "outputs": 1,
927     "x": 1683.6641387939453,
928     "y": 1731.1224619150162,
929     "z": "dffc6494.bbb2d8",
930     "wires": [
931       [
932         "9c72dcbf.2f4d8"
933       ]
934     ]
935   },
936   {
937     "id": "9c72dcbf.2f4d8",
938     "type": "switchNode",
939     "name": "switch ActivateSiteInstance",
940     "xml": "<switch test=\"`$mdsal-parentsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n    \n    \n\n",
941     "comments": "",
942     "outputs": 1,
943     "x": 1896.5293731689453,
944     "y": 1732.3203302621841,
945     "z": "dffc6494.bbb2d8",
946     "wires": [
947       [
948         "d6c2e1ad.856bf"
949       ]
950     ]
951   },
952   {
953     "id": "d6c2e1ad.856bf",
954     "type": "outcomeTrue",
955     "name": "true",
956     "xml": "<outcome value='true'>\n",
957     "comments": "",
958     "outputs": 1,
959     "x": 2101.52872467041,
960     "y": 1735.3203264474869,
961     "z": "dffc6494.bbb2d8",
962     "wires": [
963       [
964         "1deec432.31ab3c"
965       ]
966     ]
967   },
968   {
969     "id": "6d2e1c61.8e7884",
970     "type": "set",
971     "name": "set tmp.sitevidx ",
972     "xml": "<set>\n<parameter name='tmp.sitevidx' value='`$arvidx`' />\n\n",
973     "comments": "",
974     "x": 2445.528896331787,
975     "y": 1715.3206740617752,
976     "z": "dffc6494.bbb2d8",
977     "wires": []
978   },
979   {
980     "id": "eb1ab4ec.5e2dc8",
981     "type": "set",
982     "name": "set prop.ar-parent-service-instance-id",
983     "xml": "<set>\n<parameter name='prop.ar-parent-service-instance-id' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.parent-service-instance-id`' />\n",
984     "comments": "",
985     "x": 1672.9970703125,
986     "y": 1078.1221185922623,
987     "z": "dffc6494.bbb2d8",
988     "wires": []
989   },
990   {
991     "id": "57da3fea.264e9",
992     "type": "for",
993     "name": "for loop aridx - Get role from allotted resource",
994     "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",
995     "comments": "",
996     "outputs": 1,
997     "x": 1699.9965839385986,
998     "y": 1035.6217069625854,
999     "z": "dffc6494.bbb2d8",
1000     "wires": [
1001       [
1002         "cee99943.fb3588"
1003       ]
1004     ]
1005   },
1006   {
1007     "id": "509849b3.d30508",
1008     "type": "switchNode",
1009     "name": "switch Role",
1010     "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",
1011     "comments": "",
1012     "outputs": 1,
1013     "x": 2130.9968280792236,
1014     "y": 1001.621829032898,
1015     "z": "dffc6494.bbb2d8",
1016     "wires": [
1017       [
1018         "934da16.2ecff6"
1019       ]
1020     ]
1021   },
1022   {
1023     "id": "934da16.2ecff6",
1024     "type": "outcomeTrue",
1025     "name": "true",
1026     "xml": "<outcome value='true'>\n",
1027     "comments": "",
1028     "outputs": 1,
1029     "x": 2270.9970722198486,
1030     "y": 999.6219511032104,
1031     "z": "dffc6494.bbb2d8",
1032     "wires": [
1033       [
1034         "e881355e.f5e048"
1035       ]
1036     ]
1037   },
1038   {
1039     "id": "e881355e.f5e048",
1040     "type": "set",
1041     "name": "set prop.role",
1042     "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",
1043     "comments": "",
1044     "x": 2414.9978046417236,
1045     "y": 999.2218046188354,
1046     "z": "dffc6494.bbb2d8",
1047     "wires": []
1048   },
1049   {
1050     "id": "c3c5524a.3faea",
1051     "type": "success",
1052     "name": "success",
1053     "xml": "<outcome value='success'>\n",
1054     "comments": "",
1055     "outputs": 1,
1056     "x": 1978.9968872070312,
1057     "y": 1178.1219259500504,
1058     "z": "dffc6494.bbb2d8",
1059     "wires": [
1060       [
1061         "694081b0.40c87"
1062       ]
1063     ]
1064   },
1065   {
1066     "id": "a5b86b7b.af84c8",
1067     "type": "other",
1068     "name": "other",
1069     "xml": "<outcome value='Other'>\n",
1070     "comments": "",
1071     "outputs": 1,
1072     "x": 1976.8492164611816,
1073     "y": 1139.18805372715,
1074     "z": "dffc6494.bbb2d8",
1075     "wires": [
1076       [
1077         "2179a00d.ce49"
1078       ]
1079     ]
1080   },
1081   {
1082     "id": "7dae3a54.790c34",
1083     "type": "block",
1084     "name": "block",
1085     "xml": "<block>\n",
1086     "atomic": "false",
1087     "comments": "",
1088     "outputs": 1,
1089     "x": 2157.996570587158,
1090     "y": 890.6216526031494,
1091     "z": "dffc6494.bbb2d8",
1092     "wires": [
1093       []
1094     ]
1095   },
1096   {
1097     "id": "a3fba491.823078",
1098     "type": "block",
1099     "name": "block atomic",
1100     "xml": "<block atomic=\"true\">\n",
1101     "atomic": "false",
1102     "comments": "",
1103     "outputs": 1,
1104     "x": 1323.496524810791,
1105     "y": 1070.6217823028564,
1106     "z": "dffc6494.bbb2d8",
1107     "wires": [
1108       [
1109         "57da3fea.264e9",
1110         "eb1ab4ec.5e2dc8",
1111         "e782e2ca.8bf82",
1112         "1cdc5d42.9a95b3"
1113       ]
1114     ]
1115   },
1116   {
1117     "id": "2179a00d.ce49",
1118     "type": "block",
1119     "name": "block",
1120     "xml": "<block>\n",
1121     "atomic": "false",
1122     "comments": "",
1123     "outputs": 1,
1124     "x": 2106.4974098205566,
1125     "y": 1132.6220136880875,
1126     "z": "dffc6494.bbb2d8",
1127     "wires": [
1128       []
1129     ]
1130   },
1131   {
1132     "id": "694081b0.40c87",
1133     "type": "block",
1134     "name": "block atomic",
1135     "xml": "<block atomic=\"true\">\n",
1136     "atomic": "false",
1137     "comments": "",
1138     "outputs": 1,
1139     "x": 1705.4971466064453,
1140     "y": 1257.6221548318863,
1141     "z": "dffc6494.bbb2d8",
1142     "wires": [
1143       [
1144         "96cc2adb.55b7e8"
1145       ]
1146     ]
1147   },
1148   {
1149     "id": "ac9bfac3.fa8558",
1150     "type": "for",
1151     "name": "for loop siteidx - Get site ID from servicedata",
1152     "xml": "<for index=\"siteidx\" start=\"0\" end=\"`$mdsal-parentsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
1153     "comments": "",
1154     "outputs": 1,
1155     "x": 2524.4985961914062,
1156     "y": 1765.6224666833878,
1157     "z": "dffc6494.bbb2d8",
1158     "wires": [
1159       [
1160         "a2ba66c.8ff5498"
1161       ]
1162     ]
1163   },
1164   {
1165     "id": "8bbd7692.ac8cd8",
1166     "type": "switchNode",
1167     "name": "switch siteId",
1168     "xml": "<switch test=\"`$mdsal-parentsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].name == 'siteId'`\">\n\n",
1169     "comments": "",
1170     "outputs": 1,
1171     "x": 1995.501958847046,
1172     "y": 1879.6239286661148,
1173     "z": "dffc6494.bbb2d8",
1174     "wires": [
1175       [
1176         "4610475a.073248"
1177       ]
1178     ]
1179   },
1180   {
1181     "id": "4610475a.073248",
1182     "type": "outcomeTrue",
1183     "name": "true",
1184     "xml": "<outcome value='true'>\n",
1185     "comments": "",
1186     "outputs": 1,
1187     "x": 2150.5023288726807,
1188     "y": 1881.6242953538895,
1189     "z": "dffc6494.bbb2d8",
1190     "wires": [
1191       [
1192         "feeed51.dea6e28"
1193       ]
1194     ]
1195   },
1196   {
1197     "id": "4e949727.dc9598",
1198     "type": "set",
1199     "name": "Add sites to list and update length",
1200     "xml": "<set>\n<parameter name='prop.siteIds[$prop.siteIds_length]' value='`$prop.attach.siteId`' />\n<parameter name='prop.siteIds_length' value='`$prop.siteIds_length + 1`' />\n\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].siteId' value='`$prop.attach.siteId`' />\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles[0]' value='`$prop.role`' />\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles_length' value='1' />\n<parameter name='prop.siteAttachements_length' value='`$prop.siteAttachements_length + 1`' />\n\n\n\n\n\n\n\n\n\n\n\n\n",
1201     "comments": "",
1202     "x": 2128.0009231567383,
1203     "y": 2014.1228910684586,
1204     "z": "dffc6494.bbb2d8",
1205     "wires": []
1206   },
1207   {
1208     "id": "d462299e.954ef8",
1209     "type": "execute",
1210     "name": "execute RestApiCallNode create vpn topology",
1211     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-topology.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpn1Id + '/topology'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
1212     "comments": "",
1213     "outputs": 1,
1214     "x": 720.9996967315674,
1215     "y": 1219.623323082924,
1216     "z": "dffc6494.bbb2d8",
1217     "wires": [
1218       [
1219         "eedd5dfa.0c3ec",
1220         "8a2fbc0b.ebcbf"
1221       ]
1222     ]
1223   },
1224   {
1225     "id": "8a2fbc0b.ebcbf",
1226     "type": "success",
1227     "name": "success",
1228     "xml": "<outcome value='success'>\n",
1229     "comments": "",
1230     "outputs": 1,
1231     "x": 964.9996509552002,
1232     "y": 1240.6231399774551,
1233     "z": "dffc6494.bbb2d8",
1234     "wires": [
1235       [
1236         "d213fa13.f05e78"
1237       ]
1238     ]
1239   },
1240   {
1241     "id": "d213fa13.f05e78",
1242     "type": "block",
1243     "name": "block : atomic",
1244     "xml": "<block atomic=\"true\">",
1245     "atomic": "true",
1246     "comments": "",
1247     "outputs": 1,
1248     "x": 1134.999589920044,
1249     "y": 1243.6231399774551,
1250     "z": "dffc6494.bbb2d8",
1251     "wires": [
1252       []
1253     ]
1254   },
1255   {
1256     "id": "c3f37303.c62e9",
1257     "type": "returnFailure",
1258     "name": "return failure",
1259     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create vpn topology failed\" />\n",
1260     "comments": "",
1261     "x": 1134.9997119903564,
1262     "y": 1199.6231399774551,
1263     "z": "dffc6494.bbb2d8",
1264     "wires": []
1265   },
1266   {
1267     "id": "eedd5dfa.0c3ec",
1268     "type": "failure",
1269     "name": "failure",
1270     "xml": "<outcome value='failure'>\n",
1271     "comments": "",
1272     "outputs": 1,
1273     "x": 967.999589920044,
1274     "y": 1199.6231399774551,
1275     "z": "dffc6494.bbb2d8",
1276     "wires": [
1277       [
1278         "c3f37303.c62e9"
1279       ]
1280     ]
1281   },
1282   {
1283     "id": "d4efb2ad.bacb3",
1284     "type": "set",
1285     "name": "set controller data",
1286     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
1287     "comments": "",
1288     "x": 1139.565273284912,
1289     "y": 932.2990169525146,
1290     "z": "dffc6494.bbb2d8",
1291     "wires": []
1292   },
1293   {
1294     "id": "27476583.31719a",
1295     "type": "get-resource",
1296     "name": "get-resource esr-thirdparty-sdnc",
1297     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = SDWAN-Controller AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
1298     "comments": "",
1299     "outputs": 1,
1300     "x": 676.0650634765625,
1301     "y": 981.29931640625,
1302     "z": "dffc6494.bbb2d8",
1303     "wires": [
1304       [
1305         "62080e5d.ec8ce",
1306         "dfaa962c.3e1378",
1307         "bbba9586.9afb98"
1308       ]
1309     ]
1310   },
1311   {
1312     "id": "62080e5d.ec8ce",
1313     "type": "success",
1314     "name": "success",
1315     "xml": "<outcome value='success'>\n",
1316     "comments": "",
1317     "outputs": 1,
1318     "x": 942.0652122497559,
1319     "y": 944.2990169525146,
1320     "z": "dffc6494.bbb2d8",
1321     "wires": [
1322       [
1323         "d4efb2ad.bacb3"
1324       ]
1325     ]
1326   },
1327   {
1328     "id": "dfaa962c.3e1378",
1329     "type": "not-found",
1330     "name": "not-found",
1331     "xml": "<outcome value='not-found'>\n",
1332     "comments": "",
1333     "outputs": 1,
1334     "x": 938.55592918396,
1335     "y": 982.8731136322021,
1336     "z": "dffc6494.bbb2d8",
1337     "wires": [
1338       [
1339         "663ca3f0.5f815c"
1340       ]
1341     ]
1342   },
1343   {
1344     "id": "bbba9586.9afb98",
1345     "type": "other",
1346     "name": "other",
1347     "xml": "<outcome value='Other'>\n",
1348     "comments": "",
1349     "outputs": 1,
1350     "x": 933.88893699646,
1351     "y": 1024.2064266204834,
1352     "z": "dffc6494.bbb2d8",
1353     "wires": [
1354       [
1355         "936e384d.44b2d8"
1356       ]
1357     ]
1358   },
1359   {
1360     "id": "663ca3f0.5f815c",
1361     "type": "returnFailure",
1362     "name": "return failure",
1363     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
1364     "comments": "",
1365     "x": 1115.1273403167725,
1366     "y": 971.1588497161865,
1367     "z": "dffc6494.bbb2d8",
1368     "wires": []
1369   },
1370   {
1371     "id": "936e384d.44b2d8",
1372     "type": "returnFailure",
1373     "name": "return failure",
1374     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
1375     "comments": "",
1376     "x": 1121.6614933013916,
1377     "y": 1019.645619392395,
1378     "z": "dffc6494.bbb2d8",
1379     "wires": []
1380   },
1381   {
1382     "id": "96cc2adb.55b7e8",
1383     "type": "for",
1384     "name": "for pnidx.. mdsal-psd.service-data.networks.network_length[]",
1385     "xml": "<for index='pnidx' start='0' end='`$mdsal-parentsd.service-data.networks.network_length`' >\n",
1386     "comments": "",
1387     "outputs": 1,
1388     "x": 2013.4972763061523,
1389     "y": 1257.122277855873,
1390     "z": "dffc6494.bbb2d8",
1391     "wires": [
1392       [
1393         "b7189ec7.b6673"
1394       ]
1395     ]
1396   },
1397   {
1398     "id": "86cf34ff.454008",
1399     "type": "switchNode",
1400     "name": "switch ActivateSDWANConnectivityInstance",
1401     "xml": "<switch test=\"`$mdsal-parentsd.service-data.networks.network[$pnidx].network-data.request-information.request-action == ActivateSDWANConnectivityInstance`\">\n    \n    \n\n",
1402     "comments": "",
1403     "outputs": 1,
1404     "x": 1860.165672302246,
1405     "y": 1346.1222940683365,
1406     "z": "dffc6494.bbb2d8",
1407     "wires": [
1408       [
1409         "9f2ef89f.648238"
1410       ]
1411     ]
1412   },
1413   {
1414     "id": "9f2ef89f.648238",
1415     "type": "outcomeTrue",
1416     "name": "true",
1417     "xml": "<outcome value='true'>\n",
1418     "comments": "",
1419     "outputs": 1,
1420     "x": 2116.1651248931885,
1421     "y": 1344.1222330331802,
1422     "z": "dffc6494.bbb2d8",
1423     "wires": [
1424       [
1425         "e8091f90.d8758"
1426       ]
1427     ]
1428   },
1429   {
1430     "id": "ea7febcc.253688",
1431     "type": "for",
1432     "name": "for loop paramidx - Get topology from servicedata",
1433     "xml": "<for index=\"paramidx\" start=\"0\" end=\"`$mdsal-parentsd.service-data.networks.network[$pnidx].network-data.network-request-input.network-input-parameters.param_length`\">\n    \n    \n",
1434     "comments": "",
1435     "outputs": 1,
1436     "x": 1903.1637878417969,
1437     "y": 1437.1214720010757,
1438     "z": "dffc6494.bbb2d8",
1439     "wires": [
1440       [
1441         "a261c913.e49f08"
1442       ]
1443     ]
1444   },
1445   {
1446     "id": "c9c5e103.2dba",
1447     "type": "switchNode",
1448     "name": "switch topology",
1449     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'topology'`\">\n",
1450     "comments": "",
1451     "outputs": 1,
1452     "x": 2357.1641483306885,
1453     "y": 1424.121761918068,
1454     "z": "dffc6494.bbb2d8",
1455     "wires": [
1456       [
1457         "d03c47e7.2291b8"
1458       ]
1459     ]
1460   },
1461   {
1462     "id": "d03c47e7.2291b8",
1463     "type": "outcomeTrue",
1464     "name": "true",
1465     "xml": "<outcome value='true'>\n",
1466     "comments": "",
1467     "outputs": 1,
1468     "x": 2506.1639041900635,
1469     "y": 1419.1218839883804,
1470     "z": "dffc6494.bbb2d8",
1471     "wires": [
1472       [
1473         "6f44a2b9.64d87c"
1474       ]
1475     ]
1476   },
1477   {
1478     "id": "6f44a2b9.64d87c",
1479     "type": "set",
1480     "name": "set topology",
1481     "xml": "<set>\n<parameter name='prop.topology' value='`$mdsal-psd.service-data.networks.network[$pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].value`' />\n",
1482     "comments": "",
1483     "x": 2646.1640911102295,
1484     "y": 1416.721799492836,
1485     "z": "dffc6494.bbb2d8",
1486     "wires": []
1487   },
1488   {
1489     "id": "2f06a667.74729a",
1490     "type": "switchNode",
1491     "name": "switch vpnId",
1492     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'vpn-id'`\">\n",
1493     "comments": "",
1494     "outputs": 1,
1495     "x": 2344.8300952911377,
1496     "y": 1462.454986691475,
1497     "z": "dffc6494.bbb2d8",
1498     "wires": [
1499       [
1500         "26cdcacc.68bc96"
1501       ]
1502     ]
1503   },
1504   {
1505     "id": "26cdcacc.68bc96",
1506     "type": "outcomeTrue",
1507     "name": "true",
1508     "xml": "<outcome value='true'>\n",
1509     "comments": "",
1510     "outputs": 1,
1511     "x": 2484.8300380706787,
1512     "y": 1462.454803109169,
1513     "z": "dffc6494.bbb2d8",
1514     "wires": [
1515       [
1516         "b29eb112.7e5e6"
1517       ]
1518     ]
1519   },
1520   {
1521     "id": "b29eb112.7e5e6",
1522     "type": "set",
1523     "name": "set prop.vpn1Id",
1524     "xml": "<set>\n<parameter name='prop.vpn1Id' value='`$mdsal-parentsd.service-data.networks.network[$pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].value`' />\n",
1525     "comments": "",
1526     "x": 2632.830041885376,
1527     "y": 1462.054870724678,
1528     "z": "dffc6494.bbb2d8",
1529     "wires": []
1530   },
1531   {
1532     "id": "6f11d9b9.d9b5a8",
1533     "type": "execute",
1534     "name": "execute RestApiCallNode create vpn ",
1535     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/vpn-services'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
1536     "comments": "",
1537     "outputs": 1,
1538     "x": 689.9980926513672,
1539     "y": 1128.1227440834045,
1540     "z": "dffc6494.bbb2d8",
1541     "wires": [
1542       [
1543         "65b6f0f3.2d5de",
1544         "76008493.6f9b6c"
1545       ]
1546     ]
1547   },
1548   {
1549     "id": "76008493.6f9b6c",
1550     "type": "success",
1551     "name": "success",
1552     "xml": "<outcome value='success'>\n",
1553     "comments": "",
1554     "outputs": 1,
1555     "x": 909.9979953765869,
1556     "y": 1124.1227089166641,
1557     "z": "dffc6494.bbb2d8",
1558     "wires": [
1559       [
1560         "3a95c7bc.96e9b8"
1561       ]
1562     ]
1563   },
1564   {
1565     "id": "3a95c7bc.96e9b8",
1566     "type": "block",
1567     "name": "block : atomic",
1568     "xml": "<block atomic=\"true\">",
1569     "atomic": "true",
1570     "comments": "",
1571     "outputs": 1,
1572     "x": 1079.9979343414307,
1573     "y": 1127.1227089166641,
1574     "z": "dffc6494.bbb2d8",
1575     "wires": [
1576       []
1577     ]
1578   },
1579   {
1580     "id": "daf3ded5.68f9c",
1581     "type": "returnFailure",
1582     "name": "return failure",
1583     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create vpn failed\" />\n",
1584     "comments": "",
1585     "x": 1079.9980564117432,
1586     "y": 1083.1227089166641,
1587     "z": "dffc6494.bbb2d8",
1588     "wires": []
1589   },
1590   {
1591     "id": "65b6f0f3.2d5de",
1592     "type": "failure",
1593     "name": "failure",
1594     "xml": "<outcome value='failure'>\n",
1595     "comments": "",
1596     "outputs": 1,
1597     "x": 912.9979343414307,
1598     "y": 1083.1227089166641,
1599     "z": "dffc6494.bbb2d8",
1600     "wires": [
1601       [
1602         "daf3ded5.68f9c"
1603       ]
1604     ]
1605   },
1606   {
1607     "id": "643b6a4a.e81654",
1608     "type": "set",
1609     "name": "set prop.name",
1610     "xml": "<set>\n<parameter name='prop.name' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$aridx].value`' />\n",
1611     "comments": "",
1612     "x": 2489.9968280792236,
1613     "y": 1051.1214628219604,
1614     "z": "dffc6494.bbb2d8",
1615     "wires": []
1616   },
1617   {
1618     "id": "607a7459.cb7aac",
1619     "type": "switchNode",
1620     "name": "switch sdwanVpnName",
1621     "xml": "<switch test=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$aridx].name == 'sdwanVpnName'`\">\n",
1622     "comments": "",
1623     "outputs": 1,
1624     "x": 2169.4965839385986,
1625     "y": 1056.1214628219604,
1626     "z": "dffc6494.bbb2d8",
1627     "wires": [
1628       [
1629         "5340c76b.84ae08"
1630       ]
1631     ]
1632   },
1633   {
1634     "id": "5340c76b.84ae08",
1635     "type": "outcomeTrue",
1636     "name": "true",
1637     "xml": "<outcome value='true'>\n",
1638     "comments": "",
1639     "outputs": 1,
1640     "x": 2346.4968280792236,
1641     "y": 1053.1214628219604,
1642     "z": "dffc6494.bbb2d8",
1643     "wires": [
1644       [
1645         "643b6a4a.e81654"
1646       ]
1647     ]
1648   },
1649   {
1650     "id": "6b6508e8.a91ff8",
1651     "type": "block",
1652     "name": "block atomic",
1653     "xml": "<block atomic=\"true\">\n",
1654     "atomic": "false",
1655     "comments": "",
1656     "outputs": 1,
1657     "x": 1259.0269775390625,
1658     "y": 874.3190307617188,
1659     "z": "dffc6494.bbb2d8",
1660     "wires": [
1661       [
1662         "f4b4f93.ed2c608",
1663         "62278433.5ef6cc",
1664         "f022812b.da229"
1665       ]
1666     ]
1667   },
1668   {
1669     "id": "989cf904.9df618",
1670     "type": "for",
1671     "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
1672     "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
1673     "comments": "",
1674     "outputs": 1,
1675     "x": 852.18115234375,
1676     "y": 883.0944213867188,
1677     "z": "dffc6494.bbb2d8",
1678     "wires": [
1679       [
1680         "6b6508e8.a91ff8"
1681       ]
1682     ]
1683   },
1684   {
1685     "id": "62278433.5ef6cc",
1686     "type": "execute",
1687     "name": "generate tmp.ar-url-connection url",
1688     "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",
1689     "comments": "",
1690     "outputs": 1,
1691     "x": 1507.9962997436523,
1692     "y": 872.6668090820312,
1693     "z": "dffc6494.bbb2d8",
1694     "wires": [
1695       []
1696     ]
1697   },
1698   {
1699     "id": "f022812b.da229",
1700     "type": "execute",
1701     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1702     "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",
1703     "comments": "",
1704     "outputs": 1,
1705     "x": 1656.99609375,
1706     "y": 911.3333740234375,
1707     "z": "dffc6494.bbb2d8",
1708     "wires": [
1709       [
1710         "9877a25.829156",
1711         "a15a79a.36a3388"
1712       ]
1713     ]
1714   },
1715   {
1716     "id": "e782e2ca.8bf82",
1717     "type": "execute",
1718     "name": "generate prop.ar-parent-service-instance-id",
1719     "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-parent-service-instance-id`\"/>\n\n",
1720     "comments": "",
1721     "outputs": 1,
1722     "x": 1687.3295593261719,
1723     "y": 1120.0003362894058,
1724     "z": "dffc6494.bbb2d8",
1725     "wires": [
1726       []
1727     ]
1728   },
1729   {
1730     "id": "1cdc5d42.9a95b3",
1731     "type": "execute",
1732     "name": "execute RestApiCallNode - get parent service data",
1733     "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-parentsd\" />\n\n",
1734     "comments": "",
1735     "outputs": 1,
1736     "x": 1706.3295288085938,
1737     "y": 1154.0004221200943,
1738     "z": "dffc6494.bbb2d8",
1739     "wires": [
1740       [
1741         "a5b86b7b.af84c8",
1742         "c3c5524a.3faea"
1743       ]
1744     ]
1745   },
1746   {
1747     "id": "cee99943.fb3588",
1748     "type": "block",
1749     "name": "block atomic",
1750     "xml": "<block atomic=\"true\">\n",
1751     "atomic": "false",
1752     "comments": "",
1753     "outputs": 1,
1754     "x": 1966.0272235870361,
1755     "y": 1030.5311307907104,
1756     "z": "dffc6494.bbb2d8",
1757     "wires": [
1758       [
1759         "509849b3.d30508",
1760         "607a7459.cb7aac"
1761       ]
1762     ]
1763   },
1764   {
1765     "id": "e8091f90.d8758",
1766     "type": "block",
1767     "name": "block atomic",
1768     "xml": "<block atomic=\"true\">\n",
1769     "atomic": "false",
1770     "comments": "",
1771     "outputs": 1,
1772     "x": 1492.0277786254883,
1773     "y": 1477.5313215255737,
1774     "z": "dffc6494.bbb2d8",
1775     "wires": [
1776       [
1777         "ea7febcc.253688",
1778         "2c101b23.e11c54",
1779         "390e0e98.c0e052",
1780         "64a3b63d.2b1de8"
1781       ]
1782     ]
1783   },
1784   {
1785     "id": "b7189ec7.b6673",
1786     "type": "block",
1787     "name": "block atomic",
1788     "xml": "<block atomic=\"true\">\n",
1789     "atomic": "false",
1790     "comments": "",
1791     "outputs": 1,
1792     "x": 1602.6634063720703,
1793     "y": 1344.667093873024,
1794     "z": "dffc6494.bbb2d8",
1795     "wires": [
1796       [
1797         "86cf34ff.454008"
1798       ]
1799     ]
1800   },
1801   {
1802     "id": "a2ba66c.8ff5498",
1803     "type": "block",
1804     "name": "block atmoic",
1805     "xml": "<block atomic=\"true\">\n",
1806     "atomic": "false",
1807     "comments": "",
1808     "outputs": 1,
1809     "x": 1827.9984703063965,
1810     "y": 1881.667660355568,
1811     "z": "dffc6494.bbb2d8",
1812     "wires": [
1813       [
1814         "8bbd7692.ac8cd8"
1815       ]
1816     ]
1817   },
1818   {
1819     "id": "a261c913.e49f08",
1820     "type": "block",
1821     "name": "block atomic",
1822     "xml": "<block atomic=\"true\">\n",
1823     "atomic": "false",
1824     "comments": "",
1825     "outputs": 1,
1826     "x": 2189.027723312378,
1827     "y": 1437.5314317941666,
1828     "z": "dffc6494.bbb2d8",
1829     "wires": [
1830       [
1831         "c9c5e103.2dba",
1832         "2f06a667.74729a"
1833       ]
1834     ]
1835   },
1836   {
1837     "id": "aa76b9db.55ac58",
1838     "type": "set",
1839     "name": "set prop.attach.siteId",
1840     "xml": "<set>\n<parameter name='prop.attach.siteId' value='`$mdsal-parentsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].value`' />\n\n",
1841     "comments": "",
1842     "x": 2080.665012359619,
1843     "y": 1955.3338705301285,
1844     "z": "dffc6494.bbb2d8",
1845     "wires": []
1846   },
1847   {
1848     "id": "1deec432.31ab3c",
1849     "type": "block",
1850     "name": "block atomic",
1851     "xml": "<block atomic=\"true\">\n",
1852     "atomic": "false",
1853     "comments": "",
1854     "outputs": 1,
1855     "x": 2260.255527496338,
1856     "y": 1736.00441801548,
1857     "z": "dffc6494.bbb2d8",
1858     "wires": [
1859       [
1860         "6d2e1c61.8e7884",
1861         "ac9bfac3.fa8558"
1862       ]
1863     ]
1864   },
1865   {
1866     "id": "feeed51.dea6e28",
1867     "type": "block",
1868     "name": "block atomic",
1869     "xml": "<block atomic=\"true\">\n",
1870     "atomic": "false",
1871     "comments": "",
1872     "outputs": 1,
1873     "x": 1883.755947113037,
1874     "y": 1981.754342675209,
1875     "z": "dffc6494.bbb2d8",
1876     "wires": [
1877       [
1878         "aa76b9db.55ac58",
1879         "4e949727.dc9598"
1880       ]
1881     ]
1882   },
1883   {
1884     "id": "1b86e032.9e8d5",
1885     "type": "call",
1886     "name": "call sdwan-wanport-vnf-topology-operation-underlay",
1887     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-wanport-vnf-topology-operation-underlay' mode='sync' >\n",
1888     "comments": "",
1889     "outputs": 1,
1890     "x": 739.753984451294,
1891     "y": 1336.2539825439453,
1892     "z": "dffc6494.bbb2d8",
1893     "wires": [
1894       []
1895     ]
1896   },
1897   {
1898     "id": "7f6d52f3.6e394c",
1899     "type": "comment",
1900     "name": "underlay",
1901     "info": "1. Get consumed AR from service data\n2. for all the AR id's get the respective AR from MDSAL\n3. From MDSAL AR get parent service instance ID\n4. Get service data based in parent service instance ID to get parent service. i.e, SDWAN Infra service\n5. Get SDWAN connectivity from looping network and check for topology\n6. from parent service data get siteAttachInstance vnf and check the role\n7. from parent service data get wanportINstance vnf and check the transportNetworkName\n8. Get provided AR from the parent service data\n9. for each of the provided ARid get the AR from MDSAL\n10.in the AR check for hub\n\n",
1902     "comments": "",
1903     "x": 647.7229633331299,
1904     "y": 1301.22292137146,
1905     "z": "dffc6494.bbb2d8",
1906     "wires": []
1907   },
1908   {
1909     "id": "38de1063.b6c52",
1910     "type": "set",
1911     "name": "set prop.siteAttachement_length=0",
1912     "xml": "<set>\n<parameter name='prop.siteAttachements_length' value='0' />\n<parameter name='prop.siteIds_length' value='0' />\n\n\n\n",
1913     "comments": "",
1914     "x": 688.9999694824219,
1915     "y": 848.5311733484268,
1916     "z": "dffc6494.bbb2d8",
1917     "wires": []
1918   },
1919   {
1920     "id": "2c101b23.e11c54",
1921     "type": "set",
1922     "name": "set prop.ar-service-instance-id",
1923     "xml": "<set>\n<parameter name='prop.ar-service-instance-id' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.service-information.service-instance-id`' />\n",
1924     "comments": "",
1925     "x": 1852.0003967285156,
1926     "y": 1475.531231880188,
1927     "z": "dffc6494.bbb2d8",
1928     "wires": []
1929   },
1930   {
1931     "id": "390e0e98.c0e052",
1932     "type": "execute",
1933     "name": "generate prop.ar-service-instance-id",
1934     "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\n",
1935     "comments": "",
1936     "outputs": 1,
1937     "x": 1862.3326683044434,
1938     "y": 1516.4093770980835,
1939     "z": "dffc6494.bbb2d8",
1940     "wires": [
1941       []
1942     ]
1943   },
1944   {
1945     "id": "64a3b63d.2b1de8",
1946     "type": "execute",
1947     "name": "execute RestApiCallNode - get service data",
1948     "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-sd\" />\n\n",
1949     "comments": "",
1950     "outputs": 1,
1951     "x": 1891.3327331542969,
1952     "y": 1557.4093770980835,
1953     "z": "dffc6494.bbb2d8",
1954     "wires": [
1955       [
1956         "989a92da.0b198",
1957         "30bf8c06.3702c4"
1958       ]
1959     ]
1960   },
1961   {
1962     "id": "989a92da.0b198",
1963     "type": "other",
1964     "name": "other",
1965     "xml": "<outcome value='Other'>\n",
1966     "comments": "",
1967     "outputs": 1,
1968     "x": 2147.8524169921875,
1969     "y": 1566.5972105264664,
1970     "z": "dffc6494.bbb2d8",
1971     "wires": [
1972       [
1973         "337ed6c3.e36fba"
1974       ]
1975     ]
1976   },
1977   {
1978     "id": "30bf8c06.3702c4",
1979     "type": "success",
1980     "name": "success",
1981     "xml": "<outcome value='success'>\n",
1982     "comments": "",
1983     "outputs": 1,
1984     "x": 2150.000087738037,
1985     "y": 1605.5310827493668,
1986     "z": "dffc6494.bbb2d8",
1987     "wires": [
1988       [
1989         "8b4ff7.5f205008"
1990       ]
1991     ]
1992   },
1993   {
1994     "id": "337ed6c3.e36fba",
1995     "type": "block",
1996     "name": "block",
1997     "xml": "<block>\n",
1998     "atomic": "false",
1999     "comments": "",
2000     "outputs": 1,
2001     "x": 2277.5006103515625,
2002     "y": 1560.0311704874039,
2003     "z": "dffc6494.bbb2d8",
2004     "wires": [
2005       []
2006     ]
2007   },
2008   {
2009     "id": "8b4ff7.5f205008",
2010     "type": "block",
2011     "name": "block atomic",
2012     "xml": "<block atomic=\"true\">\n",
2013     "atomic": "false",
2014     "comments": "",
2015     "outputs": 1,
2016     "x": 1625.9998779296875,
2017     "y": 1656.5311304330826,
2018     "z": "dffc6494.bbb2d8",
2019     "wires": [
2020       [
2021         "70d2ed6a.c33784"
2022       ]
2023     ]
2024   },
2025   {
2026     "id": "94e25478.dfdfd8",
2027     "type": "comment",
2028     "name": "TODO send Email",
2029     "info": "",
2030     "comments": "",
2031     "x": 988.9999866485596,
2032     "y": 1381.0313110351562,
2033     "z": "dffc6494.bbb2d8",
2034     "wires": []
2035   }
2036 ]