SDWAN Device vf create not handled for invalid vnf id
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.json
index d7e57be..4760d35 100644 (file)
@@ -1,22 +1,22 @@
 [\r
     {\r
-        "id": "b9b83207.589ec",\r
+        "id": "ad9a9168.e57ff",\r
         "type": "switchNode",\r
         "name": "switch this vnf-id == input vnf-id",\r
         "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\">    \n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1124.8294982910156,\r
-        "y": 251.16278839111328,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 956.03125,\r
+        "y": 159.13152408599854,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "8cae152d.7cd218"\r
+                "e7246404.3ab3d8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "e1800fba.baf5f",\r
+        "id": "6ad25904.845b18",\r
         "type": "service-logic",\r
         "name": "GENERIC-RESOURCE-API ${project.version}",\r
         "module": "GENERIC-RESOURCE-API",\r
         "comments": "",\r
         "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
         "outputs": 1,\r
-        "x": 414.5,\r
-        "y": 144.99999237060547,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 228.7017364501953,\r
+        "y": 186.96871662139893,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "6d32e66a.a8bcf8"\r
+                "f16fce6c.5d5ba"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "6d32e66a.a8bcf8",\r
+        "id": "f16fce6c.5d5ba",\r
         "type": "method",\r
         "name": "sdwan-vf-operation-device-create",\r
         "xml": "<method rpc='sdwan-vf-operation-device-create' mode='sync'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 413.5,\r
-        "y": 244.99999237060547,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 227.7017364501953,\r
+        "y": 286.9687166213989,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "1cc250f1.53fd7f"\r
+                "c112bcf.84b4e4"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "9c8db0b.eb2055",\r
+        "id": "1a36f303.fc1c1d",\r
         "type": "dgstart",\r
         "name": "DGSTART",\r
         "outputs": 1,\r
-        "x": 244,\r
-        "y": 56,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 114.20173835754395,\r
+        "y": 79.96872520446777,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "e1800fba.baf5f"\r
+                "6ad25904.845b18"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1cc250f1.53fd7f",\r
+        "id": "c112bcf.84b4e4",\r
         "type": "block",\r
         "name": "block : atomic",\r
         "xml": "<block atomic=\"true\">\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 572.4999847412109,\r
-        "y": 361.0000009536743,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 386.70172119140625,\r
+        "y": 402.9687252044678,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "3397e2d.64c521e",\r
-                "92ec911d.95b14",\r
-                "fa9c393f.4d0eb8",\r
-                "1192cb09.4cd2d5",\r
-                "3e5eeaad.69c6b6",\r
-                "7e451b6c.fd6624",\r
-                "f6264050.f42d5",\r
-                "9e2c8c11.572dc",\r
-                "407f8a81.546654",\r
-                "f1088162.3598e",\r
-                "4489ad98.445654",\r
-                "860ccaf0.19f1e8"\r
+                "abed0b7b.e9c438",\r
+                "724392ca.bd7b5c",\r
+                "2b72757.931558a",\r
+                "a49a2243.bbcb2",\r
+                "c992605b.552a5",\r
+                "40876e67.4cc8d",\r
+                "86ee3fd8.45a8b",\r
+                "414cae1d.205f6",\r
+                "7ba39512.c516ac",\r
+                "3a2a0968.648d36",\r
+                "7024b9ac.3160d8",\r
+                "fdab20c0.e8295",\r
+                "d3c28e8a.2aecc",\r
+                "b7d7095a.45e048"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "3397e2d.64c521e",\r
+        "id": "abed0b7b.e9c438",\r
         "type": "for",\r
         "name": "for each vnf",\r
         "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 872.8294067382812,\r
-        "y": 252.49612522125244,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 704.0311584472656,\r
+        "y": 160.4648609161377,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "b9b83207.589ec"\r
+                "ad9a9168.e57ff"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1913a60e.b7faaa",\r
+        "id": "4ed9f1d2.fc2b7",\r
         "type": "set",\r
         "name": "set vnf-index",\r
         "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",\r
         "comments": "",\r
-        "x": 1496.4959869384766,\r
-        "y": 253.16279125213623,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 1327.697738647461,\r
+        "y": 161.13152694702148,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": []\r
     },\r
     {\r
-        "id": "8cae152d.7cd218",\r
+        "id": "e7246404.3ab3d8",\r
         "type": "outcomeTrue",\r
         "name": "true",\r
         "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1343.1628150939941,\r
-        "y": 253.16277027130127,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 1174.3645668029785,\r
+        "y": 161.13150596618652,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "1913a60e.b7faaa"\r
+                "4ed9f1d2.fc2b7"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1192cb09.4cd2d5",\r
+        "id": "2b72757.931558a",\r
         "type": "for",\r
         "name": "for loop idx - VF input parameters",\r
         "xml": "<for index=\"idx\" start=\"0\" end=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`\">\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 946.7501907348633,\r
-        "y": 474.66665840148926,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 784.9518966674805,\r
+        "y": 561.6354055404663,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "f80594ca.7a0348"\r
+                "1cf539f3.af1b96"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f80594ca.7a0348",\r
+        "id": "1cf539f3.af1b96",\r
         "type": "block",\r
         "name": "block",\r
         "xml": "<block>\n",\r
         "atomic": "false",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1161.5285339355469,\r
-        "y": 472.2222423553467,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 999.7302398681641,\r
+        "y": 559.1909894943237,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "99d262e0.f0c14",\r
-                "9b7ec3.98d4c14"\r
+                "1a9f780a.a03398",\r
+                "dcb3e18.352e72"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "99d262e0.f0c14",\r
+        "id": "1a9f780a.a03398",\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='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-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": 1357.7847366333008,\r
-        "y": 449.97038078308105,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 1195.986442565918,\r
+        "y": 536.9391279220581,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             []\r
         ]\r
     },\r
     {\r
-        "id": "9b7ec3.98d4c14",\r
+        "id": "dcb3e18.352e72",\r
         "type": "set",\r
         "name": "set parameterName",\r
         "xml": "<set>\n<parameter name=\"`vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",\r
         "comments": "",\r
-        "x": 1327.2291641235352,\r
-        "y": 486.97049713134766,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 1165.4308700561523,\r
+        "y": 573.9392442703247,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": []\r
     },\r
     {\r
-        "id": "1ce3af0c.391b61",\r
-        "type": "comment",\r
-        "name": "Take the parameter names by removing prefix",\r
-        "info": "",\r
-        "comments": "",\r
-        "x": 1330.7503929138184,\r
-        "y": 409.33332681655884,\r
-        "z": "c7d3e3a8.96c6a",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "92ec911d.95b14",\r
+        "id": "724392ca.bd7b5c",\r
         "type": "switchNode",\r
         "name": "switch vnf_length",\r
         "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 887.25,\r
-        "y": 207.9999942779541,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 718.4517517089844,\r
+        "y": 115.96872997283936,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "1b06d72a.f85559"\r
+                "b66cc394.12346"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "1b06d72a.f85559",\r
+        "id": "b66cc394.12346",\r
         "type": "other",\r
         "name": "NULL",\r
         "xml": "<outcome value=''>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1073.9166793823242,\r
-        "y": 207.3332920074463,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 905.1184310913086,\r
+        "y": 115.30202770233154,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "7e3909f0.27dd48"\r
+                "c5ad3c03.3e718"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "7e3909f0.27dd48",\r
+        "id": "c5ad3c03.3e718",\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=\"404\" />\n    <parameter name=\"error-message\" value=\"There are no VNFs in MD-SAL\" />\n",\r
         "comments": "",\r
-        "x": 1255.5833053588867,\r
-        "y": 207.3332920074463,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 1086.785057067871,\r
+        "y": 115.30202770233154,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": []\r
     },\r
     {\r
-        "id": "fa9c393f.4d0eb8",\r
-        "type": "switchNode",\r
-        "name": "switch vf-modules.vf-module_length",\r
-        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
+        "id": "40876e67.4cc8d",\r
+        "type": "set",\r
+        "name": "copy input data to service data",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-id' value='`$prop.vf-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.sdnc-request-header.' value='`$vf-module-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.request-information.' value='`$vf-module-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.service-information.' value='`$vf-module-topology-operation-input.service-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vnf-information.' value='`$vf-module-topology-operation-input.vnf-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n\n\n",\r
+        "comments": "",\r
+        "x": 769.5548782348633,\r
+        "y": 728.4649872779846,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "a49a2243.bbcb2",\r
+        "type": "set",\r
+        "name": "set vf-module-request-input.",\r
+        "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n",\r
+        "comments": "",\r
+        "x": 775.8880348205566,\r
+        "y": 624.1229696273804,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c992605b.552a5",\r
+        "type": "call",\r
+        "name": "call sdwan-get-vf-module-device-param",\r
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-device-param' mode='sync' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 801.8884124755859,\r
+        "y": 680.1232032775879,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "86ee3fd8.45a8b",\r
+        "type": "set",\r
+        "name": "set vf-module-object-path",\r
+        "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vf-id`'/>    \n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $prop.vf-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",\r
+        "comments": "",\r
+        "x": 764.7017707824707,\r
+        "y": 778.9688324928284,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "414cae1d.205f6",\r
+        "type": "set",\r
+        "name": "set vf-module-level-oper-status",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.order-status'  value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.last-rpc-action'  value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.last-action'  value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\n",\r
+        "comments": "",\r
+        "x": 772.2018737792969,\r
+        "y": 826.9687967300415,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "c8a9b81e.4dea68",\r
+        "type": "save",\r
+        "name": "save sdwan vpn resource in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n      key='device.device-id = $prop.vf-id' >\n<parameter name='device-id' value='`$prop.vf-id`' />\n<parameter name='esn' value='`$prop.device.esn`' />\n<parameter name='device-name' value='`$prop.device.name`' />\n<parameter name='description' value='`$prop.device.description`' />\n<parameter name='vendor' value='`$prop.device.vendor`' />\n<parameter name='class' value='`$prop.device.class`' />\n<parameter name='type' value='`$prop.device.deviceModel`' />\n<parameter name='version' value='`$prop.device.version`' />\n<parameter name='system-ip' value='`$prop.device.systemIp`' />\n<parameter name='operational-status' value='Created' />\n<!--parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`' /-->\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vf-module-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $service-data.vnfs.vnf[$vnf-index].vnf-id  + '/vnf-data/vf-modules/vf-module/' + $prop.vf-id + '/vf-module-data/'` \" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1206.701789855957,\r
+        "y": 852.4687442779541,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "3a2a0968.648d36",\r
+        "type": "save",\r
+        "name": "save service relationship in AAI",\r
+        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf:relationship-list' \n      key='generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"device\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/devices/device/' + $prop.vf-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"device.device-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vf-id`\" />\n\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 928.4999895095825,\r
-        "y": 327.9999952316284,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 775.7016677856445,\r
+        "y": 920.4687957763672,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "7ba39512.c516ac",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "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
+        "comments": "",\r
+        "x": 724.4241981506348,\r
+        "y": 966.6426386833191,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "faa86376.49175",\r
+        "type": "execute",\r
+        "name": "execute generate-vf-id",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vf-id\"/>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1251.8685150146484,\r
+        "y": 240.30206966400146,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "491e4f90.e2d44",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1004.8680419921875,\r
+        "y": 254.95347213745117,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "fe3884f5.3db408",\r
-                "f43025e1.350458"\r
+                "faa86376.49175",\r
+                "1889b968.9cafa7",\r
+                "c8eb51dd.8bc9f"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "fe3884f5.3db408",\r
+        "id": "74ee118f.3bdb3",\r
+        "type": "set",\r
+        "name": "set prop.vf-id",\r
+        "xml": "<set>\n<parameter name='prop.vf-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n",\r
+        "comments": "",\r
+        "x": 1210.3999099731445,\r
+        "y": 457.985107421875,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "dfbd61c4.ba851",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1004.3995361328125,\r
+        "y": 410.9848394393921,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": [\r
+            [\r
+                "74ee118f.3bdb3",\r
+                "1889b968.9cafa7",\r
+                "f58396e4.0282e8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1889b968.9cafa7",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 1239.8996353149414,\r
+        "y": 334.98486328125,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": [\r
+            [\r
+                "ecce0898.ef26d8",\r
+                "e6c1d3e3.fb47b"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e28abe4b.99802",\r
         "type": "other",\r
-        "name": "Null",\r
+        "name": "NULL",\r
         "xml": "<outcome value=''>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1159.5,\r
-        "y": 303.99999237060547,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 1701.6139278411865,\r
+        "y": 254.12758922576904,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "ec84c7cd.2c42f8"\r
+                "4d6a716f.84ac8"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f43025e1.350458",\r
+        "id": "4d6a716f.84ac8",\r
+        "type": "set",\r
+        "name": "set vf-index=0",\r
+        "xml": "<set>\n<parameter name='vf-index' value='0' />\n",\r
+        "comments": "",\r
+        "x": 1849.8995761871338,\r
+        "y": 251.12764358520508,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "ad9a94b.6789668",\r
         "type": "other",\r
         "name": "other",\r
         "xml": "<outcome value='Other'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1159.5,\r
-        "y": 343.99999237060547,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 1705.0424251556396,\r
+        "y": 299.41338062286377,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "3d425c4c.b021a4"\r
+                "aa7a0bdb.e96638"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "ec84c7cd.2c42f8",\r
+        "id": "aa7a0bdb.e96638",\r
         "type": "set",\r
-        "name": "set vf-index",\r
-        "xml": "<set>\n<parameter name='vf-index' value='0' />\n",\r
+        "name": "set vf-index = vf_length",\r
+        "xml": "<set>\n<parameter name='vf-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n",\r
         "comments": "",\r
-        "x": 1302,\r
-        "y": 303.99999237060547,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 1888.90016746521,\r
+        "y": 299.6991491317749,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": []\r
     },\r
     {\r
-        "id": "3d425c4c.b021a4",\r
-        "type": "block",\r
-        "name": "block",\r
-        "xml": "<block>\n",\r
-        "atomic": "false",\r
+        "id": "ecce0898.ef26d8",\r
+        "type": "set",\r
+        "name": "set new vF_length",\r
+        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index + 1`' />\n",\r
+        "comments": "",\r
+        "x": 1417.8996391296387,\r
+        "y": 363.984827041626,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "b86e63fd.fc195",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1303.8570442199707,\r
-        "y": 343.9365043640137,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 1654.471076965332,\r
+        "y": 394.1277618408203,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "30d4aa0b.cee996",\r
-                "8e933b3.56987c8"\r
+                "5a9cb21d.1f494c"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "8e933b3.56987c8",\r
-        "type": "set",\r
-        "name": "set vf-index",\r
-        "xml": "<set>\n<parameter name='vf-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n\n",\r
+        "id": "5a9cb21d.1f494c",\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": 1456.555519104004,\r
-        "y": 313.5556030566804,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 1793.0424346923828,\r
+        "y": 394.12772274017334,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": []\r
     },\r
     {\r
-        "id": "30d4aa0b.cee996",\r
-        "type": "for",\r
-        "name": "for each existing vf-index",\r
-        "xml": "<for index='idx' start='0' end='`$vf-index`' >\n",\r
+        "id": "2f10259c.95f9fa",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 853.3991165161133,\r
+        "y": 378.9847173690796,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": [\r
+            [\r
+                "dfbd61c4.ba851"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "c5868d60.4eb9c",\r
+        "type": "outcome",\r
+        "name": "NULL",\r
+        "xml": "<outcome value=''>",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1512.9840240478516,\r
-        "y": 366.7777328491211,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 856.8679389953613,\r
+        "y": 318.9534797668457,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "40a39312.e2cd5c"\r
+                "491e4f90.e2d44"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "f966e582.bd5968",\r
+        "id": "585f0966.3b4ab8",\r
         "type": "comment",\r
-        "name": "make sure this network doesn't exist already",\r
+        "name": "if SO provide vf-id use that else create new",\r
         "info": "",\r
         "comments": "",\r
-        "x": 1736.6347541809082,\r
-        "y": 325.03179025650024,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 1554.3991317749023,\r
+        "y": 214.98472118377686,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": []\r
     },\r
     {\r
-        "id": "40a39312.e2cd5c",\r
+        "id": "fdab20c0.e8295",\r
         "type": "switchNode",\r
-        "name": "switch vf-module-id found",\r
-        "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",\r
+        "name": "switch vf-id",\r
+        "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1788.2697448730469,\r
-        "y": 366.34923553466797,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 715.8679351806641,\r
+        "y": 343.95348834991455,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "d61c18df.dc4958"\r
+                "c5868d60.4eb9c",\r
+                "2f10259c.95f9fa"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d61c18df.dc4958",\r
-        "type": "outcomeTrue",\r
-        "name": "true",\r
-        "xml": "<outcome value='true'>\n",\r
+        "id": "7024b9ac.3160d8",\r
+        "type": "switchNode",\r
+        "name": "switch vnf-index",\r
+        "xml": "<switch test='`$vnf-index`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 715.7330017089844,\r
+        "y": 208.99999523162842,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": [\r
+            [\r
+                "a1384c59.cdef8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a1384c59.cdef8",\r
+        "type": "other",\r
+        "name": "Null",\r
+        "xml": "<outcome value=''>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 1688.999942779541,\r
-        "y": 424.9206666946411,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 877.7330474853516,\r
+        "y": 207.9999942779541,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             [\r
-                "d629e081.56166"\r
+                "b60890ce.7212a"\r
             ]\r
         ]\r
     },\r
     {\r
-        "id": "d629e081.56166",\r
+        "id": "b60890ce.7212a",\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=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id already found in service-data\" />\n",\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 not found in service-data\" />\n",\r
         "comments": "",\r
-        "x": 1836.7500457763672,\r
-        "y": 424.7778587634675,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 1026.983139038086,\r
+        "y": 205.7778720855713,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": []\r
     },\r
     {\r
-        "id": "407f8a81.546654",\r
-        "type": "set",\r
-        "name": "copy input data to service data",\r
-        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-id' value='`$prop.device-vf-index`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.sdnc-request-header.' value='`$vf-module-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.request-information.' value='`$vf-module-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.service-information.' value='`$vf-module-topology-operation-input.service-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vnf-information.' value='`$vf-module-topology-operation-input.vnf-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n\n<!--parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-topology.' value='`$tmp.vf-module-topology.`' /-->\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index+1`' />\n\n",\r
+        "id": "e6c1d3e3.fb47b",\r
+        "type": "switchNode",\r
+        "name": "switch vf-modules.vf-module_length",\r
+        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",\r
         "comments": "",\r
-        "x": 940.3531951904297,\r
-        "y": 754.4962153434753,\r
-        "z": "c7d3e3a8.96c6a",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 1479.7329788208008,\r
+        "y": 280.0000104904175,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": [\r
+            [\r
+                "e28abe4b.99802",\r
+                "ad9a94b.6789668"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "9e2c8c11.572dc",\r
-        "type": "execute",\r
-        "name": "execute generate-vf-module-index",\r
-        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.device-vf-index\"/>\n",\r
+        "id": "62be0465.8c201c",\r
+        "type": "switchNode",\r
+        "name": "switch vf-module-id found",\r
+        "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 948.6866912841797,\r
-        "y": 701.1629481315613,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 1471.7329788208008,\r
+        "y": 402.49998474121094,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
-            []\r
+            [\r
+                "b86e63fd.fc195"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "f6264050.f42d5",\r
+        "id": "f58396e4.0282e8",\r
+        "type": "for",\r
+        "name": "for each existing vf-index",\r
+        "xml": "<for index='idx' start='0' end='`$vf-index`' >\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1235.7329788208008,\r
+        "y": 406.49998474121094,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": [\r
+            [\r
+                "62be0465.8c201c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "d3c28e8a.2aecc",\r
         "type": "set",\r
-        "name": "set new vf-module_length",\r
-        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index + 1`' />",\r
+        "name": "set prop.sdncCreate=false",\r
+        "xml": "<set>\n<parameter name='prop.sdncCreate' value='false' />\n",\r
         "comments": "",\r
-        "x": 922.6866683959961,\r
-        "y": 647.162841796875,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 746.2329788208008,\r
+        "y": 71.99999809265137,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": []\r
     },\r
     {\r
-        "id": "3e5eeaad.69c6b6",\r
+        "id": "c8eb51dd.8bc9f",\r
         "type": "set",\r
-        "name": "set vf-module-request-input.",\r
-        "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n",\r
+        "name": "set prop.sdncCreate=true",\r
+        "xml": "<set>\n<parameter name='prop.sdncCreate' value='true' />\n",\r
         "comments": "",\r
-        "x": 937.6863288879395,\r
-        "y": 537.1542224884033,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 1265.2329864501953,\r
+        "y": 202.99999713897705,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": []\r
     },\r
     {\r
-        "id": "7e451b6c.fd6624",\r
-        "type": "call",\r
-        "name": "call sdwan-get-vf-module-device-param",\r
-        "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-device-param' mode='sync' >\n",\r
+        "id": "b7d7095a.45e048",\r
+        "type": "switchNode",\r
+        "name": "switch prop.sdncCreate",\r
+        "xml": "<switch test='`$prop.sdncCreate`'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 963.6867065429688,\r
-        "y": 593.1544561386108,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 754.2330436706543,\r
+        "y": 876.0000257492065,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
-            []\r
+            [\r
+                "bb597028.866e9",\r
+                "18aecad0.0cad25"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "f1088162.3598e",\r
-        "type": "set",\r
-        "name": "set vf-module-object-path",\r
-        "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $prop.device-vf-index\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",\r
+        "id": "18aecad0.0cad25",\r
+        "type": "outcomeFalse",\r
+        "name": "false",\r
+        "xml": "<outcome value='false'>\n",\r
         "comments": "",\r
-        "x": 935.5000877380371,\r
-        "y": 805.0000605583191,\r
-        "z": "c7d3e3a8.96c6a",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "4489ad98.445654",\r
-        "type": "set",\r
-        "name": "set vf-module-level-oper-status",\r
-        "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.order-status'  value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.last-rpc-action'  value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.last-action'  value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\n",\r
-        "comments": "",\r
-        "x": 943.0001907348633,\r
-        "y": 853.0000247955322,\r
-        "z": "c7d3e3a8.96c6a",\r
-        "wires": []\r
+        "outputs": 1,\r
+        "x": 969.2330417633057,\r
+        "y": 887.0000257492065,\r
+        "z": "46bf2b6e.2c0e64",\r
+        "wires": [\r
+            [\r
+                "8ea3c05b.19b31"\r
+            ]\r
+        ]\r
     },\r
     {\r
-        "id": "a1ffaa29.5bb868",\r
-        "type": "save",\r
-        "name": "save sdwan vpn resource in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='site-resource' \n      key='site-resource.site-resource-id = $prop.site-vf-index' >\n<parameter name='site-resource-id' value='`$prop.site-vf-index`' />\n<parameter name='site-resource-name' value='`$prop.site.name`' />\n<parameter name='description' value='`$prop.site.description`' />\n<parameter name='type' value='`$prop.site.type`' />\n<parameter name='role' value='`$prop.site.role`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vf-module-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $service-data.vnfs.vnf[$vnf-index].vnf-id  + '/vnf-data/vf-modules/vf-module/' + $prop.site-vf-index + '/vf-module-data/'` \" />",\r
+        "id": "bb597028.866e9",\r
+        "type": "outcomeTrue",\r
+        "name": "true",\r
+        "xml": "<outcome value='true'>\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 947.5000419616699,\r
-        "y": 899.4999761581421,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 972.2330417633057,\r
+        "y": 848.9999942779541,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
-            []\r
+            [\r
+                "c8a9b81e.4dea68"\r
+            ]\r
         ]\r
     },\r
     {\r
-        "id": "503ce76b.44e798",\r
+        "id": "8ea3c05b.19b31",\r
         "type": "save",\r
-        "name": "save service relationship in AAI",\r
-        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf:relationship-list' \n      key='generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"sdwan-vpn\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/sdwan-vpns/sdwan-vpn/' + $prop.site-vf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"sdwan-vpn.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.site-vf-index`\" />\n\n\n<!--save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='site-resource:relationship-list' \n      key='site-resource.site-resource-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"sdwan-site\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/sdwan-sites/sdwan-site/' + $prop.site-vf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"sdwan-vpn.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.site-vf-index`\" /-->\n",\r
+        "name": "update sdwan vpn resource in AAI",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n      key='device.device-id = $prop.vf-id' >\n<parameter name='device-id' value='`$prop.vf-id`' />\n<parameter name='esn' value='`$prop.device.esn`' />\n<parameter name='device-name' value='`$prop.device.name`' />\n<parameter name='description' value='`$prop.device.description`' />\n<parameter name='vendor' value='`$prop.device.vendor`' />\n<parameter name='class' value='`$prop.device.class`' />\n<parameter name='type' value='`$prop.device.deviceModel`' />\n<parameter name='version' value='`$prop.device.version`' />\n<parameter name='system-ip' value='`$prop.device.systemIp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vf-module-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $service-data.vnfs.vnf[$vnf-index].vnf-id  + '/vnf-data/vf-modules/vf-module/' + $prop.vf-id + '/vf-module-data/'` \" />\n",\r
         "comments": "",\r
         "outputs": 1,\r
-        "x": 946.4999847412109,\r
-        "y": 946.5000238418579,\r
-        "z": "c7d3e3a8.96c6a",\r
+        "x": 1203.2329864501953,\r
+        "y": 892.999997138977,\r
+        "z": "46bf2b6e.2c0e64",\r
         "wires": [\r
             []\r
         ]\r
-    },\r
-    {\r
-        "id": "860ccaf0.19f1e8",\r
-        "type": "returnSuccess",\r
-        "name": "return success",\r
-        "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
-        "comments": "",\r
-        "x": 895.2225151062012,\r
-        "y": 992.6738667488098,\r
-        "z": "c7d3e3a8.96c6a",\r
-        "wires": []\r
     }\r
 ]
\ No newline at end of file