CCVPN extension DGs
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.json
1 [\r
2     {\r
3         "id": "82c84658.77d1d8",\r
4         "type": "method",\r
5         "name": "method vnf-topology-operation-vpn-site-resource-deactivate",\r
6         "xml": "<method rpc='vnf-topology-operation-vpn-site-resource-deactivate' mode='sync'>\n",\r
7         "comments": "",\r
8         "outputs": 1,\r
9         "x": 259,\r
10         "y": 212.99999639671296,\r
11         "z": "655c6ddc.e1d044",\r
12         "wires": [\r
13             [\r
14                 "20631342.a0c9ec"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "d37f40ab.ae426",\r
20         "type": "dgstart",\r
21         "name": "DGSTART",\r
22         "outputs": 1,\r
23         "x": 138.5713882446289,\r
24         "y": 49,\r
25         "z": "655c6ddc.e1d044",\r
26         "wires": [\r
27             [\r
28                 "90866c8c.0566b"\r
29             ]\r
30         ]\r
31     },\r
32     {\r
33         "id": "90866c8c.0566b",\r
34         "type": "service-logic",\r
35         "name": "GENERIC-RESOURCE-API ${project.version}",\r
36         "module": "GENERIC-RESOURCE-API",\r
37         "version": "${project.version}",\r
38         "comments": "",\r
39         "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
40         "outputs": 1,\r
41         "x": 237.85708618164062,\r
42         "y": 123.23810789268464,\r
43         "z": "655c6ddc.e1d044",\r
44         "wires": [\r
45             [\r
46                 "82c84658.77d1d8"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "20631342.a0c9ec",\r
52         "type": "block",\r
53         "name": "block : atomic",\r
54         "xml": "<block atomic=\"true\">",\r
55         "atomic": "true",\r
56         "outputs": 1,\r
57         "x": 239.23804473876953,\r
58         "y": 384.66666814964265,\r
59         "z": "655c6ddc.e1d044",\r
60         "wires": [\r
61             [\r
62                 "223e8ad6.61f2e6",\r
63                 "7a1d8d04.0ea1a4",\r
64                 "fb28da85.68b248",\r
65                 "638a26a6.3e9618",\r
66                 "30cf2c07.d44e14",\r
67                 "fbfde082.6174",\r
68                 "c6ba194.447c2e8"\r
69             ]\r
70         ]\r
71     },\r
72     {\r
73         "id": "223e8ad6.61f2e6",\r
74         "type": "set",\r
75         "name": "set vnf-level-oper-status to PendingDelete",\r
76         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\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`' />",\r
77         "comments": "",\r
78         "x": 647.3849029541016,\r
79         "y": 533.670627951622,\r
80         "z": "655c6ddc.e1d044",\r
81         "wires": []\r
82     },\r
83     {\r
84         "id": "7a1d8d04.0ea1a4",\r
85         "type": "returnSuccess",\r
86         "name": "return success",\r
87         "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",\r
88         "comments": "",\r
89         "x": 573.5716247558594,\r
90         "y": 642.5970582962036,\r
91         "z": "655c6ddc.e1d044",\r
92         "wires": []\r
93     },\r
94     {\r
95         "id": "fb28da85.68b248",\r
96         "type": "set",\r
97         "name": "set vnf-index and vnf-object-path",\r
98         "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/'` \" />",\r
99         "comments": "",\r
100         "x": 624.5716247558594,\r
101         "y": 489.5968955755234,\r
102         "z": "655c6ddc.e1d044",\r
103         "wires": []\r
104     },\r
105     {\r
106         "id": "638a26a6.3e9618",\r
107         "type": "switchNode",\r
108         "name": "switch service-data.vnfs.vnf_length",\r
109         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
110         "comments": "",\r
111         "outputs": 1,\r
112         "x": 669.0000610351562,\r
113         "y": 274.00000545661896,\r
114         "z": "655c6ddc.e1d044",\r
115         "wires": [\r
116             [\r
117                 "3f139002.12bae",\r
118                 "6579ac8.d79e654",\r
119                 "9fa8cca.2d7cf3"\r
120             ]\r
121         ]\r
122     },\r
123     {\r
124         "id": "9fa8cca.2d7cf3",\r
125         "type": "outcome",\r
126         "name": "0",\r
127         "xml": "<outcome value='0'>\n",\r
128         "comments": "",\r
129         "outputs": 1,\r
130         "x": 927.9689559936523,\r
131         "y": 235.96876499336213,\r
132         "z": "655c6ddc.e1d044",\r
133         "wires": [\r
134             [\r
135                 "4d9ccf75.fe9af"\r
136             ]\r
137         ]\r
138     },\r
139     {\r
140         "id": "4d9ccf75.fe9af",\r
141         "type": "returnFailure",\r
142         "name": "return failure",\r
143         "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",\r
144         "comments": "",\r
145         "x": 1082.7778434753418,\r
146         "y": 254.88903352897614,\r
147         "z": "655c6ddc.e1d044",\r
148         "wires": []\r
149     },\r
150     {\r
151         "id": "3f139002.12bae",\r
152         "type": "other",\r
153         "name": "Null",\r
154         "xml": "<outcome value=''>\n",\r
155         "comments": "",\r
156         "outputs": 1,\r
157         "x": 921.0000953674316,\r
158         "y": 275.00008651893586,\r
159         "z": "655c6ddc.e1d044",\r
160         "wires": [\r
161             [\r
162                 "4d9ccf75.fe9af"\r
163             ]\r
164         ]\r
165     },\r
166     {\r
167         "id": "6579ac8.d79e654",\r
168         "type": "other",\r
169         "name": "other",\r
170         "xml": "<outcome value='Other'>\n",\r
171         "comments": "",\r
172         "outputs": 1,\r
173         "x": 914.0005035400391,\r
174         "y": 308.0000903336331,\r
175         "z": "655c6ddc.e1d044",\r
176         "wires": [\r
177             [\r
178                 "4494b904.813828"\r
179             ]\r
180         ]\r
181     },\r
182     {\r
183         "id": "4494b904.813828",\r
184         "type": "block",\r
185         "name": "block : atomic",\r
186         "xml": "<block atomic=\"true\">",\r
187         "atomic": "true",\r
188         "outputs": 1,\r
189         "x": 1061.2700462341309,\r
190         "y": 308.55473539512604,\r
191         "z": "655c6ddc.e1d044",\r
192         "wires": [\r
193             [\r
194                 "2347d15a.1d922e",\r
195                 "d97f0a58.4e7db8"\r
196             ]\r
197         ]\r
198     },\r
199     {\r
200         "id": "2347d15a.1d922e",\r
201         "type": "for",\r
202         "name": "for vidx..service-data.vnfs.vnf_length[]",\r
203         "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
204         "comments": "",\r
205         "outputs": 1,\r
206         "x": 1307.2861633300781,\r
207         "y": 315.4286558357999,\r
208         "z": "655c6ddc.e1d044",\r
209         "wires": [\r
210             [\r
211                 "ca1a5a9.775eaa8"\r
212             ]\r
213         ]\r
214     },\r
215     {\r
216         "id": "ca1a5a9.775eaa8",\r
217         "type": "block",\r
218         "name": "block",\r
219         "xml": "<block>\n",\r
220         "atomic": "false",\r
221         "comments": "",\r
222         "outputs": 1,\r
223         "x": 1526.6357955932617,\r
224         "y": 314.9687359062955,\r
225         "z": "655c6ddc.e1d044",\r
226         "wires": [\r
227             [\r
228                 "66b63707.1820b8"\r
229             ]\r
230         ]\r
231     },\r
232     {\r
233         "id": "66b63707.1820b8",\r
234         "type": "switchNode",\r
235         "name": "switch vnfid found",\r
236         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\r
237         "comments": "",\r
238         "outputs": 1,\r
239         "x": 1680.7153930664062,\r
240         "y": 314.67881796043366,\r
241         "z": "655c6ddc.e1d044",\r
242         "wires": [\r
243             [\r
244                 "ae7ef72d.e51818"\r
245             ]\r
246         ]\r
247     },\r
248     {\r
249         "id": "ae7ef72d.e51818",\r
250         "type": "outcomeTrue",\r
251         "name": "true",\r
252         "xml": "<outcome value='true'>\n",\r
253         "comments": "",\r
254         "outputs": 1,\r
255         "x": 1856.6675148010254,\r
256         "y": 314.57150003593415,\r
257         "z": "655c6ddc.e1d044",\r
258         "wires": [\r
259             [\r
260                 "502325a8.6e120c"\r
261             ]\r
262         ]\r
263     },\r
264     {\r
265         "id": "502325a8.6e120c",\r
266         "type": "block",\r
267         "name": "block : atomic",\r
268         "xml": "<block atomic=\"true\">",\r
269         "atomic": "true",\r
270         "outputs": 1,\r
271         "x": 2005.312973022461,\r
272         "y": 302.97913000267,\r
273         "z": "655c6ddc.e1d044",\r
274         "wires": [\r
275             [\r
276                 "1a1e9503.dc6a5b"\r
277             ]\r
278         ]\r
279     },\r
280     {\r
281         "id": "1a1e9503.dc6a5b",\r
282         "type": "set",\r
283         "name": "set tmp.vidx and ctx.vnf-data",\r
284         "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",\r
285         "comments": "",\r
286         "x": 2267.1997680664062,\r
287         "y": 280.3215563027188,\r
288         "z": "655c6ddc.e1d044",\r
289         "wires": []\r
290     },\r
291     {\r
292         "id": "d97f0a58.4e7db8",\r
293         "type": "switchNode",\r
294         "name": "switch tmp.vidx ",\r
295         "xml": "<switch test=\"`$tmp.vidx`\">\n\n",\r
296         "comments": "",\r
297         "outputs": 1,\r
298         "x": 1250.0000228881836,\r
299         "y": 369.99999353569,\r
300         "z": "655c6ddc.e1d044",\r
301         "wires": [\r
302             [\r
303                 "aa55c60d.624e08"\r
304             ]\r
305         ]\r
306     },\r
307     {\r
308         "id": "aa55c60d.624e08",\r
309         "type": "outcome",\r
310         "name": "NULL",\r
311         "xml": "<outcome value=''>\n",\r
312         "comments": "",\r
313         "outputs": 1,\r
314         "x": 1405.4286499023438,\r
315         "y": 369.57137701194733,\r
316         "z": "655c6ddc.e1d044",\r
317         "wires": [\r
318             [\r
319                 "d6654813.27fba8"\r
320             ]\r
321         ]\r
322     },\r
323     {\r
324         "id": "d6654813.27fba8",\r
325         "type": "returnFailure",\r
326         "name": "return failure",\r
327         "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",\r
328         "comments": "",\r
329         "x": 1550.8573913574219,\r
330         "y": 369.7143146721646,\r
331         "z": "655c6ddc.e1d044",\r
332         "wires": []\r
333     },\r
334     {\r
335         "id": "30cf2c07.d44e14",\r
336         "type": "switchNode",\r
337         "name": "switch vnf-level-oper-status",\r
338         "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",\r
339         "comments": "",\r
340         "outputs": 1,\r
341         "x": 618.0000762939453,\r
342         "y": 382.88902044296265,\r
343         "z": "655c6ddc.e1d044",\r
344         "wires": [\r
345             [\r
346                 "d1af1362.431e7",\r
347                 "a3563b5d.54f858"\r
348             ]\r
349         ]\r
350     },\r
351     {\r
352         "id": "d1af1362.431e7",\r
353         "type": "outcome",\r
354         "name": "outcome Active",\r
355         "xml": "<outcome value='Active'>\n",\r
356         "comments": "",\r
357         "outputs": 1,\r
358         "x": 863.8333702087402,\r
359         "y": 384.00011825561523,\r
360         "z": "655c6ddc.e1d044",\r
361         "wires": [\r
362             [\r
363                 "e723a3c3.7cd85"\r
364             ]\r
365         ]\r
366     },\r
367     {\r
368         "id": "e723a3c3.7cd85",\r
369         "type": "block",\r
370         "name": "block : atomic",\r
371         "xml": "<block atomic=\"true\">",\r
372         "atomic": "true",\r
373         "outputs": 1,\r
374         "x": 1077.139762878418,\r
375         "y": 393.32530784606934,\r
376         "z": "655c6ddc.e1d044",\r
377         "wires": [\r
378             []\r
379         ]\r
380     },\r
381     {\r
382         "id": "a3563b5d.54f858",\r
383         "type": "other",\r
384         "name": "other",\r
385         "xml": "<outcome value='Other'>\n",\r
386         "comments": "",\r
387         "outputs": 1,\r
388         "x": 841.8333892822266,\r
389         "y": 434.00012969970703,\r
390         "z": "655c6ddc.e1d044",\r
391         "wires": [\r
392             [\r
393                 "5cde8b39.a2f424"\r
394             ]\r
395         ]\r
396     },\r
397     {\r
398         "id": "5cde8b39.a2f424",\r
399         "type": "returnFailure",\r
400         "name": "return failure",\r
401         "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 is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",\r
402         "comments": "",\r
403         "x": 1001.3331565856934,\r
404         "y": 437.0001287460327,\r
405         "z": "655c6ddc.e1d044",\r
406         "wires": []\r
407     },\r
408     {\r
409         "id": "fbfde082.6174",\r
410         "type": "set",\r
411         "name": "copy input data to service data",\r
412         "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.' />",\r
413         "comments": "",\r
414         "x": 627.0065612792969,\r
415         "y": 442.010435461998,\r
416         "z": "655c6ddc.e1d044",\r
417         "wires": []\r
418     },\r
419     {\r
420         "id": "c6ba194.447c2e8",\r
421         "type": "save",\r
422         "name": "update AnAI - vnf-instance.orchestration-status",\r
423         "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=\"PendingDelete\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",\r
424         "comments": "",\r
425         "outputs": 1,\r
426         "x": 669.0064239501953,\r
427         "y": 588.0105141401291,\r
428         "z": "655c6ddc.e1d044",\r
429         "wires": [\r
430             []\r
431         ]\r
432     }\r
433 ]