bee8da8bee694412cfa6b2daeb87e7d0eb153b6a
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-activate.json
1 [
2   {
3     "id": "4eb3c760.0f4e78",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 91,
8     "y": 47,
9     "z": "5b3e3707.3aa6c8",
10     "wires": [
11       [
12         "6dada1.f2c9326"
13       ]
14     ]
15   },
16   {
17     "id": "6dada1.f2c9326",
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": 282.0000057220459,
26     "y": 117.00001811981201,
27     "z": "5b3e3707.3aa6c8",
28     "wires": [
29       [
30         "280e7b0d.e2eef4"
31       ]
32     ]
33   },
34   {
35     "id": "280e7b0d.e2eef4",
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": 270.00012397766113,
42     "y": 205.00000095367432,
43     "z": "5b3e3707.3aa6c8",
44     "wires": [
45       [
46         "3b8ff9db.6736b6"
47       ]
48     ]
49   },
50   {
51     "id": "3b8ff9db.6736b6",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 172.00013732910156,
59     "y": 891.0002890825272,
60     "z": "5b3e3707.3aa6c8",
61     "wires": [
62       [
63         "91ee02fa.b186a",
64         "ba42cb5a.846d08",
65         "b40f6fde.18743",
66         "8171db6d.f63858",
67         "e6936fb4.46122",
68         "a02dc728.884b28",
69         "210482d7.10d8ee",
70         "b09356ce.de3e78",
71         "b70e72ac.ac27d",
72         "720d11d0.f67bc",
73         "671de4e7.c5daec",
74         "22826455.9296ec",
75         "f959c075.1e7e6",
76         "69260ab2.333c94",
77         "1ebdd52f.25cc2b",
78         "5f71dd6c.97cd84",
79         "69e18ab9.627484",
80         "bcfeb911.f55008",
81         "19a39c5d.bf96f4",
82         "c4f38bc0.54d238",
83         "6a97289d.80a568",
84         "f3ac87c7.5588f8",
85         "c88d609e.257e3",
86         "86fafd91.f4f2f",
87         "df3f5d3a.29e2c",
88         "55f46b97.799ce4"
89       ]
90     ]
91   },
92   {
93     "id": "91ee02fa.b186a",
94     "type": "set",
95     "name": "set tmp.ar.allotted-resource-id,etc",
96     "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",
97     "comments": "",
98     "x": 682.9935626983643,
99     "y": 158.99348783493042,
100     "z": "5b3e3707.3aa6c8",
101     "wires": []
102   },
103   {
104     "id": "fc6cccab.f6373",
105     "type": "comment",
106     "name": "set tmp ar-id to fetch resource from MDSAL",
107     "info": "",
108     "comments": "",
109     "x": 711.9538745880127,
110     "y": 123.02528381347656,
111     "z": "5b3e3707.3aa6c8",
112     "wires": []
113   },
114   {
115     "id": "ba42cb5a.846d08",
116     "type": "set",
117     "name": "set tmp.ar.self-link",
118     "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",
119     "comments": "",
120     "x": 636.993501663208,
121     "y": 251.99349308013916,
122     "z": "5b3e3707.3aa6c8",
123     "wires": []
124   },
125   {
126     "id": "8171db6d.f63858",
127     "type": "execute",
128     "name": "execute Properties",
129     "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",
130     "comments": "",
131     "outputs": 1,
132     "x": 643.255392074585,
133     "y": 339.66022205352783,
134     "z": "5b3e3707.3aa6c8",
135     "wires": [
136       []
137     ]
138   },
139   {
140     "id": "b40f6fde.18743",
141     "type": "execute",
142     "name": "generate allotted-resource tmp.ar-url",
143     "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",
144     "comments": "",
145     "outputs": 1,
146     "x": 690.255449295044,
147     "y": 427.6602258682251,
148     "z": "5b3e3707.3aa6c8",
149     "wires": [
150       []
151     ]
152   },
153   {
154     "id": "8f7c2f3a.39068",
155     "type": "comment",
156     "name": "GET connection-attachment-allotted-resource from mdsal",
157     "info": "",
158     "comments": "",
159     "x": 744.8084106445312,
160     "y": 496.53865146636963,
161     "z": "5b3e3707.3aa6c8",
162     "wires": []
163   },
164   {
165     "id": "6a9edb15.0372c4",
166     "type": "comment",
167     "name": "Used for setting output to API Handler",
168     "info": "",
169     "comments": "",
170     "x": 690.9935321807861,
171     "y": 218.99350261688232,
172     "z": "5b3e3707.3aa6c8",
173     "wires": []
174   },
175   {
176     "id": "5d0ffaf8.eea164",
177     "type": "comment",
178     "name": "Obtain different URL, template location etc",
179     "info": "For saving resource information to MDSAL & for AAI",
180     "comments": "",
181     "x": 708.9934978485107,
182     "y": 304.8823833465576,
183     "z": "5b3e3707.3aa6c8",
184     "wires": []
185   },
186   {
187     "id": "4c6a252e.949a4c",
188     "type": "comment",
189     "name": "Used to Get AR by id to MDSAL, same as self-link",
190     "info": "",
191     "comments": "",
192     "x": 734.9935169219971,
193     "y": 391.882342338562,
194     "z": "5b3e3707.3aa6c8",
195     "wires": []
196   },
197   {
198     "id": "1df58ece.22a6f1",
199     "type": "success",
200     "name": "success",
201     "xml": "<outcome value='success'>\n",
202     "comments": "",
203     "outputs": 1,
204     "x": 1198.6668224334717,
205     "y": 509.99997901916504,
206     "z": "5b3e3707.3aa6c8",
207     "wires": [
208       [
209         "beb58fcf.0e694"
210       ]
211     ]
212   },
213   {
214     "id": "beb58fcf.0e694",
215     "type": "block",
216     "name": "block: atomic",
217     "xml": "<block atomic=\"true\">\n",
218     "atomic": "false",
219     "comments": "",
220     "outputs": 1,
221     "x": 1342.6669006347656,
222     "y": 467.4998970031738,
223     "z": "5b3e3707.3aa6c8",
224     "wires": [
225       [
226         "b372be99.b158c"
227       ]
228     ]
229   },
230   {
231     "id": "b372be99.b158c",
232     "type": "switchNode",
233     "name": "switch cr length",
234     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
235     "comments": "",
236     "outputs": 1,
237     "x": 1511.5243244171143,
238     "y": 465.11906814575195,
239     "z": "5b3e3707.3aa6c8",
240     "wires": [
241       [
242         "553cf33f.abe66c",
243         "efe7a59a.897c58"
244       ]
245     ]
246   },
247   {
248     "id": "553cf33f.abe66c",
249     "type": "other",
250     "name": "outcome 1",
251     "xml": "<outcome value='1'>\n",
252     "comments": "",
253     "outputs": 1,
254     "x": 1666.8574600219727,
255     "y": 437.1189832687378,
256     "z": "5b3e3707.3aa6c8",
257     "wires": [
258       [
259         "bb79446e.fd2a98"
260       ]
261     ]
262   },
263   {
264     "id": "bb79446e.fd2a98",
265     "type": "block",
266     "name": "block: atomic",
267     "xml": "<block atomic='true'>\n",
268     "atomic": "false",
269     "comments": "",
270     "outputs": 1,
271     "x": 1825.3812637329102,
272     "y": 435.02383041381836,
273     "z": "5b3e3707.3aa6c8",
274     "wires": [
275       [
276         "c3367ce.c8b6f8",
277         "6e235bab.f44c74",
278         "fca0cf3f.e6c1c"
279       ]
280     ]
281   },
282   {
283     "id": "cad70d2f.866d6",
284     "type": "returnFailure",
285     "name": "return failure",
286     "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",
287     "comments": "",
288     "x": 1765.5191955566406,
289     "y": 542.0660648345947,
290     "z": "5b3e3707.3aa6c8",
291     "wires": []
292   },
293   {
294     "id": "60f581d.8121d8",
295     "type": "other",
296     "name": "other",
297     "xml": "<outcome value='Other'>\n",
298     "comments": "",
299     "outputs": 1,
300     "x": 1190.5186252593994,
301     "y": 545.0660638809204,
302     "z": "5b3e3707.3aa6c8",
303     "wires": [
304       [
305         "4541101a.4fcaa"
306       ]
307     ]
308   },
309   {
310     "id": "4541101a.4fcaa",
311     "type": "block",
312     "name": "block: atomic",
313     "xml": "<block atomic=\"true\">\n",
314     "atomic": "false",
315     "comments": "",
316     "outputs": 1,
317     "x": 1370.518575668335,
318     "y": 545.7326145172119,
319     "z": "5b3e3707.3aa6c8",
320     "wires": [
321       [
322         "cad70d2f.866d6"
323       ]
324     ]
325   },
326   {
327     "id": "efe7a59a.897c58",
328     "type": "other",
329     "name": "other",
330     "xml": "<outcome value='Other'>\n",
331     "comments": "",
332     "outputs": 1,
333     "x": 1658.1854629516602,
334     "y": 496.39935779571533,
335     "z": "5b3e3707.3aa6c8",
336     "wires": [
337       [
338         "cad70d2f.866d6"
339       ]
340     ]
341   },
342   {
343     "id": "c3367ce.c8b6f8",
344     "type": "set",
345     "name": "set connection-attachment-ar from get",
346     "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
347     "comments": "",
348     "x": 2072.4447174072266,
349     "y": 408.00008249282837,
350     "z": "5b3e3707.3aa6c8",
351     "wires": []
352   },
353   {
354     "id": "6e235bab.f44c74",
355     "type": "set",
356     "name": "set oper-status",
357     "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",
358     "comments": "",
359     "x": 2021.4449863433838,
360     "y": 510.4286185503006,
361     "z": "5b3e3707.3aa6c8",
362     "wires": []
363   },
364   {
365     "id": "fca0cf3f.e6c1c",
366     "type": "switchNode",
367     "name": "switch order-status",
368     "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
369     "comments": "",
370     "outputs": 1,
371     "x": 2023.444803237915,
372     "y": 450.0000435113907,
373     "z": "5b3e3707.3aa6c8",
374     "wires": [
375       [
376         "3fdfd73c.bfa0f8",
377         "a02243dc.27d9"
378       ]
379     ]
380   },
381   {
382     "id": "a02243dc.27d9",
383     "type": "outcome",
384     "name": "outcome Created",
385     "xml": "<outcome value='Created'>\n",
386     "comments": "",
387     "outputs": 1,
388     "x": 2251.0451526641846,
389     "y": 441.00010073184967,
390     "z": "5b3e3707.3aa6c8",
391     "wires": [
392       [
393         "efd48355.63c2"
394       ]
395     ]
396   },
397   {
398     "id": "3fdfd73c.bfa0f8",
399     "type": "outcome",
400     "name": "outcome Other",
401     "xml": "<outcome value='Other'>\n",
402     "comments": "",
403     "outputs": 1,
404     "x": 2245.759048461914,
405     "y": 480.42865800857544,
406     "z": "5b3e3707.3aa6c8",
407     "wires": [
408       [
409         "e7841384.7d2f"
410       ]
411     ]
412   },
413   {
414     "id": "efd48355.63c2",
415     "type": "block",
416     "name": "block",
417     "xml": "<block>\n",
418     "atomic": "false",
419     "comments": "",
420     "outputs": 1,
421     "x": 2410.515281677246,
422     "y": 441.37570571899414,
423     "z": "5b3e3707.3aa6c8",
424     "wires": [
425       []
426     ]
427   },
428   {
429     "id": "e7841384.7d2f",
430     "type": "returnFailure",
431     "name": "return failure",
432     "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",
433     "comments": "",
434     "x": 2421.666862487793,
435     "y": 479.000057220459,
436     "z": "5b3e3707.3aa6c8",
437     "wires": []
438   },
439   {
440     "id": "28e25554.5dcffa",
441     "type": "call",
442     "name": "call GENERIC-RESOURCE-API:sdwan-get-saved-ar-param",
443     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-saved-ar-param' mode='sync' >\n",
444     "comments": "",
445     "outputs": 1,
446     "x": 915.3030433654785,
447     "y": 616.4936294555664,
448     "z": "5b3e3707.3aa6c8",
449     "wires": [
450       []
451     ]
452   },
453   {
454     "id": "e6936fb4.46122",
455     "type": "block",
456     "name": "block: atomic",
457     "xml": "<block atomic=\"true\">\n",
458     "atomic": "false",
459     "comments": "",
460     "outputs": 1,
461     "x": 609.3091430664062,
462     "y": 617.5,
463     "z": "5b3e3707.3aa6c8",
464     "wires": [
465       [
466         "28e25554.5dcffa"
467       ]
468     ]
469   },
470   {
471     "id": "912e86c8.6df528",
472     "type": "comment",
473     "name": "GET parent-service-data from mdsal to check existence of other End point",
474     "info": "",
475     "comments": "",
476     "x": 787.00048828125,
477     "y": 688.53173828125,
478     "z": "5b3e3707.3aa6c8",
479     "wires": []
480   },
481   {
482     "id": "bb953da4.20a6",
483     "type": "comment",
484     "name": "GET connection-attachment-ar to store AR data from mdsal",
485     "info": "",
486     "comments": "",
487     "x": 2134.4727783203125,
488     "y": 368.5039367675781,
489     "z": "5b3e3707.3aa6c8",
490     "wires": []
491   },
492   {
493     "id": "a02dc728.884b28",
494     "type": "set",
495     "name": "set tmp.ar.parent-service-instance-id",
496     "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",
497     "comments": "",
498     "x": 672.9688110351562,
499     "y": 718.0001220703125,
500     "z": "5b3e3707.3aa6c8",
501     "wires": []
502   },
503   {
504     "id": "237a4084.caa97",
505     "type": "success",
506     "name": "success",
507     "xml": "<outcome value='success'>\n",
508     "comments": "",
509     "outputs": 1,
510     "x": 1032.968978881836,
511     "y": 775.0000915527344,
512     "z": "5b3e3707.3aa6c8",
513     "wires": [
514       [
515         "cb935d16.398af"
516       ]
517     ]
518   },
519   {
520     "id": "b92e648c.4237d8",
521     "type": "other",
522     "name": "other",
523     "xml": "<outcome value='Other'>\n",
524     "comments": "",
525     "outputs": 1,
526     "x": 1024.8207817077637,
527     "y": 810.0661764144897,
528     "z": "5b3e3707.3aa6c8",
529     "wires": [
530       [
531         "3472a1b6.dd0c3e"
532       ]
533     ]
534   },
535   {
536     "id": "3472a1b6.dd0c3e",
537     "type": "returnFailure",
538     "name": "return failure",
539     "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",
540     "comments": "",
541     "x": 1170.9695625305176,
542     "y": 809.3335876464844,
543     "z": "5b3e3707.3aa6c8",
544     "wires": []
545   },
546   {
547     "id": "cb935d16.398af",
548     "type": "block",
549     "name": "block",
550     "xml": "<block>\n",
551     "atomic": "false",
552     "comments": "",
553     "outputs": 1,
554     "x": 1163.9690742492676,
555     "y": 775.0001525878906,
556     "z": "5b3e3707.3aa6c8",
557     "wires": [
558       []
559     ]
560   },
561   {
562     "id": "a9379012.e6c67",
563     "type": "failure",
564     "name": "failure",
565     "xml": "<outcome value='failure'>\n",
566     "comments": "",
567     "outputs": 1,
568     "x": 846.7313137054443,
569     "y": 2135.9540371894836,
570     "z": "5b3e3707.3aa6c8",
571     "wires": [
572       [
573         "be6d4648.608728"
574       ]
575     ]
576   },
577   {
578     "id": "be6d4648.608728",
579     "type": "returnFailure",
580     "name": "return failure",
581     "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",
582     "comments": "",
583     "x": 1013.2551345825195,
584     "y": 2162.5730443000793,
585     "z": "5b3e3707.3aa6c8",
586     "wires": []
587   },
588   {
589     "id": "c2820f2f.b28f6",
590     "type": "failure",
591     "name": "not-found",
592     "xml": "<outcome value='not-found'>\n",
593     "comments": "",
594     "outputs": 1,
595     "x": 848.8265419006348,
596     "y": 2183.715879917145,
597     "z": "5b3e3707.3aa6c8",
598     "wires": [
599       [
600         "be6d4648.608728"
601       ]
602     ]
603   },
604   {
605     "id": "4982ee04.1cd2f",
606     "type": "comment",
607     "name": "Save Resource to AAI",
608     "info": "",
609     "comments": "",
610     "x": 620.7789573669434,
611     "y": 2124.3032002449036,
612     "z": "5b3e3707.3aa6c8",
613     "wires": []
614   },
615   {
616     "id": "1ebdd52f.25cc2b",
617     "type": "set",
618     "name": "set output to api handler",
619     "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",
620     "comments": "",
621     "x": 635.5466537475586,
622     "y": 2045.8286814689636,
623     "z": "5b3e3707.3aa6c8",
624     "wires": []
625   },
626   {
627     "id": "5f71dd6c.97cd84",
628     "type": "returnSuccess",
629     "name": "return success",
630     "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",
631     "comments": "",
632     "x": 595.9598255157471,
633     "y": 2231.4444699287415,
634     "z": "5b3e3707.3aa6c8",
635     "wires": []
636   },
637   {
638     "id": "69260ab2.333c94",
639     "type": "execute",
640     "name": "execute RestApiCallNode - PUT AR by id",
641     "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",
642     "comments": "",
643     "outputs": 1,
644     "x": 688.278736114502,
645     "y": 1970.4695343971252,
646     "z": "5b3e3707.3aa6c8",
647     "wires": [
648       [
649         "61914fb2.5848f",
650         "913cab50.d379e8",
651         "247de1a.a91111e"
652       ]
653     ]
654   },
655   {
656     "id": "61914fb2.5848f",
657     "type": "not-found",
658     "name": "not-found",
659     "xml": "<outcome value='not-found'>\n",
660     "comments": "",
661     "outputs": 1,
662     "x": 942.9201583862305,
663     "y": 2014.8009285926819,
664     "z": "5b3e3707.3aa6c8",
665     "wires": [
666       [
667         "63853616.80d768"
668       ]
669     ]
670   },
671   {
672     "id": "913cab50.d379e8",
673     "type": "failure",
674     "name": "failure",
675     "xml": "<outcome value='failure'>\n",
676     "comments": "",
677     "outputs": 1,
678     "x": 944.9201812744141,
679     "y": 1973.3008927330375,
680     "z": "5b3e3707.3aa6c8",
681     "wires": [
682       [
683         "63853616.80d768"
684       ]
685     ]
686   },
687   {
688     "id": "247de1a.a91111e",
689     "type": "success",
690     "name": "success",
691     "xml": "<outcome value='success'>\n",
692     "comments": "",
693     "outputs": 1,
694     "x": 948.6702651977539,
695     "y": 1924.6580452919006,
696     "z": "5b3e3707.3aa6c8",
697     "wires": [
698       [
699         "e8b97cec.a52d7"
700       ]
701     ]
702   },
703   {
704     "id": "63853616.80d768",
705     "type": "returnFailure",
706     "name": "return failure",
707     "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",
708     "comments": "",
709     "x": 1103.6702842712402,
710     "y": 1993.05095911026,
711     "z": "5b3e3707.3aa6c8",
712     "wires": []
713   },
714   {
715     "id": "e8b97cec.a52d7",
716     "type": "block",
717     "name": "block",
718     "xml": "<block>\n",
719     "atomic": "false",
720     "comments": "",
721     "outputs": 1,
722     "x": 1076.3262100219727,
723     "y": 1926.8502135276794,
724     "z": "5b3e3707.3aa6c8",
725     "wires": [
726       []
727     ]
728   },
729   {
730     "id": "720d11d0.f67bc",
731     "type": "set",
732     "name": "set ar-data",
733     "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",
734     "comments": "",
735     "x": 590.4923515319824,
736     "y": 1804.8504354953766,
737     "z": "5b3e3707.3aa6c8",
738     "wires": []
739   },
740   {
741     "id": "22826455.9296ec",
742     "type": "execute",
743     "name": "execute getTime",
744     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
745     "comments": "",
746     "outputs": 1,
747     "x": 607.7781944274902,
748     "y": 1877.4700331687927,
749     "z": "5b3e3707.3aa6c8",
750     "wires": [
751       []
752     ]
753   },
754   {
755     "id": "f959c075.1e7e6",
756     "type": "set",
757     "name": "set allotted-resource-oper-status",
758     "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",
759     "comments": "",
760     "x": 657.7652740478516,
761     "y": 1914.4211134910583,
762     "z": "5b3e3707.3aa6c8",
763     "wires": []
764   },
765   {
766     "id": "671de4e7.c5daec",
767     "type": "set",
768     "name": "set model-data",
769     "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.` \" />",
770     "comments": "",
771     "x": 604.3338928222656,
772     "y": 1844.025085926056,
773     "z": "5b3e3707.3aa6c8",
774     "wires": []
775   },
776   {
777     "id": "33b4dd9d.575162",
778     "type": "comment",
779     "name": "Prepare data for allotted-resource addition to MDSAL",
780     "info": "This will add to allotted-resource which is present inside service.",
781     "comments": "",
782     "x": 715.6673889160156,
783     "y": 1766.0250434875488,
784     "z": "5b3e3707.3aa6c8",
785     "wires": []
786   },
787   {
788     "id": "ad8abb41.f27f98",
789     "type": "comment",
790     "name": "Add to allotted-resources in mdsal",
791     "info": "",
792     "comments": "",
793     "x": 659.2471809387207,
794     "y": 1732.4383397102356,
795     "z": "5b3e3707.3aa6c8",
796     "wires": []
797   },
798   {
799     "id": "c88d609e.257e3",
800     "type": "update",
801     "name": "update AAI allotted-resource",
802     "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",
803     "comments": "",
804     "outputs": 1,
805     "x": 647.2232360839844,
806     "y": 2161.7553429603577,
807     "z": "5b3e3707.3aa6c8",
808     "wires": [
809       [
810         "a9379012.e6c67",
811         "c2820f2f.b28f6"
812       ]
813     ]
814   },
815   {
816     "id": "210482d7.10d8ee",
817     "type": "execute",
818     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
819     "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",
820     "comments": "",
821     "outputs": 1,
822     "x": 819.0039672851562,
823     "y": 528.00390625,
824     "z": "5b3e3707.3aa6c8",
825     "wires": [
826       [
827         "1df58ece.22a6f1",
828         "60f581d.8121d8"
829       ]
830     ]
831   },
832   {
833     "id": "b09356ce.de3e78",
834     "type": "execute",
835     "name": "execute RestApiCallNode - get-resource parent service data",
836     "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",
837     "comments": "",
838     "outputs": 1,
839     "x": 742.0040893554688,
840     "y": 791.0040893554688,
841     "z": "5b3e3707.3aa6c8",
842     "wires": [
843       [
844         "237a4084.caa97",
845         "b92e648c.4237d8"
846       ]
847     ]
848   },
849   {
850     "id": "b70e72ac.ac27d",
851     "type": "execute",
852     "name": "get parent-service-data url",
853     "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",
854     "comments": "",
855     "outputs": 1,
856     "x": 642.0039978027344,
857     "y": 754.0039224624634,
858     "z": "5b3e3707.3aa6c8",
859     "wires": [
860       []
861     ]
862   },
863   {
864     "id": "32321857.9b87a8",
865     "type": "set",
866     "name": "set prop.ar.provided-allotted-resource-id",
867     "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",
868     "comments": "",
869     "x": 1499.9964752197266,
870     "y": 843.1218557357788,
871     "z": "5b3e3707.3aa6c8",
872     "wires": []
873   },
874   {
875     "id": "b156e259.c2b83",
876     "type": "success",
877     "name": "success",
878     "xml": "<outcome value='success'>\n",
879     "comments": "",
880     "outputs": 1,
881     "x": 2005.9970703125,
882     "y": 937.4551391601562,
883     "z": "5b3e3707.3aa6c8",
884     "wires": [
885       [
886         "7bcfda30.e9f8d4"
887       ]
888     ]
889   },
890   {
891     "id": "9ffe3ec9.11aa8",
892     "type": "other",
893     "name": "other",
894     "xml": "<outcome value='Other'>\n",
895     "comments": "",
896     "outputs": 1,
897     "x": 2009.848445892334,
898     "y": 899.52121925354,
899     "z": "5b3e3707.3aa6c8",
900     "wires": [
901       [
902         "66958c0e.e9ae64"
903       ]
904     ]
905   },
906   {
907     "id": "edc31606.488c38",
908     "type": "for",
909     "name": "for arvidx.. mdsal-sd.service-data.vnfs.vnf_length[]",
910     "xml": "<for index='arvidx' start='0' end='`$mdsal-sd.service-data.vnfs.vnf_length`' >\n",
911     "comments": "",
912     "outputs": 1,
913     "x": 1901.9976425170898,
914     "y": 1665.1222692728043,
915     "z": "5b3e3707.3aa6c8",
916     "wires": [
917       [
918         "4a985c04.ef4f84"
919       ]
920     ]
921   },
922   {
923     "id": "4a985c04.ef4f84",
924     "type": "block",
925     "name": "block atmoic",
926     "xml": "<block atomic=\"true\">\n",
927     "atomic": "false",
928     "comments": "",
929     "outputs": 1,
930     "x": 1661.6641387939453,
931     "y": 1737.1224619150162,
932     "z": "5b3e3707.3aa6c8",
933     "wires": [
934       [
935         "f49161ce.7951e"
936       ]
937     ]
938   },
939   {
940     "id": "f49161ce.7951e",
941     "type": "switchNode",
942     "name": "switch ActivateSiteInstance",
943     "xml": "<switch test=\"`$mdsal-sd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n\n    \n    \n\n",
944     "comments": "",
945     "outputs": 1,
946     "x": 1874.5293731689453,
947     "y": 1738.3203302621841,
948     "z": "5b3e3707.3aa6c8",
949     "wires": [
950       [
951         "ba99c3de.16d52"
952       ]
953     ]
954   },
955   {
956     "id": "ba99c3de.16d52",
957     "type": "outcomeTrue",
958     "name": "true",
959     "xml": "<outcome value='true'>\n",
960     "comments": "",
961     "outputs": 1,
962     "x": 2079.52872467041,
963     "y": 1741.3203264474869,
964     "z": "5b3e3707.3aa6c8",
965     "wires": [
966       [
967         "81072e73.36a9b"
968       ]
969     ]
970   },
971   {
972     "id": "fe54ca75.073228",
973     "type": "set",
974     "name": "set tmp.sitevidx ",
975     "xml": "<set>\n<parameter name='tmp.sitevidx' value='`$arvidx`' />\n\n",
976     "comments": "",
977     "x": 2423.528896331787,
978     "y": 1721.3206740617752,
979     "z": "5b3e3707.3aa6c8",
980     "wires": []
981   },
982   {
983     "id": "fca98070.131e",
984     "type": "set",
985     "name": "set prop.ar-parent-service-instance-id",
986     "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",
987     "comments": "",
988     "x": 1650.9970703125,
989     "y": 1084.1221185922623,
990     "z": "5b3e3707.3aa6c8",
991     "wires": []
992   },
993   {
994     "id": "3615b198.912bde",
995     "type": "for",
996     "name": "for loop aridx - Get role from allotted resource",
997     "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",
998     "comments": "",
999     "outputs": 1,
1000     "x": 1677.9965839385986,
1001     "y": 1041.6217069625854,
1002     "z": "5b3e3707.3aa6c8",
1003     "wires": [
1004       [
1005         "ff4ce46e.aa5008"
1006       ]
1007     ]
1008   },
1009   {
1010     "id": "17a801cc.ffa25e",
1011     "type": "switchNode",
1012     "name": "switch Role",
1013     "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",
1014     "comments": "",
1015     "outputs": 1,
1016     "x": 2108.9968280792236,
1017     "y": 1007.621829032898,
1018     "z": "5b3e3707.3aa6c8",
1019     "wires": [
1020       [
1021         "4be35b76.6b2a54"
1022       ]
1023     ]
1024   },
1025   {
1026     "id": "4be35b76.6b2a54",
1027     "type": "outcomeTrue",
1028     "name": "true",
1029     "xml": "<outcome value='true'>\n",
1030     "comments": "",
1031     "outputs": 1,
1032     "x": 2248.9970722198486,
1033     "y": 1005.6219511032104,
1034     "z": "5b3e3707.3aa6c8",
1035     "wires": [
1036       [
1037         "7e234298.9ccc3c"
1038       ]
1039     ]
1040   },
1041   {
1042     "id": "7e234298.9ccc3c",
1043     "type": "set",
1044     "name": "set prop.role",
1045     "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",
1046     "comments": "",
1047     "x": 2392.9978046417236,
1048     "y": 1005.2218046188354,
1049     "z": "5b3e3707.3aa6c8",
1050     "wires": []
1051   },
1052   {
1053     "id": "c26e60ea.9b07b",
1054     "type": "success",
1055     "name": "success",
1056     "xml": "<outcome value='success'>\n",
1057     "comments": "",
1058     "outputs": 1,
1059     "x": 1956.9968872070312,
1060     "y": 1184.1219259500504,
1061     "z": "5b3e3707.3aa6c8",
1062     "wires": [
1063       [
1064         "dcf01c19.ab4ec"
1065       ]
1066     ]
1067   },
1068   {
1069     "id": "21194342.fd75ac",
1070     "type": "other",
1071     "name": "other",
1072     "xml": "<outcome value='Other'>\n",
1073     "comments": "",
1074     "outputs": 1,
1075     "x": 1954.8492164611816,
1076     "y": 1145.18805372715,
1077     "z": "5b3e3707.3aa6c8",
1078     "wires": [
1079       [
1080         "26a61e2a.3b4ee2"
1081       ]
1082     ]
1083   },
1084   {
1085     "id": "66958c0e.e9ae64",
1086     "type": "block",
1087     "name": "block",
1088     "xml": "<block>\n",
1089     "atomic": "false",
1090     "comments": "",
1091     "outputs": 1,
1092     "x": 2135.996570587158,
1093     "y": 896.6216526031494,
1094     "z": "5b3e3707.3aa6c8",
1095     "wires": [
1096       []
1097     ]
1098   },
1099   {
1100     "id": "7bcfda30.e9f8d4",
1101     "type": "block",
1102     "name": "block atomic",
1103     "xml": "<block atomic=\"true\">\n",
1104     "atomic": "false",
1105     "comments": "",
1106     "outputs": 1,
1107     "x": 1301.496524810791,
1108     "y": 1076.6217823028564,
1109     "z": "5b3e3707.3aa6c8",
1110     "wires": [
1111       [
1112         "3615b198.912bde",
1113         "fca98070.131e",
1114         "d8ea80f8.53dca",
1115         "f11b05ac.5891b8"
1116       ]
1117     ]
1118   },
1119   {
1120     "id": "26a61e2a.3b4ee2",
1121     "type": "block",
1122     "name": "block",
1123     "xml": "<block>\n",
1124     "atomic": "false",
1125     "comments": "",
1126     "outputs": 1,
1127     "x": 2084.4974098205566,
1128     "y": 1138.6220136880875,
1129     "z": "5b3e3707.3aa6c8",
1130     "wires": [
1131       []
1132     ]
1133   },
1134   {
1135     "id": "dcf01c19.ab4ec",
1136     "type": "block",
1137     "name": "block atomic",
1138     "xml": "<block atomic=\"true\">\n",
1139     "atomic": "false",
1140     "comments": "",
1141     "outputs": 1,
1142     "x": 1683.4971466064453,
1143     "y": 1263.6221548318863,
1144     "z": "5b3e3707.3aa6c8",
1145     "wires": [
1146       [
1147         "6973f8af.870f38"
1148       ]
1149     ]
1150   },
1151   {
1152     "id": "452db2df.70966c",
1153     "type": "for",
1154     "name": "for loop siteidx - Get site ID from servicedata",
1155     "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",
1156     "comments": "",
1157     "outputs": 1,
1158     "x": 2502.4985961914062,
1159     "y": 1771.6224666833878,
1160     "z": "5b3e3707.3aa6c8",
1161     "wires": [
1162       [
1163         "5784939.f29e76c"
1164       ]
1165     ]
1166   },
1167   {
1168     "id": "200a6173.10b10e",
1169     "type": "switchNode",
1170     "name": "switch siteId",
1171     "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",
1172     "comments": "",
1173     "outputs": 1,
1174     "x": 1973.501958847046,
1175     "y": 1885.6239286661148,
1176     "z": "5b3e3707.3aa6c8",
1177     "wires": [
1178       [
1179         "91222197.1f508"
1180       ]
1181     ]
1182   },
1183   {
1184     "id": "91222197.1f508",
1185     "type": "outcomeTrue",
1186     "name": "true",
1187     "xml": "<outcome value='true'>\n",
1188     "comments": "",
1189     "outputs": 1,
1190     "x": 2128.5023288726807,
1191     "y": 1887.6242953538895,
1192     "z": "5b3e3707.3aa6c8",
1193     "wires": [
1194       [
1195         "ea7d1279.422d1"
1196       ]
1197     ]
1198   },
1199   {
1200     "id": "62f62c1c.d1f314",
1201     "type": "set",
1202     "name": "Add sites to list and update length",
1203     "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",
1204     "comments": "",
1205     "x": 2106.0009231567383,
1206     "y": 2020.1228910684586,
1207     "z": "5b3e3707.3aa6c8",
1208     "wires": []
1209   },
1210   {
1211     "id": "f3ac87c7.5588f8",
1212     "type": "execute",
1213     "name": "execute RestApiCallNode create vpn topology",
1214     "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.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
1215     "comments": "",
1216     "outputs": 1,
1217     "x": 698.9997272491455,
1218     "y": 1553.6235390901566,
1219     "z": "5b3e3707.3aa6c8",
1220     "wires": [
1221       [
1222         "b3354b35.0339d8",
1223         "83e6dff5.c0823"
1224       ]
1225     ]
1226   },
1227   {
1228     "id": "83e6dff5.c0823",
1229     "type": "success",
1230     "name": "success",
1231     "xml": "<outcome value='success'>\n",
1232     "comments": "",
1233     "outputs": 1,
1234     "x": 942.9996814727783,
1235     "y": 1574.6233559846878,
1236     "z": "5b3e3707.3aa6c8",
1237     "wires": [
1238       [
1239         "5884381c.754b78"
1240       ]
1241     ]
1242   },
1243   {
1244     "id": "5884381c.754b78",
1245     "type": "block",
1246     "name": "block : atomic",
1247     "xml": "<block atomic=\"true\">",
1248     "atomic": "true",
1249     "comments": "",
1250     "outputs": 1,
1251     "x": 1112.999620437622,
1252     "y": 1577.6233559846878,
1253     "z": "5b3e3707.3aa6c8",
1254     "wires": [
1255       []
1256     ]
1257   },
1258   {
1259     "id": "3a834e9e.d6b4c2",
1260     "type": "returnFailure",
1261     "name": "return failure",
1262     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create vpn topology failed\" />\n",
1263     "comments": "",
1264     "x": 1112.9997425079346,
1265     "y": 1533.6233559846878,
1266     "z": "5b3e3707.3aa6c8",
1267     "wires": []
1268   },
1269   {
1270     "id": "b3354b35.0339d8",
1271     "type": "failure",
1272     "name": "failure",
1273     "xml": "<outcome value='failure'>\n",
1274     "comments": "",
1275     "outputs": 1,
1276     "x": 945.9996204376221,
1277     "y": 1533.6233559846878,
1278     "z": "5b3e3707.3aa6c8",
1279     "wires": [
1280       [
1281         "3a834e9e.d6b4c2"
1282       ]
1283     ]
1284   },
1285   {
1286     "id": "97a06baa.a4df68",
1287     "type": "set",
1288     "name": "set controller data",
1289     "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",
1290     "comments": "",
1291     "x": 1061.5652923583984,
1292     "y": 928.2990293502808,
1293     "z": "5b3e3707.3aa6c8",
1294     "wires": []
1295   },
1296   {
1297     "id": "c4f38bc0.54d238",
1298     "type": "get-resource",
1299     "name": "get-resource esr-thirdparty-sdnc",
1300     "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",
1301     "comments": "",
1302     "outputs": 1,
1303     "x": 658.0650634765625,
1304     "y": 954.2993497848511,
1305     "z": "5b3e3707.3aa6c8",
1306     "wires": [
1307       [
1308         "b1ed8af2.ff9cc8",
1309         "64af3109.c43ba",
1310         "b545c5fe.0aa818"
1311       ]
1312     ]
1313   },
1314   {
1315     "id": "b1ed8af2.ff9cc8",
1316     "type": "success",
1317     "name": "success",
1318     "xml": "<outcome value='success'>\n",
1319     "comments": "",
1320     "outputs": 1,
1321     "x": 896.0651664733887,
1322     "y": 928.2989978790283,
1323     "z": "5b3e3707.3aa6c8",
1324     "wires": [
1325       [
1326         "97a06baa.a4df68"
1327       ]
1328     ]
1329   },
1330   {
1331     "id": "64af3109.c43ba",
1332     "type": "not-found",
1333     "name": "not-found",
1334     "xml": "<outcome value='not-found'>\n",
1335     "comments": "",
1336     "outputs": 1,
1337     "x": 892.5559043884277,
1338     "y": 964.8731408119202,
1339     "z": "5b3e3707.3aa6c8",
1340     "wires": [
1341       [
1342         "84eeaaa5.5de4f8"
1343       ]
1344     ]
1345   },
1346   {
1347     "id": "b545c5fe.0aa818",
1348     "type": "other",
1349     "name": "other",
1350     "xml": "<outcome value='Other'>\n",
1351     "comments": "",
1352     "outputs": 1,
1353     "x": 886.8889579772949,
1354     "y": 1001.2064542770386,
1355     "z": "5b3e3707.3aa6c8",
1356     "wires": [
1357       [
1358         "4396ff0e.50b9e"
1359       ]
1360     ]
1361   },
1362   {
1363     "id": "84eeaaa5.5de4f8",
1364     "type": "returnFailure",
1365     "name": "return failure",
1366     "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",
1367     "comments": "",
1368     "x": 1049.1273345947266,
1369     "y": 964.1588926315308,
1370     "z": "5b3e3707.3aa6c8",
1371     "wires": []
1372   },
1373   {
1374     "id": "4396ff0e.50b9e",
1375     "type": "returnFailure",
1376     "name": "return failure",
1377     "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",
1378     "comments": "",
1379     "x": 1048.6615295410156,
1380     "y": 996.6456785202026,
1381     "z": "5b3e3707.3aa6c8",
1382     "wires": []
1383   },
1384   {
1385     "id": "6973f8af.870f38",
1386     "type": "for",
1387     "name": "for pnidx.. mdsal-psd.service-data.networks.network_length[]",
1388     "xml": "<for index='pnidx' start='0' end='`$mdsal-parentsd.service-data.networks.network_length`' >\n",
1389     "comments": "",
1390     "outputs": 1,
1391     "x": 1991.4972763061523,
1392     "y": 1263.122277855873,
1393     "z": "5b3e3707.3aa6c8",
1394     "wires": [
1395       [
1396         "86298d2a.4e81d"
1397       ]
1398     ]
1399   },
1400   {
1401     "id": "9e5424eb.2e5b98",
1402     "type": "switchNode",
1403     "name": "switch ActivateSDWANConnectivityInstance",
1404     "xml": "<switch test=\"`$mdsal-parentsd.service-data.networks.network[$pnidx].network-data.request-information.request-action == ActivateSDWANConnectivityInstance`\">\n    \n    \n\n",
1405     "comments": "",
1406     "outputs": 1,
1407     "x": 1838.165672302246,
1408     "y": 1352.1222940683365,
1409     "z": "5b3e3707.3aa6c8",
1410     "wires": [
1411       [
1412         "7568a55.272e35c"
1413       ]
1414     ]
1415   },
1416   {
1417     "id": "7568a55.272e35c",
1418     "type": "outcomeTrue",
1419     "name": "true",
1420     "xml": "<outcome value='true'>\n",
1421     "comments": "",
1422     "outputs": 1,
1423     "x": 2094.1651248931885,
1424     "y": 1350.1222330331802,
1425     "z": "5b3e3707.3aa6c8",
1426     "wires": [
1427       [
1428         "e1df3461.3efed8"
1429       ]
1430     ]
1431   },
1432   {
1433     "id": "34f69c4e.e0acb4",
1434     "type": "for",
1435     "name": "for loop paramidx - Get topology from servicedata",
1436     "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",
1437     "comments": "",
1438     "outputs": 1,
1439     "x": 1881.1637878417969,
1440     "y": 1443.1214720010757,
1441     "z": "5b3e3707.3aa6c8",
1442     "wires": [
1443       [
1444         "1b29b6f3.84c7e9"
1445       ]
1446     ]
1447   },
1448   {
1449     "id": "9dd144dd.7929d8",
1450     "type": "switchNode",
1451     "name": "switch topology",
1452     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'topology'`\">\n",
1453     "comments": "",
1454     "outputs": 1,
1455     "x": 2335.1641483306885,
1456     "y": 1430.121761918068,
1457     "z": "5b3e3707.3aa6c8",
1458     "wires": [
1459       [
1460         "e3be96aa.c2c8a8"
1461       ]
1462     ]
1463   },
1464   {
1465     "id": "e3be96aa.c2c8a8",
1466     "type": "outcomeTrue",
1467     "name": "true",
1468     "xml": "<outcome value='true'>\n",
1469     "comments": "",
1470     "outputs": 1,
1471     "x": 2484.1639041900635,
1472     "y": 1425.1218839883804,
1473     "z": "5b3e3707.3aa6c8",
1474     "wires": [
1475       [
1476         "23ce8dd3.49fc12"
1477       ]
1478     ]
1479   },
1480   {
1481     "id": "23ce8dd3.49fc12",
1482     "type": "set",
1483     "name": "set topology",
1484     "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",
1485     "comments": "",
1486     "x": 2624.1640911102295,
1487     "y": 1422.721799492836,
1488     "z": "5b3e3707.3aa6c8",
1489     "wires": []
1490   },
1491   {
1492     "id": "ecf33c6a.0e252",
1493     "type": "switchNode",
1494     "name": "switch vpnId",
1495     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'vpn-id'`\">\n",
1496     "comments": "",
1497     "outputs": 1,
1498     "x": 2322.8300952911377,
1499     "y": 1468.454986691475,
1500     "z": "5b3e3707.3aa6c8",
1501     "wires": [
1502       [
1503         "3bf645ac.c4019a"
1504       ]
1505     ]
1506   },
1507   {
1508     "id": "3bf645ac.c4019a",
1509     "type": "outcomeTrue",
1510     "name": "true",
1511     "xml": "<outcome value='true'>\n",
1512     "comments": "",
1513     "outputs": 1,
1514     "x": 2462.8300380706787,
1515     "y": 1468.454803109169,
1516     "z": "5b3e3707.3aa6c8",
1517     "wires": [
1518       [
1519         "f947fdb0.d1a3c"
1520       ]
1521     ]
1522   },
1523   {
1524     "id": "f947fdb0.d1a3c",
1525     "type": "set",
1526     "name": "set prop.vpn1Id",
1527     "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",
1528     "comments": "",
1529     "x": 2610.830041885376,
1530     "y": 1468.054870724678,
1531     "z": "5b3e3707.3aa6c8",
1532     "wires": []
1533   },
1534   {
1535     "id": "6a97289d.80a568",
1536     "type": "execute",
1537     "name": "execute RestApiCallNode create vpn ",
1538     "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.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
1539     "comments": "",
1540     "outputs": 1,
1541     "x": 667.9981231689453,
1542     "y": 1462.1229600906372,
1543     "z": "5b3e3707.3aa6c8",
1544     "wires": [
1545       [
1546         "5ffc81bd.b86cd",
1547         "2fd24486.c6bc7c"
1548       ]
1549     ]
1550   },
1551   {
1552     "id": "2fd24486.c6bc7c",
1553     "type": "success",
1554     "name": "success",
1555     "xml": "<outcome value='success'>\n",
1556     "comments": "",
1557     "outputs": 1,
1558     "x": 887.998025894165,
1559     "y": 1458.1229249238968,
1560     "z": "5b3e3707.3aa6c8",
1561     "wires": [
1562       [
1563         "10a20cb7.762a63"
1564       ]
1565     ]
1566   },
1567   {
1568     "id": "10a20cb7.762a63",
1569     "type": "block",
1570     "name": "block : atomic",
1571     "xml": "<block atomic=\"true\">",
1572     "atomic": "true",
1573     "comments": "",
1574     "outputs": 1,
1575     "x": 1057.9979648590088,
1576     "y": 1461.1229249238968,
1577     "z": "5b3e3707.3aa6c8",
1578     "wires": [
1579       []
1580     ]
1581   },
1582   {
1583     "id": "bb44545a.967818",
1584     "type": "returnFailure",
1585     "name": "return failure",
1586     "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",
1587     "comments": "",
1588     "x": 1057.9980869293213,
1589     "y": 1417.1229249238968,
1590     "z": "5b3e3707.3aa6c8",
1591     "wires": []
1592   },
1593   {
1594     "id": "5ffc81bd.b86cd",
1595     "type": "failure",
1596     "name": "failure",
1597     "xml": "<outcome value='failure'>\n",
1598     "comments": "",
1599     "outputs": 1,
1600     "x": 890.9979648590088,
1601     "y": 1417.1229249238968,
1602     "z": "5b3e3707.3aa6c8",
1603     "wires": [
1604       [
1605         "bb44545a.967818"
1606       ]
1607     ]
1608   },
1609   {
1610     "id": "c6900049.d4f2a",
1611     "type": "set",
1612     "name": "set prop.name",
1613     "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",
1614     "comments": "",
1615     "x": 2467.9968280792236,
1616     "y": 1057.1214628219604,
1617     "z": "5b3e3707.3aa6c8",
1618     "wires": []
1619   },
1620   {
1621     "id": "6d71d4d6.b3bfec",
1622     "type": "switchNode",
1623     "name": "switch sdwanVpnName",
1624     "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",
1625     "comments": "",
1626     "outputs": 1,
1627     "x": 2147.4965839385986,
1628     "y": 1062.1214628219604,
1629     "z": "5b3e3707.3aa6c8",
1630     "wires": [
1631       [
1632         "95235e68.5208b"
1633       ]
1634     ]
1635   },
1636   {
1637     "id": "95235e68.5208b",
1638     "type": "outcomeTrue",
1639     "name": "true",
1640     "xml": "<outcome value='true'>\n",
1641     "comments": "",
1642     "outputs": 1,
1643     "x": 2324.4968280792236,
1644     "y": 1059.1214628219604,
1645     "z": "5b3e3707.3aa6c8",
1646     "wires": [
1647       [
1648         "c6900049.d4f2a"
1649       ]
1650     ]
1651   },
1652   {
1653     "id": "5dc928bc.725628",
1654     "type": "block",
1655     "name": "block atomic",
1656     "xml": "<block atomic=\"true\">\n",
1657     "atomic": "false",
1658     "comments": "",
1659     "outputs": 1,
1660     "x": 1237.0269775390625,
1661     "y": 880.3190307617188,
1662     "z": "5b3e3707.3aa6c8",
1663     "wires": [
1664       [
1665         "32321857.9b87a8",
1666         "8e15f4fa.e90f28",
1667         "9fc5f700.68a778"
1668       ]
1669     ]
1670   },
1671   {
1672     "id": "69e18ab9.627484",
1673     "type": "for",
1674     "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
1675     "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
1676     "comments": "",
1677     "outputs": 1,
1678     "x": 830.18115234375,
1679     "y": 889.0944213867188,
1680     "z": "5b3e3707.3aa6c8",
1681     "wires": [
1682       [
1683         "5dc928bc.725628"
1684       ]
1685     ]
1686   },
1687   {
1688     "id": "8e15f4fa.e90f28",
1689     "type": "execute",
1690     "name": "generate tmp.ar-url-connection url",
1691     "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",
1692     "comments": "",
1693     "outputs": 1,
1694     "x": 1485.9962997436523,
1695     "y": 878.6668090820312,
1696     "z": "5b3e3707.3aa6c8",
1697     "wires": [
1698       []
1699     ]
1700   },
1701   {
1702     "id": "9fc5f700.68a778",
1703     "type": "execute",
1704     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1705     "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",
1706     "comments": "",
1707     "outputs": 1,
1708     "x": 1634.99609375,
1709     "y": 917.3333740234375,
1710     "z": "5b3e3707.3aa6c8",
1711     "wires": [
1712       [
1713         "9ffe3ec9.11aa8",
1714         "b156e259.c2b83"
1715       ]
1716     ]
1717   },
1718   {
1719     "id": "d8ea80f8.53dca",
1720     "type": "execute",
1721     "name": "generate prop.ar-parent-service-instance-id",
1722     "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",
1723     "comments": "",
1724     "outputs": 1,
1725     "x": 1665.3295593261719,
1726     "y": 1126.0003362894058,
1727     "z": "5b3e3707.3aa6c8",
1728     "wires": [
1729       []
1730     ]
1731   },
1732   {
1733     "id": "f11b05ac.5891b8",
1734     "type": "execute",
1735     "name": "execute RestApiCallNode - get parent service data",
1736     "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",
1737     "comments": "",
1738     "outputs": 1,
1739     "x": 1684.3295288085938,
1740     "y": 1160.0004221200943,
1741     "z": "5b3e3707.3aa6c8",
1742     "wires": [
1743       [
1744         "21194342.fd75ac",
1745         "c26e60ea.9b07b"
1746       ]
1747     ]
1748   },
1749   {
1750     "id": "ff4ce46e.aa5008",
1751     "type": "block",
1752     "name": "block atomic",
1753     "xml": "<block atomic=\"true\">\n",
1754     "atomic": "false",
1755     "comments": "",
1756     "outputs": 1,
1757     "x": 1944.0272235870361,
1758     "y": 1036.5311307907104,
1759     "z": "5b3e3707.3aa6c8",
1760     "wires": [
1761       [
1762         "17a801cc.ffa25e",
1763         "6d71d4d6.b3bfec"
1764       ]
1765     ]
1766   },
1767   {
1768     "id": "e1df3461.3efed8",
1769     "type": "block",
1770     "name": "block atomic",
1771     "xml": "<block atomic=\"true\">\n",
1772     "atomic": "false",
1773     "comments": "",
1774     "outputs": 1,
1775     "x": 1470.0277786254883,
1776     "y": 1483.5313215255737,
1777     "z": "5b3e3707.3aa6c8",
1778     "wires": [
1779       [
1780         "34f69c4e.e0acb4",
1781         "f53c2301.9407e",
1782         "c3f7512e.84f81",
1783         "334c603e.da8c8"
1784       ]
1785     ]
1786   },
1787   {
1788     "id": "86298d2a.4e81d",
1789     "type": "block",
1790     "name": "block atomic",
1791     "xml": "<block atomic=\"true\">\n",
1792     "atomic": "false",
1793     "comments": "",
1794     "outputs": 1,
1795     "x": 1580.6634063720703,
1796     "y": 1350.667093873024,
1797     "z": "5b3e3707.3aa6c8",
1798     "wires": [
1799       [
1800         "9e5424eb.2e5b98"
1801       ]
1802     ]
1803   },
1804   {
1805     "id": "5784939.f29e76c",
1806     "type": "block",
1807     "name": "block atmoic",
1808     "xml": "<block atomic=\"true\">\n",
1809     "atomic": "false",
1810     "comments": "",
1811     "outputs": 1,
1812     "x": 1805.9984703063965,
1813     "y": 1887.667660355568,
1814     "z": "5b3e3707.3aa6c8",
1815     "wires": [
1816       [
1817         "200a6173.10b10e"
1818       ]
1819     ]
1820   },
1821   {
1822     "id": "1b29b6f3.84c7e9",
1823     "type": "block",
1824     "name": "block atomic",
1825     "xml": "<block atomic=\"true\">\n",
1826     "atomic": "false",
1827     "comments": "",
1828     "outputs": 1,
1829     "x": 2167.027723312378,
1830     "y": 1443.5314317941666,
1831     "z": "5b3e3707.3aa6c8",
1832     "wires": [
1833       [
1834         "9dd144dd.7929d8",
1835         "ecf33c6a.0e252"
1836       ]
1837     ]
1838   },
1839   {
1840     "id": "5c15538f.0d810c",
1841     "type": "set",
1842     "name": "set prop.attach.siteId",
1843     "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",
1844     "comments": "",
1845     "x": 2058.665012359619,
1846     "y": 1961.3338705301285,
1847     "z": "5b3e3707.3aa6c8",
1848     "wires": []
1849   },
1850   {
1851     "id": "81072e73.36a9b",
1852     "type": "block",
1853     "name": "block atomic",
1854     "xml": "<block atomic=\"true\">\n",
1855     "atomic": "false",
1856     "comments": "",
1857     "outputs": 1,
1858     "x": 2238.255527496338,
1859     "y": 1742.00441801548,
1860     "z": "5b3e3707.3aa6c8",
1861     "wires": [
1862       [
1863         "fe54ca75.073228",
1864         "452db2df.70966c"
1865       ]
1866     ]
1867   },
1868   {
1869     "id": "ea7d1279.422d1",
1870     "type": "block",
1871     "name": "block atomic",
1872     "xml": "<block atomic=\"true\">\n",
1873     "atomic": "false",
1874     "comments": "",
1875     "outputs": 1,
1876     "x": 1861.755947113037,
1877     "y": 1987.754342675209,
1878     "z": "5b3e3707.3aa6c8",
1879     "wires": [
1880       [
1881         "5c15538f.0d810c",
1882         "62f62c1c.d1f314",
1883         "9f8585c2.03c528"
1884       ]
1885     ]
1886   },
1887   {
1888     "id": "19a39c5d.bf96f4",
1889     "type": "call",
1890     "name": "call sdwan-wanport-vnf-topology-operation-underlay",
1891     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-wanport-vnf-topology-operation-underlay' mode='sync' >\n",
1892     "comments": "",
1893     "outputs": 1,
1894     "x": 717.7540149688721,
1895     "y": 1670.254198551178,
1896     "z": "5b3e3707.3aa6c8",
1897     "wires": [
1898       []
1899     ]
1900   },
1901   {
1902     "id": "497d8e2c.0cabf",
1903     "type": "comment",
1904     "name": "underlay",
1905     "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",
1906     "comments": "",
1907     "x": 625.722993850708,
1908     "y": 1635.2231373786926,
1909     "z": "5b3e3707.3aa6c8",
1910     "wires": []
1911   },
1912   {
1913     "id": "bcfeb911.f55008",
1914     "type": "set",
1915     "name": "set prop.siteAttachement_length=0",
1916     "xml": "<set>\n<parameter name='prop.siteAttachements_length' value='0' />\n<parameter name='prop.siteIds_length' value='0' />\n\n\n\n",
1917     "comments": "",
1918     "x": 666.9999694824219,
1919     "y": 854.5311733484268,
1920     "z": "5b3e3707.3aa6c8",
1921     "wires": []
1922   },
1923   {
1924     "id": "f53c2301.9407e",
1925     "type": "set",
1926     "name": "set prop.ar-service-instance-id",
1927     "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",
1928     "comments": "",
1929     "x": 1830.0003967285156,
1930     "y": 1481.531231880188,
1931     "z": "5b3e3707.3aa6c8",
1932     "wires": []
1933   },
1934   {
1935     "id": "c3f7512e.84f81",
1936     "type": "execute",
1937     "name": "generate prop.ar-service-instance-id",
1938     "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",
1939     "comments": "",
1940     "outputs": 1,
1941     "x": 1840.3326683044434,
1942     "y": 1522.4093770980835,
1943     "z": "5b3e3707.3aa6c8",
1944     "wires": [
1945       []
1946     ]
1947   },
1948   {
1949     "id": "334c603e.da8c8",
1950     "type": "execute",
1951     "name": "execute RestApiCallNode - get service data",
1952     "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",
1953     "comments": "",
1954     "outputs": 1,
1955     "x": 1869.3327331542969,
1956     "y": 1563.4093770980835,
1957     "z": "5b3e3707.3aa6c8",
1958     "wires": [
1959       [
1960         "c3928a9a.4b87b8",
1961         "3258f9bd.5d9236"
1962       ]
1963     ]
1964   },
1965   {
1966     "id": "c3928a9a.4b87b8",
1967     "type": "other",
1968     "name": "other",
1969     "xml": "<outcome value='Other'>\n",
1970     "comments": "",
1971     "outputs": 1,
1972     "x": 2125.8524169921875,
1973     "y": 1572.5972105264664,
1974     "z": "5b3e3707.3aa6c8",
1975     "wires": [
1976       [
1977         "8e2c2a42.ebc3b8"
1978       ]
1979     ]
1980   },
1981   {
1982     "id": "3258f9bd.5d9236",
1983     "type": "success",
1984     "name": "success",
1985     "xml": "<outcome value='success'>\n",
1986     "comments": "",
1987     "outputs": 1,
1988     "x": 2128.000087738037,
1989     "y": 1611.5310827493668,
1990     "z": "5b3e3707.3aa6c8",
1991     "wires": [
1992       [
1993         "db1a6308.98167"
1994       ]
1995     ]
1996   },
1997   {
1998     "id": "8e2c2a42.ebc3b8",
1999     "type": "block",
2000     "name": "block",
2001     "xml": "<block>\n",
2002     "atomic": "false",
2003     "comments": "",
2004     "outputs": 1,
2005     "x": 2255.5006103515625,
2006     "y": 1566.0311704874039,
2007     "z": "5b3e3707.3aa6c8",
2008     "wires": [
2009       []
2010     ]
2011   },
2012   {
2013     "id": "db1a6308.98167",
2014     "type": "block",
2015     "name": "block atomic",
2016     "xml": "<block atomic=\"true\">\n",
2017     "atomic": "false",
2018     "comments": "",
2019     "outputs": 1,
2020     "x": 1603.9998779296875,
2021     "y": 1662.5311304330826,
2022     "z": "5b3e3707.3aa6c8",
2023     "wires": [
2024       [
2025         "edc31606.488c38"
2026       ]
2027     ]
2028   },
2029   {
2030     "id": "1a500d64.c038a3",
2031     "type": "comment",
2032     "name": "TODO send Email",
2033     "info": "",
2034     "comments": "",
2035     "x": 967.0000171661377,
2036     "y": 1715.031527042389,
2037     "z": "5b3e3707.3aa6c8",
2038     "wires": []
2039   },
2040   {
2041     "id": "9f8585c2.03c528",
2042     "type": "set",
2043     "name": "Add site attachement to list and update length",
2044     "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",
2045     "comments": "",
2046     "x": 2141.250045776367,
2047     "y": 2074.753987789154,
2048     "z": "5b3e3707.3aa6c8",
2049     "wires": []
2050   },
2051   {
2052     "id": "86fafd91.f4f2f",
2053     "type": "execute",
2054     "name": "execute RestApiCallNode Get token",
2055     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
2056     "comments": "",
2057     "outputs": 1,
2058     "x": 655.0038986206055,
2059     "y": 1072.0041399002075,
2060     "z": "5b3e3707.3aa6c8",
2061     "wires": [
2062       [
2063         "6e49d8b7.8b66c8",
2064         "d4d84dda.9a08b"
2065       ]
2066     ]
2067   },
2068   {
2069     "id": "6e49d8b7.8b66c8",
2070     "type": "success",
2071     "name": "success",
2072     "xml": "<outcome value='success'>\n",
2073     "comments": "",
2074     "outputs": 1,
2075     "x": 907.0040245056152,
2076     "y": 1053.003957748413,
2077     "z": "5b3e3707.3aa6c8",
2078     "wires": [
2079       [
2080         "2d072571.88985a"
2081       ]
2082     ]
2083   },
2084   {
2085     "id": "d4d84dda.9a08b",
2086     "type": "failure",
2087     "name": "failure",
2088     "xml": "<outcome value='failure'>\n",
2089     "comments": "",
2090     "outputs": 1,
2091     "x": 899.2540588378906,
2092     "y": 1088.6470804214478,
2093     "z": "5b3e3707.3aa6c8",
2094     "wires": [
2095       [
2096         "e6862503.c2ac28"
2097       ]
2098     ]
2099   },
2100   {
2101     "id": "e6862503.c2ac28",
2102     "type": "returnFailure",
2103     "name": "return failure",
2104     "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 get token rest api\" />\n",
2105     "comments": "",
2106     "x": 1047.004051208496,
2107     "y": 1086.3972024917603,
2108     "z": "5b3e3707.3aa6c8",
2109     "wires": []
2110   },
2111   {
2112     "id": "2d072571.88985a",
2113     "type": "set",
2114     "name": "set token-id",
2115     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
2116     "comments": "",
2117     "x": 1056.0040245056152,
2118     "y": 1052.003927230835,
2119     "z": "5b3e3707.3aa6c8",
2120     "wires": []
2121   },
2122   {
2123     "id": "df3f5d3a.29e2c",
2124     "type": "get-resource",
2125     "name": "get-resource service-subscription",
2126     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n        key= 'service-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type \n        AND customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id'\n      force=\"true\" pfx=\"tmp.AnAI-data-tenant\">           ",
2127     "comments": "",
2128     "outputs": 1,
2129     "x": 645.8993682861328,
2130     "y": 1184.5660381317139,
2131     "z": "5b3e3707.3aa6c8",
2132     "wires": [
2133       [
2134         "a39bcd10.58925",
2135         "2937722a.892cce"
2136       ]
2137     ]
2138   },
2139   {
2140     "id": "601b10b0.92d6e",
2141     "type": "switchNode",
2142     "name": "switch temp-ub-sub-account-id",
2143     "xml": "<switch test='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`'>\n",
2144     "comments": "",
2145     "outputs": 1,
2146     "x": 1057.8994598388672,
2147     "y": 1149.3161191940308,
2148     "z": "5b3e3707.3aa6c8",
2149     "wires": [
2150       [
2151         "9400efe1.833e2",
2152         "af14c507.1fb9e8"
2153       ]
2154     ]
2155   },
2156   {
2157     "id": "9400efe1.833e2",
2158     "type": "outcome",
2159     "name": "NULL",
2160     "xml": "<outcome value=''>",
2161     "comments": "",
2162     "outputs": 1,
2163     "x": 1250.6139106750488,
2164     "y": 1123.3161602020264,
2165     "z": "5b3e3707.3aa6c8",
2166     "wires": [
2167       [
2168         "97ca3fa8.80b92"
2169       ]
2170     ]
2171   },
2172   {
2173     "id": "af14c507.1fb9e8",
2174     "type": "other",
2175     "name": "Other",
2176     "xml": "<outcome value='Other'>",
2177     "comments": "",
2178     "outputs": 1,
2179     "x": 1203.8994903564453,
2180     "y": 1217.3162384033203,
2181     "z": "5b3e3707.3aa6c8",
2182     "wires": [
2183       [
2184         "98cbe213.a0ab5"
2185       ]
2186     ]
2187   },
2188   {
2189     "id": "a39bcd10.58925",
2190     "type": "success",
2191     "name": "success",
2192     "xml": "<outcome value='success'>\n",
2193     "comments": "",
2194     "outputs": 1,
2195     "x": 856.3992309570312,
2196     "y": 1157.3120965957642,
2197     "z": "5b3e3707.3aa6c8",
2198     "wires": [
2199       [
2200         "601b10b0.92d6e"
2201       ]
2202     ]
2203   },
2204   {
2205     "id": "2937722a.892cce",
2206     "type": "failure",
2207     "name": "failure",
2208     "xml": "<outcome value='failure'>\n",
2209     "comments": "",
2210     "outputs": 1,
2211     "x": 850.0778198242188,
2212     "y": 1209.5264081954956,
2213     "z": "5b3e3707.3aa6c8",
2214     "wires": [
2215       [
2216         "b04b740c.a6ef58"
2217       ]
2218     ]
2219   },
2220   {
2221     "id": "b04b740c.a6ef58",
2222     "type": "returnFailure",
2223     "name": "return failure",
2224     "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 get token rest api\" />\n",
2225     "comments": "",
2226     "x": 1002.8278198242188,
2227     "y": 1209.2764692306519,
2228     "z": "5b3e3707.3aa6c8",
2229     "wires": []
2230   },
2231   {
2232     "id": "98cbe213.a0ab5",
2233     "type": "set",
2234     "name": "set prop.tenant-id",
2235     "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`' />\n",
2236     "comments": "",
2237     "x": 1372.7566719055176,
2238     "y": 1215.423252105713,
2239     "z": "5b3e3707.3aa6c8",
2240     "wires": []
2241   },
2242   {
2243     "id": "55f46b97.799ce4",
2244     "type": "execute",
2245     "name": "execute RestApiCallNode Create tenant auth",
2246     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\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=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
2247     "comments": "",
2248     "outputs": 1,
2249     "x": 683.3994293212891,
2250     "y": 1251.4588842391968,
2251     "z": "5b3e3707.3aa6c8",
2252     "wires": [
2253       []
2254     ]
2255   },
2256   {
2257     "id": "97ca3fa8.80b92",
2258     "type": "returnFailure",
2259     "name": "return failure",
2260     "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 get token rest api\" />\n",
2261     "comments": "",
2262     "x": 1363.042236328125,
2263     "y": 1168.1375246047974,
2264     "z": "5b3e3707.3aa6c8",
2265     "wires": []
2266   }
2267 ]