Merge "Adding site Resource DG"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json
1 [
2   {
3     "id": "8f583882.aaba08",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 107.66669082641602,
8     "y": 36.000003814697266,
9     "z": "b5ee72b6.6e8c5",
10     "wires": [
11       [
12         "1c8f0b92.b2d0f4"
13       ]
14     ]
15   },
16   {
17     "id": "1c8f0b92.b2d0f4",
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": 319.6666946411133,
26     "y": 108.00002098083496,
27     "z": "b5ee72b6.6e8c5",
28     "wires": [
29       [
30         "7867cbb1.cd6464"
31       ]
32     ]
33   },
34   {
35     "id": "7867cbb1.cd6464",
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": 307.6668128967285,
42     "y": 196.00000381469727,
43     "z": "b5ee72b6.6e8c5",
44     "wires": [
45       [
46         "788e5fc3.c5d94"
47       ]
48     ]
49   },
50   {
51     "id": "788e5fc3.c5d94",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 323.6668128967285,
59     "y": 751.0002484321594,
60     "z": "b5ee72b6.6e8c5",
61     "wires": [
62       [
63         "ed3ad3e3.7e5ae",
64         "bfd4a9cf.aa7918",
65         "9c88cb66.2575d8",
66         "8484c7db.980518",
67         "3abce4e4.32a12c",
68         "d7eaa0c2.0d298",
69         "601263d0.9079dc",
70         "290c05a0.21ca9a",
71         "dfdf08a.1b550f8",
72         "5040dd33.924624",
73         "7ff9e776.cf4d98",
74         "5af6e72b.9d69a8",
75         "2d9aed4c.fcfbd2",
76         "1d49bda0.f37e32",
77         "285d454d.f5f90a",
78         "c5b69925.729378",
79         "bc602338.67328",
80         "f080d760.856678",
81         "8e738bcf.052208"
82       ]
83     ]
84   },
85   {
86     "id": "ed3ad3e3.7e5ae",
87     "type": "set",
88     "name": "set tmp.ar.allotted-resource-id,etc",
89     "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",
90     "comments": "",
91     "x": 720.6602516174316,
92     "y": 149.99349069595337,
93     "z": "b5ee72b6.6e8c5",
94     "wires": [
95       
96     ]
97   },
98   {
99     "id": "4411681c.96fbf8",
100     "type": "comment",
101     "name": "set tmp ar-id to fetch resource from MDSAL",
102     "info": "",
103     "comments": "",
104     "x": 749.6205635070801,
105     "y": 114.02528667449951,
106     "z": "b5ee72b6.6e8c5",
107     "wires": [
108       
109     ]
110   },
111   {
112     "id": "bfd4a9cf.aa7918",
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": 674.6601905822754,
118     "y": 242.9934959411621,
119     "z": "b5ee72b6.6e8c5",
120     "wires": [
121       
122     ]
123   },
124   {
125     "id": "290c05a0.21ca9a",
126     "type": "execute",
127     "name": "execute Properties",
128     "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",
129     "comments": "",
130     "outputs": 1,
131     "x": 680.9220809936523,
132     "y": 330.6602249145508,
133     "z": "b5ee72b6.6e8c5",
134     "wires": [
135       [
136         
137       ]
138     ]
139   },
140   {
141     "id": "9c88cb66.2575d8",
142     "type": "execute",
143     "name": "generate allotted-resource url",
144     "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",
145     "comments": "",
146     "outputs": 1,
147     "x": 712.9221076965332,
148     "y": 418.6602063179016,
149     "z": "b5ee72b6.6e8c5",
150     "wires": [
151       [
152         
153       ]
154     ]
155   },
156   {
157     "id": "8484c7db.980518",
158     "type": "get-resource",
159     "name": "get-resource connection-attachment-allotted-resource",
160     "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='connection-attachment-allotted-resources/connection-attachment-allotted-resource/$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id/' pfx='mdsal-ar' >\n",
161     "comments": "",
162     "outputs": 1,
163     "x": 783.6602058410645,
164     "y": 508.7712650299072,
165     "z": "b5ee72b6.6e8c5",
166     "wires": [
167       [
168         "4af802cd.0768bc",
169         "9704e270.344da"
170       ]
171     ]
172   },
173   {
174     "id": "eec65610.3652f8",
175     "type": "comment",
176     "name": "GET connection-attachment-allotted-resource from mdsal",
177     "info": "",
178     "comments": "",
179     "x": 790.4750022888184,
180     "y": 480.53858375549316,
181     "z": "b5ee72b6.6e8c5",
182     "wires": [
183       
184     ]
185   },
186   {
187     "id": "eed42f31.59a27",
188     "type": "comment",
189     "name": "Used for setting output to API Handler",
190     "info": "",
191     "comments": "",
192     "x": 728.6602210998535,
193     "y": 209.99350547790527,
194     "z": "b5ee72b6.6e8c5",
195     "wires": [
196       
197     ]
198   },
199   {
200     "id": "a03ab63b.9e0678",
201     "type": "comment",
202     "name": "Obtain different URL, template location etc",
203     "info": "For saving resource information to MDSAL & for AAI",
204     "comments": "",
205     "x": 746.6601867675781,
206     "y": 295.88238620758057,
207     "z": "b5ee72b6.6e8c5",
208     "wires": [
209       
210     ]
211   },
212   {
213     "id": "94d139ba.87f2c8",
214     "type": "comment",
215     "name": "Used to Get AR by id to MDSAL, same as self-link",
216     "info": "",
217     "comments": "",
218     "x": 772.6602058410645,
219     "y": 382.88234519958496,
220     "z": "b5ee72b6.6e8c5",
221     "wires": [
222       
223     ]
224   },
225   {
226     "id": "4af802cd.0768bc",
227     "type": "success",
228     "name": "success",
229     "xml": "<outcome value='success'>\n",
230     "comments": "",
231     "outputs": 1,
232     "x": 1083.333408355713,
233     "y": 493.99999618530273,
234     "z": "b5ee72b6.6e8c5",
235     "wires": [
236       [
237         "a5fa6dd6.43795"
238       ]
239     ]
240   },
241   {
242     "id": "a5fa6dd6.43795",
243     "type": "block",
244     "name": "block: atomic",
245     "xml": "<block atomic=\"true\">\n",
246     "atomic": "false",
247     "comments": "",
248     "outputs": 1,
249     "x": 1252.3334121704102,
250     "y": 492.4998970031738,
251     "z": "b5ee72b6.6e8c5",
252     "wires": [
253       [
254         "2f8c441e.efd2ec"
255       ]
256     ]
257   },
258   {
259     "id": "2f8c441e.efd2ec",
260     "type": "switchNode",
261     "name": "switch cr length",
262     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
263     "comments": "",
264     "outputs": 1,
265     "x": 1463.1906547546387,
266     "y": 492.11902618408203,
267     "z": "b5ee72b6.6e8c5",
268     "wires": [
269       [
270         "e3552b55.2b7868",
271         "579fccfb.5c4c54"
272       ]
273     ]
274   },
275   {
276     "id": "e3552b55.2b7868",
277     "type": "other",
278     "name": "outcome 1",
279     "xml": "<outcome value='1'>\n",
280     "comments": "",
281     "outputs": 1,
282     "x": 1652.5239601135254,
283     "y": 492.1189842224121,
284     "z": "b5ee72b6.6e8c5",
285     "wires": [
286       [
287         "81b472dd.735a8"
288       ]
289     ]
290   },
291   {
292     "id": "81b472dd.735a8",
293     "type": "block",
294     "name": "block: atomic",
295     "xml": "<block atomic='true'>\n",
296     "atomic": "false",
297     "comments": "",
298     "outputs": 1,
299     "x": 1837.0478496551514,
300     "y": 489.02381801605225,
301     "z": "b5ee72b6.6e8c5",
302     "wires": [
303       [
304         "d81a29f1.be9278",
305         "d95be879.b1bde8",
306         "f4a4bf1b.b7da1"
307       ]
308     ]
309   },
310   {
311     "id": "31667ce1.fcbca4",
312     "type": "returnFailure",
313     "name": "return failure",
314     "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",
315     "comments": "",
316     "x": 1796.1856498718262,
317     "y": 570.0660495758057,
318     "z": "b5ee72b6.6e8c5",
319     "wires": [
320       
321     ]
322   },
323   {
324     "id": "9704e270.344da",
325     "type": "other",
326     "name": "other",
327     "xml": "<outcome value='Other'>\n",
328     "comments": "",
329     "outputs": 1,
330     "x": 1075.1852111816406,
331     "y": 529.0660810470581,
332     "z": "b5ee72b6.6e8c5",
333     "wires": [
334       [
335         "766c605e.af77c"
336       ]
337     ]
338   },
339   {
340     "id": "766c605e.af77c",
341     "type": "block",
342     "name": "block: atomic",
343     "xml": "<block atomic=\"true\">\n",
344     "atomic": "false",
345     "comments": "",
346     "outputs": 1,
347     "x": 1255.1851615905762,
348     "y": 529.7326316833496,
349     "z": "b5ee72b6.6e8c5",
350     "wires": [
351       [
352         "31667ce1.fcbca4"
353       ]
354     ]
355   },
356   {
357     "id": "579fccfb.5c4c54",
358     "type": "other",
359     "name": "other",
360     "xml": "<outcome value='Other'>\n",
361     "comments": "",
362     "outputs": 1,
363     "x": 1640.8519134521484,
364     "y": 529.3993444442749,
365     "z": "b5ee72b6.6e8c5",
366     "wires": [
367       [
368         "31667ce1.fcbca4"
369       ]
370     ]
371   },
372   {
373     "id": "d81a29f1.be9278",
374     "type": "set",
375     "name": "set connection-attachment-ar from get",
376     "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
377     "comments": "",
378     "x": 2206.1111946105957,
379     "y": 456.0000344514847,
380     "z": "b5ee72b6.6e8c5",
381     "wires": [
382       
383     ]
384   },
385   {
386     "id": "f4a4bf1b.b7da1",
387     "type": "set",
388     "name": "set oper-status",
389     "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",
390     "comments": "",
391     "x": 2139.1113624572754,
392     "y": 531.428560256958,
393     "z": "b5ee72b6.6e8c5",
394     "wires": [
395       
396     ]
397   },
398   {
399     "id": "d95be879.b1bde8",
400     "type": "switchNode",
401     "name": "switch order-status",
402     "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
403     "comments": "",
404     "outputs": 1,
405     "x": 2149.111141204834,
406     "y": 496.9999942779541,
407     "z": "b5ee72b6.6e8c5",
408     "wires": [
409       [
410         "e17a8fee.41d4",
411         "d3c8707c.374dc"
412       ]
413     ]
414   },
415   {
416     "id": "e17a8fee.41d4",
417     "type": "outcome",
418     "name": "outcome Active",
419     "xml": "<outcome value='Active'>\n",
420     "comments": "",
421     "outputs": 1,
422     "x": 2384.711223602295,
423     "y": 491.0000252723694,
424     "z": "b5ee72b6.6e8c5",
425     "wires": [
426       [
427         "b89c0370.1273d"
428       ]
429     ]
430   },
431   {
432     "id": "d3c8707c.374dc",
433     "type": "outcome",
434     "name": "outcome Other",
435     "xml": "<outcome value='Other'>\n",
436     "comments": "",
437     "outputs": 1,
438     "x": 2378.4256629943848,
439     "y": 530.4286332130432,
440     "z": "b5ee72b6.6e8c5",
441     "wires": [
442       [
443         "e88e83ff.2b0bf"
444       ]
445     ]
446   },
447   {
448     "id": "b89c0370.1273d",
449     "type": "block",
450     "name": "block",
451     "xml": "<block>\n",
452     "atomic": "false",
453     "comments": "",
454     "outputs": 1,
455     "x": 2599.181739807129,
456     "y": 492.3756594657898,
457     "z": "b5ee72b6.6e8c5",
458     "wires": [
459       [
460         
461       ]
462     ]
463   },
464   {
465     "id": "e88e83ff.2b0bf",
466     "type": "returnFailure",
467     "name": "return failure",
468     "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",
469     "comments": "",
470     "x": 2618.3334426879883,
471     "y": 533.0000233650208,
472     "z": "b5ee72b6.6e8c5",
473     "wires": [
474       
475     ]
476   },
477   {
478     "id": "190989d8.d87b76",
479     "type": "call",
480     "name": "call GENERIC-RESOURCE-API:sotn-get-request-input-param",
481     "xml": "<call module='GENERIC-RESOURCE-API' rpc='connection-attachment-get-request-input-param' mode='sync' >\n",
482     "comments": "",
483     "outputs": 1,
484     "x": 970.9697303771973,
485     "y": 598.4935593605042,
486     "z": "b5ee72b6.6e8c5",
487     "wires": [
488       [
489         
490       ]
491     ]
492   },
493   {
494     "id": "dfdf08a.1b550f8",
495     "type": "block",
496     "name": "block: atomic",
497     "xml": "<block atomic=\"true\">\n",
498     "atomic": "false",
499     "comments": "",
500     "outputs": 1,
501     "x": 652.9758071899414,
502     "y": 598.4998459815979,
503     "z": "b5ee72b6.6e8c5",
504     "wires": [
505       [
506         "190989d8.d87b76"
507       ]
508     ]
509   },
510   {
511     "id": "3abce4e4.32a12c",
512     "type": "get-resource",
513     "name": "get-resource parent-service-data",
514     "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='services/service/$tmp.ar.parent-service-instance-id/service-data' pfx='mdsal-psd' >\n",
515     "comments": "",
516     "outputs": 1,
517     "x": 717.6671180725098,
518     "y": 740.5316205024719,
519     "z": "b5ee72b6.6e8c5",
520     "wires": [
521       [
522         "d140a12c.bd2ea",
523         "58621e56.68c4e"
524       ]
525     ]
526   },
527   {
528     "id": "aa132cfc.b387f",
529     "type": "comment",
530     "name": "GET parent-service-data from mdsal to check existence of other End point",
531     "info": "",
532     "comments": "",
533     "x": 837.6670570373535,
534     "y": 669.5315594673157,
535     "z": "b5ee72b6.6e8c5",
536     "wires": [
537       
538     ]
539   },
540   {
541     "id": "21ab6599.b5b88a",
542     "type": "for",
543     "name": "for pidx..mdsal-psd.provided-allotted-resources.provided-allotted-resource[]",
544     "xml": "<for index='pidx' start='0' end='`$mdsal-psd.provided-allotted-resources.provided-allotted-resource_length`' >\n",
545     "comments": "",
546     "outputs": 1,
547     "x": 1726.8515377044678,
548     "y": 908.0041127204895,
549     "z": "b5ee72b6.6e8c5",
550     "wires": [
551       [
552         "c38adf24.2987b"
553       ]
554     ]
555   },
556   {
557     "id": "d7eaa0c2.0d298",
558     "type": "switchNode",
559     "name": "switch mdsal-psd.provided-allotted-resources_length",
560     "xml": "<switch test='`$mdsal-psd.provided-allotted-resources.provided-allotted-resource_length`'>\n",
561     "comments": "",
562     "outputs": 1,
563     "x": 783.8508949279785,
564     "y": 884.7180829048157,
565     "z": "b5ee72b6.6e8c5",
566     "wires": [
567       [
568         "bab04a0a.986c28",
569         "ab941040.d9d58",
570         "e7f0f49a.c55b08"
571       ]
572     ]
573   },
574   {
575     "id": "bab04a0a.986c28",
576     "type": "other",
577     "name": "other",
578     "xml": "<outcome value='Other'>\n",
579     "comments": "",
580     "outputs": 1,
581     "x": 1115.9937705993652,
582     "y": 1108.5755522474647,
583     "z": "b5ee72b6.6e8c5",
584     "wires": [
585       [
586         "a85c2828.9226f8"
587       ]
588     ]
589   },
590   {
591     "id": "edfa14d3.f5d668",
592     "type": "block",
593     "name": "block : atomic",
594     "xml": "<block atomic=\"true\">",
595     "atomic": "true",
596     "outputs": 1,
597     "x": 1310.1211261749268,
598     "y": 902.7015252113342,
599     "z": "b5ee72b6.6e8c5",
600     "wires": [
601       [
602         "21ab6599.b5b88a"
603       ]
604     ]
605   },
606   {
607     "id": "c38adf24.2987b",
608     "type": "switchNode",
609     "name": "switch allotted-resource-id",
610     "xml": "<switch test=\"`$mdsal-psd.provided-allotted-resources.provided-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
611     "comments": "",
612     "outputs": 1,
613     "x": 2161.962938308716,
614     "y": 908.0040097236633,
615     "z": "b5ee72b6.6e8c5",
616     "wires": [
617       [
618         "3532dc3f.6daa04",
619         "1210338.3b3d5cd"
620       ]
621     ]
622   },
623   {
624     "id": "3532dc3f.6daa04",
625     "type": "outcomeTrue",
626     "name": "true",
627     "xml": "<outcome value='true'>\n",
628     "comments": "",
629     "outputs": 1,
630     "x": 2370.7731647491455,
631     "y": 880.468499660492,
632     "z": "b5ee72b6.6e8c5",
633     "wires": [
634       [
635         "7bfabe83.461c6"
636       ]
637     ]
638   },
639   {
640     "id": "515af9c1.8559f8",
641     "type": "block",
642     "name": "block : atomic",
643     "xml": "<block atomic=\"true\">",
644     "atomic": "true",
645     "outputs": 1,
646     "x": 2550.5338611602783,
647     "y": 944.3256783485413,
648     "z": "b5ee72b6.6e8c5",
649     "wires": [
650       [
651         "39e1b1c2.1c69fe",
652         "9b2b2091.9723d"
653       ]
654     ]
655   },
656   {
657     "id": "39e1b1c2.1c69fe",
658     "type": "set",
659     "name": "set tmp.pidx and ptx.consumed-ar",
660     "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
661     "comments": "",
662     "x": 2807.391366958618,
663     "y": 918.8971924781799,
664     "z": "b5ee72b6.6e8c5",
665     "wires": [
666       
667     ]
668   },
669   {
670     "id": "9b2b2091.9723d",
671     "type": "break",
672     "name": "break",
673     "xml": "<break>\n",
674     "comments": "",
675     "x": 2718.2520847320557,
676     "y": 965.6532082557678,
677     "z": "b5ee72b6.6e8c5",
678     "wires": [
679       
680     ]
681   },
682   {
683     "id": "2b8d3c6c.b14764",
684     "type": "comment",
685     "name": "Check existence of other AR in parent service data",
686     "info": "Check if other allotted resource is available.",
687     "comments": "",
688     "x": 773.629337310791,
689     "y": 818.8928875923157,
690     "z": "b5ee72b6.6e8c5",
691     "wires": [
692       
693     ]
694   },
695   {
696     "id": "ab941040.d9d58",
697     "type": "other",
698     "name": "outcome 1",
699     "xml": "<outcome value='1'>\n",
700     "comments": "",
701     "outputs": 1,
702     "x": 1127.6461639404297,
703     "y": 1032.6772694587708,
704     "z": "b5ee72b6.6e8c5",
705     "wires": [
706       [
707         "46264523.92ecdc"
708       ]
709     ]
710   },
711   {
712     "id": "a85c2828.9226f8",
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=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n",
716     "comments": "",
717     "x": 1288.6461143493652,
718     "y": 1107.6772940382361,
719     "z": "b5ee72b6.6e8c5",
720     "wires": [
721       
722     ]
723   },
724   {
725     "id": "e7f0f49a.c55b08",
726     "type": "other",
727     "name": "outcome 2",
728     "xml": "<outcome value='2'>\n",
729     "comments": "",
730     "outputs": 1,
731     "x": 1135.646146774292,
732     "y": 903.6772255897522,
733     "z": "b5ee72b6.6e8c5",
734     "wires": [
735       [
736         "edfa14d3.f5d668"
737       ]
738     ]
739   },
740   {
741     "id": "7bfabe83.461c6",
742     "type": "block",
743     "name": "block",
744     "xml": "<block>\n",
745     "atomic": "false",
746     "comments": "",
747     "outputs": 1,
748     "x": 2528.7573795318604,
749     "y": 879.6772427558899,
750     "z": "b5ee72b6.6e8c5",
751     "wires": [
752       [
753         
754       ]
755     ]
756   },
757   {
758     "id": "1210338.3b3d5cd",
759     "type": "outcomeTrue",
760     "name": "false",
761     "xml": "<outcome value='false'>\n",
762     "comments": "",
763     "outputs": 1,
764     "x": 2369.7573795318604,
765     "y": 942.6772427558899,
766     "z": "b5ee72b6.6e8c5",
767     "wires": [
768       [
769         "515af9c1.8559f8"
770       ]
771     ]
772   },
773   {
774     "id": "e9cc6dee.5133e",
775     "type": "switchNode",
776     "name": "switch mdsal-psd.networks_length",
777     "xml": "<switch test='`$mdsal-psd.networks.network_length`'>\n",
778     "comments": "",
779     "outputs": 1,
780     "x": 1563.9796333312988,
781     "y": 1032.8997707366943,
782     "z": "b5ee72b6.6e8c5",
783     "wires": [
784       [
785         "30e9e8da.9a5228",
786         "80fd341d.8b4a38"
787       ]
788     ]
789   },
790   {
791     "id": "80fd341d.8b4a38",
792     "type": "other",
793     "name": "outcome 1",
794     "xml": "<outcome value='1'>\n",
795     "comments": "",
796     "outputs": 1,
797     "x": 1835.9796562194824,
798     "y": 1006.7886056900024,
799     "z": "b5ee72b6.6e8c5",
800     "wires": [
801       [
802         "eab56bbb.5b2d38"
803       ]
804     ]
805   },
806   {
807     "id": "30e9e8da.9a5228",
808     "type": "other",
809     "name": "other",
810     "xml": "<outcome value='Other'>\n",
811     "comments": "",
812     "outputs": 1,
813     "x": 1829.979778289795,
814     "y": 1066.7886056900024,
815     "z": "b5ee72b6.6e8c5",
816     "wires": [
817       [
818         "9cd991eb.ad6e9"
819       ]
820     ]
821   },
822   {
823     "id": "9cd991eb.ad6e9",
824     "type": "returnFailure",
825     "name": "return failure",
826     "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",
827     "comments": "",
828     "x": 1986.632122039795,
829     "y": 1067.8904123306274,
830     "z": "b5ee72b6.6e8c5",
831     "wires": [
832       
833     ]
834   },
835   {
836     "id": "750841f5.89bfd",
837     "type": "set",
838     "name": "set tmp.network.",
839     "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.networks.network[0].`' />\n",
840     "comments": "",
841     "x": 2271.424503326416,
842     "y": 1007.788761138916,
843     "z": "b5ee72b6.6e8c5",
844     "wires": [
845       
846     ]
847   },
848   {
849     "id": "46264523.92ecdc",
850     "type": "block",
851     "name": "block : atomic",
852     "xml": "<block atomic=\"true\">",
853     "atomic": "true",
854     "outputs": 1,
855     "x": 1300.090518951416,
856     "y": 1033.7885174751282,
857     "z": "b5ee72b6.6e8c5",
858     "wires": [
859       [
860         "e9cc6dee.5133e"
861       ]
862     ]
863   },
864   {
865     "id": "eab56bbb.5b2d38",
866     "type": "block",
867     "name": "block : atomic",
868     "xml": "<block atomic=\"true\">",
869     "atomic": "true",
870     "outputs": 1,
871     "x": 2027.75736618042,
872     "y": 1009.7884836196899,
873     "z": "b5ee72b6.6e8c5",
874     "wires": [
875       [
876         "750841f5.89bfd",
877         "56082b6e.f90444"
878       ]
879     ]
880   },
881   {
882     "id": "56082b6e.f90444",
883     "type": "for",
884     "name": "for nidx..tmp.network.network-data.network-request-input.network...[]",
885     "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >",
886     "comments": "",
887     "outputs": 1,
888     "x": 2447.7576332092285,
889     "y": 1069.7884712219238,
890     "z": "b5ee72b6.6e8c5",
891     "wires": [
892       [
893         "ad111a8e.73a1d8"
894       ]
895     ]
896   },
897   {
898     "id": "ad111a8e.73a1d8",
899     "type": "block",
900     "name": "block",
901     "xml": "<block>\n",
902     "atomic": "false",
903     "comments": "",
904     "outputs": 1,
905     "x": 2813.3130168914795,
906     "y": 1069.7885303497314,
907     "z": "b5ee72b6.6e8c5",
908     "wires": [
909       [
910         "92d17a75.9c6dc8",
911         "60c80c93.08db54"
912       ]
913     ]
914   },
915   {
916     "id": "92d17a75.9c6dc8",
917     "type": "switchNode",
918     "name": "switch access-node-id",
919     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">",
920     "comments": "",
921     "outputs": 1,
922     "x": 3017.8232707977295,
923     "y": 1072.798906326294,
924     "z": "b5ee72b6.6e8c5",
925     "wires": [
926       [
927         "abca5378.b72d3"
928       ]
929     ]
930   },
931   {
932     "id": "abca5378.b72d3",
933     "type": "outcomeTrue",
934     "name": "true",
935     "xml": "<outcome value='true'>\n",
936     "comments": "",
937     "outputs": 1,
938     "x": 3204.8232707977295,
939     "y": 1073.798906326294,
940     "z": "b5ee72b6.6e8c5",
941     "wires": [
942       [
943         "db6a8374.5ea08"
944       ]
945     ]
946   },
947   {
948     "id": "db6a8374.5ea08",
949     "type": "set",
950     "name": "set tmp.found-in-network tmp.ep-available",
951     "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
952     "comments": "",
953     "x": 3455.823278427124,
954     "y": 1073.3988485336304,
955     "z": "b5ee72b6.6e8c5",
956     "wires": [
957       
958     ]
959   },
960   {
961     "id": "60c80c93.08db54",
962     "type": "returnSuccess",
963     "name": "return success",
964     "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",
965     "comments": "",
966     "x": 3000.81316947937,
967     "y": 1117.7885055541992,
968     "z": "b5ee72b6.6e8c5",
969     "wires": [
970       
971     ]
972   },
973   {
974     "id": "601263d0.9079dc",
975     "type": "switchNode",
976     "name": "switch tmp.ep-available",
977     "xml": "<switch test='`$tmp.ep-available`'>\n",
978     "comments": "",
979     "outputs": 1,
980     "x": 709.9794960021973,
981     "y": 1296.232792377472,
982     "z": "b5ee72b6.6e8c5",
983     "wires": [
984       [
985         "89a90f2c.398bf",
986         "80d65700.60d008"
987       ]
988     ]
989   },
990   {
991     "id": "80d65700.60d008",
992     "type": "outcomeTrue",
993     "name": "true",
994     "xml": "<outcome value='true'>\n",
995     "comments": "",
996     "outputs": 1,
997     "x": 928.6462154388428,
998     "y": 1345.5661492347717,
999     "z": "b5ee72b6.6e8c5",
1000     "wires": [
1001       [
1002         "844986d4.f4d158"
1003       ]
1004     ]
1005   },
1006   {
1007     "id": "89a90f2c.398bf",
1008     "type": "outcomeTrue",
1009     "name": "false",
1010     "xml": "<outcome value='false'>\n",
1011     "comments": "",
1012     "outputs": 1,
1013     "x": 933.5350170135498,
1014     "y": 1254.566210269928,
1015     "z": "b5ee72b6.6e8c5",
1016     "wires": [
1017       [
1018         "9208b0d4.846ab"
1019       ]
1020     ]
1021   },
1022   {
1023     "id": "9208b0d4.846ab",
1024     "type": "block",
1025     "name": "block",
1026     "xml": "<block>\n",
1027     "atomic": "false",
1028     "comments": "",
1029     "outputs": 1,
1030     "x": 1080.5350131988525,
1031     "y": 1256.4550232887268,
1032     "z": "b5ee72b6.6e8c5",
1033     "wires": [
1034       [
1035         
1036       ]
1037     ]
1038   },
1039   {
1040     "id": "844986d4.f4d158",
1041     "type": "block",
1042     "name": "block : atomic",
1043     "xml": "<block atomic=\"true\">",
1044     "atomic": "true",
1045     "outputs": 1,
1046     "x": 1098.757303237915,
1047     "y": 1343.5661072731018,
1048     "z": "b5ee72b6.6e8c5",
1049     "wires": [
1050       [
1051         "fc82177c.3c8168",
1052         "6c1300b3.838e9",
1053         "b83c0ca8.2fbee"
1054       ]
1055     ]
1056   },
1057   {
1058     "id": "27f851f0.33167e",
1059     "type": "comment",
1060     "name": "GET connection-attachment-ar to store AR data from mdsal",
1061     "info": "",
1062     "comments": "",
1063     "x": 2269.1394805908203,
1064     "y": 420.50391721725464,
1065     "z": "b5ee72b6.6e8c5",
1066     "wires": [
1067       
1068     ]
1069   },
1070   {
1071     "id": "105428a7.c0fa47",
1072     "type": "comment",
1073     "name": "Set source end point",
1074     "info": "",
1075     "comments": "",
1076     "x": 674.6393585205078,
1077     "y": 566.2539267539978,
1078     "z": "b5ee72b6.6e8c5",
1079     "wires": [
1080       
1081     ]
1082   },
1083   {
1084     "id": "5040dd33.924624",
1085     "type": "set",
1086     "name": "set tmp.ar.parent-service-instance-id",
1087     "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",
1088     "comments": "",
1089     "x": 728.635440826416,
1090     "y": 705.0000042915344,
1091     "z": "b5ee72b6.6e8c5",
1092     "wires": [
1093       
1094     ]
1095   },
1096   {
1097     "id": "d140a12c.bd2ea",
1098     "type": "success",
1099     "name": "success",
1100     "xml": "<outcome value='success'>\n",
1101     "comments": "",
1102     "outputs": 1,
1103     "x": 964.635440826416,
1104     "y": 733.0000042915344,
1105     "z": "b5ee72b6.6e8c5",
1106     "wires": [
1107       [
1108         "ef017607.27ae68"
1109       ]
1110     ]
1111   },
1112   {
1113     "id": "58621e56.68c4e",
1114     "type": "other",
1115     "name": "other",
1116     "xml": "<outcome value='Other'>\n",
1117     "comments": "",
1118     "outputs": 1,
1119     "x": 956.4872436523438,
1120     "y": 768.0660891532898,
1121     "z": "b5ee72b6.6e8c5",
1122     "wires": [
1123       [
1124         "50c1da8b.6785d4"
1125       ]
1126     ]
1127   },
1128   {
1129     "id": "50c1da8b.6785d4",
1130     "type": "returnFailure",
1131     "name": "return failure",
1132     "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",
1133     "comments": "",
1134     "x": 1131.635929107666,
1135     "y": 764.3334393501282,
1136     "z": "b5ee72b6.6e8c5",
1137     "wires": [
1138       
1139     ]
1140   },
1141   {
1142     "id": "ef017607.27ae68",
1143     "type": "block",
1144     "name": "block",
1145     "xml": "<block>\n",
1146     "atomic": "false",
1147     "comments": "",
1148     "outputs": 1,
1149     "x": 1115.635440826416,
1150     "y": 731.0000042915344,
1151     "z": "b5ee72b6.6e8c5",
1152     "wires": [
1153       [
1154         
1155       ]
1156     ]
1157   },
1158   {
1159     "id": "7ff9e776.cf4d98",
1160     "type": "set",
1161     "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",
1162     "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' />",
1163     "comments": "",
1164     "x": 820.635440826416,
1165     "y": 850.0000042915344,
1166     "z": "b5ee72b6.6e8c5",
1167     "wires": [
1168       
1169     ]
1170   },
1171   {
1172     "id": "6020d2b5.ff31bc",
1173     "type": "comment",
1174     "name": "If other EP exists delete from domain controller",
1175     "info": "",
1176     "comments": "",
1177     "x": 760.635440826416,
1178     "y": 1221.0000042915344,
1179     "z": "b5ee72b6.6e8c5",
1180     "wires": [
1181       
1182     ]
1183   },
1184   {
1185     "id": "1d5ec4d8.fd16cb",
1186     "type": "set",
1187     "name": "set controller data",
1188     "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",
1189     "comments": "",
1190     "x": 1814.6355590820312,
1191     "y": 1374.0000200271606,
1192     "z": "b5ee72b6.6e8c5",
1193     "wires": [
1194       
1195     ]
1196   },
1197   {
1198     "id": "6c1300b3.838e9",
1199     "type": "get-resource",
1200     "name": "get-resource esr-thirdparty-sdnc",
1201     "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",
1202     "comments": "",
1203     "outputs": 1,
1204     "x": 1378.135498046875,
1205     "y": 1433.0000200271606,
1206     "z": "b5ee72b6.6e8c5",
1207     "wires": [
1208       [
1209         "9b0a24a5.e3c928",
1210         "3d4157e0.0e2b48",
1211         "47d559b2.2326f8"
1212       ]
1213     ]
1214   },
1215   {
1216     "id": "9b0a24a5.e3c928",
1217     "type": "success",
1218     "name": "success",
1219     "xml": "<outcome value='success'>\n",
1220     "comments": "",
1221     "outputs": 1,
1222     "x": 1617.135498046875,
1223     "y": 1386.0000200271606,
1224     "z": "b5ee72b6.6e8c5",
1225     "wires": [
1226       [
1227         "1d5ec4d8.fd16cb"
1228       ]
1229     ]
1230   },
1231   {
1232     "id": "3d4157e0.0e2b48",
1233     "type": "not-found",
1234     "name": "not-found",
1235     "xml": "<outcome value='not-found'>\n",
1236     "comments": "",
1237     "outputs": 1,
1238     "x": 1620.62646484375,
1239     "y": 1433.574055671692,
1240     "z": "b5ee72b6.6e8c5",
1241     "wires": [
1242       [
1243         "4d76fe9.b9e25"
1244       ]
1245     ]
1246   },
1247   {
1248     "id": "47d559b2.2326f8",
1249     "type": "other",
1250     "name": "other",
1251     "xml": "<outcome value='Other'>\n",
1252     "comments": "",
1253     "outputs": 1,
1254     "x": 1615.95947265625,
1255     "y": 1474.9073686599731,
1256     "z": "b5ee72b6.6e8c5",
1257     "wires": [
1258       [
1259         "4373fee3.5c15e"
1260       ]
1261     ]
1262   },
1263   {
1264     "id": "4d76fe9.b9e25",
1265     "type": "returnFailure",
1266     "name": "return failure",
1267     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
1268     "comments": "",
1269     "x": 1797.1978759765625,
1270     "y": 1421.8597917556763,
1271     "z": "b5ee72b6.6e8c5",
1272     "wires": [
1273       
1274     ]
1275   },
1276   {
1277     "id": "4373fee3.5c15e",
1278     "type": "returnFailure",
1279     "name": "return failure",
1280     "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",
1281     "comments": "",
1282     "x": 1803.7320289611816,
1283     "y": 1470.3465614318848,
1284     "z": "b5ee72b6.6e8c5",
1285     "wires": [
1286       
1287     ]
1288   },
1289   {
1290     "id": "fc82177c.3c8168",
1291     "type": "get-resource",
1292     "name": "get-resource pnf",
1293     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $prop.connection-attachement.access-node-id AND \n\t\t     depth = '0'\"\n        pfx='tmp.aai.pnf' local-only='false' >\n\n",
1294     "comments": "",
1295     "outputs": 1,
1296     "x": 1324.6355590820312,
1297     "y": 1246.0000200271606,
1298     "z": "b5ee72b6.6e8c5",
1299     "wires": [
1300       [
1301         "71aef88f.e0bf68",
1302         "2c74406b.e0e78",
1303         "5d3880b0.6e762"
1304       ]
1305     ]
1306   },
1307   {
1308     "id": "71aef88f.e0bf68",
1309     "type": "success",
1310     "name": "success",
1311     "xml": "<outcome value='success'>\n",
1312     "comments": "",
1313     "outputs": 1,
1314     "x": 1671.635498046875,
1315     "y": 1250.0000505447388,
1316     "z": "b5ee72b6.6e8c5",
1317     "wires": [
1318       [
1319         "a198897a.59b5a8"
1320       ]
1321     ]
1322   },
1323   {
1324     "id": "2c74406b.e0e78",
1325     "type": "not-found",
1326     "name": "not-found",
1327     "xml": "<outcome value='not-found'>\n",
1328     "comments": "",
1329     "outputs": 1,
1330     "x": 1675.12646484375,
1331     "y": 1297.57408618927,
1332     "z": "b5ee72b6.6e8c5",
1333     "wires": [
1334       [
1335         "c41f8753.3bbf68"
1336       ]
1337     ]
1338   },
1339   {
1340     "id": "5d3880b0.6e762",
1341     "type": "other",
1342     "name": "other",
1343     "xml": "<outcome value='Other'>\n",
1344     "comments": "",
1345     "outputs": 1,
1346     "x": 1670.45947265625,
1347     "y": 1338.9073991775513,
1348     "z": "b5ee72b6.6e8c5",
1349     "wires": [
1350       [
1351         "f23816e4.5d6938"
1352       ]
1353     ]
1354   },
1355   {
1356     "id": "c41f8753.3bbf68",
1357     "type": "returnFailure",
1358     "name": "return failure",
1359     "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",
1360     "comments": "",
1361     "x": 1851.6978759765625,
1362     "y": 1285.8598222732544,
1363     "z": "b5ee72b6.6e8c5",
1364     "wires": [
1365       
1366     ]
1367   },
1368   {
1369     "id": "f23816e4.5d6938",
1370     "type": "returnFailure",
1371     "name": "return failure",
1372     "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",
1373     "comments": "",
1374     "x": 1858.2320289611816,
1375     "y": 1334.346591949463,
1376     "z": "b5ee72b6.6e8c5",
1377     "wires": [
1378       
1379     ]
1380   },
1381   {
1382     "id": "a198897a.59b5a8",
1383     "type": "set",
1384     "name": "set tmp.thirdparty-sdnc-id",
1385     "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
1386     "comments": "",
1387     "x": 1875.635498046875,
1388     "y": 1237.0000505447388,
1389     "z": "b5ee72b6.6e8c5",
1390     "wires": [
1391       
1392     ]
1393   },
1394   {
1395     "id": "193624d6.cf45fb",
1396     "type": "comment",
1397     "name": "get domain controller information",
1398     "info": "",
1399     "comments": "",
1400     "x": 1369.1394271850586,
1401     "y": 1212.0039176940918,
1402     "z": "b5ee72b6.6e8c5",
1403     "wires": [
1404       
1405     ]
1406   },
1407   {
1408     "id": "b83c0ca8.2fbee",
1409     "type": "execute",
1410     "name": "execute RestApiCallNode Delete ethernet Service",
1411     "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=' + $prop.connection-attachment.sotnVpnName`\" />\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`\" />",
1412     "comments": "",
1413     "outputs": 1,
1414     "x": 1426.6355590820312,
1415     "y": 1538.0000200271606,
1416     "z": "b5ee72b6.6e8c5",
1417     "wires": [
1418       [
1419         "157d151e.8db5fb",
1420         "dc587393.0f491"
1421       ]
1422     ]
1423   },
1424   {
1425     "id": "157d151e.8db5fb",
1426     "type": "success",
1427     "name": "success",
1428     "xml": "<outcome value='success'>\n",
1429     "comments": "",
1430     "outputs": 1,
1431     "x": 1713.635498046875,
1432     "y": 1561.0000200271606,
1433     "z": "b5ee72b6.6e8c5",
1434     "wires": [
1435       [
1436         "22b1ca9.6034f36"
1437       ]
1438     ]
1439   },
1440   {
1441     "id": "22b1ca9.6034f36",
1442     "type": "block",
1443     "name": "block : atomic",
1444     "xml": "<block atomic=\"true\">",
1445     "atomic": "true",
1446     "comments": "",
1447     "outputs": 1,
1448     "x": 1883.6354370117188,
1449     "y": 1564.0000200271606,
1450     "z": "b5ee72b6.6e8c5",
1451     "wires": [
1452       [
1453         
1454       ]
1455     ]
1456   },
1457   {
1458     "id": "949096af.7825e8",
1459     "type": "returnFailure",
1460     "name": "return failure",
1461     "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",
1462     "comments": "",
1463     "x": 1883.6355590820312,
1464     "y": 1520.0000200271606,
1465     "z": "b5ee72b6.6e8c5",
1466     "wires": [
1467       
1468     ]
1469   },
1470   {
1471     "id": "dc587393.0f491",
1472     "type": "failure",
1473     "name": "failure",
1474     "xml": "<outcome value='failure'>\n",
1475     "comments": "",
1476     "outputs": 1,
1477     "x": 1716.6354370117188,
1478     "y": 1520.0000200271606,
1479     "z": "b5ee72b6.6e8c5",
1480     "wires": [
1481       [
1482         "949096af.7825e8"
1483       ]
1484     ]
1485   },
1486   {
1487     "id": "83d13f6d.0d8cd",
1488     "type": "failure",
1489     "name": "failure",
1490     "xml": "<outcome value='failure'>\n",
1491     "comments": "",
1492     "outputs": 1,
1493     "x": 984.397403717041,
1494     "y": 1879.9526022672653,
1495     "z": "b5ee72b6.6e8c5",
1496     "wires": [
1497       [
1498         "3bbdd84b.d766e8"
1499       ]
1500     ]
1501   },
1502   {
1503     "id": "3bbdd84b.d766e8",
1504     "type": "returnFailure",
1505     "name": "return failure",
1506     "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",
1507     "comments": "",
1508     "x": 1150.9212837219238,
1509     "y": 1891.5716732740402,
1510     "z": "b5ee72b6.6e8c5",
1511     "wires": [
1512       
1513     ]
1514   },
1515   {
1516     "id": "55a09cbe.8cef84",
1517     "type": "failure",
1518     "name": "not-found",
1519     "xml": "<outcome value='not-found'>\n",
1520     "comments": "",
1521     "outputs": 1,
1522     "x": 991.4926910400391,
1523     "y": 1912.714569926262,
1524     "z": "b5ee72b6.6e8c5",
1525     "wires": [
1526       [
1527         "3bbdd84b.d766e8"
1528       ]
1529     ]
1530   },
1531   {
1532     "id": "5f6a467a.dfacc8",
1533     "type": "comment",
1534     "name": "Save Resource to AAI",
1535     "info": "",
1536     "comments": "",
1537     "x": 703.4451179504395,
1538     "y": 1862.3019905090332,
1539     "z": "b5ee72b6.6e8c5",
1540     "wires": [
1541       
1542     ]
1543   },
1544   {
1545     "id": "79627cb0.0dbb74",
1546     "type": "comment",
1547     "name": "TODO: Rework after confirmation from AAI",
1548     "info": "",
1549     "comments": "",
1550     "x": 1003.804027557373,
1551     "y": 1839.8730292320251,
1552     "z": "b5ee72b6.6e8c5",
1553     "wires": [
1554       
1555     ]
1556   },
1557   {
1558     "id": "bc602338.67328",
1559     "type": "set",
1560     "name": "set output to api handler",
1561     "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",
1562     "comments": "",
1563     "x": 718.2128143310547,
1564     "y": 1783.8274717330933,
1565     "z": "b5ee72b6.6e8c5",
1566     "wires": [
1567       
1568     ]
1569   },
1570   {
1571     "id": "f080d760.856678",
1572     "type": "returnSuccess",
1573     "name": "return success",
1574     "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",
1575     "comments": "",
1576     "x": 686.6258964538574,
1577     "y": 1944.443223953247,
1578     "z": "b5ee72b6.6e8c5",
1579     "wires": [
1580       
1581     ]
1582   },
1583   {
1584     "id": "c5b69925.729378",
1585     "type": "execute",
1586     "name": "execute RestApiCallNode - PUT AR by id",
1587     "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",
1588     "comments": "",
1589     "outputs": 1,
1590     "x": 767.9449157714844,
1591     "y": 1691.4682455062866,
1592     "z": "b5ee72b6.6e8c5",
1593     "wires": [
1594       [
1595         "c8f2c95e.7a0b78",
1596         "edc7bb51.8c2ee8",
1597         "a8558f0e.c66f3"
1598       ]
1599     ]
1600   },
1601   {
1602     "id": "c8f2c95e.7a0b78",
1603     "type": "not-found",
1604     "name": "not-found",
1605     "xml": "<outcome value='not-found'>\n",
1606     "comments": "",
1607     "outputs": 1,
1608     "x": 1036.5862922668457,
1609     "y": 1742.7996572479606,
1610     "z": "b5ee72b6.6e8c5",
1611     "wires": [
1612       [
1613         "456ce311.27ccec"
1614       ]
1615     ]
1616   },
1617   {
1618     "id": "edc7bb51.8c2ee8",
1619     "type": "failure",
1620     "name": "failure",
1621     "xml": "<outcome value='failure'>\n",
1622     "comments": "",
1623     "outputs": 1,
1624     "x": 1027.5863418579102,
1625     "y": 1711.299682997167,
1626     "z": "b5ee72b6.6e8c5",
1627     "wires": [
1628       [
1629         "456ce311.27ccec"
1630       ]
1631     ]
1632   },
1633   {
1634     "id": "a8558f0e.c66f3",
1635     "type": "success",
1636     "name": "success",
1637     "xml": "<outcome value='success'>\n",
1638     "comments": "",
1639     "outputs": 1,
1640     "x": 1031.3363800048828,
1641     "y": 1681.6567878723145,
1642     "z": "b5ee72b6.6e8c5",
1643     "wires": [
1644       [
1645         "fc3cc6b.7a5fa38"
1646       ]
1647     ]
1648   },
1649   {
1650     "id": "456ce311.27ccec",
1651     "type": "returnFailure",
1652     "name": "return failure",
1653     "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",
1654     "comments": "",
1655     "x": 1197.3363800048828,
1656     "y": 1712.049706839025,
1657     "z": "b5ee72b6.6e8c5",
1658     "wires": [
1659       
1660     ]
1661   },
1662   {
1663     "id": "fc3cc6b.7a5fa38",
1664     "type": "block",
1665     "name": "block",
1666     "xml": "<block>\n",
1667     "atomic": "false",
1668     "comments": "",
1669     "outputs": 1,
1670     "x": 1172.9923477172852,
1671     "y": 1677.8489570617676,
1672     "z": "b5ee72b6.6e8c5",
1673     "wires": [
1674       [
1675         
1676       ]
1677     ]
1678   },
1679   {
1680     "id": "5af6e72b.9d69a8",
1681     "type": "set",
1682     "name": "set ar-data",
1683     "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.` \" />",
1684     "comments": "",
1685     "x": 673.1585121154785,
1686     "y": 1542.8492257595062,
1687     "z": "b5ee72b6.6e8c5",
1688     "wires": [
1689       
1690     ]
1691   },
1692   {
1693     "id": "1d49bda0.f37e32",
1694     "type": "execute",
1695     "name": "execute getTime",
1696     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
1697     "comments": "",
1698     "outputs": 1,
1699     "x": 690.4443550109863,
1700     "y": 1615.4688234329224,
1701     "z": "b5ee72b6.6e8c5",
1702     "wires": [
1703       [
1704         
1705       ]
1706     ]
1707   },
1708   {
1709     "id": "285d454d.f5f90a",
1710     "type": "set",
1711     "name": "set allotted-resource-oper-status",
1712     "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",
1713     "comments": "",
1714     "x": 740.4314346313477,
1715     "y": 1652.419903755188,
1716     "z": "b5ee72b6.6e8c5",
1717     "wires": [
1718       
1719     ]
1720   },
1721   {
1722     "id": "2d9aed4c.fcfbd2",
1723     "type": "set",
1724     "name": "set model-data",
1725     "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.` \" />",
1726     "comments": "",
1727     "x": 687.0000534057617,
1728     "y": 1582.0238761901855,
1729     "z": "b5ee72b6.6e8c5",
1730     "wires": [
1731       
1732     ]
1733   },
1734   {
1735     "id": "9565d730.07f7d8",
1736     "type": "comment",
1737     "name": "Prepare data for allotted-resource addition to MDSAL",
1738     "info": "This will add to allotted-resource which is present inside service.",
1739     "comments": "",
1740     "x": 800.3335151672363,
1741     "y": 1503.0238282680511,
1742     "z": "b5ee72b6.6e8c5",
1743     "wires": [
1744       
1745     ]
1746   },
1747   {
1748     "id": "b61bb52.fd12048",
1749     "type": "comment",
1750     "name": "Add to allotted-resources in mdsal",
1751     "info": "",
1752     "comments": "",
1753     "x": 741.9133415222168,
1754     "y": 1470.4371299743652,
1755     "z": "b5ee72b6.6e8c5",
1756     "wires": [
1757       
1758     ]
1759   },
1760   {
1761     "id": "8e738bcf.052208",
1762     "type": "update",
1763     "name": "update AAI allotted-resource",
1764     "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",
1765     "comments": "",
1766     "outputs": 1,
1767     "x": 729.8893966674805,
1768     "y": 1899.7541332244873,
1769     "z": "b5ee72b6.6e8c5",
1770     "wires": [
1771       [
1772         "83d13f6d.0d8cd",
1773         "55a09cbe.8cef84"
1774       ]
1775     ]
1776   }
1777 ]