448098c16e5b3ac5520d8e90daaa9f81b1b4bf4c
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-deactivate.json
1 [
2   {
3     "id": "7430f04a.1774",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 85.00390625,
8     "y": 36.999999046325684,
9     "z": "5c37638f.99fd6c",
10     "wires": [
11       [
12         "7176568b.6d7dc8"
13       ]
14     ]
15   },
16   {
17     "id": "7176568b.6d7dc8",
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": 297.00391006469727,
26     "y": 109.00001621246338,
27     "z": "5c37638f.99fd6c",
28     "wires": [
29       [
30         "1281a61c.40d4ba"
31       ]
32     ]
33   },
34   {
35     "id": "1281a61c.40d4ba",
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": 285.0040283203125,
42     "y": 196.99999904632568,
43     "z": "5c37638f.99fd6c",
44     "wires": [
45       [
46         "cb789dee.7e0ea"
47       ]
48     ]
49   },
50   {
51     "id": "cb789dee.7e0ea",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 301.0040283203125,
59     "y": 752.0002436637878,
60     "z": "5c37638f.99fd6c",
61     "wires": [
62       [
63         "b3e4fdfd.73c98",
64         "6160e5eb.eabd7c",
65         "36f03095.f7624",
66         "8b80d6.bfb8df28",
67         "c3c64d17.8399b",
68         "79aaa9c4.4c7368",
69         "f2ac7b6a.645e98",
70         "17808c6d.fbcb64",
71         "d8dcd45a.fcb0f8",
72         "bbb611b3.fa639",
73         "3e42552f.cc2b3a",
74         "dcc926d7.4a3488",
75         "4623075d.b08748",
76         "c6cd0b89.3b6988",
77         "d4cf70d6.63ae5",
78         "96741252.7528f",
79         "b30219b.8f8bde8",
80         "7dea7f5b.a3b81",
81         "5b38ce7d.8512a",
82         "4ed101e7.e4ff7",
83         "2a2d01cd.5646fe",
84         "4b5b6f95.ae82b",
85         "63f14ad3.bfd8e4"
86       ]
87     ]
88   },
89   {
90     "id": "b3e4fdfd.73c98",
91     "type": "set",
92     "name": "set tmp.ar.allotted-resource-id,etc",
93     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
94     "comments": "",
95     "x": 697.9974670410156,
96     "y": 150.9934859275818,
97     "z": "5c37638f.99fd6c",
98     "wires": []
99   },
100   {
101     "id": "e79f6bf1.e760c8",
102     "type": "comment",
103     "name": "set tmp ar-id to fetch resource from MDSAL",
104     "info": "",
105     "comments": "",
106     "x": 726.9577789306641,
107     "y": 115.02528190612793,
108     "z": "5c37638f.99fd6c",
109     "wires": []
110   },
111   {
112     "id": "6160e5eb.eabd7c",
113     "type": "set",
114     "name": "set tmp.ar.self-link",
115     "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
116     "comments": "",
117     "x": 651.9974060058594,
118     "y": 243.99349117279053,
119     "z": "5c37638f.99fd6c",
120     "wires": []
121   },
122   {
123     "id": "8b80d6.bfb8df28",
124     "type": "execute",
125     "name": "execute Properties",
126     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
127     "comments": "",
128     "outputs": 1,
129     "x": 658.2592964172363,
130     "y": 331.6602201461792,
131     "z": "5c37638f.99fd6c",
132     "wires": [
133       []
134     ]
135   },
136   {
137     "id": "36f03095.f7624",
138     "type": "execute",
139     "name": "generate allotted-resource tmp.ar-url",
140     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
141     "comments": "",
142     "outputs": 1,
143     "x": 708.2593994140625,
144     "y": 418.6602210998535,
145     "z": "5c37638f.99fd6c",
146     "wires": [
147       []
148     ]
149   },
150   {
151     "id": "a79814d4.cdbed8",
152     "type": "comment",
153     "name": "GET connection-attachment-allotted-resource from mdsal",
154     "info": "",
155     "comments": "",
156     "x": 751.8124237060547,
157     "y": 510.5387668609619,
158     "z": "5c37638f.99fd6c",
159     "wires": []
160   },
161   {
162     "id": "ad19a624.c947b8",
163     "type": "comment",
164     "name": "Used for setting output to API Handler",
165     "info": "",
166     "comments": "",
167     "x": 705.9974365234375,
168     "y": 210.9935007095337,
169     "z": "5c37638f.99fd6c",
170     "wires": []
171   },
172   {
173     "id": "543e0d5a.474aa4",
174     "type": "comment",
175     "name": "Obtain different URL, template location etc",
176     "info": "For saving resource information to MDSAL & for AAI",
177     "comments": "",
178     "x": 723.9974021911621,
179     "y": 296.882381439209,
180     "z": "5c37638f.99fd6c",
181     "wires": []
182   },
183   {
184     "id": "512154aa.b3fb3c",
185     "type": "comment",
186     "name": "Used to Get AR by id to MDSAL, same as self-link",
187     "info": "",
188     "comments": "",
189     "x": 749.9974212646484,
190     "y": 383.8823404312134,
191     "z": "5c37638f.99fd6c",
192     "wires": []
193   },
194   {
195     "id": "515ee298.e46b6c",
196     "type": "success",
197     "name": "success",
198     "xml": "<outcome value='success'>\n",
199     "comments": "",
200     "outputs": 1,
201     "x": 1192.6707344055176,
202     "y": 537.0000276565552,
203     "z": "5c37638f.99fd6c",
204     "wires": [
205       [
206         "abb973f1.c78ab"
207       ]
208     ]
209   },
210   {
211     "id": "abb973f1.c78ab",
212     "type": "block",
213     "name": "block: atomic",
214     "xml": "<block atomic=\"true\">\n",
215     "atomic": "false",
216     "comments": "",
217     "outputs": 1,
218     "x": 1361.6707382202148,
219     "y": 535.4999284744263,
220     "z": "5c37638f.99fd6c",
221     "wires": [
222       [
223         "e8fcf921.210ef8"
224       ]
225     ]
226   },
227   {
228     "id": "e8fcf921.210ef8",
229     "type": "switchNode",
230     "name": "switch cr length",
231     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
232     "comments": "",
233     "outputs": 1,
234     "x": 1534.5280075073242,
235     "y": 473.11909103393555,
236     "z": "5c37638f.99fd6c",
237     "wires": [
238       [
239         "386d63ec.fd330c",
240         "7e042bd8.776d24"
241       ]
242     ]
243   },
244   {
245     "id": "386d63ec.fd330c",
246     "type": "other",
247     "name": "outcome 1",
248     "xml": "<outcome value='1'>\n",
249     "comments": "",
250     "outputs": 1,
251     "x": 1771.8612518310547,
252     "y": 451.1190414428711,
253     "z": "5c37638f.99fd6c",
254     "wires": [
255       [
256         "d200a0fb.28d9a"
257       ]
258     ]
259   },
260   {
261     "id": "d200a0fb.28d9a",
262     "type": "block",
263     "name": "block: atomic",
264     "xml": "<block atomic='true'>\n",
265     "atomic": "false",
266     "comments": "",
267     "outputs": 1,
268     "x": 1956.3851413726807,
269     "y": 448.02387523651123,
270     "z": "5c37638f.99fd6c",
271     "wires": [
272       [
273         "e41bac9c.61118",
274         "88329a50.a105f8",
275         "89950442.815df8"
276       ]
277     ]
278   },
279   {
280     "id": "d190b08a.d3505",
281     "type": "returnFailure",
282     "name": "return failure",
283     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n",
284     "comments": "",
285     "x": 1880.5229835510254,
286     "y": 573.0661163330078,
287     "z": "5c37638f.99fd6c",
288     "wires": []
289   },
290   {
291     "id": "24c1e070.0695f",
292     "type": "other",
293     "name": "other",
294     "xml": "<outcome value='Other'>\n",
295     "comments": "",
296     "outputs": 1,
297     "x": 1184.5225372314453,
298     "y": 572.0661125183105,
299     "z": "5c37638f.99fd6c",
300     "wires": [
301       [
302         "4c6403f2.3fe66c"
303       ]
304     ]
305   },
306   {
307     "id": "4c6403f2.3fe66c",
308     "type": "block",
309     "name": "block: atomic",
310     "xml": "<block atomic=\"true\">\n",
311     "atomic": "false",
312     "comments": "",
313     "outputs": 1,
314     "x": 1364.5224876403809,
315     "y": 572.732663154602,
316     "z": "5c37638f.99fd6c",
317     "wires": [
318       [
319         "d190b08a.d3505"
320       ]
321     ]
322   },
323   {
324     "id": "7e042bd8.776d24",
325     "type": "other",
326     "name": "other",
327     "xml": "<outcome value='Other'>\n",
328     "comments": "",
329     "outputs": 1,
330     "x": 1760.1892051696777,
331     "y": 488.3994016647339,
332     "z": "5c37638f.99fd6c",
333     "wires": [
334       [
335         "d190b08a.d3505"
336       ]
337     ]
338   },
339   {
340     "id": "e41bac9c.61118",
341     "type": "set",
342     "name": "set connection-attachment-ar from get",
343     "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
344     "comments": "",
345     "x": 2202.448699951172,
346     "y": 408.0001049041748,
347     "z": "5c37638f.99fd6c",
348     "wires": []
349   },
350   {
351     "id": "89950442.815df8",
352     "type": "set",
353     "name": "set oper-status",
354     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
355     "comments": "",
356     "x": 2135.4486961364746,
357     "y": 498.4286594390869,
358     "z": "5c37638f.99fd6c",
359     "wires": []
360   },
361   {
362     "id": "88329a50.a105f8",
363     "type": "switchNode",
364     "name": "switch order-status",
365     "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
366     "comments": "",
367     "outputs": 1,
368     "x": 2146.448532104492,
369     "y": 452.00010871887207,
370     "z": "5c37638f.99fd6c",
371     "wires": [
372       [
373         "ca3f78a2.5bc238",
374         "968020a5.6806a"
375       ]
376     ]
377   },
378   {
379     "id": "ca3f78a2.5bc238",
380     "type": "outcome",
381     "name": "outcome Active",
382     "xml": "<outcome value='Active'>\n",
383     "comments": "",
384     "outputs": 1,
385     "x": 2353.048480987549,
386     "y": 442.00010871887207,
387     "z": "5c37638f.99fd6c",
388     "wires": [
389       [
390         "58491b2c.42f3c4"
391       ]
392     ]
393   },
394   {
395     "id": "968020a5.6806a",
396     "type": "outcome",
397     "name": "outcome Other",
398     "xml": "<outcome value='Other'>\n",
399     "comments": "",
400     "outputs": 1,
401     "x": 2352.7630004882812,
402     "y": 484.4286994934082,
403     "z": "5c37638f.99fd6c",
404     "wires": [
405       [
406         "4c9f7920.4c2598"
407       ]
408     ]
409   },
410   {
411     "id": "58491b2c.42f3c4",
412     "type": "block",
413     "name": "block",
414     "xml": "<block>\n",
415     "atomic": "false",
416     "comments": "",
417     "outputs": 1,
418     "x": 2505.5190353393555,
419     "y": 440.37575912475586,
420     "z": "5c37638f.99fd6c",
421     "wires": [
422       []
423     ]
424   },
425   {
426     "id": "4c9f7920.4c2598",
427     "type": "returnFailure",
428     "name": "return failure",
429     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" \n    value=\"`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
430     "comments": "",
431     "x": 2525.6708908081055,
432     "y": 481.0001106262207,
433     "z": "5c37638f.99fd6c",
434     "wires": []
435   },
436   {
437     "id": "60f55e27.f2b8e",
438     "type": "call",
439     "name": "call GENERIC-RESOURCE-API:sdwan-get-saved-ar-param",
440     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-saved-ar-param' mode='sync' >\n",
441     "comments": "",
442     "outputs": 1,
443     "x": 913.3070220947266,
444     "y": 633.4935898780823,
445     "z": "5c37638f.99fd6c",
446     "wires": [
447       []
448     ]
449   },
450   {
451     "id": "c3c64d17.8399b",
452     "type": "block",
453     "name": "block: atomic",
454     "xml": "<block atomic=\"true\">\n",
455     "atomic": "false",
456     "comments": "",
457     "outputs": 1,
458     "x": 610.3131866455078,
459     "y": 634.4999380111694,
460     "z": "5c37638f.99fd6c",
461     "wires": [
462       [
463         "60f55e27.f2b8e"
464       ]
465     ]
466   },
467   {
468     "id": "4352df33.d9426",
469     "type": "comment",
470     "name": "GET parent-service-data from mdsal to check existence of other End point",
471     "info": "",
472     "comments": "",
473     "x": 792.0043487548828,
474     "y": 695.5316972732544,
475     "z": "5c37638f.99fd6c",
476     "wires": []
477   },
478   {
479     "id": "536fbd5d.ad4c74",
480     "type": "comment",
481     "name": "GET connection-attachment-ar to store AR data from mdsal",
482     "info": "",
483     "comments": "",
484     "x": 2185.476852416992,
485     "y": 372.50396823883057,
486     "z": "5c37638f.99fd6c",
487     "wires": []
488   },
489   {
490     "id": "d407857f.3d4ed8",
491     "type": "comment",
492     "name": "Set source end point",
493     "info": "",
494     "comments": "",
495     "x": 623.9767456054688,
496     "y": 602.2540636062622,
497     "z": "5c37638f.99fd6c",
498     "wires": []
499   },
500   {
501     "id": "79aaa9c4.4c7368",
502     "type": "set",
503     "name": "set tmp.ar.parent-service-instance-id",
504     "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",
505     "comments": "",
506     "x": 676.9728240966797,
507     "y": 727.000207901001,
508     "z": "5c37638f.99fd6c",
509     "wires": []
510   },
511   {
512     "id": "a093fbeb.16ad58",
513     "type": "success",
514     "name": "success",
515     "xml": "<outcome value='success'>\n",
516     "comments": "",
517     "outputs": 1,
518     "x": 1054.9728202819824,
519     "y": 776.0002069473267,
520     "z": "5c37638f.99fd6c",
521     "wires": [
522       [
523         "c54cab5a.e88d98"
524       ]
525     ]
526   },
527   {
528     "id": "46b4b052.24e9d",
529     "type": "other",
530     "name": "other",
531     "xml": "<outcome value='Other'>\n",
532     "comments": "",
533     "outputs": 1,
534     "x": 1046.8246231079102,
535     "y": 811.066291809082,
536     "z": "5c37638f.99fd6c",
537     "wires": [
538       [
539         "b51504e3.dadba8"
540       ]
541     ]
542   },
543   {
544     "id": "b51504e3.dadba8",
545     "type": "returnFailure",
546     "name": "return failure",
547     "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",
548     "comments": "",
549     "x": 1221.9733085632324,
550     "y": 807.3336420059204,
551     "z": "5c37638f.99fd6c",
552     "wires": []
553   },
554   {
555     "id": "c54cab5a.e88d98",
556     "type": "block",
557     "name": "block",
558     "xml": "<block>\n",
559     "atomic": "false",
560     "comments": "",
561     "outputs": 1,
562     "x": 1205.9728202819824,
563     "y": 774.0002069473267,
564     "z": "5c37638f.99fd6c",
565     "wires": [
566       []
567     ]
568   },
569   {
570     "id": "bdec135a.84aa6",
571     "type": "failure",
572     "name": "failure",
573     "xml": "<outcome value='failure'>\n",
574     "comments": "",
575     "outputs": 1,
576     "x": 920.7347373962402,
577     "y": 1750.9527831077576,
578     "z": "5c37638f.99fd6c",
579     "wires": [
580       [
581         "323e9893.b0b728"
582       ]
583     ]
584   },
585   {
586     "id": "323e9893.b0b728",
587     "type": "returnFailure",
588     "name": "return failure",
589     "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",
590     "comments": "",
591     "x": 1082.2585716247559,
592     "y": 1795.571829199791,
593     "z": "5c37638f.99fd6c",
594     "wires": []
595   },
596   {
597     "id": "f668942a.019a38",
598     "type": "failure",
599     "name": "not-found",
600     "xml": "<outcome value='not-found'>\n",
601     "comments": "",
602     "outputs": 1,
603     "x": 922.8299789428711,
604     "y": 1816.7147258520126,
605     "z": "5c37638f.99fd6c",
606     "wires": [
607       [
608         "323e9893.b0b728"
609       ]
610     ]
611   },
612   {
613     "id": "24abbd36.f847b2",
614     "type": "comment",
615     "name": "Save Resource to AAI",
616     "info": "",
617     "comments": "",
618     "x": 634.7824058532715,
619     "y": 1766.302146434784,
620     "z": "5c37638f.99fd6c",
621     "wires": []
622   },
623   {
624     "id": "dcc926d7.4a3488",
625     "type": "set",
626     "name": "set output to api handler",
627     "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",
628     "comments": "",
629     "x": 649.5501022338867,
630     "y": 1687.827627658844,
631     "z": "5c37638f.99fd6c",
632     "wires": []
633   },
634   {
635     "id": "4623075d.b08748",
636     "type": "returnSuccess",
637     "name": "return success",
638     "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",
639     "comments": "",
640     "x": 596.9632415771484,
641     "y": 1882.4434466362,
642     "z": "5c37638f.99fd6c",
643     "wires": []
644   },
645   {
646     "id": "3e42552f.cc2b3a",
647     "type": "execute",
648     "name": "execute RestApiCallNode - PUT AR by id",
649     "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",
650     "comments": "",
651     "outputs": 1,
652     "x": 699.2822036743164,
653     "y": 1595.4684014320374,
654     "z": "5c37638f.99fd6c",
655     "wires": [
656       [
657         "5966123b.c0928c",
658         "28e0d860.c64a68",
659         "4d9dd2fd.a02e7c"
660       ]
661     ]
662   },
663   {
664     "id": "5966123b.c0928c",
665     "type": "not-found",
666     "name": "not-found",
667     "xml": "<outcome value='not-found'>\n",
668     "comments": "",
669     "outputs": 1,
670     "x": 967.9235801696777,
671     "y": 1646.7998131737113,
672     "z": "5c37638f.99fd6c",
673     "wires": [
674       [
675         "1d15a206.04371e"
676       ]
677     ]
678   },
679   {
680     "id": "28e0d860.c64a68",
681     "type": "failure",
682     "name": "failure",
683     "xml": "<outcome value='failure'>\n",
684     "comments": "",
685     "outputs": 1,
686     "x": 958.9236297607422,
687     "y": 1615.2998389229178,
688     "z": "5c37638f.99fd6c",
689     "wires": [
690       [
691         "1d15a206.04371e"
692       ]
693     ]
694   },
695   {
696     "id": "4d9dd2fd.a02e7c",
697     "type": "success",
698     "name": "success",
699     "xml": "<outcome value='success'>\n",
700     "comments": "",
701     "outputs": 1,
702     "x": 962.6736679077148,
703     "y": 1585.6569437980652,
704     "z": "5c37638f.99fd6c",
705     "wires": [
706       [
707         "e1b7a04e.aa4f3"
708       ]
709     ]
710   },
711   {
712     "id": "1d15a206.04371e",
713     "type": "returnFailure",
714     "name": "return failure",
715     "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",
716     "comments": "",
717     "x": 1128.6736679077148,
718     "y": 1616.0498627647758,
719     "z": "5c37638f.99fd6c",
720     "wires": []
721   },
722   {
723     "id": "e1b7a04e.aa4f3",
724     "type": "block",
725     "name": "block",
726     "xml": "<block>\n",
727     "atomic": "false",
728     "comments": "",
729     "outputs": 1,
730     "x": 1104.3296356201172,
731     "y": 1581.8491129875183,
732     "z": "5c37638f.99fd6c",
733     "wires": [
734       []
735     ]
736   },
737   {
738     "id": "f2ac7b6a.645e98",
739     "type": "set",
740     "name": "set ar-data",
741     "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",
742     "comments": "",
743     "x": 599.4958229064941,
744     "y": 1445.849324464798,
745     "z": "5c37638f.99fd6c",
746     "wires": []
747   },
748   {
749     "id": "d8dcd45a.fcb0f8",
750     "type": "execute",
751     "name": "execute getTime",
752     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
753     "comments": "",
754     "outputs": 1,
755     "x": 616.781665802002,
756     "y": 1518.468922138214,
757     "z": "5c37638f.99fd6c",
758     "wires": [
759       []
760     ]
761   },
762   {
763     "id": "bbb611b3.fa639",
764     "type": "set",
765     "name": "set allotted-resource-oper-status",
766     "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",
767     "comments": "",
768     "x": 671.7687225341797,
769     "y": 1556.4200596809387,
770     "z": "5c37638f.99fd6c",
771     "wires": []
772   },
773   {
774     "id": "17808c6d.fbcb64",
775     "type": "set",
776     "name": "set model-data",
777     "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.` \" />",
778     "comments": "",
779     "x": 613.3373641967773,
780     "y": 1485.0239748954773,
781     "z": "5c37638f.99fd6c",
782     "wires": []
783   },
784   {
785     "id": "83fab007.e00bd",
786     "type": "comment",
787     "name": "Prepare data for allotted-resource addition to MDSAL",
788     "info": "This will add to allotted-resource which is present inside service.",
789     "comments": "",
790     "x": 722.6707954406738,
791     "y": 1401.0238497257233,
792     "z": "5c37638f.99fd6c",
793     "wires": []
794   },
795   {
796     "id": "ce9eef3f.571d2",
797     "type": "comment",
798     "name": "Add to allotted-resources in mdsal",
799     "info": "",
800     "comments": "",
801     "x": 664.2506217956543,
802     "y": 1368.4371514320374,
803     "z": "5c37638f.99fd6c",
804     "wires": []
805   },
806   {
807     "id": "63f14ad3.bfd8e4",
808     "type": "update",
809     "name": "update AAI allotted-resource",
810     "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",
811     "comments": "",
812     "outputs": 1,
813     "x": 661.2266845703125,
814     "y": 1803.754289150238,
815     "z": "5c37638f.99fd6c",
816     "wires": [
817       [
818         "bdec135a.84aa6",
819         "f668942a.019a38"
820       ]
821     ]
822   },
823   {
824     "id": "c6cd0b89.3b6988",
825     "type": "execute",
826     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
827     "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",
828     "comments": "",
829     "outputs": 1,
830     "x": 825.3378601074219,
831     "y": 553.4999485015869,
832     "z": "5c37638f.99fd6c",
833     "wires": [
834       [
835         "515ee298.e46b6c",
836         "24c1e070.0695f"
837       ]
838     ]
839   },
840   {
841     "id": "d4cf70d6.63ae5",
842     "type": "execute",
843     "name": "get parent-service-data tmp.ar-url-psd",
844     "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",
845     "comments": "",
846     "outputs": 1,
847     "x": 679.0041046142578,
848     "y": 762.0002098083496,
849     "z": "5c37638f.99fd6c",
850     "wires": [
851       []
852     ]
853   },
854   {
855     "id": "96741252.7528f",
856     "type": "execute",
857     "name": "execute RestApiCallNode - get-resource parent service data",
858     "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",
859     "comments": "",
860     "outputs": 1,
861     "x": 746.0040664672852,
862     "y": 797.0002937316895,
863     "z": "5c37638f.99fd6c",
864     "wires": [
865       [
866         "a093fbeb.16ad58",
867         "46b4b052.24e9d"
868       ]
869     ]
870   },
871   {
872     "id": "490fd156.3cc2e",
873     "type": "success",
874     "name": "success",
875     "xml": "<outcome value='success'>\n",
876     "comments": "",
877     "outputs": 1,
878     "x": 2566.816566467285,
879     "y": 814.3294501304626,
880     "z": "5c37638f.99fd6c",
881     "wires": [
882       [
883         "88745fb7.28e43"
884       ]
885     ]
886   },
887   {
888     "id": "edb86366.daca5",
889     "type": "other",
890     "name": "other",
891     "xml": "<outcome value='Other'>\n",
892     "comments": "",
893     "outputs": 1,
894     "x": 2600.66805267334,
895     "y": 760.3954167366028,
896     "z": "5c37638f.99fd6c",
897     "wires": [
898       [
899         "ae1d17f2.d02858"
900       ]
901     ]
902   },
903   {
904     "id": "92d891d3.4ab0e",
905     "type": "for",
906     "name": "for arvidx.. mdsal-sd.service-data.vnfs.vnf_length[]",
907     "xml": "<for index='arvidx' start='0' end='`$mdsal-sd.service-data.vnfs.vnf_length`' >\n",
908     "comments": "",
909     "outputs": 1,
910     "x": 2085.81746673584,
911     "y": 1641.9966707229614,
912     "z": "5c37638f.99fd6c",
913     "wires": [
914       [
915         "71080db2.ebc5d4"
916       ]
917     ]
918   },
919   {
920     "id": "71080db2.ebc5d4",
921     "type": "block",
922     "name": "block atmoic",
923     "xml": "<block atomic=\"true\">\n",
924     "atomic": "false",
925     "comments": "",
926     "outputs": 1,
927     "x": 2361.4840393066406,
928     "y": 1642.9967036247253,
929     "z": "5c37638f.99fd6c",
930     "wires": [
931       [
932         "a5010038.a8cca"
933       ]
934     ]
935   },
936   {
937     "id": "a5010038.a8cca",
938     "type": "switchNode",
939     "name": "switch ActivateSiteInstance",
940     "xml": "<switch test=\"`$mdsal-sd.service-data.vnfs.vnf[$arvidx].vnf-data.request-information.request-action == ActivateSiteInstance`\">\n    \n    \n\n",
941     "comments": "",
942     "outputs": 1,
943     "x": 2598.34774017334,
944     "y": 1647.194667339325,
945     "z": "5c37638f.99fd6c",
946     "wires": [
947       [
948         "78d61896.379bb8"
949       ]
950     ]
951   },
952   {
953     "id": "78d61896.379bb8",
954     "type": "outcomeTrue",
955     "name": "true",
956     "xml": "<outcome value='true'>\n",
957     "comments": "",
958     "outputs": 1,
959     "x": 2807.347255706787,
960     "y": 1647.1948204040527,
961     "z": "5c37638f.99fd6c",
962     "wires": [
963       [
964         "bfec68b.915a698"
965       ]
966     ]
967   },
968   {
969     "id": "9280788a.1a5978",
970     "type": "set",
971     "name": "set tmp.sitevidx ",
972     "xml": "<set>\n<parameter name='tmp.sitevidx' value='`$arvidx`' />\n\n",
973     "comments": "",
974     "x": 2204.3482055664062,
975     "y": 1751.195249080658,
976     "z": "5c37638f.99fd6c",
977     "wires": []
978   },
979   {
980     "id": "a8aa86a8.764d68",
981     "type": "set",
982     "name": "set prop.ar-parent-service-instance-id",
983     "xml": "<set>\n<parameter name='prop.ar-parent-service-instance-id' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.parent-service-instance-id`' />\n",
984     "comments": "",
985     "x": 2120.8163681030273,
986     "y": 1064.996099472046,
987     "z": "5c37638f.99fd6c",
988     "wires": []
989   },
990   {
991     "id": "9f1816e2.642ea8",
992     "type": "for",
993     "name": "for loop aridx - Get role from allotted resource",
994     "xml": "<for index=\"aridx\" start=\"0\" end=\"`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`\">\n    \n    \n",
995     "comments": "",
996     "outputs": 1,
997     "x": 2146.816162109375,
998     "y": 1013.4959707260132,
999     "z": "5c37638f.99fd6c",
1000     "wires": [
1001       [
1002         "9c8b4e3c.7c8c5"
1003       ]
1004     ]
1005   },
1006   {
1007     "id": "9c8b4e3c.7c8c5",
1008     "type": "block",
1009     "name": "block",
1010     "xml": "<block>\n",
1011     "atomic": "false",
1012     "comments": "",
1013     "outputs": 1,
1014     "x": 2401.81649017334,
1015     "y": 1010.4964303970337,
1016     "z": "5c37638f.99fd6c",
1017     "wires": [
1018       [
1019         "30449575.75463a",
1020         "92ec0f10.dba05"
1021       ]
1022     ]
1023   },
1024   {
1025     "id": "30449575.75463a",
1026     "type": "switchNode",
1027     "name": "switch Role",
1028     "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",
1029     "comments": "",
1030     "outputs": 1,
1031     "x": 2531.8163108825684,
1032     "y": 982.4963674545288,
1033     "z": "5c37638f.99fd6c",
1034     "wires": [
1035       [
1036         "b4910f3d.0db62"
1037       ]
1038     ]
1039   },
1040   {
1041     "id": "b4910f3d.0db62",
1042     "type": "outcomeTrue",
1043     "name": "true",
1044     "xml": "<outcome value='true'>\n",
1045     "comments": "",
1046     "outputs": 1,
1047     "x": 2672.8166427612305,
1048     "y": 981.4963665008545,
1049     "z": "5c37638f.99fd6c",
1050     "wires": [
1051       [
1052         "367dfe9f.4b0012"
1053       ]
1054     ]
1055   },
1056   {
1057     "id": "367dfe9f.4b0012",
1058     "type": "set",
1059     "name": "set prop.role",
1060     "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",
1061     "comments": "",
1062     "x": 2838.8173065185547,
1063     "y": 976.096269607544,
1064     "z": "5c37638f.99fd6c",
1065     "wires": []
1066   },
1067   {
1068     "id": "1009f0e9.e8787f",
1069     "type": "success",
1070     "name": "success",
1071     "xml": "<outcome value='success'>\n",
1072     "comments": "",
1073     "outputs": 1,
1074     "x": 2418.8169898986816,
1075     "y": 1159.996376991272,
1076     "z": "5c37638f.99fd6c",
1077     "wires": [
1078       [
1079         "38660dd.8ae9ef2"
1080       ]
1081     ]
1082   },
1083   {
1084     "id": "c9a9abe5.0b0758",
1085     "type": "other",
1086     "name": "other",
1087     "xml": "<outcome value='Other'>\n",
1088     "comments": "",
1089     "outputs": 1,
1090     "x": 2412.668731689453,
1091     "y": 1116.0624141693115,
1092     "z": "5c37638f.99fd6c",
1093     "wires": [
1094       [
1095         "faec6a4d.0cfc28"
1096       ]
1097     ]
1098   },
1099   {
1100     "id": "ae1d17f2.d02858",
1101     "type": "block",
1102     "name": "block",
1103     "xml": "<block>\n",
1104     "atomic": "false",
1105     "comments": "",
1106     "outputs": 1,
1107     "x": 2726.816177368164,
1108     "y": 757.4958500862122,
1109     "z": "5c37638f.99fd6c",
1110     "wires": [
1111       []
1112     ]
1113   },
1114   {
1115     "id": "88745fb7.28e43",
1116     "type": "block",
1117     "name": "block atomic",
1118     "xml": "<block atomic=\"true\">\n",
1119     "atomic": "false",
1120     "comments": "",
1121     "outputs": 1,
1122     "x": 1856.3160400390625,
1123     "y": 1031.4959707260132,
1124     "z": "5c37638f.99fd6c",
1125     "wires": [
1126       [
1127         "9f1816e2.642ea8",
1128         "a8aa86a8.764d68",
1129         "56d62d96.7f8ce4",
1130         "b96757af.5cca38"
1131       ]
1132     ]
1133   },
1134   {
1135     "id": "faec6a4d.0cfc28",
1136     "type": "block",
1137     "name": "block",
1138     "xml": "<block>\n",
1139     "atomic": "false",
1140     "comments": "",
1141     "outputs": 1,
1142     "x": 2542.3168506622314,
1143     "y": 1109.4963340759277,
1144     "z": "5c37638f.99fd6c",
1145     "wires": [
1146       []
1147     ]
1148   },
1149   {
1150     "id": "38660dd.8ae9ef2",
1151     "type": "block",
1152     "name": "block atomic",
1153     "xml": "<block atomic=\"true\">\n",
1154     "atomic": "false",
1155     "comments": "",
1156     "outputs": 1,
1157     "x": 1932.3163299560547,
1158     "y": 1236.4959840774536,
1159     "z": "5c37638f.99fd6c",
1160     "wires": [
1161       [
1162         "c768cf9a.62862"
1163       ]
1164     ]
1165   },
1166   {
1167     "id": "4edc1d8f.0a1944",
1168     "type": "for",
1169     "name": "for loop siteidx - Get site ID from servicedata",
1170     "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",
1171     "comments": "",
1172     "outputs": 1,
1173     "x": 2296.3190536499023,
1174     "y": 1792.497006893158,
1175     "z": "5c37638f.99fd6c",
1176     "wires": [
1177       [
1178         "3d77f67c.b5ecea"
1179       ]
1180     ]
1181   },
1182   {
1183     "id": "ead36ab7.282438",
1184     "type": "switchNode",
1185     "name": "switch siteId",
1186     "xml": "<switch test=\"`$mdsal-sd.service-data.vnfs.vnf[$tmp.sitevidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$siteidx].name == 'siteId'`\">\n",
1187     "comments": "",
1188     "outputs": 1,
1189     "x": 2368.3210372924805,
1190     "y": 1860.497986316681,
1191     "z": "5c37638f.99fd6c",
1192     "wires": [
1193       [
1194         "d924a586.673c18"
1195       ]
1196     ]
1197   },
1198   {
1199     "id": "321bf129.18913e",
1200     "type": "block",
1201     "name": "block atomic",
1202     "xml": "<block atomic=\"true\">\n",
1203     "atomic": "false",
1204     "comments": "",
1205     "outputs": 1,
1206     "x": 2222.8193130493164,
1207     "y": 1933.9970240592957,
1208     "z": "5c37638f.99fd6c",
1209     "wires": [
1210       [
1211         "875c4bea.660358",
1212         "ecb79aa0.650108",
1213         "f8b5c142.e5e42"
1214       ]
1215     ]
1216   },
1217   {
1218     "id": "4ed101e7.e4ff7",
1219     "type": "execute",
1220     "name": "execute RestApiCallNode delete vpn topology",
1221     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-topology.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpn1Id + '/topology'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
1222     "comments": "",
1223     "outputs": 1,
1224     "x": 697.8168258666992,
1225     "y": 1193.496681213379,
1226     "z": "5c37638f.99fd6c",
1227     "wires": [
1228       [
1229         "79fecdbb.444414",
1230         "8f4a1544.240ce8"
1231       ]
1232     ]
1233   },
1234   {
1235     "id": "79fecdbb.444414",
1236     "type": "success",
1237     "name": "success",
1238     "xml": "<outcome value='success'>\n",
1239     "comments": "",
1240     "outputs": 1,
1241     "x": 952.816593170166,
1242     "y": 1209.496681213379,
1243     "z": "5c37638f.99fd6c",
1244     "wires": [
1245       [
1246         "1ef5ce22.99b2f2"
1247       ]
1248     ]
1249   },
1250   {
1251     "id": "1ef5ce22.99b2f2",
1252     "type": "block",
1253     "name": "block : atomic",
1254     "xml": "<block atomic=\"true\">",
1255     "atomic": "true",
1256     "comments": "",
1257     "outputs": 1,
1258     "x": 1122.8165321350098,
1259     "y": 1212.496681213379,
1260     "z": "5c37638f.99fd6c",
1261     "wires": [
1262       []
1263     ]
1264   },
1265   {
1266     "id": "13d95323.743e4d",
1267     "type": "returnFailure",
1268     "name": "return failure",
1269     "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",
1270     "comments": "",
1271     "x": 1122.8166542053223,
1272     "y": 1168.496681213379,
1273     "z": "5c37638f.99fd6c",
1274     "wires": []
1275   },
1276   {
1277     "id": "8f4a1544.240ce8",
1278     "type": "failure",
1279     "name": "failure",
1280     "xml": "<outcome value='failure'>\n",
1281     "comments": "",
1282     "outputs": 1,
1283     "x": 955.8165321350098,
1284     "y": 1168.496681213379,
1285     "z": "5c37638f.99fd6c",
1286     "wires": [
1287       [
1288         "13d95323.743e4d"
1289       ]
1290     ]
1291   },
1292   {
1293     "id": "9f45ce4d.1731c",
1294     "type": "set",
1295     "name": "set controller data",
1296     "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",
1297     "comments": "",
1298     "x": 1103.3835430145264,
1299     "y": 965.1728572845459,
1300     "z": "5c37638f.99fd6c",
1301     "wires": []
1302   },
1303   {
1304     "id": "4b5b6f95.ae82b",
1305     "type": "get-resource",
1306     "name": "get-resource esr-thirdparty-sdnc",
1307     "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",
1308     "comments": "",
1309     "outputs": 1,
1310     "x": 672.8832855224609,
1311     "y": 1016.1732077598572,
1312     "z": "5c37638f.99fd6c",
1313     "wires": [
1314       [
1315         "9379b94d.ebf738",
1316         "85618b89.4df498",
1317         "d4faaa3e.0874d8"
1318       ]
1319     ]
1320   },
1321   {
1322     "id": "9379b94d.ebf738",
1323     "type": "success",
1324     "name": "success",
1325     "xml": "<outcome value='success'>\n",
1326     "comments": "",
1327     "outputs": 1,
1328     "x": 931.8835773468018,
1329     "y": 971.1728410720825,
1330     "z": "5c37638f.99fd6c",
1331     "wires": [
1332       [
1333         "9f45ce4d.1731c"
1334       ]
1335     ]
1336   },
1337   {
1338     "id": "85618b89.4df498",
1339     "type": "not-found",
1340     "name": "not-found",
1341     "xml": "<outcome value='not-found'>\n",
1342     "comments": "",
1343     "outputs": 1,
1344     "x": 928.3742942810059,
1345     "y": 1009.74693775177,
1346     "z": "5c37638f.99fd6c",
1347     "wires": [
1348       [
1349         "ef8f714d.57ad1"
1350       ]
1351     ]
1352   },
1353   {
1354     "id": "d4faaa3e.0874d8",
1355     "type": "other",
1356     "name": "other",
1357     "xml": "<outcome value='Other'>\n",
1358     "comments": "",
1359     "outputs": 1,
1360     "x": 923.7073020935059,
1361     "y": 1051.0802507400513,
1362     "z": "5c37638f.99fd6c",
1363     "wires": [
1364       [
1365         "7ed2ad4f.8bf614"
1366       ]
1367     ]
1368   },
1369   {
1370     "id": "ef8f714d.57ad1",
1371     "type": "returnFailure",
1372     "name": "return failure",
1373     "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",
1374     "comments": "",
1375     "x": 1078.9456100463867,
1376     "y": 1004.0326900482178,
1377     "z": "5c37638f.99fd6c",
1378     "wires": []
1379   },
1380   {
1381     "id": "7ed2ad4f.8bf614",
1382     "type": "returnFailure",
1383     "name": "return failure",
1384     "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",
1385     "comments": "",
1386     "x": 1085.4797630310059,
1387     "y": 1052.5194597244263,
1388     "z": "5c37638f.99fd6c",
1389     "wires": []
1390   },
1391   {
1392     "id": "c768cf9a.62862",
1393     "type": "for",
1394     "name": "for pnidx.. mdsal-psd.service-data.networks.network_length[]",
1395     "xml": "<for index='pnidx' start='0' end='`$mdsal-parentsd.service-data.networks.network_length`' >\n",
1396     "comments": "",
1397     "outputs": 1,
1398     "x": 2257.315902709961,
1399     "y": 1235.9957118034363,
1400     "z": "5c37638f.99fd6c",
1401     "wires": [
1402       [
1403         "e252e8ae.c32088"
1404       ]
1405     ]
1406   },
1407   {
1408     "id": "e252e8ae.c32088",
1409     "type": "block",
1410     "name": "block",
1411     "xml": "<block>\n",
1412     "atomic": "false",
1413     "comments": "",
1414     "outputs": 1,
1415     "x": 1935.9829940795898,
1416     "y": 1326.9955472946167,
1417     "z": "5c37638f.99fd6c",
1418     "wires": [
1419       [
1420         "14486987.b85df6"
1421       ]
1422     ]
1423   },
1424   {
1425     "id": "14486987.b85df6",
1426     "type": "switchNode",
1427     "name": "switch ActivateSDWANConnectivityInstance",
1428     "xml": "<switch test=\"`$mdsal-parentsd.service-data.networks.network[$pnidx].network-data.request-information.request-action == 'ActivateSDWANConnectivityInstance'`\">\n    \n    \n\n",
1429     "comments": "",
1430     "outputs": 1,
1431     "x": 2180.983726501465,
1432     "y": 1328.9959135055542,
1433     "z": "5c37638f.99fd6c",
1434     "wires": [
1435       [
1436         "1a69042b.c0872c"
1437       ]
1438     ]
1439   },
1440   {
1441     "id": "1a69042b.c0872c",
1442     "type": "outcomeTrue",
1443     "name": "true",
1444     "xml": "<outcome value='true'>\n",
1445     "comments": "",
1446     "outputs": 1,
1447     "x": 2437.9832191467285,
1448     "y": 1327.9960436820984,
1449     "z": "5c37638f.99fd6c",
1450     "wires": [
1451       [
1452         "ecc75ce5.52a22"
1453       ]
1454     ]
1455   },
1456   {
1457     "id": "693abfa.fed9d4",
1458     "type": "for",
1459     "name": "for loop paramidx - Get topology from servicedata",
1460     "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",
1461     "comments": "",
1462     "outputs": 1,
1463     "x": 2239.9839057922363,
1464     "y": 1417.9956316947937,
1465     "z": "5c37638f.99fd6c",
1466     "wires": [
1467       [
1468         "3b22a756.98c7f8"
1469       ]
1470     ]
1471   },
1472   {
1473     "id": "3b22a756.98c7f8",
1474     "type": "block",
1475     "name": "block",
1476     "xml": "<block>\n",
1477     "atomic": "false",
1478     "comments": "",
1479     "outputs": 1,
1480     "x": 2505.983594894409,
1481     "y": 1414.995954990387,
1482     "z": "5c37638f.99fd6c",
1483     "wires": [
1484       [
1485         "dccdc0aa.2bb7b",
1486         "b18f2a38.d85ae8"
1487       ]
1488     ]
1489   },
1490   {
1491     "id": "dccdc0aa.2bb7b",
1492     "type": "switchNode",
1493     "name": "switch topology",
1494     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'topology'`\">\n",
1495     "comments": "",
1496     "outputs": 1,
1497     "x": 2676.98392868042,
1498     "y": 1383.9954648017883,
1499     "z": "5c37638f.99fd6c",
1500     "wires": [
1501       [
1502         "e0213c77.0f4ca"
1503       ]
1504     ]
1505   },
1506   {
1507     "id": "e0213c77.0f4ca",
1508     "type": "outcomeTrue",
1509     "name": "true",
1510     "xml": "<outcome value='true'>\n",
1511     "comments": "",
1512     "outputs": 1,
1513     "x": 2828.9839191436768,
1514     "y": 1385.9954953193665,
1515     "z": "5c37638f.99fd6c",
1516     "wires": [
1517       [
1518         "71cd0898.67eff8"
1519       ]
1520     ]
1521   },
1522   {
1523     "id": "71cd0898.67eff8",
1524     "type": "set",
1525     "name": "set topology",
1526     "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",
1527     "comments": "",
1528     "x": 2972.9839305877686,
1529     "y": 1385.5954298973083,
1530     "z": "5c37638f.99fd6c",
1531     "wires": []
1532   },
1533   {
1534     "id": "b18f2a38.d85ae8",
1535     "type": "switchNode",
1536     "name": "switch vpnId",
1537     "xml": "<switch test=\"`$mdsal-psd.service-data.networks.network[$pnidx].network-data.network-request-input.network-input-parameters.param[$paramidx].name == 'vpn-id'`\">\n",
1538     "comments": "",
1539     "outputs": 1,
1540     "x": 2668.649652481079,
1541     "y": 1426.3284468650818,
1542     "z": "5c37638f.99fd6c",
1543     "wires": [
1544       [
1545         "5ef41a40.56fe94"
1546       ]
1547     ]
1548   },
1549   {
1550     "id": "5ef41a40.56fe94",
1551     "type": "outcomeTrue",
1552     "name": "true",
1553     "xml": "<outcome value='true'>\n",
1554     "comments": "",
1555     "outputs": 1,
1556     "x": 2820.649642944336,
1557     "y": 1428.32847738266,
1558     "z": "5c37638f.99fd6c",
1559     "wires": [
1560       [
1561         "25d7449c.78b97c"
1562       ]
1563     ]
1564   },
1565   {
1566     "id": "25d7449c.78b97c",
1567     "type": "set",
1568     "name": "set prop.vpn1Id",
1569     "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",
1570     "comments": "",
1571     "x": 2964.6496543884277,
1572     "y": 1427.9284119606018,
1573     "z": "5c37638f.99fd6c",
1574     "wires": []
1575   },
1576   {
1577     "id": "2a2d01cd.5646fe",
1578     "type": "execute",
1579     "name": "execute RestApiCallNode delete vpn ",
1580     "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`\" />",
1581     "comments": "",
1582     "outputs": 1,
1583     "x": 670.8164978027344,
1584     "y": 1304.9966464042664,
1585     "z": "5c37638f.99fd6c",
1586     "wires": [
1587       [
1588         "c4c9f687.9e7588",
1589         "802fa182.99b1f"
1590       ]
1591     ]
1592   },
1593   {
1594     "id": "c4c9f687.9e7588",
1595     "type": "success",
1596     "name": "success",
1597     "xml": "<outcome value='success'>\n",
1598     "comments": "",
1599     "outputs": 1,
1600     "x": 903.8165760040283,
1601     "y": 1329.996645450592,
1602     "z": "5c37638f.99fd6c",
1603     "wires": [
1604       [
1605         "1b0d22fd.e671fd"
1606       ]
1607     ]
1608   },
1609   {
1610     "id": "1b0d22fd.e671fd",
1611     "type": "block",
1612     "name": "block : atomic",
1613     "xml": "<block atomic=\"true\">",
1614     "atomic": "true",
1615     "comments": "",
1616     "outputs": 1,
1617     "x": 1073.816514968872,
1618     "y": 1332.996645450592,
1619     "z": "5c37638f.99fd6c",
1620     "wires": [
1621       []
1622     ]
1623   },
1624   {
1625     "id": "588dc5fe.3853dc",
1626     "type": "returnFailure",
1627     "name": "return failure",
1628     "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",
1629     "comments": "",
1630     "x": 1073.8166370391846,
1631     "y": 1288.996645450592,
1632     "z": "5c37638f.99fd6c",
1633     "wires": []
1634   },
1635   {
1636     "id": "802fa182.99b1f",
1637     "type": "failure",
1638     "name": "failure",
1639     "xml": "<outcome value='failure'>\n",
1640     "comments": "",
1641     "outputs": 1,
1642     "x": 906.8165149688721,
1643     "y": 1288.996645450592,
1644     "z": "5c37638f.99fd6c",
1645     "wires": [
1646       [
1647         "588dc5fe.3853dc"
1648       ]
1649     ]
1650   },
1651   {
1652     "id": "67ff2f7e.84dea",
1653     "type": "set",
1654     "name": "set prop.name",
1655     "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",
1656     "comments": "",
1657     "x": 2886.8163108825684,
1658     "y": 1028.995940208435,
1659     "z": "5c37638f.99fd6c",
1660     "wires": []
1661   },
1662   {
1663     "id": "92ec0f10.dba05",
1664     "type": "switchNode",
1665     "name": "switch sdwanVpnName",
1666     "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",
1667     "comments": "",
1668     "outputs": 1,
1669     "x": 2567.316150665283,
1670     "y": 1031.9959325790405,
1671     "z": "5c37638f.99fd6c",
1672     "wires": [
1673       [
1674         "da5b9464.fd80d8"
1675       ]
1676     ]
1677   },
1678   {
1679     "id": "da5b9464.fd80d8",
1680     "type": "outcomeTrue",
1681     "name": "true",
1682     "xml": "<outcome value='true'>\n",
1683     "comments": "",
1684     "outputs": 1,
1685     "x": 2738.3163108825684,
1686     "y": 1030.9960012435913,
1687     "z": "5c37638f.99fd6c",
1688     "wires": [
1689       [
1690         "67ff2f7e.84dea"
1691       ]
1692     ]
1693   },
1694   {
1695     "id": "1f17ba6f.07fd86",
1696     "type": "set",
1697     "name": "set prop.ar.provided-allotted-resource-id",
1698     "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",
1699     "comments": "",
1700     "x": 2052.81591796875,
1701     "y": 772.9960646629333,
1702     "z": "5c37638f.99fd6c",
1703     "wires": []
1704   },
1705   {
1706     "id": "5609c5e0.866b1c",
1707     "type": "block",
1708     "name": "block atomic",
1709     "xml": "<block atomic=\"true\">\n",
1710     "atomic": "false",
1711     "comments": "",
1712     "outputs": 1,
1713     "x": 1230.8463745117188,
1714     "y": 880.1932344436646,
1715     "z": "5c37638f.99fd6c",
1716     "wires": [
1717       [
1718         "b59d7969.b1f2f8"
1719       ]
1720     ]
1721   },
1722   {
1723     "id": "cd36d7b2.2df868",
1724     "type": "execute",
1725     "name": "generate tmp.ar-url-connection url",
1726     "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",
1727     "comments": "",
1728     "outputs": 1,
1729     "x": 2037.3335800170898,
1730     "y": 806.3295407295227,
1731     "z": "5c37638f.99fd6c",
1732     "wires": [
1733       []
1734     ]
1735   },
1736   {
1737     "id": "f53ba2f7.ad562",
1738     "type": "execute",
1739     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1740     "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",
1741     "comments": "",
1742     "outputs": 1,
1743     "x": 2177.333209991455,
1744     "y": 841.9958319664001,
1745     "z": "5c37638f.99fd6c",
1746     "wires": [
1747       [
1748         "edb86366.daca5",
1749         "490fd156.3cc2e"
1750       ]
1751     ]
1752   },
1753   {
1754     "id": "56d62d96.7f8ce4",
1755     "type": "execute",
1756     "name": "execute RestApiCallNode - get parent service data",
1757     "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",
1758     "comments": "",
1759     "outputs": 1,
1760     "x": 2153.0004501342773,
1761     "y": 1134.995888710022,
1762     "z": "5c37638f.99fd6c",
1763     "wires": [
1764       [
1765         "1009f0e9.e8787f",
1766         "c9a9abe5.0b0758"
1767       ]
1768     ]
1769   },
1770   {
1771     "id": "ecc75ce5.52a22",
1772     "type": "block",
1773     "name": "block atmoic",
1774     "xml": "<block atomic=\"true\">\n",
1775     "atomic": "false",
1776     "comments": "",
1777     "outputs": 1,
1778     "x": 1897.333869934082,
1779     "y": 1424.6630945205688,
1780     "z": "5c37638f.99fd6c",
1781     "wires": [
1782       [
1783         "693abfa.fed9d4",
1784         "90dd080.179f4f8",
1785         "74e88748.645e58",
1786         "a1a950eb.a0193"
1787       ]
1788     ]
1789   },
1790   {
1791     "id": "875c4bea.660358",
1792     "type": "set",
1793     "name": "set prop.attach.siteId",
1794     "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",
1795     "comments": "",
1796     "x": 2489.002185821533,
1797     "y": 1915.6638503074646,
1798     "z": "5c37638f.99fd6c",
1799     "wires": []
1800   },
1801   {
1802     "id": "d924a586.673c18",
1803     "type": "outcomeTrue",
1804     "name": "true",
1805     "xml": "<outcome value='true'>\n",
1806     "comments": "",
1807     "outputs": 1,
1808     "x": 2509.00244140625,
1809     "y": 1860.663676738739,
1810     "z": "5c37638f.99fd6c",
1811     "wires": [
1812       [
1813         "321bf129.18913e"
1814       ]
1815     ]
1816   },
1817   {
1818     "id": "bfec68b.915a698",
1819     "type": "block",
1820     "name": "block atmoic",
1821     "xml": "<block atomic=\"true\">\n",
1822     "atomic": "false",
1823     "comments": "",
1824     "outputs": 1,
1825     "x": 2001.668327331543,
1826     "y": 1746.3301873207092,
1827     "z": "5c37638f.99fd6c",
1828     "wires": [
1829       [
1830         "4edc1d8f.0a1944",
1831         "9280788a.1a5978"
1832       ]
1833     ]
1834   },
1835   {
1836     "id": "b30219b.8f8bde8",
1837     "type": "for",
1838     "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
1839     "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
1840     "comments": "",
1841     "outputs": 1,
1842     "x": 838.185131072998,
1843     "y": 915.6358346939087,
1844     "z": "5c37638f.99fd6c",
1845     "wires": [
1846       [
1847         "5609c5e0.866b1c"
1848       ]
1849     ]
1850   },
1851   {
1852     "id": "3d77f67c.b5ecea",
1853     "type": "block",
1854     "name": "block atmoic",
1855     "xml": "<block atomic=\"true\">\n",
1856     "atomic": "false",
1857     "comments": "",
1858     "outputs": 1,
1859     "x": 2213.668685913086,
1860     "y": 1857.000834941864,
1861     "z": "5c37638f.99fd6c",
1862     "wires": [
1863       [
1864         "ead36ab7.282438"
1865       ]
1866     ]
1867   },
1868   {
1869     "id": "7dea7f5b.a3b81",
1870     "type": "set",
1871     "name": "set prop.siteAttachement_length=0",
1872     "xml": "<set>\n<parameter name='prop.siteAttachements_length' value='0' />\n<parameter name='prop.siteIds_length' value='0' />\n\n\n\n",
1873     "comments": "",
1874     "x": 684.00390625,
1875     "y": 858.5311903953552,
1876     "z": "5c37638f.99fd6c",
1877     "wires": []
1878   },
1879   {
1880     "id": "ecb79aa0.650108",
1881     "type": "set",
1882     "name": "Add sites to list and update length",
1883     "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",
1884     "comments": "",
1885     "x": 2516.506019592285,
1886     "y": 1960.5316553115845,
1887     "z": "5c37638f.99fd6c",
1888     "wires": []
1889   },
1890   {
1891     "id": "b96757af.5cca38",
1892     "type": "execute",
1893     "name": "generate prop.ar-parent-service-instance-id",
1894     "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",
1895     "comments": "",
1896     "outputs": 1,
1897     "x": 2137.504051208496,
1898     "y": 1097.5314092636108,
1899     "z": "5c37638f.99fd6c",
1900     "wires": [
1901       []
1902     ]
1903   },
1904   {
1905     "id": "90dd080.179f4f8",
1906     "type": "set",
1907     "name": "set prop.ar-service-instance-id",
1908     "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",
1909     "comments": "",
1910     "x": 2170.5044708251953,
1911     "y": 1486.5313272476196,
1912     "z": "5c37638f.99fd6c",
1913     "wires": []
1914   },
1915   {
1916     "id": "74e88748.645e58",
1917     "type": "execute",
1918     "name": "generate prop.ar-service-instance-id",
1919     "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",
1920     "comments": "",
1921     "outputs": 1,
1922     "x": 2195.836929321289,
1923     "y": 1519.4096231460571,
1924     "z": "5c37638f.99fd6c",
1925     "wires": [
1926       []
1927     ]
1928   },
1929   {
1930     "id": "a1a950eb.a0193",
1931     "type": "execute",
1932     "name": "execute RestApiCallNode - get-resource service data",
1933     "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",
1934     "comments": "",
1935     "outputs": 1,
1936     "x": 2246.8370513916016,
1937     "y": 1556.409441947937,
1938     "z": "5c37638f.99fd6c",
1939     "wires": [
1940       [
1941         "d085c605.a64ce8",
1942         "872e1cc1.fb142"
1943       ]
1944     ]
1945   },
1946   {
1947     "id": "872e1cc1.fb142",
1948     "type": "success",
1949     "name": "success",
1950     "xml": "<outcome value='success'>\n",
1951     "comments": "",
1952     "outputs": 1,
1953     "x": 2525.5041160583496,
1954     "y": 1552.531153678894,
1955     "z": "5c37638f.99fd6c",
1956     "wires": [
1957       [
1958         "eb1435b3.407188"
1959       ]
1960     ]
1961   },
1962   {
1963     "id": "d085c605.a64ce8",
1964     "type": "other",
1965     "name": "other",
1966     "xml": "<outcome value='Other'>\n",
1967     "comments": "",
1968     "outputs": 1,
1969     "x": 2523.3564453125,
1970     "y": 1513.5972814559937,
1971     "z": "5c37638f.99fd6c",
1972     "wires": [
1973       [
1974         "6579eeb9.4ad43"
1975       ]
1976     ]
1977   },
1978   {
1979     "id": "6579eeb9.4ad43",
1980     "type": "block",
1981     "name": "block",
1982     "xml": "<block>\n",
1983     "atomic": "false",
1984     "comments": "",
1985     "outputs": 1,
1986     "x": 2653.004638671875,
1987     "y": 1507.0312414169312,
1988     "z": "5c37638f.99fd6c",
1989     "wires": [
1990       []
1991     ]
1992   },
1993   {
1994     "id": "eb1435b3.407188",
1995     "type": "block",
1996     "name": "block atmoic",
1997     "xml": "<block atomic=\"true\">\n",
1998     "atomic": "false",
1999     "comments": "",
2000     "outputs": 1,
2001     "x": 2674.505012512207,
2002     "y": 1553.5313386917114,
2003     "z": "5c37638f.99fd6c",
2004     "wires": [
2005       [
2006         "92d891d3.4ab0e"
2007       ]
2008     ]
2009   },
2010   {
2011     "id": "b59d7969.b1f2f8",
2012     "type": "switchNode",
2013     "name": "switch allotted resource ID match",
2014     "xml": "<switch test=\"`$prop.ar.provided-allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n",
2015     "comments": "",
2016     "outputs": 1,
2017     "x": 1454.504020690918,
2018     "y": 877.0312628746033,
2019     "z": "5c37638f.99fd6c",
2020     "wires": [
2021       [
2022         "d35d9e14.f135e"
2023       ]
2024     ]
2025   },
2026   {
2027     "id": "d35d9e14.f135e",
2028     "type": "outcomeFalse",
2029     "name": "false",
2030     "xml": "<outcome value='false'>\n",
2031     "comments": "",
2032     "outputs": 1,
2033     "x": 1668.5040855407715,
2034     "y": 808.0312933921814,
2035     "z": "5c37638f.99fd6c",
2036     "wires": [
2037       [
2038         "72234e91.d5575"
2039       ]
2040     ]
2041   },
2042   {
2043     "id": "72234e91.d5575",
2044     "type": "block",
2045     "name": "block atomic",
2046     "xml": "<block atomic=\"true\">\n",
2047     "atomic": "false",
2048     "comments": "",
2049     "outputs": 1,
2050     "x": 1810.5043334960938,
2051     "y": 807.0312342643738,
2052     "z": "5c37638f.99fd6c",
2053     "wires": [
2054       [
2055         "1f17ba6f.07fd86",
2056         "cd36d7b2.2df868",
2057         "f53ba2f7.ad562"
2058       ]
2059     ]
2060   },
2061   {
2062     "id": "d4480c4c.ab7f1",
2063     "type": "comment",
2064     "name": "if allotted resource Id match with the incomming allotted resource ID,  sites in this service vnf should not be included",
2065     "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 ",
2066     "comments": "",
2067     "x": 1763.5039367675781,
2068     "y": 740.03129529953,
2069     "z": "5c37638f.99fd6c",
2070     "wires": []
2071   },
2072   {
2073     "id": "44d17735.c18b38",
2074     "type": "comment",
2075     "name": "loop for provided allotted rsource Id",
2076     "info": "",
2077     "comments": "",
2078     "x": 950.50390625,
2079     "y": 879.5312514305115,
2080     "z": "5c37638f.99fd6c",
2081     "wires": []
2082   },
2083   {
2084     "id": "e435a42b.3afe08",
2085     "type": "comment",
2086     "name": "get allotted resource for the allotted resource ID",
2087     "info": "",
2088     "comments": "",
2089     "x": 2324.504234313965,
2090     "y": 741.5311732292175,
2091     "z": "5c37638f.99fd6c",
2092     "wires": []
2093   },
2094   {
2095     "id": "1438e6b6.ccead9",
2096     "type": "comment",
2097     "name": "get parent service data to get connectivity which has connectivity and vpn ID",
2098     "info": "",
2099     "comments": "",
2100     "x": 2107.503761291504,
2101     "y": 968.5312509536743,
2102     "z": "5c37638f.99fd6c",
2103     "wires": []
2104   },
2105   {
2106     "id": "32a9e203.7d629e",
2107     "type": "comment",
2108     "name": "get service data from service instance id from allotted reosurce Id to get sites vnf",
2109     "info": "",
2110     "comments": "",
2111     "x": 2296.503761291504,
2112     "y": 1450.5310506820679,
2113     "z": "5c37638f.99fd6c",
2114     "wires": []
2115   },
2116   {
2117     "id": "5b38ce7d.8512a",
2118     "type": "call",
2119     "name": "call sdwan-vnf-topology-operation-underlay for delete",
2120     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-wanport-vnf-topology-operation-underlay' mode='sync' >\n",
2121     "comments": "",
2122     "outputs": 1,
2123     "x": 731.5040283203125,
2124     "y": 1109.531298160553,
2125     "z": "5c37638f.99fd6c",
2126     "wires": [
2127       []
2128     ]
2129   },
2130   {
2131     "id": "f8b5c142.e5e42",
2132     "type": "set",
2133     "name": "Add site attachement to list and update length",
2134     "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",
2135     "comments": "",
2136     "x": 2546.2539978027344,
2137     "y": 2001.2539825439453,
2138     "z": "5c37638f.99fd6c",
2139     "wires": []
2140   }
2141 ]