17d40546e9f36cbbcd12c9cc11857ba8c629b79a
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json
1 [
2   {
3     "id": "b54f27ef.5db9a8",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 76.00390625,
8     "y": 37.00390625,
9     "z": "4ec136ff.390af8",
10     "wires": [
11       [
12         "73825793.639008"
13       ]
14     ]
15   },
16   {
17     "id": "73825793.639008",
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": 288.00391006469727,
26     "y": 109.0039234161377,
27     "z": "4ec136ff.390af8",
28     "wires": [
29       [
30         "91a3b40f.a091b8"
31       ]
32     ]
33   },
34   {
35     "id": "91a3b40f.a091b8",
36     "type": "method",
37     "name": "sotn-attachment-topology-operation-deactivate",
38     "xml": "<method rpc='sotn-attachment-topology-operation-deactivate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 276.0040283203125,
42     "y": 197.00390625,
43     "z": "4ec136ff.390af8",
44     "wires": [
45       [
46         "8b49cdb4.0b003"
47       ]
48     ]
49   },
50   {
51     "id": "8b49cdb4.0b003",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 292.0040283203125,
59     "y": 752.0041508674622,
60     "z": "4ec136ff.390af8",
61     "wires": [
62       [
63         "c083b508.69c318",
64         "520006f2.b2e4d8",
65         "70bf29a.577bcd8",
66         "648ef4ed.e1062c",
67         "8e15ef85.af876",
68         "7cd467cc.f359b8",
69         "4ca01b12.aeeae4",
70         "6963b7ed.1ac188",
71         "2a2a1345.d7f2ec",
72         "5c89f183.d2653",
73         "f1e26abf.1dc9f8",
74         "25f9e140.e4210e",
75         "1507ea99.aa8315",
76         "3a95a888.e92908",
77         "dd09565b.b81778",
78         "60ba1f59.42707",
79         "bf1b5f9f.275aa",
80         "ff509458.45f008",
81         "980e2d4b.7e472",
82         "372ff043.61187"
83       ]
84     ]
85   },
86   {
87     "id": "c083b508.69c318",
88     "type": "set",
89     "name": "set tmp.ar.allotted-resource-id,etc",
90     "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",
91     "comments": "",
92     "x": 688.9974670410156,
93     "y": 150.9973931312561,
94     "z": "4ec136ff.390af8",
95     "wires": []
96   },
97   {
98     "id": "8cf7665f.0ad548",
99     "type": "comment",
100     "name": "set tmp ar-id to fetch resource from MDSAL",
101     "info": "",
102     "comments": "",
103     "x": 717.9577789306641,
104     "y": 115.02918910980225,
105     "z": "4ec136ff.390af8",
106     "wires": []
107   },
108   {
109     "id": "520006f2.b2e4d8",
110     "type": "set",
111     "name": "set tmp.ar.self-link",
112     "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",
113     "comments": "",
114     "x": 642.9974060058594,
115     "y": 243.99739837646484,
116     "z": "4ec136ff.390af8",
117     "wires": []
118   },
119   {
120     "id": "8e15ef85.af876",
121     "type": "execute",
122     "name": "execute Properties",
123     "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",
124     "comments": "",
125     "outputs": 1,
126     "x": 649.2592964172363,
127     "y": 331.6641273498535,
128     "z": "4ec136ff.390af8",
129     "wires": [
130       []
131     ]
132   },
133   {
134     "id": "70bf29a.577bcd8",
135     "type": "execute",
136     "name": "generate allotted-resource tmp.ar-url",
137     "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",
138     "comments": "",
139     "outputs": 1,
140     "x": 699.2593994140625,
141     "y": 418.66412830352783,
142     "z": "4ec136ff.390af8",
143     "wires": [
144       []
145     ]
146   },
147   {
148     "id": "f4f0e304.bbd67",
149     "type": "comment",
150     "name": "GET connection-attachment-allotted-resource from mdsal",
151     "info": "",
152     "comments": "",
153     "x": 742.8123931884766,
154     "y": 489.54267501831055,
155     "z": "4ec136ff.390af8",
156     "wires": []
157   },
158   {
159     "id": "3183ed7f.7cdf82",
160     "type": "comment",
161     "name": "Used for setting output to API Handler",
162     "info": "",
163     "comments": "",
164     "x": 696.9974365234375,
165     "y": 210.997407913208,
166     "z": "4ec136ff.390af8",
167     "wires": []
168   },
169   {
170     "id": "61fa78e8.e88928",
171     "type": "comment",
172     "name": "Obtain different URL, template location etc",
173     "info": "For saving resource information to MDSAL & for AAI",
174     "comments": "",
175     "x": 714.9974021911621,
176     "y": 296.8862886428833,
177     "z": "4ec136ff.390af8",
178     "wires": []
179   },
180   {
181     "id": "e460b896.d8ce98",
182     "type": "comment",
183     "name": "Used to Get AR by id to MDSAL, same as self-link",
184     "info": "",
185     "comments": "",
186     "x": 740.9974212646484,
187     "y": 383.8862476348877,
188     "z": "4ec136ff.390af8",
189     "wires": []
190   },
191   {
192     "id": "f65756e0.dd7818",
193     "type": "success",
194     "name": "success",
195     "xml": "<outcome value='success'>\n",
196     "comments": "",
197     "outputs": 1,
198     "x": 1183.6707344055176,
199     "y": 537.0039348602295,
200     "z": "4ec136ff.390af8",
201     "wires": [
202       [
203         "4dc0f774.40c9e8"
204       ]
205     ]
206   },
207   {
208     "id": "4dc0f774.40c9e8",
209     "type": "block",
210     "name": "block: atomic",
211     "xml": "<block atomic=\"true\">\n",
212     "atomic": "false",
213     "comments": "",
214     "outputs": 1,
215     "x": 1352.6707382202148,
216     "y": 535.5038356781006,
217     "z": "4ec136ff.390af8",
218     "wires": [
219       [
220         "a07cda93.450c08"
221       ]
222     ]
223   },
224   {
225     "id": "a07cda93.450c08",
226     "type": "switchNode",
227     "name": "switch cr length",
228     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
229     "comments": "",
230     "outputs": 1,
231     "x": 1525.5280075073242,
232     "y": 473.12299823760986,
233     "z": "4ec136ff.390af8",
234     "wires": [
235       [
236         "22ec9ce0.2f5dd4",
237         "f2f6c092.18725"
238       ]
239     ]
240   },
241   {
242     "id": "22ec9ce0.2f5dd4",
243     "type": "other",
244     "name": "outcome 1",
245     "xml": "<outcome value='1'>\n",
246     "comments": "",
247     "outputs": 1,
248     "x": 1762.8612518310547,
249     "y": 451.1229486465454,
250     "z": "4ec136ff.390af8",
251     "wires": [
252       [
253         "9d16e841.df5298"
254       ]
255     ]
256   },
257   {
258     "id": "9d16e841.df5298",
259     "type": "block",
260     "name": "block: atomic",
261     "xml": "<block atomic='true'>\n",
262     "atomic": "false",
263     "comments": "",
264     "outputs": 1,
265     "x": 1947.3851413726807,
266     "y": 448.02778244018555,
267     "z": "4ec136ff.390af8",
268     "wires": [
269       [
270         "3e7b6049.99c1f",
271         "76484c5f.5d8d34",
272         "659367d9.de17c8"
273       ]
274     ]
275   },
276   {
277     "id": "15003538.c9037b",
278     "type": "returnFailure",
279     "name": "return failure",
280     "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",
281     "comments": "",
282     "x": 1871.5229835510254,
283     "y": 573.0700235366821,
284     "z": "4ec136ff.390af8",
285     "wires": []
286   },
287   {
288     "id": "1584b53e.263d2b",
289     "type": "other",
290     "name": "other",
291     "xml": "<outcome value='Other'>\n",
292     "comments": "",
293     "outputs": 1,
294     "x": 1175.5225372314453,
295     "y": 572.0700197219849,
296     "z": "4ec136ff.390af8",
297     "wires": [
298       [
299         "cfb38062.240c9"
300       ]
301     ]
302   },
303   {
304     "id": "cfb38062.240c9",
305     "type": "block",
306     "name": "block: atomic",
307     "xml": "<block atomic=\"true\">\n",
308     "atomic": "false",
309     "comments": "",
310     "outputs": 1,
311     "x": 1355.5224876403809,
312     "y": 572.7365703582764,
313     "z": "4ec136ff.390af8",
314     "wires": [
315       [
316         "15003538.c9037b"
317       ]
318     ]
319   },
320   {
321     "id": "f2f6c092.18725",
322     "type": "other",
323     "name": "other",
324     "xml": "<outcome value='Other'>\n",
325     "comments": "",
326     "outputs": 1,
327     "x": 1751.1892051696777,
328     "y": 488.4033088684082,
329     "z": "4ec136ff.390af8",
330     "wires": [
331       [
332         "15003538.c9037b"
333       ]
334     ]
335   },
336   {
337     "id": "3e7b6049.99c1f",
338     "type": "set",
339     "name": "set connection-attachment-ar from get",
340     "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
341     "comments": "",
342     "x": 2193.448699951172,
343     "y": 408.0040121078491,
344     "z": "4ec136ff.390af8",
345     "wires": []
346   },
347   {
348     "id": "659367d9.de17c8",
349     "type": "set",
350     "name": "set oper-status",
351     "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",
352     "comments": "",
353     "x": 2126.4486961364746,
354     "y": 498.43256664276123,
355     "z": "4ec136ff.390af8",
356     "wires": []
357   },
358   {
359     "id": "76484c5f.5d8d34",
360     "type": "switchNode",
361     "name": "switch order-status",
362     "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
363     "comments": "",
364     "outputs": 1,
365     "x": 2137.448532104492,
366     "y": 452.0040159225464,
367     "z": "4ec136ff.390af8",
368     "wires": [
369       [
370         "731472d3.90aa5c",
371         "76bb9af5.092564"
372       ]
373     ]
374   },
375   {
376     "id": "731472d3.90aa5c",
377     "type": "outcome",
378     "name": "outcome Active",
379     "xml": "<outcome value='Active'>\n",
380     "comments": "",
381     "outputs": 1,
382     "x": 2344.048480987549,
383     "y": 442.0040159225464,
384     "z": "4ec136ff.390af8",
385     "wires": [
386       [
387         "e2186fc5.ee965"
388       ]
389     ]
390   },
391   {
392     "id": "76bb9af5.092564",
393     "type": "outcome",
394     "name": "outcome Other",
395     "xml": "<outcome value='Other'>\n",
396     "comments": "",
397     "outputs": 1,
398     "x": 2343.7630004882812,
399     "y": 484.4326066970825,
400     "z": "4ec136ff.390af8",
401     "wires": [
402       [
403         "c14114c.2df93e8"
404       ]
405     ]
406   },
407   {
408     "id": "e2186fc5.ee965",
409     "type": "block",
410     "name": "block",
411     "xml": "<block>\n",
412     "atomic": "false",
413     "comments": "",
414     "outputs": 1,
415     "x": 2496.5190353393555,
416     "y": 440.3796663284302,
417     "z": "4ec136ff.390af8",
418     "wires": [
419       []
420     ]
421   },
422   {
423     "id": "c14114c.2df93e8",
424     "type": "returnFailure",
425     "name": "return failure",
426     "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",
427     "comments": "",
428     "x": 2516.6708908081055,
429     "y": 481.004017829895,
430     "z": "4ec136ff.390af8",
431     "wires": []
432   },
433   {
434     "id": "71b7df96.cf2fe",
435     "type": "call",
436     "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
437     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
438     "comments": "",
439     "outputs": 1,
440     "x": 904.3070220947266,
441     "y": 633.4974970817566,
442     "z": "4ec136ff.390af8",
443     "wires": [
444       []
445     ]
446   },
447   {
448     "id": "7cd467cc.f359b8",
449     "type": "block",
450     "name": "block: atomic",
451     "xml": "<block atomic=\"true\">\n",
452     "atomic": "false",
453     "comments": "",
454     "outputs": 1,
455     "x": 601.3131866455078,
456     "y": 634.5038452148438,
457     "z": "4ec136ff.390af8",
458     "wires": [
459       [
460         "71b7df96.cf2fe"
461       ]
462     ]
463   },
464   {
465     "id": "e0dac461.755818",
466     "type": "comment",
467     "name": "GET parent-service-data from mdsal to check existence of other End point",
468     "info": "",
469     "comments": "",
470     "x": 783.0043487548828,
471     "y": 695.5356044769287,
472     "z": "4ec136ff.390af8",
473     "wires": []
474   },
475   {
476     "id": "6358d403.359d6c",
477     "type": "for",
478     "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
479     "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
480     "comments": "",
481     "outputs": 1,
482     "x": 1673.1889038085938,
483     "y": 899.0079889297485,
484     "z": "4ec136ff.390af8",
485     "wires": [
486       [
487         "48ab36b2.10b5c8"
488       ]
489     ]
490   },
491   {
492     "id": "e3f9ceb3.fcc12",
493     "type": "other",
494     "name": "other",
495     "xml": "<outcome value='Other'>\n",
496     "comments": "",
497     "outputs": 1,
498     "x": 1079.3308753967285,
499     "y": 1031.5794496536255,
500     "z": "4ec136ff.390af8",
501     "wires": [
502       [
503         "6bf2a454.b0478c"
504       ]
505     ]
506   },
507   {
508     "id": "879c81fc.e34a9",
509     "type": "block",
510     "name": "block : atomic",
511     "xml": "<block atomic=\"true\">",
512     "atomic": "true",
513     "outputs": 1,
514     "x": 1270.4582767486572,
515     "y": 896.7054774537683,
516     "z": "4ec136ff.390af8",
517     "wires": [
518       [
519         "6358d403.359d6c"
520       ]
521     ]
522   },
523   {
524     "id": "48ab36b2.10b5c8",
525     "type": "switchNode",
526     "name": "switch allotted-resource-id",
527     "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
528     "comments": "",
529     "outputs": 1,
530     "x": 2108.300304412842,
531     "y": 899.0078859329224,
532     "z": "4ec136ff.390af8",
533     "wires": [
534       [
535         "ca0f68e.fe64c98",
536         "9210d9d0.b73bc8"
537       ]
538     ]
539   },
540   {
541     "id": "ca0f68e.fe64c98",
542     "type": "outcomeTrue",
543     "name": "true",
544     "xml": "<outcome value='true'>\n",
545     "comments": "",
546     "outputs": 1,
547     "x": 2317.110652923584,
548     "y": 879.4723424911499,
549     "z": "4ec136ff.390af8",
550     "wires": [
551       [
552         "bd0a6759.014208"
553       ]
554     ]
555   },
556   {
557     "id": "5b20e51b.570d9c",
558     "type": "block",
559     "name": "block : atomic",
560     "xml": "<block atomic=\"true\">",
561     "atomic": "true",
562     "outputs": 1,
563     "x": 2465.871406555176,
564     "y": 915.3295240402222,
565     "z": "4ec136ff.390af8",
566     "wires": [
567       [
568         "6fdc71ce.76ec1"
569       ]
570     ]
571   },
572   {
573     "id": "6fdc71ce.76ec1",
574     "type": "set",
575     "name": "set tmp.pidx and ptx.consumed-ar",
576     "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
577     "comments": "",
578     "x": 2700.728843688965,
579     "y": 913.9010553359985,
580     "z": "4ec136ff.390af8",
581     "wires": []
582   },
583   {
584     "id": "645720a8.c9b45",
585     "type": "comment",
586     "name": "Check existence of other AR in parent service data",
587     "info": "Check if other allotted resource is available.",
588     "comments": "",
589     "x": 706.9667510986328,
590     "y": 865.8968267440796,
591     "z": "4ec136ff.390af8",
592     "wires": []
593   },
594   {
595     "id": "a518915c.e4ec5",
596     "type": "other",
597     "name": "outcome 1",
598     "xml": "<outcome value='1'>\n",
599     "comments": "",
600     "outputs": 1,
601     "x": 1089.9832229614258,
602     "y": 966.681170463562,
603     "z": "4ec136ff.390af8",
604     "wires": [
605       [
606         "613ca19d.9a54f"
607       ]
608     ]
609   },
610   {
611     "id": "6bf2a454.b0478c",
612     "type": "returnFailure",
613     "name": "return failure",
614     "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",
615     "comments": "",
616     "x": 1251.9832191467285,
617     "y": 1030.681191444397,
618     "z": "4ec136ff.390af8",
619     "wires": []
620   },
621   {
622     "id": "525b4334.32e11c",
623     "type": "other",
624     "name": "outcome 2",
625     "xml": "<outcome value='2'>\n",
626     "comments": "",
627     "outputs": 1,
628     "x": 1095.9832973480225,
629     "y": 897.6811778321862,
630     "z": "4ec136ff.390af8",
631     "wires": [
632       [
633         "879c81fc.e34a9"
634       ]
635     ]
636   },
637   {
638     "id": "bd0a6759.014208",
639     "type": "block",
640     "name": "block",
641     "xml": "<block>\n",
642     "atomic": "false",
643     "comments": "",
644     "outputs": 1,
645     "x": 2446.094711303711,
646     "y": 874.6810827255249,
647     "z": "4ec136ff.390af8",
648     "wires": [
649       []
650     ]
651   },
652   {
653     "id": "9210d9d0.b73bc8",
654     "type": "outcomeTrue",
655     "name": "false",
656     "xml": "<outcome value='false'>\n",
657     "comments": "",
658     "outputs": 1,
659     "x": 2317.0947036743164,
660     "y": 913.6810865402222,
661     "z": "4ec136ff.390af8",
662     "wires": [
663       [
664         "5b20e51b.570d9c"
665       ]
666     ]
667   },
668   {
669     "id": "1306b994.c05466",
670     "type": "switchNode",
671     "name": "switch mdsal-psd.networks_length",
672     "xml": "<switch test='`$mdsal-psd.service-data.networks.network_length`'>\n",
673     "comments": "",
674     "outputs": 1,
675     "x": 1502.3169021606445,
676     "y": 969.9036674499512,
677     "z": "4ec136ff.390af8",
678     "wires": [
679       [
680         "bcbc6710.4989d8",
681         "4a1544ae.b670bc"
682       ]
683     ]
684   },
685   {
686     "id": "4a1544ae.b670bc",
687     "type": "other",
688     "name": "outcome 1",
689     "xml": "<outcome value='1'>\n",
690     "comments": "",
691     "outputs": 1,
692     "x": 1732.3169250488281,
693     "y": 945.7924995422363,
694     "z": "4ec136ff.390af8",
695     "wires": [
696       [
697         "dd72a26.9ccfe6"
698       ]
699     ]
700   },
701   {
702     "id": "bcbc6710.4989d8",
703     "type": "other",
704     "name": "other",
705     "xml": "<outcome value='Other'>\n",
706     "comments": "",
707     "outputs": 1,
708     "x": 1726.3170471191406,
709     "y": 1005.7924995422363,
710     "z": "4ec136ff.390af8",
711     "wires": [
712       [
713         "a79d34a4.7a5eb8"
714       ]
715     ]
716   },
717   {
718     "id": "a79d34a4.7a5eb8",
719     "type": "returnFailure",
720     "name": "return failure",
721     "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: Incorrect state found more then 1 network\" />\n    \n",
722     "comments": "",
723     "x": 1898.9694328308105,
724     "y": 1005.8943061828613,
725     "z": "4ec136ff.390af8",
726     "wires": []
727   },
728   {
729     "id": "4762bac5.0337d4",
730     "type": "set",
731     "name": "set tmp.network.",
732     "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[0].`' />\n",
733     "comments": "",
734     "x": 2100.761848449707,
735     "y": 935.7926588058472,
736     "z": "4ec136ff.390af8",
737     "wires": []
738   },
739   {
740     "id": "613ca19d.9a54f",
741     "type": "block",
742     "name": "block : atomic",
743     "xml": "<block atomic=\"true\">",
744     "atomic": "true",
745     "outputs": 1,
746     "x": 1262.427577972412,
747     "y": 967.7924184799194,
748     "z": "4ec136ff.390af8",
749     "wires": [
750       [
751         "1306b994.c05466"
752       ]
753     ]
754   },
755   {
756     "id": "dd72a26.9ccfe6",
757     "type": "block",
758     "name": "block : atomic",
759     "xml": "<block atomic=\"true\">",
760     "atomic": "true",
761     "outputs": 1,
762     "x": 1900.094596862793,
763     "y": 964.7923336029053,
764     "z": "4ec136ff.390af8",
765     "wires": [
766       [
767         "4762bac5.0337d4",
768         "da4b8e5c.bc1b9"
769       ]
770     ]
771   },
772   {
773     "id": "da4b8e5c.bc1b9",
774     "type": "for",
775     "name": "for nidx..tmp.network.network-data.network-request-input.network...[]",
776     "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >",
777     "comments": "",
778     "outputs": 1,
779     "x": 2276.09521484375,
780     "y": 1007.7923412322998,
781     "z": "4ec136ff.390af8",
782     "wires": [
783       [
784         "ff7a40b2.21a91"
785       ]
786     ]
787   },
788   {
789     "id": "ff7a40b2.21a91",
790     "type": "block",
791     "name": "block",
792     "xml": "<block>\n",
793     "atomic": "false",
794     "comments": "",
795     "outputs": 1,
796     "x": 2599.6508750915527,
797     "y": 1008.7924184799194,
798     "z": "4ec136ff.390af8",
799     "wires": [
800       [
801         "ffa1f84e.980b68",
802         "b00db02b.eb8b6"
803       ]
804     ]
805   },
806   {
807     "id": "ffa1f84e.980b68",
808     "type": "switchNode",
809     "name": "switch access-node-id",
810     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">",
811     "comments": "",
812     "outputs": 1,
813     "x": 2778.1609802246094,
814     "y": 992.8028364181519,
815     "z": "4ec136ff.390af8",
816     "wires": [
817       [
818         "3081e79b.edd628"
819       ]
820     ]
821   },
822   {
823     "id": "3081e79b.edd628",
824     "type": "outcomeTrue",
825     "name": "true",
826     "xml": "<outcome value='true'>\n",
827     "comments": "",
828     "outputs": 1,
829     "x": 2965.1609802246094,
830     "y": 993.8028364181519,
831     "z": "4ec136ff.390af8",
832     "wires": [
833       [
834         "d1012448.dbd488"
835       ]
836     ]
837   },
838   {
839     "id": "d1012448.dbd488",
840     "type": "set",
841     "name": "set tmp.found-in-network tmp.ep-available",
842     "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
843     "comments": "",
844     "x": 3216.160987854004,
845     "y": 993.4027786254883,
846     "z": "4ec136ff.390af8",
847     "wires": []
848   },
849   {
850     "id": "b00db02b.eb8b6",
851     "type": "returnSuccess",
852     "name": "return success",
853     "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",
854     "comments": "",
855     "x": 2761.15087890625,
856     "y": 1037.7924356460571,
857     "z": "4ec136ff.390af8",
858     "wires": []
859   },
860   {
861     "id": "648ef4ed.e1062c",
862     "type": "switchNode",
863     "name": "switch tmp.ep-available",
864     "xml": "<switch test='`$tmp.ep-available`'>\n",
865     "comments": "",
866     "outputs": 1,
867     "x": 638.3167724609375,
868     "y": 1170.2366914749146,
869     "z": "4ec136ff.390af8",
870     "wires": [
871       [
872         "59ee447d.77e34c",
873         "88dd47.020332b8"
874       ]
875     ]
876   },
877   {
878     "id": "88dd47.020332b8",
879     "type": "outcomeTrue",
880     "name": "true",
881     "xml": "<outcome value='true'>\n",
882     "comments": "",
883     "outputs": 1,
884     "x": 820.9836082458496,
885     "y": 1194.5700998306274,
886     "z": "4ec136ff.390af8",
887     "wires": [
888       [
889         "f03a557c.a1bc78"
890       ]
891     ]
892   },
893   {
894     "id": "59ee447d.77e34c",
895     "type": "outcomeTrue",
896     "name": "false",
897     "xml": "<outcome value='false'>\n",
898     "comments": "",
899     "outputs": 1,
900     "x": 823.8723793029785,
901     "y": 1133.570198059082,
902     "z": "4ec136ff.390af8",
903     "wires": [
904       [
905         "5a5c3a3.170aec4"
906       ]
907     ]
908   },
909   {
910     "id": "5a5c3a3.170aec4",
911     "type": "block",
912     "name": "block",
913     "xml": "<block>\n",
914     "atomic": "false",
915     "comments": "",
916     "outputs": 1,
917     "x": 960.8724555969238,
918     "y": 1132.4590120315552,
919     "z": "4ec136ff.390af8",
920     "wires": [
921       []
922     ]
923   },
924   {
925     "id": "f03a557c.a1bc78",
926     "type": "block",
927     "name": "block : atomic",
928     "xml": "<block atomic=\"true\">",
929     "atomic": "true",
930     "outputs": 1,
931     "x": 991.0946960449219,
932     "y": 1192.5700578689575,
933     "z": "4ec136ff.390af8",
934     "wires": [
935       [
936         "7df4dec5.12529"
937       ]
938     ]
939   },
940   {
941     "id": "530d26e7.1066c8",
942     "type": "comment",
943     "name": "GET connection-attachment-ar to store AR data from mdsal",
944     "info": "",
945     "comments": "",
946     "x": 2176.476852416992,
947     "y": 372.5078754425049,
948     "z": "4ec136ff.390af8",
949     "wires": []
950   },
951   {
952     "id": "96d6938d.7bded",
953     "type": "comment",
954     "name": "Set source end point",
955     "info": "",
956     "comments": "",
957     "x": 614.9767456054688,
958     "y": 602.2579708099365,
959     "z": "4ec136ff.390af8",
960     "wires": []
961   },
962   {
963     "id": "4ca01b12.aeeae4",
964     "type": "set",
965     "name": "set tmp.ar.parent-service-instance-id",
966     "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",
967     "comments": "",
968     "x": 667.9728240966797,
969     "y": 727.0041151046753,
970     "z": "4ec136ff.390af8",
971     "wires": []
972   },
973   {
974     "id": "13901d91.bcbec2",
975     "type": "success",
976     "name": "success",
977     "xml": "<outcome value='success'>\n",
978     "comments": "",
979     "outputs": 1,
980     "x": 1045.9728202819824,
981     "y": 776.004114151001,
982     "z": "4ec136ff.390af8",
983     "wires": [
984       [
985         "1def54f0.081ddb"
986       ]
987     ]
988   },
989   {
990     "id": "eada0637.1dd9c8",
991     "type": "other",
992     "name": "other",
993     "xml": "<outcome value='Other'>\n",
994     "comments": "",
995     "outputs": 1,
996     "x": 1037.8246231079102,
997     "y": 811.0701990127563,
998     "z": "4ec136ff.390af8",
999     "wires": [
1000       [
1001         "7eae3ac9.be18e4"
1002       ]
1003     ]
1004   },
1005   {
1006     "id": "7eae3ac9.be18e4",
1007     "type": "returnFailure",
1008     "name": "return failure",
1009     "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",
1010     "comments": "",
1011     "x": 1212.9733085632324,
1012     "y": 807.3375492095947,
1013     "z": "4ec136ff.390af8",
1014     "wires": []
1015   },
1016   {
1017     "id": "1def54f0.081ddb",
1018     "type": "block",
1019     "name": "block",
1020     "xml": "<block>\n",
1021     "atomic": "false",
1022     "comments": "",
1023     "outputs": 1,
1024     "x": 1196.9728202819824,
1025     "y": 774.004114151001,
1026     "z": "4ec136ff.390af8",
1027     "wires": [
1028       []
1029     ]
1030   },
1031   {
1032     "id": "6963b7ed.1ac188",
1033     "type": "set",
1034     "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",
1035     "xml": "<set>\n<parameter name='tmp.found-in-ar' value='false' />\n<parameter name='tmp.found-in-network' value='false' />\n<parameter name='tmp.ep-available' value='false' />",
1036     "comments": "",
1037     "x": 754.9728164672852,
1038     "y": 901.0040884017944,
1039     "z": "4ec136ff.390af8",
1040     "wires": []
1041   },
1042   {
1043     "id": "e7dc10be.4a762",
1044     "type": "comment",
1045     "name": "If other EP exists delete from domain controller",
1046     "info": "",
1047     "comments": "",
1048     "x": 688.9727172851562,
1049     "y": 1095.003903388977,
1050     "z": "4ec136ff.390af8",
1051     "wires": []
1052   },
1053   {
1054     "id": "3c03726e.58d62e",
1055     "type": "set",
1056     "name": "set controller data",
1057     "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",
1058     "comments": "",
1059     "x": 2693.97354888916,
1060     "y": 1392.0043325424194,
1061     "z": "4ec136ff.390af8",
1062     "wires": []
1063   },
1064   {
1065     "id": "b649f241.fe659",
1066     "type": "get-resource",
1067     "name": "get-resource esr-thirdparty-sdnc",
1068     "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 = $tmp.thirdparty-sdnc-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
1069     "comments": "",
1070     "outputs": 1,
1071     "x": 2257.473487854004,
1072     "y": 1451.0043325424194,
1073     "z": "4ec136ff.390af8",
1074     "wires": [
1075       [
1076         "4eb1e7d1.a91458",
1077         "8b33a960.d74f98",
1078         "58a39417.8a89cc"
1079       ]
1080     ]
1081   },
1082   {
1083     "id": "4eb1e7d1.a91458",
1084     "type": "success",
1085     "name": "success",
1086     "xml": "<outcome value='success'>\n",
1087     "comments": "",
1088     "outputs": 1,
1089     "x": 2496.473487854004,
1090     "y": 1404.0043325424194,
1091     "z": "4ec136ff.390af8",
1092     "wires": [
1093       [
1094         "3c03726e.58d62e"
1095       ]
1096     ]
1097   },
1098   {
1099     "id": "8b33a960.d74f98",
1100     "type": "not-found",
1101     "name": "not-found",
1102     "xml": "<outcome value='not-found'>\n",
1103     "comments": "",
1104     "outputs": 1,
1105     "x": 2499.964454650879,
1106     "y": 1451.5783681869507,
1107     "z": "4ec136ff.390af8",
1108     "wires": [
1109       [
1110         "d1891615.f0fe68"
1111       ]
1112     ]
1113   },
1114   {
1115     "id": "58a39417.8a89cc",
1116     "type": "other",
1117     "name": "other",
1118     "xml": "<outcome value='Other'>\n",
1119     "comments": "",
1120     "outputs": 1,
1121     "x": 2495.297462463379,
1122     "y": 1492.911681175232,
1123     "z": "4ec136ff.390af8",
1124     "wires": [
1125       [
1126         "9094de14.94959"
1127       ]
1128     ]
1129   },
1130   {
1131     "id": "d1891615.f0fe68",
1132     "type": "returnFailure",
1133     "name": "return failure",
1134     "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",
1135     "comments": "",
1136     "x": 2676.5358657836914,
1137     "y": 1439.864104270935,
1138     "z": "4ec136ff.390af8",
1139     "wires": []
1140   },
1141   {
1142     "id": "9094de14.94959",
1143     "type": "returnFailure",
1144     "name": "return failure",
1145     "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",
1146     "comments": "",
1147     "x": 2683.0700187683105,
1148     "y": 1488.3508739471436,
1149     "z": "4ec136ff.390af8",
1150     "wires": []
1151   },
1152   {
1153     "id": "de59b3c5.550e5",
1154     "type": "get-resource",
1155     "name": "get-resource pnf",
1156     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"network-resource.network-id = $mdsal-psd.service-data.networks.network[0].network-id \n\t\tAND pnf.pnf-name = $tmp.node-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.pnf' local-only='false' >\n\n\n\n",
1157     "comments": "",
1158     "outputs": 1,
1159     "x": 2199.9736404418945,
1160     "y": 1336.004324913025,
1161     "z": "4ec136ff.390af8",
1162     "wires": [
1163       [
1164         "e39bc756.013308",
1165         "2a9857ce.2f6878",
1166         "1952da4b.fcde26"
1167       ]
1168     ]
1169   },
1170   {
1171     "id": "e39bc756.013308",
1172     "type": "success",
1173     "name": "success",
1174     "xml": "<outcome value='success'>\n",
1175     "comments": "",
1176     "outputs": 1,
1177     "x": 2387.9736557006836,
1178     "y": 1282.0043172836304,
1179     "z": "4ec136ff.390af8",
1180     "wires": [
1181       [
1182         "21d4c191.6f41ee"
1183       ]
1184     ]
1185   },
1186   {
1187     "id": "2a9857ce.2f6878",
1188     "type": "not-found",
1189     "name": "not-found",
1190     "xml": "<outcome value='not-found'>\n",
1191     "comments": "",
1192     "outputs": 1,
1193     "x": 2393.464702606201,
1194     "y": 1324.5782136917114,
1195     "z": "4ec136ff.390af8",
1196     "wires": [
1197       [
1198         "7c6a4960.24dda8"
1199       ]
1200     ]
1201   },
1202   {
1203     "id": "1952da4b.fcde26",
1204     "type": "other",
1205     "name": "other",
1206     "xml": "<outcome value='Other'>\n",
1207     "comments": "",
1208     "outputs": 1,
1209     "x": 2379.797710418701,
1210     "y": 1362.9115495681763,
1211     "z": "4ec136ff.390af8",
1212     "wires": [
1213       [
1214         "6c19b1e1.1bbdd"
1215       ]
1216     ]
1217   },
1218   {
1219     "id": "7c6a4960.24dda8",
1220     "type": "returnFailure",
1221     "name": "return failure",
1222     "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
1223     "comments": "",
1224     "x": 2547.036003112793,
1225     "y": 1314.8640203475952,
1226     "z": "4ec136ff.390af8",
1227     "wires": []
1228   },
1229   {
1230     "id": "6c19b1e1.1bbdd",
1231     "type": "returnFailure",
1232     "name": "return failure",
1233     "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
1234     "comments": "",
1235     "x": 2543.570182800293,
1236     "y": 1354.3508396148682,
1237     "z": "4ec136ff.390af8",
1238     "wires": []
1239   },
1240   {
1241     "id": "21d4c191.6f41ee",
1242     "type": "set",
1243     "name": "set tmp.thirdparty-sdnc-id",
1244     "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
1245     "comments": "",
1246     "x": 2587.9736709594727,
1247     "y": 1277.0043172836304,
1248     "z": "4ec136ff.390af8",
1249     "wires": []
1250   },
1251   {
1252     "id": "4f8efcb5.a9cf14",
1253     "type": "comment",
1254     "name": "get domain controller information",
1255     "info": "",
1256     "comments": "",
1257     "x": 2243.4775466918945,
1258     "y": 1305.0082921981812,
1259     "z": "4ec136ff.390af8",
1260     "wires": []
1261   },
1262   {
1263     "id": "35e0c434.3e437c",
1264     "type": "execute",
1265     "name": "execute RestApiCallNode Delete ethernet Service",
1266     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + 'restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.vpn-name`\" />\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=\"delete\"/>\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`\" />",
1267     "comments": "",
1268     "outputs": 1,
1269     "x": 2305.97354888916,
1270     "y": 1556.0043325424194,
1271     "z": "4ec136ff.390af8",
1272     "wires": [
1273       [
1274         "c3b6b741.e17f38",
1275         "dfd52870.a619b8"
1276       ]
1277     ]
1278   },
1279   {
1280     "id": "c3b6b741.e17f38",
1281     "type": "success",
1282     "name": "success",
1283     "xml": "<outcome value='success'>\n",
1284     "comments": "",
1285     "outputs": 1,
1286     "x": 2592.973487854004,
1287     "y": 1579.0043325424194,
1288     "z": "4ec136ff.390af8",
1289     "wires": [
1290       [
1291         "1373f104.3035cf"
1292       ]
1293     ]
1294   },
1295   {
1296     "id": "1373f104.3035cf",
1297     "type": "block",
1298     "name": "block : atomic",
1299     "xml": "<block atomic=\"true\">",
1300     "atomic": "true",
1301     "comments": "",
1302     "outputs": 1,
1303     "x": 2762.9734268188477,
1304     "y": 1582.0043325424194,
1305     "z": "4ec136ff.390af8",
1306     "wires": [
1307       []
1308     ]
1309   },
1310   {
1311     "id": "98709530.f9e578",
1312     "type": "returnFailure",
1313     "name": "return failure",
1314     "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",
1315     "comments": "",
1316     "x": 2762.97354888916,
1317     "y": 1538.0043325424194,
1318     "z": "4ec136ff.390af8",
1319     "wires": []
1320   },
1321   {
1322     "id": "dfd52870.a619b8",
1323     "type": "failure",
1324     "name": "failure",
1325     "xml": "<outcome value='failure'>\n",
1326     "comments": "",
1327     "outputs": 1,
1328     "x": 2595.9734268188477,
1329     "y": 1538.0043325424194,
1330     "z": "4ec136ff.390af8",
1331     "wires": [
1332       [
1333         "98709530.f9e578"
1334       ]
1335     ]
1336   },
1337   {
1338     "id": "a09d44d6.036498",
1339     "type": "failure",
1340     "name": "failure",
1341     "xml": "<outcome value='failure'>\n",
1342     "comments": "",
1343     "outputs": 1,
1344     "x": 917.7346534729004,
1345     "y": 1694.9566963911057,
1346     "z": "4ec136ff.390af8",
1347     "wires": [
1348       [
1349         "8338cff1.c1a26"
1350       ]
1351     ]
1352   },
1353   {
1354     "id": "8338cff1.c1a26",
1355     "type": "returnFailure",
1356     "name": "return failure",
1357     "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",
1358     "comments": "",
1359     "x": 1084.2585334777832,
1360     "y": 1706.5757673978806,
1361     "z": "4ec136ff.390af8",
1362     "wires": []
1363   },
1364   {
1365     "id": "9111ff4f.4282f",
1366     "type": "failure",
1367     "name": "not-found",
1368     "xml": "<outcome value='not-found'>\n",
1369     "comments": "",
1370     "outputs": 1,
1371     "x": 924.8299407958984,
1372     "y": 1727.7186640501022,
1373     "z": "4ec136ff.390af8",
1374     "wires": [
1375       [
1376         "8338cff1.c1a26"
1377       ]
1378     ]
1379   },
1380   {
1381     "id": "e911009.f267e",
1382     "type": "comment",
1383     "name": "Save Resource to AAI",
1384     "info": "",
1385     "comments": "",
1386     "x": 636.7823677062988,
1387     "y": 1677.3060846328735,
1388     "z": "4ec136ff.390af8",
1389     "wires": []
1390   },
1391   {
1392     "id": "3a95a888.e92908",
1393     "type": "set",
1394     "name": "set output to api handler",
1395     "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",
1396     "comments": "",
1397     "x": 651.5500640869141,
1398     "y": 1598.8315658569336,
1399     "z": "4ec136ff.390af8",
1400     "wires": []
1401   },
1402   {
1403     "id": "dd09565b.b81778",
1404     "type": "returnSuccess",
1405     "name": "return success",
1406     "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",
1407     "comments": "",
1408     "x": 619.9631462097168,
1409     "y": 1759.4473180770874,
1410     "z": "4ec136ff.390af8",
1411     "wires": []
1412   },
1413   {
1414     "id": "1507ea99.aa8315",
1415     "type": "execute",
1416     "name": "execute RestApiCallNode - PUT AR by id",
1417     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-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",
1418     "comments": "",
1419     "outputs": 1,
1420     "x": 701.2821655273438,
1421     "y": 1506.472339630127,
1422     "z": "4ec136ff.390af8",
1423     "wires": [
1424       [
1425         "36bc9007.e2fa4",
1426         "65e8ae51.bc0a7",
1427         "822d49a0.d686d8"
1428       ]
1429     ]
1430   },
1431   {
1432     "id": "36bc9007.e2fa4",
1433     "type": "not-found",
1434     "name": "not-found",
1435     "xml": "<outcome value='not-found'>\n",
1436     "comments": "",
1437     "outputs": 1,
1438     "x": 969.9235420227051,
1439     "y": 1557.803751371801,
1440     "z": "4ec136ff.390af8",
1441     "wires": [
1442       [
1443         "4b0971a1.d1673"
1444       ]
1445     ]
1446   },
1447   {
1448     "id": "65e8ae51.bc0a7",
1449     "type": "failure",
1450     "name": "failure",
1451     "xml": "<outcome value='failure'>\n",
1452     "comments": "",
1453     "outputs": 1,
1454     "x": 960.9235916137695,
1455     "y": 1526.3037771210074,
1456     "z": "4ec136ff.390af8",
1457     "wires": [
1458       [
1459         "4b0971a1.d1673"
1460       ]
1461     ]
1462   },
1463   {
1464     "id": "822d49a0.d686d8",
1465     "type": "success",
1466     "name": "success",
1467     "xml": "<outcome value='success'>\n",
1468     "comments": "",
1469     "outputs": 1,
1470     "x": 964.6736297607422,
1471     "y": 1496.6608819961548,
1472     "z": "4ec136ff.390af8",
1473     "wires": [
1474       [
1475         "d0da3bc8.9e8958"
1476       ]
1477     ]
1478   },
1479   {
1480     "id": "4b0971a1.d1673",
1481     "type": "returnFailure",
1482     "name": "return failure",
1483     "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",
1484     "comments": "",
1485     "x": 1130.6736297607422,
1486     "y": 1527.0538009628654,
1487     "z": "4ec136ff.390af8",
1488     "wires": []
1489   },
1490   {
1491     "id": "d0da3bc8.9e8958",
1492     "type": "block",
1493     "name": "block",
1494     "xml": "<block>\n",
1495     "atomic": "false",
1496     "comments": "",
1497     "outputs": 1,
1498     "x": 1106.3295974731445,
1499     "y": 1492.853051185608,
1500     "z": "4ec136ff.390af8",
1501     "wires": [
1502       []
1503     ]
1504   },
1505   {
1506     "id": "2a2a1345.d7f2ec",
1507     "type": "set",
1508     "name": "set ar-data",
1509     "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<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />",
1510     "comments": "",
1511     "x": 601.4957847595215,
1512     "y": 1356.8532626628876,
1513     "z": "4ec136ff.390af8",
1514     "wires": []
1515   },
1516   {
1517     "id": "f1e26abf.1dc9f8",
1518     "type": "execute",
1519     "name": "execute getTime",
1520     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
1521     "comments": "",
1522     "outputs": 1,
1523     "x": 618.7816276550293,
1524     "y": 1429.4728603363037,
1525     "z": "4ec136ff.390af8",
1526     "wires": [
1527       []
1528     ]
1529   },
1530   {
1531     "id": "25f9e140.e4210e",
1532     "type": "set",
1533     "name": "set allotted-resource-oper-status",
1534     "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",
1535     "comments": "",
1536     "x": 673.768684387207,
1537     "y": 1467.4239978790283,
1538     "z": "4ec136ff.390af8",
1539     "wires": []
1540   },
1541   {
1542     "id": "5c89f183.d2653",
1543     "type": "set",
1544     "name": "set model-data",
1545     "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.` \" />",
1546     "comments": "",
1547     "x": 615.3373260498047,
1548     "y": 1396.027913093567,
1549     "z": "4ec136ff.390af8",
1550     "wires": []
1551   },
1552   {
1553     "id": "b42e02fb.93ce4",
1554     "type": "comment",
1555     "name": "Prepare data for allotted-resource addition to MDSAL",
1556     "info": "This will add to allotted-resource which is present inside service.",
1557     "comments": "",
1558     "x": 728.6707878112793,
1559     "y": 1317.0278651714325,
1560     "z": "4ec136ff.390af8",
1561     "wires": []
1562   },
1563   {
1564     "id": "3f84c752.6766f8",
1565     "type": "comment",
1566     "name": "Add to allotted-resources in mdsal",
1567     "info": "",
1568     "comments": "",
1569     "x": 670.2506141662598,
1570     "y": 1284.4411668777466,
1571     "z": "4ec136ff.390af8",
1572     "wires": []
1573   },
1574   {
1575     "id": "60ba1f59.42707",
1576     "type": "update",
1577     "name": "update AAI allotted-resource",
1578     "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n        pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"PendingDelete\" />\n",
1579     "comments": "",
1580     "outputs": 1,
1581     "x": 663.2266464233398,
1582     "y": 1714.7582273483276,
1583     "z": "4ec136ff.390af8",
1584     "wires": [
1585       [
1586         "a09d44d6.036498",
1587         "9111ff4f.4282f"
1588       ]
1589     ]
1590   },
1591   {
1592     "id": "7df4dec5.12529",
1593     "type": "get-resource",
1594     "name": "get-resource connectivity",
1595     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"connectivity\" \n\t\tkey=\"connectivity.connectivity-id = $mdsal-psd.networks.network[0].network-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.connectivity' local-only='false' >\n",
1596     "comments": "",
1597     "outputs": 1,
1598     "x": 1197.0044708251953,
1599     "y": 1192.5083332061768,
1600     "z": "4ec136ff.390af8",
1601     "wires": [
1602       [
1603         "c873d73.0af9728",
1604         "1fd3fb2b.7cf7a5"
1605       ]
1606     ]
1607   },
1608   {
1609     "id": "482867b5.2cc388",
1610     "type": "block",
1611     "name": "block : atomic",
1612     "xml": "<block atomic=\"true\">",
1613     "atomic": "true",
1614     "outputs": 1,
1615     "x": 1970.1217803955078,
1616     "y": 1389.3484659194946,
1617     "z": "4ec136ff.390af8",
1618     "wires": [
1619       [
1620         "6613cefb.76171",
1621         "6eb3502d.b2e8f",
1622         "de59b3c5.550e5",
1623         "b649f241.fe659",
1624         "35e0c434.3e437c"
1625       ]
1626     ]
1627   },
1628   {
1629     "id": "a4dcab46.732d98",
1630     "type": "outcome",
1631     "name": "vpn-binding",
1632     "xml": "<outcome value='vpn-binding'>\n",
1633     "comments": "",
1634     "outputs": 1,
1635     "x": 1796.290298461914,
1636     "y": 1391.8299894332886,
1637     "z": "4ec136ff.390af8",
1638     "wires": [
1639       [
1640         "482867b5.2cc388"
1641       ]
1642     ]
1643   },
1644   {
1645     "id": "2e8bc3df.71844c",
1646     "type": "for",
1647     "name": "for each relationship",
1648     "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.connectivity.relationship-list.relationship_length`' >\n",
1649     "comments": "",
1650     "outputs": 1,
1651     "x": 1418.0042419433594,
1652     "y": 1390.0082159042358,
1653     "z": "4ec136ff.390af8",
1654     "wires": [
1655       [
1656         "8af67803.bf6a88"
1657       ]
1658     ]
1659   },
1660   {
1661     "id": "8af67803.bf6a88",
1662     "type": "switchNode",
1663     "name": "switch related-to",
1664     "xml": "<switch test='`$tmp.connectivity.relationship-list.relationship[$vidx].related-to`'>\n",
1665     "comments": "",
1666     "outputs": 1,
1667     "x": 1630.0042533874512,
1668     "y": 1391.0082159042358,
1669     "z": "4ec136ff.390af8",
1670     "wires": [
1671       [
1672         "a4dcab46.732d98"
1673       ]
1674     ]
1675   },
1676   {
1677     "id": "6eb3502d.b2e8f",
1678     "type": "set",
1679     "name": "set tmp.vpn-name",
1680     "xml": "<set>\n<parameter name='tmp.vpn-name' value=\"`$tmp.connectivity.relationship-list.relationship[$vidx].relationship-data[0].relationship-value` \" />\n",
1681     "comments": "",
1682     "x": 2203.0044479370117,
1683     "y": 1103.008532524109,
1684     "z": "4ec136ff.390af8",
1685     "wires": []
1686   },
1687   {
1688     "id": "6613cefb.76171",
1689     "type": "execute",
1690     "name": "split vpnName to find nodeId",
1691     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.vpn-name`'/>\n<parameter name=\"regex\" value=\"-\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"route1\"/>\n",
1692     "comments": "",
1693     "outputs": 1,
1694     "x": 2239.0044021606445,
1695     "y": 1204.0078992843628,
1696     "z": "4ec136ff.390af8",
1697     "wires": [
1698       [
1699         "41fe5a08.6540e4",
1700         "12fef836.878578"
1701       ]
1702     ]
1703   },
1704   {
1705     "id": "12fef836.878578",
1706     "type": "failure",
1707     "name": "success",
1708     "xml": "<outcome value='success'>\n",
1709     "comments": "",
1710     "outputs": 1,
1711     "x": 2440.004592895508,
1712     "y": 1181.0078916549683,
1713     "z": "4ec136ff.390af8",
1714     "wires": [
1715       [
1716         "c4ef2190.9fbc6"
1717       ]
1718     ]
1719   },
1720   {
1721     "id": "c4ef2190.9fbc6",
1722     "type": "set",
1723     "name": "set tmp.node-id",
1724     "xml": "<set>\n<parameter name='tmp.node-id' value='`$route1[0]`' />\n",
1725     "comments": "",
1726     "x": 2593.004753112793,
1727     "y": 1179.0078926086426,
1728     "z": "4ec136ff.390af8",
1729     "wires": []
1730   },
1731   {
1732     "id": "fa885e6a.929bd",
1733     "type": "returnFailure",
1734     "name": "return failure",
1735     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
1736     "comments": "",
1737     "x": 2577.004919052124,
1738     "y": 1228.0078945159912,
1739     "z": "4ec136ff.390af8",
1740     "wires": []
1741   },
1742   {
1743     "id": "41fe5a08.6540e4",
1744     "type": "failure",
1745     "name": "failure",
1746     "xml": "<outcome value='failure'>\n",
1747     "comments": "",
1748     "outputs": 1,
1749     "x": 2437.00457572937,
1750     "y": 1229.0078964233398,
1751     "z": "4ec136ff.390af8",
1752     "wires": [
1753       [
1754         "fa885e6a.929bd"
1755       ]
1756     ]
1757   },
1758   {
1759     "id": "c873d73.0af9728",
1760     "type": "success",
1761     "name": "success",
1762     "xml": "<outcome value='success'>\n",
1763     "comments": "",
1764     "outputs": 1,
1765     "x": 1378.0040702819824,
1766     "y": 1227.0039777755737,
1767     "z": "4ec136ff.390af8",
1768     "wires": [
1769       [
1770         "72cdc300.185abc"
1771       ]
1772     ]
1773   },
1774   {
1775     "id": "1fd3fb2b.7cf7a5",
1776     "type": "other",
1777     "name": "other",
1778     "xml": "<outcome value='Other'>\n",
1779     "comments": "",
1780     "outputs": 1,
1781     "x": 1380.855800628662,
1782     "y": 1154.0702228546143,
1783     "z": "4ec136ff.390af8",
1784     "wires": [
1785       [
1786         "132951fb.62166e"
1787       ]
1788     ]
1789   },
1790   {
1791     "id": "132951fb.62166e",
1792     "type": "returnFailure",
1793     "name": "return failure",
1794     "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: Connectivity resource not found\" />\n    \n",
1795     "comments": "",
1796     "x": 1523.0045700073242,
1797     "y": 1154.3376331329346,
1798     "z": "4ec136ff.390af8",
1799     "wires": []
1800   },
1801   {
1802     "id": "72cdc300.185abc",
1803     "type": "block",
1804     "name": "block",
1805     "xml": "<block>\n",
1806     "atomic": "false",
1807     "comments": "",
1808     "outputs": 1,
1809     "x": 1380.0040817260742,
1810     "y": 1305.0041437149048,
1811     "z": "4ec136ff.390af8",
1812     "wires": [
1813       [
1814         "2e8bc3df.71844c"
1815       ]
1816     ]
1817   },
1818   {
1819     "id": "bf1b5f9f.275aa",
1820     "type": "execute",
1821     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1822     "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",
1823     "comments": "",
1824     "outputs": 1,
1825     "x": 816.3378601074219,
1826     "y": 553.5038557052612,
1827     "z": "4ec136ff.390af8",
1828     "wires": [
1829       [
1830         "f65756e0.dd7818",
1831         "1584b53e.263d2b"
1832       ]
1833     ]
1834   },
1835   {
1836     "id": "ff509458.45f008",
1837     "type": "execute",
1838     "name": "get parent-service-data tmp.ar-url-psd",
1839     "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",
1840     "comments": "",
1841     "outputs": 1,
1842     "x": 670.0041046142578,
1843     "y": 762.0041170120239,
1844     "z": "4ec136ff.390af8",
1845     "wires": [
1846       []
1847     ]
1848   },
1849   {
1850     "id": "980e2d4b.7e472",
1851     "type": "execute",
1852     "name": "execute RestApiCallNode - get-resource parent service data",
1853     "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",
1854     "comments": "",
1855     "outputs": 1,
1856     "x": 737.0040664672852,
1857     "y": 797.0042009353638,
1858     "z": "4ec136ff.390af8",
1859     "wires": [
1860       [
1861         "13901d91.bcbec2",
1862         "eada0637.1dd9c8"
1863       ]
1864     ]
1865   },
1866   {
1867     "id": "372ff043.61187",
1868     "type": "switchNode",
1869     "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",
1870     "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",
1871     "comments": "",
1872     "outputs": 1,
1873     "x": 753.1881866455078,
1874     "y": 971.7220287322998,
1875     "z": "4ec136ff.390af8",
1876     "wires": [
1877       [
1878         "e3f9ceb3.fcc12",
1879         "a518915c.e4ec5",
1880         "525b4334.32e11c"
1881       ]
1882     ]
1883   }
1884 ]