3 "id": "58d8ca80.754ee4",
9 "z": "5ff8bbe7.b04e84",
17 "id": "9b331136.66aea",
18 "type": "service-logic",
19 "name": "GENERIC-RESOURCE-API ${project.version}",
20 "module": "GENERIC-RESOURCE-API",
21 "version": "${project.version}",
23 "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}'>",
25 "x": 185.28569793701172,
26 "y": 112.23810789268464,
27 "z": "5ff8bbe7.b04e84",
35 "id": "ec9fe349.f9372",
37 "name": "method sdwan-vnf-topology-operation-wanport-create",
38 "xml": "<method rpc='sdwan-vnf-topology-operation-wanport-create' mode='sync'>\n",
41 "x": 209.42861938476562,
42 "y": 201.0000195503235,
43 "z": "5ff8bbe7.b04e84",
51 "id": "87efdcb1.d6671",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
57 "x": 317.6667022705078,
58 "y": 408.66668367385864,
59 "z": "5ff8bbe7.b04e84",
79 "id": "daaa1789.61ed38",
80 "type": "returnSuccess",
81 "name": "return success",
82 "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",
84 "x": 607.3336334228516,
85 "y": 860.3338012695312,
86 "z": "5ff8bbe7.b04e84",
90 "id": "40e846a4.f63368",
92 "name": "save sdwan device port configuration in AAI",
93 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n key='wan-port-config.wan-port-config-id = $prop.vnf-index' >\n<parameter name=\"wan-port-config-id\" value=\"`$prop.vnf-index`\" />\n<parameter name=\"wan-port-config-name\" value=\"`$prop.wan.name`\" />\n<parameter name=\"device-id\" value=\"`$prop.wan.deviceName`\" />\n<parameter name='vlan-id' value=\"`$prop.wan.vlanId`\" />\n<parameter name=\"ip-address\" value=\"`$prop.wan.ipAddress`\" />\n<parameter name=\"provider-ip-address\" value=\"`$prop.wan.providerIpAddress`\" />\n<parameter name=\"input-bandwidth\" value=\"`$prop.wan.inputBandwidth`\" />\n<parameter name=\"output-bandwidth\" value=\"`$prop.wan.outputBandwidth`\" />\n<parameter name=\"description\" value=\"`$prop.wan.description`\" />\n<parameter name=\"port-type\" value=\"`$prop.wan.portType`\" />\n<parameter name=\"port-number\" value=\"`$prop.wan.portNumber`\" />\n<parameter name=\"transport-network-name\" value=\"`$prop.wan.transportNetworkName`\" />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-index + '/vnf-data/'` \" />\n",
96 "x": 694.0003890991211,
97 "y": 767.5560441017151,
98 "z": "5ff8bbe7.b04e84",
104 "id": "b8f54335.fcb32",
106 "name": "for loop idx - VNF input parameters",
107 "xml": "<for index=\"idx\" start=\"0\" end=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`\">\n",
110 "x": 672.0004577636719,
111 "y": 434.67542362213135,
112 "z": "5ff8bbe7.b04e84",
120 "id": "acd8d091.0d71d",
127 "x": 886.7788009643555,
128 "y": 432.23100757598877,
129 "z": "5ff8bbe7.b04e84",
138 "id": "cf40793a.a6d2e8",
140 "name": "set input parameters",
143 "x": 890.6736488342285,
144 "y": 560.5970115661621,
145 "z": "5ff8bbe7.b04e84",
149 "id": "4e193e5a.f6bb9",
150 "type": "switchNode",
151 "name": "switch service-data.vnfs.vnf_length",
152 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
155 "x": 682.9898223876953,
156 "y": 131.59689903259277,
157 "z": "5ff8bbe7.b04e84",
166 "id": "54b6d1d2.416d5",
169 "xml": "<outcome value=''>\n",
172 "x": 919.7040500640869,
173 "y": 121.7397289276123,
174 "z": "5ff8bbe7.b04e84",
182 "id": "503b3e94.4de07",
185 "xml": "<outcome value='Other'>\n",
188 "x": 915.1327667236328,
189 "y": 160.02557945251465,
190 "z": "5ff8bbe7.b04e84",
198 "id": "f27d7807.d35938",
205 "x": 1047.8469619750977,
206 "y": 165.02551937103271,
207 "z": "5ff8bbe7.b04e84",
216 "id": "b3cfe846.219ca8",
218 "name": "set vnf-index=0",
219 "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",
221 "x": 1075.9898643493652,
222 "y": 120.73980903625488,
223 "z": "5ff8bbe7.b04e84",
227 "id": "7ed2d1b2.320ec",
229 "name": "set vnf-index = vnf_length",
230 "xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",
232 "x": 1276.989875793457,
233 "y": 137.31122303009033,
234 "z": "5ff8bbe7.b04e84",
238 "id": "e6e34bc5.a44238",
240 "name": "for each existing VNF",
241 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
244 "x": 1259.418342590332,
245 "y": 177.31118488311768,
246 "z": "5ff8bbe7.b04e84",
254 "id": "e6e708fd.086418",
255 "type": "switchNode",
256 "name": "switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id",
257 "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",
260 "x": 1617.7041244506836,
261 "y": 176.88268852233887,
262 "z": "5ff8bbe7.b04e84",
270 "id": "55da435b.f5309c",
271 "type": "returnFailure",
272 "name": "return failure",
273 "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",
275 "x": 2060.5610961914062,
276 "y": 177.4541187286377,
277 "z": "5ff8bbe7.b04e84",
281 "id": "f6e0def3.d2f88",
282 "type": "outcomeTrue",
284 "xml": "<outcome value='true'>\n",
287 "x": 1922.9897651672363,
288 "y": 176.45411491394043,
289 "z": "5ff8bbe7.b04e84",
297 "id": "c7efce39.0f90c",
299 "name": "execute generate-vnf-index",
300 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vnf-index\"/>\n",
303 "x": 661.9897155761719,
304 "y": 263.59686851501465,
305 "z": "5ff8bbe7.b04e84",
311 "id": "83c99a9.e9d4868",
313 "name": "set new vnf_length",
314 "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",
316 "x": 635.9897003173828,
317 "y": 228.59687662124634,
318 "z": "5ff8bbe7.b04e84",
322 "id": "ee0f7cd9.73819",
324 "name": "set vnf-level-oper-status to Created",
325 "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",
327 "x": 680.9897918701172,
328 "y": 679.5971269607544,
329 "z": "5ff8bbe7.b04e84",
333 "id": "596fe131.2f016",
335 "name": "copy input data",
336 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id' value='`$prop.vnf-index`' />\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",
338 "x": 614.8429145812988,
339 "y": 633.5933895111084,
340 "z": "5ff8bbe7.b04e84",
344 "id": "618cf28.a3bd10c",
346 "name": "save service relationship in AAI",
347 "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=\"wan-port-config\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/wan-port-configs/wan-port-config/' + $prop.vnf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"wan-port-config.wan-port-config-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vnf-index`\" />",
350 "x": 664.9897918701172,
351 "y": 815.5972166061401,
352 "z": "5ff8bbe7.b04e84",
358 "id": "2794c131.0510ce",
360 "name": "set vnf-index and vnf-object-path",
361 "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-index`' />\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-index + '/vnf-data/'` \" />",
363 "x": 667.9897232055664,
364 "y": 723.597137928009,
365 "z": "5ff8bbe7.b04e84",
369 "id": "4dbd7ea2.8473c",
372 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"sdwan-wanport-vnf-topology-operation-create\"/>\n<parameter name=\"field3\" value=\"SDWAN-Config\"/>\n",
375 "x": 600.0000267028809,
376 "y": 316.0000305175781,
377 "z": "5ff8bbe7.b04e84",
383 "id": "93da82db.2cdc9",
385 "name": "Take the parameter names by removing prefix",
388 "x": 780.0003204345703,
389 "y": 404.0000858306885,
390 "z": "5ff8bbe7.b04e84",
394 "id": "828392b5.41563",
396 "name": "execute split parameterName",
397 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",
400 "x": 1100.034912109375,
401 "y": 382.9791307449341,
402 "z": "5ff8bbe7.b04e84",
408 "id": "a73faa8e.c89ba8",
410 "name": "set parameterName",
411 "xml": "<set>\n<parameter name=\"`vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",
413 "x": 1068.4794158935547,
414 "y": 451.97921657562256,
415 "z": "5ff8bbe7.b04e84",
419 "id": "a279f8fb.0934f8",
421 "name": "call sdwan-get-wan-param",
422 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",
425 "x": 645.0004463195801,
426 "y": 565.0004005432129,
427 "z": "5ff8bbe7.b04e84",
433 "id": "4f31f3dc.48bbdc",
435 "name": "set vnf-request-input.",
436 "xml": "<set>\n<parameter name='vnf-request-input.' value='`$vnf-topology-operation-input.vnf-request-input.`' />\n",
438 "x": 626.0000305175781,
439 "y": 532.000147819519,
440 "z": "5ff8bbe7.b04e84",