Merge "Updates to SOTN 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": "902cbf05.82ac2",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 109.00390625,
8     "y": 52.999999046325684,
9     "z": "d3dd528c.9edcf",
10     "wires": [
11       [
12         "51c9fb4f.5229b4"
13       ]
14     ]
15   },
16   {
17     "id": "51c9fb4f.5229b4",
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": 321.00391006469727,
26     "y": 125.00001621246338,
27     "z": "d3dd528c.9edcf",
28     "wires": [
29       [
30         "ccbd5d22.8595f"
31       ]
32     ]
33   },
34   {
35     "id": "ccbd5d22.8595f",
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": 309.0040283203125,
42     "y": 212.99999904632568,
43     "z": "d3dd528c.9edcf",
44     "wires": [
45       [
46         "1f233e48.d0a312"
47       ]
48     ]
49   },
50   {
51     "id": "1f233e48.d0a312",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 325.0040283203125,
59     "y": 768.0002436637878,
60     "z": "d3dd528c.9edcf",
61     "wires": [
62       [
63         "c4ceb71c.15c748",
64         "9533eb28.c2dc18",
65         "cf024f6b.1779",
66         "379451f5.6f5f6e",
67         "b6fea8ef.c49268",
68         "509e7b0a.918fb4",
69         "afaa2fc8.ec942",
70         "9831615b.70a3c",
71         "78575bc9.95a094",
72         "6c9c6e62.89b72",
73         "761075c6.da2f4c",
74         "bc240e74.2145b",
75         "ad638e.fad5cc7",
76         "d8c85975.6bf758",
77         "a691ab09.aead58",
78         "72567cb3.f1fbd4",
79         "ce4db8c8.182408",
80         "ea67aab8.ef7588",
81         "53b9be67.07128"
82       ]
83     ]
84   },
85   {
86     "id": "c4ceb71c.15c748",
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": 721.9974670410156,
92     "y": 166.9934859275818,
93     "z": "d3dd528c.9edcf",
94     "wires": [
95       
96     ]
97   },
98   {
99     "id": "2ba99ef0.0a9972",
100     "type": "comment",
101     "name": "set tmp ar-id to fetch resource from MDSAL",
102     "info": "",
103     "comments": "",
104     "x": 750.9577789306641,
105     "y": 131.02528190612793,
106     "z": "d3dd528c.9edcf",
107     "wires": [
108       
109     ]
110   },
111   {
112     "id": "9533eb28.c2dc18",
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": 675.9974060058594,
118     "y": 259.9934911727905,
119     "z": "d3dd528c.9edcf",
120     "wires": [
121       
122     ]
123   },
124   {
125     "id": "9831615b.70a3c",
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": 682.2592964172363,
132     "y": 347.6602201461792,
133     "z": "d3dd528c.9edcf",
134     "wires": [
135       [
136         
137       ]
138     ]
139   },
140   {
141     "id": "cf024f6b.1779",
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": 714.2593231201172,
148     "y": 435.66020154953003,
149     "z": "d3dd528c.9edcf",
150     "wires": [
151       [
152         
153       ]
154     ]
155   },
156   {
157     "id": "379451f5.6f5f6e",
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": 784.9974212646484,
164     "y": 525.7712602615356,
165     "z": "d3dd528c.9edcf",
166     "wires": [
167       [
168         "15794b13.fbac75",
169         "e02b6e93.81b44"
170       ]
171     ]
172   },
173   {
174     "id": "2fa8e20c.3e4dde",
175     "type": "comment",
176     "name": "GET connection-attachment-allotted-resource from mdsal",
177     "info": "",
178     "comments": "",
179     "x": 791.8122177124023,
180     "y": 497.5385789871216,
181     "z": "d3dd528c.9edcf",
182     "wires": [
183       
184     ]
185   },
186   {
187     "id": "e89ba5d2.ca7f98",
188     "type": "comment",
189     "name": "Used for setting output to API Handler",
190     "info": "",
191     "comments": "",
192     "x": 729.9974365234375,
193     "y": 226.9935007095337,
194     "z": "d3dd528c.9edcf",
195     "wires": [
196       
197     ]
198   },
199   {
200     "id": "f751e97a.0a8c78",
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": 747.9974021911621,
206     "y": 312.882381439209,
207     "z": "d3dd528c.9edcf",
208     "wires": [
209       
210     ]
211   },
212   {
213     "id": "48dad372.ba3dcc",
214     "type": "comment",
215     "name": "Used to Get AR by id to MDSAL, same as self-link",
216     "info": "",
217     "comments": "",
218     "x": 773.9974212646484,
219     "y": 399.8823404312134,
220     "z": "d3dd528c.9edcf",
221     "wires": [
222       
223     ]
224   },
225   {
226     "id": "15794b13.fbac75",
227     "type": "success",
228     "name": "success",
229     "xml": "<outcome value='success'>\n",
230     "comments": "",
231     "outputs": 1,
232     "x": 1084.6706237792969,
233     "y": 510.99999141693115,
234     "z": "d3dd528c.9edcf",
235     "wires": [
236       [
237         "952af6d.1617708"
238       ]
239     ]
240   },
241   {
242     "id": "952af6d.1617708",
243     "type": "block",
244     "name": "block: atomic",
245     "xml": "<block atomic=\"true\">\n",
246     "atomic": "false",
247     "comments": "",
248     "outputs": 1,
249     "x": 1253.6706275939941,
250     "y": 509.49989223480225,
251     "z": "d3dd528c.9edcf",
252     "wires": [
253       [
254         "f480b1f9.28302"
255       ]
256     ]
257   },
258   {
259     "id": "f480b1f9.28302",
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": 1464.5278701782227,
266     "y": 509.11902141571045,
267     "z": "d3dd528c.9edcf",
268     "wires": [
269       [
270         "f8514da1.cfdee",
271         "7e23dfd3.3f458"
272       ]
273     ]
274   },
275   {
276     "id": "f8514da1.cfdee",
277     "type": "other",
278     "name": "outcome 1",
279     "xml": "<outcome value='1'>\n",
280     "comments": "",
281     "outputs": 1,
282     "x": 1653.8611755371094,
283     "y": 509.1189794540405,
284     "z": "d3dd528c.9edcf",
285     "wires": [
286       [
287         "738ae2e5.a84e3c"
288       ]
289     ]
290   },
291   {
292     "id": "738ae2e5.a84e3c",
293     "type": "block",
294     "name": "block: atomic",
295     "xml": "<block atomic='true'>\n",
296     "atomic": "false",
297     "comments": "",
298     "outputs": 1,
299     "x": 1838.3850650787354,
300     "y": 506.02381324768066,
301     "z": "d3dd528c.9edcf",
302     "wires": [
303       [
304         "ee3a63b7.1587f",
305         "30f03cbb.095034",
306         "869cba11.4e5318"
307       ]
308     ]
309   },
310   {
311     "id": "190c7cc8.68d4f3",
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": 1797.5228652954102,
317     "y": 587.0660448074341,
318     "z": "d3dd528c.9edcf",
319     "wires": [
320       
321     ]
322   },
323   {
324     "id": "e02b6e93.81b44",
325     "type": "other",
326     "name": "other",
327     "xml": "<outcome value='Other'>\n",
328     "comments": "",
329     "outputs": 1,
330     "x": 1076.5224266052246,
331     "y": 546.0660762786865,
332     "z": "d3dd528c.9edcf",
333     "wires": [
334       [
335         "be0cca0e.643168"
336       ]
337     ]
338   },
339   {
340     "id": "be0cca0e.643168",
341     "type": "block",
342     "name": "block: atomic",
343     "xml": "<block atomic=\"true\">\n",
344     "atomic": "false",
345     "comments": "",
346     "outputs": 1,
347     "x": 1256.5223770141602,
348     "y": 546.732626914978,
349     "z": "d3dd528c.9edcf",
350     "wires": [
351       [
352         "190c7cc8.68d4f3"
353       ]
354     ]
355   },
356   {
357     "id": "7e23dfd3.3f458",
358     "type": "other",
359     "name": "other",
360     "xml": "<outcome value='Other'>\n",
361     "comments": "",
362     "outputs": 1,
363     "x": 1642.1891288757324,
364     "y": 546.3993396759033,
365     "z": "d3dd528c.9edcf",
366     "wires": [
367       [
368         "190c7cc8.68d4f3"
369       ]
370     ]
371   },
372   {
373     "id": "ee3a63b7.1587f",
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": 2207.4484100341797,
379     "y": 473.0000296831131,
380     "z": "d3dd528c.9edcf",
381     "wires": [
382       
383     ]
384   },
385   {
386     "id": "869cba11.4e5318",
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": 2140.4485778808594,
392     "y": 548.4285554885864,
393     "z": "d3dd528c.9edcf",
394     "wires": [
395       
396     ]
397   },
398   {
399     "id": "30f03cbb.095034",
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": 2150.448356628418,
406     "y": 513.9999895095825,
407     "z": "d3dd528c.9edcf",
408     "wires": [
409       [
410         "7bf97396.e41b0c",
411         "a79d0f34.3ad1d"
412       ]
413     ]
414   },
415   {
416     "id": "7bf97396.e41b0c",
417     "type": "outcome",
418     "name": "outcome Active",
419     "xml": "<outcome value='Active'>\n",
420     "comments": "",
421     "outputs": 1,
422     "x": 2386.048439025879,
423     "y": 508.0000205039978,
424     "z": "d3dd528c.9edcf",
425     "wires": [
426       [
427         "2b17c4af.c9c67c"
428       ]
429     ]
430   },
431   {
432     "id": "a79d0f34.3ad1d",
433     "type": "outcome",
434     "name": "outcome Other",
435     "xml": "<outcome value='Other'>\n",
436     "comments": "",
437     "outputs": 1,
438     "x": 2379.7628784179688,
439     "y": 547.4286284446716,
440     "z": "d3dd528c.9edcf",
441     "wires": [
442       [
443         "2df968ff.a59058"
444       ]
445     ]
446   },
447   {
448     "id": "2b17c4af.c9c67c",
449     "type": "block",
450     "name": "block",
451     "xml": "<block>\n",
452     "atomic": "false",
453     "comments": "",
454     "outputs": 1,
455     "x": 2600.518955230713,
456     "y": 509.3756546974182,
457     "z": "d3dd528c.9edcf",
458     "wires": [
459       [
460         
461       ]
462     ]
463   },
464   {
465     "id": "2df968ff.a59058",
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": 2619.6706581115723,
471     "y": 550.0000185966492,
472     "z": "d3dd528c.9edcf",
473     "wires": [
474       
475     ]
476   },
477   {
478     "id": "4926a336.1549ec",
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": 972.3069458007812,
485     "y": 615.4935545921326,
486     "z": "d3dd528c.9edcf",
487     "wires": [
488       [
489         
490       ]
491     ]
492   },
493   {
494     "id": "78575bc9.95a094",
495     "type": "block",
496     "name": "block: atomic",
497     "xml": "<block atomic=\"true\">\n",
498     "atomic": "false",
499     "comments": "",
500     "outputs": 1,
501     "x": 654.3130226135254,
502     "y": 615.4998412132263,
503     "z": "d3dd528c.9edcf",
504     "wires": [
505       [
506         "4926a336.1549ec"
507       ]
508     ]
509   },
510   {
511     "id": "b6fea8ef.c49268",
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": 719.0043334960938,
518     "y": 757.5316157341003,
519     "z": "d3dd528c.9edcf",
520     "wires": [
521       [
522         "7bd13bf5.d657f4",
523         "21599ec.9703d62"
524       ]
525     ]
526   },
527   {
528     "id": "bc002904.292928",
529     "type": "comment",
530     "name": "GET parent-service-data from mdsal to check existence of other End point",
531     "info": "",
532     "comments": "",
533     "x": 839.0042724609375,
534     "y": 686.5315546989441,
535     "z": "d3dd528c.9edcf",
536     "wires": [
537       
538     ]
539   },
540   {
541     "id": "73d4e1e5.100ea",
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": 1728.1887531280518,
548     "y": 925.0041079521179,
549     "z": "d3dd528c.9edcf",
550     "wires": [
551       [
552         "c9283f4f.e54c7"
553       ]
554     ]
555   },
556   {
557     "id": "509e7b0a.918fb4",
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": 785.1881103515625,
564     "y": 901.7180781364441,
565     "z": "d3dd528c.9edcf",
566     "wires": [
567       [
568         "b115b5.efc49a48",
569         "77bec0eb.5d668",
570         "722d0ca5.9a3d54"
571       ]
572     ]
573   },
574   {
575     "id": "b115b5.efc49a48",
576     "type": "other",
577     "name": "other",
578     "xml": "<outcome value='Other'>\n",
579     "comments": "",
580     "outputs": 1,
581     "x": 1117.3309860229492,
582     "y": 1125.575547479093,
583     "z": "d3dd528c.9edcf",
584     "wires": [
585       [
586         "9692bf9c.5ffa"
587       ]
588     ]
589   },
590   {
591     "id": "94ad2e31.d7a3e",
592     "type": "block",
593     "name": "block : atomic",
594     "xml": "<block atomic=\"true\">",
595     "atomic": "true",
596     "outputs": 1,
597     "x": 1311.4583415985107,
598     "y": 919.7015204429626,
599     "z": "d3dd528c.9edcf",
600     "wires": [
601       [
602         "73d4e1e5.100ea"
603       ]
604     ]
605   },
606   {
607     "id": "c9283f4f.e54c7",
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": 2163.3001537323,
614     "y": 925.0040049552917,
615     "z": "d3dd528c.9edcf",
616     "wires": [
617       [
618         "ce361aba.4d4be8",
619         "1207b5bd.65bd4a"
620       ]
621     ]
622   },
623   {
624     "id": "ce361aba.4d4be8",
625     "type": "outcomeTrue",
626     "name": "true",
627     "xml": "<outcome value='true'>\n",
628     "comments": "",
629     "outputs": 1,
630     "x": 2372.1103801727295,
631     "y": 897.4684948921204,
632     "z": "d3dd528c.9edcf",
633     "wires": [
634       [
635         "9ff06a7f.769658"
636       ]
637     ]
638   },
639   {
640     "id": "3b258e58.c08552",
641     "type": "block",
642     "name": "block : atomic",
643     "xml": "<block atomic=\"true\">",
644     "atomic": "true",
645     "outputs": 1,
646     "x": 2551.8710765838623,
647     "y": 961.3256735801697,
648     "z": "d3dd528c.9edcf",
649     "wires": [
650       [
651         "2345638f.0ed1bc",
652         "fd1f9423.d014e8"
653       ]
654     ]
655   },
656   {
657     "id": "2345638f.0ed1bc",
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": 2808.728582382202,
663     "y": 935.8971877098083,
664     "z": "d3dd528c.9edcf",
665     "wires": [
666       
667     ]
668   },
669   {
670     "id": "fd1f9423.d014e8",
671     "type": "break",
672     "name": "break",
673     "xml": "<break>\n",
674     "comments": "",
675     "x": 2719.5893001556396,
676     "y": 982.6532034873962,
677     "z": "d3dd528c.9edcf",
678     "wires": [
679       
680     ]
681   },
682   {
683     "id": "ededcdc6.ddc17",
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": 774.966552734375,
689     "y": 835.8928828239441,
690     "z": "d3dd528c.9edcf",
691     "wires": [
692       
693     ]
694   },
695   {
696     "id": "77bec0eb.5d668",
697     "type": "other",
698     "name": "outcome 1",
699     "xml": "<outcome value='1'>\n",
700     "comments": "",
701     "outputs": 1,
702     "x": 1128.9833793640137,
703     "y": 1049.6772646903992,
704     "z": "d3dd528c.9edcf",
705     "wires": [
706       [
707         "5c010902.1e64d8"
708       ]
709     ]
710   },
711   {
712     "id": "9692bf9c.5ffa",
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": 1289.9833297729492,
718     "y": 1124.6772892698646,
719     "z": "d3dd528c.9edcf",
720     "wires": [
721       
722     ]
723   },
724   {
725     "id": "722d0ca5.9a3d54",
726     "type": "other",
727     "name": "outcome 2",
728     "xml": "<outcome value='2'>\n",
729     "comments": "",
730     "outputs": 1,
731     "x": 1136.983362197876,
732     "y": 920.6772208213806,
733     "z": "d3dd528c.9edcf",
734     "wires": [
735       [
736         "94ad2e31.d7a3e"
737       ]
738     ]
739   },
740   {
741     "id": "9ff06a7f.769658",
742     "type": "block",
743     "name": "block",
744     "xml": "<block>\n",
745     "atomic": "false",
746     "comments": "",
747     "outputs": 1,
748     "x": 2530.0945949554443,
749     "y": 896.6772379875183,
750     "z": "d3dd528c.9edcf",
751     "wires": [
752       [
753         
754       ]
755     ]
756   },
757   {
758     "id": "1207b5bd.65bd4a",
759     "type": "outcomeTrue",
760     "name": "false",
761     "xml": "<outcome value='false'>\n",
762     "comments": "",
763     "outputs": 1,
764     "x": 2371.0945949554443,
765     "y": 959.6772379875183,
766     "z": "d3dd528c.9edcf",
767     "wires": [
768       [
769         "3b258e58.c08552"
770       ]
771     ]
772   },
773   {
774     "id": "57dd9846.719728",
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": 1565.3168487548828,
781     "y": 1049.8997659683228,
782     "z": "d3dd528c.9edcf",
783     "wires": [
784       [
785         "42dfaf86.525d6",
786         "d874512e.3c2f3"
787       ]
788     ]
789   },
790   {
791     "id": "d874512e.3c2f3",
792     "type": "other",
793     "name": "outcome 1",
794     "xml": "<outcome value='1'>\n",
795     "comments": "",
796     "outputs": 1,
797     "x": 1837.3168716430664,
798     "y": 1023.7886009216309,
799     "z": "d3dd528c.9edcf",
800     "wires": [
801       [
802         "ccbd0c47.f16a"
803       ]
804     ]
805   },
806   {
807     "id": "42dfaf86.525d6",
808     "type": "other",
809     "name": "other",
810     "xml": "<outcome value='Other'>\n",
811     "comments": "",
812     "outputs": 1,
813     "x": 1831.316993713379,
814     "y": 1083.7886009216309,
815     "z": "d3dd528c.9edcf",
816     "wires": [
817       [
818         "156eaea.2042551"
819       ]
820     ]
821   },
822   {
823     "id": "156eaea.2042551",
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": 1987.969337463379,
829     "y": 1084.8904075622559,
830     "z": "d3dd528c.9edcf",
831     "wires": [
832       
833     ]
834   },
835   {
836     "id": "e24945d6.e64ac8",
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": 2272.76171875,
842     "y": 1024.7887563705444,
843     "z": "d3dd528c.9edcf",
844     "wires": [
845       
846     ]
847   },
848   {
849     "id": "5c010902.1e64d8",
850     "type": "block",
851     "name": "block : atomic",
852     "xml": "<block atomic=\"true\">",
853     "atomic": "true",
854     "outputs": 1,
855     "x": 1301.427734375,
856     "y": 1050.7885127067566,
857     "z": "d3dd528c.9edcf",
858     "wires": [
859       [
860         "57dd9846.719728"
861       ]
862     ]
863   },
864   {
865     "id": "ccbd0c47.f16a",
866     "type": "block",
867     "name": "block : atomic",
868     "xml": "<block atomic=\"true\">",
869     "atomic": "true",
870     "outputs": 1,
871     "x": 2029.094581604004,
872     "y": 1026.7884788513184,
873     "z": "d3dd528c.9edcf",
874     "wires": [
875       [
876         "e24945d6.e64ac8",
877         "36e6716c.6f770e"
878       ]
879     ]
880   },
881   {
882     "id": "36e6716c.6f770e",
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": 2449.0948486328125,
889     "y": 1086.7884664535522,
890     "z": "d3dd528c.9edcf",
891     "wires": [
892       [
893         "e46aaefd.f607b"
894       ]
895     ]
896   },
897   {
898     "id": "e46aaefd.f607b",
899     "type": "block",
900     "name": "block",
901     "xml": "<block>\n",
902     "atomic": "false",
903     "comments": "",
904     "outputs": 1,
905     "x": 2814.6502323150635,
906     "y": 1086.7885255813599,
907     "z": "d3dd528c.9edcf",
908     "wires": [
909       [
910         "4ebafc38.9bc584",
911         "d3b38771.361348"
912       ]
913     ]
914   },
915   {
916     "id": "4ebafc38.9bc584",
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": 3019.1604862213135,
923     "y": 1089.7989015579224,
924     "z": "d3dd528c.9edcf",
925     "wires": [
926       [
927         "3f5b228d.225fde"
928       ]
929     ]
930   },
931   {
932     "id": "3f5b228d.225fde",
933     "type": "outcomeTrue",
934     "name": "true",
935     "xml": "<outcome value='true'>\n",
936     "comments": "",
937     "outputs": 1,
938     "x": 3206.1604862213135,
939     "y": 1090.7989015579224,
940     "z": "d3dd528c.9edcf",
941     "wires": [
942       [
943         "5885ed34.2fa454"
944       ]
945     ]
946   },
947   {
948     "id": "5885ed34.2fa454",
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": 3457.160493850708,
954     "y": 1090.3988437652588,
955     "z": "d3dd528c.9edcf",
956     "wires": [
957       
958     ]
959   },
960   {
961     "id": "d3b38771.361348",
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": 3002.150384902954,
967     "y": 1134.7885007858276,
968     "z": "d3dd528c.9edcf",
969     "wires": [
970       
971     ]
972   },
973   {
974     "id": "afaa2fc8.ec942",
975     "type": "switchNode",
976     "name": "switch tmp.ep-available",
977     "xml": "<switch test='`$tmp.ep-available`'>\n",
978     "comments": "",
979     "outputs": 1,
980     "x": 711.3167114257812,
981     "y": 1313.2327876091003,
982     "z": "d3dd528c.9edcf",
983     "wires": [
984       [
985         "465effa9.6427f",
986         "c45531af.37393"
987       ]
988     ]
989   },
990   {
991     "id": "c45531af.37393",
992     "type": "outcomeTrue",
993     "name": "true",
994     "xml": "<outcome value='true'>\n",
995     "comments": "",
996     "outputs": 1,
997     "x": 929.9834308624268,
998     "y": 1362.5661444664001,
999     "z": "d3dd528c.9edcf",
1000     "wires": [
1001       [
1002         "a447132c.ff129"
1003       ]
1004     ]
1005   },
1006   {
1007     "id": "465effa9.6427f",
1008     "type": "outcomeTrue",
1009     "name": "false",
1010     "xml": "<outcome value='false'>\n",
1011     "comments": "",
1012     "outputs": 1,
1013     "x": 934.8722324371338,
1014     "y": 1271.5662055015564,
1015     "z": "d3dd528c.9edcf",
1016     "wires": [
1017       [
1018         "98f645f2.256338"
1019       ]
1020     ]
1021   },
1022   {
1023     "id": "98f645f2.256338",
1024     "type": "block",
1025     "name": "block",
1026     "xml": "<block>\n",
1027     "atomic": "false",
1028     "comments": "",
1029     "outputs": 1,
1030     "x": 1081.8722286224365,
1031     "y": 1273.4550185203552,
1032     "z": "d3dd528c.9edcf",
1033     "wires": [
1034       [
1035         
1036       ]
1037     ]
1038   },
1039   {
1040     "id": "a447132c.ff129",
1041     "type": "block",
1042     "name": "block : atomic",
1043     "xml": "<block atomic=\"true\">",
1044     "atomic": "true",
1045     "outputs": 1,
1046     "x": 1100.094518661499,
1047     "y": 1360.5661025047302,
1048     "z": "d3dd528c.9edcf",
1049     "wires": [
1050       [
1051         "b6034c83.e1568"
1052       ]
1053     ]
1054   },
1055   {
1056     "id": "5c394256.a4b72c",
1057     "type": "comment",
1058     "name": "GET connection-attachment-ar to store AR data from mdsal",
1059     "info": "",
1060     "comments": "",
1061     "x": 2270.4766960144043,
1062     "y": 437.50391244888306,
1063     "z": "d3dd528c.9edcf",
1064     "wires": [
1065       
1066     ]
1067   },
1068   {
1069     "id": "f3cf0d72.a94cd",
1070     "type": "comment",
1071     "name": "Set source end point",
1072     "info": "",
1073     "comments": "",
1074     "x": 675.9765739440918,
1075     "y": 583.2539219856262,
1076     "z": "d3dd528c.9edcf",
1077     "wires": [
1078       
1079     ]
1080   },
1081   {
1082     "id": "6c9c6e62.89b72",
1083     "type": "set",
1084     "name": "set tmp.ar.parent-service-instance-id",
1085     "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",
1086     "comments": "",
1087     "x": 729.97265625,
1088     "y": 721.9999995231628,
1089     "z": "d3dd528c.9edcf",
1090     "wires": [
1091       
1092     ]
1093   },
1094   {
1095     "id": "7bd13bf5.d657f4",
1096     "type": "success",
1097     "name": "success",
1098     "xml": "<outcome value='success'>\n",
1099     "comments": "",
1100     "outputs": 1,
1101     "x": 965.97265625,
1102     "y": 749.9999995231628,
1103     "z": "d3dd528c.9edcf",
1104     "wires": [
1105       [
1106         "9696eaab.88d618"
1107       ]
1108     ]
1109   },
1110   {
1111     "id": "21599ec.9703d62",
1112     "type": "other",
1113     "name": "other",
1114     "xml": "<outcome value='Other'>\n",
1115     "comments": "",
1116     "outputs": 1,
1117     "x": 957.8244590759277,
1118     "y": 785.0660843849182,
1119     "z": "d3dd528c.9edcf",
1120     "wires": [
1121       [
1122         "26a3704.033389"
1123       ]
1124     ]
1125   },
1126   {
1127     "id": "26a3704.033389",
1128     "type": "returnFailure",
1129     "name": "return failure",
1130     "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",
1131     "comments": "",
1132     "x": 1132.97314453125,
1133     "y": 781.3334345817566,
1134     "z": "d3dd528c.9edcf",
1135     "wires": [
1136       
1137     ]
1138   },
1139   {
1140     "id": "9696eaab.88d618",
1141     "type": "block",
1142     "name": "block",
1143     "xml": "<block>\n",
1144     "atomic": "false",
1145     "comments": "",
1146     "outputs": 1,
1147     "x": 1116.97265625,
1148     "y": 747.9999995231628,
1149     "z": "d3dd528c.9edcf",
1150     "wires": [
1151       [
1152         
1153       ]
1154     ]
1155   },
1156   {
1157     "id": "761075c6.da2f4c",
1158     "type": "set",
1159     "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",
1160     "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' />",
1161     "comments": "",
1162     "x": 821.97265625,
1163     "y": 866.9999995231628,
1164     "z": "d3dd528c.9edcf",
1165     "wires": [
1166       
1167     ]
1168   },
1169   {
1170     "id": "419a1f7.f1beae",
1171     "type": "comment",
1172     "name": "If other EP exists delete from domain controller",
1173     "info": "",
1174     "comments": "",
1175     "x": 761.97265625,
1176     "y": 1237.9999995231628,
1177     "z": "d3dd528c.9edcf",
1178     "wires": [
1179       
1180     ]
1181   },
1182   {
1183     "id": "19fee4f1.0172ab",
1184     "type": "set",
1185     "name": "set controller data",
1186     "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",
1187     "comments": "",
1188     "x": 2025.9730224609375,
1189     "y": 1735.0002546310425,
1190     "z": "d3dd528c.9edcf",
1191     "wires": [
1192       
1193     ]
1194   },
1195   {
1196     "id": "d425caaa.8a6858",
1197     "type": "get-resource",
1198     "name": "get-resource esr-thirdparty-sdnc",
1199     "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",
1200     "comments": "",
1201     "outputs": 1,
1202     "x": 1589.4729614257812,
1203     "y": 1794.0002546310425,
1204     "z": "d3dd528c.9edcf",
1205     "wires": [
1206       [
1207         "4f05b74c.969be8",
1208         "c7b3919.c8ebe7",
1209         "40abfefc.3d745"
1210       ]
1211     ]
1212   },
1213   {
1214     "id": "4f05b74c.969be8",
1215     "type": "success",
1216     "name": "success",
1217     "xml": "<outcome value='success'>\n",
1218     "comments": "",
1219     "outputs": 1,
1220     "x": 1828.4729614257812,
1221     "y": 1747.0002546310425,
1222     "z": "d3dd528c.9edcf",
1223     "wires": [
1224       [
1225         "19fee4f1.0172ab"
1226       ]
1227     ]
1228   },
1229   {
1230     "id": "c7b3919.c8ebe7",
1231     "type": "not-found",
1232     "name": "not-found",
1233     "xml": "<outcome value='not-found'>\n",
1234     "comments": "",
1235     "outputs": 1,
1236     "x": 1831.9639282226562,
1237     "y": 1794.5742902755737,
1238     "z": "d3dd528c.9edcf",
1239     "wires": [
1240       [
1241         "7e0e9058.e96b3"
1242       ]
1243     ]
1244   },
1245   {
1246     "id": "40abfefc.3d745",
1247     "type": "other",
1248     "name": "other",
1249     "xml": "<outcome value='Other'>\n",
1250     "comments": "",
1251     "outputs": 1,
1252     "x": 1827.2969360351562,
1253     "y": 1835.907603263855,
1254     "z": "d3dd528c.9edcf",
1255     "wires": [
1256       [
1257         "6ad29b98.83f084"
1258       ]
1259     ]
1260   },
1261   {
1262     "id": "7e0e9058.e96b3",
1263     "type": "returnFailure",
1264     "name": "return failure",
1265     "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",
1266     "comments": "",
1267     "x": 2008.5353393554688,
1268     "y": 1782.860026359558,
1269     "z": "d3dd528c.9edcf",
1270     "wires": [
1271       
1272     ]
1273   },
1274   {
1275     "id": "6ad29b98.83f084",
1276     "type": "returnFailure",
1277     "name": "return failure",
1278     "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",
1279     "comments": "",
1280     "x": 2015.069492340088,
1281     "y": 1831.3467960357666,
1282     "z": "d3dd528c.9edcf",
1283     "wires": [
1284       
1285     ]
1286   },
1287   {
1288     "id": "77debd2c.f40a64",
1289     "type": "get-resource",
1290     "name": "get-resource pnf",
1291     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.node-id AND \n\t\t     depth = '0'\"\n        pfx='tmp.aai.pnf' local-only='false' >\n\n",
1292     "comments": "",
1293     "outputs": 1,
1294     "x": 1539.9730834960938,
1295     "y": 1667.00031375885,
1296     "z": "d3dd528c.9edcf",
1297     "wires": [
1298       [
1299         "b2f42acb.73d9c8",
1300         "659e715a.79934",
1301         "79d0fb49.773bc4"
1302       ]
1303     ]
1304   },
1305   {
1306     "id": "b2f42acb.73d9c8",
1307     "type": "success",
1308     "name": "success",
1309     "xml": "<outcome value='success'>\n",
1310     "comments": "",
1311     "outputs": 1,
1312     "x": 1822.9729309082031,
1313     "y": 1608.0002002716064,
1314     "z": "d3dd528c.9edcf",
1315     "wires": [
1316       [
1317         "ac4575c7.b5d618"
1318       ]
1319     ]
1320   },
1321   {
1322     "id": "659e715a.79934",
1323     "type": "not-found",
1324     "name": "not-found",
1325     "xml": "<outcome value='not-found'>\n",
1326     "comments": "",
1327     "outputs": 1,
1328     "x": 1826.4638977050781,
1329     "y": 1655.5742359161377,
1330     "z": "d3dd528c.9edcf",
1331     "wires": [
1332       [
1333         "4fe04183.c5614"
1334       ]
1335     ]
1336   },
1337   {
1338     "id": "79d0fb49.773bc4",
1339     "type": "other",
1340     "name": "other",
1341     "xml": "<outcome value='Other'>\n",
1342     "comments": "",
1343     "outputs": 1,
1344     "x": 1821.7969055175781,
1345     "y": 1696.907548904419,
1346     "z": "d3dd528c.9edcf",
1347     "wires": [
1348       [
1349         "5d2c56ed.47c2c8"
1350       ]
1351     ]
1352   },
1353   {
1354     "id": "4fe04183.c5614",
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=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
1358     "comments": "",
1359     "x": 2003.0353088378906,
1360     "y": 1643.859972000122,
1361     "z": "d3dd528c.9edcf",
1362     "wires": [
1363       
1364     ]
1365   },
1366   {
1367     "id": "5d2c56ed.47c2c8",
1368     "type": "returnFailure",
1369     "name": "return failure",
1370     "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",
1371     "comments": "",
1372     "x": 2009.5694618225098,
1373     "y": 1692.3467416763306,
1374     "z": "d3dd528c.9edcf",
1375     "wires": [
1376       
1377     ]
1378   },
1379   {
1380     "id": "ac4575c7.b5d618",
1381     "type": "set",
1382     "name": "set tmp.thirdparty-sdnc-id",
1383     "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
1384     "comments": "",
1385     "x": 2026.9729309082031,
1386     "y": 1595.0002002716064,
1387     "z": "d3dd528c.9edcf",
1388     "wires": [
1389       
1390     ]
1391   },
1392   {
1393     "id": "a421d0fb.ce81c",
1394     "type": "comment",
1395     "name": "get domain controller information",
1396     "info": "",
1397     "comments": "",
1398     "x": 1583.4769897460938,
1399     "y": 1636.0042810440063,
1400     "z": "d3dd528c.9edcf",
1401     "wires": [
1402       
1403     ]
1404   },
1405   {
1406     "id": "f8c8821d.d50c3",
1407     "type": "execute",
1408     "name": "execute RestApiCallNode Delete ethernet Service",
1409     "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`\" />",
1410     "comments": "",
1411     "outputs": 1,
1412     "x": 1637.9730224609375,
1413     "y": 1899.0002546310425,
1414     "z": "d3dd528c.9edcf",
1415     "wires": [
1416       [
1417         "925b677f.9fd908",
1418         "cff10bd6.5c54c8"
1419       ]
1420     ]
1421   },
1422   {
1423     "id": "925b677f.9fd908",
1424     "type": "success",
1425     "name": "success",
1426     "xml": "<outcome value='success'>\n",
1427     "comments": "",
1428     "outputs": 1,
1429     "x": 1924.9729614257812,
1430     "y": 1922.0002546310425,
1431     "z": "d3dd528c.9edcf",
1432     "wires": [
1433       [
1434         "fe5326f7.64a0a8"
1435       ]
1436     ]
1437   },
1438   {
1439     "id": "fe5326f7.64a0a8",
1440     "type": "block",
1441     "name": "block : atomic",
1442     "xml": "<block atomic=\"true\">",
1443     "atomic": "true",
1444     "comments": "",
1445     "outputs": 1,
1446     "x": 2094.972900390625,
1447     "y": 1925.0002546310425,
1448     "z": "d3dd528c.9edcf",
1449     "wires": [
1450       [
1451         
1452       ]
1453     ]
1454   },
1455   {
1456     "id": "3a5a8a5c.8b0aa6",
1457     "type": "returnFailure",
1458     "name": "return failure",
1459     "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",
1460     "comments": "",
1461     "x": 2094.9730224609375,
1462     "y": 1881.0002546310425,
1463     "z": "d3dd528c.9edcf",
1464     "wires": [
1465       
1466     ]
1467   },
1468   {
1469     "id": "cff10bd6.5c54c8",
1470     "type": "failure",
1471     "name": "failure",
1472     "xml": "<outcome value='failure'>\n",
1473     "comments": "",
1474     "outputs": 1,
1475     "x": 1927.972900390625,
1476     "y": 1881.0002546310425,
1477     "z": "d3dd528c.9edcf",
1478     "wires": [
1479       [
1480         "3a5a8a5c.8b0aa6"
1481       ]
1482     ]
1483   },
1484   {
1485     "id": "b7b5526f.d9371",
1486     "type": "failure",
1487     "name": "failure",
1488     "xml": "<outcome value='failure'>\n",
1489     "comments": "",
1490     "outputs": 1,
1491     "x": 985.734619140625,
1492     "y": 1896.9525974988937,
1493     "z": "d3dd528c.9edcf",
1494     "wires": [
1495       [
1496         "2cde2bd.f2613d4"
1497       ]
1498     ]
1499   },
1500   {
1501     "id": "2cde2bd.f2613d4",
1502     "type": "returnFailure",
1503     "name": "return failure",
1504     "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",
1505     "comments": "",
1506     "x": 1152.2584991455078,
1507     "y": 1908.5716685056686,
1508     "z": "d3dd528c.9edcf",
1509     "wires": [
1510       
1511     ]
1512   },
1513   {
1514     "id": "8465056c.00dde8",
1515     "type": "failure",
1516     "name": "not-found",
1517     "xml": "<outcome value='not-found'>\n",
1518     "comments": "",
1519     "outputs": 1,
1520     "x": 992.829906463623,
1521     "y": 1929.7145651578903,
1522     "z": "d3dd528c.9edcf",
1523     "wires": [
1524       [
1525         "2cde2bd.f2613d4"
1526       ]
1527     ]
1528   },
1529   {
1530     "id": "dd28433d.d632",
1531     "type": "comment",
1532     "name": "Save Resource to AAI",
1533     "info": "",
1534     "comments": "",
1535     "x": 704.7823333740234,
1536     "y": 1879.3019857406616,
1537     "z": "d3dd528c.9edcf",
1538     "wires": [
1539       
1540     ]
1541   },
1542   {
1543     "id": "4d323c0f.df7854",
1544     "type": "comment",
1545     "name": "TODO: Rework after confirmation from AAI",
1546     "info": "",
1547     "comments": "",
1548     "x": 1005.141242980957,
1549     "y": 1856.8730244636536,
1550     "z": "d3dd528c.9edcf",
1551     "wires": [
1552       
1553     ]
1554   },
1555   {
1556     "id": "ce4db8c8.182408",
1557     "type": "set",
1558     "name": "set output to api handler",
1559     "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",
1560     "comments": "",
1561     "x": 719.5500297546387,
1562     "y": 1800.8274669647217,
1563     "z": "d3dd528c.9edcf",
1564     "wires": [
1565       
1566     ]
1567   },
1568   {
1569     "id": "ea67aab8.ef7588",
1570     "type": "returnSuccess",
1571     "name": "return success",
1572     "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",
1573     "comments": "",
1574     "x": 687.9631118774414,
1575     "y": 1961.4432191848755,
1576     "z": "d3dd528c.9edcf",
1577     "wires": [
1578       
1579     ]
1580   },
1581   {
1582     "id": "72567cb3.f1fbd4",
1583     "type": "execute",
1584     "name": "execute RestApiCallNode - PUT AR by id",
1585     "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",
1586     "comments": "",
1587     "outputs": 1,
1588     "x": 769.2821311950684,
1589     "y": 1708.468240737915,
1590     "z": "d3dd528c.9edcf",
1591     "wires": [
1592       [
1593         "4724b378.ec2a2c",
1594         "4dfcb271.a6386c",
1595         "4e56cabb.034884"
1596       ]
1597     ]
1598   },
1599   {
1600     "id": "4724b378.ec2a2c",
1601     "type": "not-found",
1602     "name": "not-found",
1603     "xml": "<outcome value='not-found'>\n",
1604     "comments": "",
1605     "outputs": 1,
1606     "x": 1037.9235076904297,
1607     "y": 1759.799652479589,
1608     "z": "d3dd528c.9edcf",
1609     "wires": [
1610       [
1611         "2831c4f6.7c5dbc"
1612       ]
1613     ]
1614   },
1615   {
1616     "id": "4dfcb271.a6386c",
1617     "type": "failure",
1618     "name": "failure",
1619     "xml": "<outcome value='failure'>\n",
1620     "comments": "",
1621     "outputs": 1,
1622     "x": 1028.9235572814941,
1623     "y": 1728.2996782287955,
1624     "z": "d3dd528c.9edcf",
1625     "wires": [
1626       [
1627         "2831c4f6.7c5dbc"
1628       ]
1629     ]
1630   },
1631   {
1632     "id": "4e56cabb.034884",
1633     "type": "success",
1634     "name": "success",
1635     "xml": "<outcome value='success'>\n",
1636     "comments": "",
1637     "outputs": 1,
1638     "x": 1032.6735954284668,
1639     "y": 1698.6567831039429,
1640     "z": "d3dd528c.9edcf",
1641     "wires": [
1642       [
1643         "a711cf9d.6d6a"
1644       ]
1645     ]
1646   },
1647   {
1648     "id": "2831c4f6.7c5dbc",
1649     "type": "returnFailure",
1650     "name": "return failure",
1651     "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",
1652     "comments": "",
1653     "x": 1198.6735954284668,
1654     "y": 1729.0497020706534,
1655     "z": "d3dd528c.9edcf",
1656     "wires": [
1657       
1658     ]
1659   },
1660   {
1661     "id": "a711cf9d.6d6a",
1662     "type": "block",
1663     "name": "block",
1664     "xml": "<block>\n",
1665     "atomic": "false",
1666     "comments": "",
1667     "outputs": 1,
1668     "x": 1174.3295631408691,
1669     "y": 1694.848952293396,
1670     "z": "d3dd528c.9edcf",
1671     "wires": [
1672       [
1673         
1674       ]
1675     ]
1676   },
1677   {
1678     "id": "bc240e74.2145b",
1679     "type": "set",
1680     "name": "set ar-data",
1681     "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.` \" />",
1682     "comments": "",
1683     "x": 674.4957275390625,
1684     "y": 1559.8492209911346,
1685     "z": "d3dd528c.9edcf",
1686     "wires": [
1687       
1688     ]
1689   },
1690   {
1691     "id": "d8c85975.6bf758",
1692     "type": "execute",
1693     "name": "execute getTime",
1694     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
1695     "comments": "",
1696     "outputs": 1,
1697     "x": 691.7815704345703,
1698     "y": 1632.4688186645508,
1699     "z": "d3dd528c.9edcf",
1700     "wires": [
1701       [
1702         
1703       ]
1704     ]
1705   },
1706   {
1707     "id": "a691ab09.aead58",
1708     "type": "set",
1709     "name": "set allotted-resource-oper-status",
1710     "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",
1711     "comments": "",
1712     "x": 741.7686500549316,
1713     "y": 1669.4198989868164,
1714     "z": "d3dd528c.9edcf",
1715     "wires": [
1716       
1717     ]
1718   },
1719   {
1720     "id": "ad638e.fad5cc7",
1721     "type": "set",
1722     "name": "set model-data",
1723     "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.` \" />",
1724     "comments": "",
1725     "x": 688.3372688293457,
1726     "y": 1599.023871421814,
1727     "z": "d3dd528c.9edcf",
1728     "wires": [
1729       
1730     ]
1731   },
1732   {
1733     "id": "1b962b1.7c9dad5",
1734     "type": "comment",
1735     "name": "Prepare data for allotted-resource addition to MDSAL",
1736     "info": "This will add to allotted-resource which is present inside service.",
1737     "comments": "",
1738     "x": 801.6707305908203,
1739     "y": 1520.0238234996796,
1740     "z": "d3dd528c.9edcf",
1741     "wires": [
1742       
1743     ]
1744   },
1745   {
1746     "id": "aad41a92.c6b998",
1747     "type": "comment",
1748     "name": "Add to allotted-resources in mdsal",
1749     "info": "",
1750     "comments": "",
1751     "x": 743.2505569458008,
1752     "y": 1487.4371252059937,
1753     "z": "d3dd528c.9edcf",
1754     "wires": [
1755       
1756     ]
1757   },
1758   {
1759     "id": "53b9be67.07128",
1760     "type": "update",
1761     "name": "update AAI allotted-resource",
1762     "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",
1763     "comments": "",
1764     "outputs": 1,
1765     "x": 731.2266120910645,
1766     "y": 1916.7541284561157,
1767     "z": "d3dd528c.9edcf",
1768     "wires": [
1769       [
1770         "b7b5526f.d9371",
1771         "8465056c.00dde8"
1772       ]
1773     ]
1774   },
1775   {
1776     "id": "b6034c83.e1568",
1777     "type": "get-resource",
1778     "name": "get-resource connectivity",
1779     "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",
1780     "comments": "",
1781     "outputs": 1,
1782     "x": 1315.0043029785156,
1783     "y": 1361.5044565200806,
1784     "z": "d3dd528c.9edcf",
1785     "wires": [
1786       [
1787         "e5fcddf9.8d24f"
1788       ]
1789     ]
1790   },
1791   {
1792     "id": "2227c12c.941eae",
1793     "type": "block",
1794     "name": "block : atomic",
1795     "xml": "<block atomic=\"true\">",
1796     "atomic": "true",
1797     "outputs": 1,
1798     "x": 1316.121467590332,
1799     "y": 1539.344430923462,
1800     "z": "d3dd528c.9edcf",
1801     "wires": [
1802       [
1803         "77debd2c.f40a64",
1804         "d425caaa.8a6858",
1805         "f8c8821d.d50c3",
1806         "6584aa7e.7c6da4",
1807         "1fbc8c35.8ef854"
1808       ]
1809     ]
1810   },
1811   {
1812     "id": "a7e5f7ca.25d0c8",
1813     "type": "outcome",
1814     "name": "vpn-binding",
1815     "xml": "<outcome value='vpn-binding'>\n",
1816     "comments": "",
1817     "outputs": 1,
1818     "x": 1923.2897968292236,
1819     "y": 1367.8257465362549,
1820     "z": "d3dd528c.9edcf",
1821     "wires": [
1822       [
1823         "2227c12c.941eae"
1824       ]
1825     ]
1826   },
1827   {
1828     "id": "e5fcddf9.8d24f",
1829     "type": "for",
1830     "name": "for each relationship",
1831     "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.connectivity.relationship-list.relationship_length`' >\n",
1832     "comments": "",
1833     "outputs": 1,
1834     "x": 1537.0041198730469,
1835     "y": 1368.0041971206665,
1836     "z": "d3dd528c.9edcf",
1837     "wires": [
1838       [
1839         "889a6909.fd0648"
1840       ]
1841     ]
1842   },
1843   {
1844     "id": "889a6909.fd0648",
1845     "type": "switchNode",
1846     "name": "switch related-to",
1847     "xml": "<switch test='`$tmp.connectivity.relationship-list.relationship[$vidx].related-to`'>\n",
1848     "comments": "",
1849     "outputs": 1,
1850     "x": 1744.0041809082031,
1851     "y": 1367.004243850708,
1852     "z": "d3dd528c.9edcf",
1853     "wires": [
1854       [
1855         "a7e5f7ca.25d0c8"
1856       ]
1857     ]
1858   },
1859   {
1860     "id": "6584aa7e.7c6da4",
1861     "type": "set",
1862     "name": "set tmp.vpn-name",
1863     "xml": "<set>\n<parameter name='tmp.vpn-name' value=\"`$tmp.connectivity.relationship-list.relationship[$vidx].relationship-data[0].relationship-value` \" />\n",
1864     "comments": "",
1865     "x": 1540.0040893554688,
1866     "y": 1419.004427909851,
1867     "z": "d3dd528c.9edcf",
1868     "wires": [
1869       
1870     ]
1871   },
1872   {
1873     "id": "1fbc8c35.8ef854",
1874     "type": "execute",
1875     "name": "split vpnName to find nodeId",
1876     "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",
1877     "comments": "",
1878     "outputs": 1,
1879     "x": 1544.00390625,
1880     "y": 1524.00390625,
1881     "z": "d3dd528c.9edcf",
1882     "wires": [
1883       [
1884         "bd900e2d.e6685",
1885         "7097b625.7335c8"
1886       ]
1887     ]
1888   },
1889   {
1890     "id": "7097b625.7335c8",
1891     "type": "failure",
1892     "name": "success",
1893     "xml": "<outcome value='success'>\n",
1894     "comments": "",
1895     "outputs": 1,
1896     "x": 1761.00390625,
1897     "y": 1450.00390625,
1898     "z": "d3dd528c.9edcf",
1899     "wires": [
1900       [
1901         "719277cb.1f0738"
1902       ]
1903     ]
1904   },
1905   {
1906     "id": "719277cb.1f0738",
1907     "type": "set",
1908     "name": "set tmp.node-id",
1909     "xml": "<set>\n<parameter name='tmp.node-id' value='`$route1[0]`' />\n",
1910     "comments": "",
1911     "x": 1968.00390625,
1912     "y": 1444.00390625,
1913     "z": "d3dd528c.9edcf",
1914     "wires": [
1915       
1916     ]
1917   },
1918   {
1919     "id": "188e2bb3.ba9264",
1920     "type": "returnFailure",
1921     "name": "return failure",
1922     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
1923     "comments": "",
1924     "x": 1943.00390625,
1925     "y": 1514.00390625,
1926     "z": "d3dd528c.9edcf",
1927     "wires": [
1928       
1929     ]
1930   },
1931   {
1932     "id": "bd900e2d.e6685",
1933     "type": "failure",
1934     "name": "failure",
1935     "xml": "<outcome value='failure'>\n",
1936     "comments": "",
1937     "outputs": 1,
1938     "x": 1762.00390625,
1939     "y": 1516.00390625,
1940     "z": "d3dd528c.9edcf",
1941     "wires": [
1942       [
1943         "188e2bb3.ba9264"
1944       ]
1945     ]
1946   }
1947 ]