+ "x": 1151.5715026855469,\r
+ "y": 868.5969713004306,\r
+ "z": "adc7d7d7.2ba55",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "4822a493.73c54c",\r
+ "type": "save",\r
+ "name": "save service relationship in AAI",\r
+ "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\n<!--key='service-instance.service-instance-id = $service-data.service-information.service-instance-id -->\n<!--key='service-instance.service-instance-id = $service-data.service-instance-id -->\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1184.2382736206055,\r
+ "y": 817.5968644889072,\r
+ "z": "adc7d7d7.2ba55",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "273e48bf.25ca5",\r
+ "type": "set",\r
+ "name": "set vnf-index and vnf-object-path",\r
+ "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
+ "comments": "",\r
+ "x": 1205.571533203125,\r
+ "y": 646.5968902381137,\r
+ "z": "adc7d7d7.2ba55",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "14fd2dd2.04e2ea",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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
+ "comments": "",\r
+ "x": 2635.142951965332,\r
+ "y": 212.19063165504485,\r
+ "z": "adc7d7d7.2ba55",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "4b57404f.d373b8",\r
+ "type": "save",\r
+ "name": "save AnAI - vnf-instance.orchestration-status",\r
+ "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=\"Created\" />\n<parameter name=\"in-maint\" value = \"true\" />\n<parameter name=\"vnf-type\" value='`$prop.vnfName`' />\n<parameter name=\"vnf-name\" value = \"`$prop.vnfName`\"/>\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=\"model-customization-id\" value = \"`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1260.5458374023438,\r
+ "y": 756.2471072943881,\r
+ "z": "adc7d7d7.2ba55",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "1ddf67d5.b35a7",\r
+ "type": "comment",\r
+ "name": "TODO: change AAI models",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 1194.1820983886719,\r
+ "y": 715.9743230612949,\r
+ "z": "adc7d7d7.2ba55",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "eb3e5b54.ee7cc8",\r
+ "type": "execute",\r
+ "name": "execute split parameterName",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1620.7395858764648,\r
+ "y": 209.75002291519195,\r
+ "z": "adc7d7d7.2ba55",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "a93d9d55.574d98",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1424.483383178711,\r
+ "y": 214.00189593154937,\r
+ "z": "adc7d7d7.2ba55",\r
+ "wires": [\r
+ [\r
+ "eb3e5b54.ee7cc8",\r
+ "34cb35bb.2ef0aa"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "616296b0.6f36",\r
+ "type": "for",\r
+ "name": "for loop idx - VNF input parameters",\r
+ "xml": "<for index=\"idx\" start=\"0\" end=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`\">\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1209.7050399780273,\r
+ "y": 216.44631197769195,\r
+ "z": "adc7d7d7.2ba55",\r
+ "wires": [\r
+ [\r
+ "a93d9d55.574d98"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "cdecd2ad.ea2458",\r
+ "type": "set",\r
+ "name": "set vnf-request-input.",\r
+ "xml": "<set>\n<parameter name='vnf-request-input.' value='`$vnf-topology-operation-input.vnf-request-input.`' />\n",\r
+ "comments": "",\r
+ "x": 1166.7046737670898,\r
+ "y": 286.77101900894195,\r
+ "z": "adc7d7d7.2ba55",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "34cb35bb.2ef0aa",\r
+ "type": "set",\r
+ "name": "set parameterName",\r
+ "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",\r
+ "comments": "",\r
+ "x": 1597.7395858764648,\r
+ "y": 255.75002291519195,\r
+ "z": "adc7d7d7.2ba55",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "9b5e953e.0822e8",\r
+ "type": "for",\r
+ "name": "for each sdwan-get-request-input-param",\r
+ "xml": "<for index=\"idx\" start=\"0\" end=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`\">\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1222.7395858764648,\r
+ "y": 338.75002291519195,\r
+ "z": "adc7d7d7.2ba55",\r
+ "wires": [\r
+ [\r
+ "42766226.3db64c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "42766226.3db64c",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1448.9722518920898,\r
+ "y": 337.09377291519195,\r
+ "z": "adc7d7d7.2ba55",\r
+ "wires": [\r
+ [\r
+ "85dff1eb.0e22b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "85dff1eb.0e22b8",\r
+ "type": "switchNode",\r
+ "name": "switch vnf name",\r
+ "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'name'`\">\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1605.4722518920898,\r
+ "y": 335.0938339503482,\r
+ "z": "adc7d7d7.2ba55",\r
+ "wires": [\r
+ [\r
+ "2f903a44.280976"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2f903a44.280976",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1766.4726181030273,\r
+ "y": 335.09389498550445,\r
+ "z": "adc7d7d7.2ba55",\r
+ "wires": [\r
+ [\r
+ "55b726c2.cd02d"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "55b726c2.cd02d",\r
+ "type": "set",\r
+ "name": "set vnf name",\r
+ "xml": "<set>\n<parameter name='prop.vnfName' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",\r
+ "comments": "",\r
+ "x": 1924.4727401733398,\r
+ "y": 333.6939316065982,\r
+ "z": "adc7d7d7.2ba55",\r