aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/vnfapi/src/main/json/VNF-API_vf-module-topology-assign.json
blob: 991574462340a752eaa8a9b0044605d97f2795a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
[
    {
        "id": "c16263f6.6c033",
        "type": "dgstart",
        "name": "DGSTART",
        "outputs": 1,
        "x": 122.85714721679688,
        "y": 48.57143020629883,
        "z": "350dd502.49698a",
        "wires": [
            [
                "37a9d0a8.5ccc7"
            ]
        ]
    },
    {
        "id": "37a9d0a8.5ccc7",
        "type": "service-logic",
        "name": "VNF-API ${project.version}",
        "module": "VNF-API",
        "version": "${project.version}",
        "comments": "",
        "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}'>",
        "outputs": 1,
        "x": 288.0238037109375,
        "y": 48.738101959228516,
        "z": "350dd502.49698a",
        "wires": [
            [
                "588951bd.cad18"
            ]
        ]
    },
    {
        "id": "588951bd.cad18",
        "type": "method",
        "name": "method vf-module-topology-assign",
        "xml": "<method rpc='vf-module-topology-assign' mode='sync'>\n",
        "comments": "",
        "outputs": 1,
        "x": 247.4524040222168,
        "y": 104.30952453613281,
        "z": "350dd502.49698a",
        "wires": [
            [
                "23232616.dc87ba"
            ]
        ]
    },
    {
        "id": "23232616.dc87ba",
        "type": "block",
        "name": "block : atomic",
        "xml": "<block atomic=\"true\">",
        "atomic": "true",
        "comments": "",
        "outputs": 1,
        "x": 234.78572463989258,
        "y": 159.14286041259766,
        "z": "350dd502.49698a",
        "wires": [
            [
                "f8edc82.b3e8938",
                "2ec63c84.2fdfa4",
                "6f2046b4.9e38b8",
                "70b11385.26396c",
                "83b4e560.3deac8",
                "ec42a08c.2f911",
                "3fb1f49d.968cac",
                "70c2e0fb.98281"
            ]
        ]
    },
    {
        "id": "f8edc82.b3e8938",
        "type": "set",
        "name": "set: order-status = PendingCreate",
        "xml": "<set>\n\t<parameter name=\"vf-module-service-data.oper-status.order-status\" value=\"PendingCreate\"/>",
        "comments": "",
        "outputs": 1,
        "x": 502.67656326293945,
        "y": 581.3350772857666,
        "z": "350dd502.49698a",
        "wires": [
            []
        ]
    },
    {
        "id": "2ec63c84.2fdfa4",
        "type": "returnSuccess",
        "name": "return success",
        "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
        "comments": "",
        "x": 441.8194007873535,
        "y": 667.0397090911865,
        "z": "350dd502.49698a",
        "wires": []
    },
    {
        "id": "2e373aaa.eea7e6",
        "type": "comment",
        "name": "request-action = VNFActivateRequest",
        "info": "",
        "comments": "",
        "x": 681.4523811340332,
        "y": 77.25397491455078,
        "z": "350dd502.49698a",
        "wires": []
    },
    {
        "id": "2f391c5c.812e84",
        "type": "failure",
        "name": "failure",
        "xml": "<outcome value='failure'>\n",
        "comments": "",
        "outputs": 1,
        "x": 799.7263221740723,
        "y": 532.3576011657715,
        "z": "350dd502.49698a",
        "wires": [
            [
                "47e9fdf3.2b1f24"
            ]
        ]
    },
    {
        "id": "ccece92b.253528",
        "type": "returnFailure",
        "name": "return failure",
        "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"An error occurred while updating vf-module orchestration-status in AnAI\"/>",
        "comments": "",
        "x": 1183.8692512512207,
        "y": 532.3576717376709,
        "z": "350dd502.49698a",
        "wires": []
    },
    {
        "id": "a9a15235.6b621",
        "type": "save",
        "name": "save relationship: l3-network",
        "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vf-module:relationship-list\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tand generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id\" >\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$i].network-id`\" />",
        "comments": "",
        "outputs": 1,
        "x": 802.031810760498,
        "y": 375.2578191757202,
        "z": "350dd502.49698a",
        "wires": [
            [
                "7bf5e0bd.bd877"
            ]
        ]
    },
    {
        "id": "7bf5e0bd.bd877",
        "type": "failure",
        "name": "failure",
        "xml": "<outcome value='failure'>\n",
        "comments": "",
        "outputs": 1,
        "x": 1014.676082611084,
        "y": 375.3048334121704,
        "z": "350dd502.49698a",
        "wires": [
            [
                "6b0b8d97.a1d2c4"
            ]
        ]
    },
    {
        "id": "6f2046b4.9e38b8",
        "type": "for",
        "name": "for i : SERVICE_DATA vnf-networks",
        "xml": "<for index=\"i\" start=\"0\" end=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length`\">",
        "comments": "",
        "outputs": 1,
        "x": 507.67861557006836,
        "y": 375.226300239563,
        "z": "350dd502.49698a",
        "wires": [
            [
                "a9a15235.6b621"
            ]
        ]
    },
    {
        "id": "9195333e.3c5b3",
        "type": "returnFailure",
        "name": "return failure",
        "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'An error occurred while saving vf-module l3-network relationship in AnAI with network-id = ' + $vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks[$i].network-id`\"/>",
        "comments": "",
        "x": 1183.726146697998,
        "y": 485.3211603164673,
        "z": "350dd502.49698a",
        "wires": []
    },
    {
        "id": "6b0b8d97.a1d2c4",
        "type": "block",
        "name": "block : atomic",
        "xml": "<block atomic='true'>",
        "atomic": "true",
        "comments": "",
        "outputs": 1,
        "x": 973.4405326843262,
        "y": 437.6070137023926,
        "z": "350dd502.49698a",
        "wires": [
            [
                "2266e1a7.71fbbe",
                "9195333e.3c5b3"
            ]
        ]
    },
    {
        "id": "2266e1a7.71fbbe",
        "type": "save",
        "name": "delete vf-module: l3-network relationship",
        "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vf-module:relationship-list\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tAND generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id \n\t\t\tAND related-to = l3-network\" >",
        "comments": "",
        "outputs": 1,
        "x": 1266.8691291809082,
        "y": 438.0357599258423,
        "z": "350dd502.49698a",
        "wires": [
            []
        ]
    },
    {
        "id": "70b11385.26396c",
        "type": "save",
        "name": "update AnAI - vf-module.orchestration-status",
        "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vf-module\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tand generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id\" >\n<parameter name=\"orchestration-status\" value=\"pending-create\" />",
        "comments": "",
        "outputs": 1,
        "x": 535.202465057373,
        "y": 532.3690986633301,
        "z": "350dd502.49698a",
        "wires": [
            [
                "2f391c5c.812e84"
            ]
        ]
    },
    {
        "id": "47e9fdf3.2b1f24",
        "type": "block",
        "name": "block: atomic",
        "xml": "<block atomic=\"true\">\n",
        "atomic": "false",
        "comments": "",
        "outputs": 1,
        "x": 958.1548957824707,
        "y": 532.4643602371216,
        "z": "350dd502.49698a",
        "wires": [
            [
                "ccece92b.253528",
                "2266e1a7.71fbbe"
            ]
        ]
    },
    {
        "id": "83b4e560.3deac8",
        "type": "call",
        "name": "call: vf-module-topology-assign-vnf-networks",
        "xml": "<call module='VNF-API' rpc='vf-module-topology-assign-vnf-networks' mode='sync' >",
        "comments": "",
        "outputs": 1,
        "x": 534.9524040222168,
        "y": 264.8928756713867,
        "z": "350dd502.49698a",
        "wires": [
            []
        ]
    },
    {
        "id": "ec42a08c.2f911",
        "type": "set",
        "name": "Set final indicator to Y",
        "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
        "comments": "",
        "outputs": 1,
        "x": 465.8572120666504,
        "y": 626.4642963409424,
        "z": "350dd502.49698a",
        "wires": [
            []
        ]
    },
    {
        "id": "3fb1f49d.968cac",
        "type": "switchNode",
        "name": "switch ...SERVICE-DATA vnf-networks[]",
        "xml": "<switch test=\"`$vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length`\">",
        "comments": "",
        "outputs": 1,
        "x": 520.0357627868652,
        "y": 315.46430587768555,
        "z": "350dd502.49698a",
        "wires": [
            [
                "66fc8dde.364c84"
            ]
        ]
    },
    {
        "id": "66fc8dde.364c84",
        "type": "outcome",
        "name": "NULL",
        "xml": "<outcome value=''>",
        "outputs": 1,
        "x": 760.4802360534668,
        "y": 314.99201583862305,
        "z": "350dd502.49698a",
        "wires": [
            [
                "5163a821.a1b9a8"
            ]
        ]
    },
    {
        "id": "5163a821.a1b9a8",
        "type": "set",
        "name": "set SERVICE-DATA vnf-networks[] = 0",
        "xml": "<set>\n<parameter name='vf-module-service-data.vf-module-topology-information.vnf-assignments.vnf-networks_length' value='0' />\n",
        "comments": "",
        "outputs": 1,
        "x": 982.0358450147842,
        "y": 314.9920365015664,
        "z": "350dd502.49698a",
        "wires": [
            []
        ]
    },
    {
        "id": "70c2e0fb.98281",
        "type": "save",
        "name": "GET AnAI - vf-module",
        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vf-module\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tand generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id\" \n\t\tpfx=\"tmp.AnAI.vfmodule\" >",
        "comments": "",
        "outputs": 1,
        "x": 465.5357322692871,
        "y": 159.64287090301514,
        "z": "350dd502.49698a",
        "wires": [
            [
                "5093485a.9aea88",
                "ef352420.3d6798"
            ]
        ]
    },
    {
        "id": "5093485a.9aea88",
        "type": "failure",
        "name": "failure",
        "xml": "<outcome value='failure'>\n",
        "comments": "",
        "outputs": 1,
        "x": 659.5357322692871,
        "y": 159.39287090301514,
        "z": "350dd502.49698a",
        "wires": [
            [
                "2a95d52a.bc0f4a"
            ]
        ]
    },
    {
        "id": "ef352420.3d6798",
        "type": "not-found",
        "name": "not-found",
        "xml": "<outcome value='not-found'>\n",
        "comments": "",
        "outputs": 1,
        "x": 667.0357475280762,
        "y": 199.39288139343262,
        "z": "350dd502.49698a",
        "wires": [
            [
                "a7a735d3.c7fd48"
            ]
        ]
    },
    {
        "id": "2a95d52a.bc0f4a",
        "type": "returnFailure",
        "name": "return failure",
        "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'An error occurred while querying vf-module from AnAI with vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' and vnf-instance-id = ' + vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id`\"/>",
        "comments": "",
        "x": 813.7857322692871,
        "y": 159.14287090301514,
        "z": "350dd502.49698a",
        "wires": []
    },
    {
        "id": "a7a735d3.c7fd48",
        "type": "returnFailure",
        "name": "return failure",
        "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'vf-module not found in AnAI with vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' and vnf-instance-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id`\"/>",
        "comments": "",
        "x": 834.2857322692871,
        "y": 199.64287090301514,
        "z": "350dd502.49698a",
        "wires": []
    }
]