3 "id": "aeae6125.a8d28",
\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
10 "y": 223.9999925820157,
\r
11 "z": "3deddfaf.57c2f",
\r
19 "id": "3eb5635c.ae734c",
\r
23 "x": 141.57138061523438,
\r
25 "z": "3deddfaf.57c2f",
\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
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
41 "x": 243.85708618164062,
\r
42 "y": 134.23810407798737,
\r
43 "z": "3deddfaf.57c2f",
\r
51 "id": "10f15a6d.ba1d76",
\r
53 "name": "block : atomic",
\r
54 "xml": "<block atomic=\"true\">",
\r
57 "x": 245.23804473876953,
\r
58 "y": 395.6666643349454,
\r
59 "z": "3deddfaf.57c2f",
\r
78 "id": "3afb3c65.1ca3a4",
\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
83 "x": 667.3848571777344,
\r
84 "y": 759.670597076416,
\r
85 "z": "3deddfaf.57c2f",
\r
89 "id": "175dc57.fde8c3b",
\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
94 "x": 659.2380447387695,
\r
95 "y": 654.6668491363525,
\r
96 "z": "3deddfaf.57c2f",
\r
100 "id": "a5e91b3d.29e478",
\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
106 "x": 647.5715484619141,
\r
107 "y": 604.3334331512451,
\r
108 "z": "3deddfaf.57c2f",
\r
114 "id": "ff8a3cb6.2dc93",
\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
119 "x": 658.5716247558594,
\r
120 "y": 711.3334369659424,
\r
121 "z": "3deddfaf.57c2f",
\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
131 "x": 674.5713653564453,
\r
132 "y": 274.3333559036255,
\r
133 "z": "3deddfaf.57c2f",
\r
142 "id": "fe0779f6.a341a8",
\r
145 "xml": "<outcome value=''>\n",
\r
148 "x": 909.2857513427734,
\r
149 "y": 269.47617626190186,
\r
150 "z": "3deddfaf.57c2f",
\r
158 "id": "e3b683ce.f47fd",
\r
160 "name": "set vnf-index=0",
\r
161 "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",
\r
163 "x": 1069.5714569091797,
\r
164 "y": 269.47626781463623,
\r
165 "z": "3deddfaf.57c2f",
\r
169 "id": "9f0ded05.d925c",
\r
172 "xml": "<outcome value='Other'>\n",
\r
175 "x": 905.7142906188965,
\r
176 "y": 302.76200771331787,
\r
177 "z": "3deddfaf.57c2f",
\r
185 "id": "b6024395.bc24",
\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
190 "x": 1298.571533203125,
\r
191 "y": 281.04773330688477,
\r
192 "z": "3deddfaf.57c2f",
\r
196 "id": "3b57b625.74c07a",
\r
198 "name": "for each existing VNF",
\r
199 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
\r
202 "x": 1287.0001525878906,
\r
203 "y": 316.04770517349243,
\r
204 "z": "3deddfaf.57c2f",
\r
212 "id": "411ddf99.4fbb3",
\r
215 "xml": "<block>\n",
\r
219 "x": 1040.4285736083984,
\r
220 "y": 304.76197719573975,
\r
221 "z": "3deddfaf.57c2f",
\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
236 "x": 1680.285888671875,
\r
237 "y": 316.61918926239014,
\r
238 "z": "3deddfaf.57c2f",
\r
246 "id": "b4dc78a5.d896c8",
\r
247 "type": "outcomeTrue",
\r
249 "xml": "<outcome value='true'>\n",
\r
252 "x": 1961.571590423584,
\r
253 "y": 315.19059467315674,
\r
254 "z": "3deddfaf.57c2f",
\r
262 "id": "4be264b1.270e6c",
\r
264 "name": "make sure this vnf-id doesn't exist already",
\r
267 "x": 1649.4285049438477,
\r
268 "y": 280.1905813217163,
\r
269 "z": "3deddfaf.57c2f",
\r
273 "id": "9885c8cf.ded0d8",
\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
278 "x": 619.5715484619141,
\r
279 "y": 552.333429813385,
\r
280 "z": "3deddfaf.57c2f",
\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
289 "x": 606.5715103149414,
\r
290 "y": 1022.5969486236572,
\r
291 "z": "3deddfaf.57c2f",
\r
295 "id": "3a3acb9a.529fc4",
\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
302 "y": 969.5968418121338,
\r
303 "z": "3deddfaf.57c2f",
\r
309 "id": "fff46357.6f3ad",
\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
314 "x": 660.5715408325195,
\r
315 "y": 800.5968675613403,
\r
316 "z": "3deddfaf.57c2f",
\r
320 "id": "5da9f931.70bc48",
\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
325 "x": 625.5711822509766,
\r
326 "y": 503.32480239868164,
\r
327 "z": "3deddfaf.57c2f",
\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
336 "x": 2090.1429595947266,
\r
337 "y": 366.1906089782715,
\r
338 "z": "3deddfaf.57c2f",
\r
342 "id": "df8e278a.898b28",
\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
348 "x": 715.5458450317383,
\r
349 "y": 910.2470846176147,
\r
350 "z": "3deddfaf.57c2f",
\r
356 "id": "6f579a3f.d15af4",
\r
358 "name": "TODO: change AAI models",
\r
361 "x": 649.1821060180664,
\r
362 "y": 869.9743003845215,
\r
363 "z": "3deddfaf.57c2f",
\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
373 "x": 693.0000152587891,
\r
374 "y": 393.0000114440918,
\r
375 "z": "3deddfaf.57c2f",
\r
385 "id": "33ff6eed.504462",
\r
386 "type": "outcomeTrue",
\r
387 "name": "SDWAN-vpn",
\r
388 "xml": "<outcome value='SDWAN-vpn'>",
\r
391 "x": 990.6667137145996,
\r
392 "y": 378.0000114440918,
\r
393 "z": "3deddfaf.57c2f",
\r
401 "id": "e2af6995.223f28",
\r
402 "type": "outcomeTrue",
\r
403 "name": "SDWAN-site",
\r
404 "xml": "<outcome value='SDWAN-site'>",
\r
407 "x": 983.6666870117188,
\r
409 "z": "3deddfaf.57c2f",
\r
417 "id": "cc14ee3a.bceeb",
\r
420 "xml": "<outcome value='Other'>\n",
\r
423 "x": 966.6666870117188,
\r
425 "z": "3deddfaf.57c2f",
\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
438 "x": 1137.333366394043,
\r
439 "y": 476.00001335144043,
\r
440 "z": "3deddfaf.57c2f",
\r
444 "id": "55868aa1.2254e4",
\r
446 "name": "block : atomic",
\r
447 "xml": "<block atomic=\"true\">",
\r
452 "z": "3deddfaf.57c2f",
\r
458 "id": "496e33ab.398b4c",
\r
460 "name": "block : atomic",
\r
461 "xml": "<block atomic=\"true\">",
\r
466 "z": "3deddfaf.57c2f",
\r