aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.json
blob: 244799a1c5d54adb14db5a0e6b7df84ac9409db3 (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
[
    {
        "id": "294747fd.2c2d98",
        "type": "method",
        "name": "method vnf-topology-operation-vpn-site-resource-activate",
        "xml": "<method rpc='vnf-topology-operation-vpn-site-resource-activate' mode='sync'>\n",
        "comments": "",
        "outputs": 1,
        "x": 211.5,
        "y": 201.99997901916504,
        "z": "79a5b197.5d84",
        "wires": [
            [
                "4068c2f3.520fdc"
            ]
        ]
    },
    {
        "id": "cff9203f.6e7f7",
        "type": "dgstart",
        "name": "DGSTART",
        "outputs": 1,
        "x": 89.0713882446289,
        "y": 38,
        "z": "79a5b197.5d84",
        "wires": [
            [
                "78d3821a.ddc91c"
            ]
        ]
    },
    {
        "id": "78d3821a.ddc91c",
        "type": "service-logic",
        "name": "GENERIC-RESOURCE-API ${project.version}",
        "module": "GENERIC-RESOURCE-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='GENERIC-RESOURCE-API' version='${project.version}'>",
        "outputs": 1,
        "x": 188.35708618164062,
        "y": 112.23810789268464,
        "z": "79a5b197.5d84",
        "wires": [
            [
                "294747fd.2c2d98"
            ]
        ]
    },
    {
        "id": "4068c2f3.520fdc",
        "type": "block",
        "name": "block : atomic",
        "xml": "<block atomic=\"true\">",
        "atomic": "true",
        "outputs": 1,
        "x": 189.73804473876953,
        "y": 373.66666814964265,
        "z": "79a5b197.5d84",
        "wires": [
            [
                "3a6b0423.a0a0ac",
                "d7b531c1.f5a86",
                "29c1d8e.17e3128",
                "206b62f4.ff1b8e",
                "ac1ddf15.75241",
                "fd35c3d4.a8e8a"
            ]
        ]
    },
    {
        "id": "3a6b0423.a0a0ac",
        "type": "set",
        "name": "set vnf-level-oper-status to Active",
        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />",
        "comments": "",
        "x": 598.8850250244141,
        "y": 446.67056941986084,
        "z": "79a5b197.5d84",
        "wires": []
    },
    {
        "id": "d7b531c1.f5a86",
        "type": "returnSuccess",
        "name": "return success",
        "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
        "comments": "",
        "x": 519.0717163085938,
        "y": 572.5971069335938,
        "z": "79a5b197.5d84",
        "wires": []
    },
    {
        "id": "29c1d8e.17e3128",
        "type": "set",
        "name": "set vnf-index and vnf-object-path",
        "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $vnf-topology-operation-input.vnf-information.vnf-id  + '/vnf-data/'` \" />",
        "comments": "",
        "x": 605.0716705322266,
        "y": 394.5968236923218,
        "z": "79a5b197.5d84",
        "wires": []
    },
    {
        "id": "206b62f4.ff1b8e",
        "type": "switchNode",
        "name": "switch service-data.vnfs.vnf_length",
        "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
        "comments": "",
        "outputs": 1,
        "x": 619.5000610351562,
        "y": 263.00000545661896,
        "z": "79a5b197.5d84",
        "wires": [
            [
                "510e4a8b.ead204",
                "c779a013.c610f",
                "7ee910c1.660bf"
            ]
        ]
    },
    {
        "id": "7ee910c1.660bf",
        "type": "outcome",
        "name": "0",
        "xml": "<outcome value='0'>\n",
        "comments": "",
        "outputs": 1,
        "x": 878.4689559936523,
        "y": 224.96876499336213,
        "z": "79a5b197.5d84",
        "wires": [
            [
                "a7558172.b2121"
            ]
        ]
    },
    {
        "id": "a7558172.b2121",
        "type": "returnFailure",
        "name": "return failure",
        "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
        "comments": "",
        "x": 1033.2778434753418,
        "y": 243.88903352897614,
        "z": "79a5b197.5d84",
        "wires": []
    },
    {
        "id": "510e4a8b.ead204",
        "type": "other",
        "name": "Null",
        "xml": "<outcome value=''>\n",
        "comments": "",
        "outputs": 1,
        "x": 871.5000953674316,
        "y": 264.00008651893586,
        "z": "79a5b197.5d84",
        "wires": [
            [
                "a7558172.b2121"
            ]
        ]
    },
    {
        "id": "c779a013.c610f",
        "type": "other",
        "name": "other",
        "xml": "<outcome value='Other'>\n",
        "comments": "",
        "outputs": 1,
        "x": 864.5005035400391,
        "y": 297.0000903336331,
        "z": "79a5b197.5d84",
        "wires": [
            [
                "6aaa180d.7575b8"
            ]
        ]
    },
    {
        "id": "6aaa180d.7575b8",
        "type": "block",
        "name": "block : atomic",
        "xml": "<block atomic=\"true\">",
        "atomic": "true",
        "outputs": 1,
        "x": 1011.7700462341309,
        "y": 297.55473539512604,
        "z": "79a5b197.5d84",
        "wires": [
            [
                "46580136.d7c0b"
            ]
        ]
    },
    {
        "id": "46580136.d7c0b",
        "type": "for",
        "name": "for vidx..service-data.vnfs.vnf_length[]",
        "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
        "comments": "",
        "outputs": 1,
        "x": 1257.7861633300781,
        "y": 304.4286558357999,
        "z": "79a5b197.5d84",
        "wires": [
            [
                "a66fcd87.a077a"
            ]
        ]
    },
    {
        "id": "a66fcd87.a077a",
        "type": "block",
        "name": "block",
        "xml": "<block>\n",
        "atomic": "false",
        "comments": "",
        "outputs": 1,
        "x": 1477.1357955932617,
        "y": 303.9687359062955,
        "z": "79a5b197.5d84",
        "wires": [
            [
                "ba7c0ee7.d144d"
            ]
        ]
    },
    {
        "id": "ba7c0ee7.d144d",
        "type": "switchNode",
        "name": "switch vnfid found",
        "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
        "comments": "",
        "outputs": 1,
        "x": 1631.2153930664062,
        "y": 303.67881796043366,
        "z": "79a5b197.5d84",
        "wires": [
            [
                "a9157f30.c0f4f"
            ]
        ]
    },
    {
        "id": "a9157f30.c0f4f",
        "type": "outcomeTrue",
        "name": "true",
        "xml": "<outcome value='true'>\n",
        "comments": "",
        "outputs": 1,
        "x": 1807.1675148010254,
        "y": 303.57150003593415,
        "z": "79a5b197.5d84",
        "wires": [
            [
                "e051341c.b94158"
            ]
        ]
    },
    {
        "id": "e051341c.b94158",
        "type": "set",
        "name": "set tmp.vidx and ctx.vnf-data",
        "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
        "comments": "",
        "x": 2016.6998901367188,
        "y": 305.3216001717374,
        "z": "79a5b197.5d84",
        "wires": []
    },
    {
        "id": "ac1ddf15.75241",
        "type": "save",
        "name": "update AnAI - vnf-instance.orchestration-status",
        "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\"   \n\t\tkey=\"generic-vnf.vnf-id = $vnfId\" >\n<parameter name=\"orchestration-status\" value=\"Active\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",
        "comments": "",
        "outputs": 1,
        "x": 624.5000305175781,
        "y": 513.0103950500488,
        "z": "79a5b197.5d84",
        "wires": [
            []
        ]
    },
    {
        "id": "fd35c3d4.a8e8a",
        "type": "set",
        "name": "copy input data to service data",
        "xml": "<set>\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />",
        "comments": "",
        "x": 603.5001449584961,
        "y": 344.010356426239,
        "z": "79a5b197.5d84",
        "wires": []
    }
]