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 [\r
2     {\r
3         "id": "a88af18.67fae9",\r
4         "type": "switchNode",\r
5         "name": "switch related-to",\r
6         "xml": "<switch test='`$tmp.aai.source-pnf.relationship-list.relationship[$spvidx].related-to`'>\n",\r
7         "comments": "",\r
8         "outputs": 1,\r
9         "x": 2806.316619873047,\r
10         "y": 668.88330078125,\r
11         "z": "347519d8.005516",\r
12         "wires": [\r
13             [\r
14                 "d17bb726.fa65e8"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "d17bb726.fa65e8",\r
20         "type": "outcome",\r
21         "name": "esr-thirdparty-sdnc",\r
22         "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
23         "comments": "",\r
24         "outputs": 1,\r
25         "x": 2943.316619873047,\r
26         "y": 756.88330078125,\r
27         "z": "347519d8.005516",\r
28         "wires": [\r
29             [\r
30                 "141e9731.53d429"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "5a075e5f.de06b8",\r
36         "type": "execute",\r
37         "name": "get esr-thirdparty-sdnc",\r
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' >",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 3328.316619873047,\r
42         "y": 769.88330078125,\r
43         "z": "347519d8.005516",\r
44         "wires": [\r
45             [\r
46                 "bfab05fb.6c1fd",\r
47                 "66b97fa3.09fba8",\r
48                 "a61f3fb8.28c2b"\r
49             ]\r
50         ]\r
51     },\r
52     {\r
53         "id": "141e9731.53d429",\r
54         "type": "block",\r
55         "name": "block : atomic",\r
56         "xml": "<block atomic=\"true\">",\r
57         "atomic": "true",\r
58         "outputs": 1,\r
59         "x": 3122.316619873047,\r
60         "y": 756.88330078125,\r
61         "z": "347519d8.005516",\r
62         "wires": [\r
63             [\r
64                 "6ba56bd3.970cc4",\r
65                 "5a075e5f.de06b8",\r
66                 "f743ac29.02b56"\r
67             ]\r
68         ]\r
69     },\r
70     {\r
71         "id": "6ba56bd3.970cc4",\r
72         "type": "set",\r
73         "name": "set esr-thirdparty-sdnc domain id",\r
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",\r
75         "comments": "",\r
76         "x": 3358.316619873047,\r
77         "y": 717.88330078125,\r
78         "z": "347519d8.005516",\r
79         "wires": []\r
80     },\r
81     {\r
82         "id": "bfab05fb.6c1fd",\r
83         "type": "success",\r
84         "name": "success",\r
85         "xml": "<outcome value='success'>\n",\r
86         "comments": "",\r
87         "outputs": 1,\r
88         "x": 3538.316619873047,\r
89         "y": 760.88330078125,\r
90         "z": "347519d8.005516",\r
91         "wires": [\r
92             [\r
93                 "9395b4f9.f11e08"\r
94             ]\r
95         ]\r
96     },\r
97     {\r
98         "id": "66b97fa3.09fba8",\r
99         "type": "not-found",\r
100         "name": "not-found",\r
101         "xml": "<outcome value='not-found'>\n",\r
102         "comments": "",\r
103         "outputs": 1,\r
104         "x": 3530.316619873047,\r
105         "y": 815.88330078125,\r
106         "z": "347519d8.005516",\r
107         "wires": [\r
108             [\r
109                 "6a113c41.2b7f84"\r
110             ]\r
111         ]\r
112     },\r
113     {\r
114         "id": "a61f3fb8.28c2b",\r
115         "type": "other",\r
116         "name": "other",\r
117         "xml": "<outcome value='Other'>\n",\r
118         "comments": "",\r
119         "outputs": 1,\r
120         "x": 3535.316619873047,\r
121         "y": 872.88330078125,\r
122         "z": "347519d8.005516",\r
123         "wires": [\r
124             [\r
125                 "ae24d388.debf2"\r
126             ]\r
127         ]\r
128     },\r
129     {\r
130         "id": "ae24d388.debf2",\r
131         "type": "returnFailure",\r
132         "name": "return failure",\r
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",\r
134         "comments": "",\r
135         "x": 3687.316619873047,\r
136         "y": 873.88330078125,\r
137         "z": "347519d8.005516",\r
138         "wires": []\r
139     },\r
140     {\r
141         "id": "6a113c41.2b7f84",\r
142         "type": "returnFailure",\r
143         "name": "return failure",\r
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",\r
145         "comments": "",\r
146         "x": 3698.316619873047,\r
147         "y": 818.88330078125,\r
148         "z": "347519d8.005516",\r
149         "wires": []\r
150     },\r
151     {\r
152         "id": "9395b4f9.f11e08",\r
153         "type": "block",\r
154         "name": "block",\r
155         "xml": "<block>\n",\r
156         "atomic": "false",\r
157         "comments": "",\r
158         "outputs": 1,\r
159         "x": 3682.698944091797,\r
160         "y": 758.5389709472656,\r
161         "z": "347519d8.005516",\r
162         "wires": [\r
163             [\r
164                 "e30efe2.36b498"\r
165             ]\r
166         ]\r
167     },\r
168     {\r
169         "id": "e30efe2.36b498",\r
170         "type": "set",\r
171         "name": "set controller domain data",\r
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",\r
173         "comments": "",\r
174         "x": 3897.316619873047,\r
175         "y": 754.88330078125,\r
176         "z": "347519d8.005516",\r
177         "wires": []\r
178     },\r
179     {\r
180         "id": "f743ac29.02b56",\r
181         "type": "break",\r
182         "name": "break",\r
183         "xml": "<break>\n",\r
184         "comments": "",\r
185         "x": 3278.316619873047,\r
186         "y": 833.88330078125,\r
187         "z": "347519d8.005516",\r
188         "wires": []\r
189     },\r
190     {\r
191         "id": "98d7bf6.4dfe7c",\r
192         "type": "returnFailure",\r
193         "name": "return failure",\r
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",\r
195         "comments": "",\r
196         "x": 2698.816619873047,\r
197         "y": 955.88330078125,\r
198         "z": "347519d8.005516",\r
199         "wires": []\r
200     },\r
201     {\r
202         "id": "61820fcc.882e",\r
203         "type": "block",\r
204         "name": "block : atomic",\r
205         "xml": "<block atomic=\"true\">",\r
206         "atomic": "true",\r
207         "comments": "",\r
208         "outputs": 1,\r
209         "x": 2694.316619873047,\r
210         "y": 1020.88330078125,\r
211         "z": "347519d8.005516",\r
212         "wires": [\r
213             []\r
214         ]\r
215     },\r
216     {\r
217         "id": "5b3a4445.ce6224",\r
218         "type": "for",\r
219         "name": "for each relationship",\r
220         "xml": "<for silentFailure='true' index='spvidx' start='0' end='`$tmp.aai.source-pnf.relationship-list.relationship_length`' >\n",\r
221         "comments": "",\r
222         "outputs": 1,\r
223         "x": 2604.3164978027344,\r
224         "y": 741.88330078125,\r
225         "z": "347519d8.005516",\r
226         "wires": [\r
227             [\r
228                 "a88af18.67fae9"\r
229             ]\r
230         ]\r
231     },\r
232     {\r
233         "id": "132ce225.b79cae",\r
234         "type": "set",\r
235         "name": "set pnf-name",\r
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",\r
237         "comments": "",\r
238         "x": 2052.316375732422,\r
239         "y": 721.88330078125,\r
240         "z": "347519d8.005516",\r
241         "wires": []\r
242     },\r
243     {\r
244         "id": "5cdb5a7a.54733c",\r
245         "type": "get-resource",\r
246         "name": "get-resource src pnf",\r
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",\r
248         "comments": "",\r
249         "outputs": 1,\r
250         "x": 2080.3164978027344,\r
251         "y": 791.88330078125,\r
252         "z": "347519d8.005516",\r
253         "wires": [\r
254             [\r
255                 "6c0f168f.8aad68",\r
256                 "cd12f0b4.568798",\r
257                 "80b1b093.b4332"\r
258             ]\r
259         ]\r
260     },\r
261     {\r
262         "id": "6c0f168f.8aad68",\r
263         "type": "success",\r
264         "name": "success",\r
265         "xml": "<outcome value='success'>\n",\r
266         "comments": "",\r
267         "outputs": 1,\r
268         "x": 2275.816619873047,\r
269         "y": 743.88330078125,\r
270         "z": "347519d8.005516",\r
271         "wires": [\r
272             [\r
273                 "99130a65.69efe8"\r
274             ]\r
275         ]\r
276     },\r
277     {\r
278         "id": "cd12f0b4.568798",\r
279         "type": "not-found",\r
280         "name": "not-found",\r
281         "xml": "<outcome value='not-found'>\n",\r
282         "comments": "",\r
283         "outputs": 1,\r
284         "x": 2267.816619873047,\r
285         "y": 798.88330078125,\r
286         "z": "347519d8.005516",\r
287         "wires": [\r
288             [\r
289                 "80ce6dda.3e5e5"\r
290             ]\r
291         ]\r
292     },\r
293     {\r
294         "id": "99130a65.69efe8",\r
295         "type": "block",\r
296         "name": "block",\r
297         "xml": "<block>\n",\r
298         "atomic": "false",\r
299         "comments": "",\r
300         "outputs": 1,\r
301         "x": 2420.198944091797,\r
302         "y": 743.5389709472656,\r
303         "z": "347519d8.005516",\r
304         "wires": [\r
305             [\r
306                 "5b3a4445.ce6224"\r
307             ]\r
308         ]\r
309     },\r
310     {\r
311         "id": "80b1b093.b4332",\r
312         "type": "other",\r
313         "name": "other",\r
314         "xml": "<outcome value='Other'>\n",\r
315         "comments": "",\r
316         "outputs": 1,\r
317         "x": 2272.816619873047,\r
318         "y": 855.88330078125,\r
319         "z": "347519d8.005516",\r
320         "wires": [\r
321             [\r
322                 "b4d035fe.9cf0b"\r
323             ]\r
324         ]\r
325     },\r
326     {\r
327         "id": "b4d035fe.9cf0b",\r
328         "type": "returnFailure",\r
329         "name": "return failure",\r
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",\r
331         "comments": "",\r
332         "x": 2424.816619873047,\r
333         "y": 856.88330078125,\r
334         "z": "347519d8.005516",\r
335         "wires": []\r
336     },\r
337     {\r
338         "id": "80ce6dda.3e5e5",\r
339         "type": "returnFailure",\r
340         "name": "return failure",\r
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",\r
342         "comments": "",\r
343         "x": 2435.816619873047,\r
344         "y": 799.88330078125,\r
345         "z": "347519d8.005516",\r
346         "wires": []\r
347     },\r
348     {\r
349         "id": "cbce5afd.0d149",\r
350         "type": "execute",\r
351         "name": "execute RestApiCallNode Delete OTN tunnel with token",\r
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`\" />",\r
353         "comments": "",\r
354         "outputs": 1,\r
355         "x": 2190.316619873047,\r
356         "y": 985.88330078125,\r
357         "z": "347519d8.005516",\r
358         "wires": [\r
359             [\r
360                 "38dfa115.008496",\r
361                 "f31653a0.9143e8"\r
362             ]\r
363         ]\r
364     },\r
365     {\r
366         "id": "38dfa115.008496",\r
367         "type": "failure",\r
368         "name": "failure",\r
369         "xml": "<outcome value='failure'>\n",\r
370         "comments": "",\r
371         "outputs": 1,\r
372         "x": 2522.816619873047,\r
373         "y": 955.88330078125,\r
374         "z": "347519d8.005516",\r
375         "wires": [\r
376             [\r
377                 "98d7bf6.4dfe7c"\r
378             ]\r
379         ]\r
380     },\r
381     {\r
382         "id": "f31653a0.9143e8",\r
383         "type": "success",\r
384         "name": "success",\r
385         "xml": "<outcome value='success'>\n",\r
386         "comments": "",\r
387         "outputs": 1,\r
388         "x": 2527.816619873047,\r
389         "y": 1020.88330078125,\r
390         "z": "347519d8.005516",\r
391         "wires": [\r
392             [\r
393                 "61820fcc.882e"\r
394             ]\r
395         ]\r
396     },\r
397     {\r
398         "id": "30af1423.cd4b6c",\r
399         "type": "save",\r
400         "name": "delete vpn-binding resource in AAI",\r
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",\r
402         "comments": "",\r
403         "outputs": 1,\r
404         "x": 2113.316619873047,\r
405         "y": 1116.88330078125,\r
406         "z": "347519d8.005516",\r
407         "wires": [\r
408             []\r
409         ]\r
410     },\r
411     {\r
412         "id": "d0b44cbe.a16a5",\r
413         "type": "block",\r
414         "name": "block : atomic",\r
415         "xml": "<block atomic=\"true\">",\r
416         "atomic": "true",\r
417         "outputs": 1,\r
418         "x": 1822.3166198730469,\r
419         "y": 941.88330078125,\r
420         "z": "347519d8.005516",\r
421         "wires": [\r
422             [\r
423                 "132ce225.b79cae",\r
424                 "5cdb5a7a.54733c",\r
425                 "cbce5afd.0d149",\r
426                 "30af1423.cd4b6c",\r
427                 "b097652b.150d7",\r
428                 "e258ce61.c84d28"\r
429             ]\r
430         ]\r
431     },\r
432     {\r
433         "id": "b097652b.150d7",\r
434         "type": "set",\r
435         "name": "unset tmp.aai.vpn-binding",\r
436         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value=\"\" />\n",\r
437         "comments": "",\r
438         "x": 2101.5164489746094,\r
439         "y": 624.88330078125,\r
440         "z": "347519d8.005516",\r
441         "wires": []\r
442     },\r
443     {\r
444         "id": "e258ce61.c84d28",\r
445         "type": "set",\r
446         "name": "set tmp.aai.vpn-binding",\r
447         "xml": "<set>\n<parameter name='tmp.aai.vpn-binding.' value=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].`\" />\n",\r
448         "comments": "",\r
449         "x": 2093.5164489746094,\r
450         "y": 673.88330078125,\r
451         "z": "347519d8.005516",\r
452         "wires": []\r
453     },\r
454     {\r
455         "id": "3c24f82.dfab088",\r
456         "type": "comment",\r
457         "name": "find all OTNs that have srcTtpOtnLayer and increase their bandwidth",\r
458         "info": "",\r
459         "comments": "",\r
460         "x": 1023.5003967285156,\r
461         "y": 746.39990234375,\r
462         "z": "347519d8.005516",\r
463         "wires": []\r
464     },\r
465     {\r
466         "id": "570ad10f.ad92f8",\r
467         "type": "save",\r
468         "name": "get all-vpn-bindings from aai",\r
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",\r
470         "comments": "",\r
471         "outputs": 1,\r
472         "x": 921.5003967285156,\r
473         "y": 781.39990234375,\r
474         "z": "347519d8.005516",\r
475         "wires": [\r
476             [\r
477                 "f405b75.e7a9fc8",\r
478                 "4e9de096.f468b",\r
479                 "9757d76.73f10a8"\r
480             ]\r
481         ]\r
482     },\r
483     {\r
484         "id": "f405b75.e7a9fc8",\r
485         "type": "success",\r
486         "name": "success",\r
487         "xml": "<outcome value='success'>\n",\r
488         "comments": "",\r
489         "outputs": 1,\r
490         "x": 1126.5003967285156,\r
491         "y": 778.39990234375,\r
492         "z": "347519d8.005516",\r
493         "wires": [\r
494             [\r
495                 "5de56166.922018"\r
496             ]\r
497         ]\r
498     },\r
499     {\r
500         "id": "4e9de096.f468b",\r
501         "type": "not-found",\r
502         "name": "not-found",\r
503         "xml": "<outcome value='not-found'>\n",\r
504         "comments": "",\r
505         "outputs": 1,\r
506         "x": 1109.9913635253906,\r
507         "y": 839.9739379882812,\r
508         "z": "347519d8.005516",\r
509         "wires": [\r
510             [\r
511                 "a1062ebe.b15808"\r
512             ]\r
513         ]\r
514     },\r
515     {\r
516         "id": "9757d76.73f10a8",\r
517         "type": "failure",\r
518         "name": "failure",\r
519         "xml": "<outcome value='failure'>\n",\r
520         "comments": "",\r
521         "outputs": 1,\r
522         "x": 1107.5003967285156,\r
523         "y": 883.39990234375,\r
524         "z": "347519d8.005516",\r
525         "wires": [\r
526             [\r
527                 "10e74f8b.3fb4a8"\r
528             ]\r
529         ]\r
530     },\r
531     {\r
532         "id": "5de56166.922018",\r
533         "type": "block",\r
534         "name": "block : atomic",\r
535         "xml": "<block atomic=\"true\">",\r
536         "atomic": "true",\r
537         "outputs": 1,\r
538         "x": 1294.5006408691406,\r
539         "y": 773.39990234375,\r
540         "z": "347519d8.005516",\r
541         "wires": [\r
542             [\r
543                 "fdc657b.398c8a8"\r
544             ]\r
545         ]\r
546     },\r
547     {\r
548         "id": "a1062ebe.b15808",\r
549         "type": "returnFailure",\r
550         "name": "return failure",\r
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",\r
552         "comments": "",\r
553         "x": 1272.5627746582031,\r
554         "y": 840.2596740722656,\r
555         "z": "347519d8.005516",\r
556         "wires": []\r
557     },\r
558     {\r
559         "id": "10e74f8b.3fb4a8",\r
560         "type": "returnFailure",\r
561         "name": "return failure",\r
562         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",\r
563         "comments": "",\r
564         "x": 1274.5003967285156,\r
565         "y": 882.39990234375,\r
566         "z": "347519d8.005516",\r
567         "wires": []\r
568     },\r
569     {\r
570         "id": "fdc657b.398c8a8",\r
571         "type": "for",\r
572         "name": "for vpnidx in all-vpn-bindings",\r
573         "xml": "<for index='vpnbidx' start='0' end='`$tmp.aai.all-vpn-bindings.vpn-binding_length`' >\n",\r
574         "comments": "",\r
575         "outputs": 1,\r
576         "x": 920.5007019042969,\r
577         "y": 1018.39990234375,\r
578         "z": "347519d8.005516",\r
579         "wires": [\r
580             [\r
581                 "5a8644f1.6f626c"\r
582             ]\r
583         ]\r
584     },\r
585     {\r
586         "id": "5a8644f1.6f626c",\r
587         "type": "block",\r
588         "name": "block : atomic",\r
589         "xml": "<block atomic='true'>",\r
590         "atomic": "true",\r
591         "comments": "",\r
592         "outputs": 1,\r
593         "x": 1150.5004577636719,\r
594         "y": 1006.39990234375,\r
595         "z": "347519d8.005516",\r
596         "wires": [\r
597             [\r
598                 "71241a5.135ba64"\r
599             ]\r
600         ]\r
601     },\r
602     {\r
603         "id": "71241a5.135ba64",\r
604         "type": "switchNode",\r
605         "name": "switch ops-note is srcTtpOtnLayer",\r
606         "xml": "<switch test=\"`$tmp.aai.all-vpn-bindings.vpn-binding[$vpnbidx].ops-note == $tmp.srcTtpOtnLayer `\">\n\n",\r
607         "comments": "",\r
608         "outputs": 1,\r
609         "x": 1386.3168640136719,\r
610         "y": 1005.56640625,\r
611         "z": "347519d8.005516",\r
612         "wires": [\r
613             [\r
614                 "4253fbea.3b4874",\r
615                 "6cef3566.dab14c"\r
616             ]\r
617         ]\r
618     },\r
619     {\r
620         "id": "4253fbea.3b4874",\r
621         "type": "outcomeTrue",\r
622         "name": "true",\r
623         "xml": "<outcome value='true'>\n",\r
624         "comments": "",\r
625         "outputs": 1,\r
626         "x": 1616.3168640136719,\r
627         "y": 1000.56591796875,\r
628         "z": "347519d8.005516",\r
629         "wires": [\r
630             [\r
631                 "d0b44cbe.a16a5"\r
632             ]\r
633         ]\r
634     },\r
635     {\r
636         "id": "6cef3566.dab14c",\r
637         "type": "outcomeFalse",\r
638         "name": "false",\r
639         "xml": "<outcome value='false'>\n",\r
640         "comments": "",\r
641         "outputs": 1,\r
642         "x": 1627.3168640136719,\r
643         "y": 1043.56591796875,\r
644         "z": "347519d8.005516",\r
645         "wires": [\r
646             []\r
647         ]\r
648     },\r
649     {\r
650         "id": "3070392b.33f8c6",\r
651         "type": "set",\r
652         "name": "set srcTtp OTN layer",\r
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",\r
654         "comments": "",\r
655         "x": 1170.9999694824219,\r
656         "y": 593.283203125,\r
657         "z": "347519d8.005516",\r
658         "wires": []\r
659     },\r
660     {\r
661         "id": "45e829a.7cbd958",\r
662         "type": "set",\r
663         "name": "unset tmp.aai.all-vpn-bindings",\r
664         "xml": "<set>\n<parameter name='tmp.aai.all-vpn-bindings.' value='' />\n",\r
665         "comments": "",\r
666         "x": 900.2001037597656,\r
667         "y": 707.39990234375,\r
668         "z": "347519d8.005516",\r
669         "wires": []\r
670     },\r
671     {\r
672         "id": "304ed1d7.4f9efe",\r
673         "type": "block",\r
674         "name": "block",\r
675         "xml": "<block>\n",\r
676         "atomic": "false",\r
677         "comments": "",\r
678         "outputs": 1,\r
679         "x": 663.9999694824219,\r
680         "y": 737.2333984375,\r
681         "z": "347519d8.005516",\r
682         "wires": [\r
683             [\r
684                 "45e829a.7cbd958",\r
685                 "570ad10f.ad92f8"\r
686             ]\r
687         ]\r
688     },\r
689     {\r
690         "id": "7df4e9d5.2bc648",\r
691         "type": "switchNode",\r
692         "name": "switch provider-id domainA",\r
693         "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].provider-id == $param-prefix-domainA-pnfName[2]`'>\n",\r
694         "comments": "",\r
695         "outputs": 1,\r
696         "x": 1515.9999694824219,\r
697         "y": 455.283203125,\r
698         "z": "347519d8.005516",\r
699         "wires": [\r
700             [\r
701                 "a43c232c.85575"\r
702             ]\r
703         ]\r
704     },\r
705     {\r
706         "id": "561ea33d.a2ffb4",\r
707         "type": "for",\r
708         "name": "for netwidx..allNetworksList_length",\r
709         "xml": "<for index='netwidx' start='0' end='`$allNetworksList.network-resource_length`' >",\r
710         "comments": "",\r
711         "outputs": 1,\r
712         "x": 1222.9999694824219,\r
713         "y": 449.283203125,\r
714         "z": "347519d8.005516",\r
715         "wires": [\r
716             [\r
717                 "7df4e9d5.2bc648"\r
718             ]\r
719         ]\r
720     },\r
721     {\r
722         "id": "2e515252.bebdb6",\r
723         "type": "not-found",\r
724         "name": "not-found",\r
725         "xml": "<outcome value='not-found'>\n",\r
726         "comments": "",\r
727         "outputs": 1,\r
728         "x": 1477.9999694824219,\r
729         "y": 406.283203125,\r
730         "z": "347519d8.005516",\r
731         "wires": [\r
732             []\r
733         ]\r
734     },\r
735     {\r
736         "id": "36a9a792.12dcb8",\r
737         "type": "set",\r
738         "name": "unset parameters",\r
739         "xml": "<set>\n<parameter name='tmp.pce-src-node.' value='' />\n",\r
740         "comments": "",\r
741         "x": 1166.9999694824219,\r
742         "y": 501.283203125,\r
743         "z": "347519d8.005516",\r
744         "wires": []\r
745     },\r
746     {\r
747         "id": "2a69687a.5611c",\r
748         "type": "set",\r
749         "name": "set tmp.pce-src-node",\r
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]`\" />",\r
751         "comments": "",\r
752         "x": 1174.9999694824219,\r
753         "y": 546.283203125,\r
754         "z": "347519d8.005516",\r
755         "wires": []\r
756     },\r
757     {\r
758         "id": "f3c1922.734777",\r
759         "type": "set",\r
760         "name": "unset otnTopoIdSrc",\r
761         "xml": "<set>\n<parameter name='otnTopoIdSrc' value='' />\n",\r
762         "comments": "",\r
763         "x": 1171.9999694824219,\r
764         "y": 399.283203125,\r
765         "z": "347519d8.005516",\r
766         "wires": []\r
767     },\r
768     {\r
769         "id": "a43c232c.85575",\r
770         "type": "outcomeTrue",\r
771         "name": "true",\r
772         "xml": "<outcome value='true'>\n",\r
773         "comments": "",\r
774         "outputs": 1,\r
775         "x": 1424.9999694824219,\r
776         "y": 523.283203125,\r
777         "z": "347519d8.005516",\r
778         "wires": [\r
779             [\r
780                 "f8e0e906.2dd5c"\r
781             ]\r
782         ]\r
783     },\r
784     {\r
785         "id": "f8e0e906.2dd5c",\r
786         "type": "switchNode",\r
787         "name": "switch te-topo-id",\r
788         "xml": "<switch test='`$allNetworksList.network-resource[$netwidx].te-topo-id != $param-prefix-domainA-pnfName[6]`'>\n",\r
789         "comments": "",\r
790         "outputs": 1,\r
791         "x": 1609.9999694824219,\r
792         "y": 522.283203125,\r
793         "z": "347519d8.005516",\r
794         "wires": [\r
795             [\r
796                 "8c6726fe.7433a8"\r
797             ]\r
798         ]\r
799     },\r
800     {\r
801         "id": "cc1b4364.1c9f18",\r
802         "type": "block",\r
803         "name": "block : atomic",\r
804         "xml": "<block atomic='true'>",\r
805         "atomic": "true",\r
806         "comments": "",\r
807         "outputs": 1,\r
808         "x": 866.9999694824219,\r
809         "y": 421.283203125,\r
810         "z": "347519d8.005516",\r
811         "wires": [\r
812             [\r
813                 "7c0eef33.a4cac8",\r
814                 "ba37203f.b37c18",\r
815                 "36a9a792.12dcb8",\r
816                 "2a69687a.5611c",\r
817                 "3070392b.33f8c6",\r
818                 "561ea33d.a2ffb4",\r
819                 "304ed1d7.4f9efe"\r
820             ]\r
821         ]\r
822     },\r
823     {\r
824         "id": "59a1e33e.932044",\r
825         "type": "comment",\r
826         "name": "The following section is to find srcTtp OTN layer (its long name)",\r
827         "info": "The following section is to find srcTtp OTN layer (its long name)",\r
828         "comments": "",\r
829         "x": 851.9999694824219,\r
830         "y": 355.283203125,\r
831         "z": "347519d8.005516",\r
832         "wires": []\r
833     },\r
834     {\r
835         "id": "ba37203f.b37c18",\r
836         "type": "get-resource",\r
837         "name": "get-resource network-resources-list",\r
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\" >",\r
839         "comments": "",\r
840         "outputs": 1,\r
841         "x": 1230.9999694824219,\r
842         "y": 342.283203125,\r
843         "z": "347519d8.005516",\r
844         "wires": [\r
845             [\r
846                 "c06f47ba.39269",\r
847                 "e8314c16.79663",\r
848                 "2e515252.bebdb6"\r
849             ]\r
850         ]\r
851     },\r
852     {\r
853         "id": "c06f47ba.39269",\r
854         "type": "success",\r
855         "name": "success",\r
856         "xml": "<outcome value='success'>\n",\r
857         "comments": "",\r
858         "outputs": 1,\r
859         "x": 1466.9999694824219,\r
860         "y": 325.283203125,\r
861         "z": "347519d8.005516",\r
862         "wires": [\r
863             []\r
864         ]\r
865     },\r
866     {\r
867         "id": "e8314c16.79663",\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": 1463.9999694824219,\r
874         "y": 366.283203125,\r
875         "z": "347519d8.005516",\r
876         "wires": [\r
877             []\r
878         ]\r
879     },\r
880     {\r
881         "id": "7c0eef33.a4cac8",\r
882         "type": "set",\r
883         "name": "unset parameters",\r
884         "xml": "<set>\n<parameter name='allNetworksList.' value='' />\n",\r
885         "comments": "",\r
886         "x": 1179.9999694824219,\r
887         "y": 299.283203125,\r
888         "z": "347519d8.005516",\r
889         "wires": []\r
890     },\r
891     {\r
892         "id": "8c6726fe.7433a8",\r
893         "type": "outcomeTrue",\r
894         "name": "true",\r
895         "xml": "<outcome value='true'>\n",\r
896         "comments": "",\r
897         "outputs": 1,\r
898         "x": 1801.9999694824219,\r
899         "y": 525.283203125,\r
900         "z": "347519d8.005516",\r
901         "wires": [\r
902             [\r
903                 "99c0dc88.ef82e8"\r
904             ]\r
905         ]\r
906     },\r
907     {\r
908         "id": "99c0dc88.ef82e8",\r
909         "type": "set",\r
910         "name": "set otnTopoIdSrc",\r
911         "xml": "<set>\n<parameter name='otnTopoIdSrc' value='`$allNetworksList.network-resource[$netwidx].te-topo-id`' />\n",\r
912         "comments": "",\r
913         "x": 1973.9999694824219,\r
914         "y": 521.283203125,\r
915         "z": "347519d8.005516",\r
916         "wires": []\r
917     },\r
918     {\r
919         "id": "d2cbaaf0.8cf72",\r
920         "type": "dgstart",\r
921         "name": "DGSTART",\r
922         "outputs": 1,\r
923         "x": 154.88333129882812,\r
924         "y": 89.88333129882812,\r
925         "z": "347519d8.005516",\r
926         "wires": [\r
927             [\r
928                 "a811003b.ca91f8"\r
929             ]\r
930         ]\r
931     },\r
932     {\r
933         "id": "a811003b.ca91f8",\r
934         "type": "service-logic",\r
935         "name": "GENERIC-RESOURCE-API ${project.version}",\r
936         "module": "GENERIC-RESOURCE-API",\r
937         "version": "${project.version}",\r
938         "comments": "",\r
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}'>",\r
940         "outputs": 1,\r
941         "x": 439.1690216064453,\r
942         "y": 151.12143993377686,\r
943         "z": "347519d8.005516",\r
944         "wires": [\r
945             [\r
946                 "5803201b.e752d"\r
947             ]\r
948         ]\r
949     },\r
950     {\r
951         "id": "5803201b.e752d",\r
952         "type": "method",\r
953         "name": "method cll-vnf-topology-operation-cll-delete-VPNBs",\r
954         "xml": "<method rpc='cll-vnf-topology-operation-cll-delete-VPNBs' mode='sync'>\n",\r
955         "comments": "",\r
956         "outputs": 1,\r
957         "x": 445.3119354248047,\r
958         "y": 235.88336181640625,\r
959         "z": "347519d8.005516",\r
960         "wires": [\r
961             [\r
962                 "cc1b4364.1c9f18"\r
963             ]\r
964         ]\r
965     }\r
966 ]