Fix openecomp references in vnfapi
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_network-topology-rollback.json
1 [
2     {
3         "id": "ed874a4d.fd8fa8",
4         "type": "block",
5         "name": "block : atomic",
6         "xml": "<block atomic=\"true\">",
7         "atomic": "true",
8         "outputs": 1,
9         "x": 205.71429443359375,
10         "y": 164.2857208251953,
11         "z": "16a5084d.6904d8",
12         "wires": [
13             [
14                 "24d7124b.287cae",
15                 "6f5f0903.600f88",
16                 "56187c49.06fa54",
17                 "34867ac.18cfc86"
18             ]
19         ]
20     },
21     {
22         "id": "be439a72.253938",
23         "type": "not-found",
24         "name": "not found",
25         "xml": "<outcome value='not-found'>\n",
26         "comments": "",
27         "outputs": 1,
28         "x": 688.7422180175781,
29         "y": 164.44003295898438,
30         "z": "16a5084d.6904d8",
31         "wires": [
32             [
33                 "b0ac9e35.109ef"
34             ]
35         ]
36     },
37     {
38         "id": "b0ac9e35.109ef",
39         "type": "returnFailure",
40         "name": "return failure",
41         "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"404\" />\n\t<parameter name=\"error-message\" value=\"`'l3-network not found in AnAI with network-id = ' + $network-topology-operation-input.network-request-information.network-id`\" />",
42         "comments": "",
43         "x": 851.9366149902344,
44         "y": 164.55125427246094,
45         "z": "16a5084d.6904d8",
46         "wires": []
47     },
48     {
49         "id": "24d7124b.287cae",
50         "type": "switchNode",
51         "name": "switch: l3-network.orchestration_status",
52         "xml": "<switch test=\"`$tmp.AnAI.l3network.orchestration-status`\">",
53         "comments": "",
54         "outputs": 1,
55         "x": 463.72552490234375,
56         "y": 272.89379501342773,
57         "z": "16a5084d.6904d8",
58         "wires": [
59             [
60                 "2c75bd76.80f6d2",
61                 "4c028d7d.749944",
62                 "ba62e3d9.12a4"
63             ]
64         ]
65     },
66     {
67         "id": "2c75bd76.80f6d2",
68         "type": "other",
69         "name": "pending-create",
70         "xml": "<outcome value='pending-create'>\n",
71         "comments": "",
72         "outputs": 1,
73         "x": 747.4795608520508,
74         "y": 273.5526599884033,
75         "z": "16a5084d.6904d8",
76         "wires": [
77             [
78                 "d89faa07.866668"
79             ]
80         ]
81     },
82     {
83         "id": "ba62e3d9.12a4",
84         "type": "other",
85         "name": "pending-update",
86         "xml": "<outcome value='pending-update'>\n",
87         "comments": "",
88         "outputs": 1,
89         "x": 750.0867538452148,
90         "y": 383.1594228744507,
91         "z": "16a5084d.6904d8",
92         "wires": [
93             [
94                 "924236c2.8eb018"
95             ]
96         ]
97     },
98     {
99         "id": "4c028d7d.749944",
100         "type": "other",
101         "name": "pending-delete",
102         "xml": "<outcome value='pending-delete'>\n",
103         "comments": "",
104         "outputs": 1,
105         "x": 747.2295074462891,
106         "y": 328.2672004699707,
107         "z": "16a5084d.6904d8",
108         "wires": [
109             [
110                 "d63de22c.d6ac3"
111             ]
112         ]
113     },
114     {
115         "id": "d63de22c.d6ac3",
116         "type": "save",
117         "name": "update AnAI:  l3-network.orchestration-status",
118         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id\" >\n<parameter name=\"orchestration-status\" value=\"active\" />",
119         "comments": "",
120         "outputs": 1,
121         "x": 1029.535385131836,
122         "y": 328.9064884185791,
123         "z": "16a5084d.6904d8",
124         "wires": [
125             [
126                 "30ace356.607a3c"
127             ]
128         ]
129     },
130     {
131         "id": "30ace356.607a3c",
132         "type": "failure",
133         "name": "failure",
134         "xml": "<outcome value='failure'>\n",
135         "comments": "",
136         "outputs": 1,
137         "x": 1282.0407447814941,
138         "y": 328.19105052948,
139         "z": "16a5084d.6904d8",
140         "wires": [
141             [
142                 "65d58e38.14597"
143             ]
144         ]
145     },
146     {
147         "id": "65d58e38.14597",
148         "type": "returnFailure",
149         "name": "return failure",
150         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Failed to update l3-netework orchestration-status in AnAI for network-id = ' + $network-topology-operation-input.network-request-information.network-id`\"/>",
151         "comments": "",
152         "x": 1440.5405006408691,
153         "y": 327.69105052948,
154         "z": "16a5084d.6904d8",
155         "wires": []
156     },
157     {
158         "id": "56187c49.06fa54",
159         "type": "returnSuccess",
160         "name": "return success",
161         "xml": "<return status=\"success\">\n\t<parameter name=\"networkId\" value=\"`$network-topology-operation-input.network-request-information.network-id`\" />\n\t<parameter name=\"error-code\" value=\"200\" />",
162         "comments": "",
163         "x": 387.8685607910156,
164         "y": 810.4369297027588,
165         "z": "16a5084d.6904d8",
166         "wires": []
167     },
168     {
169         "id": "6f5f0903.600f88",
170         "type": "set",
171         "name": "Set final indicator to Y",
172         "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
173         "comments": "",
174         "outputs": 1,
175         "x": 411.8686218261719,
176         "y": 763.4369297027588,
177         "z": "16a5084d.6904d8",
178         "wires": [
179             []
180         ]
181     },
182     {
183         "id": "924236c2.8eb018",
184         "type": "block",
185         "name": "block : atomic",
186         "xml": "<block atomic=\"true\">\n",
187         "atomic": "true",
188         "comments": "",
189         "outputs": 1,
190         "x": 934.9215087890625,
191         "y": 383.1720905303955,
192         "z": "16a5084d.6904d8",
193         "wires": [
194             [
195                 "ddbaf6a3.157138",
196                 "b17a76ed.0f85b8",
197                 "601ab575.5ab91c"
198             ]
199         ]
200     },
201     {
202         "id": "ddbaf6a3.157138",
203         "type": "for",
204         "name": "for loop i - tmp.AnAI.l3network.subnets.subnet[]",
205         "xml": "<for index=\"i\" start=\"0\" end=\"`$tmp.AnAI.l3network.subnets.subnet_length`\">\n",
206         "comments": "",
207         "outputs": 1,
208         "x": 1257.5074462890625,
209         "y": 437.3375072479248,
210         "z": "16a5084d.6904d8",
211         "wires": [
212             [
213                 "3a9492ae.aa26ae"
214             ]
215         ]
216     },
217     {
218         "id": "3a9492ae.aa26ae",
219         "type": "switchNode",
220         "name": "switch : l3subnet.orchestration-status",
221         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet[$i].orchestration-status`\">",
222         "comments": "",
223         "outputs": 1,
224         "x": 1308.7061004638672,
225         "y": 534.154951095581,
226         "z": "16a5084d.6904d8",
227         "wires": [
228             [
229                 "dcb0b0f5.3edc8",
230                 "3c0ecb2f.7fa144"
231             ]
232         ]
233     },
234     {
235         "id": "dcb0b0f5.3edc8",
236         "type": "other",
237         "name": "pending-create",
238         "xml": "<outcome value='pending-create'>\n",
239         "comments": "",
240         "outputs": 1,
241         "x": 1579.3409118652344,
242         "y": 533.6986665725708,
243         "z": "16a5084d.6904d8",
244         "wires": [
245             [
246                 "4b483612.3e69e8"
247             ]
248         ]
249     },
250     {
251         "id": "3c0ecb2f.7fa144",
252         "type": "other",
253         "name": "pending-delete",
254         "xml": "<outcome value='pending-delete'>\n",
255         "comments": "",
256         "outputs": 1,
257         "x": 1581.5910339355469,
258         "y": 580.4486694335938,
259         "z": "16a5084d.6904d8",
260         "wires": [
261             [
262                 "262c9783.799c48"
263             ]
264         ]
265     },
266     {
267         "id": "ce707857.7d5938",
268         "type": "failure",
269         "name": "failure",
270         "xml": "<outcome value='failure'>\n",
271         "comments": "",
272         "outputs": 1,
273         "x": 1483.0867156982422,
274         "y": 644.0207948684692,
275         "z": "16a5084d.6904d8",
276         "wires": [
277             [
278                 "105e0afc.2b75f5"
279             ]
280         ]
281     },
282     {
283         "id": "105e0afc.2b75f5",
284         "type": "returnFailure",
285         "name": "return failure",
286         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Failed to rollback l3-netework orchestration-status in AnAI for network-id = ' + $network-topology-operation-input.network-request-information.network-id`\"/>",
287         "comments": "",
288         "x": 1648.9435691833496,
289         "y": 644.0206813812256,
290         "z": "16a5084d.6904d8",
291         "wires": []
292     },
293     {
294         "id": "7560895d.bec338",
295         "type": "method",
296         "name": "method network-topology-rollback",
297         "xml": "<method rpc=\"network-topology-rollback\" mode=\"sync\">",
298         "comments": "",
299         "outputs": 1,
300         "x": 254.35324096679688,
301         "y": 104.81352615356445,
302         "z": "16a5084d.6904d8",
303         "wires": [
304             [
305                 "ed874a4d.fd8fa8"
306             ]
307         ]
308     },
309     {
310         "id": "22f704b1.4b00ac",
311         "type": "service-logic",
312         "name": "VNF-API ${project.version}",
313         "module": "VNF-API",
314         "version": "${project.version}",
315         "comments": "",
316         "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='VNF-API' version='${project.version}'>",
317         "outputs": 1,
318         "x": 308.79766845703125,
319         "y": 48.480201721191406,
320         "z": "16a5084d.6904d8",
321         "wires": [
322             [
323                 "7560895d.bec338"
324             ]
325         ]
326     },
327     {
328         "id": "14e828b3.f5f857",
329         "type": "dgstart",
330         "name": "DGSTART",
331         "outputs": 1,
332         "x": 144.68655395507812,
333         "y": 48.480201721191406,
334         "z": "16a5084d.6904d8",
335         "wires": [
336             [
337                 "22f704b1.4b00ac"
338             ]
339         ]
340     },
341     {
342         "id": "34867ac.18cfc86",
343         "type": "get-resource",
344         "name": "get AnAI - l3-network by network-id",
345         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id\" \n\t\tpfx=\"tmp.AnAI.l3network\">\n",
346         "comments": "",
347         "outputs": 1,
348         "x": 453.4643249511719,
349         "y": 164.9246368408203,
350         "z": "16a5084d.6904d8",
351         "wires": [
352             [
353                 "be439a72.253938",
354                 "d84ea22f.e407c"
355             ]
356         ]
357     },
358     {
359         "id": "d84ea22f.e407c",
360         "type": "failure",
361         "name": "failure",
362         "xml": "<outcome value='failure'>\n",
363         "comments": "",
364         "outputs": 1,
365         "x": 681.4643249511719,
366         "y": 207.9246368408203,
367         "z": "16a5084d.6904d8",
368         "wires": [
369             [
370                 "42ccb0c4.44987"
371             ]
372         ]
373     },
374     {
375         "id": "42ccb0c4.44987",
376         "type": "returnFailure",
377         "name": "return failure",
378         "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`'An error occurred while querying l3-network from AnAI with network-id = ' + $network-topology-operation-input.network-request-information.network-id`\" />",
379         "comments": "",
380         "x": 833.5754089355469,
381         "y": 208.14686584472656,
382         "z": "16a5084d.6904d8",
383         "wires": []
384     },
385     {
386         "id": "262c9783.799c48",
387         "type": "save",
388         "name": "update AnAI - subnet.orchestration-status",
389         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id  \n\t\t\tAND subnet.subnet-id = $tmp.AnAI.l3network.subnets.subnet[$i].subnet-id\" >\n\t<parameter name=\"orchestration-status\" value=\"active\" />\n\t\t",
390         "comments": "",
391         "outputs": 1,
392         "x": 1862.6230087280273,
393         "y": 580.6667499542236,
394         "z": "16a5084d.6904d8",
395         "wires": [
396             [
397                 "c9eebef.d2d794"
398             ]
399         ]
400     },
401     {
402         "id": "d89faa07.866668",
403         "type": "delete",
404         "name": "delete AnAI - l3-network",
405         "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id\" >",
406         "comments": "",
407         "outputs": 1,
408         "x": 968.1071929931641,
409         "y": 273.78178787231445,
410         "z": "16a5084d.6904d8",
411         "wires": [
412             [
413                 "9ce56dcb.c4e3b"
414             ]
415         ]
416     },
417     {
418         "id": "9ce56dcb.c4e3b",
419         "type": "failure",
420         "name": "failure",
421         "xml": "<outcome value='failure'>\n",
422         "comments": "",
423         "outputs": 1,
424         "x": 1159.857177734375,
425         "y": 273.5317840576172,
426         "z": "16a5084d.6904d8",
427         "wires": [
428             [
429                 "119f926b.f22d8e"
430             ]
431         ]
432     },
433     {
434         "id": "119f926b.f22d8e",
435         "type": "returnFailure",
436         "name": "return failure",
437         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Failed to delete l3-network from AAI with network-id = ' + $network-topology-operation-input.network-request-information.network-id`\"/>",
438         "comments": "",
439         "x": 1318.3570355589,
440         "y": 273.0320094249846,
441         "z": "16a5084d.6904d8",
442         "wires": []
443     },
444     {
445         "id": "4b483612.3e69e8",
446         "type": "delete",
447         "name": "delete l3-network.subnet",
448         "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id  \n\t\t\tAND subnet.subnet-id = $tmp.AnAI.l3network.subnets.subnet[$i].subnet-id\" >",
449         "comments": "",
450         "outputs": 1,
451         "x": 1808.6865310668945,
452         "y": 533.5754108428955,
453         "z": "16a5084d.6904d8",
454         "wires": [
455             [
456                 "88c83fbb.cfade"
457             ]
458         ]
459     },
460     {
461         "id": "b17a76ed.0f85b8",
462         "type": "save",
463         "name": "update AnAI - l3-network.orchestration-status",
464         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id\" >\n<parameter name=\"orchestration-status\" value=\"active\" />",
465         "comments": "",
466         "outputs": 1,
467         "x": 1219.020034790039,
468         "y": 644.4007987976074,
469         "z": "16a5084d.6904d8",
470         "wires": [
471             [
472                 "ce707857.7d5938"
473             ]
474         ]
475     },
476     {
477         "id": "88c83fbb.cfade",
478         "type": "failure",
479         "name": "failure",
480         "xml": "<outcome value='failure'>\n",
481         "comments": "",
482         "outputs": 1,
483         "x": 2002.8293075561523,
484         "y": 533.5754375457764,
485         "z": "16a5084d.6904d8",
486         "wires": [
487             [
488                 "ad6689b7.9adf18"
489             ]
490         ]
491     },
492     {
493         "id": "ad6689b7.9adf18",
494         "type": "returnFailure",
495         "name": "return failure",
496         "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`'Failed to rollback to delete subnet from AnAI with subnet-id = ' + $tmp.AnAI.l3network.subnets.subnet[$i].subnet-id + ' and network-id = ' + $network-topology-operation-input.network-request-information.network-id`\" />",
497         "comments": "",
498         "x": 2150.9403915405273,
499         "y": 533.7976665496826,
500         "z": "16a5084d.6904d8",
501         "wires": []
502     },
503     {
504         "id": "c9eebef.d2d794",
505         "type": "failure",
506         "name": "failure",
507         "xml": "<outcome value='failure'>\n",
508         "comments": "",
509         "outputs": 1,
510         "x": 2115.6864852905273,
511         "y": 580.4325847625732,
512         "z": "16a5084d.6904d8",
513         "wires": [
514             [
515                 "b2f04093.c9348"
516             ]
517         ]
518     },
519     {
520         "id": "b2f04093.c9348",
521         "type": "returnFailure",
522         "name": "return failure",
523         "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`'Failed to rollback subnet orchestration-status from AnAI with subnet-id = ' + $tmp.AnAI.l3network.subnets.subnet[$i].subnet-id + ' and network-id = ' + $network-topology-operation-input.network-request-information.network-id`\" />",
524         "comments": "",
525         "x": 2263.7975692749023,
526         "y": 580.6548137664795,
527         "z": "16a5084d.6904d8",
528         "wires": []
529     },
530     {
531         "id": "601ab575.5ab91c",
532         "type": "switchNode",
533         "name": "switch ... tmp.AnAI.l3network.subnets.subnet_length[]",
534         "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet_length`\">",
535         "comments": "",
536         "outputs": 1,
537         "x": 1275.1428833007812,
538         "y": 383.2857360839844,
539         "z": "16a5084d.6904d8",
540         "wires": [
541             [
542                 "fc8ffad6.e42698"
543             ]
544         ]
545     },
546     {
547         "id": "fc8ffad6.e42698",
548         "type": "outcome",
549         "name": "NULL",
550         "xml": "<outcome value=''>",
551         "outputs": 1,
552         "x": 1556.5873336791992,
553         "y": 383.0634717941284,
554         "z": "16a5084d.6904d8",
555         "wires": [
556             [
557                 "188c2712.ad31f9"
558             ]
559         ]
560     },
561     {
562         "id": "188c2712.ad31f9",
563         "type": "set",
564         "name": "set tmp.AnAI.l3network.subnets.subnet_length = 0",
565         "xml": "<set>\n<parameter name=\"tmp.AnAI.l3network.subnets.subnet_length\" value=\"0\" />\n",
566         "comments": "",
567         "outputs": 1,
568         "x": 1831.1429426405166,
569         "y": 383.0634924570718,
570         "z": "16a5084d.6904d8",
571         "wires": [
572             []
573         ]
574     }
575 ]