eb1c854dfe6dd4eab8186a67eb3de0e8f64a8f94
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-deactivate.json
1 [
2   {
3     "id": "2bdb51b9.ffb50e",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 113,
8     "y": 44,
9     "z": "e055a121.e69f6",
10     "wires": [
11       [
12         "d26984ef.8ad798"
13       ]
14     ]
15   },
16   {
17     "id": "d26984ef.8ad798",
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": 325.00000381469727,
26     "y": 116.0000171661377,
27     "z": "e055a121.e69f6",
28     "wires": [
29       [
30         "a82211ff.bcbea"
31       ]
32     ]
33   },
34   {
35     "id": "a82211ff.bcbea",
36     "type": "method",
37     "name": "sdwan-attachment-topology-operation-deactivate",
38     "xml": "<method rpc='sdwan-attachment-topology-operation-deactivate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 313.0001220703125,
42     "y": 204,
43     "z": "e055a121.e69f6",
44     "wires": [
45       [
46         "17e8ca87.b6b645"
47       ]
48     ]
49   },
50   {
51     "id": "17e8ca87.b6b645",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 329.0001220703125,
59     "y": 759.0002446174622,
60     "z": "e055a121.e69f6",
61     "wires": [
62       [
63         "7ace4d9e.58fcf4",
64         "bea2d27c.d685a",
65         "be682c34.83d48",
66         "693dc7ad.b4be18",
67         "eca332.2df45cd",
68         "e0348bfe.6da088",
69         "fa3b1cd4.6bac8",
70         "666c2133.53672",
71         "41482a99.a59c34",
72         "15783ea7.8d4171",
73         "bde1b214.c3f7b",
74         "96128287.8c319",
75         "6a5b6014.c0c27",
76         "e1363ac.79d3bc8",
77         "47bcadbc.4f3554",
78         "5c4aaa91.ee5904",
79         "adeb4876.0f5318",
80         "2ec20a50.f21ce6",
81         "5ceee25e.e4656c",
82         "e3162e1d.557c8",
83         "10dfad38.ba80e3",
84         "8825a27f.2ee76"
85       ]
86     ]
87   },
88   {
89     "id": "7ace4d9e.58fcf4",
90     "type": "set",
91     "name": "set tmp.ar.allotted-resource-id,etc",
92     "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",
93     "comments": "",
94     "x": 725.9935607910156,
95     "y": 157.9934868812561,
96     "z": "e055a121.e69f6",
97     "wires": []
98   },
99   {
100     "id": "3dae2c9.5fd3cd4",
101     "type": "comment",
102     "name": "set tmp ar-id to fetch resource from MDSAL",
103     "info": "",
104     "comments": "",
105     "x": 754.9538726806641,
106     "y": 122.02528285980225,
107     "z": "e055a121.e69f6",
108     "wires": []
109   },
110   {
111     "id": "bea2d27c.d685a",
112     "type": "set",
113     "name": "set tmp.ar.self-link",
114     "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",
115     "comments": "",
116     "x": 679.9934997558594,
117     "y": 250.99349212646484,
118     "z": "e055a121.e69f6",
119     "wires": []
120   },
121   {
122     "id": "693dc7ad.b4be18",
123     "type": "execute",
124     "name": "execute Properties",
125     "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",
126     "comments": "",
127     "outputs": 1,
128     "x": 686.2553901672363,
129     "y": 338.6602210998535,
130     "z": "e055a121.e69f6",
131     "wires": [
132       []
133     ]
134   },
135   {
136     "id": "be682c34.83d48",
137     "type": "execute",
138     "name": "generate allotted-resource tmp.ar-url",
139     "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",
140     "comments": "",
141     "outputs": 1,
142     "x": 736.2554931640625,
143     "y": 425.66022205352783,
144     "z": "e055a121.e69f6",
145     "wires": [
146       []
147     ]
148   },
149   {
150     "id": "e6fef6dc.2d5ab8",
151     "type": "comment",
152     "name": "GET connection-attachment-allotted-resource from mdsal",
153     "info": "",
154     "comments": "",
155     "x": 779.8085174560547,
156     "y": 517.5387678146362,
157     "z": "e055a121.e69f6",
158     "wires": []
159   },
160   {
161     "id": "43378634.47ada8",
162     "type": "comment",
163     "name": "Used for setting output to API Handler",
164     "info": "",
165     "comments": "",
166     "x": 733.9935302734375,
167     "y": 217.993501663208,
168     "z": "e055a121.e69f6",
169     "wires": []
170   },
171   {
172     "id": "2638e15d.85e40e",
173     "type": "comment",
174     "name": "Obtain different URL, template location etc",
175     "info": "For saving resource information to MDSAL & for AAI",
176     "comments": "",
177     "x": 751.9934959411621,
178     "y": 303.8823823928833,
179     "z": "e055a121.e69f6",
180     "wires": []
181   },
182   {
183     "id": "9a84fa70.2209a8",
184     "type": "comment",
185     "name": "Used to Get AR by id to MDSAL, same as self-link",
186     "info": "",
187     "comments": "",
188     "x": 777.9935150146484,
189     "y": 390.8823413848877,
190     "z": "e055a121.e69f6",
191     "wires": []
192   },
193   {
194     "id": "d74c07cb.d7c4f8",
195     "type": "success",
196     "name": "success",
197     "xml": "<outcome value='success'>\n",
198     "comments": "",
199     "outputs": 1,
200     "x": 1220.6668281555176,
201     "y": 544.0000286102295,
202     "z": "e055a121.e69f6",
203     "wires": [
204       [
205         "34940fae.b43b1"
206       ]
207     ]
208   },
209   {
210     "id": "34940fae.b43b1",
211     "type": "block",
212     "name": "block: atomic",
213     "xml": "<block atomic=\"true\">\n",
214     "atomic": "false",
215     "comments": "",
216     "outputs": 1,
217     "x": 1389.6668319702148,
218     "y": 542.4999294281006,
219     "z": "e055a121.e69f6",
220     "wires": [
221       [
222         "d6a9a70b.860c78"
223       ]
224     ]
225   },
226   {
227     "id": "d6a9a70b.860c78",
228     "type": "switchNode",
229     "name": "switch cr length",
230     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
231     "comments": "",
232     "outputs": 1,
233     "x": 1562.5241012573242,
234     "y": 480.11909198760986,
235     "z": "e055a121.e69f6",
236     "wires": [
237       [
238         "99f7b40f.a33748",
239         "e196788b.7f6f48"
240       ]
241     ]
242   },
243   {
244     "id": "99f7b40f.a33748",
245     "type": "other",
246     "name": "outcome 1",
247     "xml": "<outcome value='1'>\n",
248     "comments": "",
249     "outputs": 1,
250     "x": 1799.8573455810547,
251     "y": 458.1190423965454,
252     "z": "e055a121.e69f6",
253     "wires": [
254       [
255         "4d65a30c.1bb46c"
256       ]
257     ]
258   },
259   {
260     "id": "4d65a30c.1bb46c",
261     "type": "block",
262     "name": "block: atomic",
263     "xml": "<block atomic='true'>\n",
264     "atomic": "false",
265     "comments": "",
266     "outputs": 1,
267     "x": 1984.3812351226807,
268     "y": 455.02387619018555,
269     "z": "e055a121.e69f6",
270     "wires": [
271       [
272         "c007de9b.1a8ea",
273         "5a0d997d.5410d8",
274         "58ae2d07.a93234"
275       ]
276     ]
277   },
278   {
279     "id": "89d000a2.16646",
280     "type": "returnFailure",
281     "name": "return failure",
282     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n",
283     "comments": "",
284     "x": 1908.5190773010254,
285     "y": 580.0661172866821,
286     "z": "e055a121.e69f6",
287     "wires": []
288   },
289   {
290     "id": "c9d998e2.a81b38",
291     "type": "other",
292     "name": "other",
293     "xml": "<outcome value='Other'>\n",
294     "comments": "",
295     "outputs": 1,
296     "x": 1212.5186309814453,
297     "y": 579.0661134719849,
298     "z": "e055a121.e69f6",
299     "wires": [
300       [
301         "d2ec7fde.451d7"
302       ]
303     ]
304   },
305   {
306     "id": "d2ec7fde.451d7",
307     "type": "block",
308     "name": "block: atomic",
309     "xml": "<block atomic=\"true\">\n",
310     "atomic": "false",
311     "comments": "",
312     "outputs": 1,
313     "x": 1392.5185813903809,
314     "y": 579.7326641082764,
315     "z": "e055a121.e69f6",
316     "wires": [
317       [
318         "89d000a2.16646"
319       ]
320     ]
321   },
322   {
323     "id": "e196788b.7f6f48",
324     "type": "other",
325     "name": "other",
326     "xml": "<outcome value='Other'>\n",
327     "comments": "",
328     "outputs": 1,
329     "x": 1788.1852989196777,
330     "y": 495.3994026184082,
331     "z": "e055a121.e69f6",
332     "wires": [
333       [
334         "89d000a2.16646"
335       ]
336     ]
337   },
338   {
339     "id": "c007de9b.1a8ea",
340     "type": "set",
341     "name": "set connection-attachment-ar from get",
342     "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
343     "comments": "",
344     "x": 2230.444793701172,
345     "y": 415.0001058578491,
346     "z": "e055a121.e69f6",
347     "wires": []
348   },
349   {
350     "id": "58ae2d07.a93234",
351     "type": "set",
352     "name": "set oper-status",
353     "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",
354     "comments": "",
355     "x": 2163.4447898864746,
356     "y": 505.42866039276123,
357     "z": "e055a121.e69f6",
358     "wires": []
359   },
360   {
361     "id": "5a0d997d.5410d8",
362     "type": "switchNode",
363     "name": "switch order-status",
364     "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
365     "comments": "",
366     "outputs": 1,
367     "x": 2174.444625854492,
368     "y": 459.0001096725464,
369     "z": "e055a121.e69f6",
370     "wires": [
371       [
372         "d61247de.876858",
373         "8beb5612.c27698"
374       ]
375     ]
376   },
377   {
378     "id": "d61247de.876858",
379     "type": "outcome",
380     "name": "outcome Active",
381     "xml": "<outcome value='Active'>\n",
382     "comments": "",
383     "outputs": 1,
384     "x": 2381.044574737549,
385     "y": 449.0001096725464,
386     "z": "e055a121.e69f6",
387     "wires": [
388       [
389         "17b6e937.06f8f7"
390       ]
391     ]
392   },
393   {
394     "id": "8beb5612.c27698",
395     "type": "outcome",
396     "name": "outcome Other",
397     "xml": "<outcome value='Other'>\n",
398     "comments": "",
399     "outputs": 1,
400     "x": 2380.7590942382812,
401     "y": 491.4287004470825,
402     "z": "e055a121.e69f6",
403     "wires": [
404       [
405         "d4116f87.4108f"
406       ]
407     ]
408   },
409   {
410     "id": "17b6e937.06f8f7",
411     "type": "block",
412     "name": "block",
413     "xml": "<block>\n",
414     "atomic": "false",
415     "comments": "",
416     "outputs": 1,
417     "x": 2533.5151290893555,
418     "y": 447.3757600784302,
419     "z": "e055a121.e69f6",
420     "wires": [
421       []
422     ]
423   },
424   {
425     "id": "d4116f87.4108f",
426     "type": "returnFailure",
427     "name": "return failure",
428     "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",
429     "comments": "",
430     "x": 2553.6669845581055,
431     "y": 488.000111579895,
432     "z": "e055a121.e69f6",
433     "wires": []
434   },
435   {
436     "id": "30756753.5fa938",
437     "type": "call",
438     "name": "call GENERIC-RESOURCE-API:sdwan-get-saved-ar-param",
439     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-saved-ar-param' mode='sync' >\n",
440     "comments": "",
441     "outputs": 1,
442     "x": 941.3031158447266,
443     "y": 640.4935908317566,
444     "z": "e055a121.e69f6",
445     "wires": [
446       []
447     ]
448   },
449   {
450     "id": "eca332.2df45cd",
451     "type": "block",
452     "name": "block: atomic",
453     "xml": "<block atomic=\"true\">\n",
454     "atomic": "false",
455     "comments": "",
456     "outputs": 1,
457     "x": 638.3092803955078,
458     "y": 641.4999389648438,
459     "z": "e055a121.e69f6",
460     "wires": [
461       [
462         "30756753.5fa938"
463       ]
464     ]
465   },
466   {
467     "id": "804022a6.3de27",
468     "type": "comment",
469     "name": "GET parent-service-data from mdsal to check existence of other End point",
470     "info": "",
471     "comments": "",
472     "x": 820.0004425048828,
473     "y": 702.5316982269287,
474     "z": "e055a121.e69f6",
475     "wires": []
476   },
477   {
478     "id": "de0fff38.b1af5",
479     "type": "comment",
480     "name": "GET connection-attachment-ar to store AR data from mdsal",
481     "info": "",
482     "comments": "",
483     "x": 2213.472946166992,
484     "y": 379.5039691925049,
485     "z": "e055a121.e69f6",
486     "wires": []
487   },
488   {
489     "id": "4c932022.44bb4",
490     "type": "comment",
491     "name": "Set source end point",
492     "info": "",
493     "comments": "",
494     "x": 651.9728393554688,
495     "y": 609.2540645599365,
496     "z": "e055a121.e69f6",
497     "wires": []
498   },
499   {
500     "id": "e0348bfe.6da088",
501     "type": "set",
502     "name": "set tmp.ar.parent-service-instance-id",
503     "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",
504     "comments": "",
505     "x": 704.9689178466797,
506     "y": 734.0002088546753,
507     "z": "e055a121.e69f6",
508     "wires": []
509   },
510   {
511     "id": "9796ef03.4b4b1",
512     "type": "success",
513     "name": "success",
514     "xml": "<outcome value='success'>\n",
515     "comments": "",
516     "outputs": 1,
517     "x": 1082.9689140319824,
518     "y": 783.000207901001,
519     "z": "e055a121.e69f6",
520     "wires": [
521       [
522         "b45d9050.17bcb"
523       ]
524     ]
525   },
526   {
527     "id": "bd6c8a09.7c4c38",
528     "type": "other",
529     "name": "other",
530     "xml": "<outcome value='Other'>\n",
531     "comments": "",
532     "outputs": 1,
533     "x": 1074.8207168579102,
534     "y": 818.0662927627563,
535     "z": "e055a121.e69f6",
536     "wires": [
537       [
538         "69c73a80.242c64"
539       ]
540     ]
541   },
542   {
543     "id": "69c73a80.242c64",
544     "type": "returnFailure",
545     "name": "return failure",
546     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n",
547     "comments": "",
548     "x": 1249.9694023132324,
549     "y": 814.3336429595947,
550     "z": "e055a121.e69f6",
551     "wires": []
552   },
553   {
554     "id": "b45d9050.17bcb",
555     "type": "block",
556     "name": "block",
557     "xml": "<block>\n",
558     "atomic": "false",
559     "comments": "",
560     "outputs": 1,
561     "x": 1233.9689140319824,
562     "y": 781.000207901001,
563     "z": "e055a121.e69f6",
564     "wires": [
565       []
566     ]
567   },
568   {
569     "id": "a4e20887.0b85d8",
570     "type": "failure",
571     "name": "failure",
572     "xml": "<outcome value='failure'>\n",
573     "comments": "",
574     "outputs": 1,
575     "x": 948.7308311462402,
576     "y": 1757.9527840614319,
577     "z": "e055a121.e69f6",
578     "wires": [
579       [
580         "8d059d44.8e7a7"
581       ]
582     ]
583   },
584   {
585     "id": "8d059d44.8e7a7",
586     "type": "returnFailure",
587     "name": "return failure",
588     "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",
589     "comments": "",
590     "x": 1110.2546653747559,
591     "y": 1802.5718301534653,
592     "z": "e055a121.e69f6",
593     "wires": []
594   },
595   {
596     "id": "e2a5ade9.56c27",
597     "type": "failure",
598     "name": "not-found",
599     "xml": "<outcome value='not-found'>\n",
600     "comments": "",
601     "outputs": 1,
602     "x": 950.8260726928711,
603     "y": 1823.714726805687,
604     "z": "e055a121.e69f6",
605     "wires": [
606       [
607         "8d059d44.8e7a7"
608       ]
609     ]
610   },
611   {
612     "id": "3cae81ad.c7916e",
613     "type": "comment",
614     "name": "Save Resource to AAI",
615     "info": "",
616     "comments": "",
617     "x": 662.7784996032715,
618     "y": 1773.3021473884583,
619     "z": "e055a121.e69f6",
620     "wires": []
621   },
622   {
623     "id": "96128287.8c319",
624     "type": "set",
625     "name": "set output to api handler",
626     "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",
627     "comments": "",
628     "x": 677.5461959838867,
629     "y": 1694.8276286125183,
630     "z": "e055a121.e69f6",
631     "wires": []
632   },
633   {
634     "id": "6a5b6014.c0c27",
635     "type": "returnSuccess",
636     "name": "return success",
637     "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",
638     "comments": "",
639     "x": 624.9593353271484,
640     "y": 1889.4434475898743,
641     "z": "e055a121.e69f6",
642     "wires": []
643   },
644   {
645     "id": "bde1b214.c3f7b",
646     "type": "execute",
647     "name": "execute RestApiCallNode - PUT AR by id",
648     "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",
649     "comments": "",
650     "outputs": 1,
651     "x": 727.2782974243164,
652     "y": 1602.4684023857117,
653     "z": "e055a121.e69f6",
654     "wires": [
655       [
656         "7e9cd2ab.0312bc",
657         "85c2a287.db093",
658         "b89f709c.ac27e"
659       ]
660     ]
661   },
662   {
663     "id": "7e9cd2ab.0312bc",
664     "type": "not-found",
665     "name": "not-found",
666     "xml": "<outcome value='not-found'>\n",
667     "comments": "",
668     "outputs": 1,
669     "x": 995.9196739196777,
670     "y": 1653.7998141273856,
671     "z": "e055a121.e69f6",
672     "wires": [
673       [
674         "c16778e0.4835a8"
675       ]
676     ]
677   },
678   {
679     "id": "85c2a287.db093",
680     "type": "failure",
681     "name": "failure",
682     "xml": "<outcome value='failure'>\n",
683     "comments": "",
684     "outputs": 1,
685     "x": 986.9197235107422,
686     "y": 1622.2998398765922,
687     "z": "e055a121.e69f6",
688     "wires": [
689       [
690         "c16778e0.4835a8"
691       ]
692     ]
693   },
694   {
695     "id": "b89f709c.ac27e",
696     "type": "success",
697     "name": "success",
698     "xml": "<outcome value='success'>\n",
699     "comments": "",
700     "outputs": 1,
701     "x": 990.6697616577148,
702     "y": 1592.6569447517395,
703     "z": "e055a121.e69f6",
704     "wires": [
705       [
706         "69a0963d.493b78"
707       ]
708     ]
709   },
710   {
711     "id": "c16778e0.4835a8",
712     "type": "returnFailure",
713     "name": "return failure",
714     "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",
715     "comments": "",
716     "x": 1156.6697616577148,
717     "y": 1623.04986371845,
718     "z": "e055a121.e69f6",
719     "wires": []
720   },
721   {
722     "id": "69a0963d.493b78",
723     "type": "block",
724     "name": "block",
725     "xml": "<block>\n",
726     "atomic": "false",
727     "comments": "",
728     "outputs": 1,
729     "x": 1132.3257293701172,
730     "y": 1588.8491139411926,
731     "z": "e055a121.e69f6",
732     "wires": [
733       []
734     ]
735   },
736   {
737     "id": "fa3b1cd4.6bac8",
738     "type": "set",
739     "name": "set ar-data",
740     "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",
741     "comments": "",
742     "x": 627.4919166564941,
743     "y": 1452.8493254184723,
744     "z": "e055a121.e69f6",
745     "wires": []
746   },
747   {
748     "id": "41482a99.a59c34",
749     "type": "execute",
750     "name": "execute getTime",
751     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
752     "comments": "",
753     "outputs": 1,
754     "x": 644.777759552002,
755     "y": 1525.4689230918884,
756     "z": "e055a121.e69f6",
757     "wires": [
758       []
759     ]
760   },
761   {
762     "id": "15783ea7.8d4171",
763     "type": "set",
764     "name": "set allotted-resource-oper-status",
765     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\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",
766     "comments": "",
767     "x": 699.7648162841797,
768     "y": 1563.420060634613,
769     "z": "e055a121.e69f6",
770     "wires": []
771   },
772   {
773     "id": "666c2133.53672",
774     "type": "set",
775     "name": "set model-data",
776     "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.` \" />",
777     "comments": "",
778     "x": 641.3334579467773,
779     "y": 1492.0239758491516,
780     "z": "e055a121.e69f6",
781     "wires": []
782   },
783   {
784     "id": "6edf8947.4ad548",
785     "type": "comment",
786     "name": "Prepare data for allotted-resource addition to MDSAL",
787     "info": "This will add to allotted-resource which is present inside service.",
788     "comments": "",
789     "x": 750.6668891906738,
790     "y": 1408.0238506793976,
791     "z": "e055a121.e69f6",
792     "wires": []
793   },
794   {
795     "id": "2f4fb378.be435c",
796     "type": "comment",
797     "name": "Add to allotted-resources in mdsal",
798     "info": "",
799     "comments": "",
800     "x": 692.2467155456543,
801     "y": 1375.4371523857117,
802     "z": "e055a121.e69f6",
803     "wires": []
804   },
805   {
806     "id": "e440d873.f4a568",
807     "type": "update",
808     "name": "update AAI allotted-resource",
809     "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=\"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=\"PendingDelete\" />\n",
810     "comments": "",
811     "outputs": 1,
812     "x": 689.2227783203125,
813     "y": 1810.7542901039124,
814     "z": "e055a121.e69f6",
815     "wires": [
816       [
817         "a4e20887.0b85d8",
818         "e2a5ade9.56c27"
819       ]
820     ]
821   },
822   {
823     "id": "e1363ac.79d3bc8",
824     "type": "execute",
825     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
826     "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",
827     "comments": "",
828     "outputs": 1,
829     "x": 853.3339538574219,
830     "y": 560.4999494552612,
831     "z": "e055a121.e69f6",
832     "wires": [
833       [
834         "d74c07cb.d7c4f8",
835         "c9d998e2.a81b38"
836       ]
837     ]
838   },
839   {
840     "id": "47bcadbc.4f3554",
841     "type": "execute",
842     "name": "get parent-service-data tmp.ar-url-psd",
843     "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",
844     "comments": "",
845     "outputs": 1,
846     "x": 707.0001983642578,
847     "y": 769.0002107620239,
848     "z": "e055a121.e69f6",
849     "wires": [
850       []
851     ]
852   },
853   {
854     "id": "5c4aaa91.ee5904",
855     "type": "execute",
856     "name": "execute RestApiCallNode - get-resource parent service data",
857     "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",
858     "comments": "",
859     "outputs": 1,
860     "x": 774.0001602172852,
861     "y": 804.0002946853638,
862     "z": "e055a121.e69f6",
863     "wires": [
864       [
865         "9796ef03.4b4b1",
866         "bd6c8a09.7c4c38"
867       ]
868     ]
869   },
870   {
871     "id": "adaeb2d3.7f8c4",
872     "type": "success",
873     "name": "success",
874     "xml": "<outcome value='success'>\n",
875     "comments": "",
876     "outputs": 1,
877     "x": 2594.812660217285,
878     "y": 821.329451084137,
879     "z": "e055a121.e69f6",
880     "wires": [
881       [
882         "a3d10a9a.3a1df8"
883       ]
884     ]
885   },
886   {
887     "id": "cddd16fb.abe6b8",
888     "type": "other",
889     "name": "other",
890     "xml": "<outcome value='Other'>\n",
891     "comments": "",
892     "outputs": 1,
893     "x": 2628.66414642334,
894     "y": 767.3954176902771,
895     "z": "e055a121.e69f6",
896     "wires": [
897       [
898         "af15096f.71acd8"
899       ]
900     ]
901   },
902   {
903     "id": "fee7243c.735b08",
904     "type": "for",
905     "name": "for arvidx.. mdsal-sd.service-data.vnfs.vnf_length[]",
906     "xml": "<for index='arvidx' start='0' end='`$mdsal-sd.service-data.vnfs.vnf_length`' >\n",
907     "comments": "",
908     "outputs": 1,
909     "x": 2113.81356048584,
910     "y": 1648.9966716766357,
911     "z": "e055a121.e69f6",
912     "wires": [
913       [
914         "6c84c38f.13baec"
915       ]
916     ]
917   },
918   {
919     "id": "6c84c38f.13baec",
920     "type": "block",
921     "name": "block atmoic",
922     "xml": "<block atomic=\"true\">\n",
923     "atomic": "false",
924     "comments": "",
925     "outputs": 1,
926     "x": 2389.4801330566406,
927     "y": 1649.9967045783997,
928     "z": "e055a121.e69f6",
929     "wires": [
930       [
931         "fc4d2ad5.d7c638"
932       ]
933     ]
934   },
935   {
936     "id": "fc4d2ad5.d7c638",
937     "type": "switchNode",
938     "name": "switch ActivateSiteInstance",
939     "xml": "<switch test=\"`$mdsal-parentsd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == ActivateSiteInstance`\">\n    \n    \n\n",
940     "comments": "",
941     "outputs": 1,
942     "x": 2626.34383392334,
943     "y": 1654.1946682929993,
944     "z": "e055a121.e69f6",
945     "wires": [
946       [
947         "3d2b3845.2b40b8"
948       ]
949     ]
950   },
951   {
952     "id": "3d2b3845.2b40b8",
953     "type": "outcomeTrue",
954     "name": "true",
955     "xml": "<outcome value='true'>\n",
956     "comments": "",
957     "outputs": 1,
958     "x": 2835.343349456787,
959     "y": 1654.194821357727,
960     "z": "e055a121.e69f6",
961     "wires": [
962       [
963         "1ec9b1bd.90608e"
964       ]
965     ]
966   },
967   {
968     "id": "c0ef9502.2ffda8",
969     "type": "set",
970     "name": "set tmp.sitevidx ",
971     "xml": "<set>\n<parameter name='tmp.sitevidx' value='`$arvidx`' />\n\n",
972     "comments": "",
973     "x": 2232.3442993164062,
974     "y": 1758.1952500343323,
975     "z": "e055a121.e69f6",
976     "wires": []
977   },
978   {
979     "id": "faa3fd1c.58594",
980     "type": "set",
981     "name": "set prop.ar-parent-service-instance-id",
982     "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",
983     "comments": "",
984     "x": 2148.8124618530273,
985     "y": 1071.9961004257202,
986     "z": "e055a121.e69f6",
987     "wires": []
988   },
989   {
990     "id": "798afd86.2541c4",
991     "type": "for",
992     "name": "for loop aridx - Get role from allotted resource",
993     "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",
994     "comments": "",
995     "outputs": 1,
996     "x": 2174.812255859375,
997     "y": 1020.4959716796875,
998     "z": "e055a121.e69f6",
999     "wires": [
1000       [
1001         "20bb02be.0259ee"
1002       ]
1003     ]
1004   },
1005   {
1006     "id": "20bb02be.0259ee",
1007     "type": "block",
1008     "name": "block",
1009     "xml": "<block>\n",
1010     "atomic": "false",
1011     "comments": "",
1012     "outputs": 1,
1013     "x": 2429.81258392334,
1014     "y": 1017.496431350708,
1015     "z": "e055a121.e69f6",
1016     "wires": [
1017       [
1018         "245bf6ff.3e669a",
1019         "c47b810c.d3dc3"
1020       ]
1021     ]
1022   },
1023   {
1024     "id": "245bf6ff.3e669a",
1025     "type": "switchNode",
1026     "name": "switch Role",
1027     "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",
1028     "comments": "",
1029     "outputs": 1,
1030     "x": 2559.8124046325684,
1031     "y": 989.4963684082031,
1032     "z": "e055a121.e69f6",
1033     "wires": [
1034       [
1035         "2a2eadb0.1dbad2"
1036       ]
1037     ]
1038   },
1039   {
1040     "id": "2a2eadb0.1dbad2",
1041     "type": "outcomeTrue",
1042     "name": "true",
1043     "xml": "<outcome value='true'>\n",
1044     "comments": "",
1045     "outputs": 1,
1046     "x": 2700.8127365112305,
1047     "y": 988.4963674545288,
1048     "z": "e055a121.e69f6",
1049     "wires": [
1050       [
1051         "991f431c.722fb"
1052       ]
1053     ]
1054   },
1055   {
1056     "id": "991f431c.722fb",
1057     "type": "set",
1058     "name": "set prop.role",
1059     "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",
1060     "comments": "",
1061     "x": 2866.8134002685547,
1062     "y": 983.0962705612183,
1063     "z": "e055a121.e69f6",
1064     "wires": []
1065   },
1066   {
1067     "id": "f74ee755.f16cf8",
1068     "type": "success",
1069     "name": "success",
1070     "xml": "<outcome value='success'>\n",
1071     "comments": "",
1072     "outputs": 1,
1073     "x": 2446.8130836486816,
1074     "y": 1166.9963779449463,
1075     "z": "e055a121.e69f6",
1076     "wires": [
1077       [
1078         "cbc38822.1755a8"
1079       ]
1080     ]
1081   },
1082   {
1083     "id": "32c3c46f.3bc2bc",
1084     "type": "other",
1085     "name": "other",
1086     "xml": "<outcome value='Other'>\n",
1087     "comments": "",
1088     "outputs": 1,
1089     "x": 2440.664825439453,
1090     "y": 1123.0624151229858,
1091     "z": "e055a121.e69f6",
1092     "wires": [
1093       [
1094         "7c65d2f6.31dcec"
1095       ]
1096     ]
1097   },
1098   {
1099     "id": "af15096f.71acd8",
1100     "type": "block",
1101     "name": "block",
1102     "xml": "<block>\n",
1103     "atomic": "false",
1104     "comments": "",
1105     "outputs": 1,
1106     "x": 2754.812271118164,
1107     "y": 764.4958510398865,
1108     "z": "e055a121.e69f6",
1109     "wires": [
1110       []
1111     ]
1112   },
1113   {
1114     "id": "a3d10a9a.3a1df8",
1115     "type": "block",
1116     "name": "block atomic",
1117     "xml": "<block atomic=\"true\">\n",
1118     "atomic": "false",
1119     "comments": "",
1120     "outputs": 1,
1121     "x": 1884.3121337890625,
1122     "y": 1038.4959716796875,
1123     "z": "e055a121.e69f6",
1124     "wires": [
1125       [
1126         "798afd86.2541c4",
1127         "faa3fd1c.58594",
1128         "e9b06c97.acbe5",
1129         "6b58bb8e.b3cd84"
1130       ]
1131     ]
1132   },
1133   {
1134     "id": "7c65d2f6.31dcec",
1135     "type": "block",
1136     "name": "block",
1137     "xml": "<block>\n",
1138     "atomic": "false",
1139     "comments": "",
1140     "outputs": 1,
1141     "x": 2570.3129444122314,
1142     "y": 1116.496335029602,
1143     "z": "e055a121.e69f6",
1144     "wires": [
1145       []
1146     ]
1147   },
1148   {
1149     "id": "cbc38822.1755a8",
1150     "type": "block",
1151     "name": "block atomic",
1152     "xml": "<block atomic=\"true\">\n",
1153     "atomic": "false",
1154     "comments": "",
1155     "outputs": 1,
1156     "x": 1960.3124237060547,
1157     "y": 1243.495985031128,
1158     "z": "e055a121.e69f6",
1159     "wires": [
1160       [
1161         "d2493073.c1028"
1162       ]
1163     ]
1164   },
1165   {
1166     "id": "2180b01e.7e4f6",
1167     "type": "for",
1168     "name": "for loop siteidx - Get site ID from servicedata",
1169     "xml": "<for index=\"siteidx\" start=\"0\" end=\"`$mdsal-parentsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n    \n    \n",
1170     "comments": "",
1171     "outputs": 1,
1172     "x": 2324.3151473999023,
1173     "y": 1799.4970078468323,
1174     "z": "e055a121.e69f6",
1175     "wires": [
1176       [
1177         "af63b1cd.e76ae"
1178       ]
1179     ]
1180   },
1181   {
1182     "id": "e04f34e4.013728",
1183     "type": "switchNode",
1184     "name": "switch siteId",
1185     "xml": "<switch test=\"`$mdsal-parentsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].name == 'siteId'`\">\n",
1186     "comments": "",
1187     "outputs": 1,
1188     "x": 2396.3171310424805,
1189     "y": 1867.4979872703552,
1190     "z": "e055a121.e69f6",
1191     "wires": [
1192       [
1193         "f8f1f3f8.78972"
1194       ]
1195     ]
1196   },
1197   {
1198     "id": "b95ce81a.c946a8",
1199     "type": "block",
1200     "name": "block atomic",
1201     "xml": "<block atomic=\"true\">\n",
1202     "atomic": "false",
1203     "comments": "",
1204     "outputs": 1,
1205     "x": 2250.8154067993164,
1206     "y": 1940.99702501297,
1207     "z": "e055a121.e69f6",
1208     "wires": [
1209       [
1210         "fb38a029.7518f",
1211         "4ede6e05.800f6"
1212       ]
1213     ]
1214   },
1215   {
1216     "id": "e3162e1d.557c8",
1217     "type": "execute",
1218     "name": "execute RestApiCallNode delete vpn topology",
1219     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-tolopogy.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpn1Id + '/topology'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
1220     "comments": "",
1221     "outputs": 1,
1222     "x": 725.8129196166992,
1223     "y": 1200.4966821670532,
1224     "z": "e055a121.e69f6",
1225     "wires": [
1226       [
1227         "512bde3d.9ae1f",
1228         "b1a2ea7d.7f7bd8"
1229       ]
1230     ]
1231   },
1232   {
1233     "id": "512bde3d.9ae1f",
1234     "type": "success",
1235     "name": "success",
1236     "xml": "<outcome value='success'>\n",
1237     "comments": "",
1238     "outputs": 1,
1239     "x": 980.812686920166,
1240     "y": 1216.4966821670532,
1241     "z": "e055a121.e69f6",
1242     "wires": [
1243       [
1244         "94f6bfc2.443d3"
1245       ]
1246     ]
1247   },
1248   {
1249     "id": "94f6bfc2.443d3",
1250     "type": "block",
1251     "name": "block : atomic",
1252     "xml": "<block atomic=\"true\">",
1253     "atomic": "true",
1254     "comments": "",
1255     "outputs": 1,
1256     "x": 1150.8126258850098,
1257     "y": 1219.4966821670532,
1258     "z": "e055a121.e69f6",
1259     "wires": [
1260       []
1261     ]
1262   },
1263   {
1264     "id": "8511117c.800f2",
1265     "type": "returnFailure",
1266     "name": "return failure",
1267     "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 rest api\" />\n",
1268     "comments": "",
1269     "x": 1150.8127479553223,
1270     "y": 1175.4966821670532,
1271     "z": "e055a121.e69f6",
1272     "wires": []
1273   },
1274   {
1275     "id": "b1a2ea7d.7f7bd8",
1276     "type": "failure",
1277     "name": "failure",
1278     "xml": "<outcome value='failure'>\n",
1279     "comments": "",
1280     "outputs": 1,
1281     "x": 983.8126258850098,
1282     "y": 1175.4966821670532,
1283     "z": "e055a121.e69f6",
1284     "wires": [
1285       [
1286         "8511117c.800f2"
1287       ]
1288     ]
1289   },
1290   {
1291     "id": "7731dc6f.5a7d24",
1292     "type": "set",
1293     "name": "set controller data",
1294     "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",
1295     "comments": "",
1296     "x": 1131.3796367645264,
1297     "y": 972.1728582382202,
1298     "z": "e055a121.e69f6",
1299     "wires": []
1300   },
1301   {
1302     "id": "8825a27f.2ee76",
1303     "type": "get-resource",
1304     "name": "get-resource esr-thirdparty-sdnc",
1305     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = SDWAN-Controller AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
1306     "comments": "",
1307     "outputs": 1,
1308     "x": 700.8793792724609,
1309     "y": 1023.1732087135315,
1310     "z": "e055a121.e69f6",
1311     "wires": [
1312       [
1313         "2e6a47b6.7b6de8",
1314         "9dc29fcc.585cf",
1315         "49b46c59.711bd4"
1316       ]
1317     ]
1318   },
1319   {
1320     "id": "2e6a47b6.7b6de8",
1321     "type": "success",
1322     "name": "success",
1323     "xml": "<outcome value='success'>\n",
1324     "comments": "",
1325     "outputs": 1,
1326     "x": 959.8796710968018,
1327     "y": 978.1728420257568,
1328     "z": "e055a121.e69f6",
1329     "wires": [
1330       [
1331         "7731dc6f.5a7d24"
1332       ]
1333     ]
1334   },
1335   {
1336     "id": "9dc29fcc.585cf",
1337     "type": "not-found",
1338     "name": "not-found",
1339     "xml": "<outcome value='not-found'>\n",
1340     "comments": "",
1341     "outputs": 1,
1342     "x": 956.3703880310059,
1343     "y": 1016.7469387054443,
1344     "z": "e055a121.e69f6",
1345     "wires": [
1346       [
1347         "8fde510d.f3ff3"
1348       ]
1349     ]
1350   },
1351   {
1352     "id": "49b46c59.711bd4",
1353     "type": "other",
1354     "name": "other",
1355     "xml": "<outcome value='Other'>\n",
1356     "comments": "",
1357     "outputs": 1,
1358     "x": 951.7033958435059,
1359     "y": 1058.0802516937256,
1360     "z": "e055a121.e69f6",
1361     "wires": [
1362       [
1363         "9ea97502.11aad8"
1364       ]
1365     ]
1366   },
1367   {
1368     "id": "8fde510d.f3ff3",
1369     "type": "returnFailure",
1370     "name": "return failure",
1371     "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",
1372     "comments": "",
1373     "x": 1106.9417037963867,
1374     "y": 1011.0326910018921,
1375     "z": "e055a121.e69f6",
1376     "wires": []
1377   },
1378   {
1379     "id": "9ea97502.11aad8",
1380     "type": "returnFailure",
1381     "name": "return failure",
1382     "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",
1383     "comments": "",
1384     "x": 1113.4758567810059,
1385     "y": 1059.5194606781006,
1386     "z": "e055a121.e69f6",
1387     "wires": []
1388   },
1389   {
1390     "id": "d2493073.c1028",
1391     "type": "for",
1392     "name": "for pnidx.. mdsal-psd.service-data.networks.network_length[]",
1393     "xml": "<for index='pnidx' start='0' end='`$mdsal-parentsd.service-data.networks.network_length`' >\n",
1394     "comments": "",
1395     "outputs": 1,
1396     "x": 2285.311996459961,
1397     "y": 1242.9957127571106,
1398     "z": "e055a121.e69f6",
1399     "wires": [
1400       [
1401         "220869b3.8ab4c6"
1402       ]
1403     ]
1404   },
1405   {
1406     "id": "220869b3.8ab4c6",
1407     "type": "block",
1408     "name": "block",
1409     "xml": "<block>\n",
1410     "atomic": "false",
1411     "comments": "",
1412     "outputs": 1,
1413     "x": 1963.9790878295898,
1414     "y": 1333.995548248291,
1415     "z": "e055a121.e69f6",
1416     "wires": [
1417       [
1418         "542e96e2.bce748"
1419       ]
1420     ]
1421   },
1422   {
1423     "id": "542e96e2.bce748",
1424     "type": "switchNode",
1425     "name": "switch ActivateSDWANConnectivityInstance",
1426     "xml": "<switch test=\"`$mdsal-parentsd.service-data.networks.network[$pnidx].network-data.request-information.request-action == 'ActivateSDWANConnectivityInstance'`\">\n    \n    \n\n",
1427     "comments": "",
1428     "outputs": 1,
1429     "x": 2208.979820251465,
1430     "y": 1335.9959144592285,
1431     "z": "e055a121.e69f6",
1432     "wires": [
1433       [
1434         "6a416d6d.a241f4"
1435       ]
1436     ]
1437   },
1438   {
1439     "id": "6a416d6d.a241f4",
1440     "type": "outcomeTrue",
1441     "name": "true",
1442     "xml": "<outcome value='true'>\n",
1443     "comments": "",
1444     "outputs": 1,
1445     "x": 2465.9793128967285,
1446     "y": 1334.9960446357727,
1447     "z": "e055a121.e69f6",
1448     "wires": [
1449       [
1450         "fe572e69.46e77"
1451       ]
1452     ]
1453   },
1454   {
1455     "id": "fd8cdc4f.58f91",
1456     "type": "for",
1457     "name": "for loop paramidx - Get topology from servicedata",
1458     "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",
1459     "comments": "",
1460     "outputs": 1,
1461     "x": 2267.9799995422363,
1462     "y": 1424.995632648468,
1463     "z": "e055a121.e69f6",
1464     "wires": [
1465       [
1466         "21109ad6.0bc416"
1467       ]
1468     ]
1469   },
1470   {
1471     "id": "21109ad6.0bc416",
1472     "type": "block",
1473     "name": "block",
1474     "xml": "<block>\n",
1475     "atomic": "false",
1476     "comments": "",
1477     "outputs": 1,
1478     "x": 2533.979688644409,
1479     "y": 1421.9959559440613,
1480     "z": "e055a121.e69f6",
1481     "wires": [
1482       [
1483         "c6ab4f3c.02f18",
1484         "dd125781.58e528"
1485       ]
1486     ]
1487   },
1488   {
1489     "id": "c6ab4f3c.02f18",
1490     "type": "switchNode",
1491     "name": "switch topology",
1492     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'topology'`\">\n",
1493     "comments": "",
1494     "outputs": 1,
1495     "x": 2704.98002243042,
1496     "y": 1390.9954657554626,
1497     "z": "e055a121.e69f6",
1498     "wires": [
1499       [
1500         "ec8b6683.dafbe8"
1501       ]
1502     ]
1503   },
1504   {
1505     "id": "ec8b6683.dafbe8",
1506     "type": "outcomeTrue",
1507     "name": "true",
1508     "xml": "<outcome value='true'>\n",
1509     "comments": "",
1510     "outputs": 1,
1511     "x": 2856.9800128936768,
1512     "y": 1392.9954962730408,
1513     "z": "e055a121.e69f6",
1514     "wires": [
1515       [
1516         "8651aac5.31b1a8"
1517       ]
1518     ]
1519   },
1520   {
1521     "id": "8651aac5.31b1a8",
1522     "type": "set",
1523     "name": "set topology",
1524     "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",
1525     "comments": "",
1526     "x": 3000.9800243377686,
1527     "y": 1392.5954308509827,
1528     "z": "e055a121.e69f6",
1529     "wires": []
1530   },
1531   {
1532     "id": "dd125781.58e528",
1533     "type": "switchNode",
1534     "name": "switch vpnId",
1535     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'vpnId'`\">\n",
1536     "comments": "",
1537     "outputs": 1,
1538     "x": 2696.645746231079,
1539     "y": 1433.328447818756,
1540     "z": "e055a121.e69f6",
1541     "wires": [
1542       [
1543         "d2a6c128.0e306"
1544       ]
1545     ]
1546   },
1547   {
1548     "id": "d2a6c128.0e306",
1549     "type": "outcomeTrue",
1550     "name": "true",
1551     "xml": "<outcome value='true'>\n",
1552     "comments": "",
1553     "outputs": 1,
1554     "x": 2848.645736694336,
1555     "y": 1435.3284783363342,
1556     "z": "e055a121.e69f6",
1557     "wires": [
1558       [
1559         "88095b1a.e451a8"
1560       ]
1561     ]
1562   },
1563   {
1564     "id": "88095b1a.e451a8",
1565     "type": "set",
1566     "name": "set prop.vpn1Id",
1567     "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",
1568     "comments": "",
1569     "x": 2992.6457481384277,
1570     "y": 1434.9284129142761,
1571     "z": "e055a121.e69f6",
1572     "wires": []
1573   },
1574   {
1575     "id": "10dfad38.ba80e3",
1576     "type": "execute",
1577     "name": "execute RestApiCallNode delete vpn ",
1578     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/vpn'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
1579     "comments": "",
1580     "outputs": 1,
1581     "x": 698.8125915527344,
1582     "y": 1311.9966473579407,
1583     "z": "e055a121.e69f6",
1584     "wires": [
1585       [
1586         "dbba5b2e.06b178",
1587         "92b8b7a2.551998"
1588       ]
1589     ]
1590   },
1591   {
1592     "id": "dbba5b2e.06b178",
1593     "type": "success",
1594     "name": "success",
1595     "xml": "<outcome value='success'>\n",
1596     "comments": "",
1597     "outputs": 1,
1598     "x": 931.8126697540283,
1599     "y": 1336.9966464042664,
1600     "z": "e055a121.e69f6",
1601     "wires": [
1602       [
1603         "647fdeef.e91dd"
1604       ]
1605     ]
1606   },
1607   {
1608     "id": "647fdeef.e91dd",
1609     "type": "block",
1610     "name": "block : atomic",
1611     "xml": "<block atomic=\"true\">",
1612     "atomic": "true",
1613     "comments": "",
1614     "outputs": 1,
1615     "x": 1101.812608718872,
1616     "y": 1339.9966464042664,
1617     "z": "e055a121.e69f6",
1618     "wires": [
1619       []
1620     ]
1621   },
1622   {
1623     "id": "487a6881.62d628",
1624     "type": "returnFailure",
1625     "name": "return failure",
1626     "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 rest api\" />\n",
1627     "comments": "",
1628     "x": 1101.8127307891846,
1629     "y": 1295.9966464042664,
1630     "z": "e055a121.e69f6",
1631     "wires": []
1632   },
1633   {
1634     "id": "92b8b7a2.551998",
1635     "type": "failure",
1636     "name": "failure",
1637     "xml": "<outcome value='failure'>\n",
1638     "comments": "",
1639     "outputs": 1,
1640     "x": 934.8126087188721,
1641     "y": 1295.9966464042664,
1642     "z": "e055a121.e69f6",
1643     "wires": [
1644       [
1645         "487a6881.62d628"
1646       ]
1647     ]
1648   },
1649   {
1650     "id": "d0aa490b.36da18",
1651     "type": "set",
1652     "name": "set prop.name",
1653     "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",
1654     "comments": "",
1655     "x": 2914.8124046325684,
1656     "y": 1035.9959411621094,
1657     "z": "e055a121.e69f6",
1658     "wires": []
1659   },
1660   {
1661     "id": "c47b810c.d3dc3",
1662     "type": "switchNode",
1663     "name": "switch sdwanVpnName",
1664     "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",
1665     "comments": "",
1666     "outputs": 1,
1667     "x": 2595.312244415283,
1668     "y": 1038.9959335327148,
1669     "z": "e055a121.e69f6",
1670     "wires": [
1671       [
1672         "947974c8.04d658"
1673       ]
1674     ]
1675   },
1676   {
1677     "id": "947974c8.04d658",
1678     "type": "outcomeTrue",
1679     "name": "true",
1680     "xml": "<outcome value='true'>\n",
1681     "comments": "",
1682     "outputs": 1,
1683     "x": 2766.3124046325684,
1684     "y": 1037.9960021972656,
1685     "z": "e055a121.e69f6",
1686     "wires": [
1687       [
1688         "d0aa490b.36da18"
1689       ]
1690     ]
1691   },
1692   {
1693     "id": "ddcd4395.ffc5",
1694     "type": "set",
1695     "name": "set prop.ar.provided-allotted-resource-id",
1696     "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\n",
1697     "comments": "",
1698     "x": 2080.81201171875,
1699     "y": 779.9960656166077,
1700     "z": "e055a121.e69f6",
1701     "wires": []
1702   },
1703   {
1704     "id": "de8fd68.62a4428",
1705     "type": "block",
1706     "name": "block atomic",
1707     "xml": "<block atomic=\"true\">\n",
1708     "atomic": "false",
1709     "comments": "",
1710     "outputs": 1,
1711     "x": 1258.8424682617188,
1712     "y": 887.1932353973389,
1713     "z": "e055a121.e69f6",
1714     "wires": [
1715       [
1716         "1e72ef49.46e8b1"
1717       ]
1718     ]
1719   },
1720   {
1721     "id": "25ee3acf.45d7b6",
1722     "type": "execute",
1723     "name": "generate tmp.ar-url-connection url",
1724     "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",
1725     "comments": "",
1726     "outputs": 1,
1727     "x": 2065.32967376709,
1728     "y": 813.329541683197,
1729     "z": "e055a121.e69f6",
1730     "wires": [
1731       []
1732     ]
1733   },
1734   {
1735     "id": "e392cace.793438",
1736     "type": "execute",
1737     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1738     "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",
1739     "comments": "",
1740     "outputs": 1,
1741     "x": 2205.329303741455,
1742     "y": 848.9958329200745,
1743     "z": "e055a121.e69f6",
1744     "wires": [
1745       [
1746         "cddd16fb.abe6b8",
1747         "adaeb2d3.7f8c4"
1748       ]
1749     ]
1750   },
1751   {
1752     "id": "e9b06c97.acbe5",
1753     "type": "execute",
1754     "name": "execute RestApiCallNode - get parent service data",
1755     "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",
1756     "comments": "",
1757     "outputs": 1,
1758     "x": 2180.9965438842773,
1759     "y": 1141.9958896636963,
1760     "z": "e055a121.e69f6",
1761     "wires": [
1762       [
1763         "f74ee755.f16cf8",
1764         "32c3c46f.3bc2bc"
1765       ]
1766     ]
1767   },
1768   {
1769     "id": "fe572e69.46e77",
1770     "type": "block",
1771     "name": "block atmoic",
1772     "xml": "<block atomic=\"true\">\n",
1773     "atomic": "false",
1774     "comments": "",
1775     "outputs": 1,
1776     "x": 1925.329963684082,
1777     "y": 1431.6630954742432,
1778     "z": "e055a121.e69f6",
1779     "wires": [
1780       [
1781         "fd8cdc4f.58f91",
1782         "1d60ce05.e0ad92",
1783         "11102f6.31d23d1",
1784         "a4fa1e7f.2461f"
1785       ]
1786     ]
1787   },
1788   {
1789     "id": "fb38a029.7518f",
1790     "type": "set",
1791     "name": "set prop.attach.siteId",
1792     "xml": "<set>\n<parameter name='prop.attach.siteId' value='`$mdsal-parentsd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].value`' />\n\n",
1793     "comments": "",
1794     "x": 2516.998279571533,
1795     "y": 1922.663851261139,
1796     "z": "e055a121.e69f6",
1797     "wires": []
1798   },
1799   {
1800     "id": "f8f1f3f8.78972",
1801     "type": "outcomeTrue",
1802     "name": "true",
1803     "xml": "<outcome value='true'>\n",
1804     "comments": "",
1805     "outputs": 1,
1806     "x": 2536.99853515625,
1807     "y": 1867.6636776924133,
1808     "z": "e055a121.e69f6",
1809     "wires": [
1810       [
1811         "b95ce81a.c946a8"
1812       ]
1813     ]
1814   },
1815   {
1816     "id": "1ec9b1bd.90608e",
1817     "type": "block",
1818     "name": "block atmoic",
1819     "xml": "<block atomic=\"true\">\n",
1820     "atomic": "false",
1821     "comments": "",
1822     "outputs": 1,
1823     "x": 2029.664421081543,
1824     "y": 1753.3301882743835,
1825     "z": "e055a121.e69f6",
1826     "wires": [
1827       [
1828         "2180b01e.7e4f6",
1829         "c0ef9502.2ffda8"
1830       ]
1831     ]
1832   },
1833   {
1834     "id": "adeb4876.0f5318",
1835     "type": "for",
1836     "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
1837     "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
1838     "comments": "",
1839     "outputs": 1,
1840     "x": 866.181224822998,
1841     "y": 922.635835647583,
1842     "z": "e055a121.e69f6",
1843     "wires": [
1844       [
1845         "de8fd68.62a4428"
1846       ]
1847     ]
1848   },
1849   {
1850     "id": "af63b1cd.e76ae",
1851     "type": "block",
1852     "name": "block atmoic",
1853     "xml": "<block atomic=\"true\">\n",
1854     "atomic": "false",
1855     "comments": "",
1856     "outputs": 1,
1857     "x": 2241.664779663086,
1858     "y": 1864.0008358955383,
1859     "z": "e055a121.e69f6",
1860     "wires": [
1861       [
1862         "e04f34e4.013728"
1863       ]
1864     ]
1865   },
1866   {
1867     "id": "2ec20a50.f21ce6",
1868     "type": "set",
1869     "name": "set prop.siteAttachement_length=0",
1870     "xml": "<set>\n<parameter name='prop.siteAttachements_length' value='0' />\n<parameter name='prop.siteIds_length' value='0' />\n\n\n\n",
1871     "comments": "",
1872     "x": 712,
1873     "y": 865.5311913490295,
1874     "z": "e055a121.e69f6",
1875     "wires": []
1876   },
1877   {
1878     "id": "4ede6e05.800f6",
1879     "type": "set",
1880     "name": "Add sites to list and update length",
1881     "xml": "<set>\n<parameter name='prop.siteIds[$prop.siteIds_length]' value='`$prop.attach.siteId`' />\n<parameter name='prop.siteIds_length' value='`$prop.siteIds_length + 1`' />\n\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].siteId' value='`$prop.attach.siteId`' />\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles[0]' value='`$prop.role`' />\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles_length' value='1' />\n<parameter name='prop.siteAttachements_length' value='`$prop.siteAttachements_length + 1`' />\n\n\n\n\n\n\n\n\n\n\n\n\n",
1882     "comments": "",
1883     "x": 2544.502113342285,
1884     "y": 1967.5316562652588,
1885     "z": "e055a121.e69f6",
1886     "wires": []
1887   },
1888   {
1889     "id": "6b58bb8e.b3cd84",
1890     "type": "execute",
1891     "name": "generate prop.ar-parent-service-instance-id",
1892     "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",
1893     "comments": "",
1894     "outputs": 1,
1895     "x": 2165.500144958496,
1896     "y": 1104.5314102172852,
1897     "z": "e055a121.e69f6",
1898     "wires": [
1899       []
1900     ]
1901   },
1902   {
1903     "id": "1d60ce05.e0ad92",
1904     "type": "set",
1905     "name": "set prop.ar-service-instance-id",
1906     "xml": "<set>\n<parameter name='prop.ar-service-instance-id' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.service-information.service-instance-id`' />\n",
1907     "comments": "",
1908     "x": 2198.5005645751953,
1909     "y": 1493.531328201294,
1910     "z": "e055a121.e69f6",
1911     "wires": []
1912   },
1913   {
1914     "id": "11102f6.31d23d1",
1915     "type": "execute",
1916     "name": "generate prop.ar-service-instance-id",
1917     "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",
1918     "comments": "",
1919     "outputs": 1,
1920     "x": 2223.833023071289,
1921     "y": 1526.4096240997314,
1922     "z": "e055a121.e69f6",
1923     "wires": [
1924       []
1925     ]
1926   },
1927   {
1928     "id": "a4fa1e7f.2461f",
1929     "type": "execute",
1930     "name": "execute RestApiCallNode - get-resource service data",
1931     "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",
1932     "comments": "",
1933     "outputs": 1,
1934     "x": 2274.8331451416016,
1935     "y": 1563.4094429016113,
1936     "z": "e055a121.e69f6",
1937     "wires": [
1938       [
1939         "6e57063a.0010c8",
1940         "6eeded55.346254"
1941       ]
1942     ]
1943   },
1944   {
1945     "id": "6eeded55.346254",
1946     "type": "success",
1947     "name": "success",
1948     "xml": "<outcome value='success'>\n",
1949     "comments": "",
1950     "outputs": 1,
1951     "x": 2553.5002098083496,
1952     "y": 1559.5311546325684,
1953     "z": "e055a121.e69f6",
1954     "wires": [
1955       [
1956         "4470f1a5.f3f5a"
1957       ]
1958     ]
1959   },
1960   {
1961     "id": "6e57063a.0010c8",
1962     "type": "other",
1963     "name": "other",
1964     "xml": "<outcome value='Other'>\n",
1965     "comments": "",
1966     "outputs": 1,
1967     "x": 2551.3525390625,
1968     "y": 1520.597282409668,
1969     "z": "e055a121.e69f6",
1970     "wires": [
1971       [
1972         "85643aef.3b34a8"
1973       ]
1974     ]
1975   },
1976   {
1977     "id": "85643aef.3b34a8",
1978     "type": "block",
1979     "name": "block",
1980     "xml": "<block>\n",
1981     "atomic": "false",
1982     "comments": "",
1983     "outputs": 1,
1984     "x": 2681.000732421875,
1985     "y": 1514.0312423706055,
1986     "z": "e055a121.e69f6",
1987     "wires": [
1988       []
1989     ]
1990   },
1991   {
1992     "id": "4470f1a5.f3f5a",
1993     "type": "block",
1994     "name": "block atmoic",
1995     "xml": "<block atomic=\"true\">\n",
1996     "atomic": "false",
1997     "comments": "",
1998     "outputs": 1,
1999     "x": 2702.501106262207,
2000     "y": 1560.5313396453857,
2001     "z": "e055a121.e69f6",
2002     "wires": [
2003       [
2004         "fee7243c.735b08"
2005       ]
2006     ]
2007   },
2008   {
2009     "id": "1e72ef49.46e8b1",
2010     "type": "switchNode",
2011     "name": "switch allotted resource ID match",
2012     "xml": "<switch test=\"`$prop.ar.provided-allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n",
2013     "comments": "",
2014     "outputs": 1,
2015     "x": 1482.500114440918,
2016     "y": 884.0312638282776,
2017     "z": "e055a121.e69f6",
2018     "wires": [
2019       [
2020         "e324a45a.91d0f8"
2021       ]
2022     ]
2023   },
2024   {
2025     "id": "e324a45a.91d0f8",
2026     "type": "outcomeFalse",
2027     "name": "false",
2028     "xml": "<outcome value='false'>\n",
2029     "comments": "",
2030     "outputs": 1,
2031     "x": 1696.5001792907715,
2032     "y": 815.0312943458557,
2033     "z": "e055a121.e69f6",
2034     "wires": [
2035       [
2036         "80651cf1.36d15"
2037       ]
2038     ]
2039   },
2040   {
2041     "id": "80651cf1.36d15",
2042     "type": "block",
2043     "name": "block atomic",
2044     "xml": "<block atomic=\"true\">\n",
2045     "atomic": "false",
2046     "comments": "",
2047     "outputs": 1,
2048     "x": 1838.5004272460938,
2049     "y": 814.0312352180481,
2050     "z": "e055a121.e69f6",
2051     "wires": [
2052       [
2053         "ddcd4395.ffc5",
2054         "25ee3acf.45d7b6",
2055         "e392cace.793438"
2056       ]
2057     ]
2058   },
2059   {
2060     "id": "c2710bbf.7f5e98",
2061     "type": "comment",
2062     "name": "if allotted resource Id match with the incomming allotted resource ID,  sites in this service vnf should not be included",
2063     "info": "parent instId 200 |  parent instId 200\nservice instId 100| service InstId 200\n site1            |       site2\n allotted resId 1 | allotted resId 2 \n --------------------------------------\n Deactivate:\n loop for provided allotted res ID\n If allotted resId 1 matches with incomming allotted resource Id then we should delete the sites available in the service data 100\n for this we have to send request for deleting with site IDs site2 without including site1.\n \n \n ",
2064     "comments": "",
2065     "x": 1791.5000305175781,
2066     "y": 747.0312962532043,
2067     "z": "e055a121.e69f6",
2068     "wires": []
2069   },
2070   {
2071     "id": "4c2f69ef.f668e8",
2072     "type": "comment",
2073     "name": "loop for provided allotted rsource Id",
2074     "info": "",
2075     "comments": "",
2076     "x": 978.5,
2077     "y": 886.5312523841858,
2078     "z": "e055a121.e69f6",
2079     "wires": []
2080   },
2081   {
2082     "id": "ce1eca8a.5fa098",
2083     "type": "comment",
2084     "name": "get allotted resource for the allotted resource ID",
2085     "info": "",
2086     "comments": "",
2087     "x": 2352.500328063965,
2088     "y": 748.5311741828918,
2089     "z": "e055a121.e69f6",
2090     "wires": []
2091   },
2092   {
2093     "id": "c6139ab0.680cf8",
2094     "type": "comment",
2095     "name": "get parent service data to get connectivity which has connectivity and vpn ID",
2096     "info": "",
2097     "comments": "",
2098     "x": 2135.499855041504,
2099     "y": 975.5312519073486,
2100     "z": "e055a121.e69f6",
2101     "wires": []
2102   },
2103   {
2104     "id": "1497e243.92bc1e",
2105     "type": "comment",
2106     "name": "get service data from service instance id from allotted reosurce Id to get sites vnf",
2107     "info": "",
2108     "comments": "",
2109     "x": 2324.499855041504,
2110     "y": 1457.5310516357422,
2111     "z": "e055a121.e69f6",
2112     "wires": []
2113   },
2114   {
2115     "id": "5ceee25e.e4656c",
2116     "type": "call",
2117     "name": "call sdwan-vnf-topology-operation-underlay for delete",
2118     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-wanport-vnf-topology-operation-underlay' mode='sync' >\n",
2119     "comments": "",
2120     "outputs": 1,
2121     "x": 759.5001220703125,
2122     "y": 1116.5312991142273,
2123     "z": "e055a121.e69f6",
2124     "wires": [
2125       []
2126     ]
2127   }
2128 ]