Fix SDWAN peer wise integration testing issues
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json
1 [\r
2     {\r
3         "id": "aeae6125.a8d28",\r
4         "type": "method",\r
5         "name": "method vnf-topology-operation-vpn-site-resource-create",\r
6         "xml": "<method rpc='vnf-topology-operation-vpn-site-resource-create' mode='sync'>\n",\r
7         "comments": "",\r
8         "outputs": 1,\r
9         "x": 265,\r
10         "y": 223.9999925820157,\r
11         "z": "3deddfaf.57c2f",\r
12         "wires": [\r
13             [\r
14                 "10f15a6d.ba1d76"\r
15             ]\r
16         ]\r
17     },\r
18     {\r
19         "id": "3eb5635c.ae734c",\r
20         "type": "dgstart",\r
21         "name": "DGSTART",\r
22         "outputs": 1,\r
23         "x": 141.57138061523438,\r
24         "y": 76,\r
25         "z": "3deddfaf.57c2f",\r
26         "wires": [\r
27             [\r
28                 "1821ad11.5dad23"\r
29             ]\r
30         ]\r
31     },\r
32     {\r
33         "id": "1821ad11.5dad23",\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": 243.85708618164062,\r
42         "y": 134.23810407798737,\r
43         "z": "3deddfaf.57c2f",\r
44         "wires": [\r
45             [\r
46                 "aeae6125.a8d28"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "10f15a6d.ba1d76",\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": 245.23804473876953,\r
58         "y": 395.6666643349454,\r
59         "z": "3deddfaf.57c2f",\r
60         "wires": [\r
61             [\r
62                 "175dc57.fde8c3b",\r
63                 "3afb3c65.1ca3a4",\r
64                 "fadde341.82f5a",\r
65                 "9885c8cf.ded0d8",\r
66                 "a5e91b3d.29e478",\r
67                 "6e79157a.cf280c",\r
68                 "fff46357.6f3ad",\r
69                 "5da9f931.70bc48",\r
70                 "df8e278a.898b28",\r
71                 "3a3acb9a.529fc4",\r
72                 "ff8a3cb6.2dc93",\r
73                 "1bd26429.61c74c"\r
74             ]\r
75         ]\r
76     },\r
77     {\r
78         "id": "3afb3c65.1ca3a4",\r
79         "type": "set",\r
80         "name": "set vnf-level-oper-status to Created",\r
81         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].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[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",\r
82         "comments": "",\r
83         "x": 667.3848571777344,\r
84         "y": 759.670597076416,\r
85         "z": "3deddfaf.57c2f",\r
86         "wires": []\r
87     },\r
88     {\r
89         "id": "175dc57.fde8c3b",\r
90         "type": "set",\r
91         "name": "copy input data to service data",\r
92         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id' value='`$prop.vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='$vnf-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' value='$vnf-topology-operation-input.vnf-request-input.' />\n\n",\r
93         "comments": "",\r
94         "x": 659.2380447387695,\r
95         "y": 654.6668491363525,\r
96         "z": "3deddfaf.57c2f",\r
97         "wires": []\r
98     },\r
99     {\r
100         "id": "a5e91b3d.29e478",\r
101         "type": "execute",\r
102         "name": "execute generate-vnf-index",\r
103         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vnf-id\"/>\n",\r
104         "comments": "",\r
105         "outputs": 1,\r
106         "x": 647.5715484619141,\r
107         "y": 604.3334331512451,\r
108         "z": "3deddfaf.57c2f",\r
109         "wires": [\r
110             []\r
111         ]\r
112     },\r
113     {\r
114         "id": "ff8a3cb6.2dc93",\r
115         "type": "set",\r
116         "name": "set vnf-index to service data",\r
117         "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id' value='`$prop.vnf-id`' />\n",\r
118         "comments": "",\r
119         "x": 658.5716247558594,\r
120         "y": 711.3334369659424,\r
121         "z": "3deddfaf.57c2f",\r
122         "wires": []\r
123     },\r
124     {\r
125         "id": "fadde341.82f5a",\r
126         "type": "switchNode",\r
127         "name": "switch service-data.vnfs.vnf_length",\r
128         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
129         "comments": "",\r
130         "outputs": 1,\r
131         "x": 674.5713653564453,\r
132         "y": 274.3333559036255,\r
133         "z": "3deddfaf.57c2f",\r
134         "wires": [\r
135             [\r
136                 "fe0779f6.a341a8",\r
137                 "9f0ded05.d925c"\r
138             ]\r
139         ]\r
140     },\r
141     {\r
142         "id": "fe0779f6.a341a8",\r
143         "type": "other",\r
144         "name": "NULL",\r
145         "xml": "<outcome value=''>\n",\r
146         "comments": "",\r
147         "outputs": 1,\r
148         "x": 909.2857513427734,\r
149         "y": 269.47617626190186,\r
150         "z": "3deddfaf.57c2f",\r
151         "wires": [\r
152             [\r
153                 "e3b683ce.f47fd"\r
154             ]\r
155         ]\r
156     },\r
157     {\r
158         "id": "e3b683ce.f47fd",\r
159         "type": "set",\r
160         "name": "set vnf-index=0",\r
161         "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",\r
162         "comments": "",\r
163         "x": 1069.5714569091797,\r
164         "y": 269.47626781463623,\r
165         "z": "3deddfaf.57c2f",\r
166         "wires": []\r
167     },\r
168     {\r
169         "id": "9f0ded05.d925c",\r
170         "type": "other",\r
171         "name": "other",\r
172         "xml": "<outcome value='Other'>\n",\r
173         "comments": "",\r
174         "outputs": 1,\r
175         "x": 905.7142906188965,\r
176         "y": 302.76200771331787,\r
177         "z": "3deddfaf.57c2f",\r
178         "wires": [\r
179             [\r
180                 "411ddf99.4fbb3"\r
181             ]\r
182         ]\r
183     },\r
184     {\r
185         "id": "b6024395.bc24",\r
186         "type": "set",\r
187         "name": "set vnf-index = vnf_length",\r
188         "xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",\r
189         "comments": "",\r
190         "x": 1298.571533203125,\r
191         "y": 281.04773330688477,\r
192         "z": "3deddfaf.57c2f",\r
193         "wires": []\r
194     },\r
195     {\r
196         "id": "3b57b625.74c07a",\r
197         "type": "for",\r
198         "name": "for each existing VNF",\r
199         "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
200         "comments": "",\r
201         "outputs": 1,\r
202         "x": 1287.0001525878906,\r
203         "y": 316.04770517349243,\r
204         "z": "3deddfaf.57c2f",\r
205         "wires": [\r
206             [\r
207                 "a7076dba.f36af"\r
208             ]\r
209         ]\r
210     },\r
211     {\r
212         "id": "411ddf99.4fbb3",\r
213         "type": "block",\r
214         "name": "block",\r
215         "xml": "<block>\n",\r
216         "atomic": "false",\r
217         "comments": "",\r
218         "outputs": 1,\r
219         "x": 1040.4285736083984,\r
220         "y": 304.76197719573975,\r
221         "z": "3deddfaf.57c2f",\r
222         "wires": [\r
223             [\r
224                 "b6024395.bc24",\r
225                 "3b57b625.74c07a"\r
226             ]\r
227         ]\r
228     },\r
229     {\r
230         "id": "a7076dba.f36af",\r
231         "type": "switchNode",\r
232         "name": "switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id",\r
233         "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",\r
234         "comments": "",\r
235         "outputs": 1,\r
236         "x": 1680.285888671875,\r
237         "y": 316.61918926239014,\r
238         "z": "3deddfaf.57c2f",\r
239         "wires": [\r
240             [\r
241                 "b4dc78a5.d896c8"\r
242             ]\r
243         ]\r
244     },\r
245     {\r
246         "id": "b4dc78a5.d896c8",\r
247         "type": "outcomeTrue",\r
248         "name": "true",\r
249         "xml": "<outcome value='true'>\n",\r
250         "comments": "",\r
251         "outputs": 1,\r
252         "x": 1961.571590423584,\r
253         "y": 315.19059467315674,\r
254         "z": "3deddfaf.57c2f",\r
255         "wires": [\r
256             [\r
257                 "51ac74f.88fd58c"\r
258             ]\r
259         ]\r
260     },\r
261     {\r
262         "id": "4be264b1.270e6c",\r
263         "type": "comment",\r
264         "name": "make sure this vnf-id doesn't exist already",\r
265         "info": "",\r
266         "comments": "",\r
267         "x": 1649.4285049438477,\r
268         "y": 280.1905813217163,\r
269         "z": "3deddfaf.57c2f",\r
270         "wires": []\r
271     },\r
272     {\r
273         "id": "9885c8cf.ded0d8",\r
274         "type": "set",\r
275         "name": "set new vnf_length",\r
276         "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",\r
277         "comments": "",\r
278         "x": 619.5715484619141,\r
279         "y": 552.333429813385,\r
280         "z": "3deddfaf.57c2f",\r
281         "wires": []\r
282     },\r
283     {\r
284         "id": "6e79157a.cf280c",\r
285         "type": "returnSuccess",\r
286         "name": "return success",\r
287         "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
288         "comments": "",\r
289         "x": 606.5715103149414,\r
290         "y": 1022.5969486236572,\r
291         "z": "3deddfaf.57c2f",\r
292         "wires": []\r
293     },\r
294     {\r
295         "id": "3a3acb9a.529fc4",\r
296         "type": "save",\r
297         "name": "save service relationship in AAI",\r
298         "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \n         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/generic-vnfs/generic-vnf/' + $prop.vnf-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"generic-vnf.vnf-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vnf-id`\" />\n\n",\r
299         "comments": "",\r
300         "outputs": 1,\r
301         "x": 669.23828125,\r
302         "y": 969.5968418121338,\r
303         "z": "3deddfaf.57c2f",\r
304         "wires": [\r
305             []\r
306         ]\r
307     },\r
308     {\r
309         "id": "fff46357.6f3ad",\r
310         "type": "set",\r
311         "name": "set vnf-index and vnf-object-path",\r
312         "xml": "<set>\n<parameter name='vnfId' value='`$prop.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/'  + $prop.vnf-id  + '/vnf-data/'` \" />",\r
313         "comments": "",\r
314         "x": 660.5715408325195,\r
315         "y": 800.5968675613403,\r
316         "z": "3deddfaf.57c2f",\r
317         "wires": []\r
318     },\r
319     {\r
320         "id": "5da9f931.70bc48",\r
321         "type": "set",\r
322         "name": "set vnf-request-input.",\r
323         "xml": "<set>\n<parameter name='vnf-request-input.' value='`$vnf-topology-operation-input.vnf-request-input.`' />\n",\r
324         "comments": "",\r
325         "x": 625.5711822509766,\r
326         "y": 503.32480239868164,\r
327         "z": "3deddfaf.57c2f",\r
328         "wires": []\r
329     },\r
330     {\r
331         "id": "51ac74f.88fd58c",\r
332         "type": "returnFailure",\r
333         "name": "return failure",\r
334         "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 id ' + $service-data.vnfs.vnf[$idx].vnf-id\n      + ' already exists, and has order status ' + $service-data.vnfs.vnf[$idx].vnf-data.vnf-level-oper-status.order-status`\" />\n",\r
335         "comments": "",\r
336         "x": 2090.1429595947266,\r
337         "y": 366.1906089782715,\r
338         "z": "3deddfaf.57c2f",\r
339         "wires": []\r
340     },\r
341     {\r
342         "id": "df8e278a.898b28",\r
343         "type": "save",\r
344         "name": "save AnAI - vnf-instance.orchestration-status",\r
345         "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\"   \n\t\tkey=\"generic-vnf.vnf-id = $prop.vnf-id\" >\n<parameter name=\"orchestration-status\" value=\"create\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",\r
346         "comments": "",\r
347         "outputs": 1,\r
348         "x": 715.5458450317383,\r
349         "y": 910.2470846176147,\r
350         "z": "3deddfaf.57c2f",\r
351         "wires": [\r
352             []\r
353         ]\r
354     },\r
355     {\r
356         "id": "6f579a3f.d15af4",\r
357         "type": "comment",\r
358         "name": "TODO: change AAI models",\r
359         "info": "",\r
360         "comments": "",\r
361         "x": 649.1821060180664,\r
362         "y": 869.9743003845215,\r
363         "z": "3deddfaf.57c2f",\r
364         "wires": []\r
365     },\r
366     {\r
367         "id": "1bd26429.61c74c",\r
368         "type": "switchNode",\r
369         "name": "switch service-data.vnf-request-input.vnf-name",\r
370         "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-name`'>\n",\r
371         "comments": "",\r
372         "outputs": 1,\r
373         "x": 693.0000152587891,\r
374         "y": 393.0000114440918,\r
375         "z": "3deddfaf.57c2f",\r
376         "wires": [\r
377             [\r
378                 "33ff6eed.504462",\r
379                 "e2af6995.223f28",\r
380                 "cc14ee3a.bceeb"\r
381             ]\r
382         ]\r
383     },\r
384     {\r
385         "id": "33ff6eed.504462",\r
386         "type": "outcomeTrue",\r
387         "name": "SDWAN-vpn",\r
388         "xml": "<outcome value='SDWAN-vpn'>",\r
389         "comments": "",\r
390         "outputs": 1,\r
391         "x": 990.6667137145996,\r
392         "y": 378.0000114440918,\r
393         "z": "3deddfaf.57c2f",\r
394         "wires": [\r
395             [\r
396                 "55868aa1.2254e4"\r
397             ]\r
398         ]\r
399     },\r
400     {\r
401         "id": "e2af6995.223f28",\r
402         "type": "outcomeTrue",\r
403         "name": "SDWAN-site",\r
404         "xml": "<outcome value='SDWAN-site'>",\r
405         "comments": "",\r
406         "outputs": 1,\r
407         "x": 983.6666870117188,\r
408         "y": 428,\r
409         "z": "3deddfaf.57c2f",\r
410         "wires": [\r
411             [\r
412                 "496e33ab.398b4c"\r
413             ]\r
414         ]\r
415     },\r
416     {\r
417         "id": "cc14ee3a.bceeb",\r
418         "type": "other",\r
419         "name": "other",\r
420         "xml": "<outcome value='Other'>\n",\r
421         "comments": "",\r
422         "outputs": 1,\r
423         "x": 966.6666870117188,\r
424         "y": 478,\r
425         "z": "3deddfaf.57c2f",\r
426         "wires": [\r
427             [\r
428                 "c9a98bce.5a8c88"\r
429             ]\r
430         ]\r
431     },\r
432     {\r
433         "id": "c9a98bce.5a8c88",\r
434         "type": "returnFailure",\r
435         "name": "return failure",\r
436         "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=\"Error: vnf-name should be either SDWAN-vpn or SDWAN-site.\" />\n",\r
437         "comments": "",\r
438         "x": 1137.333366394043,\r
439         "y": 476.00001335144043,\r
440         "z": "3deddfaf.57c2f",\r
441         "wires": []\r
442     },\r
443     {\r
444         "id": "55868aa1.2254e4",\r
445         "type": "block",\r
446         "name": "block : atomic",\r
447         "xml": "<block atomic=\"true\">",\r
448         "atomic": "true",\r
449         "outputs": 1,\r
450         "x": 1172,\r
451         "y": 379,\r
452         "z": "3deddfaf.57c2f",\r
453         "wires": [\r
454             []\r
455         ]\r
456     },\r
457     {\r
458         "id": "496e33ab.398b4c",\r
459         "type": "block",\r
460         "name": "block : atomic",\r
461         "xml": "<block atomic=\"true\">",\r
462         "atomic": "true",\r
463         "outputs": 1,\r
464         "x": 1163,\r
465         "y": 427,\r
466         "z": "3deddfaf.57c2f",\r
467         "wires": [\r
468             []\r
469         ]\r
470     }\r
471 ]