Support individual CLL deletion, and UNI removal from Ethernet Service, and
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / cloud_leased_line / GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-delete-VPNBs.json
1 [
2     {
3         "id": "3822698e.fe6a9e",
4         "type": "switchNode",
5         "name": "switch related-to",
6         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
7         "comments": "",
8         "outputs": 1,
9         "x": 2722.4332885742188,
10         "y": 1488,
11         "z": "ec6164d7.ff9708",
12         "wires": [
13             [
14                 "61592847.4c1088"
15             ]
16         ]
17     },
18     {
19         "id": "61592847.4c1088",
20         "type": "outcome",
21         "name": "esr-thirdparty-sdnc",
22         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
23         "comments": "",
24         "outputs": 1,
25         "x": 2859.4332885742188,
26         "y": 1576,
27         "z": "ec6164d7.ff9708",
28         "wires": [
29             [
30                 "a18c2b6d.4397b"
31             ]
32         ]
33     },
34     {
35         "id": "62ff1995.5919b8",
36         "type": "execute",
37         "name": "get esr-thirdparty-sdnc",
38         "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' >",
39         "comments": "",
40         "outputs": 1,
41         "x": 3244.4332885742188,
42         "y": 1589,
43         "z": "ec6164d7.ff9708",
44         "wires": [
45             [
46                 "93829917.caf878",
47                 "4d145f4b.31c318",
48                 "47a377cc.3a6e08"
49             ]
50         ]
51     },
52     {
53         "id": "a18c2b6d.4397b",
54         "type": "block",
55         "name": "block : atomic",
56         "xml": "<block atomic=\"true\">",
57         "atomic": "true",
58         "outputs": 1,
59         "x": 3038.4332885742188,
60         "y": 1576,
61         "z": "ec6164d7.ff9708",
62         "wires": [
63             [
64                 "f904d45e.838058",
65                 "62ff1995.5919b8",
66                 "1ddc0d65.0a518b"
67             ]
68         ]
69     },
70     {
71         "id": "f904d45e.838058",
72         "type": "set",
73         "name": "set esr-thirdparty-sdnc domain id",
74         "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",
75         "comments": "",
76         "x": 3274.4332885742188,
77         "y": 1537,
78         "z": "ec6164d7.ff9708",
79         "wires": []
80     },
81     {
82         "id": "93829917.caf878",
83         "type": "success",
84         "name": "success",
85         "xml": "<outcome value='success'>\n",
86         "comments": "",
87         "outputs": 1,
88         "x": 3454.4332885742188,
89         "y": 1580,
90         "z": "ec6164d7.ff9708",
91         "wires": [
92             [
93                 "77ca3f11.791e38"
94             ]
95         ]
96     },
97     {
98         "id": "4d145f4b.31c318",
99         "type": "not-found",
100         "name": "not-found",
101         "xml": "<outcome value='not-found'>\n",
102         "comments": "",
103         "outputs": 1,
104         "x": 3446.4332885742188,
105         "y": 1635,
106         "z": "ec6164d7.ff9708",
107         "wires": [
108             [
109                 "40a5f22a.13a82c"
110             ]
111         ]
112     },
113     {
114         "id": "47a377cc.3a6e08",
115         "type": "other",
116         "name": "other",
117         "xml": "<outcome value='Other'>\n",
118         "comments": "",
119         "outputs": 1,
120         "x": 3451.4332885742188,
121         "y": 1692,
122         "z": "ec6164d7.ff9708",
123         "wires": [
124             [
125                 "a269a8ad.5fc788"
126             ]
127         ]
128     },
129     {
130         "id": "a269a8ad.5fc788",
131         "type": "returnFailure",
132         "name": "return failure",
133         "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",
134         "comments": "",
135         "x": 3603.4332885742188,
136         "y": 1693,
137         "z": "ec6164d7.ff9708",
138         "wires": []
139     },
140     {
141         "id": "40a5f22a.13a82c",
142         "type": "returnFailure",
143         "name": "return failure",
144         "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",
145         "comments": "",
146         "x": 3614.4332885742188,
147         "y": 1638,
148         "z": "ec6164d7.ff9708",
149         "wires": []
150     },
151     {
152         "id": "77ca3f11.791e38",
153         "type": "block",
154         "name": "block",
155         "xml": "<block>\n",
156         "atomic": "false",
157         "comments": "",
158         "outputs": 1,
159         "x": 3598.8156127929688,
160         "y": 1577.6556701660156,
161         "z": "ec6164d7.ff9708",
162         "wires": [
163             [
164                 "1f7af3e2.81853c"
165             ]
166         ]
167     },
168     {
169         "id": "1f7af3e2.81853c",
170         "type": "set",
171         "name": "set controller domain data",
172         "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",
173         "comments": "",
174         "x": 3813.4332885742188,
175         "y": 1574,
176         "z": "ec6164d7.ff9708",
177         "wires": []
178     },
179     {
180         "id": "1ddc0d65.0a518b",
181         "type": "break",
182         "name": "break",
183         "xml": "<break>\n",
184         "comments": "",
185         "x": 3194.4332885742188,
186         "y": 1653,
187         "z": "ec6164d7.ff9708",
188         "wires": []
189     },
190     {
191         "id": "e639cfa.29b4c3",
192         "type": "returnFailure",
193         "name": "return failure",
194         "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 delete OTN tunnel rest api\" />\n",
195         "comments": "",
196         "x": 2614.9332885742188,
197         "y": 1775,
198         "z": "ec6164d7.ff9708",
199         "wires": []
200     },
201     {
202         "id": "1f0101e1.8e6866",
203         "type": "block",
204         "name": "block : atomic",
205         "xml": "<block atomic=\"true\">",
206         "atomic": "true",
207         "comments": "",
208         "outputs": 1,
209         "x": 2610.4332885742188,
210         "y": 1840,
211         "z": "ec6164d7.ff9708",
212         "wires": [
213             []
214         ]
215     },
216     {
217         "id": "944f61d3.f96e18",
218         "type": "for",
219         "name": "for each relationship",
220         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",
221         "comments": "",
222         "outputs": 1,
223         "x": 2520.4331665039062,
224         "y": 1561,
225         "z": "ec6164d7.ff9708",
226         "wires": [
227             [
228                 "3822698e.fe6a9e"
229             ]
230         ]
231     },
232     {
233         "id": "63959115.b850c",
234         "type": "set",
235         "name": "set pnf-name",
236         "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",
237         "comments": "",
238         "x": 1968.4330444335938,
239         "y": 1541,
240         "z": "ec6164d7.ff9708",
241         "wires": []
242     },
243     {
244         "id": "a62a741e.9cd9d",
245         "type": "get-resource",
246         "name": "get-resource src pnf",
247         "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",
248         "comments": "",
249         "outputs": 1,
250         "x": 1996.4331665039062,
251         "y": 1611,
252         "z": "ec6164d7.ff9708",
253         "wires": [
254             [
255                 "ca780146.c1231",
256                 "2112ad82.c29caa",
257                 "937e0d43.e6cd18"
258             ]
259         ]
260     },
261     {
262         "id": "ca780146.c1231",
263         "type": "success",
264         "name": "success",
265         "xml": "<outcome value='success'>\n",
266         "comments": "",
267         "outputs": 1,
268         "x": 2191.9332885742188,
269         "y": 1563,
270         "z": "ec6164d7.ff9708",
271         "wires": [
272             [
273                 "7599f2ce.c74a1c"
274             ]
275         ]
276     },
277     {
278         "id": "2112ad82.c29caa",
279         "type": "not-found",
280         "name": "not-found",
281         "xml": "<outcome value='not-found'>\n",
282         "comments": "",
283         "outputs": 1,
284         "x": 2183.9332885742188,
285         "y": 1618,
286         "z": "ec6164d7.ff9708",
287         "wires": [
288             [
289                 "5027d99d.8613"
290             ]
291         ]
292     },
293     {
294         "id": "7599f2ce.c74a1c",
295         "type": "block",
296         "name": "block",
297         "xml": "<block>\n",
298         "atomic": "false",
299         "comments": "",
300         "outputs": 1,
301         "x": 2336.3156127929688,
302         "y": 1562.6556701660156,
303         "z": "ec6164d7.ff9708",
304         "wires": [
305             [
306                 "944f61d3.f96e18"
307             ]
308         ]
309     },
310     {
311         "id": "937e0d43.e6cd18",
312         "type": "other",
313         "name": "other",
314         "xml": "<outcome value='Other'>\n",
315         "comments": "",
316         "outputs": 1,
317         "x": 2188.9332885742188,
318         "y": 1675,
319         "z": "ec6164d7.ff9708",
320         "wires": [
321             [
322                 "76756fa2.c3dc2"
323             ]
324         ]
325     },
326     {
327         "id": "76756fa2.c3dc2",
328         "type": "returnFailure",
329         "name": "return failure",
330         "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",
331         "comments": "",
332         "x": 2340.9332885742188,
333         "y": 1676,
334         "z": "ec6164d7.ff9708",
335         "wires": []
336     },
337     {
338         "id": "5027d99d.8613",
339         "type": "returnFailure",
340         "name": "return failure",
341         "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",
342         "comments": "",
343         "x": 2351.9332885742188,
344         "y": 1619,
345         "z": "ec6164d7.ff9708",
346         "wires": []
347     },
348     {
349         "id": "64d61f83.5de088",
350         "type": "execute",
351         "name": "execute RestApiCallNode Delete OTN tunnel with token",
352         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-src-domain-creation.templatefile`\" />-->\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-te:te/tunnels/tunnel=' + $tmp.aai.vpn-binding.vpn-name`\" />\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=\"responsePrefix\" value=\"otn-oof\"/>\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`\" />",
353         "comments": "",
354         "outputs": 1,
355         "x": 2106.4332885742188,
356         "y": 1805,
357         "z": "ec6164d7.ff9708",
358         "wires": [
359             [
360                 "847a88ab.176f8",
361                 "60c8b991.b738f"
362             ]
363         ]
364     },
365     {
366         "id": "847a88ab.176f8",
367         "type": "failure",
368         "name": "failure",
369         "xml": "<outcome value='failure'>\n",
370         "comments": "",
371         "outputs": 1,
372         "x": 2438.9332885742188,
373         "y": 1775,
374         "z": "ec6164d7.ff9708",
375         "wires": [
376             [
377                 "e639cfa.29b4c3"
378             ]
379         ]
380     },
381     {
382         "id": "60c8b991.b738f",
383         "type": "success",
384         "name": "success",
385         "xml": "<outcome value='success'>\n",
386         "comments": "",
387         "outputs": 1,
388         "x": 2443.9332885742188,
389         "y": 1840,
390         "z": "ec6164d7.ff9708",
391         "wires": [
392             [
393                 "1f0101e1.8e6866"
394             ]
395         ]
396     },
397     {
398         "id": "a3d6fe2.756c3",
399         "type": "save",
400         "name": "delete vpn-binding resource in AAI",
401         "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",
402         "comments": "",
403         "outputs": 1,
404         "x": 2029.4332885742188,
405         "y": 1936,
406         "z": "ec6164d7.ff9708",
407         "wires": [
408             []
409         ]
410     },
411     {
412         "id": "f2fb74bb.786498",
413         "type": "block",
414         "name": "block : atomic",
415         "xml": "<block atomic=\"true\">",
416         "atomic": "true",
417         "outputs": 1,
418         "x": 1738.4332885742188,
419         "y": 1761,
420         "z": "ec6164d7.ff9708",
421         "wires": [
422             [
423                 "63959115.b850c",
424                 "a62a741e.9cd9d",
425                 "64d61f83.5de088",
426                 "a3d6fe2.756c3",
427                 "d781a807.293c48",
428                 "c5cf8874.0fba"
429             ]
430         ]
431     },
432     {
433         "id": "d781a807.293c48",
434         "type": "set",
435         "name": "unset tmp.aai.vpn-binding",
436         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value=\"\" />\n",
437         "comments": "",
438         "x": 2017.6331176757812,
439         "y": 1444,
440         "z": "ec6164d7.ff9708",
441         "wires": []
442     },
443     {
444         "id": "c5cf8874.0fba",
445         "type": "set",
446         "name": "set tmp.aai.vpn-binding",
447         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].`\" />\n",
448         "comments": "",
449         "x": 2009.6331176757812,
450         "y": 1493,
451         "z": "ec6164d7.ff9708",
452         "wires": []
453     },
454     {
455         "id": "ea6bf698.38c53",
456         "type": "comment",
457         "name": "find all OTNs that have srcTtpOtnLayer and increase their bandwidth",
458         "info": "",
459         "comments": "",
460         "x": 939.6170654296875,
461         "y": 1565.5166015625,
462         "z": "ec6164d7.ff9708",
463         "wires": []
464     },
465     {
466         "id": "6975d798.e5c738",
467         "type": "save",
468         "name": "get all-vpn-bindings from aai",
469         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-bindings\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v24/network/vpn-bindings\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.all-vpn-bindings\" >\n",
470         "comments": "",
471         "outputs": 1,
472         "x": 837.6170654296875,
473         "y": 1600.5166015625,
474         "z": "ec6164d7.ff9708",
475         "wires": [
476             [
477                 "c993cc39.ec87d",
478                 "2a52cdc6.c6690a",
479                 "7a224e7c.af9708"
480             ]
481         ]
482     },
483     {
484         "id": "c993cc39.ec87d",
485         "type": "success",
486         "name": "success",
487         "xml": "<outcome value='success'>\n",
488         "comments": "",
489         "outputs": 1,
490         "x": 1042.6170654296875,
491         "y": 1597.5166015625,
492         "z": "ec6164d7.ff9708",
493         "wires": [
494             [
495                 "6326654e.b84854"
496             ]
497         ]
498     },
499     {
500         "id": "2a52cdc6.c6690a",
501         "type": "not-found",
502         "name": "not-found",
503         "xml": "<outcome value='not-found'>\n",
504         "comments": "",
505         "outputs": 1,
506         "x": 1026.1080322265625,
507         "y": 1659.0906372070312,
508         "z": "ec6164d7.ff9708",
509         "wires": [
510             [
511                 "a71bbbd1.f4a8c"
512             ]
513         ]
514     },
515     {
516         "id": "7a224e7c.af9708",
517         "type": "failure",
518         "name": "failure",
519         "xml": "<outcome value='failure'>\n",
520         "comments": "",
521         "outputs": 1,
522         "x": 1023.6170654296875,
523         "y": 1702.5166015625,
524         "z": "ec6164d7.ff9708",
525         "wires": [
526             [
527                 "ec0ca87c.f45398"
528             ]
529         ]
530     },
531     {
532         "id": "6326654e.b84854",
533         "type": "block",
534         "name": "block : atomic",
535         "xml": "<block atomic=\"true\">",
536         "atomic": "true",
537         "outputs": 1,
538         "x": 1210.6173095703125,
539         "y": 1592.5166015625,
540         "z": "ec6164d7.ff9708",
541         "wires": [
542             [
543                 "2bc4a679.cf5d3a"
544             ]
545         ]
546     },
547     {
548         "id": "a71bbbd1.f4a8c",
549         "type": "returnFailure",
550         "name": "return failure",
551         "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",
552         "comments": "",
553         "x": 1188.679443359375,
554         "y": 1659.3763732910156,
555         "z": "ec6164d7.ff9708",
556         "wires": []
557     },
558     {
559         "id": "ec0ca87c.f45398",
560         "type": "returnFailure",
561         "name": "return failure",
562         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
563         "comments": "",
564         "x": 1190.6170654296875,
565         "y": 1701.5166015625,
566         "z": "ec6164d7.ff9708",
567         "wires": []
568     },
569     {
570         "id": "2bc4a679.cf5d3a",
571         "type": "for",
572         "name": "for vpnidx in all-vpn-bindings",
573         "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",
574         "comments": "",
575         "outputs": 1,
576         "x": 836.6173706054688,
577         "y": 1837.5166015625,
578         "z": "ec6164d7.ff9708",
579         "wires": [
580             [
581                 "7c4d0989.9bb298"
582             ]
583         ]
584     },
585     {
586         "id": "7c4d0989.9bb298",
587         "type": "block",
588         "name": "block : atomic",
589         "xml": "<block atomic='true'>",
590         "atomic": "true",
591         "comments": "",
592         "outputs": 1,
593         "x": 1066.6171264648438,
594         "y": 1825.5166015625,
595         "z": "ec6164d7.ff9708",
596         "wires": [
597             [
598                 "bd37314.c09c9d"
599             ]
600         ]
601     },
602     {
603         "id": "bd37314.c09c9d",
604         "type": "switchNode",
605         "name": "switch ops-note is srcTtpOtnLayer",
606         "xml": "<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.srcTtpOtnLayer `\">\n\n",
607         "comments": "",
608         "outputs": 1,
609         "x": 1302.4335327148438,
610         "y": 1824.68310546875,
611         "z": "ec6164d7.ff9708",
612         "wires": [
613             [
614                 "d2ea08ce.4f3608",
615                 "40b454d5.b7ece4"
616             ]
617         ]
618     },
619     {
620         "id": "d2ea08ce.4f3608",
621         "type": "outcomeTrue",
622         "name": "true",
623         "xml": "<outcome value='true'>\n",
624         "comments": "",
625         "outputs": 1,
626         "x": 1532.4335327148438,
627         "y": 1819.6826171875,
628         "z": "ec6164d7.ff9708",
629         "wires": [
630             [
631                 "f2fb74bb.786498"
632             ]
633         ]
634     },
635     {
636         "id": "40b454d5.b7ece4",
637         "type": "outcomeFalse",
638         "name": "false",
639         "xml": "<outcome value='false'>\n",
640         "comments": "",
641         "outputs": 1,
642         "x": 1543.4335327148438,
643         "y": 1862.6826171875,
644         "z": "ec6164d7.ff9708",
645         "wires": [
646             []
647         ]
648     },
649     {
650         "id": "3e5224b.295e95c",
651         "type": "set",
652         "name": "set srcTtp OTN layer",
653         "xml": "<set>\n<!--<parameter name='tmp.srcTtpOtnLayer' value=\"`$tmp.pce-src-node + '-' + -->\n<!--                                             $param-prefix-domainA[$param-prefix-domainA_length -2] + '-' +-->\n<!--                                             $tmp.source.ttp-id`\" />-->\n\n<parameter name='tmp.srcTtpOtnLayer' value=\"`$tmp.pce-src-node`\" />\n\n\n",
654         "comments": "",
655         "x": 1161.1166381835938,
656         "y": 618.3998718261719,
657         "z": "ec6164d7.ff9708",
658         "wires": []
659     },
660     {
661         "id": "2f96b0a0.fe469",
662         "type": "set",
663         "name": "unset tmp.aai.all-vpn-bindings",
664         "xml": "<set>\n<parameter name='tmp.aai.all-vpn-bindings.' value='' />\n",
665         "comments": "",
666         "x": 816.3167724609375,
667         "y": 1526.5166015625,
668         "z": "ec6164d7.ff9708",
669         "wires": []
670     },
671     {
672         "id": "8609633e.a887d8",
673         "type": "block",
674         "name": "block",
675         "xml": "<block>\n",
676         "atomic": "false",
677         "comments": "",
678         "outputs": 1,
679         "x": 580.1166381835938,
680         "y": 1556.35009765625,
681         "z": "ec6164d7.ff9708",
682         "wires": [
683             [
684                 "2f96b0a0.fe469",
685                 "6975d798.e5c738"
686             ]
687         ]
688     },
689     {
690         "id": "483fdff.aacb22",
691         "type": "switchNode",
692         "name": "switch provider-id domainA",
693         "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].provider-id == $param-prefix-domainA-pnfName[2]`'>\n",
694         "comments": "",
695         "outputs": 1,
696         "x": 1506.1166381835938,
697         "y": 480.3998718261719,
698         "z": "ec6164d7.ff9708",
699         "wires": [
700             [
701                 "c84682e7.370ef"
702             ]
703         ]
704     },
705     {
706         "id": "dda9e843.2f3f18",
707         "type": "for",
708         "name": "for netwidx..allNetworksList_length",
709         "xml": "<for index='netwidx' start='0' end='`$allNetworksList.network-resource_length`' >",
710         "comments": "",
711         "outputs": 1,
712         "x": 1213.1166381835938,
713         "y": 474.3998718261719,
714         "z": "ec6164d7.ff9708",
715         "wires": [
716             [
717                 "483fdff.aacb22"
718             ]
719         ]
720     },
721     {
722         "id": "d616c0c5.fad828",
723         "type": "not-found",
724         "name": "not-found",
725         "xml": "<outcome value='not-found'>\n",
726         "comments": "",
727         "outputs": 1,
728         "x": 1468.1166381835938,
729         "y": 431.3998718261719,
730         "z": "ec6164d7.ff9708",
731         "wires": [
732             []
733         ]
734     },
735     {
736         "id": "a2a08a1a.858e78",
737         "type": "set",
738         "name": "unset parameters",
739         "xml": "<set>\n<parameter name='tmp.pce-src-node.' value='' />\n",
740         "comments": "",
741         "x": 1157.1166381835938,
742         "y": 526.3998718261719,
743         "z": "ec6164d7.ff9708",
744         "wires": []
745     },
746     {
747         "id": "201e5d50.a3833a",
748         "type": "set",
749         "name": "set tmp.pce-src-node",
750         "xml": "<set>\n<!--<parameter name='tmp.pce-src-node' value=\"`$param-prefix-domainA-pnfName[0] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[1] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[2] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[3] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[4] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[5] + '-' +-->\n<!--                                                   1 + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[7] + '-' +-->\n<!--                                                   $param-prefix-domainA-pnfName[8]`\" />-->\n\n<parameter name='tmp.pce-src-node' value=\"`$param-prefix-domainA-pnfName[0] + '-' +\n                                                   $param-prefix-domainA-pnfName[1] + '-' +\n                                                   $param-prefix-domainA-pnfName[2] + '-' +\n                                                   $param-prefix-domainA-pnfName[3] + '-' +\n                                                   $param-prefix-domainA-pnfName[4] + '-' +\n                                                   $param-prefix-domainA-pnfName[5] + '-' +\n                                                   $otnTopoIdSrc + '-' +\n                                                   $param-prefix-domainA-pnfName[7] + '-' +\n                                                   $param-prefix-domainA-pnfName[8]`\" />",
751         "comments": "",
752         "x": 1165.1166381835938,
753         "y": 571.3998718261719,
754         "z": "ec6164d7.ff9708",
755         "wires": []
756     },
757     {
758         "id": "6eecdb5f.76c2ac",
759         "type": "set",
760         "name": "unset otnTopoIdSrc",
761         "xml": "<set>\n<parameter name='otnTopoIdSrc' value='' />\n",
762         "comments": "",
763         "x": 1162.1166381835938,
764         "y": 424.3998718261719,
765         "z": "ec6164d7.ff9708",
766         "wires": []
767     },
768     {
769         "id": "c84682e7.370ef",
770         "type": "outcomeTrue",
771         "name": "true",
772         "xml": "<outcome value='true'>\n",
773         "comments": "",
774         "outputs": 1,
775         "x": 1415.1166381835938,
776         "y": 548.3998718261719,
777         "z": "ec6164d7.ff9708",
778         "wires": [
779             [
780                 "ab0f32b5.16cbf8"
781             ]
782         ]
783     },
784     {
785         "id": "ab0f32b5.16cbf8",
786         "type": "switchNode",
787         "name": "switch te-topo-id",
788         "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].te-topo-id != $param-prefix-domainA-pnfName[6]`'>\n",
789         "comments": "",
790         "outputs": 1,
791         "x": 1600.1166381835938,
792         "y": 547.3998718261719,
793         "z": "ec6164d7.ff9708",
794         "wires": [
795             [
796                 "51342e13.198088"
797             ]
798         ]
799     },
800     {
801         "id": "3e0e37bf.5a574",
802         "type": "block",
803         "name": "block : atomic",
804         "xml": "<block atomic='true'>",
805         "atomic": "true",
806         "comments": "",
807         "outputs": 1,
808         "x": 857.1166381835938,
809         "y": 446.3998718261719,
810         "z": "ec6164d7.ff9708",
811         "wires": [
812             [
813                 "a4e53180.2dfc9",
814                 "128161ed.802f86",
815                 "a2a08a1a.858e78",
816                 "201e5d50.a3833a",
817                 "3e5224b.295e95c",
818                 "dda9e843.2f3f18",
819                 "9fcccd6f.e18a48"
820             ]
821         ]
822     },
823     {
824         "id": "b0a1b203.5dc08",
825         "type": "comment",
826         "name": "The following section is to find srcTtp OTN layer (its long name)",
827         "info": "The following section is to find srcTtp OTN layer (its long name)",
828         "comments": "",
829         "x": 842.1166381835938,
830         "y": 380.3998718261719,
831         "z": "ec6164d7.ff9708",
832         "wires": []
833     },
834     {
835         "id": "128161ed.802f86",
836         "type": "get-resource",
837         "name": "get-resource network-resources-list",
838         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-resources\"\n\t    key=\"selflink = 'https://aai.onap:8443/aai/v24/network/network-resources?depth=0'\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"allNetworksList\" >",
839         "comments": "",
840         "outputs": 1,
841         "x": 1221.1166381835938,
842         "y": 367.3998718261719,
843         "z": "ec6164d7.ff9708",
844         "wires": [
845             [
846                 "6219ad91.7b0784",
847                 "4229f1dc.fc23b8",
848                 "d616c0c5.fad828"
849             ]
850         ]
851     },
852     {
853         "id": "6219ad91.7b0784",
854         "type": "success",
855         "name": "success",
856         "xml": "<outcome value='success'>\n",
857         "comments": "",
858         "outputs": 1,
859         "x": 1457.1166381835938,
860         "y": 350.3998718261719,
861         "z": "ec6164d7.ff9708",
862         "wires": [
863             []
864         ]
865     },
866     {
867         "id": "4229f1dc.fc23b8",
868         "type": "other",
869         "name": "other",
870         "xml": "<outcome value='Other'>\n",
871         "comments": "",
872         "outputs": 1,
873         "x": 1454.1166381835938,
874         "y": 391.3998718261719,
875         "z": "ec6164d7.ff9708",
876         "wires": [
877             []
878         ]
879     },
880     {
881         "id": "a4e53180.2dfc9",
882         "type": "set",
883         "name": "unset parameters",
884         "xml": "<set>\n<parameter name='allNetworksList.' value='' />\n",
885         "comments": "",
886         "x": 1170.1166381835938,
887         "y": 324.3998718261719,
888         "z": "ec6164d7.ff9708",
889         "wires": []
890     },
891     {
892         "id": "51342e13.198088",
893         "type": "outcomeTrue",
894         "name": "true",
895         "xml": "<outcome value='true'>\n",
896         "comments": "",
897         "outputs": 1,
898         "x": 1792.1166381835938,
899         "y": 550.3998718261719,
900         "z": "ec6164d7.ff9708",
901         "wires": [
902             [
903                 "6b44ef76.186218"
904             ]
905         ]
906     },
907     {
908         "id": "6b44ef76.186218",
909         "type": "set",
910         "name": "set otnTopoIdSrc",
911         "xml": "<set>\n<parameter name='otnTopoIdSrc' value='`$allNetworksList.network-resource[$netwidx].te-topo-id`' />\n",
912         "comments": "",
913         "x": 1964.1166381835938,
914         "y": 546.3998718261719,
915         "z": "ec6164d7.ff9708",
916         "wires": []
917     },
918     {
919         "id": "425448fb.cf113",
920         "type": "dgstart",
921         "name": "DGSTART",
922         "outputs": 1,
923         "x": 145,
924         "y": 115,
925         "z": "ec6164d7.ff9708",
926         "wires": [
927             [
928                 "99235c0c.841188"
929             ]
930         ]
931     },
932     {
933         "id": "99235c0c.841188",
934         "type": "service-logic",
935         "name": "GENERIC-RESOURCE-API ${project.version}",
936         "module": "GENERIC-RESOURCE-API",
937         "version": "${project.version}",
938         "comments": "",
939         "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}'>",
940         "outputs": 1,
941         "x": 429.2856903076172,
942         "y": 176.23810863494873,
943         "z": "ec6164d7.ff9708",
944         "wires": [
945             [
946                 "d962c511.69b1b8"
947             ]
948         ]
949     },
950     {
951         "id": "d962c511.69b1b8",
952         "type": "method",
953         "name": "method cll-vnf-topology-operation-cll-delete-VPNBs",
954         "xml": "<method rpc='cll-vnf-topology-operation-cll-delete-VPNBs' mode='sync'>\n",
955         "comments": "",
956         "outputs": 1,
957         "x": 435.42860412597656,
958         "y": 261.0000305175781,
959         "z": "ec6164d7.ff9708",
960         "wires": [
961             [
962                 "3e0e37bf.5a574"
963             ]
964         ]
965     },
966     {
967         "id": "9fcccd6f.e18a48",
968         "type": "for",
969         "name": "for each relationship of middle-man-conn",
970         "xml": "<for index='rel-index' start='0' end='`$middle-man-conn.relationship-list.relationship_length`' >\n",
971         "comments": "",
972         "outputs": 1,
973         "x": 806.63330078125,
974         "y": 876.0833740234375,
975         "z": "ec6164d7.ff9708",
976         "wires": [
977             [
978                 "fe8b9bc1.266868"
979             ]
980         ]
981     },
982     {
983         "id": "fe8b9bc1.266868",
984         "type": "switchNode",
985         "name": "switch related-to",
986         "xml": "<switch test='`$middle-man-conn.relationship-list.relationship[$rel-index].related-to`'>\n",
987         "comments": "",
988         "outputs": 1,
989         "x": 1106.967041015625,
990         "y": 871.0833129882812,
991         "z": "ec6164d7.ff9708",
992         "wires": [
993             [
994                 "a50ce6d7.7af75"
995             ]
996         ]
997     },
998     {
999         "id": "a50ce6d7.7af75",
1000         "type": "outcome",
1001         "name": "connectivity",
1002         "xml": "<outcome value='connectivity'>\n",
1003         "comments": "",
1004         "outputs": 1,
1005         "x": 1286.6336669921875,
1006         "y": 871.0834045410156,
1007         "z": "ec6164d7.ff9708",
1008         "wires": [
1009             [
1010                 "878c81c6.c1cf08"
1011             ]
1012         ]
1013     },
1014     {
1015         "id": "878c81c6.c1cf08",
1016         "type": "save",
1017         "name": "get connectivity from aai",
1018         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"connectivity\"\n\t    key=\"connectivity.connectivity-id = $middle-man-conn.relationship-list.relationship[$rel-index].relationship-data[0].relationship-value\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai.connectivity\" >\n",
1019         "comments": "",
1020         "outputs": 1,
1021         "x": 1486.633544921875,
1022         "y": 871.0833740234375,
1023         "z": "ec6164d7.ff9708",
1024         "wires": [
1025             [
1026                 "e5ce5572.0e9be",
1027                 "220d084e.f1aa2",
1028                 "8b2d18ec.0684a8"
1029             ]
1030         ]
1031     },
1032     {
1033         "id": "8b2d18ec.0684a8",
1034         "type": "not-found",
1035         "name": "not-found",
1036         "xml": "<outcome value='not-found'>\n",
1037         "comments": "",
1038         "outputs": 1,
1039         "x": 1717.683349609375,
1040         "y": 821.8831787109375,
1041         "z": "ec6164d7.ff9708",
1042         "wires": [
1043             []
1044         ]
1045     },
1046     {
1047         "id": "220d084e.f1aa2",
1048         "type": "failure",
1049         "name": "failure",
1050         "xml": "<outcome value='failure'>\n",
1051         "comments": "",
1052         "outputs": 1,
1053         "x": 1715.1923828125,
1054         "y": 865.3091430664062,
1055         "z": "ec6164d7.ff9708",
1056         "wires": [
1057             []
1058         ]
1059     },
1060     {
1061         "id": "e5ce5572.0e9be",
1062         "type": "success",
1063         "name": "success",
1064         "xml": "<outcome value='success'>\n",
1065         "comments": "",
1066         "outputs": 1,
1067         "x": 1693.63330078125,
1068         "y": 921.0833740234375,
1069         "z": "ec6164d7.ff9708",
1070         "wires": [
1071             [
1072                 "adf18092.0df43"
1073             ]
1074         ]
1075     },
1076     {
1077         "id": "adf18092.0df43",
1078         "type": "block",
1079         "name": "block",
1080         "xml": "<block>\n",
1081         "atomic": "false",
1082         "comments": "",
1083         "outputs": 1,
1084         "x": 695.866943359375,
1085         "y": 1018.2830810546875,
1086         "z": "ec6164d7.ff9708",
1087         "wires": [
1088             [
1089                 "841267bf.5a37d8"
1090             ]
1091         ]
1092     },
1093     {
1094         "id": "841267bf.5a37d8",
1095         "type": "for",
1096         "name": "for each relationship",
1097         "xml": "<for silentFailure='true' index='cridx' start='0' end='`$tmp.aai.connectivity.relationship-list.relationship_length`' >\n\n",
1098         "comments": "",
1099         "outputs": 1,
1100         "x": 869.866943359375,
1101         "y": 1020.2830810546875,
1102         "z": "ec6164d7.ff9708",
1103         "wires": [
1104             [
1105                 "83e51395.23054"
1106             ]
1107         ]
1108     },
1109     {
1110         "id": "83e51395.23054",
1111         "type": "switchNode",
1112         "name": "switch related-to",
1113         "xml": "<switch test='`$tmp.aai.connectivity.relationship-list.relationship[$cridx].related-to`'>\n",
1114         "comments": "",
1115         "outputs": 1,
1116         "x": 1066.866943359375,
1117         "y": 1034.2830810546875,
1118         "z": "ec6164d7.ff9708",
1119         "wires": [
1120             [
1121                 "20d4597f.7ec4fe"
1122             ]
1123         ]
1124     },
1125     {
1126         "id": "20d4597f.7ec4fe",
1127         "type": "outcome",
1128         "name": "vpn-binding",
1129         "xml": "<outcome value='vpn-binding'>\n",
1130         "comments": "",
1131         "outputs": 1,
1132         "x": 1234.866943359375,
1133         "y": 1027.2830810546875,
1134         "z": "ec6164d7.ff9708",
1135         "wires": [
1136             [
1137                 "962e1e07.ed3e1"
1138             ]
1139         ]
1140     },
1141     {
1142         "id": "962e1e07.ed3e1",
1143         "type": "block",
1144         "name": "block : atomic",
1145         "xml": "<block atomic=\"true\">",
1146         "atomic": "true",
1147         "outputs": 1,
1148         "x": 1397.866943359375,
1149         "y": 1027.2830810546875,
1150         "z": "ec6164d7.ff9708",
1151         "wires": [
1152             [
1153                 "b3331932.59a4e"
1154             ]
1155         ]
1156     },
1157     {
1158         "id": "b3331932.59a4e",
1159         "type": "save",
1160         "name": "get vpn-binding from aai",
1161         "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",
1162         "comments": "",
1163         "outputs": 1,
1164         "x": 1073.866943359375,
1165         "y": 1167.2830810546875,
1166         "z": "ec6164d7.ff9708",
1167         "wires": [
1168             [
1169                 "1d1a3767.b90801",
1170                 "1205c3c9.a1fe14",
1171                 "ac824193.0ceb4"
1172             ]
1173         ]
1174     },
1175     {
1176         "id": "1d1a3767.b90801",
1177         "type": "success",
1178         "name": "success",
1179         "xml": "<outcome value='success'>\n",
1180         "comments": "",
1181         "outputs": 1,
1182         "x": 1284.866943359375,
1183         "y": 1169.2830810546875,
1184         "z": "ec6164d7.ff9708",
1185         "wires": [
1186             [
1187                 "ce3bd26f.86a788"
1188             ]
1189         ]
1190     },
1191     {
1192         "id": "1205c3c9.a1fe14",
1193         "type": "not-found",
1194         "name": "not-found",
1195         "xml": "<outcome value='not-found'>\n",
1196         "comments": "",
1197         "outputs": 1,
1198         "x": 1285.35791015625,
1199         "y": 1214.8571166992188,
1200         "z": "ec6164d7.ff9708",
1201         "wires": [
1202             [
1203                 "8c52b3a4.bb9928"
1204             ]
1205         ]
1206     },
1207     {
1208         "id": "ac824193.0ceb4",
1209         "type": "failure",
1210         "name": "failure",
1211         "xml": "<outcome value='failure'>\n",
1212         "comments": "",
1213         "outputs": 1,
1214         "x": 1282.866943359375,
1215         "y": 1258.2830810546875,
1216         "z": "ec6164d7.ff9708",
1217         "wires": [
1218             [
1219                 "b8796894.76af28"
1220             ]
1221         ]
1222     },
1223     {
1224         "id": "8c52b3a4.bb9928",
1225         "type": "returnFailure",
1226         "name": "return failure",
1227         "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",
1228         "comments": "",
1229         "x": 1447.9293212890625,
1230         "y": 1215.1428527832031,
1231         "z": "ec6164d7.ff9708",
1232         "wires": []
1233     },
1234     {
1235         "id": "b8796894.76af28",
1236         "type": "returnFailure",
1237         "name": "return failure",
1238         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
1239         "comments": "",
1240         "x": 1449.866943359375,
1241         "y": 1257.2830810546875,
1242         "z": "ec6164d7.ff9708",
1243         "wires": []
1244     },
1245     {
1246         "id": "3d324826.e49518",
1247         "type": "block",
1248         "name": "block : atomic",
1249         "xml": "<block atomic=\"true\">",
1250         "atomic": "true",
1251         "outputs": 1,
1252         "x": 2047.866943359375,
1253         "y": 1097.2830810546875,
1254         "z": "ec6164d7.ff9708",
1255         "wires": [
1256             [
1257                 "cd0aab83.f02f78",
1258                 "8058933f.2691e",
1259                 "f481dab1.2bbd68",
1260                 "119a4845.874928",
1261                 "5f76b8d0.e5e58"
1262             ]
1263         ]
1264     },
1265     {
1266         "id": "cd0aab83.f02f78",
1267         "type": "set",
1268         "name": "set pnf-name",
1269         "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",
1270         "comments": "",
1271         "x": 2269.866943359375,
1272         "y": 815.2830810546875,
1273         "z": "ec6164d7.ff9708",
1274         "wires": []
1275     },
1276     {
1277         "id": "8058933f.2691e",
1278         "type": "get-resource",
1279         "name": "get-resource src pnf",
1280         "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",
1281         "comments": "",
1282         "outputs": 1,
1283         "x": 2295.866943359375,
1284         "y": 932.2830810546875,
1285         "z": "ec6164d7.ff9708",
1286         "wires": [
1287             [
1288                 "d483622c.685ad",
1289                 "b6de022b.29ab58",
1290                 "e510b446.5dd1e8"
1291             ]
1292         ]
1293     },
1294     {
1295         "id": "f481dab1.2bbd68",
1296         "type": "execute",
1297         "name": "execute RestApiCallNode Delete OTN tunnel with token",
1298         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<!--<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ts-otn-src-domain-creation.templatefile`\" />-->\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.domain.url + '/restconf/data/ietf-te:te/tunnels/tunnel=' + $tmp.aai.vpn-binding.vpn-name`\" />\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=\"responsePrefix\" value=\"otn-oof\"/>\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`\" />",
1299         "comments": "",
1300         "outputs": 1,
1301         "x": 2398.866943359375,
1302         "y": 1199.2830810546875,
1303         "z": "ec6164d7.ff9708",
1304         "wires": [
1305             [
1306                 "422a3d0e.0ac58c",
1307                 "dc94e365.153108"
1308             ]
1309         ]
1310     },
1311     {
1312         "id": "d483622c.685ad",
1313         "type": "success",
1314         "name": "success",
1315         "xml": "<outcome value='success'>\n",
1316         "comments": "",
1317         "outputs": 1,
1318         "x": 2491.3670654296875,
1319         "y": 884.2830810546875,
1320         "z": "ec6164d7.ff9708",
1321         "wires": [
1322             [
1323                 "d09e0056.1e082"
1324             ]
1325         ]
1326     },
1327     {
1328         "id": "b6de022b.29ab58",
1329         "type": "not-found",
1330         "name": "not-found",
1331         "xml": "<outcome value='not-found'>\n",
1332         "comments": "",
1333         "outputs": 1,
1334         "x": 2483.3670654296875,
1335         "y": 939.2830810546875,
1336         "z": "ec6164d7.ff9708",
1337         "wires": [
1338             [
1339                 "9a521350.d6234"
1340             ]
1341         ]
1342     },
1343     {
1344         "id": "d09e0056.1e082",
1345         "type": "block",
1346         "name": "block",
1347         "xml": "<block>\n",
1348         "atomic": "false",
1349         "comments": "",
1350         "outputs": 1,
1351         "x": 2625.749267578125,
1352         "y": 878.9388427734375,
1353         "z": "ec6164d7.ff9708",
1354         "wires": [
1355             [
1356                 "f0956103.d162e8"
1357             ]
1358         ]
1359     },
1360     {
1361         "id": "e510b446.5dd1e8",
1362         "type": "other",
1363         "name": "other",
1364         "xml": "<outcome value='Other'>\n",
1365         "comments": "",
1366         "outputs": 1,
1367         "x": 2488.3670654296875,
1368         "y": 996.2830810546875,
1369         "z": "ec6164d7.ff9708",
1370         "wires": [
1371             [
1372                 "e16f9ab0.64cc3"
1373             ]
1374         ]
1375     },
1376     {
1377         "id": "e16f9ab0.64cc3",
1378         "type": "returnFailure",
1379         "name": "return failure",
1380         "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",
1381         "comments": "",
1382         "x": 2640.3670654296875,
1383         "y": 997.2830810546875,
1384         "z": "ec6164d7.ff9708",
1385         "wires": []
1386     },
1387     {
1388         "id": "9a521350.d6234",
1389         "type": "returnFailure",
1390         "name": "return failure",
1391         "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",
1392         "comments": "",
1393         "x": 2651.3670654296875,
1394         "y": 940.2830810546875,
1395         "z": "ec6164d7.ff9708",
1396         "wires": []
1397     },
1398     {
1399         "id": "f0956103.d162e8",
1400         "type": "for",
1401         "name": "for each relationship",
1402         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",
1403         "comments": "",
1404         "outputs": 1,
1405         "x": 2812.866455078125,
1406         "y": 880.2830810546875,
1407         "z": "ec6164d7.ff9708",
1408         "wires": [
1409             [
1410                 "af503a6c.61f9f8"
1411             ]
1412         ]
1413     },
1414     {
1415         "id": "af503a6c.61f9f8",
1416         "type": "switchNode",
1417         "name": "switch related-to",
1418         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",
1419         "comments": "",
1420         "outputs": 1,
1421         "x": 3053.866455078125,
1422         "y": 871.2830810546875,
1423         "z": "ec6164d7.ff9708",
1424         "wires": [
1425             [
1426                 "b61fba47.4726f8"
1427             ]
1428         ]
1429     },
1430     {
1431         "id": "422a3d0e.0ac58c",
1432         "type": "failure",
1433         "name": "failure",
1434         "xml": "<outcome value='failure'>\n",
1435         "comments": "",
1436         "outputs": 1,
1437         "x": 2706.366455078125,
1438         "y": 1224.2830810546875,
1439         "z": "ec6164d7.ff9708",
1440         "wires": [
1441             [
1442                 "dec1fd1f.efb3a"
1443             ]
1444         ]
1445     },
1446     {
1447         "id": "dc94e365.153108",
1448         "type": "success",
1449         "name": "success",
1450         "xml": "<outcome value='success'>\n",
1451         "comments": "",
1452         "outputs": 1,
1453         "x": 2707.366455078125,
1454         "y": 1169.2830810546875,
1455         "z": "ec6164d7.ff9708",
1456         "wires": [
1457             [
1458                 "52cd10d1.f921d8"
1459             ]
1460         ]
1461     },
1462     {
1463         "id": "dec1fd1f.efb3a",
1464         "type": "returnFailure",
1465         "name": "return failure",
1466         "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 delete OTN tunnel rest api\" />\n",
1467         "comments": "",
1468         "x": 2878.366455078125,
1469         "y": 1222.2830810546875,
1470         "z": "ec6164d7.ff9708",
1471         "wires": []
1472     },
1473     {
1474         "id": "52cd10d1.f921d8",
1475         "type": "block",
1476         "name": "block : atomic",
1477         "xml": "<block atomic=\"true\">",
1478         "atomic": "true",
1479         "comments": "",
1480         "outputs": 1,
1481         "x": 2874.866455078125,
1482         "y": 1171.2830810546875,
1483         "z": "ec6164d7.ff9708",
1484         "wires": [
1485             []
1486         ]
1487     },
1488     {
1489         "id": "a1fe3dae.a2d208",
1490         "type": "block",
1491         "name": "block : atomic",
1492         "xml": "<block atomic=\"true\">",
1493         "atomic": "true",
1494         "outputs": 1,
1495         "x": 3410.8662109375,
1496         "y": 820.2830810546875,
1497         "z": "ec6164d7.ff9708",
1498         "wires": [
1499             [
1500                 "e7174ef6.88aea",
1501                 "bfd51d3e.a21cb8",
1502                 "b48cd5e6.4e4b88"
1503             ]
1504         ]
1505     },
1506     {
1507         "id": "b61fba47.4726f8",
1508         "type": "outcome",
1509         "name": "esr-thirdparty-sdnc",
1510         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",
1511         "comments": "",
1512         "outputs": 1,
1513         "x": 3259.866455078125,
1514         "y": 868.2830810546875,
1515         "z": "ec6164d7.ff9708",
1516         "wires": [
1517             [
1518                 "a1fe3dae.a2d208"
1519             ]
1520         ]
1521     },
1522     {
1523         "id": "bfd51d3e.a21cb8",
1524         "type": "execute",
1525         "name": "get esr-thirdparty-sdnc",
1526         "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' >",
1527         "comments": "",
1528         "outputs": 1,
1529         "x": 3616.8662109375,
1530         "y": 833.2830810546875,
1531         "z": "ec6164d7.ff9708",
1532         "wires": [
1533             [
1534                 "cb1cf6fc.9ef978",
1535                 "7d19de07.9d61",
1536                 "2bc4bb18.4f1464"
1537             ]
1538         ]
1539     },
1540     {
1541         "id": "e7174ef6.88aea",
1542         "type": "set",
1543         "name": "set esr-thirdparty-sdnc domain id",
1544         "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",
1545         "comments": "",
1546         "x": 3646.8662109375,
1547         "y": 781.2830810546875,
1548         "z": "ec6164d7.ff9708",
1549         "wires": []
1550     },
1551     {
1552         "id": "cb1cf6fc.9ef978",
1553         "type": "success",
1554         "name": "success",
1555         "xml": "<outcome value='success'>\n",
1556         "comments": "",
1557         "outputs": 1,
1558         "x": 3826.8662109375,
1559         "y": 824.2830810546875,
1560         "z": "ec6164d7.ff9708",
1561         "wires": [
1562             [
1563                 "a4768784.394af8"
1564             ]
1565         ]
1566     },
1567     {
1568         "id": "7d19de07.9d61",
1569         "type": "not-found",
1570         "name": "not-found",
1571         "xml": "<outcome value='not-found'>\n",
1572         "comments": "",
1573         "outputs": 1,
1574         "x": 3818.8662109375,
1575         "y": 879.2830810546875,
1576         "z": "ec6164d7.ff9708",
1577         "wires": [
1578             [
1579                 "4478591a.9ef568"
1580             ]
1581         ]
1582     },
1583     {
1584         "id": "2bc4bb18.4f1464",
1585         "type": "other",
1586         "name": "other",
1587         "xml": "<outcome value='Other'>\n",
1588         "comments": "",
1589         "outputs": 1,
1590         "x": 3823.8662109375,
1591         "y": 936.2830810546875,
1592         "z": "ec6164d7.ff9708",
1593         "wires": [
1594             [
1595                 "23b7e106.ef601e"
1596             ]
1597         ]
1598     },
1599     {
1600         "id": "b48cd5e6.4e4b88",
1601         "type": "break",
1602         "name": "break",
1603         "xml": "<break>\n",
1604         "comments": "",
1605         "x": 3566.8662109375,
1606         "y": 897.2830810546875,
1607         "z": "ec6164d7.ff9708",
1608         "wires": []
1609     },
1610     {
1611         "id": "23b7e106.ef601e",
1612         "type": "returnFailure",
1613         "name": "return failure",
1614         "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",
1615         "comments": "",
1616         "x": 3975.8662109375,
1617         "y": 937.2830810546875,
1618         "z": "ec6164d7.ff9708",
1619         "wires": []
1620     },
1621     {
1622         "id": "4478591a.9ef568",
1623         "type": "returnFailure",
1624         "name": "return failure",
1625         "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",
1626         "comments": "",
1627         "x": 3986.8662109375,
1628         "y": 882.2830810546875,
1629         "z": "ec6164d7.ff9708",
1630         "wires": []
1631     },
1632     {
1633         "id": "a4768784.394af8",
1634         "type": "block",
1635         "name": "block",
1636         "xml": "<block>\n",
1637         "atomic": "false",
1638         "comments": "",
1639         "outputs": 1,
1640         "x": 3971.24853515625,
1641         "y": 821.9387512207031,
1642         "z": "ec6164d7.ff9708",
1643         "wires": [
1644             [
1645                 "98ec4d86.407d4"
1646             ]
1647         ]
1648     },
1649     {
1650         "id": "98ec4d86.407d4",
1651         "type": "set",
1652         "name": "set controller domain data",
1653         "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",
1654         "comments": "",
1655         "x": 4185.8662109375,
1656         "y": 818.2830810546875,
1657         "z": "ec6164d7.ff9708",
1658         "wires": []
1659     },
1660     {
1661         "id": "371b3631.1fe46a",
1662         "type": "switchNode",
1663         "name": "switch ops-note is srcTtpOtnLayer",
1664         "xml": "<switch test=\"`$tmp.aai.vpn-binding.ops-note == $tmp.srcTtpOtnLayer `\">\n\n",
1665         "comments": "",
1666         "outputs": 1,
1667         "x": 1660.0999755859375,
1668         "y": 1107.2833251953125,
1669         "z": "ec6164d7.ff9708",
1670         "wires": [
1671             [
1672                 "5dda0eba.cba228",
1673                 "cd15371c.43ee48"
1674             ]
1675         ]
1676     },
1677     {
1678         "id": "5dda0eba.cba228",
1679         "type": "outcomeTrue",
1680         "name": "true",
1681         "xml": "<outcome value='true'>\n",
1682         "comments": "",
1683         "outputs": 1,
1684         "x": 1890.0999755859375,
1685         "y": 1102.2828369140625,
1686         "z": "ec6164d7.ff9708",
1687         "wires": [
1688             [
1689                 "3d324826.e49518"
1690             ]
1691         ]
1692     },
1693     {
1694         "id": "cd15371c.43ee48",
1695         "type": "outcomeFalse",
1696         "name": "false",
1697         "xml": "<outcome value='false'>\n",
1698         "comments": "",
1699         "outputs": 1,
1700         "x": 1901.0999755859375,
1701         "y": 1145.2828369140625,
1702         "z": "ec6164d7.ff9708",
1703         "wires": [
1704             []
1705         ]
1706     },
1707     {
1708         "id": "ce3bd26f.86a788",
1709         "type": "block",
1710         "name": "block : atomic",
1711         "xml": "<block atomic='true'>",
1712         "atomic": "true",
1713         "comments": "",
1714         "outputs": 1,
1715         "x": 1440.0999755859375,
1716         "y": 1164.683349609375,
1717         "z": "ec6164d7.ff9708",
1718         "wires": [
1719             [
1720                 "371b3631.1fe46a"
1721             ]
1722         ]
1723     },
1724     {
1725         "id": "119a4845.874928",
1726         "type": "save",
1727         "name": "delete vpn-binding resource in AAI",
1728         "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",
1729         "comments": "",
1730         "outputs": 1,
1731         "x": 2345.816650390625,
1732         "y": 1314.4833984375,
1733         "z": "ec6164d7.ff9708",
1734         "wires": [
1735             []
1736         ]
1737     },
1738     {
1739         "id": "5f76b8d0.e5e58",
1740         "type": "set",
1741         "name": "set Underlay OTN Tunnel Name tmp.underlayOTN",
1742         "xml": "<set>\n<parameter name='tmp.underlayOTN' value=\"`$tmp.aai.vpn-binding.vpn-name`\" />\n",
1743         "comments": "",
1744         "x": 2348.0330810546875,
1745         "y": 750.2833251953125,
1746         "z": "ec6164d7.ff9708",
1747         "wires": []
1748     }
1749 ]