Allow sub directories for graphs
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-activate.json
1 [
2   {
3     "id": "93b0ef5b.3e408",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 139,
8     "y": 54,
9     "z": "92c42fbf.4d20f",
10     "wires": [
11       [
12         "a7b13cb2.c08d5"
13       ]
14     ]
15   },
16   {
17     "id": "a7b13cb2.c08d5",
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": 330.0000057220459,
26     "y": 124.00001811981201,
27     "z": "92c42fbf.4d20f",
28     "wires": [
29       [
30         "5d2c2651.f9a3d8"
31       ]
32     ]
33   },
34   {
35     "id": "5d2c2651.f9a3d8",
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": 318.00012397766113,
42     "y": 212.00000095367432,
43     "z": "92c42fbf.4d20f",
44     "wires": [
45       [
46         "c8d63fe2.b2b23"
47       ]
48     ]
49   },
50   {
51     "id": "c8d63fe2.b2b23",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 220.00013732910156,
59     "y": 898.0002890825272,
60     "z": "92c42fbf.4d20f",
61     "wires": [
62       [
63         "d462bbd.082f148",
64         "ce900383.4855d",
65         "bc468479.f5a808",
66         "cc58fb4f.38c9d8",
67         "5687be1a.59a66",
68         "a1d43226.8d32d",
69         "a6ce139d.8cd82",
70         "fcbe570.434f0a8",
71         "e2fb4f17.bce7a",
72         "3aed3696.4cf77a",
73         "e78f2c1f.7461f",
74         "f801a0de.16907",
75         "d4bcebf0.e04a68",
76         "a351ad64.5b62",
77         "169bc249.b8cede",
78         "86489e85.9e429",
79         "6a1b7e4b.2ba26",
80         "7ad41615.6876c8",
81         "fb5be39e.fa586",
82         "2406d281.b1df1e",
83         "4e50db83.d2f224",
84         "862cb704.9f9128",
85         "4e5f3349.352d6c",
86         "28b00a13.902c76",
87         "9a0f8d9a.4d443",
88         "f9894d64.11723"
89       ]
90     ]
91   },
92   {
93     "id": "d462bbd.082f148",
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": 730.9935626983643,
99     "y": 165.99348783493042,
100     "z": "92c42fbf.4d20f",
101     "wires": []
102   },
103   {
104     "id": "1a77342a.e82ccc",
105     "type": "comment",
106     "name": "set tmp ar-id to fetch resource from MDSAL",
107     "info": "",
108     "comments": "",
109     "x": 759.9538745880127,
110     "y": 130.02528381347656,
111     "z": "92c42fbf.4d20f",
112     "wires": []
113   },
114   {
115     "id": "ce900383.4855d",
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": 684.993501663208,
121     "y": 258.99349308013916,
122     "z": "92c42fbf.4d20f",
123     "wires": []
124   },
125   {
126     "id": "cc58fb4f.38c9d8",
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": 691.255392074585,
133     "y": 346.66022205352783,
134     "z": "92c42fbf.4d20f",
135     "wires": [
136       []
137     ]
138   },
139   {
140     "id": "bc468479.f5a808",
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": 738.255449295044,
147     "y": 434.6602258682251,
148     "z": "92c42fbf.4d20f",
149     "wires": [
150       []
151     ]
152   },
153   {
154     "id": "cd648838.9eb298",
155     "type": "comment",
156     "name": "GET connection-attachment-allotted-resource from mdsal",
157     "info": "",
158     "comments": "",
159     "x": 792.8084106445312,
160     "y": 503.53865146636963,
161     "z": "92c42fbf.4d20f",
162     "wires": []
163   },
164   {
165     "id": "9dbfb79f.f4be18",
166     "type": "comment",
167     "name": "Used for setting output to API Handler",
168     "info": "",
169     "comments": "",
170     "x": 738.9935321807861,
171     "y": 225.99350261688232,
172     "z": "92c42fbf.4d20f",
173     "wires": []
174   },
175   {
176     "id": "247d684d.e973f8",
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": 756.9934978485107,
182     "y": 311.8823833465576,
183     "z": "92c42fbf.4d20f",
184     "wires": []
185   },
186   {
187     "id": "6426cfba.672b8",
188     "type": "comment",
189     "name": "Used to Get AR by id to MDSAL, same as self-link",
190     "info": "",
191     "comments": "",
192     "x": 782.9935169219971,
193     "y": 398.882342338562,
194     "z": "92c42fbf.4d20f",
195     "wires": []
196   },
197   {
198     "id": "406068c.1da4a98",
199     "type": "success",
200     "name": "success",
201     "xml": "<outcome value='success'>\n",
202     "comments": "",
203     "outputs": 1,
204     "x": 1246.6668224334717,
205     "y": 516.999979019165,
206     "z": "92c42fbf.4d20f",
207     "wires": [
208       [
209         "519eae9c.9b2f6"
210       ]
211     ]
212   },
213   {
214     "id": "519eae9c.9b2f6",
215     "type": "block",
216     "name": "block: atomic",
217     "xml": "<block atomic=\"true\">\n",
218     "atomic": "false",
219     "comments": "",
220     "outputs": 1,
221     "x": 1390.6669006347656,
222     "y": 474.4998970031738,
223     "z": "92c42fbf.4d20f",
224     "wires": [
225       [
226         "d1dd16e9.faf918"
227       ]
228     ]
229   },
230   {
231     "id": "d1dd16e9.faf918",
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": 1559.5243244171143,
238     "y": 472.11906814575195,
239     "z": "92c42fbf.4d20f",
240     "wires": [
241       [
242         "6a124f25.b362a",
243         "caf37a34.d778a8"
244       ]
245     ]
246   },
247   {
248     "id": "6a124f25.b362a",
249     "type": "other",
250     "name": "outcome 1",
251     "xml": "<outcome value='1'>\n",
252     "comments": "",
253     "outputs": 1,
254     "x": 1714.8574600219727,
255     "y": 444.1189832687378,
256     "z": "92c42fbf.4d20f",
257     "wires": [
258       [
259         "d1a8c266.f1b55"
260       ]
261     ]
262   },
263   {
264     "id": "d1a8c266.f1b55",
265     "type": "block",
266     "name": "block: atomic",
267     "xml": "<block atomic='true'>\n",
268     "atomic": "false",
269     "comments": "",
270     "outputs": 1,
271     "x": 1873.3812637329102,
272     "y": 442.02383041381836,
273     "z": "92c42fbf.4d20f",
274     "wires": [
275       [
276         "bb518772.b81358",
277         "645ade11.426a1",
278         "44255d43.96da34"
279       ]
280     ]
281   },
282   {
283     "id": "2aedf56b.f1b1ba",
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": 1813.5191955566406,
289     "y": 549.0660648345947,
290     "z": "92c42fbf.4d20f",
291     "wires": []
292   },
293   {
294     "id": "e00fd6fc.ea7778",
295     "type": "other",
296     "name": "other",
297     "xml": "<outcome value='Other'>\n",
298     "comments": "",
299     "outputs": 1,
300     "x": 1238.5186252593994,
301     "y": 552.0660638809204,
302     "z": "92c42fbf.4d20f",
303     "wires": [
304       [
305         "d0418e39.56684"
306       ]
307     ]
308   },
309   {
310     "id": "d0418e39.56684",
311     "type": "block",
312     "name": "block: atomic",
313     "xml": "<block atomic=\"true\">\n",
314     "atomic": "false",
315     "comments": "",
316     "outputs": 1,
317     "x": 1418.518575668335,
318     "y": 552.7326145172119,
319     "z": "92c42fbf.4d20f",
320     "wires": [
321       [
322         "2aedf56b.f1b1ba"
323       ]
324     ]
325   },
326   {
327     "id": "caf37a34.d778a8",
328     "type": "other",
329     "name": "other",
330     "xml": "<outcome value='Other'>\n",
331     "comments": "",
332     "outputs": 1,
333     "x": 1706.1854629516602,
334     "y": 503.39935779571533,
335     "z": "92c42fbf.4d20f",
336     "wires": [
337       [
338         "2aedf56b.f1b1ba"
339       ]
340     ]
341   },
342   {
343     "id": "bb518772.b81358",
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": 2120.4447174072266,
349     "y": 415.00008249282837,
350     "z": "92c42fbf.4d20f",
351     "wires": []
352   },
353   {
354     "id": "645ade11.426a1",
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": 2069.444986343384,
360     "y": 517.4286185503006,
361     "z": "92c42fbf.4d20f",
362     "wires": []
363   },
364   {
365     "id": "44255d43.96da34",
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": 2071.444803237915,
372     "y": 457.0000435113907,
373     "z": "92c42fbf.4d20f",
374     "wires": [
375       [
376         "48830e3c.30889",
377         "2b84fa59.5b57c6"
378       ]
379     ]
380   },
381   {
382     "id": "2b84fa59.5b57c6",
383     "type": "outcome",
384     "name": "outcome Created",
385     "xml": "<outcome value='Created'>\n",
386     "comments": "",
387     "outputs": 1,
388     "x": 2299.0451526641846,
389     "y": 448.00010073184967,
390     "z": "92c42fbf.4d20f",
391     "wires": [
392       [
393         "45156448.968e9c"
394       ]
395     ]
396   },
397   {
398     "id": "48830e3c.30889",
399     "type": "outcome",
400     "name": "outcome Other",
401     "xml": "<outcome value='Other'>\n",
402     "comments": "",
403     "outputs": 1,
404     "x": 2293.759048461914,
405     "y": 487.42865800857544,
406     "z": "92c42fbf.4d20f",
407     "wires": [
408       [
409         "a911339e.75cc3"
410       ]
411     ]
412   },
413   {
414     "id": "45156448.968e9c",
415     "type": "block",
416     "name": "block",
417     "xml": "<block>\n",
418     "atomic": "false",
419     "comments": "",
420     "outputs": 1,
421     "x": 2458.515281677246,
422     "y": 448.37570571899414,
423     "z": "92c42fbf.4d20f",
424     "wires": [
425       []
426     ]
427   },
428   {
429     "id": "a911339e.75cc3",
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": 2469.666862487793,
435     "y": 486.000057220459,
436     "z": "92c42fbf.4d20f",
437     "wires": []
438   },
439   {
440     "id": "233d3f47.5a62d",
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": 963.3030433654785,
447     "y": 623.4936294555664,
448     "z": "92c42fbf.4d20f",
449     "wires": [
450       []
451     ]
452   },
453   {
454     "id": "5687be1a.59a66",
455     "type": "block",
456     "name": "block: atomic",
457     "xml": "<block atomic=\"true\">\n",
458     "atomic": "false",
459     "comments": "",
460     "outputs": 1,
461     "x": 657.3091430664062,
462     "y": 624.5,
463     "z": "92c42fbf.4d20f",
464     "wires": [
465       [
466         "233d3f47.5a62d"
467       ]
468     ]
469   },
470   {
471     "id": "9b9946c9.3f3d68",
472     "type": "comment",
473     "name": "GET parent-service-data from mdsal to check existence of other End point",
474     "info": "",
475     "comments": "",
476     "x": 835.00048828125,
477     "y": 695.53173828125,
478     "z": "92c42fbf.4d20f",
479     "wires": []
480   },
481   {
482     "id": "2f29782e.56da68",
483     "type": "comment",
484     "name": "GET connection-attachment-ar to store AR data from mdsal",
485     "info": "",
486     "comments": "",
487     "x": 2182.4727783203125,
488     "y": 375.5039367675781,
489     "z": "92c42fbf.4d20f",
490     "wires": []
491   },
492   {
493     "id": "a1d43226.8d32d",
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": 720.9688110351562,
499     "y": 725.0001220703125,
500     "z": "92c42fbf.4d20f",
501     "wires": []
502   },
503   {
504     "id": "9e759fa5.c7253",
505     "type": "success",
506     "name": "success",
507     "xml": "<outcome value='success'>\n",
508     "comments": "",
509     "outputs": 1,
510     "x": 1080.968978881836,
511     "y": 782.0000915527344,
512     "z": "92c42fbf.4d20f",
513     "wires": [
514       [
515         "b7458f6f.6b103"
516       ]
517     ]
518   },
519   {
520     "id": "5edd87c2.935d58",
521     "type": "other",
522     "name": "other",
523     "xml": "<outcome value='Other'>\n",
524     "comments": "",
525     "outputs": 1,
526     "x": 1072.8207817077637,
527     "y": 817.0661764144897,
528     "z": "92c42fbf.4d20f",
529     "wires": [
530       [
531         "45257af8.9c6094"
532       ]
533     ]
534   },
535   {
536     "id": "45257af8.9c6094",
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": 1218.9695625305176,
542     "y": 816.3335876464844,
543     "z": "92c42fbf.4d20f",
544     "wires": []
545   },
546   {
547     "id": "b7458f6f.6b103",
548     "type": "block",
549     "name": "block",
550     "xml": "<block>\n",
551     "atomic": "false",
552     "comments": "",
553     "outputs": 1,
554     "x": 1211.9690742492676,
555     "y": 782.0001525878906,
556     "z": "92c42fbf.4d20f",
557     "wires": [
558       []
559     ]
560   },
561   {
562     "id": "41e65fa0.2c10b",
563     "type": "failure",
564     "name": "failure",
565     "xml": "<outcome value='failure'>\n",
566     "comments": "",
567     "outputs": 1,
568     "x": 894.7313137054443,
569     "y": 2142.9540371894836,
570     "z": "92c42fbf.4d20f",
571     "wires": [
572       [
573         "b6c4d495.4bdad8"
574       ]
575     ]
576   },
577   {
578     "id": "b6c4d495.4bdad8",
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": 1061.2551345825195,
584     "y": 2169.5730443000793,
585     "z": "92c42fbf.4d20f",
586     "wires": []
587   },
588   {
589     "id": "691b6216.46804c",
590     "type": "failure",
591     "name": "not-found",
592     "xml": "<outcome value='not-found'>\n",
593     "comments": "",
594     "outputs": 1,
595     "x": 896.8265419006348,
596     "y": 2190.715879917145,
597     "z": "92c42fbf.4d20f",
598     "wires": [
599       [
600         "b6c4d495.4bdad8"
601       ]
602     ]
603   },
604   {
605     "id": "39d44506.fc1dea",
606     "type": "comment",
607     "name": "Save Resource to AAI",
608     "info": "",
609     "comments": "",
610     "x": 668.7789573669434,
611     "y": 2131.3032002449036,
612     "z": "92c42fbf.4d20f",
613     "wires": []
614   },
615   {
616     "id": "169bc249.b8cede",
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": 683.5466537475586,
622     "y": 2052.8286814689636,
623     "z": "92c42fbf.4d20f",
624     "wires": []
625   },
626   {
627     "id": "86489e85.9e429",
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": 643.9598255157471,
633     "y": 2238.4444699287415,
634     "z": "92c42fbf.4d20f",
635     "wires": []
636   },
637   {
638     "id": "a351ad64.5b62",
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": 736.278736114502,
645     "y": 1977.4695343971252,
646     "z": "92c42fbf.4d20f",
647     "wires": [
648       [
649         "7f052e3d.cfc45",
650         "9a139c80.89827",
651         "c0ebd24f.2c1be"
652       ]
653     ]
654   },
655   {
656     "id": "7f052e3d.cfc45",
657     "type": "not-found",
658     "name": "not-found",
659     "xml": "<outcome value='not-found'>\n",
660     "comments": "",
661     "outputs": 1,
662     "x": 990.9201583862305,
663     "y": 2021.8009285926819,
664     "z": "92c42fbf.4d20f",
665     "wires": [
666       [
667         "d5b448a4.f99588"
668       ]
669     ]
670   },
671   {
672     "id": "9a139c80.89827",
673     "type": "failure",
674     "name": "failure",
675     "xml": "<outcome value='failure'>\n",
676     "comments": "",
677     "outputs": 1,
678     "x": 992.9201812744141,
679     "y": 1980.3008927330375,
680     "z": "92c42fbf.4d20f",
681     "wires": [
682       [
683         "d5b448a4.f99588"
684       ]
685     ]
686   },
687   {
688     "id": "c0ebd24f.2c1be",
689     "type": "success",
690     "name": "success",
691     "xml": "<outcome value='success'>\n",
692     "comments": "",
693     "outputs": 1,
694     "x": 996.6702651977539,
695     "y": 1931.6580452919006,
696     "z": "92c42fbf.4d20f",
697     "wires": [
698       [
699         "da728790.b76f18"
700       ]
701     ]
702   },
703   {
704     "id": "d5b448a4.f99588",
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": 1151.6702842712402,
710     "y": 2000.05095911026,
711     "z": "92c42fbf.4d20f",
712     "wires": []
713   },
714   {
715     "id": "da728790.b76f18",
716     "type": "block",
717     "name": "block",
718     "xml": "<block>\n",
719     "atomic": "false",
720     "comments": "",
721     "outputs": 1,
722     "x": 1124.3262100219727,
723     "y": 1933.8502135276794,
724     "z": "92c42fbf.4d20f",
725     "wires": [
726       []
727     ]
728   },
729   {
730     "id": "3aed3696.4cf77a",
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": 638.4923515319824,
736     "y": 1811.8504354953766,
737     "z": "92c42fbf.4d20f",
738     "wires": []
739   },
740   {
741     "id": "f801a0de.16907",
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": 655.7781944274902,
748     "y": 1884.4700331687927,
749     "z": "92c42fbf.4d20f",
750     "wires": [
751       []
752     ]
753   },
754   {
755     "id": "d4bcebf0.e04a68",
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": 705.7652740478516,
761     "y": 1921.4211134910583,
762     "z": "92c42fbf.4d20f",
763     "wires": []
764   },
765   {
766     "id": "e78f2c1f.7461f",
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": 652.3338928222656,
772     "y": 1851.025085926056,
773     "z": "92c42fbf.4d20f",
774     "wires": []
775   },
776   {
777     "id": "82a1071f.9cdd18",
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": 763.6673889160156,
783     "y": 1773.0250434875488,
784     "z": "92c42fbf.4d20f",
785     "wires": []
786   },
787   {
788     "id": "74588870.73e178",
789     "type": "comment",
790     "name": "Add to allotted-resources in mdsal",
791     "info": "",
792     "comments": "",
793     "x": 707.2471809387207,
794     "y": 1739.4383397102356,
795     "z": "92c42fbf.4d20f",
796     "wires": []
797   },
798   {
799     "id": "4e5f3349.352d6c",
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.service-information.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": 695.2232360839844,
806     "y": 2168.7553429603577,
807     "z": "92c42fbf.4d20f",
808     "wires": [
809       [
810         "41e65fa0.2c10b",
811         "691b6216.46804c"
812       ]
813     ]
814   },
815   {
816     "id": "a6ce139d.8cd82",
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": 867.0039672851562,
823     "y": 535.00390625,
824     "z": "92c42fbf.4d20f",
825     "wires": [
826       [
827         "406068c.1da4a98",
828         "e00fd6fc.ea7778"
829       ]
830     ]
831   },
832   {
833     "id": "fcbe570.434f0a8",
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": 790.0040893554688,
840     "y": 798.0040893554688,
841     "z": "92c42fbf.4d20f",
842     "wires": [
843       [
844         "9e759fa5.c7253",
845         "5edd87c2.935d58"
846       ]
847     ]
848   },
849   {
850     "id": "e2fb4f17.bce7a",
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": 690.0039978027344,
857     "y": 761.0039224624634,
858     "z": "92c42fbf.4d20f",
859     "wires": [
860       []
861     ]
862   },
863   {
864     "id": "1f1e2af2.8cbfa5",
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": 1547.9964752197266,
870     "y": 850.1218557357788,
871     "z": "92c42fbf.4d20f",
872     "wires": []
873   },
874   {
875     "id": "fc107783.f66638",
876     "type": "success",
877     "name": "success",
878     "xml": "<outcome value='success'>\n",
879     "comments": "",
880     "outputs": 1,
881     "x": 2053.9970703125,
882     "y": 944.4551391601562,
883     "z": "92c42fbf.4d20f",
884     "wires": [
885       [
886         "23bfc366.b2fa3c"
887       ]
888     ]
889   },
890   {
891     "id": "d6f3b7ed.897558",
892     "type": "other",
893     "name": "other",
894     "xml": "<outcome value='Other'>\n",
895     "comments": "",
896     "outputs": 1,
897     "x": 2057.848445892334,
898     "y": 906.52121925354,
899     "z": "92c42fbf.4d20f",
900     "wires": [
901       [
902         "62911322.6e35fc"
903       ]
904     ]
905   },
906   {
907     "id": "69edf94d.eac048",
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": 1949.9976425170898,
914     "y": 1672.1222692728043,
915     "z": "92c42fbf.4d20f",
916     "wires": [
917       [
918         "764ffe4a.681ad"
919       ]
920     ]
921   },
922   {
923     "id": "764ffe4a.681ad",
924     "type": "block",
925     "name": "block atmoic",
926     "xml": "<block atomic=\"true\">\n",
927     "atomic": "false",
928     "comments": "",
929     "outputs": 1,
930     "x": 1709.6641387939453,
931     "y": 1744.1224619150162,
932     "z": "92c42fbf.4d20f",
933     "wires": [
934       [
935         "b8e7c061.bd378"
936       ]
937     ]
938   },
939   {
940     "id": "b8e7c061.bd378",
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": 1922.5293731689453,
947     "y": 1745.3203302621841,
948     "z": "92c42fbf.4d20f",
949     "wires": [
950       [
951         "af3c96cc.a1d208"
952       ]
953     ]
954   },
955   {
956     "id": "af3c96cc.a1d208",
957     "type": "outcomeTrue",
958     "name": "true",
959     "xml": "<outcome value='true'>\n",
960     "comments": "",
961     "outputs": 1,
962     "x": 2127.52872467041,
963     "y": 1748.3203264474869,
964     "z": "92c42fbf.4d20f",
965     "wires": [
966       [
967         "a89b6820.3b89d8"
968       ]
969     ]
970   },
971   {
972     "id": "8d253099.60ab9",
973     "type": "set",
974     "name": "set tmp.sitevidx ",
975     "xml": "<set>\n<parameter name='tmp.sitevidx' value='`$arvidx`' />\n\n",
976     "comments": "",
977     "x": 2471.528896331787,
978     "y": 1728.3206740617752,
979     "z": "92c42fbf.4d20f",
980     "wires": []
981   },
982   {
983     "id": "6d8cc41a.be1cfc",
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": 1698.9970703125,
989     "y": 1091.1221185922623,
990     "z": "92c42fbf.4d20f",
991     "wires": []
992   },
993   {
994     "id": "f4b5259e.86dd38",
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": 1725.9965839385986,
1001     "y": 1048.6217069625854,
1002     "z": "92c42fbf.4d20f",
1003     "wires": [
1004       [
1005         "4483e9ee.7ffd68"
1006       ]
1007     ]
1008   },
1009   {
1010     "id": "c5da2f8.eb203d",
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": 2156.9968280792236,
1017     "y": 1014.621829032898,
1018     "z": "92c42fbf.4d20f",
1019     "wires": [
1020       [
1021         "4dcb3b71.c91564"
1022       ]
1023     ]
1024   },
1025   {
1026     "id": "4dcb3b71.c91564",
1027     "type": "outcomeTrue",
1028     "name": "true",
1029     "xml": "<outcome value='true'>\n",
1030     "comments": "",
1031     "outputs": 1,
1032     "x": 2296.9970722198486,
1033     "y": 1012.6219511032104,
1034     "z": "92c42fbf.4d20f",
1035     "wires": [
1036       [
1037         "abbbe638.28eb78"
1038       ]
1039     ]
1040   },
1041   {
1042     "id": "abbbe638.28eb78",
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": 2440.9978046417236,
1048     "y": 1012.2218046188354,
1049     "z": "92c42fbf.4d20f",
1050     "wires": []
1051   },
1052   {
1053     "id": "96905d4d.266e3",
1054     "type": "success",
1055     "name": "success",
1056     "xml": "<outcome value='success'>\n",
1057     "comments": "",
1058     "outputs": 1,
1059     "x": 2004.9968872070312,
1060     "y": 1191.1219259500504,
1061     "z": "92c42fbf.4d20f",
1062     "wires": [
1063       [
1064         "20f71ccb.8bb9b4"
1065       ]
1066     ]
1067   },
1068   {
1069     "id": "6d849909.165408",
1070     "type": "other",
1071     "name": "other",
1072     "xml": "<outcome value='Other'>\n",
1073     "comments": "",
1074     "outputs": 1,
1075     "x": 2002.8492164611816,
1076     "y": 1152.18805372715,
1077     "z": "92c42fbf.4d20f",
1078     "wires": [
1079       [
1080         "f2dcd85c.bce9e8"
1081       ]
1082     ]
1083   },
1084   {
1085     "id": "62911322.6e35fc",
1086     "type": "block",
1087     "name": "block",
1088     "xml": "<block>\n",
1089     "atomic": "false",
1090     "comments": "",
1091     "outputs": 1,
1092     "x": 2183.996570587158,
1093     "y": 903.6216526031494,
1094     "z": "92c42fbf.4d20f",
1095     "wires": [
1096       []
1097     ]
1098   },
1099   {
1100     "id": "23bfc366.b2fa3c",
1101     "type": "block",
1102     "name": "block atomic",
1103     "xml": "<block atomic=\"true\">\n",
1104     "atomic": "false",
1105     "comments": "",
1106     "outputs": 1,
1107     "x": 1349.496524810791,
1108     "y": 1083.6217823028564,
1109     "z": "92c42fbf.4d20f",
1110     "wires": [
1111       [
1112         "f4b5259e.86dd38",
1113         "6d8cc41a.be1cfc",
1114         "eed01b55.d04f18",
1115         "48c9897c.fcd5b8"
1116       ]
1117     ]
1118   },
1119   {
1120     "id": "f2dcd85c.bce9e8",
1121     "type": "block",
1122     "name": "block",
1123     "xml": "<block>\n",
1124     "atomic": "false",
1125     "comments": "",
1126     "outputs": 1,
1127     "x": 2132.4974098205566,
1128     "y": 1145.6220136880875,
1129     "z": "92c42fbf.4d20f",
1130     "wires": [
1131       []
1132     ]
1133   },
1134   {
1135     "id": "20f71ccb.8bb9b4",
1136     "type": "block",
1137     "name": "block atomic",
1138     "xml": "<block atomic=\"true\">\n",
1139     "atomic": "false",
1140     "comments": "",
1141     "outputs": 1,
1142     "x": 1731.4971466064453,
1143     "y": 1270.6221548318863,
1144     "z": "92c42fbf.4d20f",
1145     "wires": [
1146       [
1147         "873845fc.6f6098"
1148       ]
1149     ]
1150   },
1151   {
1152     "id": "615b5e26.43cbe",
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": 2550.4985961914062,
1159     "y": 1778.6224666833878,
1160     "z": "92c42fbf.4d20f",
1161     "wires": [
1162       [
1163         "b6197b80.43b5b8"
1164       ]
1165     ]
1166   },
1167   {
1168     "id": "dbd732d1.3a3c8",
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": 2021.501958847046,
1175     "y": 1892.6239286661148,
1176     "z": "92c42fbf.4d20f",
1177     "wires": [
1178       [
1179         "a928d05f.807d7"
1180       ]
1181     ]
1182   },
1183   {
1184     "id": "a928d05f.807d7",
1185     "type": "outcomeTrue",
1186     "name": "true",
1187     "xml": "<outcome value='true'>\n",
1188     "comments": "",
1189     "outputs": 1,
1190     "x": 2176.5023288726807,
1191     "y": 1894.6242953538895,
1192     "z": "92c42fbf.4d20f",
1193     "wires": [
1194       [
1195         "7763b485.9a224c"
1196       ]
1197     ]
1198   },
1199   {
1200     "id": "ae878fc7.06ea3",
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": 2154.0009231567383,
1206     "y": 2027.1228910684586,
1207     "z": "92c42fbf.4d20f",
1208     "wires": []
1209   },
1210   {
1211     "id": "862cb704.9f9128",
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": 746.9997272491455,
1218     "y": 1560.6235390901566,
1219     "z": "92c42fbf.4d20f",
1220     "wires": [
1221       [
1222         "9ca71cfd.a9b42",
1223         "e39ed217.1ee0b"
1224       ]
1225     ]
1226   },
1227   {
1228     "id": "e39ed217.1ee0b",
1229     "type": "success",
1230     "name": "success",
1231     "xml": "<outcome value='success'>\n",
1232     "comments": "",
1233     "outputs": 1,
1234     "x": 990.9996814727783,
1235     "y": 1581.6233559846878,
1236     "z": "92c42fbf.4d20f",
1237     "wires": [
1238       [
1239         "bda5dec3.598f2"
1240       ]
1241     ]
1242   },
1243   {
1244     "id": "bda5dec3.598f2",
1245     "type": "block",
1246     "name": "block : atomic",
1247     "xml": "<block atomic=\"true\">",
1248     "atomic": "true",
1249     "comments": "",
1250     "outputs": 1,
1251     "x": 1160.999620437622,
1252     "y": 1584.6233559846878,
1253     "z": "92c42fbf.4d20f",
1254     "wires": [
1255       []
1256     ]
1257   },
1258   {
1259     "id": "d878c3fa.89f44",
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": 1160.9997425079346,
1265     "y": 1540.6233559846878,
1266     "z": "92c42fbf.4d20f",
1267     "wires": []
1268   },
1269   {
1270     "id": "9ca71cfd.a9b42",
1271     "type": "failure",
1272     "name": "failure",
1273     "xml": "<outcome value='failure'>\n",
1274     "comments": "",
1275     "outputs": 1,
1276     "x": 993.9996204376221,
1277     "y": 1540.6233559846878,
1278     "z": "92c42fbf.4d20f",
1279     "wires": [
1280       [
1281         "d878c3fa.89f44"
1282       ]
1283     ]
1284   },
1285   {
1286     "id": "1627716.a22478f",
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": 1109.5652923583984,
1292     "y": 935.2990293502808,
1293     "z": "92c42fbf.4d20f",
1294     "wires": []
1295   },
1296   {
1297     "id": "2406d281.b1df1e",
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": 706.0650634765625,
1304     "y": 961.2993497848511,
1305     "z": "92c42fbf.4d20f",
1306     "wires": [
1307       [
1308         "cc3f42f.1aaf5c",
1309         "2581bcc6.214074",
1310         "bc3b824e.981ad"
1311       ]
1312     ]
1313   },
1314   {
1315     "id": "cc3f42f.1aaf5c",
1316     "type": "success",
1317     "name": "success",
1318     "xml": "<outcome value='success'>\n",
1319     "comments": "",
1320     "outputs": 1,
1321     "x": 944.0651664733887,
1322     "y": 935.2989978790283,
1323     "z": "92c42fbf.4d20f",
1324     "wires": [
1325       [
1326         "1627716.a22478f"
1327       ]
1328     ]
1329   },
1330   {
1331     "id": "2581bcc6.214074",
1332     "type": "not-found",
1333     "name": "not-found",
1334     "xml": "<outcome value='not-found'>\n",
1335     "comments": "",
1336     "outputs": 1,
1337     "x": 940.5559043884277,
1338     "y": 971.8731408119202,
1339     "z": "92c42fbf.4d20f",
1340     "wires": [
1341       [
1342         "5dde6a53.1070f4"
1343       ]
1344     ]
1345   },
1346   {
1347     "id": "bc3b824e.981ad",
1348     "type": "other",
1349     "name": "other",
1350     "xml": "<outcome value='Other'>\n",
1351     "comments": "",
1352     "outputs": 1,
1353     "x": 934.8889579772949,
1354     "y": 1008.2064542770386,
1355     "z": "92c42fbf.4d20f",
1356     "wires": [
1357       [
1358         "e1a59b7f.54e028"
1359       ]
1360     ]
1361   },
1362   {
1363     "id": "5dde6a53.1070f4",
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": 1097.1273345947266,
1369     "y": 971.1588926315308,
1370     "z": "92c42fbf.4d20f",
1371     "wires": []
1372   },
1373   {
1374     "id": "e1a59b7f.54e028",
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": 1096.6615295410156,
1380     "y": 1003.6456785202026,
1381     "z": "92c42fbf.4d20f",
1382     "wires": []
1383   },
1384   {
1385     "id": "873845fc.6f6098",
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": 2039.4972763061523,
1392     "y": 1270.122277855873,
1393     "z": "92c42fbf.4d20f",
1394     "wires": [
1395       [
1396         "d2c7de71.be999"
1397       ]
1398     ]
1399   },
1400   {
1401     "id": "442e3eb2.30a6",
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": 1886.165672302246,
1408     "y": 1359.1222940683365,
1409     "z": "92c42fbf.4d20f",
1410     "wires": [
1411       [
1412         "202c0d34.0eeba2"
1413       ]
1414     ]
1415   },
1416   {
1417     "id": "202c0d34.0eeba2",
1418     "type": "outcomeTrue",
1419     "name": "true",
1420     "xml": "<outcome value='true'>\n",
1421     "comments": "",
1422     "outputs": 1,
1423     "x": 2142.1651248931885,
1424     "y": 1357.1222330331802,
1425     "z": "92c42fbf.4d20f",
1426     "wires": [
1427       [
1428         "d6c2bdb0.f6742"
1429       ]
1430     ]
1431   },
1432   {
1433     "id": "ecaeb85c.a23ad8",
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": 1929.1637878417969,
1440     "y": 1450.1214720010757,
1441     "z": "92c42fbf.4d20f",
1442     "wires": [
1443       [
1444         "55fb20e6.ae2b8"
1445       ]
1446     ]
1447   },
1448   {
1449     "id": "275c933d.3e84dc",
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": 2383.1641483306885,
1456     "y": 1437.121761918068,
1457     "z": "92c42fbf.4d20f",
1458     "wires": [
1459       [
1460         "3594c1ef.8c09de"
1461       ]
1462     ]
1463   },
1464   {
1465     "id": "3594c1ef.8c09de",
1466     "type": "outcomeTrue",
1467     "name": "true",
1468     "xml": "<outcome value='true'>\n",
1469     "comments": "",
1470     "outputs": 1,
1471     "x": 2532.1639041900635,
1472     "y": 1432.1218839883804,
1473     "z": "92c42fbf.4d20f",
1474     "wires": [
1475       [
1476         "d0fec186.f6378"
1477       ]
1478     ]
1479   },
1480   {
1481     "id": "d0fec186.f6378",
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": 2672.1640911102295,
1487     "y": 1429.721799492836,
1488     "z": "92c42fbf.4d20f",
1489     "wires": []
1490   },
1491   {
1492     "id": "d8436e7b.788fa",
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": 2370.8300952911377,
1499     "y": 1475.454986691475,
1500     "z": "92c42fbf.4d20f",
1501     "wires": [
1502       [
1503         "ef5a8550.4c3fc8"
1504       ]
1505     ]
1506   },
1507   {
1508     "id": "ef5a8550.4c3fc8",
1509     "type": "outcomeTrue",
1510     "name": "true",
1511     "xml": "<outcome value='true'>\n",
1512     "comments": "",
1513     "outputs": 1,
1514     "x": 2510.8300380706787,
1515     "y": 1475.454803109169,
1516     "z": "92c42fbf.4d20f",
1517     "wires": [
1518       [
1519         "ff006bb3.c58668"
1520       ]
1521     ]
1522   },
1523   {
1524     "id": "ff006bb3.c58668",
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": 2658.830041885376,
1530     "y": 1475.054870724678,
1531     "z": "92c42fbf.4d20f",
1532     "wires": []
1533   },
1534   {
1535     "id": "4e50db83.d2f224",
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": 715.9981231689453,
1542     "y": 1469.1229600906372,
1543     "z": "92c42fbf.4d20f",
1544     "wires": [
1545       [
1546         "22758979.541926",
1547         "97cd05b9.e37ec8"
1548       ]
1549     ]
1550   },
1551   {
1552     "id": "97cd05b9.e37ec8",
1553     "type": "success",
1554     "name": "success",
1555     "xml": "<outcome value='success'>\n",
1556     "comments": "",
1557     "outputs": 1,
1558     "x": 935.998025894165,
1559     "y": 1465.1229249238968,
1560     "z": "92c42fbf.4d20f",
1561     "wires": [
1562       [
1563         "a647eec3.a66d4"
1564       ]
1565     ]
1566   },
1567   {
1568     "id": "a647eec3.a66d4",
1569     "type": "block",
1570     "name": "block : atomic",
1571     "xml": "<block atomic=\"true\">",
1572     "atomic": "true",
1573     "comments": "",
1574     "outputs": 1,
1575     "x": 1105.9979648590088,
1576     "y": 1468.1229249238968,
1577     "z": "92c42fbf.4d20f",
1578     "wires": [
1579       []
1580     ]
1581   },
1582   {
1583     "id": "8979ecea.209cb",
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": 1105.9980869293213,
1589     "y": 1424.1229249238968,
1590     "z": "92c42fbf.4d20f",
1591     "wires": []
1592   },
1593   {
1594     "id": "22758979.541926",
1595     "type": "failure",
1596     "name": "failure",
1597     "xml": "<outcome value='failure'>\n",
1598     "comments": "",
1599     "outputs": 1,
1600     "x": 938.9979648590088,
1601     "y": 1424.1229249238968,
1602     "z": "92c42fbf.4d20f",
1603     "wires": [
1604       [
1605         "8979ecea.209cb"
1606       ]
1607     ]
1608   },
1609   {
1610     "id": "165fa503.fcc5db",
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": 2515.9968280792236,
1616     "y": 1064.1214628219604,
1617     "z": "92c42fbf.4d20f",
1618     "wires": []
1619   },
1620   {
1621     "id": "5a9c41c6.077e",
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": 2195.4965839385986,
1628     "y": 1069.1214628219604,
1629     "z": "92c42fbf.4d20f",
1630     "wires": [
1631       [
1632         "a0b6a8bd.407c18"
1633       ]
1634     ]
1635   },
1636   {
1637     "id": "a0b6a8bd.407c18",
1638     "type": "outcomeTrue",
1639     "name": "true",
1640     "xml": "<outcome value='true'>\n",
1641     "comments": "",
1642     "outputs": 1,
1643     "x": 2372.4968280792236,
1644     "y": 1066.1214628219604,
1645     "z": "92c42fbf.4d20f",
1646     "wires": [
1647       [
1648         "165fa503.fcc5db"
1649       ]
1650     ]
1651   },
1652   {
1653     "id": "e752b141.db3aa",
1654     "type": "block",
1655     "name": "block atomic",
1656     "xml": "<block atomic=\"true\">\n",
1657     "atomic": "false",
1658     "comments": "",
1659     "outputs": 1,
1660     "x": 1285.0269775390625,
1661     "y": 887.3190307617188,
1662     "z": "92c42fbf.4d20f",
1663     "wires": [
1664       [
1665         "1f1e2af2.8cbfa5",
1666         "7752d7f6.af8778",
1667         "ccfd4281.11f42"
1668       ]
1669     ]
1670   },
1671   {
1672     "id": "6a1b7e4b.2ba26",
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": 878.18115234375,
1679     "y": 896.0944213867188,
1680     "z": "92c42fbf.4d20f",
1681     "wires": [
1682       [
1683         "e752b141.db3aa"
1684       ]
1685     ]
1686   },
1687   {
1688     "id": "7752d7f6.af8778",
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": 1533.9962997436523,
1695     "y": 885.6668090820312,
1696     "z": "92c42fbf.4d20f",
1697     "wires": [
1698       []
1699     ]
1700   },
1701   {
1702     "id": "ccfd4281.11f42",
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": 1682.99609375,
1709     "y": 924.3333740234375,
1710     "z": "92c42fbf.4d20f",
1711     "wires": [
1712       [
1713         "d6f3b7ed.897558",
1714         "fc107783.f66638"
1715       ]
1716     ]
1717   },
1718   {
1719     "id": "eed01b55.d04f18",
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": 1713.3295593261719,
1726     "y": 1133.0003362894058,
1727     "z": "92c42fbf.4d20f",
1728     "wires": [
1729       []
1730     ]
1731   },
1732   {
1733     "id": "48c9897c.fcd5b8",
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": 1732.3295288085938,
1740     "y": 1167.0004221200943,
1741     "z": "92c42fbf.4d20f",
1742     "wires": [
1743       [
1744         "6d849909.165408",
1745         "96905d4d.266e3"
1746       ]
1747     ]
1748   },
1749   {
1750     "id": "4483e9ee.7ffd68",
1751     "type": "block",
1752     "name": "block atomic",
1753     "xml": "<block atomic=\"true\">\n",
1754     "atomic": "false",
1755     "comments": "",
1756     "outputs": 1,
1757     "x": 1992.0272235870361,
1758     "y": 1043.5311307907104,
1759     "z": "92c42fbf.4d20f",
1760     "wires": [
1761       [
1762         "c5da2f8.eb203d",
1763         "5a9c41c6.077e"
1764       ]
1765     ]
1766   },
1767   {
1768     "id": "d6c2bdb0.f6742",
1769     "type": "block",
1770     "name": "block atomic",
1771     "xml": "<block atomic=\"true\">\n",
1772     "atomic": "false",
1773     "comments": "",
1774     "outputs": 1,
1775     "x": 1518.0277786254883,
1776     "y": 1490.5313215255737,
1777     "z": "92c42fbf.4d20f",
1778     "wires": [
1779       [
1780         "ecaeb85c.a23ad8",
1781         "c5c238a2.297c08",
1782         "ce3038ec.f99258",
1783         "7a9df6e2.06b738"
1784       ]
1785     ]
1786   },
1787   {
1788     "id": "d2c7de71.be999",
1789     "type": "block",
1790     "name": "block atomic",
1791     "xml": "<block atomic=\"true\">\n",
1792     "atomic": "false",
1793     "comments": "",
1794     "outputs": 1,
1795     "x": 1628.6634063720703,
1796     "y": 1357.667093873024,
1797     "z": "92c42fbf.4d20f",
1798     "wires": [
1799       [
1800         "442e3eb2.30a6"
1801       ]
1802     ]
1803   },
1804   {
1805     "id": "b6197b80.43b5b8",
1806     "type": "block",
1807     "name": "block atmoic",
1808     "xml": "<block atomic=\"true\">\n",
1809     "atomic": "false",
1810     "comments": "",
1811     "outputs": 1,
1812     "x": 1853.9984703063965,
1813     "y": 1894.667660355568,
1814     "z": "92c42fbf.4d20f",
1815     "wires": [
1816       [
1817         "dbd732d1.3a3c8"
1818       ]
1819     ]
1820   },
1821   {
1822     "id": "55fb20e6.ae2b8",
1823     "type": "block",
1824     "name": "block atomic",
1825     "xml": "<block atomic=\"true\">\n",
1826     "atomic": "false",
1827     "comments": "",
1828     "outputs": 1,
1829     "x": 2215.027723312378,
1830     "y": 1450.5314317941666,
1831     "z": "92c42fbf.4d20f",
1832     "wires": [
1833       [
1834         "275c933d.3e84dc",
1835         "d8436e7b.788fa"
1836       ]
1837     ]
1838   },
1839   {
1840     "id": "f593f6af.001438",
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": 2106.665012359619,
1846     "y": 1968.3338705301285,
1847     "z": "92c42fbf.4d20f",
1848     "wires": []
1849   },
1850   {
1851     "id": "a89b6820.3b89d8",
1852     "type": "block",
1853     "name": "block atomic",
1854     "xml": "<block atomic=\"true\">\n",
1855     "atomic": "false",
1856     "comments": "",
1857     "outputs": 1,
1858     "x": 2286.255527496338,
1859     "y": 1749.00441801548,
1860     "z": "92c42fbf.4d20f",
1861     "wires": [
1862       [
1863         "8d253099.60ab9",
1864         "615b5e26.43cbe"
1865       ]
1866     ]
1867   },
1868   {
1869     "id": "7763b485.9a224c",
1870     "type": "block",
1871     "name": "block atomic",
1872     "xml": "<block atomic=\"true\">\n",
1873     "atomic": "false",
1874     "comments": "",
1875     "outputs": 1,
1876     "x": 1909.755947113037,
1877     "y": 1994.754342675209,
1878     "z": "92c42fbf.4d20f",
1879     "wires": [
1880       [
1881         "f593f6af.001438",
1882         "ae878fc7.06ea3",
1883         "b4fdd461.f71598"
1884       ]
1885     ]
1886   },
1887   {
1888     "id": "fb5be39e.fa586",
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": 765.7540149688721,
1895     "y": 1677.254198551178,
1896     "z": "92c42fbf.4d20f",
1897     "wires": [
1898       []
1899     ]
1900   },
1901   {
1902     "id": "676ca60b.f8dc58",
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": 673.722993850708,
1908     "y": 1642.2231373786926,
1909     "z": "92c42fbf.4d20f",
1910     "wires": []
1911   },
1912   {
1913     "id": "7ad41615.6876c8",
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": 714.9999694824219,
1919     "y": 861.5311733484268,
1920     "z": "92c42fbf.4d20f",
1921     "wires": []
1922   },
1923   {
1924     "id": "c5c238a2.297c08",
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": 1878.0003967285156,
1930     "y": 1488.531231880188,
1931     "z": "92c42fbf.4d20f",
1932     "wires": []
1933   },
1934   {
1935     "id": "ce3038ec.f99258",
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": 1888.3326683044434,
1942     "y": 1529.4093770980835,
1943     "z": "92c42fbf.4d20f",
1944     "wires": [
1945       []
1946     ]
1947   },
1948   {
1949     "id": "7a9df6e2.06b738",
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": 1917.3327331542969,
1956     "y": 1570.4093770980835,
1957     "z": "92c42fbf.4d20f",
1958     "wires": [
1959       [
1960         "c31f95da.b397b8",
1961         "e9b63d90.66cfc"
1962       ]
1963     ]
1964   },
1965   {
1966     "id": "c31f95da.b397b8",
1967     "type": "other",
1968     "name": "other",
1969     "xml": "<outcome value='Other'>\n",
1970     "comments": "",
1971     "outputs": 1,
1972     "x": 2173.8524169921875,
1973     "y": 1579.5972105264664,
1974     "z": "92c42fbf.4d20f",
1975     "wires": [
1976       [
1977         "7eac2788.499098"
1978       ]
1979     ]
1980   },
1981   {
1982     "id": "e9b63d90.66cfc",
1983     "type": "success",
1984     "name": "success",
1985     "xml": "<outcome value='success'>\n",
1986     "comments": "",
1987     "outputs": 1,
1988     "x": 2176.000087738037,
1989     "y": 1618.5310827493668,
1990     "z": "92c42fbf.4d20f",
1991     "wires": [
1992       [
1993         "a04199d9.f1d158"
1994       ]
1995     ]
1996   },
1997   {
1998     "id": "7eac2788.499098",
1999     "type": "block",
2000     "name": "block",
2001     "xml": "<block>\n",
2002     "atomic": "false",
2003     "comments": "",
2004     "outputs": 1,
2005     "x": 2303.5006103515625,
2006     "y": 1573.0311704874039,
2007     "z": "92c42fbf.4d20f",
2008     "wires": [
2009       []
2010     ]
2011   },
2012   {
2013     "id": "a04199d9.f1d158",
2014     "type": "block",
2015     "name": "block atomic",
2016     "xml": "<block atomic=\"true\">\n",
2017     "atomic": "false",
2018     "comments": "",
2019     "outputs": 1,
2020     "x": 1651.9998779296875,
2021     "y": 1669.5311304330826,
2022     "z": "92c42fbf.4d20f",
2023     "wires": [
2024       [
2025         "69edf94d.eac048"
2026       ]
2027     ]
2028   },
2029   {
2030     "id": "816baab6.7483d8",
2031     "type": "comment",
2032     "name": "TODO send Email",
2033     "info": "",
2034     "comments": "",
2035     "x": 1015.0000171661377,
2036     "y": 1722.031527042389,
2037     "z": "92c42fbf.4d20f",
2038     "wires": []
2039   },
2040   {
2041     "id": "b4fdd461.f71598",
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": 2189.250045776367,
2047     "y": 2081.753987789154,
2048     "z": "92c42fbf.4d20f",
2049     "wires": []
2050   },
2051   {
2052     "id": "28b00a13.902c76",
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": 703.0038986206055,
2059     "y": 1079.0041399002075,
2060     "z": "92c42fbf.4d20f",
2061     "wires": [
2062       [
2063         "100f91ad.a8ab3e",
2064         "b78fb1a0.9e74"
2065       ]
2066     ]
2067   },
2068   {
2069     "id": "100f91ad.a8ab3e",
2070     "type": "success",
2071     "name": "success",
2072     "xml": "<outcome value='success'>\n",
2073     "comments": "",
2074     "outputs": 1,
2075     "x": 955.0040245056152,
2076     "y": 1060.003957748413,
2077     "z": "92c42fbf.4d20f",
2078     "wires": [
2079       [
2080         "6b800958.b222d8"
2081       ]
2082     ]
2083   },
2084   {
2085     "id": "b78fb1a0.9e74",
2086     "type": "failure",
2087     "name": "failure",
2088     "xml": "<outcome value='failure'>\n",
2089     "comments": "",
2090     "outputs": 1,
2091     "x": 947.2540588378906,
2092     "y": 1095.6470804214478,
2093     "z": "92c42fbf.4d20f",
2094     "wires": [
2095       [
2096         "eaf6ab13.cd7508"
2097       ]
2098     ]
2099   },
2100   {
2101     "id": "eaf6ab13.cd7508",
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": 1095.004051208496,
2107     "y": 1093.3972024917603,
2108     "z": "92c42fbf.4d20f",
2109     "wires": []
2110   },
2111   {
2112     "id": "6b800958.b222d8",
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": 1104.0040245056152,
2118     "y": 1059.003927230835,
2119     "z": "92c42fbf.4d20f",
2120     "wires": []
2121   },
2122   {
2123     "id": "9a0f8d9a.4d443",
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": 693.8993682861328,
2130     "y": 1191.5660381317139,
2131     "z": "92c42fbf.4d20f",
2132     "wires": [
2133       [
2134         "47c8d5a9.ba16bc",
2135         "14ed09d9.573ea6"
2136       ]
2137     ]
2138   },
2139   {
2140     "id": "20fab7f5.802688",
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": 1105.8994598388672,
2147     "y": 1156.3161191940308,
2148     "z": "92c42fbf.4d20f",
2149     "wires": [
2150       [
2151         "f88ee31d.81b4",
2152         "2987815d.d473be"
2153       ]
2154     ]
2155   },
2156   {
2157     "id": "f88ee31d.81b4",
2158     "type": "outcome",
2159     "name": "NULL",
2160     "xml": "<outcome value=''>",
2161     "comments": "",
2162     "outputs": 1,
2163     "x": 1298.6139106750488,
2164     "y": 1130.3161602020264,
2165     "z": "92c42fbf.4d20f",
2166     "wires": [
2167       [
2168         "679b7c09.467594"
2169       ]
2170     ]
2171   },
2172   {
2173     "id": "2987815d.d473be",
2174     "type": "other",
2175     "name": "Other",
2176     "xml": "<outcome value='Other'>",
2177     "comments": "",
2178     "outputs": 1,
2179     "x": 1251.8994903564453,
2180     "y": 1224.3162384033203,
2181     "z": "92c42fbf.4d20f",
2182     "wires": [
2183       [
2184         "fba55779.a815d8"
2185       ]
2186     ]
2187   },
2188   {
2189     "id": "47c8d5a9.ba16bc",
2190     "type": "success",
2191     "name": "success",
2192     "xml": "<outcome value='success'>\n",
2193     "comments": "",
2194     "outputs": 1,
2195     "x": 904.3992309570312,
2196     "y": 1164.3120965957642,
2197     "z": "92c42fbf.4d20f",
2198     "wires": [
2199       [
2200         "20fab7f5.802688"
2201       ]
2202     ]
2203   },
2204   {
2205     "id": "14ed09d9.573ea6",
2206     "type": "failure",
2207     "name": "failure",
2208     "xml": "<outcome value='failure'>\n",
2209     "comments": "",
2210     "outputs": 1,
2211     "x": 898.0778198242188,
2212     "y": 1216.5264081954956,
2213     "z": "92c42fbf.4d20f",
2214     "wires": [
2215       [
2216         "51559d2e.77fa84"
2217       ]
2218     ]
2219   },
2220   {
2221     "id": "51559d2e.77fa84",
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": 1050.8278198242188,
2227     "y": 1216.2764692306519,
2228     "z": "92c42fbf.4d20f",
2229     "wires": []
2230   },
2231   {
2232     "id": "fba55779.a815d8",
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": 1420.7566719055176,
2238     "y": 1222.423252105713,
2239     "z": "92c42fbf.4d20f",
2240     "wires": []
2241   },
2242   {
2243     "id": "f9894d64.11723",
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.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`\" />",
2247     "comments": "",
2248     "outputs": 1,
2249     "x": 731.3994293212891,
2250     "y": 1258.4588842391968,
2251     "z": "92c42fbf.4d20f",
2252     "wires": [
2253       []
2254     ]
2255   },
2256   {
2257     "id": "679b7c09.467594",
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": 1411.042236328125,
2263     "y": 1175.1375246047974,
2264     "z": "92c42fbf.4d20f",
2265     "wires": []
2266   }
2267 ]