244799a1c5d54adb14db5a0e6b7df84ac9409db3
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.json
1 [\r
2     {\r
3         "id": "294747fd.2c2d98",\r
4         "type": "method",\r
5         "name": "method vnf-topology-operation-vpn-site-resource-activate",\r
6         "xml": "<method rpc='vnf-topology-operation-vpn-site-resource-activate' mode='sync'>\n",\r
7         "comments": "",\r
8         "outputs": 1,\r
9         "x": 211.5,\r
10         "y": 201.99997901916504,\r
11         "z": "79a5b197.5d84",\r
12         "wires": [\r
13             [\r
14                 "4068c2f3.520fdc"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "cff9203f.6e7f7",\r
20         "type": "dgstart",\r
21         "name": "DGSTART",\r
22         "outputs": 1,\r
23         "x": 89.0713882446289,\r
24         "y": 38,\r
25         "z": "79a5b197.5d84",\r
26         "wires": [\r
27             [\r
28                 "78d3821a.ddc91c"\r
29             ]\r
30         ]\r
31     },\r
32     {\r
33         "id": "78d3821a.ddc91c",\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": 188.35708618164062,\r
42         "y": 112.23810789268464,\r
43         "z": "79a5b197.5d84",\r
44         "wires": [\r
45             [\r
46                 "294747fd.2c2d98"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "4068c2f3.520fdc",\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": 189.73804473876953,\r
58         "y": 373.66666814964265,\r
59         "z": "79a5b197.5d84",\r
60         "wires": [\r
61             [\r
62                 "3a6b0423.a0a0ac",\r
63                 "d7b531c1.f5a86",\r
64                 "29c1d8e.17e3128",\r
65                 "206b62f4.ff1b8e",\r
66                 "ac1ddf15.75241",\r
67                 "fd35c3d4.a8e8a"\r
68             ]\r
69         ]\r
70     },\r
71     {\r
72         "id": "3a6b0423.a0a0ac",\r
73         "type": "set",\r
74         "name": "set vnf-level-oper-status to Active",\r
75         "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`' />",\r
76         "comments": "",\r
77         "x": 598.8850250244141,\r
78         "y": 446.67056941986084,\r
79         "z": "79a5b197.5d84",\r
80         "wires": []\r
81     },\r
82     {\r
83         "id": "d7b531c1.f5a86",\r
84         "type": "returnSuccess",\r
85         "name": "return success",\r
86         "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
87         "comments": "",\r
88         "x": 519.0717163085938,\r
89         "y": 572.5971069335938,\r
90         "z": "79a5b197.5d84",\r
91         "wires": []\r
92     },\r
93     {\r
94         "id": "29c1d8e.17e3128",\r
95         "type": "set",\r
96         "name": "set vnf-index and vnf-object-path",\r
97         "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
98         "comments": "",\r
99         "x": 605.0716705322266,\r
100         "y": 394.5968236923218,\r
101         "z": "79a5b197.5d84",\r
102         "wires": []\r
103     },\r
104     {\r
105         "id": "206b62f4.ff1b8e",\r
106         "type": "switchNode",\r
107         "name": "switch service-data.vnfs.vnf_length",\r
108         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
109         "comments": "",\r
110         "outputs": 1,\r
111         "x": 619.5000610351562,\r
112         "y": 263.00000545661896,\r
113         "z": "79a5b197.5d84",\r
114         "wires": [\r
115             [\r
116                 "510e4a8b.ead204",\r
117                 "c779a013.c610f",\r
118                 "7ee910c1.660bf"\r
119             ]\r
120         ]\r
121     },\r
122     {\r
123         "id": "7ee910c1.660bf",\r
124         "type": "outcome",\r
125         "name": "0",\r
126         "xml": "<outcome value='0'>\n",\r
127         "comments": "",\r
128         "outputs": 1,\r
129         "x": 878.4689559936523,\r
130         "y": 224.96876499336213,\r
131         "z": "79a5b197.5d84",\r
132         "wires": [\r
133             [\r
134                 "a7558172.b2121"\r
135             ]\r
136         ]\r
137     },\r
138     {\r
139         "id": "a7558172.b2121",\r
140         "type": "returnFailure",\r
141         "name": "return failure",\r
142         "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
143         "comments": "",\r
144         "x": 1033.2778434753418,\r
145         "y": 243.88903352897614,\r
146         "z": "79a5b197.5d84",\r
147         "wires": []\r
148     },\r
149     {\r
150         "id": "510e4a8b.ead204",\r
151         "type": "other",\r
152         "name": "Null",\r
153         "xml": "<outcome value=''>\n",\r
154         "comments": "",\r
155         "outputs": 1,\r
156         "x": 871.5000953674316,\r
157         "y": 264.00008651893586,\r
158         "z": "79a5b197.5d84",\r
159         "wires": [\r
160             [\r
161                 "a7558172.b2121"\r
162             ]\r
163         ]\r
164     },\r
165     {\r
166         "id": "c779a013.c610f",\r
167         "type": "other",\r
168         "name": "other",\r
169         "xml": "<outcome value='Other'>\n",\r
170         "comments": "",\r
171         "outputs": 1,\r
172         "x": 864.5005035400391,\r
173         "y": 297.0000903336331,\r
174         "z": "79a5b197.5d84",\r
175         "wires": [\r
176             [\r
177                 "6aaa180d.7575b8"\r
178             ]\r
179         ]\r
180     },\r
181     {\r
182         "id": "6aaa180d.7575b8",\r
183         "type": "block",\r
184         "name": "block : atomic",\r
185         "xml": "<block atomic=\"true\">",\r
186         "atomic": "true",\r
187         "outputs": 1,\r
188         "x": 1011.7700462341309,\r
189         "y": 297.55473539512604,\r
190         "z": "79a5b197.5d84",\r
191         "wires": [\r
192             [\r
193                 "46580136.d7c0b"\r
194             ]\r
195         ]\r
196     },\r
197     {\r
198         "id": "46580136.d7c0b",\r
199         "type": "for",\r
200         "name": "for vidx..service-data.vnfs.vnf_length[]",\r
201         "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
202         "comments": "",\r
203         "outputs": 1,\r
204         "x": 1257.7861633300781,\r
205         "y": 304.4286558357999,\r
206         "z": "79a5b197.5d84",\r
207         "wires": [\r
208             [\r
209                 "a66fcd87.a077a"\r
210             ]\r
211         ]\r
212     },\r
213     {\r
214         "id": "a66fcd87.a077a",\r
215         "type": "block",\r
216         "name": "block",\r
217         "xml": "<block>\n",\r
218         "atomic": "false",\r
219         "comments": "",\r
220         "outputs": 1,\r
221         "x": 1477.1357955932617,\r
222         "y": 303.9687359062955,\r
223         "z": "79a5b197.5d84",\r
224         "wires": [\r
225             [\r
226                 "ba7c0ee7.d144d"\r
227             ]\r
228         ]\r
229     },\r
230     {\r
231         "id": "ba7c0ee7.d144d",\r
232         "type": "switchNode",\r
233         "name": "switch vnfid found",\r
234         "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",\r
235         "comments": "",\r
236         "outputs": 1,\r
237         "x": 1631.2153930664062,\r
238         "y": 303.67881796043366,\r
239         "z": "79a5b197.5d84",\r
240         "wires": [\r
241             [\r
242                 "a9157f30.c0f4f"\r
243             ]\r
244         ]\r
245     },\r
246     {\r
247         "id": "a9157f30.c0f4f",\r
248         "type": "outcomeTrue",\r
249         "name": "true",\r
250         "xml": "<outcome value='true'>\n",\r
251         "comments": "",\r
252         "outputs": 1,\r
253         "x": 1807.1675148010254,\r
254         "y": 303.57150003593415,\r
255         "z": "79a5b197.5d84",\r
256         "wires": [\r
257             [\r
258                 "e051341c.b94158"\r
259             ]\r
260         ]\r
261     },\r
262     {\r
263         "id": "e051341c.b94158",\r
264         "type": "set",\r
265         "name": "set tmp.vidx and ctx.vnf-data",\r
266         "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",\r
267         "comments": "",\r
268         "x": 2016.6998901367188,\r
269         "y": 305.3216001717374,\r
270         "z": "79a5b197.5d84",\r
271         "wires": []\r
272     },\r
273     {\r
274         "id": "ac1ddf15.75241",\r
275         "type": "save",\r
276         "name": "update AnAI - vnf-instance.orchestration-status",\r
277         "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\" />",\r
278         "comments": "",\r
279         "outputs": 1,\r
280         "x": 624.5000305175781,\r
281         "y": 513.0103950500488,\r
282         "z": "79a5b197.5d84",\r
283         "wires": [\r
284             []\r
285         ]\r
286     },\r
287     {\r
288         "id": "fd35c3d4.a8e8a",\r
289         "type": "set",\r
290         "name": "copy input data to service data",\r
291         "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
292         "comments": "",\r
293         "x": 603.5001449584961,\r
294         "y": 344.010356426239,\r
295         "z": "79a5b197.5d84",\r
296         "wires": []\r
297     }\r
298 ]