SDWAN flow based end-end test and issue fix
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-activate.json
1 [
2   {
3     "id": "8656b138.5dcef",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 87.00390625,
8     "y": 63.999998569488525,
9     "z": "4842829a.c92f5c",
10     "wires": [
11       [
12         "434423eb.200dcc"
13       ]
14     ]
15   },
16   {
17     "id": "434423eb.200dcc",
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": 278.0039119720459,
26     "y": 134.00001668930054,
27     "z": "4842829a.c92f5c",
28     "wires": [
29       [
30         "e6e0d8a8.8bfcf8"
31       ]
32     ]
33   },
34   {
35     "id": "e6e0d8a8.8bfcf8",
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": 266.00403022766113,
42     "y": 221.99999952316284,
43     "z": "4842829a.c92f5c",
44     "wires": [
45       [
46         "5cdb946c.3b710c"
47       ]
48     ]
49   },
50   {
51     "id": "5cdb946c.3b710c",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 168.00404357910156,
59     "y": 908.0002876520157,
60     "z": "4842829a.c92f5c",
61     "wires": [
62       [
63         "4b9de3d9.03091c",
64         "4127df46.08ca1",
65         "aae6c90e.119798",
66         "72064d52.212b94",
67         "21e8ba33.483c86",
68         "7d9870f2.8c169",
69         "f1c987fe.e262e8",
70         "4c06f720.016118",
71         "1379096d.d52197",
72         "4fc8c244.1177ac",
73         "d4d40535.00b288",
74         "daadac76.292c6",
75         "c4a41078.ea3c4",
76         "43fe29d3.28d4b8",
77         "38c9c0d2.63a2d",
78         "9192f41d.1c9e78",
79         "19eae0e7.50657f",
80         "585348e6.e28c68",
81         "4041fa5f.8f6984",
82         "db5d0d5.71c66f",
83         "537ad820.346958",
84         "5723dd.5302dc24",
85         "390c3a59.81dbe6"
86       ]
87     ]
88   },
89   {
90     "id": "4b9de3d9.03091c",
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": 678.9974689483643,
96     "y": 175.99348640441895,
97     "z": "4842829a.c92f5c",
98     "wires": []
99   },
100   {
101     "id": "246c798e.5e7076",
102     "type": "comment",
103     "name": "set tmp ar-id to fetch resource from MDSAL",
104     "info": "",
105     "comments": "",
106     "x": 707.9577808380127,
107     "y": 140.0252823829651,
108     "z": "4842829a.c92f5c",
109     "wires": []
110   },
111   {
112     "id": "4127df46.08ca1",
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": 632.997407913208,
118     "y": 268.9934916496277,
119     "z": "4842829a.c92f5c",
120     "wires": []
121   },
122   {
123     "id": "72064d52.212b94",
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": 639.259298324585,
130     "y": 356.66022062301636,
131     "z": "4842829a.c92f5c",
132     "wires": [
133       []
134     ]
135   },
136   {
137     "id": "aae6c90e.119798",
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": 686.259355545044,
144     "y": 444.6602244377136,
145     "z": "4842829a.c92f5c",
146     "wires": [
147       []
148     ]
149   },
150   {
151     "id": "ca8f4f1a.61b38",
152     "type": "comment",
153     "name": "GET connection-attachment-allotted-resource from mdsal",
154     "info": "",
155     "comments": "",
156     "x": 740.8123168945312,
157     "y": 513.5386500358582,
158     "z": "4842829a.c92f5c",
159     "wires": []
160   },
161   {
162     "id": "9f182507.e3c608",
163     "type": "comment",
164     "name": "Used for setting output to API Handler",
165     "info": "",
166     "comments": "",
167     "x": 686.9974384307861,
168     "y": 235.99350118637085,
169     "z": "4842829a.c92f5c",
170     "wires": []
171   },
172   {
173     "id": "2aa7816a.d5fa1e",
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": 704.9974040985107,
179     "y": 321.88238191604614,
180     "z": "4842829a.c92f5c",
181     "wires": []
182   },
183   {
184     "id": "7187d295.0c7a1c",
185     "type": "comment",
186     "name": "Used to Get AR by id to MDSAL, same as self-link",
187     "info": "",
188     "comments": "",
189     "x": 730.9974231719971,
190     "y": 408.88234090805054,
191     "z": "4842829a.c92f5c",
192     "wires": []
193   },
194   {
195     "id": "b2104ab0.d42038",
196     "type": "success",
197     "name": "success",
198     "xml": "<outcome value='success'>\n",
199     "comments": "",
200     "outputs": 1,
201     "x": 1194.6707286834717,
202     "y": 526.9999775886536,
203     "z": "4842829a.c92f5c",
204     "wires": [
205       [
206         "736e1064.726c"
207       ]
208     ]
209   },
210   {
211     "id": "736e1064.726c",
212     "type": "block",
213     "name": "block: atomic",
214     "xml": "<block atomic=\"true\">\n",
215     "atomic": "false",
216     "comments": "",
217     "outputs": 1,
218     "x": 1338.6708068847656,
219     "y": 484.49989557266235,
220     "z": "4842829a.c92f5c",
221     "wires": [
222       [
223         "a5f06ff2.e93e4"
224       ]
225     ]
226   },
227   {
228     "id": "a5f06ff2.e93e4",
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": 1507.5282306671143,
235     "y": 482.1190667152405,
236     "z": "4842829a.c92f5c",
237     "wires": [
238       [
239         "69d17a58.9c2324",
240         "1cf05230.c0296e"
241       ]
242     ]
243   },
244   {
245     "id": "69d17a58.9c2324",
246     "type": "other",
247     "name": "outcome 1",
248     "xml": "<outcome value='1'>\n",
249     "comments": "",
250     "outputs": 1,
251     "x": 1662.8613662719727,
252     "y": 454.1189818382263,
253     "z": "4842829a.c92f5c",
254     "wires": [
255       [
256         "a2e5f5bf.161fe8"
257       ]
258     ]
259   },
260   {
261     "id": "a2e5f5bf.161fe8",
262     "type": "block",
263     "name": "block: atomic",
264     "xml": "<block atomic='true'>\n",
265     "atomic": "false",
266     "comments": "",
267     "outputs": 1,
268     "x": 1821.3851699829102,
269     "y": 452.0238289833069,
270     "z": "4842829a.c92f5c",
271     "wires": [
272       [
273         "2e9b819d.3363ee",
274         "edfeb643.5889d8",
275         "76036750.d4da68"
276       ]
277     ]
278   },
279   {
280     "id": "8107bf70.6729c",
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": 1761.5231018066406,
286     "y": 559.0660634040833,
287     "z": "4842829a.c92f5c",
288     "wires": []
289   },
290   {
291     "id": "a6741673.5edd48",
292     "type": "other",
293     "name": "other",
294     "xml": "<outcome value='Other'>\n",
295     "comments": "",
296     "outputs": 1,
297     "x": 1186.5225315093994,
298     "y": 562.0660624504089,
299     "z": "4842829a.c92f5c",
300     "wires": [
301       [
302         "9ba85af5.f74448"
303       ]
304     ]
305   },
306   {
307     "id": "9ba85af5.f74448",
308     "type": "block",
309     "name": "block: atomic",
310     "xml": "<block atomic=\"true\">\n",
311     "atomic": "false",
312     "comments": "",
313     "outputs": 1,
314     "x": 1366.522481918335,
315     "y": 562.7326130867004,
316     "z": "4842829a.c92f5c",
317     "wires": [
318       [
319         "8107bf70.6729c"
320       ]
321     ]
322   },
323   {
324     "id": "1cf05230.c0296e",
325     "type": "other",
326     "name": "other",
327     "xml": "<outcome value='Other'>\n",
328     "comments": "",
329     "outputs": 1,
330     "x": 1654.1893692016602,
331     "y": 513.3993563652039,
332     "z": "4842829a.c92f5c",
333     "wires": [
334       [
335         "8107bf70.6729c"
336       ]
337     ]
338   },
339   {
340     "id": "2e9b819d.3363ee",
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": 2068.4486236572266,
346     "y": 425.0000810623169,
347     "z": "4842829a.c92f5c",
348     "wires": []
349   },
350   {
351     "id": "edfeb643.5889d8",
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": 2017.4488925933838,
357     "y": 527.4286171197891,
358     "z": "4842829a.c92f5c",
359     "wires": []
360   },
361   {
362     "id": "76036750.d4da68",
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": 2019.448709487915,
369     "y": 467.0000420808792,
370     "z": "4842829a.c92f5c",
371     "wires": [
372       [
373         "e87ff105.14d1b",
374         "d97dfa9c.e30428"
375       ]
376     ]
377   },
378   {
379     "id": "d97dfa9c.e30428",
380     "type": "outcome",
381     "name": "outcome Created",
382     "xml": "<outcome value='Created'>\n",
383     "comments": "",
384     "outputs": 1,
385     "x": 2247.0490589141846,
386     "y": 458.0000993013382,
387     "z": "4842829a.c92f5c",
388     "wires": [
389       [
390         "987bc713.b486f8"
391       ]
392     ]
393   },
394   {
395     "id": "e87ff105.14d1b",
396     "type": "outcome",
397     "name": "outcome Other",
398     "xml": "<outcome value='Other'>\n",
399     "comments": "",
400     "outputs": 1,
401     "x": 2241.762954711914,
402     "y": 497.42865657806396,
403     "z": "4842829a.c92f5c",
404     "wires": [
405       [
406         "b58f7e1e.c3478"
407       ]
408     ]
409   },
410   {
411     "id": "987bc713.b486f8",
412     "type": "block",
413     "name": "block",
414     "xml": "<block>\n",
415     "atomic": "false",
416     "comments": "",
417     "outputs": 1,
418     "x": 2406.519187927246,
419     "y": 458.37570428848267,
420     "z": "4842829a.c92f5c",
421     "wires": [
422       []
423     ]
424   },
425   {
426     "id": "b58f7e1e.c3478",
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": 2417.670768737793,
432     "y": 496.0000557899475,
433     "z": "4842829a.c92f5c",
434     "wires": []
435   },
436   {
437     "id": "e130ad96.c9e09",
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": 911.3069496154785,
444     "y": 633.4936280250549,
445     "z": "4842829a.c92f5c",
446     "wires": [
447       []
448     ]
449   },
450   {
451     "id": "21e8ba33.483c86",
452     "type": "block",
453     "name": "block: atomic",
454     "xml": "<block atomic=\"true\">\n",
455     "atomic": "false",
456     "comments": "",
457     "outputs": 1,
458     "x": 605.3130493164062,
459     "y": 634.4999985694885,
460     "z": "4842829a.c92f5c",
461     "wires": [
462       [
463         "e130ad96.c9e09"
464       ]
465     ]
466   },
467   {
468     "id": "336e8236.5ec30e",
469     "type": "comment",
470     "name": "GET parent-service-data from mdsal to check existence of other End point",
471     "info": "",
472     "comments": "",
473     "x": 783.00439453125,
474     "y": 705.5317368507385,
475     "z": "4842829a.c92f5c",
476     "wires": []
477   },
478   {
479     "id": "2b31d5c5.87577a",
480     "type": "comment",
481     "name": "GET connection-attachment-ar to store AR data from mdsal",
482     "info": "",
483     "comments": "",
484     "x": 2130.4766845703125,
485     "y": 385.50393533706665,
486     "z": "4842829a.c92f5c",
487     "wires": []
488   },
489   {
490     "id": "7d9870f2.8c169",
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": 668.9727172851562,
496     "y": 735.000120639801,
497     "z": "4842829a.c92f5c",
498     "wires": []
499   },
500   {
501     "id": "b757ef37.0ce2d",
502     "type": "success",
503     "name": "success",
504     "xml": "<outcome value='success'>\n",
505     "comments": "",
506     "outputs": 1,
507     "x": 1028.972885131836,
508     "y": 792.0000901222229,
509     "z": "4842829a.c92f5c",
510     "wires": [
511       [
512         "8876c1bb.25741"
513       ]
514     ]
515   },
516   {
517     "id": "f706c388.1aebc",
518     "type": "other",
519     "name": "other",
520     "xml": "<outcome value='Other'>\n",
521     "comments": "",
522     "outputs": 1,
523     "x": 1020.8246879577637,
524     "y": 827.0661749839783,
525     "z": "4842829a.c92f5c",
526     "wires": [
527       [
528         "cb9cbf16.bef44"
529       ]
530     ]
531   },
532   {
533     "id": "cb9cbf16.bef44",
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": 1166.9734687805176,
539     "y": 826.3335862159729,
540     "z": "4842829a.c92f5c",
541     "wires": []
542   },
543   {
544     "id": "8876c1bb.25741",
545     "type": "block",
546     "name": "block",
547     "xml": "<block>\n",
548     "atomic": "false",
549     "comments": "",
550     "outputs": 1,
551     "x": 1159.9729804992676,
552     "y": 792.0001511573792,
553     "z": "4842829a.c92f5c",
554     "wires": [
555       []
556     ]
557   },
558   {
559     "id": "2c9b5f28.48e9e",
560     "type": "failure",
561     "name": "failure",
562     "xml": "<outcome value='failure'>\n",
563     "comments": "",
564     "outputs": 1,
565     "x": 842.7351894378662,
566     "y": 1824.9538197517395,
567     "z": "4842829a.c92f5c",
568     "wires": [
569       [
570         "6b8dfb7d.64cd94"
571       ]
572     ]
573   },
574   {
575     "id": "6b8dfb7d.64cd94",
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": 1009.2590103149414,
581     "y": 1851.5728268623352,
582     "z": "4842829a.c92f5c",
583     "wires": []
584   },
585   {
586     "id": "ed67a862.2bd1f8",
587     "type": "failure",
588     "name": "not-found",
589     "xml": "<outcome value='not-found'>\n",
590     "comments": "",
591     "outputs": 1,
592     "x": 844.8304176330566,
593     "y": 1872.7156624794006,
594     "z": "4842829a.c92f5c",
595     "wires": [
596       [
597         "6b8dfb7d.64cd94"
598       ]
599     ]
600   },
601   {
602     "id": "97cf9734.788978",
603     "type": "comment",
604     "name": "Save Resource to AAI",
605     "info": "",
606     "comments": "",
607     "x": 616.7828330993652,
608     "y": 1813.3029828071594,
609     "z": "4842829a.c92f5c",
610     "wires": []
611   },
612   {
613     "id": "38c9c0d2.63a2d",
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": 631.5505294799805,
619     "y": 1734.8284640312195,
620     "z": "4842829a.c92f5c",
621     "wires": []
622   },
623   {
624     "id": "9192f41d.1c9e78",
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": 591.963701248169,
630     "y": 1920.4442524909973,
631     "z": "4842829a.c92f5c",
632     "wires": []
633   },
634   {
635     "id": "43fe29d3.28d4b8",
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": 684.2826118469238,
642     "y": 1659.469316959381,
643     "z": "4842829a.c92f5c",
644     "wires": [
645       [
646         "d5f8f1b8.84781",
647         "d21a6279.bc9d6",
648         "9617473f.000048"
649       ]
650     ]
651   },
652   {
653     "id": "d5f8f1b8.84781",
654     "type": "not-found",
655     "name": "not-found",
656     "xml": "<outcome value='not-found'>\n",
657     "comments": "",
658     "outputs": 1,
659     "x": 938.9240341186523,
660     "y": 1703.8007111549377,
661     "z": "4842829a.c92f5c",
662     "wires": [
663       [
664         "ce2b1814.f0bc28"
665       ]
666     ]
667   },
668   {
669     "id": "d21a6279.bc9d6",
670     "type": "failure",
671     "name": "failure",
672     "xml": "<outcome value='failure'>\n",
673     "comments": "",
674     "outputs": 1,
675     "x": 940.9240570068359,
676     "y": 1662.3006752952933,
677     "z": "4842829a.c92f5c",
678     "wires": [
679       [
680         "ce2b1814.f0bc28"
681       ]
682     ]
683   },
684   {
685     "id": "9617473f.000048",
686     "type": "success",
687     "name": "success",
688     "xml": "<outcome value='success'>\n",
689     "comments": "",
690     "outputs": 1,
691     "x": 944.6741409301758,
692     "y": 1613.6578278541565,
693     "z": "4842829a.c92f5c",
694     "wires": [
695       [
696         "c002bab4.10b818"
697       ]
698     ]
699   },
700   {
701     "id": "ce2b1814.f0bc28",
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": 1099.674160003662,
707     "y": 1682.0507416725159,
708     "z": "4842829a.c92f5c",
709     "wires": []
710   },
711   {
712     "id": "c002bab4.10b818",
713     "type": "block",
714     "name": "block",
715     "xml": "<block>\n",
716     "atomic": "false",
717     "comments": "",
718     "outputs": 1,
719     "x": 1072.3300857543945,
720     "y": 1615.8499960899353,
721     "z": "4842829a.c92f5c",
722     "wires": [
723       []
724     ]
725   },
726   {
727     "id": "4fc8c244.1177ac",
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": 586.4962272644043,
733     "y": 1493.8502180576324,
734     "z": "4842829a.c92f5c",
735     "wires": []
736   },
737   {
738     "id": "daadac76.292c6",
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": 603.7820701599121,
745     "y": 1566.4698157310486,
746     "z": "4842829a.c92f5c",
747     "wires": [
748       []
749     ]
750   },
751   {
752     "id": "c4a41078.ea3c4",
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": 653.7691497802734,
758     "y": 1603.4208960533142,
759     "z": "4842829a.c92f5c",
760     "wires": []
761   },
762   {
763     "id": "d4d40535.00b288",
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": 600.3377685546875,
769     "y": 1533.0248684883118,
770     "z": "4842829a.c92f5c",
771     "wires": []
772   },
773   {
774     "id": "45fc3466.cbd9ac",
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": 711.6712646484375,
780     "y": 1455.0248260498047,
781     "z": "4842829a.c92f5c",
782     "wires": []
783   },
784   {
785     "id": "4c6b5051.361fc",
786     "type": "comment",
787     "name": "Add to allotted-resources in mdsal",
788     "info": "",
789     "comments": "",
790     "x": 655.2510566711426,
791     "y": 1421.4381222724915,
792     "z": "4842829a.c92f5c",
793     "wires": []
794   },
795   {
796     "id": "390c3a59.81dbe6",
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": 643.2271118164062,
803     "y": 1850.7551255226135,
804     "z": "4842829a.c92f5c",
805     "wires": [
806       [
807         "2c9b5f28.48e9e",
808         "ed67a862.2bd1f8"
809       ]
810     ]
811   },
812   {
813     "id": "f1c987fe.e262e8",
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": 815.0078735351562,
820     "y": 545.0039048194885,
821     "z": "4842829a.c92f5c",
822     "wires": [
823       [
824         "b2104ab0.d42038",
825         "a6741673.5edd48"
826       ]
827     ]
828   },
829   {
830     "id": "4c06f720.016118",
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": 738.0079956054688,
837     "y": 808.0040879249573,
838     "z": "4842829a.c92f5c",
839     "wires": [
840       [
841         "b757ef37.0ce2d",
842         "f706c388.1aebc"
843       ]
844     ]
845   },
846   {
847     "id": "1379096d.d52197",
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": 638.0079040527344,
854     "y": 771.0039210319519,
855     "z": "4842829a.c92f5c",
856     "wires": [
857       []
858     ]
859   },
860   {
861     "id": "5177b2ec.7304dc",
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": 1496.0003814697266,
867     "y": 860.1218543052673,
868     "z": "4842829a.c92f5c",
869     "wires": []
870   },
871   {
872     "id": "a4de5ab0.2e8518",
873     "type": "success",
874     "name": "success",
875     "xml": "<outcome value='success'>\n",
876     "comments": "",
877     "outputs": 1,
878     "x": 2002.0009765625,
879     "y": 954.4551377296448,
880     "z": "4842829a.c92f5c",
881     "wires": [
882       [
883         "b07d3158.ec06e"
884       ]
885     ]
886   },
887   {
888     "id": "e77eab64.b80238",
889     "type": "other",
890     "name": "other",
891     "xml": "<outcome value='Other'>\n",
892     "comments": "",
893     "outputs": 1,
894     "x": 2005.852352142334,
895     "y": 916.5212178230286,
896     "z": "4842829a.c92f5c",
897     "wires": [
898       [
899         "67d985d1.99c82c"
900       ]
901     ]
902   },
903   {
904     "id": "a9f31ecc.485fc",
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": 1898.0015487670898,
911     "y": 1682.1222678422928,
912     "z": "4842829a.c92f5c",
913     "wires": [
914       [
915         "3f28b2ff.c5261e"
916       ]
917     ]
918   },
919   {
920     "id": "3f28b2ff.c5261e",
921     "type": "block",
922     "name": "block atmoic",
923     "xml": "<block atomic=\"true\">\n",
924     "atomic": "false",
925     "comments": "",
926     "outputs": 1,
927     "x": 1657.6680450439453,
928     "y": 1754.1224604845047,
929     "z": "4842829a.c92f5c",
930     "wires": [
931       [
932         "7390d84f.4b2318"
933       ]
934     ]
935   },
936   {
937     "id": "7390d84f.4b2318",
938     "type": "switchNode",
939     "name": "switch ActivateSiteInstance",
940     "xml": "<switch test=\"`$mdsal-sd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n\n    \n    \n\n",
941     "comments": "",
942     "outputs": 1,
943     "x": 1870.5332794189453,
944     "y": 1755.3203288316727,
945     "z": "4842829a.c92f5c",
946     "wires": [
947       [
948         "f67dfe78.781af"
949       ]
950     ]
951   },
952   {
953     "id": "f67dfe78.781af",
954     "type": "outcomeTrue",
955     "name": "true",
956     "xml": "<outcome value='true'>\n",
957     "comments": "",
958     "outputs": 1,
959     "x": 2075.53263092041,
960     "y": 1758.3203250169754,
961     "z": "4842829a.c92f5c",
962     "wires": [
963       [
964         "24aa0f5e.31356"
965       ]
966     ]
967   },
968   {
969     "id": "e2678b6.a3e2078",
970     "type": "set",
971     "name": "set tmp.sitevidx ",
972     "xml": "<set>\n<parameter name='tmp.sitevidx' value='`$arvidx`' />\n\n",
973     "comments": "",
974     "x": 2419.532802581787,
975     "y": 1738.3206726312637,
976     "z": "4842829a.c92f5c",
977     "wires": []
978   },
979   {
980     "id": "9f2a331c.6de8",
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": 1647.0009765625,
986     "y": 1101.1221171617508,
987     "z": "4842829a.c92f5c",
988     "wires": []
989   },
990   {
991     "id": "d2ac9580.cea3a8",
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": 1674.0004901885986,
998     "y": 1058.621705532074,
999     "z": "4842829a.c92f5c",
1000     "wires": [
1001       [
1002         "ab4a3566.1d4448"
1003       ]
1004     ]
1005   },
1006   {
1007     "id": "9e31b20.ec7145",
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": 2105.0007343292236,
1014     "y": 1024.6218276023865,
1015     "z": "4842829a.c92f5c",
1016     "wires": [
1017       [
1018         "8e1f2970.68a218"
1019       ]
1020     ]
1021   },
1022   {
1023     "id": "8e1f2970.68a218",
1024     "type": "outcomeTrue",
1025     "name": "true",
1026     "xml": "<outcome value='true'>\n",
1027     "comments": "",
1028     "outputs": 1,
1029     "x": 2245.0009784698486,
1030     "y": 1022.621949672699,
1031     "z": "4842829a.c92f5c",
1032     "wires": [
1033       [
1034         "ef163b1b.5ea0c8"
1035       ]
1036     ]
1037   },
1038   {
1039     "id": "ef163b1b.5ea0c8",
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": 2389.0017108917236,
1045     "y": 1022.221803188324,
1046     "z": "4842829a.c92f5c",
1047     "wires": []
1048   },
1049   {
1050     "id": "8f7eca2d.7a5ac8",
1051     "type": "success",
1052     "name": "success",
1053     "xml": "<outcome value='success'>\n",
1054     "comments": "",
1055     "outputs": 1,
1056     "x": 1953.0007934570312,
1057     "y": 1201.1219245195389,
1058     "z": "4842829a.c92f5c",
1059     "wires": [
1060       [
1061         "2acc8e1c.c1a132"
1062       ]
1063     ]
1064   },
1065   {
1066     "id": "224b80f9.f7e8e",
1067     "type": "other",
1068     "name": "other",
1069     "xml": "<outcome value='Other'>\n",
1070     "comments": "",
1071     "outputs": 1,
1072     "x": 1950.8531227111816,
1073     "y": 1162.1880522966385,
1074     "z": "4842829a.c92f5c",
1075     "wires": [
1076       [
1077         "d6b1d2aa.02b42"
1078       ]
1079     ]
1080   },
1081   {
1082     "id": "67d985d1.99c82c",
1083     "type": "block",
1084     "name": "block",
1085     "xml": "<block>\n",
1086     "atomic": "false",
1087     "comments": "",
1088     "outputs": 1,
1089     "x": 2132.000476837158,
1090     "y": 913.6216511726379,
1091     "z": "4842829a.c92f5c",
1092     "wires": [
1093       []
1094     ]
1095   },
1096   {
1097     "id": "b07d3158.ec06e",
1098     "type": "block",
1099     "name": "block atomic",
1100     "xml": "<block atomic=\"true\">\n",
1101     "atomic": "false",
1102     "comments": "",
1103     "outputs": 1,
1104     "x": 1297.500431060791,
1105     "y": 1093.621780872345,
1106     "z": "4842829a.c92f5c",
1107     "wires": [
1108       [
1109         "d2ac9580.cea3a8",
1110         "9f2a331c.6de8",
1111         "13a1cc8b.f27593",
1112         "8c1064b8.0837a8"
1113       ]
1114     ]
1115   },
1116   {
1117     "id": "d6b1d2aa.02b42",
1118     "type": "block",
1119     "name": "block",
1120     "xml": "<block>\n",
1121     "atomic": "false",
1122     "comments": "",
1123     "outputs": 1,
1124     "x": 2080.5013160705566,
1125     "y": 1155.622012257576,
1126     "z": "4842829a.c92f5c",
1127     "wires": [
1128       []
1129     ]
1130   },
1131   {
1132     "id": "2acc8e1c.c1a132",
1133     "type": "block",
1134     "name": "block atomic",
1135     "xml": "<block atomic=\"true\">\n",
1136     "atomic": "false",
1137     "comments": "",
1138     "outputs": 1,
1139     "x": 1679.5010528564453,
1140     "y": 1280.6221534013748,
1141     "z": "4842829a.c92f5c",
1142     "wires": [
1143       [
1144         "2eef69ed.8c4646"
1145       ]
1146     ]
1147   },
1148   {
1149     "id": "322f0f47.8e765",
1150     "type": "for",
1151     "name": "for loop siteidx - Get site ID from servicedata",
1152     "xml": "<for index=\"siteidx\" start=\"0\" end=\"`$mdsal-sd.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": 2498.5025024414062,
1156     "y": 1788.6224652528763,
1157     "z": "4842829a.c92f5c",
1158     "wires": [
1159       [
1160         "f041a5c4.8e5ff8"
1161       ]
1162     ]
1163   },
1164   {
1165     "id": "3ce210b6.91582",
1166     "type": "switchNode",
1167     "name": "switch siteId",
1168     "xml": "<switch test=\"`$mdsal-sd.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": 1969.505865097046,
1172     "y": 1902.6239272356033,
1173     "z": "4842829a.c92f5c",
1174     "wires": [
1175       [
1176         "57ac6f64.1286d"
1177       ]
1178     ]
1179   },
1180   {
1181     "id": "57ac6f64.1286d",
1182     "type": "outcomeTrue",
1183     "name": "true",
1184     "xml": "<outcome value='true'>\n",
1185     "comments": "",
1186     "outputs": 1,
1187     "x": 2124.5062351226807,
1188     "y": 1904.624293923378,
1189     "z": "4842829a.c92f5c",
1190     "wires": [
1191       [
1192         "b1ee9c99.2aacf"
1193       ]
1194     ]
1195   },
1196   {
1197     "id": "cbb60b59.d98d48",
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\n\n\n\n\n\n\n\n\n\n\n\n",
1201     "comments": "",
1202     "x": 2102.0048294067383,
1203     "y": 2037.122889637947,
1204     "z": "4842829a.c92f5c",
1205     "wires": []
1206   },
1207   {
1208     "id": "5723dd.5302dc24",
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": 695.0036029815674,
1215     "y": 1242.6233216524124,
1216     "z": "4842829a.c92f5c",
1217     "wires": [
1218       [
1219         "dbb9cf9c.1b8a",
1220         "fefb45a2.751f18"
1221       ]
1222     ]
1223   },
1224   {
1225     "id": "fefb45a2.751f18",
1226     "type": "success",
1227     "name": "success",
1228     "xml": "<outcome value='success'>\n",
1229     "comments": "",
1230     "outputs": 1,
1231     "x": 939.0035572052002,
1232     "y": 1263.6231385469437,
1233     "z": "4842829a.c92f5c",
1234     "wires": [
1235       [
1236         "96dbc97.ce15e38"
1237       ]
1238     ]
1239   },
1240   {
1241     "id": "96dbc97.ce15e38",
1242     "type": "block",
1243     "name": "block : atomic",
1244     "xml": "<block atomic=\"true\">",
1245     "atomic": "true",
1246     "comments": "",
1247     "outputs": 1,
1248     "x": 1109.003496170044,
1249     "y": 1266.6231385469437,
1250     "z": "4842829a.c92f5c",
1251     "wires": [
1252       []
1253     ]
1254   },
1255   {
1256     "id": "95ee12f3.671c4",
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": 1109.0036182403564,
1262     "y": 1222.6231385469437,
1263     "z": "4842829a.c92f5c",
1264     "wires": []
1265   },
1266   {
1267     "id": "dbb9cf9c.1b8a",
1268     "type": "failure",
1269     "name": "failure",
1270     "xml": "<outcome value='failure'>\n",
1271     "comments": "",
1272     "outputs": 1,
1273     "x": 942.003496170044,
1274     "y": 1222.6231385469437,
1275     "z": "4842829a.c92f5c",
1276     "wires": [
1277       [
1278         "95ee12f3.671c4"
1279       ]
1280     ]
1281   },
1282   {
1283     "id": "722c21e0.94316",
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": 1113.569179534912,
1289     "y": 955.2990155220032,
1290     "z": "4842829a.c92f5c",
1291     "wires": []
1292   },
1293   {
1294     "id": "db5d0d5.71c66f",
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 = SDWANController 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": 650.0689697265625,
1301     "y": 1004.2993149757385,
1302     "z": "4842829a.c92f5c",
1303     "wires": [
1304       [
1305         "9f61640b.56f5e8",
1306         "fcbf7eb7.5e0e6",
1307         "b9617b3d.71b3f8"
1308       ]
1309     ]
1310   },
1311   {
1312     "id": "9f61640b.56f5e8",
1313     "type": "success",
1314     "name": "success",
1315     "xml": "<outcome value='success'>\n",
1316     "comments": "",
1317     "outputs": 1,
1318     "x": 916.0691184997559,
1319     "y": 967.2990155220032,
1320     "z": "4842829a.c92f5c",
1321     "wires": [
1322       [
1323         "722c21e0.94316"
1324       ]
1325     ]
1326   },
1327   {
1328     "id": "fcbf7eb7.5e0e6",
1329     "type": "not-found",
1330     "name": "not-found",
1331     "xml": "<outcome value='not-found'>\n",
1332     "comments": "",
1333     "outputs": 1,
1334     "x": 912.55983543396,
1335     "y": 1005.8731122016907,
1336     "z": "4842829a.c92f5c",
1337     "wires": [
1338       [
1339         "ae421a1b.b35b38"
1340       ]
1341     ]
1342   },
1343   {
1344     "id": "b9617b3d.71b3f8",
1345     "type": "other",
1346     "name": "other",
1347     "xml": "<outcome value='Other'>\n",
1348     "comments": "",
1349     "outputs": 1,
1350     "x": 907.89284324646,
1351     "y": 1047.206425189972,
1352     "z": "4842829a.c92f5c",
1353     "wires": [
1354       [
1355         "e4bd895d.631da8"
1356       ]
1357     ]
1358   },
1359   {
1360     "id": "ae421a1b.b35b38",
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": 1089.1312465667725,
1366     "y": 994.158848285675,
1367     "z": "4842829a.c92f5c",
1368     "wires": []
1369   },
1370   {
1371     "id": "e4bd895d.631da8",
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": 1095.6653995513916,
1377     "y": 1042.6456179618835,
1378     "z": "4842829a.c92f5c",
1379     "wires": []
1380   },
1381   {
1382     "id": "2eef69ed.8c4646",
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": 1987.5011825561523,
1389     "y": 1280.1222764253616,
1390     "z": "4842829a.c92f5c",
1391     "wires": [
1392       [
1393         "19a68b02.3eedc5"
1394       ]
1395     ]
1396   },
1397   {
1398     "id": "532b87f6.cba248",
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": 1834.169578552246,
1405     "y": 1369.122292637825,
1406     "z": "4842829a.c92f5c",
1407     "wires": [
1408       [
1409         "f7df899d.2cdaa8"
1410       ]
1411     ]
1412   },
1413   {
1414     "id": "f7df899d.2cdaa8",
1415     "type": "outcomeTrue",
1416     "name": "true",
1417     "xml": "<outcome value='true'>\n",
1418     "comments": "",
1419     "outputs": 1,
1420     "x": 2090.1690311431885,
1421     "y": 1367.1222316026688,
1422     "z": "4842829a.c92f5c",
1423     "wires": [
1424       [
1425         "4ad4efb2.b5354"
1426       ]
1427     ]
1428   },
1429   {
1430     "id": "f89715ac.25dc68",
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": 1877.1676940917969,
1437     "y": 1460.1214705705643,
1438     "z": "4842829a.c92f5c",
1439     "wires": [
1440       [
1441         "c531c63.7b95a38"
1442       ]
1443     ]
1444   },
1445   {
1446     "id": "bd704489.7274d8",
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": 2331.1680545806885,
1453     "y": 1447.1217604875565,
1454     "z": "4842829a.c92f5c",
1455     "wires": [
1456       [
1457         "76f653aa.77e0bc"
1458       ]
1459     ]
1460   },
1461   {
1462     "id": "76f653aa.77e0bc",
1463     "type": "outcomeTrue",
1464     "name": "true",
1465     "xml": "<outcome value='true'>\n",
1466     "comments": "",
1467     "outputs": 1,
1468     "x": 2480.1678104400635,
1469     "y": 1442.121882557869,
1470     "z": "4842829a.c92f5c",
1471     "wires": [
1472       [
1473         "e332cfdd.3a325"
1474       ]
1475     ]
1476   },
1477   {
1478     "id": "e332cfdd.3a325",
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": 2620.1679973602295,
1484     "y": 1439.7217980623245,
1485     "z": "4842829a.c92f5c",
1486     "wires": []
1487   },
1488   {
1489     "id": "95926f9f.7a56d",
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": 2318.8340015411377,
1496     "y": 1485.4549852609634,
1497     "z": "4842829a.c92f5c",
1498     "wires": [
1499       [
1500         "915a39b2.608e28"
1501       ]
1502     ]
1503   },
1504   {
1505     "id": "915a39b2.608e28",
1506     "type": "outcomeTrue",
1507     "name": "true",
1508     "xml": "<outcome value='true'>\n",
1509     "comments": "",
1510     "outputs": 1,
1511     "x": 2458.8339443206787,
1512     "y": 1485.4548016786575,
1513     "z": "4842829a.c92f5c",
1514     "wires": [
1515       [
1516         "56e124a4.ba815c"
1517       ]
1518     ]
1519   },
1520   {
1521     "id": "56e124a4.ba815c",
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": 2606.833948135376,
1527     "y": 1485.0548692941666,
1528     "z": "4842829a.c92f5c",
1529     "wires": []
1530   },
1531   {
1532     "id": "537ad820.346958",
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/overlay-network/vpn'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.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": 664.0019989013672,
1539     "y": 1151.122742652893,
1540     "z": "4842829a.c92f5c",
1541     "wires": [
1542       [
1543         "3ba3cba0.b1b5b4",
1544         "14233b12.99c415"
1545       ]
1546     ]
1547   },
1548   {
1549     "id": "14233b12.99c415",
1550     "type": "success",
1551     "name": "success",
1552     "xml": "<outcome value='success'>\n",
1553     "comments": "",
1554     "outputs": 1,
1555     "x": 884.0019016265869,
1556     "y": 1147.1227074861526,
1557     "z": "4842829a.c92f5c",
1558     "wires": [
1559       [
1560         "e9e1022d.54d97"
1561       ]
1562     ]
1563   },
1564   {
1565     "id": "e9e1022d.54d97",
1566     "type": "block",
1567     "name": "block : atomic",
1568     "xml": "<block atomic=\"true\">",
1569     "atomic": "true",
1570     "comments": "",
1571     "outputs": 1,
1572     "x": 1054.0018405914307,
1573     "y": 1150.1227074861526,
1574     "z": "4842829a.c92f5c",
1575     "wires": [
1576       []
1577     ]
1578   },
1579   {
1580     "id": "12277977.d003a7",
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": 1054.0019626617432,
1586     "y": 1106.1227074861526,
1587     "z": "4842829a.c92f5c",
1588     "wires": []
1589   },
1590   {
1591     "id": "3ba3cba0.b1b5b4",
1592     "type": "failure",
1593     "name": "failure",
1594     "xml": "<outcome value='failure'>\n",
1595     "comments": "",
1596     "outputs": 1,
1597     "x": 887.0018405914307,
1598     "y": 1106.1227074861526,
1599     "z": "4842829a.c92f5c",
1600     "wires": [
1601       [
1602         "12277977.d003a7"
1603       ]
1604     ]
1605   },
1606   {
1607     "id": "4ac994c1.39bcbc",
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": 2464.0007343292236,
1613     "y": 1074.121461391449,
1614     "z": "4842829a.c92f5c",
1615     "wires": []
1616   },
1617   {
1618     "id": "24b71c25.bdf914",
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": 2143.5004901885986,
1625     "y": 1079.121461391449,
1626     "z": "4842829a.c92f5c",
1627     "wires": [
1628       [
1629         "4b8a8916.d5df08"
1630       ]
1631     ]
1632   },
1633   {
1634     "id": "4b8a8916.d5df08",
1635     "type": "outcomeTrue",
1636     "name": "true",
1637     "xml": "<outcome value='true'>\n",
1638     "comments": "",
1639     "outputs": 1,
1640     "x": 2320.5007343292236,
1641     "y": 1076.121461391449,
1642     "z": "4842829a.c92f5c",
1643     "wires": [
1644       [
1645         "4ac994c1.39bcbc"
1646       ]
1647     ]
1648   },
1649   {
1650     "id": "35fb02d9.bc983e",
1651     "type": "block",
1652     "name": "block atomic",
1653     "xml": "<block atomic=\"true\">\n",
1654     "atomic": "false",
1655     "comments": "",
1656     "outputs": 1,
1657     "x": 1233.0308837890625,
1658     "y": 897.3190293312073,
1659     "z": "4842829a.c92f5c",
1660     "wires": [
1661       [
1662         "5177b2ec.7304dc",
1663         "72795760.cf2f58",
1664         "48fba41e.5e07cc"
1665       ]
1666     ]
1667   },
1668   {
1669     "id": "19eae0e7.50657f",
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": 826.18505859375,
1676     "y": 906.0944199562073,
1677     "z": "4842829a.c92f5c",
1678     "wires": [
1679       [
1680         "35fb02d9.bc983e"
1681       ]
1682     ]
1683   },
1684   {
1685     "id": "72795760.cf2f58",
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": 1482.0002059936523,
1692     "y": 895.6668076515198,
1693     "z": "4842829a.c92f5c",
1694     "wires": [
1695       []
1696     ]
1697   },
1698   {
1699     "id": "48fba41e.5e07cc",
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": 1631,
1706     "y": 934.333372592926,
1707     "z": "4842829a.c92f5c",
1708     "wires": [
1709       [
1710         "e77eab64.b80238",
1711         "a4de5ab0.2e8518"
1712       ]
1713     ]
1714   },
1715   {
1716     "id": "13a1cc8b.f27593",
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": 1661.3334655761719,
1723     "y": 1143.0003348588943,
1724     "z": "4842829a.c92f5c",
1725     "wires": [
1726       []
1727     ]
1728   },
1729   {
1730     "id": "8c1064b8.0837a8",
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": 1680.3334350585938,
1737     "y": 1177.0004206895828,
1738     "z": "4842829a.c92f5c",
1739     "wires": [
1740       [
1741         "224b80f9.f7e8e",
1742         "8f7eca2d.7a5ac8"
1743       ]
1744     ]
1745   },
1746   {
1747     "id": "ab4a3566.1d4448",
1748     "type": "block",
1749     "name": "block atomic",
1750     "xml": "<block atomic=\"true\">\n",
1751     "atomic": "false",
1752     "comments": "",
1753     "outputs": 1,
1754     "x": 1940.0311298370361,
1755     "y": 1053.531129360199,
1756     "z": "4842829a.c92f5c",
1757     "wires": [
1758       [
1759         "9e31b20.ec7145",
1760         "24b71c25.bdf914"
1761       ]
1762     ]
1763   },
1764   {
1765     "id": "4ad4efb2.b5354",
1766     "type": "block",
1767     "name": "block atomic",
1768     "xml": "<block atomic=\"true\">\n",
1769     "atomic": "false",
1770     "comments": "",
1771     "outputs": 1,
1772     "x": 1466.0316848754883,
1773     "y": 1500.5313200950623,
1774     "z": "4842829a.c92f5c",
1775     "wires": [
1776       [
1777         "f89715ac.25dc68",
1778         "6e129b4e.95cc44",
1779         "5de3f774.9f5298",
1780         "153d05d.db3defa"
1781       ]
1782     ]
1783   },
1784   {
1785     "id": "19a68b02.3eedc5",
1786     "type": "block",
1787     "name": "block atomic",
1788     "xml": "<block atomic=\"true\">\n",
1789     "atomic": "false",
1790     "comments": "",
1791     "outputs": 1,
1792     "x": 1576.6673126220703,
1793     "y": 1367.6670924425125,
1794     "z": "4842829a.c92f5c",
1795     "wires": [
1796       [
1797         "532b87f6.cba248"
1798       ]
1799     ]
1800   },
1801   {
1802     "id": "f041a5c4.8e5ff8",
1803     "type": "block",
1804     "name": "block atmoic",
1805     "xml": "<block atomic=\"true\">\n",
1806     "atomic": "false",
1807     "comments": "",
1808     "outputs": 1,
1809     "x": 1802.0023765563965,
1810     "y": 1904.6676589250565,
1811     "z": "4842829a.c92f5c",
1812     "wires": [
1813       [
1814         "3ce210b6.91582"
1815       ]
1816     ]
1817   },
1818   {
1819     "id": "c531c63.7b95a38",
1820     "type": "block",
1821     "name": "block atomic",
1822     "xml": "<block atomic=\"true\">\n",
1823     "atomic": "false",
1824     "comments": "",
1825     "outputs": 1,
1826     "x": 2163.031629562378,
1827     "y": 1460.531430363655,
1828     "z": "4842829a.c92f5c",
1829     "wires": [
1830       [
1831         "bd704489.7274d8",
1832         "95926f9f.7a56d"
1833       ]
1834     ]
1835   },
1836   {
1837     "id": "61033198.2b1b8",
1838     "type": "set",
1839     "name": "set prop.attach.siteId",
1840     "xml": "<set>\n<parameter name='prop.attach.siteId' value='`$mdsal-sd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].value`' />\n\n",
1841     "comments": "",
1842     "x": 2054.668918609619,
1843     "y": 1978.333869099617,
1844     "z": "4842829a.c92f5c",
1845     "wires": []
1846   },
1847   {
1848     "id": "24aa0f5e.31356",
1849     "type": "block",
1850     "name": "block atomic",
1851     "xml": "<block atomic=\"true\">\n",
1852     "atomic": "false",
1853     "comments": "",
1854     "outputs": 1,
1855     "x": 2234.259433746338,
1856     "y": 1759.0044165849686,
1857     "z": "4842829a.c92f5c",
1858     "wires": [
1859       [
1860         "e2678b6.a3e2078",
1861         "322f0f47.8e765"
1862       ]
1863     ]
1864   },
1865   {
1866     "id": "b1ee9c99.2aacf",
1867     "type": "block",
1868     "name": "block atomic",
1869     "xml": "<block atomic=\"true\">\n",
1870     "atomic": "false",
1871     "comments": "",
1872     "outputs": 1,
1873     "x": 1857.759853363037,
1874     "y": 2004.7543412446976,
1875     "z": "4842829a.c92f5c",
1876     "wires": [
1877       [
1878         "61033198.2b1b8",
1879         "cbb60b59.d98d48",
1880         "96db890b.9cff38"
1881       ]
1882     ]
1883   },
1884   {
1885     "id": "4041fa5f.8f6984",
1886     "type": "call",
1887     "name": "call sdwan-wanport-vnf-topology-operation-underlay",
1888     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-wanport-vnf-topology-operation-underlay' mode='sync' >\n",
1889     "comments": "",
1890     "outputs": 1,
1891     "x": 713.757890701294,
1892     "y": 1359.2539811134338,
1893     "z": "4842829a.c92f5c",
1894     "wires": [
1895       []
1896     ]
1897   },
1898   {
1899     "id": "1587faed.a593f5",
1900     "type": "comment",
1901     "name": "underlay",
1902     "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",
1903     "comments": "",
1904     "x": 621.7268695831299,
1905     "y": 1324.2229199409485,
1906     "z": "4842829a.c92f5c",
1907     "wires": []
1908   },
1909   {
1910     "id": "585348e6.e28c68",
1911     "type": "set",
1912     "name": "set prop.siteAttachement_length=0",
1913     "xml": "<set>\n<parameter name='prop.siteAttachements_length' value='0' />\n<parameter name='prop.siteIds_length' value='0' />\n\n\n\n",
1914     "comments": "",
1915     "x": 663.0038757324219,
1916     "y": 871.5311719179153,
1917     "z": "4842829a.c92f5c",
1918     "wires": []
1919   },
1920   {
1921     "id": "6e129b4e.95cc44",
1922     "type": "set",
1923     "name": "set prop.ar-service-instance-id",
1924     "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",
1925     "comments": "",
1926     "x": 1826.0043029785156,
1927     "y": 1498.5312304496765,
1928     "z": "4842829a.c92f5c",
1929     "wires": []
1930   },
1931   {
1932     "id": "5de3f774.9f5298",
1933     "type": "execute",
1934     "name": "generate prop.ar-service-instance-id",
1935     "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",
1936     "comments": "",
1937     "outputs": 1,
1938     "x": 1836.3365745544434,
1939     "y": 1539.409375667572,
1940     "z": "4842829a.c92f5c",
1941     "wires": [
1942       []
1943     ]
1944   },
1945   {
1946     "id": "153d05d.db3defa",
1947     "type": "execute",
1948     "name": "execute RestApiCallNode - get service data",
1949     "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",
1950     "comments": "",
1951     "outputs": 1,
1952     "x": 1865.3366394042969,
1953     "y": 1580.409375667572,
1954     "z": "4842829a.c92f5c",
1955     "wires": [
1956       [
1957         "9f007bfc.0c1338",
1958         "c288c029.05ff1"
1959       ]
1960     ]
1961   },
1962   {
1963     "id": "9f007bfc.0c1338",
1964     "type": "other",
1965     "name": "other",
1966     "xml": "<outcome value='Other'>\n",
1967     "comments": "",
1968     "outputs": 1,
1969     "x": 2121.8563232421875,
1970     "y": 1589.597209095955,
1971     "z": "4842829a.c92f5c",
1972     "wires": [
1973       [
1974         "690363c.d28ea9c"
1975       ]
1976     ]
1977   },
1978   {
1979     "id": "c288c029.05ff1",
1980     "type": "success",
1981     "name": "success",
1982     "xml": "<outcome value='success'>\n",
1983     "comments": "",
1984     "outputs": 1,
1985     "x": 2124.003993988037,
1986     "y": 1628.5310813188553,
1987     "z": "4842829a.c92f5c",
1988     "wires": [
1989       [
1990         "d23e72e1.4c912"
1991       ]
1992     ]
1993   },
1994   {
1995     "id": "690363c.d28ea9c",
1996     "type": "block",
1997     "name": "block",
1998     "xml": "<block>\n",
1999     "atomic": "false",
2000     "comments": "",
2001     "outputs": 1,
2002     "x": 2251.5045166015625,
2003     "y": 1583.0311690568924,
2004     "z": "4842829a.c92f5c",
2005     "wires": [
2006       []
2007     ]
2008   },
2009   {
2010     "id": "d23e72e1.4c912",
2011     "type": "block",
2012     "name": "block atomic",
2013     "xml": "<block atomic=\"true\">\n",
2014     "atomic": "false",
2015     "comments": "",
2016     "outputs": 1,
2017     "x": 1600.0037841796875,
2018     "y": 1679.531129002571,
2019     "z": "4842829a.c92f5c",
2020     "wires": [
2021       [
2022         "a9f31ecc.485fc"
2023       ]
2024     ]
2025   },
2026   {
2027     "id": "54f08af3.c933d4",
2028     "type": "comment",
2029     "name": "TODO send Email",
2030     "info": "",
2031     "comments": "",
2032     "x": 963.0038928985596,
2033     "y": 1404.0313096046448,
2034     "z": "4842829a.c92f5c",
2035     "wires": []
2036   },
2037   {
2038     "id": "96db890b.9cff38",
2039     "type": "set",
2040     "name": "Add site attachement to list and update length",
2041     "xml": "<set>\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].siteId' value='`$prop.attach.siteId`' />\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles[0]' value='`$prop.role`' />\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles_length' value='1' />\n<parameter name='prop.siteAttachements_length' value='`$prop.siteAttachements_length + 1`' />\n\n\n\n\n\n\n\n\n\n\n\n\n",
2042     "comments": "",
2043     "x": 2137.253952026367,
2044     "y": 2091.7539863586426,
2045     "z": "4842829a.c92f5c",
2046     "wires": []
2047   }
2048 ]