ccvpn integration sdnc issue fix
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sotn / GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json
1 [\r
2   {\r
3     "id": "ff549c79.63961",\r
4     "type": "dgstart",\r
5     "name": "DGSTART",\r
6     "outputs": 1,\r
7     "x": 94.03125,\r
8     "y": 49.00012397766113,\r
9     "z": "f47a0348.da1fc",\r
10     "wires": [\r
11       [\r
12         "a05176da.ae3e48"\r
13       ]\r
14     ]\r
15   },\r
16   {\r
17     "id": "a05176da.ae3e48",\r
18     "type": "service-logic",\r
19     "name": "GENERIC-RESOURCE-API ${project.version}",\r
20     "module": "GENERIC-RESOURCE-API",\r
21     "version": "${project.version}",\r
22     "comments": "",\r
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}'>",\r
24     "outputs": 1,\r
25     "x": 275.03125381469727,\r
26     "y": 109.00014114379883,\r
27     "z": "f47a0348.da1fc",\r
28     "wires": [\r
29       [\r
30         "fe524cbe.32e62"\r
31       ]\r
32     ]\r
33   },\r
34   {\r
35     "id": "fe524cbe.32e62",\r
36     "type": "method",\r
37     "name": "sotn-attachment-topology-operation-deactivate",\r
38     "xml": "<method rpc='sotn-attachment-topology-operation-deactivate' mode='sync'>\n",\r
39     "comments": "",\r
40     "outputs": 1,\r
41     "x": 263.0313720703125,\r
42     "y": 197.00012397766113,\r
43     "z": "f47a0348.da1fc",\r
44     "wires": [\r
45       [\r
46         "437c9c25.6eb2d4"\r
47       ]\r
48     ]\r
49   },\r
50   {\r
51     "id": "437c9c25.6eb2d4",\r
52     "type": "block",\r
53     "name": "block : atomic",\r
54     "xml": "<block atomic=\"true\">\n",\r
55     "atomic": "false",\r
56     "comments": "",\r
57     "outputs": 1,\r
58     "x": 279.0313720703125,\r
59     "y": 752.0003685951233,\r
60     "z": "f47a0348.da1fc",\r
61     "wires": [\r
62       [\r
63         "a802b53.c930648",\r
64         "1068510.ffabdaf",\r
65         "90b4d4b2.478c88",\r
66         "96a33d9.74471c",\r
67         "f6798703.c71c48",\r
68         "74b419be.6c1dc8",\r
69         "cea5b658.f38fb8",\r
70         "8fc6baf4.1c66d8",\r
71         "bd5b936a.6f494",\r
72         "1ecf912a.ad8d5f",\r
73         "754f8876.c41b88",\r
74         "1fa63937.8805f7",\r
75         "8e1d23f5.d1706",\r
76         "d507ebff.314fd8",\r
77         "9f388371.4f18e",\r
78         "31cf3c93.494fc4",\r
79         "61d4f147.44641",\r
80         "7bc058aa.42a598",\r
81         "7c847f3c.b2ac4",\r
82         "f0fb1a1c.cc2828"\r
83       ]\r
84     ]\r
85   },\r
86   {\r
87     "id": "a802b53.c930648",\r
88     "type": "set",\r
89     "name": "set tmp.ar.allotted-resource-id,etc",\r
90     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",\r
91     "comments": "",\r
92     "x": 676.0248107910156,\r
93     "y": 150.99361085891724,\r
94     "z": "f47a0348.da1fc",\r
95     "wires": []\r
96   },\r
97   {\r
98     "id": "88124680.e6b8a8",\r
99     "type": "comment",\r
100     "name": "set tmp ar-id to fetch resource from MDSAL",\r
101     "info": "",\r
102     "comments": "",\r
103     "x": 704.9851226806641,\r
104     "y": 115.02540683746338,\r
105     "z": "f47a0348.da1fc",\r
106     "wires": []\r
107   },\r
108   {\r
109     "id": "1068510.ffabdaf",\r
110     "type": "set",\r
111     "name": "set tmp.ar.self-link",\r
112     "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",\r
113     "comments": "",\r
114     "x": 630.0247497558594,\r
115     "y": 243.99361610412598,\r
116     "z": "f47a0348.da1fc",\r
117     "wires": []\r
118   },\r
119   {\r
120     "id": "f6798703.c71c48",\r
121     "type": "execute",\r
122     "name": "execute Properties",\r
123     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",\r
124     "comments": "",\r
125     "outputs": 1,\r
126     "x": 636.2866401672363,\r
127     "y": 331.66034507751465,\r
128     "z": "f47a0348.da1fc",\r
129     "wires": [\r
130       []\r
131     ]\r
132   },\r
133   {\r
134     "id": "90b4d4b2.478c88",\r
135     "type": "execute",\r
136     "name": "generate allotted-resource tmp.ar-url",\r
137     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",\r
138     "comments": "",\r
139     "outputs": 1,\r
140     "x": 686.2867431640625,\r
141     "y": 418.66034603118896,\r
142     "z": "f47a0348.da1fc",\r
143     "wires": [\r
144       []\r
145     ]\r
146   },\r
147   {\r
148     "id": "182d3b03.4e2c15",\r
149     "type": "comment",\r
150     "name": "GET connection-attachment-allotted-resource from mdsal",\r
151     "info": "",\r
152     "comments": "",\r
153     "x": 729.8397369384766,\r
154     "y": 489.5388927459717,\r
155     "z": "f47a0348.da1fc",\r
156     "wires": []\r
157   },\r
158   {\r
159     "id": "bbe52b99.83dd68",\r
160     "type": "comment",\r
161     "name": "Used for setting output to API Handler",\r
162     "info": "",\r
163     "comments": "",\r
164     "x": 684.0247802734375,\r
165     "y": 210.99362564086914,\r
166     "z": "f47a0348.da1fc",\r
167     "wires": []\r
168   },\r
169   {\r
170     "id": "dce4912.220bb7",\r
171     "type": "comment",\r
172     "name": "Obtain different URL, template location etc",\r
173     "info": "For saving resource information to MDSAL & for AAI",\r
174     "comments": "",\r
175     "x": 702.0247459411621,\r
176     "y": 296.88250637054443,\r
177     "z": "f47a0348.da1fc",\r
178     "wires": []\r
179   },\r
180   {\r
181     "id": "66940a34.fde394",\r
182     "type": "comment",\r
183     "name": "Used to Get AR by id to MDSAL, same as self-link",\r
184     "info": "",\r
185     "comments": "",\r
186     "x": 728.0247650146484,\r
187     "y": 383.8824653625488,\r
188     "z": "f47a0348.da1fc",\r
189     "wires": []\r
190   },\r
191   {\r
192     "id": "55776be8.abf844",\r
193     "type": "success",\r
194     "name": "success",\r
195     "xml": "<outcome value='success'>\n",\r
196     "comments": "",\r
197     "outputs": 1,\r
198     "x": 1170.6980781555176,\r
199     "y": 537.0001525878906,\r
200     "z": "f47a0348.da1fc",\r
201     "wires": [\r
202       [\r
203         "5a06af0c.5db4c"\r
204       ]\r
205     ]\r
206   },\r
207   {\r
208     "id": "5a06af0c.5db4c",\r
209     "type": "block",\r
210     "name": "block: atomic",\r
211     "xml": "<block atomic=\"true\">\n",\r
212     "atomic": "false",\r
213     "comments": "",\r
214     "outputs": 1,\r
215     "x": 1339.6980819702148,\r
216     "y": 535.5000534057617,\r
217     "z": "f47a0348.da1fc",\r
218     "wires": [\r
219       [\r
220         "faae066.03a7ef8"\r
221       ]\r
222     ]\r
223   },\r
224   {\r
225     "id": "faae066.03a7ef8",\r
226     "type": "switchNode",\r
227     "name": "switch cr length",\r
228     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",\r
229     "comments": "",\r
230     "outputs": 1,\r
231     "x": 1512.5553512573242,\r
232     "y": 473.119215965271,\r
233     "z": "f47a0348.da1fc",\r
234     "wires": [\r
235       [\r
236         "74bd4c84.2a01f4",\r
237         "6215df1.a21872"\r
238       ]\r
239     ]\r
240   },\r
241   {\r
242     "id": "74bd4c84.2a01f4",\r
243     "type": "other",\r
244     "name": "outcome 1",\r
245     "xml": "<outcome value='1'>\n",\r
246     "comments": "",\r
247     "outputs": 1,\r
248     "x": 1749.8885955810547,\r
249     "y": 451.11916637420654,\r
250     "z": "f47a0348.da1fc",\r
251     "wires": [\r
252       [\r
253         "932b115b.ef744"\r
254       ]\r
255     ]\r
256   },\r
257   {\r
258     "id": "932b115b.ef744",\r
259     "type": "block",\r
260     "name": "block: atomic",\r
261     "xml": "<block atomic='true'>\n",\r
262     "atomic": "false",\r
263     "comments": "",\r
264     "outputs": 1,\r
265     "x": 1934.4124851226807,\r
266     "y": 448.0240001678467,\r
267     "z": "f47a0348.da1fc",\r
268     "wires": [\r
269       [\r
270         "d5b08a67.3e5c48",\r
271         "5ce1e592.04689c",\r
272         "fa1f1660.477578"\r
273       ]\r
274     ]\r
275   },\r
276   {\r
277     "id": "1d1825f2.925d0a",\r
278     "type": "returnFailure",\r
279     "name": "return failure",\r
280     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n",\r
281     "comments": "",\r
282     "x": 1858.5503273010254,\r
283     "y": 573.0662412643433,\r
284     "z": "f47a0348.da1fc",\r
285     "wires": []\r
286   },\r
287   {\r
288     "id": "2f2bf02.ca60d1",\r
289     "type": "other",\r
290     "name": "other",\r
291     "xml": "<outcome value='Other'>\n",\r
292     "comments": "",\r
293     "outputs": 1,\r
294     "x": 1162.5498809814453,\r
295     "y": 572.066237449646,\r
296     "z": "f47a0348.da1fc",\r
297     "wires": [\r
298       [\r
299         "82e6da2.ad6fd28"\r
300       ]\r
301     ]\r
302   },\r
303   {\r
304     "id": "82e6da2.ad6fd28",\r
305     "type": "block",\r
306     "name": "block: atomic",\r
307     "xml": "<block atomic=\"true\">\n",\r
308     "atomic": "false",\r
309     "comments": "",\r
310     "outputs": 1,\r
311     "x": 1342.5498313903809,\r
312     "y": 572.7327880859375,\r
313     "z": "f47a0348.da1fc",\r
314     "wires": [\r
315       [\r
316         "1d1825f2.925d0a"\r
317       ]\r
318     ]\r
319   },\r
320   {\r
321     "id": "6215df1.a21872",\r
322     "type": "other",\r
323     "name": "other",\r
324     "xml": "<outcome value='Other'>\n",\r
325     "comments": "",\r
326     "outputs": 1,\r
327     "x": 1738.2165489196777,\r
328     "y": 488.39952659606934,\r
329     "z": "f47a0348.da1fc",\r
330     "wires": [\r
331       [\r
332         "1d1825f2.925d0a"\r
333       ]\r
334     ]\r
335   },\r
336   {\r
337     "id": "d5b08a67.3e5c48",\r
338     "type": "set",\r
339     "name": "set connection-attachment-ar from get",\r
340     "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",\r
341     "comments": "",\r
342     "x": 2180.476043701172,\r
343     "y": 408.00022983551025,\r
344     "z": "f47a0348.da1fc",\r
345     "wires": []\r
346   },\r
347   {\r
348     "id": "fa1f1660.477578",\r
349     "type": "set",\r
350     "name": "set oper-status",\r
351     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",\r
352     "comments": "",\r
353     "x": 2113.4760398864746,\r
354     "y": 498.42878437042236,\r
355     "z": "f47a0348.da1fc",\r
356     "wires": []\r
357   },\r
358   {\r
359     "id": "5ce1e592.04689c",\r
360     "type": "switchNode",\r
361     "name": "switch order-status",\r
362     "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",\r
363     "comments": "",\r
364     "outputs": 1,\r
365     "x": 2124.475875854492,\r
366     "y": 452.0002336502075,\r
367     "z": "f47a0348.da1fc",\r
368     "wires": [\r
369       [\r
370         "46412cb7.a5f6f4",\r
371         "b5fc3d64.54bed"\r
372       ]\r
373     ]\r
374   },\r
375   {\r
376     "id": "46412cb7.a5f6f4",\r
377     "type": "outcome",\r
378     "name": "outcome Active",\r
379     "xml": "<outcome value='Active'>\n",\r
380     "comments": "",\r
381     "outputs": 1,\r
382     "x": 2331.075824737549,\r
383     "y": 442.0002336502075,\r
384     "z": "f47a0348.da1fc",\r
385     "wires": [\r
386       [\r
387         "11963437.b728dc"\r
388       ]\r
389     ]\r
390   },\r
391   {\r
392     "id": "b5fc3d64.54bed",\r
393     "type": "outcome",\r
394     "name": "outcome Other",\r
395     "xml": "<outcome value='Other'>\n",\r
396     "comments": "",\r
397     "outputs": 1,\r
398     "x": 2330.7903442382812,\r
399     "y": 484.42882442474365,\r
400     "z": "f47a0348.da1fc",\r
401     "wires": [\r
402       [\r
403         "1c1d147e.4224ac"\r
404       ]\r
405     ]\r
406   },\r
407   {\r
408     "id": "11963437.b728dc",\r
409     "type": "block",\r
410     "name": "block",\r
411     "xml": "<block>\n",\r
412     "atomic": "false",\r
413     "comments": "",\r
414     "outputs": 1,\r
415     "x": 2483.5463790893555,\r
416     "y": 440.3758840560913,\r
417     "z": "f47a0348.da1fc",\r
418     "wires": [\r
419       []\r
420     ]\r
421   },\r
422   {\r
423     "id": "1c1d147e.4224ac",\r
424     "type": "returnFailure",\r
425     "name": "return failure",\r
426     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" \n    value=\"`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",\r
427     "comments": "",\r
428     "x": 2503.6982345581055,\r
429     "y": 481.00023555755615,\r
430     "z": "f47a0348.da1fc",\r
431     "wires": []\r
432   },\r
433   {\r
434     "id": "6ad0e2bd.71bc3c",\r
435     "type": "call",\r
436     "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",\r
437     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",\r
438     "comments": "",\r
439     "outputs": 1,\r
440     "x": 891.3343658447266,\r
441     "y": 633.4937148094177,\r
442     "z": "f47a0348.da1fc",\r
443     "wires": [\r
444       []\r
445     ]\r
446   },\r
447   {\r
448     "id": "74b419be.6c1dc8",\r
449     "type": "block",\r
450     "name": "block: atomic",\r
451     "xml": "<block atomic=\"true\">\n",\r
452     "atomic": "false",\r
453     "comments": "",\r
454     "outputs": 1,\r
455     "x": 588.3405303955078,\r
456     "y": 634.5000629425049,\r
457     "z": "f47a0348.da1fc",\r
458     "wires": [\r
459       [\r
460         "6ad0e2bd.71bc3c"\r
461       ]\r
462     ]\r
463   },\r
464   {\r
465     "id": "8a5e890a.680be8",\r
466     "type": "comment",\r
467     "name": "GET parent-service-data from mdsal to check existence of other End point",\r
468     "info": "",\r
469     "comments": "",\r
470     "x": 770.0316925048828,\r
471     "y": 695.5318222045898,\r
472     "z": "f47a0348.da1fc",\r
473     "wires": []\r
474   },\r
475   {\r
476     "id": "2205c5d5.df45ea",\r
477     "type": "for",\r
478     "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",\r
479     "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",\r
480     "comments": "",\r
481     "outputs": 1,\r
482     "x": 1660.2162475585938,\r
483     "y": 899.0042066574097,\r
484     "z": "f47a0348.da1fc",\r
485     "wires": [\r
486       [\r
487         "325e72dd.42ae0e"\r
488       ]\r
489     ]\r
490   },\r
491   {\r
492     "id": "f3fcb7.3cb38348",\r
493     "type": "other",\r
494     "name": "other",\r
495     "xml": "<outcome value='Other'>\n",\r
496     "comments": "",\r
497     "outputs": 1,\r
498     "x": 1066.3582191467285,\r
499     "y": 1031.5756673812866,\r
500     "z": "f47a0348.da1fc",\r
501     "wires": [\r
502       [\r
503         "ed4934e0.63e078"\r
504       ]\r
505     ]\r
506   },\r
507   {\r
508     "id": "640c50fa.9b815",\r
509     "type": "block",\r
510     "name": "block : atomic",\r
511     "xml": "<block atomic=\"true\">",\r
512     "atomic": "true",\r
513     "outputs": 1,\r
514     "x": 1257.4856204986572,\r
515     "y": 896.7016951814294,\r
516     "z": "f47a0348.da1fc",\r
517     "wires": [\r
518       [\r
519         "2205c5d5.df45ea"\r
520       ]\r
521     ]\r
522   },\r
523   {\r
524     "id": "325e72dd.42ae0e",\r
525     "type": "switchNode",\r
526     "name": "switch allotted-resource-id",\r
527     "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",\r
528     "comments": "",\r
529     "outputs": 1,\r
530     "x": 2095.327648162842,\r
531     "y": 899.0041036605835,\r
532     "z": "f47a0348.da1fc",\r
533     "wires": [\r
534       [\r
535         "27ec9aa5.cff036",\r
536         "495a6869.e7e8d8"\r
537       ]\r
538     ]\r
539   },\r
540   {\r
541     "id": "27ec9aa5.cff036",\r
542     "type": "outcomeTrue",\r
543     "name": "true",\r
544     "xml": "<outcome value='true'>\n",\r
545     "comments": "",\r
546     "outputs": 1,\r
547     "x": 2304.137996673584,\r
548     "y": 879.468560218811,\r
549     "z": "f47a0348.da1fc",\r
550     "wires": [\r
551       [\r
552         "ac118201.9b0e6"\r
553       ]\r
554     ]\r
555   },\r
556   {\r
557     "id": "7260dcf8.1fb0a4",\r
558     "type": "block",\r
559     "name": "block : atomic",\r
560     "xml": "<block atomic=\"true\">",\r
561     "atomic": "true",\r
562     "outputs": 1,\r
563     "x": 2452.898750305176,\r
564     "y": 915.3257417678833,\r
565     "z": "f47a0348.da1fc",\r
566     "wires": [\r
567       [\r
568         "5e185008.36b4b"\r
569       ]\r
570     ]\r
571   },\r
572   {\r
573     "id": "5e185008.36b4b",\r
574     "type": "set",\r
575     "name": "set tmp.pidx and ptx.consumed-ar",\r
576     "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />",\r
577     "comments": "",\r
578     "x": 2687.756187438965,\r
579     "y": 913.8972730636597,\r
580     "z": "f47a0348.da1fc",\r
581     "wires": []\r
582   },\r
583   {\r
584     "id": "b3d0356b.e2dd48",\r
585     "type": "comment",\r
586     "name": "Check existence of other AR in parent service data",\r
587     "info": "Check if other allotted resource is available.",\r
588     "comments": "",\r
589     "x": 693.9940948486328,\r
590     "y": 865.8930444717407,\r
591     "z": "f47a0348.da1fc",\r
592     "wires": []\r
593   },\r
594   {\r
595     "id": "31b6e940.d005b6",\r
596     "type": "other",\r
597     "name": "outcome 1",\r
598     "xml": "<outcome value='1'>\n",\r
599     "comments": "",\r
600     "outputs": 1,\r
601     "x": 1077.0105667114258,\r
602     "y": 966.6773881912231,\r
603     "z": "f47a0348.da1fc",\r
604     "wires": [\r
605       [\r
606         "864fe6a.0f93518"\r
607       ]\r
608     ]\r
609   },\r
610   {\r
611     "id": "ed4934e0.63e078",\r
612     "type": "returnFailure",\r
613     "name": "return failure",\r
614     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n",\r
615     "comments": "",\r
616     "x": 1239.0105628967285,\r
617     "y": 1030.677409172058,\r
618     "z": "f47a0348.da1fc",\r
619     "wires": []\r
620   },\r
621   {\r
622     "id": "998ab047.1d3cb",\r
623     "type": "other",\r
624     "name": "outcome 2",\r
625     "xml": "<outcome value='2'>\n",\r
626     "comments": "",\r
627     "outputs": 1,\r
628     "x": 1083.0106410980225,\r
629     "y": 897.6773955598474,\r
630     "z": "f47a0348.da1fc",\r
631     "wires": [\r
632       [\r
633         "640c50fa.9b815"\r
634       ]\r
635     ]\r
636   },\r
637   {\r
638     "id": "ac118201.9b0e6",\r
639     "type": "block",\r
640     "name": "block",\r
641     "xml": "<block>\n",\r
642     "atomic": "false",\r
643     "comments": "",\r
644     "outputs": 1,\r
645     "x": 2433.122055053711,\r
646     "y": 874.677300453186,\r
647     "z": "f47a0348.da1fc",\r
648     "wires": [\r
649       []\r
650     ]\r
651   },\r
652   {\r
653     "id": "495a6869.e7e8d8",\r
654     "type": "outcomeTrue",\r
655     "name": "false",\r
656     "xml": "<outcome value='false'>\n",\r
657     "comments": "",\r
658     "outputs": 1,\r
659     "x": 2304.1220474243164,\r
660     "y": 913.6773042678833,\r
661     "z": "f47a0348.da1fc",\r
662     "wires": [\r
663       [\r
664         "7260dcf8.1fb0a4"\r
665       ]\r
666     ]\r
667   },\r
668   {\r
669     "id": "e0954e7f.0fc95",\r
670     "type": "switchNode",\r
671     "name": "switch mdsal-psd.networks_length",\r
672     "xml": "<switch test='`$mdsal-psd.service-data.networks.network_length`'>\n",\r
673     "comments": "",\r
674     "outputs": 1,\r
675     "x": 1489.3442459106445,\r
676     "y": 969.8998851776123,\r
677     "z": "f47a0348.da1fc",\r
678     "wires": [\r
679       [\r
680         "6d21348c.4e000c",\r
681         "8b08dda8.1325d"\r
682       ]\r
683     ]\r
684   },\r
685   {\r
686     "id": "8b08dda8.1325d",\r
687     "type": "other",\r
688     "name": "outcome 1",\r
689     "xml": "<outcome value='1'>\n",\r
690     "comments": "",\r
691     "outputs": 1,\r
692     "x": 1719.3442687988281,\r
693     "y": 945.7887172698975,\r
694     "z": "f47a0348.da1fc",\r
695     "wires": [\r
696       [\r
697         "2e4674ae.83d44c"\r
698       ]\r
699     ]\r
700   },\r
701   {\r
702     "id": "6d21348c.4e000c",\r
703     "type": "other",\r
704     "name": "other",\r
705     "xml": "<outcome value='Other'>\n",\r
706     "comments": "",\r
707     "outputs": 1,\r
708     "x": 1713.3443908691406,\r
709     "y": 1005.7887172698975,\r
710     "z": "f47a0348.da1fc",\r
711     "wires": [\r
712       [\r
713         "33f517e8.5f1128"\r
714       ]\r
715     ]\r
716   },\r
717   {\r
718     "id": "33f517e8.5f1128",\r
719     "type": "returnFailure",\r
720     "name": "return failure",\r
721     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Incorrect state found more then 1 network\" />\n    \n",\r
722     "comments": "",\r
723     "x": 1885.9967765808105,\r
724     "y": 1005.8905239105225,\r
725     "z": "f47a0348.da1fc",\r
726     "wires": []\r
727   },\r
728   {\r
729     "id": "6f8f7dac.c1bd54",\r
730     "type": "set",\r
731     "name": "set tmp.network.",\r
732     "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[0].`' />\n",\r
733     "comments": "",\r
734     "x": 2087.789192199707,\r
735     "y": 935.7888765335083,\r
736     "z": "f47a0348.da1fc",\r
737     "wires": []\r
738   },\r
739   {\r
740     "id": "864fe6a.0f93518",\r
741     "type": "block",\r
742     "name": "block : atomic",\r
743     "xml": "<block atomic=\"true\">",\r
744     "atomic": "true",\r
745     "outputs": 1,\r
746     "x": 1249.454921722412,\r
747     "y": 967.7886362075806,\r
748     "z": "f47a0348.da1fc",\r
749     "wires": [\r
750       [\r
751         "e0954e7f.0fc95"\r
752       ]\r
753     ]\r
754   },\r
755   {\r
756     "id": "2e4674ae.83d44c",\r
757     "type": "block",\r
758     "name": "block : atomic",\r
759     "xml": "<block atomic=\"true\">",\r
760     "atomic": "true",\r
761     "outputs": 1,\r
762     "x": 1887.121940612793,\r
763     "y": 964.7885513305664,\r
764     "z": "f47a0348.da1fc",\r
765     "wires": [\r
766       [\r
767         "6f8f7dac.c1bd54",\r
768         "ac5226f5.253788"\r
769       ]\r
770     ]\r
771   },\r
772   {\r
773     "id": "ac5226f5.253788",\r
774     "type": "for",\r
775     "name": "for nidx..tmp.network.network-data.network-request-input.network...[]",\r
776     "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >",\r
777     "comments": "",\r
778     "outputs": 1,\r
779     "x": 2263.12255859375,\r
780     "y": 1007.7885589599609,\r
781     "z": "f47a0348.da1fc",\r
782     "wires": [\r
783       [\r
784         "314fe564.900c2a"\r
785       ]\r
786     ]\r
787   },\r
788   {\r
789     "id": "314fe564.900c2a",\r
790     "type": "block",\r
791     "name": "block",\r
792     "xml": "<block>\n",\r
793     "atomic": "false",\r
794     "comments": "",\r
795     "outputs": 1,\r
796     "x": 2586.6782188415527,\r
797     "y": 1008.7886362075806,\r
798     "z": "f47a0348.da1fc",\r
799     "wires": [\r
800       [\r
801         "6d64b0f1.beb81",\r
802         "e3bdd7fd.7d8fe8"\r
803       ]\r
804     ]\r
805   },\r
806   {\r
807     "id": "6d64b0f1.beb81",\r
808     "type": "switchNode",\r
809     "name": "switch access-node-id",\r
810     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">",\r
811     "comments": "",\r
812     "outputs": 1,\r
813     "x": 2765.1883239746094,\r
814     "y": 992.799054145813,\r
815     "z": "f47a0348.da1fc",\r
816     "wires": [\r
817       [\r
818         "c510bd0d.90a2"\r
819       ]\r
820     ]\r
821   },\r
822   {\r
823     "id": "c510bd0d.90a2",\r
824     "type": "outcomeTrue",\r
825     "name": "true",\r
826     "xml": "<outcome value='true'>\n",\r
827     "comments": "",\r
828     "outputs": 1,\r
829     "x": 2952.1883239746094,\r
830     "y": 993.799054145813,\r
831     "z": "f47a0348.da1fc",\r
832     "wires": [\r
833       [\r
834         "a92bc658.3e7468"\r
835       ]\r
836     ]\r
837   },\r
838   {\r
839     "id": "a92bc658.3e7468",\r
840     "type": "set",\r
841     "name": "set tmp.found-in-network tmp.ep-available",\r
842     "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />",\r
843     "comments": "",\r
844     "x": 3203.188331604004,\r
845     "y": 993.3989963531494,\r
846     "z": "f47a0348.da1fc",\r
847     "wires": []\r
848   },\r
849   {\r
850     "id": "e3bdd7fd.7d8fe8",\r
851     "type": "returnSuccess",\r
852     "name": "return success",\r
853     "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
854     "comments": "",\r
855     "x": 2748.17822265625,\r
856     "y": 1037.7886533737183,\r
857     "z": "f47a0348.da1fc",\r
858     "wires": []\r
859   },\r
860   {\r
861     "id": "96a33d9.74471c",\r
862     "type": "switchNode",\r
863     "name": "switch tmp.ep-available",\r
864     "xml": "<switch test='`$tmp.ep-available`'>\n",\r
865     "comments": "",\r
866     "outputs": 1,\r
867     "x": 625.3441162109375,\r
868     "y": 1170.2329092025757,\r
869     "z": "f47a0348.da1fc",\r
870     "wires": [\r
871       [\r
872         "61b02086.d03f9",\r
873         "6c4d286f.2a00a8"\r
874       ]\r
875     ]\r
876   },\r
877   {\r
878     "id": "6c4d286f.2a00a8",\r
879     "type": "outcomeTrue",\r
880     "name": "true",\r
881     "xml": "<outcome value='true'>\n",\r
882     "comments": "",\r
883     "outputs": 1,\r
884     "x": 808.0109519958496,\r
885     "y": 1194.5663175582886,\r
886     "z": "f47a0348.da1fc",\r
887     "wires": [\r
888       [\r
889         "929ee9e7.521368"\r
890       ]\r
891     ]\r
892   },\r
893   {\r
894     "id": "61b02086.d03f9",\r
895     "type": "outcomeTrue",\r
896     "name": "false",\r
897     "xml": "<outcome value='false'>\n",\r
898     "comments": "",\r
899     "outputs": 1,\r
900     "x": 810.8997230529785,\r
901     "y": 1133.5664157867432,\r
902     "z": "f47a0348.da1fc",\r
903     "wires": [\r
904       [\r
905         "856596b.3c40368"\r
906       ]\r
907     ]\r
908   },\r
909   {\r
910     "id": "856596b.3c40368",\r
911     "type": "block",\r
912     "name": "block",\r
913     "xml": "<block>\n",\r
914     "atomic": "false",\r
915     "comments": "",\r
916     "outputs": 1,\r
917     "x": 947.8997993469238,\r
918     "y": 1132.4552297592163,\r
919     "z": "f47a0348.da1fc",\r
920     "wires": [\r
921       []\r
922     ]\r
923   },\r
924   {\r
925     "id": "929ee9e7.521368",\r
926     "type": "block",\r
927     "name": "block : atomic",\r
928     "xml": "<block atomic=\"true\">",\r
929     "atomic": "true",\r
930     "outputs": 1,\r
931     "x": 978.1220397949219,\r
932     "y": 1192.5662755966187,\r
933     "z": "f47a0348.da1fc",\r
934     "wires": [\r
935       [\r
936         "be61dd8a.9e196"\r
937       ]\r
938     ]\r
939   },\r
940   {\r
941     "id": "eb0bfad4.778f58",\r
942     "type": "comment",\r
943     "name": "GET connection-attachment-ar to store AR data from mdsal",\r
944     "info": "",\r
945     "comments": "",\r
946     "x": 2163.504196166992,\r
947     "y": 372.504093170166,\r
948     "z": "f47a0348.da1fc",\r
949     "wires": []\r
950   },\r
951   {\r
952     "id": "114f8c87.a5aa33",\r
953     "type": "comment",\r
954     "name": "Set source end point",\r
955     "info": "",\r
956     "comments": "",\r
957     "x": 602.0040893554688,\r
958     "y": 602.2541885375977,\r
959     "z": "f47a0348.da1fc",\r
960     "wires": []\r
961   },\r
962   {\r
963     "id": "cea5b658.f38fb8",\r
964     "type": "set",\r
965     "name": "set tmp.ar.parent-service-instance-id",\r
966     "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",\r
967     "comments": "",\r
968     "x": 655.0001678466797,\r
969     "y": 727.0003328323364,\r
970     "z": "f47a0348.da1fc",\r
971     "wires": []\r
972   },\r
973   {\r
974     "id": "5d8dc0c4.ff757",\r
975     "type": "success",\r
976     "name": "success",\r
977     "xml": "<outcome value='success'>\n",\r
978     "comments": "",\r
979     "outputs": 1,\r
980     "x": 1033.0001640319824,\r
981     "y": 776.0003318786621,\r
982     "z": "f47a0348.da1fc",\r
983     "wires": [\r
984       [\r
985         "6a1bf843.4d25b8"\r
986       ]\r
987     ]\r
988   },\r
989   {\r
990     "id": "83b7907.b55937",\r
991     "type": "other",\r
992     "name": "other",\r
993     "xml": "<outcome value='Other'>\n",\r
994     "comments": "",\r
995     "outputs": 1,\r
996     "x": 1024.8519668579102,\r
997     "y": 811.0664167404175,\r
998     "z": "f47a0348.da1fc",\r
999     "wires": [\r
1000       [\r
1001         "4f4eb4c7.cc9fdc"\r
1002       ]\r
1003     ]\r
1004   },\r
1005   {\r
1006     "id": "4f4eb4c7.cc9fdc",\r
1007     "type": "returnFailure",\r
1008     "name": "return failure",\r
1009     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n",\r
1010     "comments": "",\r
1011     "x": 1200.0006523132324,\r
1012     "y": 807.3337669372559,\r
1013     "z": "f47a0348.da1fc",\r
1014     "wires": []\r
1015   },\r
1016   {\r
1017     "id": "6a1bf843.4d25b8",\r
1018     "type": "block",\r
1019     "name": "block",\r
1020     "xml": "<block>\n",\r
1021     "atomic": "false",\r
1022     "comments": "",\r
1023     "outputs": 1,\r
1024     "x": 1184.0001640319824,\r
1025     "y": 774.0003318786621,\r
1026     "z": "f47a0348.da1fc",\r
1027     "wires": [\r
1028       []\r
1029     ]\r
1030   },\r
1031   {\r
1032     "id": "8fc6baf4.1c66d8",\r
1033     "type": "set",\r
1034     "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",\r
1035     "xml": "<set>\n<parameter name='tmp.found-in-ar' value='false' />\n<parameter name='tmp.found-in-network' value='false' />\n<parameter name='tmp.ep-available' value='false' />",\r
1036     "comments": "",\r
1037     "x": 742.0001602172852,\r
1038     "y": 901.0003061294556,\r
1039     "z": "f47a0348.da1fc",\r
1040     "wires": []\r
1041   },\r
1042   {\r
1043     "id": "ce5d7876.710a68",\r
1044     "type": "comment",\r
1045     "name": "If other EP exists delete from domain controller",\r
1046     "info": "",\r
1047     "comments": "",\r
1048     "x": 676.0000610351562,\r
1049     "y": 1095.0001211166382,\r
1050     "z": "f47a0348.da1fc",\r
1051     "wires": []\r
1052   },\r
1053   {\r
1054     "id": "fd46c38b.b0e06",\r
1055     "type": "set",\r
1056     "name": "set controller data",\r
1057     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",\r
1058     "comments": "",\r
1059     "x": 2674.000877380371,\r
1060     "y": 1385.0007133483887,\r
1061     "z": "f47a0348.da1fc",\r
1062     "wires": []\r
1063   },\r
1064   {\r
1065     "id": "ff817e6a.4c262",\r
1066     "type": "get-resource",\r
1067     "name": "get-resource esr-thirdparty-sdnc",\r
1068     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.thirdparty-sdnc-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",\r
1069     "comments": "",\r
1070     "outputs": 1,\r
1071     "x": 2237.500816345215,\r
1072     "y": 1444.0007133483887,\r
1073     "z": "f47a0348.da1fc",\r
1074     "wires": [\r
1075       [\r
1076         "f3622c21.50f46",\r
1077         "e431ae5e.58828",\r
1078         "a151b89e.28add8"\r
1079       ]\r
1080     ]\r
1081   },\r
1082   {\r
1083     "id": "f3622c21.50f46",\r
1084     "type": "success",\r
1085     "name": "success",\r
1086     "xml": "<outcome value='success'>\n",\r
1087     "comments": "",\r
1088     "outputs": 1,\r
1089     "x": 2476.500816345215,\r
1090     "y": 1397.0007133483887,\r
1091     "z": "f47a0348.da1fc",\r
1092     "wires": [\r
1093       [\r
1094         "fd46c38b.b0e06"\r
1095       ]\r
1096     ]\r
1097   },\r
1098   {\r
1099     "id": "e431ae5e.58828",\r
1100     "type": "not-found",\r
1101     "name": "not-found",\r
1102     "xml": "<outcome value='not-found'>\n",\r
1103     "comments": "",\r
1104     "outputs": 1,\r
1105     "x": 2479.99178314209,\r
1106     "y": 1444.57474899292,\r
1107     "z": "f47a0348.da1fc",\r
1108     "wires": [\r
1109       [\r
1110         "236bc0bf.99bb6"\r
1111       ]\r
1112     ]\r
1113   },\r
1114   {\r
1115     "id": "a151b89e.28add8",\r
1116     "type": "other",\r
1117     "name": "other",\r
1118     "xml": "<outcome value='Other'>\n",\r
1119     "comments": "",\r
1120     "outputs": 1,\r
1121     "x": 2475.32479095459,\r
1122     "y": 1485.9080619812012,\r
1123     "z": "f47a0348.da1fc",\r
1124     "wires": [\r
1125       [\r
1126         "6adb79b2.e33818"\r
1127       ]\r
1128     ]\r
1129   },\r
1130   {\r
1131     "id": "236bc0bf.99bb6",\r
1132     "type": "returnFailure",\r
1133     "name": "return failure",\r
1134     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
1135     "comments": "",\r
1136     "x": 2656.5631942749023,\r
1137     "y": 1432.8604850769043,\r
1138     "z": "f47a0348.da1fc",\r
1139     "wires": []\r
1140   },\r
1141   {\r
1142     "id": "6adb79b2.e33818",\r
1143     "type": "returnFailure",\r
1144     "name": "return failure",\r
1145     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",\r
1146     "comments": "",\r
1147     "x": 2663.0973472595215,\r
1148     "y": 1481.3472547531128,\r
1149     "z": "f47a0348.da1fc",\r
1150     "wires": []\r
1151   },\r
1152   {\r
1153     "id": "993c0a9c.fa2968",\r
1154     "type": "get-resource",\r
1155     "name": "get-resource pnf",\r
1156     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.node-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.pnf' local-only='false' >\n\n\n\n",\r
1157     "comments": "",\r
1158     "outputs": 1,\r
1159     "x": 2187.0009841918945,\r
1160     "y": 1336.000542640686,\r
1161     "z": "f47a0348.da1fc",\r
1162     "wires": [\r
1163       [\r
1164         "6cbbdc6c.177994",\r
1165         "d6b323fb.dd5df",\r
1166         "691cb9fb.eb1b88"\r
1167       ]\r
1168     ]\r
1169   },\r
1170   {\r
1171     "id": "6cbbdc6c.177994",\r
1172     "type": "success",\r
1173     "name": "success",\r
1174     "xml": "<outcome value='success'>\n",\r
1175     "comments": "",\r
1176     "outputs": 1,\r
1177     "x": 2375.0009994506836,\r
1178     "y": 1282.0005350112915,\r
1179     "z": "f47a0348.da1fc",\r
1180     "wires": [\r
1181       [\r
1182         "f3a2b0cc.a6cd3"\r
1183       ]\r
1184     ]\r
1185   },\r
1186   {\r
1187     "id": "d6b323fb.dd5df",\r
1188     "type": "not-found",\r
1189     "name": "not-found",\r
1190     "xml": "<outcome value='not-found'>\n",\r
1191     "comments": "",\r
1192     "outputs": 1,\r
1193     "x": 2380.492046356201,\r
1194     "y": 1324.5744314193726,\r
1195     "z": "f47a0348.da1fc",\r
1196     "wires": [\r
1197       [\r
1198         "44a433a2.c4cb1c"\r
1199       ]\r
1200     ]\r
1201   },\r
1202   {\r
1203     "id": "691cb9fb.eb1b88",\r
1204     "type": "other",\r
1205     "name": "other",\r
1206     "xml": "<outcome value='Other'>\n",\r
1207     "comments": "",\r
1208     "outputs": 1,\r
1209     "x": 2366.825054168701,\r
1210     "y": 1362.9077672958374,\r
1211     "z": "f47a0348.da1fc",\r
1212     "wires": [\r
1213       [\r
1214         "a204db7f.ac39f8"\r
1215       ]\r
1216     ]\r
1217   },\r
1218   {\r
1219     "id": "44a433a2.c4cb1c",\r
1220     "type": "returnFailure",\r
1221     "name": "return failure",\r
1222     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
1223     "comments": "",\r
1224     "x": 2534.063346862793,\r
1225     "y": 1314.8602380752563,\r
1226     "z": "f47a0348.da1fc",\r
1227     "wires": []\r
1228   },\r
1229   {\r
1230     "id": "a204db7f.ac39f8",\r
1231     "type": "returnFailure",\r
1232     "name": "return failure",\r
1233     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",\r
1234     "comments": "",\r
1235     "x": 2530.597526550293,\r
1236     "y": 1354.3470573425293,\r
1237     "z": "f47a0348.da1fc",\r
1238     "wires": []\r
1239   },\r
1240   {\r
1241     "id": "f3a2b0cc.a6cd3",\r
1242     "type": "set",\r
1243     "name": "set tmp.thirdparty-sdnc-id",\r
1244     "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",\r
1245     "comments": "",\r
1246     "x": 2575.0010147094727,\r
1247     "y": 1277.0005350112915,\r
1248     "z": "f47a0348.da1fc",\r
1249     "wires": []\r
1250   },\r
1251   {\r
1252     "id": "d61e54ea.0473f8",\r
1253     "type": "comment",\r
1254     "name": "get domain controller information",\r
1255     "info": "",\r
1256     "comments": "",\r
1257     "x": 2230.5048904418945,\r
1258     "y": 1305.0045099258423,\r
1259     "z": "f47a0348.da1fc",\r
1260     "wires": []\r
1261   },\r
1262   {\r
1263     "id": "10d17cd1.f30ab3",\r
1264     "type": "execute",\r
1265     "name": "execute RestApiCallNode Delete ethernet Service",\r
1266     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.actual.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.onap.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`\" />",\r
1267     "comments": "",\r
1268     "outputs": 1,\r
1269     "x": 2761.001152038574,\r
1270     "y": 1730.000747680664,\r
1271     "z": "f47a0348.da1fc",\r
1272     "wires": [\r
1273       [\r
1274         "94d88f9c.771f9",\r
1275         "f2badd12.3e9c1"\r
1276       ]\r
1277     ]\r
1278   },\r
1279   {\r
1280     "id": "94d88f9c.771f9",\r
1281     "type": "success",\r
1282     "name": "success",\r
1283     "xml": "<outcome value='success'>\n",\r
1284     "comments": "",\r
1285     "outputs": 1,\r
1286     "x": 3107.000801086426,\r
1287     "y": 1714.0007457733154,\r
1288     "z": "f47a0348.da1fc",\r
1289     "wires": [\r
1290       [\r
1291         "1c7ac915.f6a6b7"\r
1292       ]\r
1293     ]\r
1294   },\r
1295   {\r
1296     "id": "1c7ac915.f6a6b7",\r
1297     "type": "block",\r
1298     "name": "block : atomic",\r
1299     "xml": "<block atomic=\"true\">",\r
1300     "atomic": "true",\r
1301     "comments": "",\r
1302     "outputs": 1,\r
1303     "x": 3277.0007400512695,\r
1304     "y": 1717.0007457733154,\r
1305     "z": "f47a0348.da1fc",\r
1306     "wires": [\r
1307       []\r
1308     ]\r
1309   },\r
1310   {\r
1311     "id": "73cc424c.c105bc",\r
1312     "type": "returnFailure",\r
1313     "name": "return failure",\r
1314     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error executing Create vpn rest api\" />\n",\r
1315     "comments": "",\r
1316     "x": 3277.000862121582,\r
1317     "y": 1673.0007457733154,\r
1318     "z": "f47a0348.da1fc",\r
1319     "wires": []\r
1320   },\r
1321   {\r
1322     "id": "f2badd12.3e9c1",\r
1323     "type": "failure",\r
1324     "name": "failure",\r
1325     "xml": "<outcome value='failure'>\n",\r
1326     "comments": "",\r
1327     "outputs": 1,\r
1328     "x": 3110.0007400512695,\r
1329     "y": 1673.0007457733154,\r
1330     "z": "f47a0348.da1fc",\r
1331     "wires": [\r
1332       [\r
1333         "73cc424c.c105bc"\r
1334       ]\r
1335     ]\r
1336   },\r
1337   {\r
1338     "id": "4d3c7e74.2037b",\r
1339     "type": "failure",\r
1340     "name": "failure",\r
1341     "xml": "<outcome value='failure'>\n",\r
1342     "comments": "",\r
1343     "outputs": 1,\r
1344     "x": 904.7619972229004,\r
1345     "y": 1694.9529141187668,\r
1346     "z": "f47a0348.da1fc",\r
1347     "wires": [\r
1348       [\r
1349         "9a2c9c7c.b67bf"\r
1350       ]\r
1351     ]\r
1352   },\r
1353   {\r
1354     "id": "9a2c9c7c.b67bf",\r
1355     "type": "returnFailure",\r
1356     "name": "return failure",\r
1357     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"AAI failed\" />\n",\r
1358     "comments": "",\r
1359     "x": 1071.2858772277832,\r
1360     "y": 1706.5719851255417,\r
1361     "z": "f47a0348.da1fc",\r
1362     "wires": []\r
1363   },\r
1364   {\r
1365     "id": "76fdd751.58a9d8",\r
1366     "type": "failure",\r
1367     "name": "not-found",\r
1368     "xml": "<outcome value='not-found'>\n",\r
1369     "comments": "",\r
1370     "outputs": 1,\r
1371     "x": 911.8572845458984,\r
1372     "y": 1727.7148817777634,\r
1373     "z": "f47a0348.da1fc",\r
1374     "wires": [\r
1375       [\r
1376         "9a2c9c7c.b67bf"\r
1377       ]\r
1378     ]\r
1379   },\r
1380   {\r
1381     "id": "4fec1ce6.1b1a34",\r
1382     "type": "comment",\r
1383     "name": "Save Resource to AAI",\r
1384     "info": "",\r
1385     "comments": "",\r
1386     "x": 623.8097114562988,\r
1387     "y": 1677.3023023605347,\r
1388     "z": "f47a0348.da1fc",\r
1389     "wires": []\r
1390   },\r
1391   {\r
1392     "id": "d507ebff.314fd8",\r
1393     "type": "set",\r
1394     "name": "set output to api handler",\r
1395     "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",\r
1396     "comments": "",\r
1397     "x": 638.5774078369141,\r
1398     "y": 1598.8277835845947,\r
1399     "z": "f47a0348.da1fc",\r
1400     "wires": []\r
1401   },\r
1402   {\r
1403     "id": "9f388371.4f18e",\r
1404     "type": "returnSuccess",\r
1405     "name": "return success",\r
1406     "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
1407     "comments": "",\r
1408     "x": 606.9904899597168,\r
1409     "y": 1759.4435358047485,\r
1410     "z": "f47a0348.da1fc",\r
1411     "wires": []\r
1412   },\r
1413   {\r
1414     "id": "8e1d23f5.d1706",\r
1415     "type": "execute",\r
1416     "name": "execute RestApiCallNode - PUT AR by id",\r
1417     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-attachment.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",\r
1418     "comments": "",\r
1419     "outputs": 1,\r
1420     "x": 688.3095092773438,\r
1421     "y": 1506.468557357788,\r
1422     "z": "f47a0348.da1fc",\r
1423     "wires": [\r
1424       [\r
1425         "e11c7417.4fa658",\r
1426         "64cfcda1.4c2f84",\r
1427         "c55d4506.901118"\r
1428       ]\r
1429     ]\r
1430   },\r
1431   {\r
1432     "id": "e11c7417.4fa658",\r
1433     "type": "not-found",\r
1434     "name": "not-found",\r
1435     "xml": "<outcome value='not-found'>\n",\r
1436     "comments": "",\r
1437     "outputs": 1,\r
1438     "x": 956.9508857727051,\r
1439     "y": 1557.799969099462,\r
1440     "z": "f47a0348.da1fc",\r
1441     "wires": [\r
1442       [\r
1443         "14bdf473.21930c"\r
1444       ]\r
1445     ]\r
1446   },\r
1447   {\r
1448     "id": "64cfcda1.4c2f84",\r
1449     "type": "failure",\r
1450     "name": "failure",\r
1451     "xml": "<outcome value='failure'>\n",\r
1452     "comments": "",\r
1453     "outputs": 1,\r
1454     "x": 947.9509353637695,\r
1455     "y": 1526.2999948486686,\r
1456     "z": "f47a0348.da1fc",\r
1457     "wires": [\r
1458       [\r
1459         "14bdf473.21930c"\r
1460       ]\r
1461     ]\r
1462   },\r
1463   {\r
1464     "id": "c55d4506.901118",\r
1465     "type": "success",\r
1466     "name": "success",\r
1467     "xml": "<outcome value='success'>\n",\r
1468     "comments": "",\r
1469     "outputs": 1,\r
1470     "x": 951.7009735107422,\r
1471     "y": 1496.657099723816,\r
1472     "z": "f47a0348.da1fc",\r
1473     "wires": [\r
1474       [\r
1475         "82c892ac.f910d"\r
1476       ]\r
1477     ]\r
1478   },\r
1479   {\r
1480     "id": "14bdf473.21930c",\r
1481     "type": "returnFailure",\r
1482     "name": "return failure",\r
1483     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",\r
1484     "comments": "",\r
1485     "x": 1117.7009735107422,\r
1486     "y": 1527.0500186905265,\r
1487     "z": "f47a0348.da1fc",\r
1488     "wires": []\r
1489   },\r
1490   {\r
1491     "id": "82c892ac.f910d",\r
1492     "type": "block",\r
1493     "name": "block",\r
1494     "xml": "<block>\n",\r
1495     "atomic": "false",\r
1496     "comments": "",\r
1497     "outputs": 1,\r
1498     "x": 1093.3569412231445,\r
1499     "y": 1492.849268913269,\r
1500     "z": "f47a0348.da1fc",\r
1501     "wires": [\r
1502       []\r
1503     ]\r
1504   },\r
1505   {\r
1506     "id": "bd5b936a.6f494",\r
1507     "type": "set",\r
1508     "name": "set ar-data",\r
1509     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />",\r
1510     "comments": "",\r
1511     "x": 588.5231285095215,\r
1512     "y": 1356.8494803905487,\r
1513     "z": "f47a0348.da1fc",\r
1514     "wires": []\r
1515   },\r
1516   {\r
1517     "id": "754f8876.c41b88",\r
1518     "type": "execute",\r
1519     "name": "execute getTime",\r
1520     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",\r
1521     "comments": "",\r
1522     "outputs": 1,\r
1523     "x": 605.8089714050293,\r
1524     "y": 1429.4690780639648,\r
1525     "z": "f47a0348.da1fc",\r
1526     "wires": [\r
1527       []\r
1528     ]\r
1529   },\r
1530   {\r
1531     "id": "1fa63937.8805f7",\r
1532     "type": "set",\r
1533     "name": "set allotted-resource-oper-status",\r
1534     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",\r
1535     "comments": "",\r
1536     "x": 660.796028137207,\r
1537     "y": 1467.4202156066895,\r
1538     "z": "f47a0348.da1fc",\r
1539     "wires": []\r
1540   },\r
1541   {\r
1542     "id": "1ecf912a.ad8d5f",\r
1543     "type": "set",\r
1544     "name": "set model-data",\r
1545     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",\r
1546     "comments": "",\r
1547     "x": 602.3646697998047,\r
1548     "y": 1396.024130821228,\r
1549     "z": "f47a0348.da1fc",\r
1550     "wires": []\r
1551   },\r
1552   {\r
1553     "id": "3d5eb994.20a306",\r
1554     "type": "comment",\r
1555     "name": "Prepare data for allotted-resource addition to MDSAL",\r
1556     "info": "This will add to allotted-resource which is present inside service.",\r
1557     "comments": "",\r
1558     "x": 715.6981315612793,\r
1559     "y": 1317.0240828990936,\r
1560     "z": "f47a0348.da1fc",\r
1561     "wires": []\r
1562   },\r
1563   {\r
1564     "id": "35db93ec.682e9c",\r
1565     "type": "comment",\r
1566     "name": "Add to allotted-resources in mdsal",\r
1567     "info": "",\r
1568     "comments": "",\r
1569     "x": 657.2779579162598,\r
1570     "y": 1284.4373846054077,\r
1571     "z": "f47a0348.da1fc",\r
1572     "wires": []\r
1573   },\r
1574   {\r
1575     "id": "31cf3c93.494fc4",\r
1576     "type": "update",\r
1577     "name": "update AAI allotted-resource",\r
1578     "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.service-information.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",\r
1579     "comments": "",\r
1580     "outputs": 1,\r
1581     "x": 650.2539901733398,\r
1582     "y": 1714.7544450759888,\r
1583     "z": "f47a0348.da1fc",\r
1584     "wires": [\r
1585       [\r
1586         "4d3c7e74.2037b",\r
1587         "76fdd751.58a9d8"\r
1588       ]\r
1589     ]\r
1590   },\r
1591   {\r
1592     "id": "be61dd8a.9e196",\r
1593     "type": "get-resource",\r
1594     "name": "get-resource connectivity",\r
1595     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"connectivity\" \n\t\tkey=\"connectivity.connectivity-id = $mdsal-psd.service-data.networks.network[0].network-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.connectivity' local-only='false' >\n",\r
1596     "comments": "",\r
1597     "outputs": 1,\r
1598     "x": 1184.0318145751953,\r
1599     "y": 1192.504550933838,\r
1600     "z": "f47a0348.da1fc",\r
1601     "wires": [\r
1602       [\r
1603         "ec3a781a.b17a88",\r
1604         "13bcbf26.d71d71"\r
1605       ]\r
1606     ]\r
1607   },\r
1608   {\r
1609     "id": "3730ddb4.d493b2",\r
1610     "type": "block",\r
1611     "name": "block : atomic",\r
1612     "xml": "<block atomic=\"true\">",\r
1613     "atomic": "true",\r
1614     "outputs": 1,\r
1615     "x": 1957.1491241455078,\r
1616     "y": 1389.3446836471558,\r
1617     "z": "f47a0348.da1fc",\r
1618     "wires": [\r
1619       [\r
1620         "76aabffd.38e",\r
1621         "ddc37a19.aa1838",\r
1622         "993c0a9c.fa2968",\r
1623         "ff817e6a.4c262",\r
1624         "d2c267be.388018",\r
1625         "4ec4550f.fd160c",\r
1626         "767b76a3.973bd8"\r
1627       ]\r
1628     ]\r
1629   },\r
1630   {\r
1631     "id": "2d7c3367.b4917c",\r
1632     "type": "outcome",\r
1633     "name": "vpn-binding",\r
1634     "xml": "<outcome value='vpn-binding'>\n",\r
1635     "comments": "",\r
1636     "outputs": 1,\r
1637     "x": 1783.317642211914,\r
1638     "y": 1391.8262071609497,\r
1639     "z": "f47a0348.da1fc",\r
1640     "wires": [\r
1641       [\r
1642         "3730ddb4.d493b2"\r
1643       ]\r
1644     ]\r
1645   },\r
1646   {\r
1647     "id": "95f1a2bf.0b285",\r
1648     "type": "for",\r
1649     "name": "for each relationship",\r
1650     "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.connectivity.relationship-list.relationship_length`' >\n",\r
1651     "comments": "",\r
1652     "outputs": 1,\r
1653     "x": 1405.0315856933594,\r
1654     "y": 1390.004433631897,\r
1655     "z": "f47a0348.da1fc",\r
1656     "wires": [\r
1657       [\r
1658         "68b3b3fe.7b312c"\r
1659       ]\r
1660     ]\r
1661   },\r
1662   {\r
1663     "id": "68b3b3fe.7b312c",\r
1664     "type": "switchNode",\r
1665     "name": "switch related-to",\r
1666     "xml": "<switch test='`$tmp.connectivity.relationship-list.relationship[$vidx].related-to`'>\n",\r
1667     "comments": "",\r
1668     "outputs": 1,\r
1669     "x": 1617.0315971374512,\r
1670     "y": 1391.004433631897,\r
1671     "z": "f47a0348.da1fc",\r
1672     "wires": [\r
1673       [\r
1674         "2d7c3367.b4917c"\r
1675       ]\r
1676     ]\r
1677   },\r
1678   {\r
1679     "id": "ddc37a19.aa1838",\r
1680     "type": "set",\r
1681     "name": "set tmp.vpn-name",\r
1682     "xml": "<set>\n<parameter name='tmp.vpn-name' value=\"`$tmp.connectivity.relationship-list.relationship[$vidx].relationship-data[0].relationship-value` \" />\n",\r
1683     "comments": "",\r
1684     "x": 2190.0317916870117,\r
1685     "y": 1103.00475025177,\r
1686     "z": "f47a0348.da1fc",\r
1687     "wires": []\r
1688   },\r
1689   {\r
1690     "id": "76aabffd.38e",\r
1691     "type": "execute",\r
1692     "name": "split vpnName to find nodeId",\r
1693     "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",\r
1694     "comments": "",\r
1695     "outputs": 1,\r
1696     "x": 2226.0317459106445,\r
1697     "y": 1204.004117012024,\r
1698     "z": "f47a0348.da1fc",\r
1699     "wires": [\r
1700       [\r
1701         "78a77003.35ea4",\r
1702         "637ec688.c44a88"\r
1703       ]\r
1704     ]\r
1705   },\r
1706   {\r
1707     "id": "637ec688.c44a88",\r
1708     "type": "failure",\r
1709     "name": "success",\r
1710     "xml": "<outcome value='success'>\n",\r
1711     "comments": "",\r
1712     "outputs": 1,\r
1713     "x": 2427.031936645508,\r
1714     "y": 1181.0041093826294,\r
1715     "z": "f47a0348.da1fc",\r
1716     "wires": [\r
1717       [\r
1718         "b87e837.b66ce8"\r
1719       ]\r
1720     ]\r
1721   },\r
1722   {\r
1723     "id": "b87e837.b66ce8",\r
1724     "type": "set",\r
1725     "name": "set tmp.node-id",\r
1726     "xml": "<set>\n<parameter name='tmp.node-id' value='`$route1[0]`' />\n<parameter name='tmp.actual.vpn-name' value='`$route1[1]`' />\n",\r
1727     "comments": "",\r
1728     "x": 2580.032096862793,\r
1729     "y": 1179.0041103363037,\r
1730     "z": "f47a0348.da1fc",\r
1731     "wires": []\r
1732   },\r
1733   {\r
1734     "id": "857b862a.e6a0b8",\r
1735     "type": "returnFailure",\r
1736     "name": "return failure",\r
1737     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",\r
1738     "comments": "",\r
1739     "x": 2564.032262802124,\r
1740     "y": 1228.0041122436523,\r
1741     "z": "f47a0348.da1fc",\r
1742     "wires": []\r
1743   },\r
1744   {\r
1745     "id": "78a77003.35ea4",\r
1746     "type": "failure",\r
1747     "name": "failure",\r
1748     "xml": "<outcome value='failure'>\n",\r
1749     "comments": "",\r
1750     "outputs": 1,\r
1751     "x": 2424.03191947937,\r
1752     "y": 1229.004114151001,\r
1753     "z": "f47a0348.da1fc",\r
1754     "wires": [\r
1755       [\r
1756         "857b862a.e6a0b8"\r
1757       ]\r
1758     ]\r
1759   },\r
1760   {\r
1761     "id": "ec3a781a.b17a88",\r
1762     "type": "success",\r
1763     "name": "success",\r
1764     "xml": "<outcome value='success'>\n",\r
1765     "comments": "",\r
1766     "outputs": 1,\r
1767     "x": 1365.0314140319824,\r
1768     "y": 1227.0001955032349,\r
1769     "z": "f47a0348.da1fc",\r
1770     "wires": [\r
1771       [\r
1772         "8cc479bc.b82368"\r
1773       ]\r
1774     ]\r
1775   },\r
1776   {\r
1777     "id": "13bcbf26.d71d71",\r
1778     "type": "other",\r
1779     "name": "other",\r
1780     "xml": "<outcome value='Other'>\n",\r
1781     "comments": "",\r
1782     "outputs": 1,\r
1783     "x": 1367.883144378662,\r
1784     "y": 1154.0664405822754,\r
1785     "z": "f47a0348.da1fc",\r
1786     "wires": [\r
1787       [\r
1788         "c5f74144.ebbac"\r
1789       ]\r
1790     ]\r
1791   },\r
1792   {\r
1793     "id": "c5f74144.ebbac",\r
1794     "type": "returnFailure",\r
1795     "name": "return failure",\r
1796     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: Connectivity resource not found\" />\n    \n",\r
1797     "comments": "",\r
1798     "x": 1510.0319137573242,\r
1799     "y": 1154.3338508605957,\r
1800     "z": "f47a0348.da1fc",\r
1801     "wires": []\r
1802   },\r
1803   {\r
1804     "id": "8cc479bc.b82368",\r
1805     "type": "block",\r
1806     "name": "block",\r
1807     "xml": "<block>\n",\r
1808     "atomic": "false",\r
1809     "comments": "",\r
1810     "outputs": 1,\r
1811     "x": 1367.0314254760742,\r
1812     "y": 1305.000361442566,\r
1813     "z": "f47a0348.da1fc",\r
1814     "wires": [\r
1815       [\r
1816         "95f1a2bf.0b285"\r
1817       ]\r
1818     ]\r
1819   },\r
1820   {\r
1821     "id": "61d4f147.44641",\r
1822     "type": "execute",\r
1823     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",\r
1824     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",\r
1825     "comments": "",\r
1826     "outputs": 1,\r
1827     "x": 803.3652038574219,\r
1828     "y": 553.5000734329224,\r
1829     "z": "f47a0348.da1fc",\r
1830     "wires": [\r
1831       [\r
1832         "55776be8.abf844",\r
1833         "2f2bf02.ca60d1"\r
1834       ]\r
1835     ]\r
1836   },\r
1837   {\r
1838     "id": "7bc058aa.42a598",\r
1839     "type": "execute",\r
1840     "name": "get parent-service-data tmp.ar-url-psd",\r
1841     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",\r
1842     "comments": "",\r
1843     "outputs": 1,\r
1844     "x": 657.0314483642578,\r
1845     "y": 762.0003347396851,\r
1846     "z": "f47a0348.da1fc",\r
1847     "wires": [\r
1848       []\r
1849     ]\r
1850   },\r
1851   {\r
1852     "id": "7c847f3c.b2ac4",\r
1853     "type": "execute",\r
1854     "name": "execute RestApiCallNode - get-resource parent service data",\r
1855     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n",\r
1856     "comments": "",\r
1857     "outputs": 1,\r
1858     "x": 724.0314102172852,\r
1859     "y": 797.0004186630249,\r
1860     "z": "f47a0348.da1fc",\r
1861     "wires": [\r
1862       [\r
1863         "5d8dc0c4.ff757",\r
1864         "83b7907.b55937"\r
1865       ]\r
1866     ]\r
1867   },\r
1868   {\r
1869     "id": "f0fb1a1c.cc2828",\r
1870     "type": "switchNode",\r
1871     "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",\r
1872     "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",\r
1873     "comments": "",\r
1874     "outputs": 1,\r
1875     "x": 740.2155303955078,\r
1876     "y": 971.7182464599609,\r
1877     "z": "f47a0348.da1fc",\r
1878     "wires": [\r
1879       [\r
1880         "f3fcb7.3cb38348",\r
1881         "31b6e940.d005b6",\r
1882         "998ab047.1d3cb"\r
1883       ]\r
1884     ]\r
1885   },\r
1886   {\r
1887     "id": "d2c267be.388018",\r
1888     "type": "update",\r
1889     "name": "delete AAI vpn-binding",\r
1890     "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.vpn-name' >",\r
1891     "comments": "",\r
1892     "outputs": 1,\r
1893     "x": 2211.031204223633,\r
1894     "y": 1801.0002889633179,\r
1895     "z": "f47a0348.da1fc",\r
1896     "wires": [\r
1897       [\r
1898         "e8b749f3.e275f8",\r
1899         "ef20a9a9.f1fb18"\r
1900       ]\r
1901     ]\r
1902   },\r
1903   {\r
1904     "id": "e8b749f3.e275f8",\r
1905     "type": "failure",\r
1906     "name": "failure",\r
1907     "xml": "<outcome value='failure'>\n",\r
1908     "comments": "",\r
1909     "outputs": 1,\r
1910     "x": 2465.5392112731934,\r
1911     "y": 1781.1987580060959,\r
1912     "z": "f47a0348.da1fc",\r
1913     "wires": [\r
1914       [\r
1915         "b53766de.89b208"\r
1916       ]\r
1917     ]\r
1918   },\r
1919   {\r
1920     "id": "ef20a9a9.f1fb18",\r
1921     "type": "failure",\r
1922     "name": "not-found",\r
1923     "xml": "<outcome value='not-found'>\n",\r
1924     "comments": "",\r
1925     "outputs": 1,\r
1926     "x": 2472.6344985961914,\r
1927     "y": 1813.9607256650925,\r
1928     "z": "f47a0348.da1fc",\r
1929     "wires": [\r
1930       [\r
1931         "b53766de.89b208"\r
1932       ]\r
1933     ]\r
1934   },\r
1935   {\r
1936     "id": "b53766de.89b208",\r
1937     "type": "returnFailure",\r
1938     "name": "return failure",\r
1939     "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",\r
1940     "comments": "",\r
1941     "x": 2632.063091278076,\r
1942     "y": 1792.8178290128708,\r
1943     "z": "f47a0348.da1fc",\r
1944     "wires": []\r
1945   },\r
1946   {\r
1947     "id": "4ec4550f.fd160c",\r
1948     "type": "execute",\r
1949     "name": "execute RestApiCallNode Get token",\r
1950     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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\"/>",\r
1951     "comments": "",\r
1952     "outputs": 1,\r
1953     "x": 2250.7854080200195,\r
1954     "y": 1581.254126548767,\r
1955     "z": "f47a0348.da1fc",\r
1956     "wires": [\r
1957       [\r
1958         "d144148d.dc75b8",\r
1959         "6622df6c.28bd"\r
1960       ]\r
1961     ]\r
1962   },\r
1963   {\r
1964     "id": "d144148d.dc75b8",\r
1965     "type": "success",\r
1966     "name": "success",\r
1967     "xml": "<outcome value='success'>\n",\r
1968     "comments": "",\r
1969     "outputs": 1,\r
1970     "x": 2485.7854080200195,\r
1971     "y": 1559.254126548767,\r
1972     "z": "f47a0348.da1fc",\r
1973     "wires": [\r
1974       [\r
1975         "11df681e.1cd4c8"\r
1976       ]\r
1977     ]\r
1978   },\r
1979   {\r
1980     "id": "6622df6c.28bd",\r
1981     "type": "failure",\r
1982     "name": "failure",\r
1983     "xml": "<outcome value='failure'>\n",\r
1984     "comments": "",\r
1985     "outputs": 1,\r
1986     "x": 2478.0354080200195,\r
1987     "y": 1612.8970098495483,\r
1988     "z": "f47a0348.da1fc",\r
1989     "wires": [\r
1990       [\r
1991         "a07b50ef.81562"\r
1992       ]\r
1993     ]\r
1994   },\r
1995   {\r
1996     "id": "11df681e.1cd4c8",\r
1997     "type": "set",\r
1998     "name": "set token-id",\r
1999     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",\r
2000     "comments": "",\r
2001     "x": 2639.7854080200195,\r
2002     "y": 1560.254126548767,\r
2003     "z": "f47a0348.da1fc",\r
2004     "wires": []\r
2005   },\r
2006   {\r
2007     "id": "767b76a3.973bd8",\r
2008     "type": "switchNode",\r
2009     "name": "switch prop.sdncRestApi.token_id",\r
2010     "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n",\r
2011     "comments": "",\r
2012     "outputs": 1,\r
2013     "x": 2257.031126022339,\r
2014     "y": 1686.5312061309814,\r
2015     "z": "f47a0348.da1fc",\r
2016     "wires": [\r
2017       [\r
2018         "647e08e2.0afec8",\r
2019         "4b8f5cd7.3f8294"\r
2020       ]\r
2021     ]\r
2022   },\r
2023   {\r
2024     "id": "4b8f5cd7.3f8294",\r
2025     "type": "other",\r
2026     "name": "other",\r
2027     "xml": "<outcome value='Other'>\n",\r
2028     "comments": "",\r
2029     "outputs": 1,\r
2030     "x": 2477.0312519073486,\r
2031     "y": 1726.031084060669,\r
2032     "z": "f47a0348.da1fc",\r
2033     "wires": [\r
2034       [\r
2035         "10d17cd1.f30ab3"\r
2036       ]\r
2037     ]\r
2038   },\r
2039   {\r
2040     "id": "647e08e2.0afec8",\r
2041     "type": "other",\r
2042     "name": "Null",\r
2043     "xml": "<outcome value=''>\n",\r
2044     "comments": "",\r
2045     "outputs": 1,\r
2046     "x": 2483.031373977661,\r
2047     "y": 1662.5310831069946,\r
2048     "z": "f47a0348.da1fc",\r
2049     "wires": [\r
2050       [\r
2051         "e34fee1b.784d2"\r
2052       ]\r
2053     ]\r
2054   },\r
2055   {\r
2056     "id": "a07b50ef.81562",\r
2057     "type": "block",\r
2058     "name": "block",\r
2059     "xml": "<block>\n",\r
2060     "atomic": "false",\r
2061     "comments": "",\r
2062     "outputs": 1,\r
2063     "x": 2623.0311431884766,\r
2064     "y": 1610.5309600830078,\r
2065     "z": "f47a0348.da1fc",\r
2066     "wires": [\r
2067       []\r
2068     ]\r
2069   },\r
2070   {\r
2071     "id": "e34fee1b.784d2",\r
2072     "type": "execute",\r
2073     "name": "execute RestApiCallNode Delete ethernet Service",\r
2074     "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.actual.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.onap.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",\r
2075     "comments": "",\r
2076     "outputs": 1,\r
2077     "x": 2762.03125,\r
2078     "y": 1659.5311279296875,\r
2079     "z": "f47a0348.da1fc",\r
2080     "wires": [\r
2081       [\r
2082         "f2badd12.3e9c1",\r
2083         "94d88f9c.771f9"\r
2084       ]\r
2085     ]\r
2086   }\r
2087 ]\r