4c24b917dc482ed8e46e32555d89d66fd0a2bf07
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / p2p_eline / GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-delete.json
1 [\r
2     {\r
3         "id": "1f49a1e2.d37fce",\r
4         "type": "save",\r
5         "name": "get connectivity from aai",\r
6         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $tmp.aai.service-instance.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",\r
7         "comments": "",\r
8         "outputs": 1,\r
9         "x": 1823.566650390625,\r
10         "y": 439.99998474121094,\r
11         "z": "d636c085.d73a1",\r
12         "wires": [\r
13             [\r
14                 "1fcd10a0.78eacf",\r
15                 "af997914.ad5bb",\r
16                 "df414e18.a198"\r
17             ]\r
18         ]\r
19     },\r
20     {\r
21         "id": "bf5bb76d.137da8",\r
22         "type": "dgstart",\r
23         "name": "DGSTART",\r
24         "outputs": 1,\r
25         "x": 113.566650390625,\r
26         "y": 191.99998474121094,\r
27         "z": "d636c085.d73a1",\r
28         "wires": [\r
29             [\r
30                 "b3126319.e564d"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "b3126319.e564d",\r
36         "type": "service-logic",\r
37         "name": "GENERIC-RESOURCE-API ${project.version}",\r
38         "module": "GENERIC-RESOURCE-API",\r
39         "version": "${project.version}",\r
40         "comments": "",\r
41         "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
42         "outputs": 1,\r
43         "x": 244.8523406982422,\r
44         "y": 241.23809337615967,\r
45         "z": "d636c085.d73a1",\r
46         "wires": [\r
47             [\r
48                 "21b7d070.b838c"\r
49             ]\r
50         ]\r
51     },\r
52     {\r
53         "id": "21b7d070.b838c",\r
54         "type": "method",\r
55         "name": "method p2p-vnf-topology-operation-p2p-delete",\r
56         "xml": "<method rpc='p2p-vnf-topology-operation-p2p-delete' mode='sync'>\n",\r
57         "comments": "",\r
58         "outputs": 1,\r
59         "x": 247.99526977539062,\r
60         "y": 326.0000171661377,\r
61         "z": "d636c085.d73a1",\r
62         "wires": [\r
63             [\r
64                 "25a34ff7.c51178"\r
65             ]\r
66         ]\r
67     },\r
68     {\r
69         "id": "25a34ff7.c51178",\r
70         "type": "block",\r
71         "name": "block : atomic",\r
72         "xml": "<block atomic=\"true\">",\r
73         "atomic": "true",\r
74         "outputs": 1,\r
75         "x": 397.8046875,\r
76         "y": 455.66664123535156,\r
77         "z": "d636c085.d73a1",\r
78         "wires": [\r
79             [\r
80                 "bc193176.895b3",\r
81                 "9155a503.b6cfd",\r
82                 "73cdc1fc.bb1028"\r
83             ]\r
84         ]\r
85     },\r
86     {\r
87         "id": "bc193176.895b3",\r
88         "type": "returnSuccess",\r
89         "name": "return success",\r
90         "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
91         "comments": "",\r
92         "x": 694.1383056640625,\r
93         "y": 732.5971527099609,\r
94         "z": "d636c085.d73a1",\r
95         "wires": []\r
96     },\r
97     {\r
98         "id": "9155a503.b6cfd",\r
99         "type": "save",\r
100         "name": "get service-instance from aai",\r
101         "xml": "<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\tresource=\"service-instance\"-->\n<!--\tkey='service-instance.service-instance-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.service-instance-id-->\n<!--         AND customer.global-customer-id = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.global-customer-id -->\n<!--         AND service-subscription.service-type = $service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.subscription-service-type'-->\n<!--\tlocal-only=\"false\"-->\n<!--\tforce=\"true\" pfx=\"tmp.aai.service-instance\">-->\n    \n\n<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\"\n\tkey='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id\n         AND customer.global-customer-id = $vnf-topology-operation-input.service-information.global-customer-id \n         AND service-subscription.service-type = $vnf-topology-operation-input.service-information.subscription-service-type'\n\tlocal-only=\"false\"\n\tforce=\"true\" pfx=\"tmp.aai.service-instance\">\n\n\n<!--vnf-topology-operation-input.service-information.service-instance-id-->",\r
102         "comments": "",\r
103         "outputs": 1,\r
104         "x": 745.566650390625,\r
105         "y": 502.99998474121094,\r
106         "z": "d636c085.d73a1",\r
107         "wires": [\r
108             [\r
109                 "943d66a1.464c58",\r
110                 "67ba5020.7d7dc8",\r
111                 "6580f4fc.25d5b4"\r
112             ]\r
113         ]\r
114     },\r
115     {\r
116         "id": "943d66a1.464c58",\r
117         "type": "success",\r
118         "name": "success",\r
119         "xml": "<outcome value='success'>\n",\r
120         "comments": "",\r
121         "outputs": 1,\r
122         "x": 964.566650390625,\r
123         "y": 440.99998474121094,\r
124         "z": "d636c085.d73a1",\r
125         "wires": [\r
126             [\r
127                 "7c9fba64.f3390c"\r
128             ]\r
129         ]\r
130     },\r
131     {\r
132         "id": "67ba5020.7d7dc8",\r
133         "type": "not-found",\r
134         "name": "not-found",\r
135         "xml": "<outcome value='not-found'>\n",\r
136         "comments": "",\r
137         "outputs": 1,\r
138         "x": 974.0576171875,\r
139         "y": 483.5740203857422,\r
140         "z": "d636c085.d73a1",\r
141         "wires": [\r
142             [\r
143                 "cebe0efe.964978"\r
144             ]\r
145         ]\r
146     },\r
147     {\r
148         "id": "6580f4fc.25d5b4",\r
149         "type": "failure",\r
150         "name": "failure",\r
151         "xml": "<outcome value='failure'>\n",\r
152         "comments": "",\r
153         "outputs": 1,\r
154         "x": 962.566650390625,\r
155         "y": 529.9999847412109,\r
156         "z": "d636c085.d73a1",\r
157         "wires": [\r
158             [\r
159                 "cd9120ae.e9db68"\r
160             ]\r
161         ]\r
162     },\r
163     {\r
164         "id": "cebe0efe.964978",\r
165         "type": "returnFailure",\r
166         "name": "return failure",\r
167         "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.l3vpn.pe1_id`\" />\n\n",\r
168         "comments": "",\r
169         "x": 1127.6290283203125,\r
170         "y": 486.85975646972656,\r
171         "z": "d636c085.d73a1",\r
172         "wires": []\r
173     },\r
174     {\r
175         "id": "cd9120ae.e9db68",\r
176         "type": "returnFailure",\r
177         "name": "return failure",\r
178         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
179         "comments": "",\r
180         "x": 1131.566650390625,\r
181         "y": 530.9999847412109,\r
182         "z": "d636c085.d73a1",\r
183         "wires": []\r
184     },\r
185     {\r
186         "id": "7c9fba64.f3390c",\r
187         "type": "for",\r
188         "name": "for each relationship",\r
189         "xml": "<for index='rel-index' start='0' end='`$tmp.aai.service-instance.relationship-list.relationship_length`' >\n",\r
190         "comments": "",\r
191         "outputs": 1,\r
192         "x": 1161.566650390625,\r
193         "y": 436.99998474121094,\r
194         "z": "d636c085.d73a1",\r
195         "wires": [\r
196             [\r
197                 "57fd8c7c.534adc"\r
198             ]\r
199         ]\r
200     },\r
201     {\r
202         "id": "57fd8c7c.534adc",\r
203         "type": "switchNode",\r
204         "name": "switch related-to",\r
205         "xml": "<switch test='`$tmp.aai.service-instance.relationship-list.relationship[$rel-index].related-to`'>\n",\r
206         "comments": "",\r
207         "outputs": 1,\r
208         "x": 1384.900146484375,\r
209         "y": 436.9999237060547,\r
210         "z": "d636c085.d73a1",\r
211         "wires": [\r
212             [\r
213                 "a44a2c9.e47245"\r
214             ]\r
215         ]\r
216     },\r
217     {\r
218         "id": "a44a2c9.e47245",\r
219         "type": "outcome",\r
220         "name": "connectivity",\r
221         "xml": "<outcome value='connectivity'>\n",\r
222         "comments": "",\r
223         "outputs": 1,\r
224         "x": 1585.5667839050293,\r
225         "y": 438.0000057220459,\r
226         "z": "d636c085.d73a1",\r
227         "wires": [\r
228             [\r
229                 "1f49a1e2.d37fce"\r
230             ]\r
231         ]\r
232     },\r
233     {\r
234         "id": "73cdc1fc.bb1028",\r
235         "type": "execute",\r
236         "name": "execute properties",\r
237         "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' />",\r
238         "comments": "",\r
239         "outputs": 1,\r
240         "x": 711.566650390625,\r
241         "y": 450.99998474121094,\r
242         "z": "d636c085.d73a1",\r
243         "wires": [\r
244             []\r
245         ]\r
246     },\r
247     {\r
248         "id": "1fcd10a0.78eacf",\r
249         "type": "success",\r
250         "name": "success",\r
251         "xml": "<outcome value='success'>\n",\r
252         "comments": "",\r
253         "outputs": 1,\r
254         "x": 2031.566650390625,\r
255         "y": 403.99998474121094,\r
256         "z": "d636c085.d73a1",\r
257         "wires": [\r
258             [\r
259                 "f10666fd.9fb61"\r
260             ]\r
261         ]\r
262     },\r
263     {\r
264         "id": "af997914.ad5bb",\r
265         "type": "not-found",\r
266         "name": "not-found",\r
267         "xml": "<outcome value='not-found'>\n",\r
268         "comments": "",\r
269         "outputs": 1,\r
270         "x": 2032.0576171875,\r
271         "y": 449.5740203857422,\r
272         "z": "d636c085.d73a1",\r
273         "wires": [\r
274             [\r
275                 "621b676d.f2f748"\r
276             ]\r
277         ]\r
278     },\r
279     {\r
280         "id": "df414e18.a198",\r
281         "type": "failure",\r
282         "name": "failure",\r
283         "xml": "<outcome value='failure'>\n",\r
284         "comments": "",\r
285         "outputs": 1,\r
286         "x": 2029.566650390625,\r
287         "y": 492.99998474121094,\r
288         "z": "d636c085.d73a1",\r
289         "wires": [\r
290             [\r
291                 "2ffd86d2.d8ed3a"\r
292             ]\r
293         ]\r
294     },\r
295     {\r
296         "id": "621b676d.f2f748",\r
297         "type": "returnFailure",\r
298         "name": "return failure",\r
299         "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.l3vpn.pe1_id`\" />\n\n",\r
300         "comments": "",\r
301         "x": 2194.6290283203125,\r
302         "y": 449.85975646972656,\r
303         "z": "d636c085.d73a1",\r
304         "wires": []\r
305     },\r
306     {\r
307         "id": "2ffd86d2.d8ed3a",\r
308         "type": "returnFailure",\r
309         "name": "return failure",\r
310         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
311         "comments": "",\r
312         "x": 2198.566650390625,\r
313         "y": 493.99998474121094,\r
314         "z": "d636c085.d73a1",\r
315         "wires": []\r
316     },\r
317     {\r
318         "id": "943d4b65.0e3ed8",\r
319         "type": "save",\r
320         "name": "get vpn-binding from aai",\r
321         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\"\n\t    key=\"vpn-binding.vpn-id = $tmp.aai.connectivity.relationship-list.relationship[$cridx].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.vpn-binding\" >\n",\r
322         "comments": "",\r
323         "outputs": 1,\r
324         "x": 2504.566650390625,\r
325         "y": 492.99998474121094,\r
326         "z": "d636c085.d73a1",\r
327         "wires": [\r
328             [\r
329                 "e86769c3.1f7ba8",\r
330                 "52744dfb.375364",\r
331                 "9acb7ba.125dc08"\r
332             ]\r
333         ]\r
334     },\r
335     {\r
336         "id": "daba1f0.a622ce",\r
337         "type": "block",\r
338         "name": "block : atomic",\r
339         "xml": "<block atomic=\"true\">",\r
340         "atomic": "true",\r
341         "outputs": 1,\r
342         "x": 2888.566650390625,\r
343         "y": 492.99998474121094,\r
344         "z": "d636c085.d73a1",\r
345         "wires": [\r
346             [\r
347                 "5e452d03.7532ac",\r
348                 "d53b6e96.aa8aa",\r
349                 "518fe175.a505a8",\r
350                 "df0df658.a887a",\r
351                 "1a0c1f4d.51b981",\r
352                 "67de0813.c55918"\r
353             ]\r
354         ]\r
355     },\r
356     {\r
357         "id": "e86769c3.1f7ba8",\r
358         "type": "success",\r
359         "name": "success",\r
360         "xml": "<outcome value='success'>\n",\r
361         "comments": "",\r
362         "outputs": 1,\r
363         "x": 2715.566650390625,\r
364         "y": 494.99998474121094,\r
365         "z": "d636c085.d73a1",\r
366         "wires": [\r
367             [\r
368                 "daba1f0.a622ce"\r
369             ]\r
370         ]\r
371     },\r
372     {\r
373         "id": "52744dfb.375364",\r
374         "type": "not-found",\r
375         "name": "not-found",\r
376         "xml": "<outcome value='not-found'>\n",\r
377         "comments": "",\r
378         "outputs": 1,\r
379         "x": 2716.0576171875,\r
380         "y": 540.5740203857422,\r
381         "z": "d636c085.d73a1",\r
382         "wires": [\r
383             [\r
384                 "cdeba8e7.bdb358"\r
385             ]\r
386         ]\r
387     },\r
388     {\r
389         "id": "9acb7ba.125dc08",\r
390         "type": "failure",\r
391         "name": "failure",\r
392         "xml": "<outcome value='failure'>\n",\r
393         "comments": "",\r
394         "outputs": 1,\r
395         "x": 2713.566650390625,\r
396         "y": 583.9999847412109,\r
397         "z": "d636c085.d73a1",\r
398         "wires": [\r
399             [\r
400                 "ba8b118c.cfdf4"\r
401             ]\r
402         ]\r
403     },\r
404     {\r
405         "id": "ba8b118c.cfdf4",\r
406         "type": "returnFailure",\r
407         "name": "return failure",\r
408         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
409         "comments": "",\r
410         "x": 2880.566650390625,\r
411         "y": 582.9999847412109,\r
412         "z": "d636c085.d73a1",\r
413         "wires": []\r
414     },\r
415     {\r
416         "id": "cdeba8e7.bdb358",\r
417         "type": "returnFailure",\r
418         "name": "return failure",\r
419         "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.l3vpn.pe1_id`\" />\n\n",\r
420         "comments": "",\r
421         "x": 2878.6290283203125,\r
422         "y": 540.8597564697266,\r
423         "z": "d636c085.d73a1",\r
424         "wires": []\r
425     },\r
426     {\r
427         "id": "f10666fd.9fb61",\r
428         "type": "for",\r
429         "name": "for each relationship",\r
430         "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",\r
431         "comments": "",\r
432         "outputs": 1,\r
433         "x": 2232.566650390625,\r
434         "y": 398.99998474121094,\r
435         "z": "d636c085.d73a1",\r
436         "wires": [\r
437             [\r
438                 "ad67608d.23d4e"\r
439             ]\r
440         ]\r
441     },\r
442     {\r
443         "id": "ad67608d.23d4e",\r
444         "type": "switchNode",\r
445         "name": "switch related-to",\r
446         "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",\r
447         "comments": "",\r
448         "outputs": 1,\r
449         "x": 2437.566650390625,\r
450         "y": 398.99998474121094,\r
451         "z": "d636c085.d73a1",\r
452         "wires": [\r
453             [\r
454                 "3a1dfd90.21e892"\r
455             ]\r
456         ]\r
457     },\r
458     {\r
459         "id": "3a1dfd90.21e892",\r
460         "type": "outcome",\r
461         "name": "vpn-binding",\r
462         "xml": "<outcome value='vpn-binding'>\n",\r
463         "comments": "",\r
464         "outputs": 1,\r
465         "x": 2603.566650390625,\r
466         "y": 398.99998474121094,\r
467         "z": "d636c085.d73a1",\r
468         "wires": [\r
469             [\r
470                 "d3885a9d.410b8"\r
471             ]\r
472         ]\r
473     },\r
474     {\r
475         "id": "d3885a9d.410b8",\r
476         "type": "block",\r
477         "name": "block : atomic",\r
478         "xml": "<block atomic=\"true\">",\r
479         "atomic": "true",\r
480         "outputs": 1,\r
481         "x": 2766.566650390625,\r
482         "y": 398.99998474121094,\r
483         "z": "d636c085.d73a1",\r
484         "wires": [\r
485             [\r
486                 "943d4b65.0e3ed8"\r
487             ]\r
488         ]\r
489     },\r
490     {\r
491         "id": "5e452d03.7532ac",\r
492         "type": "set",\r
493         "name": "set pnf-name",\r
494         "xml": "<set>\n<parameter name='tmp.domain.pnf-name' value=\"`'networkId-providerId-' +\n                                                   $tmp.aai.vpn-binding.access-provider-id + '-clientId-' +\n                                                   $tmp.aai.vpn-binding.access-client-id + '-topologyId-' +\n                                                   $tmp.aai.vpn-binding.access-topology-id + '-nodeId-' +\n                                                   $tmp.aai.vpn-binding.src-access-node-id`\" />\n",\r
495         "comments": "",\r
496         "x": 3103.566650390625,\r
497         "y": 202.99998474121094,\r
498         "z": "d636c085.d73a1",\r
499         "wires": []\r
500     },\r
501     {\r
502         "id": "d53b6e96.aa8aa",\r
503         "type": "get-resource",\r
504         "name": "get-resource src pnf",\r
505         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.domain.pnf-name\"\n        pfx='tmp.aai.source-pnf' local-only='false' >\n\n        <!--AND depth = '0'\"-->\n",\r
506         "comments": "",\r
507         "outputs": 1,\r
508         "x": 3129.566650390625,\r
509         "y": 319.99998474121094,\r
510         "z": "d636c085.d73a1",\r
511         "wires": [\r
512             [\r
513                 "f7dcf778.7bdca8",\r
514                 "b91a9a3e.7f6078",\r
515                 "2aa7aeb.8d97cd2"\r
516             ]\r
517         ]\r
518     },\r
519     {\r
520         "id": "f7dcf778.7bdca8",\r
521         "type": "success",\r
522         "name": "success",\r
523         "xml": "<outcome value='success'>\n",\r
524         "comments": "",\r
525         "outputs": 1,\r
526         "x": 3325.0667724609375,\r
527         "y": 271.99998474121094,\r
528         "z": "d636c085.d73a1",\r
529         "wires": [\r
530             [\r
531                 "859282ad.13c2f8"\r
532             ]\r
533         ]\r
534     },\r
535     {\r
536         "id": "b91a9a3e.7f6078",\r
537         "type": "not-found",\r
538         "name": "not-found",\r
539         "xml": "<outcome value='not-found'>\n",\r
540         "comments": "",\r
541         "outputs": 1,\r
542         "x": 3317.0667724609375,\r
543         "y": 326.99998474121094,\r
544         "z": "d636c085.d73a1",\r
545         "wires": [\r
546             [\r
547                 "6f10df6c.e42f08"\r
548             ]\r
549         ]\r
550     },\r
551     {\r
552         "id": "859282ad.13c2f8",\r
553         "type": "block",\r
554         "name": "block",\r
555         "xml": "<block>\n",\r
556         "atomic": "false",\r
557         "comments": "",\r
558         "outputs": 1,\r
559         "x": 3469.4490966796875,\r
560         "y": 271.65565490722656,\r
561         "z": "d636c085.d73a1",\r
562         "wires": [\r
563             [\r
564                 "a786a7ab.e92098"\r
565             ]\r
566         ]\r
567     },\r
568     {\r
569         "id": "a786a7ab.e92098",\r
570         "type": "for",\r
571         "name": "for each relationship",\r
572         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
573         "comments": "",\r
574         "outputs": 1,\r
575         "x": 3653.566650390625,\r
576         "y": 269.99998474121094,\r
577         "z": "d636c085.d73a1",\r
578         "wires": [\r
579             [\r
580                 "7f3accce.b227c4"\r
581             ]\r
582         ]\r
583     },\r
584     {\r
585         "id": "7f3accce.b227c4",\r
586         "type": "switchNode",\r
587         "name": "switch related-to",\r
588         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
589         "comments": "",\r
590         "outputs": 1,\r
591         "x": 3848.566650390625,\r
592         "y": 269.99998474121094,\r
593         "z": "d636c085.d73a1",\r
594         "wires": [\r
595             [\r
596                 "19e0629f.42ef95"\r
597             ]\r
598         ]\r
599     },\r
600     {\r
601         "id": "2aa7aeb.8d97cd2",\r
602         "type": "other",\r
603         "name": "other",\r
604         "xml": "<outcome value='Other'>\n",\r
605         "comments": "",\r
606         "outputs": 1,\r
607         "x": 3322.0667724609375,\r
608         "y": 383.99998474121094,\r
609         "z": "d636c085.d73a1",\r
610         "wires": [\r
611             [\r
612                 "1ba67878.91583"\r
613             ]\r
614         ]\r
615     },\r
616     {\r
617         "id": "1ba67878.91583",\r
618         "type": "returnFailure",\r
619         "name": "return failure",\r
620         "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
621         "comments": "",\r
622         "x": 3474.0667724609375,\r
623         "y": 384.99998474121094,\r
624         "z": "d636c085.d73a1",\r
625         "wires": []\r
626     },\r
627     {\r
628         "id": "6f10df6c.e42f08",\r
629         "type": "returnFailure",\r
630         "name": "return failure",\r
631         "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
632         "comments": "",\r
633         "x": 3485.0667724609375,\r
634         "y": 327.99998474121094,\r
635         "z": "d636c085.d73a1",\r
636         "wires": []\r
637     },\r
638     {\r
639         "id": "15438b5f.4f2f6d",\r
640         "type": "execute",\r
641         "name": "get esr-thirdparty-sdnc",\r
642         "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.domain.esr-thirdparty-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.domain.esr-thirdparty-sdnc' local-only='false' >",\r
643         "comments": "",\r
644         "outputs": 1,\r
645         "x": 4436.566650390625,\r
646         "y": 286.99998474121094,\r
647         "z": "d636c085.d73a1",\r
648         "wires": [\r
649             [\r
650                 "297b9c32.2d4884",\r
651                 "7eedc05d.0fcd8",\r
652                 "3b0dcd14.e168c2"\r
653             ]\r
654         ]\r
655     },\r
656     {\r
657         "id": "e30d1b98.1b734",\r
658         "type": "block",\r
659         "name": "block : atomic",\r
660         "xml": "<block atomic=\"true\">",\r
661         "atomic": "true",\r
662         "outputs": 1,\r
663         "x": 4230.566650390625,\r
664         "y": 273.99998474121094,\r
665         "z": "d636c085.d73a1",\r
666         "wires": [\r
667             [\r
668                 "58f742d9.00369c",\r
669                 "15438b5f.4f2f6d",\r
670                 "fad5fc58.bb076"\r
671             ]\r
672         ]\r
673     },\r
674     {\r
675         "id": "58f742d9.00369c",\r
676         "type": "set",\r
677         "name": "set esr-thirdparty-sdnc domain id",\r
678         "xml": "<set>\n<parameter name='tmp.domain.esr-thirdparty-id' value=\"`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].relationship-data[0].relationship-value`\" />\n",\r
679         "comments": "",\r
680         "x": 4466.566650390625,\r
681         "y": 234.99998474121094,\r
682         "z": "d636c085.d73a1",\r
683         "wires": []\r
684     },\r
685     {\r
686         "id": "297b9c32.2d4884",\r
687         "type": "success",\r
688         "name": "success",\r
689         "xml": "<outcome value='success'>\n",\r
690         "comments": "",\r
691         "outputs": 1,\r
692         "x": 4646.566650390625,\r
693         "y": 277.99998474121094,\r
694         "z": "d636c085.d73a1",\r
695         "wires": [\r
696             [\r
697                 "c10ae523.198538"\r
698             ]\r
699         ]\r
700     },\r
701     {\r
702         "id": "7eedc05d.0fcd8",\r
703         "type": "not-found",\r
704         "name": "not-found",\r
705         "xml": "<outcome value='not-found'>\n",\r
706         "comments": "",\r
707         "outputs": 1,\r
708         "x": 4638.566650390625,\r
709         "y": 332.99998474121094,\r
710         "z": "d636c085.d73a1",\r
711         "wires": [\r
712             [\r
713                 "dce2b694.d3656"\r
714             ]\r
715         ]\r
716     },\r
717     {\r
718         "id": "3b0dcd14.e168c2",\r
719         "type": "other",\r
720         "name": "other",\r
721         "xml": "<outcome value='Other'>\n",\r
722         "comments": "",\r
723         "outputs": 1,\r
724         "x": 4643.566650390625,\r
725         "y": 389.99998474121094,\r
726         "z": "d636c085.d73a1",\r
727         "wires": [\r
728             [\r
729                 "8ca6611c.54635"\r
730             ]\r
731         ]\r
732     },\r
733     {\r
734         "id": "8ca6611c.54635",\r
735         "type": "returnFailure",\r
736         "name": "return failure",\r
737         "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
738         "comments": "",\r
739         "x": 4795.566650390625,\r
740         "y": 390.99998474121094,\r
741         "z": "d636c085.d73a1",\r
742         "wires": []\r
743     },\r
744     {\r
745         "id": "dce2b694.d3656",\r
746         "type": "returnFailure",\r
747         "name": "return failure",\r
748         "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
749         "comments": "",\r
750         "x": 4806.566650390625,\r
751         "y": 335.99998474121094,\r
752         "z": "d636c085.d73a1",\r
753         "wires": []\r
754     },\r
755     {\r
756         "id": "c10ae523.198538",\r
757         "type": "block",\r
758         "name": "block",\r
759         "xml": "<block>\n",\r
760         "atomic": "false",\r
761         "comments": "",\r
762         "outputs": 1,\r
763         "x": 4790.948974609375,\r
764         "y": 275.65565490722656,\r
765         "z": "d636c085.d73a1",\r
766         "wires": [\r
767             [\r
768                 "e4f0bb63.5bbd98"\r
769             ]\r
770         ]\r
771     },\r
772     {\r
773         "id": "19e0629f.42ef95",\r
774         "type": "outcome",\r
775         "name": "esr-thirdparty-sdnc",\r
776         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
777         "comments": "",\r
778         "outputs": 1,\r
779         "x": 4051.566650390625,\r
780         "y": 273.99998474121094,\r
781         "z": "d636c085.d73a1",\r
782         "wires": [\r
783             [\r
784                 "e30d1b98.1b734"\r
785             ]\r
786         ]\r
787     },\r
788     {\r
789         "id": "e4f0bb63.5bbd98",\r
790         "type": "set",\r
791         "name": "set controller domain data",\r
792         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.url' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.user' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.domain.password' value=\"`$tmp.aai.domain.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n\n\n<!--<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >-->\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-network:networks'`\" />-->\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=\"get\"/>-->\n<!--<parameter name=\"responsePrefix\" value=\"topology\"/>-->\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
793         "comments": "",\r
794         "x": 5005.566650390625,\r
795         "y": 271.99998474121094,\r
796         "z": "d636c085.d73a1",\r
797         "wires": []\r
798     },\r
799     {\r
800         "id": "fad5fc58.bb076",\r
801         "type": "break",\r
802         "name": "break",\r
803         "xml": "<break>\n",\r
804         "comments": "",\r
805         "x": 4386.566650390625,\r
806         "y": 350.99998474121094,\r
807         "z": "d636c085.d73a1",\r
808         "wires": []\r
809     },\r
810     {\r
811         "id": "67de0813.c55918",\r
812         "type": "set",\r
813         "name": "set attachment_param for TN NSSSI deleteion in PNC",\r
814         "xml": "<set>\n<parameter name='slice-instance-id' value='`$tmp.aai.service-instance.service-instance-id`' />\n\n",\r
815         "comments": "",\r
816         "x": 3229.566650390625,\r
817         "y": 492.99998474121094,\r
818         "z": "d636c085.d73a1",\r
819         "wires": []\r
820     },\r
821     {\r
822         "id": "518fe175.a505a8",\r
823         "type": "save",\r
824         "name": "delete connectivity resource in AAI",\r
825         "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n      key='connectivity.connectivity-id = $tmp.aai.connectivity.connectivity-id'>\n",\r
826         "comments": "",\r
827         "outputs": 1,\r
828         "x": 3169.5667724609375,\r
829         "y": 1148.9999237060547,\r
830         "z": "d636c085.d73a1",\r
831         "wires": [\r
832             []\r
833         ]\r
834     },\r
835     {\r
836         "id": "df0df658.a887a",\r
837         "type": "save",\r
838         "name": "delete vpn-binding resource in AAI",\r
839         "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.aai.vpn-binding.vpn-id' >\n",\r
840         "comments": "",\r
841         "outputs": 1,\r
842         "x": 3165.5667724609375,\r
843         "y": 1192.9999237060547,\r
844         "z": "d636c085.d73a1",\r
845         "wires": [\r
846             []\r
847         ]\r
848     },\r
849     {\r
850         "id": "1a0c1f4d.51b981",\r
851         "type": "switchNode",\r
852         "name": "switch connectivity has ethernet service",\r
853         "xml": "<switch test='`$tmp.aai.connectivity.etht-svc-name`'>\n",\r
854         "comments": "",\r
855         "outputs": 1,\r
856         "x": 3188.566650390625,\r
857         "y": 808.9999847412109,\r
858         "z": "d636c085.d73a1",\r
859         "wires": [\r
860             [\r
861                 "e3688e85.c3b",\r
862                 "622706a9.cb2ed8"\r
863             ]\r
864         ]\r
865     },\r
866     {\r
867         "id": "622706a9.cb2ed8",\r
868         "type": "other",\r
869         "name": "other",\r
870         "xml": "<outcome value='Other'>\n",\r
871         "comments": "",\r
872         "outputs": 1,\r
873         "x": 3426.566650390625,\r
874         "y": 791.9999847412109,\r
875         "z": "d636c085.d73a1",\r
876         "wires": [\r
877             [\r
878                 "ab255dec.d38548"\r
879             ]\r
880         ]\r
881     },\r
882     {\r
883         "id": "e3688e85.c3b",\r
884         "type": "outcome",\r
885         "name": "Null",\r
886         "xml": "<outcome value=''>\n",\r
887         "comments": "",\r
888         "outputs": 1,\r
889         "x": 3438.566650390625,\r
890         "y": 858.9999847412109,\r
891         "z": "d636c085.d73a1",\r
892         "wires": [\r
893             []\r
894         ]\r
895     },\r
896     {\r
897         "id": "ab255dec.d38548",\r
898         "type": "execute",\r
899         "name": "execute RestApiCallNode Delete ethernet Service without token",\r
900         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.aai.connectivity.etht-svc-name`\" />\n<!--<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />-->\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-ethernet-service.json'`\" />-->\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name='dirPath' value=\"/opt/onap/sdnc/restconfapi/yang\" />\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
901         "comments": "",\r
902         "outputs": 1,\r
903         "x": 3801.900146484375,\r
904         "y": 781.6000213623047,\r
905         "z": "d636c085.d73a1",\r
906         "wires": [\r
907             [\r
908                 "63e51e3.aa5156",\r
909                 "5038fd41.e83c2c"\r
910             ]\r
911         ]\r
912     },\r
913     {\r
914         "id": "63e51e3.aa5156",\r
915         "type": "failure",\r
916         "name": "failure",\r
917         "xml": "<outcome value='failure'>\n",\r
918         "comments": "",\r
919         "outputs": 1,\r
920         "x": 4145.666748046875,\r
921         "y": 756.6000213623047,\r
922         "z": "d636c085.d73a1",\r
923         "wires": [\r
924             []\r
925         ]\r
926     },\r
927     {\r
928         "id": "5038fd41.e83c2c",\r
929         "type": "success",\r
930         "name": "success",\r
931         "xml": "<outcome value='success'>\n",\r
932         "comments": "",\r
933         "outputs": 1,\r
934         "x": 4146.666961669922,\r
935         "y": 807.5999307632446,\r
936         "z": "d636c085.d73a1",\r
937         "wires": [\r
938             [\r
939                 "3bc9737b.ab47c4"\r
940             ]\r
941         ]\r
942     },\r
943     {\r
944         "id": "3bc9737b.ab47c4",\r
945         "type": "block",\r
946         "name": "block",\r
947         "xml": "<block>\n",\r
948         "atomic": "false",\r
949         "comments": "",\r
950         "outputs": 1,\r
951         "x": 4291.694007873535,\r
952         "y": 805.3454160690308,\r
953         "z": "d636c085.d73a1",\r
954         "wires": [\r
955             [\r
956                 "cda2227f.a4536"\r
957             ]\r
958         ]\r
959     },\r
960     {\r
961         "id": "cda2227f.a4536",\r
962         "type": "execute",\r
963         "name": "execute Terminate Periodic Pull Connection",\r
964         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfdiscovery.PeriodicDiscoveryNode' method='deleteSubscription' >\n<parameter name=\"subscriberId\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url`\" />\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cll-terminate-notification.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/operations/ietf-subscribed-notifications:delete-subscription'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.password`\" />\n<parameter name=\"dirPath\" value=\"/opt/sdnc/restconfapi/yang/notification\" />\n<parameter name=\"format\" value=\"json\" />\n<parameter name=\"httpMethod\" value=\"post\" />\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=x-ik2ps4ikvzupbx0486ft1ebzs7rt85futh9ho6eofy3wjsap7wqktemlqm4bbsmnar3vrtbyrzukbv5itd6m1cftldpjarnyle3sdcqq9hftc4lebz464b5ffxmlbvg9\" />-->\n<parameter name=\"module\" value=\"GENERIC-RESOURCE-API\" />\n<parameter name=\"rpc\" value=\"p2p-vnf-topology-operation-p2p-callbackdg-notification\" />\n<parameter name=\"version\" value=\"`$project.version`\" />\n<parameter name=\"mode\" value=\"sync\" />\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>\n",\r
965         "comments": "",\r
966         "outputs": 1,\r
967         "x": 4563.933837890625,\r
968         "y": 812.566650390625,\r
969         "z": "d636c085.d73a1",\r
970         "wires": [\r
971             []\r
972         ]\r
973     }\r
974 ]