aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.json377
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json261
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.xml25
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.xml3
4 files changed, 354 insertions, 312 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.json
index d7e57be9..f258de41 100644
--- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.json
+++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.json
@@ -1,22 +1,22 @@
[
{
- "id": "b9b83207.589ec",
+ "id": "5c12f35e.e1cabc",
"type": "switchNode",
"name": "switch this vnf-id == input vnf-id",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\"> \n",
"comments": "",
"outputs": 1,
- "x": 1124.8294982910156,
- "y": 251.16278839111328,
- "z": "c7d3e3a8.96c6a",
+ "x": 887.3294982910156,
+ "y": 250.16278743743896,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "8cae152d.7cd218"
+ "fc9a82de.84ce"
]
]
},
{
- "id": "e1800fba.baf5f",
+ "id": "b009e5d5.1d5ff8",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -24,508 +24,521 @@
"comments": "",
"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}'>",
"outputs": 1,
- "x": 414.5,
- "y": 144.99999237060547,
- "z": "c7d3e3a8.96c6a",
+ "x": 177,
+ "y": 143.99999141693115,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "6d32e66a.a8bcf8"
+ "9b496cef.08cf1"
]
]
},
{
- "id": "6d32e66a.a8bcf8",
+ "id": "9b496cef.08cf1",
"type": "method",
"name": "sdwan-vf-operation-device-create",
"xml": "<method rpc='sdwan-vf-operation-device-create' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 413.5,
- "y": 244.99999237060547,
- "z": "c7d3e3a8.96c6a",
+ "x": 176,
+ "y": 243.99999141693115,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "1cc250f1.53fd7f"
+ "a4608885.5f82c8"
]
]
},
{
- "id": "9c8db0b.eb2055",
+ "id": "7da866ae.544bb8",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 244,
- "y": 56,
- "z": "c7d3e3a8.96c6a",
+ "x": 98.50000381469727,
+ "y": 39,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "e1800fba.baf5f"
+ "b009e5d5.1d5ff8"
]
]
},
{
- "id": "1cc250f1.53fd7f",
+ "id": "a4608885.5f82c8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 572.4999847412109,
- "y": 361.0000009536743,
- "z": "c7d3e3a8.96c6a",
+ "x": 334.99998474121094,
+ "y": 360,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "3397e2d.64c521e",
- "92ec911d.95b14",
- "fa9c393f.4d0eb8",
- "1192cb09.4cd2d5",
- "3e5eeaad.69c6b6",
- "7e451b6c.fd6624",
- "f6264050.f42d5",
- "9e2c8c11.572dc",
- "407f8a81.546654",
- "f1088162.3598e",
- "4489ad98.445654",
- "860ccaf0.19f1e8"
+ "4e77e130.304fb",
+ "802c77ca.22e778",
+ "9922275a.527928",
+ "e01d2f82.7429f",
+ "a8f9e83.8a6e918",
+ "c8a186f7.659098",
+ "b9b958fd.141f08",
+ "f27c9cac.ebc18",
+ "35a34bb1.948374",
+ "178a7bac.307b74",
+ "7fbeb541.aa905c",
+ "4845313f.7a00d",
+ "e8cf2ce.61834d",
+ "d9a88b51.5c3ff8"
]
]
},
{
- "id": "3397e2d.64c521e",
+ "id": "4e77e130.304fb",
"type": "for",
"name": "for each vnf",
"xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 872.8294067382812,
- "y": 252.49612522125244,
- "z": "c7d3e3a8.96c6a",
+ "x": 635.3294067382812,
+ "y": 251.49612426757812,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "b9b83207.589ec"
+ "5c12f35e.e1cabc"
]
]
},
{
- "id": "1913a60e.b7faaa",
+ "id": "ddad9e6f.97581",
"type": "set",
"name": "set vnf-index",
"xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
"comments": "",
- "x": 1496.4959869384766,
- "y": 253.16279125213623,
- "z": "c7d3e3a8.96c6a",
+ "x": 1258.9959869384766,
+ "y": 252.1627902984619,
+ "z": "67d8f5f.109b30c",
"wires": []
},
{
- "id": "8cae152d.7cd218",
+ "id": "fc9a82de.84ce",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1343.1628150939941,
- "y": 253.16277027130127,
- "z": "c7d3e3a8.96c6a",
+ "x": 1105.6628150939941,
+ "y": 252.16276931762695,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "1913a60e.b7faaa"
+ "ddad9e6f.97581"
]
]
},
{
- "id": "1192cb09.4cd2d5",
+ "id": "e01d2f82.7429f",
"type": "for",
"name": "for loop idx - VF input parameters",
"xml": "<for index=\"idx\" start=\"0\" end=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 946.7501907348633,
- "y": 474.66665840148926,
- "z": "c7d3e3a8.96c6a",
+ "x": 709.2501907348633,
+ "y": 473.66665744781494,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "f80594ca.7a0348"
+ "7ea0d8c4.d056e8"
]
]
},
{
- "id": "f80594ca.7a0348",
+ "id": "7ea0d8c4.d056e8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1161.5285339355469,
- "y": 472.2222423553467,
- "z": "c7d3e3a8.96c6a",
+ "x": 924.0285339355469,
+ "y": 471.22224140167236,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "99d262e0.f0c14",
- "9b7ec3.98d4c14"
+ "c6b87ab0.44cce8",
+ "f6199a92.b6bb08"
]
]
},
{
- "id": "99d262e0.f0c14",
+ "id": "c6b87ab0.44cce8",
"type": "execute",
"name": "execute split parameterName",
"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",
"comments": "",
"outputs": 1,
- "x": 1357.7847366333008,
- "y": 449.97038078308105,
- "z": "c7d3e3a8.96c6a",
+ "x": 1120.2847366333008,
+ "y": 448.97037982940674,
+ "z": "67d8f5f.109b30c",
"wires": [
[]
]
},
{
- "id": "9b7ec3.98d4c14",
+ "id": "f6199a92.b6bb08",
"type": "set",
"name": "set parameterName",
"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",
"comments": "",
- "x": 1327.2291641235352,
- "y": 486.97049713134766,
- "z": "c7d3e3a8.96c6a",
+ "x": 1089.7291641235352,
+ "y": 485.97049617767334,
+ "z": "67d8f5f.109b30c",
"wires": []
},
{
- "id": "1ce3af0c.391b61",
+ "id": "92e456fa.39e618",
"type": "comment",
"name": "Take the parameter names by removing prefix",
"info": "",
"comments": "",
- "x": 1330.7503929138184,
- "y": 409.33332681655884,
- "z": "c7d3e3a8.96c6a",
+ "x": 1093.2503929138184,
+ "y": 408.3333258628845,
+ "z": "67d8f5f.109b30c",
"wires": []
},
{
- "id": "92ec911d.95b14",
+ "id": "802c77ca.22e778",
"type": "switchNode",
"name": "switch vnf_length",
"xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 887.25,
- "y": 207.9999942779541,
- "z": "c7d3e3a8.96c6a",
+ "x": 649.75,
+ "y": 206.99999332427979,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "1b06d72a.f85559"
+ "b9775757.c586e8"
]
]
},
{
- "id": "1b06d72a.f85559",
+ "id": "b9775757.c586e8",
"type": "other",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1073.9166793823242,
- "y": 207.3332920074463,
- "z": "c7d3e3a8.96c6a",
+ "x": 836.4166793823242,
+ "y": 206.33329105377197,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "7e3909f0.27dd48"
+ "8ca0a76c.6a9638"
]
]
},
{
- "id": "7e3909f0.27dd48",
+ "id": "8ca0a76c.6a9638",
"type": "returnFailure",
"name": "return failure",
"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",
"comments": "",
- "x": 1255.5833053588867,
- "y": 207.3332920074463,
- "z": "c7d3e3a8.96c6a",
+ "x": 1018.0833053588867,
+ "y": 206.33329105377197,
+ "z": "67d8f5f.109b30c",
"wires": []
},
{
- "id": "fa9c393f.4d0eb8",
+ "id": "9922275a.527928",
"type": "switchNode",
"name": "switch vf-modules.vf-module_length",
"xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 928.4999895095825,
- "y": 327.9999952316284,
- "z": "c7d3e3a8.96c6a",
+ "x": 690.9999895095825,
+ "y": 326.9999942779541,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "fe3884f5.3db408",
- "f43025e1.350458"
+ "c5166da1.64b87",
+ "f58b3753.891bc8"
]
]
},
{
- "id": "fe3884f5.3db408",
+ "id": "c5166da1.64b87",
"type": "other",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1159.5,
- "y": 303.99999237060547,
- "z": "c7d3e3a8.96c6a",
+ "x": 922,
+ "y": 302.99999141693115,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "ec84c7cd.2c42f8"
+ "4d85b0fa.e45f4"
]
]
},
{
- "id": "f43025e1.350458",
+ "id": "f58b3753.891bc8",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1159.5,
- "y": 343.99999237060547,
- "z": "c7d3e3a8.96c6a",
+ "x": 922,
+ "y": 342.99999141693115,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "3d425c4c.b021a4"
+ "3cc5230a.5b2c3c"
]
]
},
{
- "id": "ec84c7cd.2c42f8",
+ "id": "4d85b0fa.e45f4",
"type": "set",
"name": "set vf-index",
"xml": "<set>\n<parameter name='vf-index' value='0' />\n",
"comments": "",
- "x": 1302,
- "y": 303.99999237060547,
- "z": "c7d3e3a8.96c6a",
+ "x": 1064.5,
+ "y": 302.99999141693115,
+ "z": "67d8f5f.109b30c",
"wires": []
},
{
- "id": "3d425c4c.b021a4",
+ "id": "3cc5230a.5b2c3c",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1303.8570442199707,
- "y": 343.9365043640137,
- "z": "c7d3e3a8.96c6a",
+ "x": 1066.3570442199707,
+ "y": 342.93650341033936,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "30d4aa0b.cee996",
- "8e933b3.56987c8"
+ "1560cc74.e1f714",
+ "105e52c3.2d94dd"
]
]
},
{
- "id": "8e933b3.56987c8",
+ "id": "105e52c3.2d94dd",
"type": "set",
"name": "set vf-index",
"xml": "<set>\n<parameter name='vf-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n\n",
"comments": "",
- "x": 1456.555519104004,
- "y": 313.5556030566804,
- "z": "c7d3e3a8.96c6a",
+ "x": 1219.055519104004,
+ "y": 312.5556021030061,
+ "z": "67d8f5f.109b30c",
"wires": []
},
{
- "id": "30d4aa0b.cee996",
+ "id": "1560cc74.e1f714",
"type": "for",
"name": "for each existing vf-index",
"xml": "<for index='idx' start='0' end='`$vf-index`' >\n",
"comments": "",
"outputs": 1,
- "x": 1512.9840240478516,
- "y": 366.7777328491211,
- "z": "c7d3e3a8.96c6a",
+ "x": 1275.4840240478516,
+ "y": 365.7777318954468,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "40a39312.e2cd5c"
+ "e9396ecf.61386"
]
]
},
{
- "id": "f966e582.bd5968",
+ "id": "9bfcdd3d.e8854",
"type": "comment",
"name": "make sure this network doesn't exist already",
"info": "",
"comments": "",
- "x": 1736.6347541809082,
- "y": 325.03179025650024,
- "z": "c7d3e3a8.96c6a",
+ "x": 1499.1347541809082,
+ "y": 324.0317893028259,
+ "z": "67d8f5f.109b30c",
"wires": []
},
{
- "id": "40a39312.e2cd5c",
+ "id": "e9396ecf.61386",
"type": "switchNode",
"name": "switch vf-module-id found",
"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",
"comments": "",
"outputs": 1,
- "x": 1788.2697448730469,
- "y": 366.34923553466797,
- "z": "c7d3e3a8.96c6a",
+ "x": 1550.7697448730469,
+ "y": 365.34923458099365,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "d61c18df.dc4958"
+ "7c76b41d.ea06ac"
]
]
},
{
- "id": "d61c18df.dc4958",
+ "id": "7c76b41d.ea06ac",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1688.999942779541,
- "y": 424.9206666946411,
- "z": "c7d3e3a8.96c6a",
+ "x": 1451.499942779541,
+ "y": 423.9206657409668,
+ "z": "67d8f5f.109b30c",
"wires": [
[
- "d629e081.56166"
+ "91b09a0a.6c6428"
]
]
},
{
- "id": "d629e081.56166",
+ "id": "91b09a0a.6c6428",
"type": "returnFailure",
"name": "return failure",
"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",
"comments": "",
- "x": 1836.7500457763672,
- "y": 424.7778587634675,
- "z": "c7d3e3a8.96c6a",
+ "x": 1599.2500457763672,
+ "y": 423.7778578097932,
+ "z": "67d8f5f.109b30c",
"wires": []
},
{
- "id": "407f8a81.546654",
+ "id": "35a34bb1.948374",
"type": "set",
"name": "copy input data to service data",
"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",
"comments": "",
- "x": 940.3531951904297,
- "y": 754.4962153434753,
- "z": "c7d3e3a8.96c6a",
+ "x": 702.8531951904297,
+ "y": 753.496214389801,
+ "z": "67d8f5f.109b30c",
"wires": []
},
{
- "id": "9e2c8c11.572dc",
+ "id": "f27c9cac.ebc18",
"type": "execute",
"name": "execute generate-vf-module-index",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.device-vf-index\"/>\n",
"comments": "",
"outputs": 1,
- "x": 948.6866912841797,
- "y": 701.1629481315613,
- "z": "c7d3e3a8.96c6a",
+ "x": 711.1866912841797,
+ "y": 700.162947177887,
+ "z": "67d8f5f.109b30c",
"wires": [
[]
]
},
{
- "id": "f6264050.f42d5",
+ "id": "b9b958fd.141f08",
"type": "set",
"name": "set new vf-module_length",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index + 1`' />",
"comments": "",
- "x": 922.6866683959961,
- "y": 647.162841796875,
- "z": "c7d3e3a8.96c6a",
+ "x": 685.1866683959961,
+ "y": 646.1628408432007,
+ "z": "67d8f5f.109b30c",
"wires": []
},
{
- "id": "3e5eeaad.69c6b6",
+ "id": "a8f9e83.8a6e918",
"type": "set",
"name": "set vf-module-request-input.",
"xml": "<set>\n<parameter name='vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n",
"comments": "",
- "x": 937.6863288879395,
- "y": 537.1542224884033,
- "z": "c7d3e3a8.96c6a",
+ "x": 700.1863288879395,
+ "y": 536.154221534729,
+ "z": "67d8f5f.109b30c",
"wires": []
},
{
- "id": "7e451b6c.fd6624",
+ "id": "c8a186f7.659098",
"type": "call",
"name": "call sdwan-get-vf-module-device-param",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-device-param' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 963.6867065429688,
- "y": 593.1544561386108,
- "z": "c7d3e3a8.96c6a",
+ "x": 726.1867065429688,
+ "y": 592.1544551849365,
+ "z": "67d8f5f.109b30c",
"wires": [
[]
]
},
{
- "id": "f1088162.3598e",
+ "id": "178a7bac.307b74",
"type": "set",
"name": "set vf-module-object-path",
"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",
"comments": "",
- "x": 935.5000877380371,
- "y": 805.0000605583191,
- "z": "c7d3e3a8.96c6a",
+ "x": 698.0000877380371,
+ "y": 804.0000596046448,
+ "z": "67d8f5f.109b30c",
"wires": []
},
{
- "id": "4489ad98.445654",
+ "id": "7fbeb541.aa905c",
"type": "set",
"name": "set vf-module-level-oper-status",
"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",
"comments": "",
- "x": 943.0001907348633,
- "y": 853.0000247955322,
- "z": "c7d3e3a8.96c6a",
+ "x": 705.5001907348633,
+ "y": 852.0000238418579,
+ "z": "67d8f5f.109b30c",
"wires": []
},
{
- "id": "a1ffaa29.5bb868",
+ "id": "e8cf2ce.61834d",
"type": "save",
"name": "save sdwan vpn resource in AAI",
- "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/'` \" />",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $prop.device-vf-index' >\n<parameter name='device-id' value='`$prop.device-vf-index`' />\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.device-vf-index + '/vf-module-data/'` \" />\n",
"comments": "",
"outputs": 1,
- "x": 947.5000419616699,
- "y": 899.4999761581421,
- "z": "c7d3e3a8.96c6a",
+ "x": 713.0001373291016,
+ "y": 910.4999666213989,
+ "z": "67d8f5f.109b30c",
"wires": [
[]
]
},
{
- "id": "503ce76b.44e798",
+ "id": "d9a88b51.5c3ff8",
"type": "save",
"name": "save service relationship in AAI",
- "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",
+ "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.device-vf-index`\" />\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.device-vf-index`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 946.4999847412109,
- "y": 946.5000238418579,
- "z": "c7d3e3a8.96c6a",
+ "x": 708.9999847412109,
+ "y": 945.5000228881836,
+ "z": "67d8f5f.109b30c",
"wires": [
[]
]
},
{
- "id": "860ccaf0.19f1e8",
+ "id": "4845313f.7a00d",
"type": "returnSuccess",
"name": "return success",
"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",
"comments": "",
- "x": 895.2225151062012,
- "y": 992.6738667488098,
- "z": "c7d3e3a8.96c6a",
+ "x": 657.7225151062012,
+ "y": 991.6738657951355,
+ "z": "67d8f5f.109b30c",
+ "wires": []
+ },
+ {
+ "id": "b5bea2af.4d20d",
+ "type": "comment",
+ "name": "TODO: if SO passes vnf-id, need to update prop.sdncCreate as true",
+ "info": "if SO passes vnf-id, need to update prop.sdncCreate as true",
+ "comments": "",
+ "x": 806.6974792480469,
+ "y": 141.0160083770752,
+ "z": "67d8f5f.109b30c",
"wires": []
}
] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json
index 7e74909c..af262892 100644
--- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json
+++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json
@@ -1,36 +1,36 @@
[
{
- "id": "ba2f1a27.8f7c88",
+ "id": "668a4a6a.11fb74",
"type": "method",
"name": "method vnf-topology-operation-vpn-site-resource-create",
"xml": "<method rpc='vnf-topology-operation-vpn-site-resource-create' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 233,
- "y": 190.9999925820157,
- "z": "bc55b65a.bac808",
+ "x": 260.0104064941406,
+ "y": 185.0104217529297,
+ "z": "872ff8dd.fe5e78",
"wires": [
[
- "887ebd07.82fca"
+ "f0e43a5a.fb4558"
]
]
},
{
- "id": "99a008b4.eb0bc8",
+ "id": "61b91100.d7ede",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 109.57138061523438,
- "y": 43,
- "z": "bc55b65a.bac808",
+ "x": 136.581787109375,
+ "y": 37.010429170913994,
+ "z": "872ff8dd.fe5e78",
"wires": [
[
- "9964126a.58753"
+ "bc2b5176.73e7e"
]
]
},
{
- "id": "9964126a.58753",
+ "id": "bc2b5176.73e7e",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -38,336 +38,337 @@
"comments": "",
"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}'>",
"outputs": 1,
- "x": 211.85708618164062,
- "y": 101.23810407798737,
- "z": "bc55b65a.bac808",
+ "x": 238.86749267578125,
+ "y": 95.24853324890137,
+ "z": "872ff8dd.fe5e78",
"wires": [
[
- "ba2f1a27.8f7c88"
+ "668a4a6a.11fb74"
]
]
},
{
- "id": "887ebd07.82fca",
+ "id": "f0e43a5a.fb4558",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 213.23804473876953,
- "y": 362.6666643349454,
- "z": "bc55b65a.bac808",
+ "x": 240.24845123291016,
+ "y": 356.6770935058594,
+ "z": "872ff8dd.fe5e78",
"wires": [
[
- "e036c242.ea2d7",
- "8ac28eea.03b2e",
- "bee946ca.5b9488",
- "fa22ed9a.8f597",
- "259c9f6d.05187",
- "1c3377d1.23ec68",
- "33f4194.b4adce6",
- "cd58d769.440f18",
- "50ac8040.e368f",
- "82bd0bd5.564548"
+ "6dab251c.49205c",
+ "10940ab9.a5fb85",
+ "2aab9019.e3a45",
+ "be0c443b.256188",
+ "46389e76.c8e6",
+ "89f88258.b891f",
+ "dc405c48.cda4b",
+ "1170677a.a70a49",
+ "997721e4.3b61b",
+ "71ec508c.bf2e1",
+ "60143a97.af1404"
]
]
},
{
- "id": "8ac28eea.03b2e",
+ "id": "10940ab9.a5fb85",
"type": "set",
"name": "set vnf-level-oper-status to Created",
"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",
"comments": "",
- "x": 647.3847961425781,
- "y": 616.6705932617188,
- "z": "bc55b65a.bac808",
+ "x": 674.3952026367188,
+ "y": 610.6810224326327,
+ "z": "872ff8dd.fe5e78",
"wires": []
},
{
- "id": "e036c242.ea2d7",
+ "id": "6dab251c.49205c",
"type": "set",
"name": "copy input data to service data",
"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",
"comments": "",
- "x": 639.2379837036133,
- "y": 511.6668453216553,
- "z": "bc55b65a.bac808",
+ "x": 666.2483901977539,
+ "y": 505.67727449256927,
+ "z": "872ff8dd.fe5e78",
"wires": []
},
{
- "id": "259c9f6d.05187",
+ "id": "46389e76.c8e6",
"type": "execute",
"name": "execute generate-vnf-index",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vnf-index\"/>\n",
"comments": "",
"outputs": 1,
- "x": 627.5714874267578,
- "y": 461.33342933654785,
- "z": "bc55b65a.bac808",
+ "x": 654.5818939208984,
+ "y": 455.34385850746185,
+ "z": "872ff8dd.fe5e78",
"wires": [
[]
]
},
{
- "id": "4832dc07.c382d4",
+ "id": "60143a97.af1404",
"type": "set",
"name": "set vnf-index to service data",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id' value='`$prop.vnf-index`' />\n",
"comments": "",
- "x": 638.5715637207031,
- "y": 568.3334331512451,
- "z": "bc55b65a.bac808",
+ "x": 665.5819702148438,
+ "y": 562.3438623221591,
+ "z": "872ff8dd.fe5e78",
"wires": []
},
{
- "id": "bee946ca.5b9488",
+ "id": "2aab9019.e3a45",
"type": "switchNode",
"name": "switch service-data.vnfs.vnf_length",
"xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 642.5713653564453,
- "y": 241.3333559036255,
- "z": "bc55b65a.bac808",
+ "x": 669.5817718505859,
+ "y": 235.34378507453948,
+ "z": "872ff8dd.fe5e78",
"wires": [
[
- "b7b01487.9885f8",
- "aecaf676.67f6b8"
+ "214b38d8.c822d8",
+ "308ac75b.244168"
]
]
},
{
- "id": "b7b01487.9885f8",
+ "id": "214b38d8.c822d8",
"type": "other",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 877.2857513427734,
- "y": 236.47617626190186,
- "z": "bc55b65a.bac808",
+ "x": 904.2961578369141,
+ "y": 230.48660543281585,
+ "z": "872ff8dd.fe5e78",
"wires": [
[
- "1f5394d7.70124b"
+ "bcebd76e.5a08d8"
]
]
},
{
- "id": "1f5394d7.70124b",
+ "id": "bcebd76e.5a08d8",
"type": "set",
"name": "set vnf-index=0",
"xml": "<set>\n<parameter name='vnf-index' value='0' />\n",
"comments": "",
- "x": 1037.5714569091797,
- "y": 236.47626781463623,
- "z": "bc55b65a.bac808",
+ "x": 1064.5818634033203,
+ "y": 230.48669698555022,
+ "z": "872ff8dd.fe5e78",
"wires": []
},
{
- "id": "aecaf676.67f6b8",
+ "id": "308ac75b.244168",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 873.7142906188965,
- "y": 269.76200771331787,
- "z": "bc55b65a.bac808",
+ "x": 900.7246971130371,
+ "y": 263.77243688423187,
+ "z": "872ff8dd.fe5e78",
"wires": [
[
- "6e2b33e1.03a57c"
+ "af41a2cb.7d1be"
]
]
},
{
- "id": "bd7ad864.5375c8",
+ "id": "c6ca1095.8fc32",
"type": "set",
"name": "set vnf-index = vnf_length",
"xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",
"comments": "",
- "x": 1266.571533203125,
- "y": 248.04773330688477,
- "z": "bc55b65a.bac808",
+ "x": 1293.5819396972656,
+ "y": 242.05816247779876,
+ "z": "872ff8dd.fe5e78",
"wires": []
},
{
- "id": "d9951812.e7fdb8",
+ "id": "c1df9f5.ae8c56",
"type": "for",
"name": "for each existing VNF",
"xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1255.0001525878906,
- "y": 283.04770517349243,
- "z": "bc55b65a.bac808",
+ "x": 1282.0105590820312,
+ "y": 277.0581343444064,
+ "z": "872ff8dd.fe5e78",
"wires": [
[
- "febea1ac.bb0d8"
+ "6e99eb9c.1d2854"
]
]
},
{
- "id": "6e2b33e1.03a57c",
+ "id": "af41a2cb.7d1be",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1008.4285736083984,
- "y": 271.76197719573975,
- "z": "bc55b65a.bac808",
+ "x": 1035.438980102539,
+ "y": 265.77240636665374,
+ "z": "872ff8dd.fe5e78",
"wires": [
[
- "bd7ad864.5375c8",
- "d9951812.e7fdb8"
+ "c6ca1095.8fc32",
+ "c1df9f5.ae8c56"
]
]
},
{
- "id": "febea1ac.bb0d8",
+ "id": "6e99eb9c.1d2854",
"type": "switchNode",
"name": "switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id",
"xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",
"comments": "",
"outputs": 1,
- "x": 1648.285888671875,
- "y": 283.61918926239014,
- "z": "bc55b65a.bac808",
+ "x": 1675.2962951660156,
+ "y": 277.62961843330413,
+ "z": "872ff8dd.fe5e78",
"wires": [
[
- "359b5cad.1078a4"
+ "b8a872f3.280e3"
]
]
},
{
- "id": "359b5cad.1078a4",
+ "id": "b8a872f3.280e3",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1929.571590423584,
- "y": 282.19059467315674,
- "z": "bc55b65a.bac808",
+ "x": 1956.5819969177246,
+ "y": 276.20102384407073,
+ "z": "872ff8dd.fe5e78",
"wires": [
[
- "e5d5a5d7.361b48"
+ "2b05b5cd.40cb0a"
]
]
},
{
- "id": "fe823586.a40dc8",
+ "id": "1bd5d19c.ac71ae",
"type": "comment",
"name": "make sure this vnf-id doesn't exist already",
"info": "",
"comments": "",
- "x": 1617.4285049438477,
- "y": 247.1905813217163,
- "z": "bc55b65a.bac808",
+ "x": 1644.4389114379883,
+ "y": 241.2010104926303,
+ "z": "872ff8dd.fe5e78",
"wires": []
},
{
- "id": "fa22ed9a.8f597",
+ "id": "be0c443b.256188",
"type": "set",
"name": "set new vnf_length",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",
"comments": "",
- "x": 599.5714874267578,
- "y": 409.33342599868774,
- "z": "bc55b65a.bac808",
+ "x": 626.5818939208984,
+ "y": 403.34385516960174,
+ "z": "872ff8dd.fe5e78",
"wires": []
},
{
- "id": "1c3377d1.23ec68",
+ "id": "89f88258.b891f",
"type": "returnSuccess",
"name": "return success",
"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",
"comments": "",
- "x": 586.5714492797852,
- "y": 879.59694480896,
- "z": "bc55b65a.bac808",
+ "x": 613.5818557739258,
+ "y": 873.607373979874,
+ "z": "872ff8dd.fe5e78",
"wires": []
},
{
- "id": "82bd0bd5.564548",
+ "id": "71ec508c.bf2e1",
"type": "save",
"name": "save service relationship in AAI",
"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-index`\" />\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-index`\" />\n\n\n<!--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=\"vpn-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/vpn-resources/vpn-resource/' + $prop.vnf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"vpn-resource.vpn-resource-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vnf-index`\" /-->",
"comments": "",
"outputs": 1,
- "x": 649.2382202148438,
- "y": 826.5968379974365,
- "z": "bc55b65a.bac808",
+ "x": 676.2486267089844,
+ "y": 820.6072671683505,
+ "z": "872ff8dd.fe5e78",
"wires": [
[]
]
},
{
- "id": "33f4194.b4adce6",
+ "id": "dc405c48.cda4b",
"type": "set",
"name": "set vnf-index and vnf-object-path",
"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/'` \" />",
"comments": "",
- "x": 640.5714797973633,
- "y": 657.5968637466431,
- "z": "bc55b65a.bac808",
+ "x": 667.5818862915039,
+ "y": 651.6072929175571,
+ "z": "872ff8dd.fe5e78",
"wires": []
},
{
- "id": "cd58d769.440f18",
+ "id": "1170677a.a70a49",
"type": "set",
"name": "set vnf-request-input.",
"xml": "<set>\n<parameter name='vnf-request-input.' value='`$vnf-topology-operation-input.vnf-request-input.`' />\n",
"comments": "",
- "x": 605.5711212158203,
- "y": 360.3247985839844,
- "z": "bc55b65a.bac808",
+ "x": 632.5815277099609,
+ "y": 354.33522775489837,
+ "z": "872ff8dd.fe5e78",
"wires": []
},
{
- "id": "e5d5a5d7.361b48",
+ "id": "2b05b5cd.40cb0a",
"type": "returnFailure",
"name": "return failure",
"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",
"comments": "",
- "x": 2058.1429595947266,
- "y": 333.1906089782715,
- "z": "bc55b65a.bac808",
+ "x": 2085.153366088867,
+ "y": 327.2010381491855,
+ "z": "872ff8dd.fe5e78",
"wires": []
},
{
- "id": "b6f6713f.1cb83",
+ "id": "8463cd7c.a7a22",
"type": "comment",
"name": "Take the parameter names by removing prefix",
"info": "",
"comments": "",
- "x": 1351.5715713500977,
- "y": 336.66667556762695,
- "z": "bc55b65a.bac808",
+ "x": 1378.5819778442383,
+ "y": 330.67710473854095,
+ "z": "872ff8dd.fe5e78",
"wires": []
},
{
- "id": "a6480f2e.967df",
+ "id": "ecfeb487.443888",
"type": "comment",
"name": "TODO: change AAI models",
"info": "",
"comments": "",
- "x": 629.1820449829102,
- "y": 726.9742965698242,
- "z": "bc55b65a.bac808",
+ "x": 656.1924514770508,
+ "y": 720.9847257407382,
+ "z": "872ff8dd.fe5e78",
"wires": []
},
{
- "id": "50ac8040.e368f",
+ "id": "997721e4.3b61b",
"type": "save",
"name": "save AnAI - vnf-instance.orchestration-status",
"xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $prop.vnf-index\" >\n<parameter name=\"orchestration-status\" value=\"create\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",
"comments": "",
"outputs": 1,
- "x": 695.545783996582,
- "y": 767.2470808029175,
- "z": "bc55b65a.bac808",
+ "x": 722.5561904907227,
+ "y": 761.2575099738315,
+ "z": "872ff8dd.fe5e78",
"wires": [
[]
]
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.xml
index eed2f5fb..9b3109d3 100644
--- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.xml
@@ -103,6 +103,31 @@
<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`' />
<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`' />
</set>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device'
+ key='device.device-id = $prop.device-vf-index' >
+ <parameter name='device-id' value='`$prop.device-vf-index`' />
+ <parameter name='esn' value='`$prop.device.esn`' />
+ <parameter name='device-name' value='`$prop.device.name`' />
+ <parameter name='description' value='`$prop.device.description`' />
+ <parameter name='vendor' value='`$prop.device.vendor`' />
+ <parameter name='class' value='`$prop.device.class`' />
+ <parameter name='type' value='`$prop.device.deviceModel`' />
+ <parameter name='version' value='`$prop.device.version`' />
+ <parameter name='system-ip' value='`$prop.device.systemIp`' />
+ <parameter name='operational-status' value='Created' />
+ <parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />
+ <parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />
+ <parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`' />
+ <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.device-vf-index + '/vf-module-data/'` " />
+ </save>
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf:relationship-list'
+ key='generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id'
+ force="true" pfx="tmp.AnAI-data">
+ <parameter name="relationship-list.relationship[0].related-to" value="device" />
+ <parameter name="relationship-list.relationship[0].related-link" value="`'/network/devices/device/' + $prop.device-vf-index`" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="device.device-id" />
+ <parameter name="relationship-list.relationship[0].relationship-data[0].relationship-value" value="`$prop.device-vf-index`" />
+ </save>
<return status='success'>
<parameter name="ack-final-indicator" value="Y" />
<parameter name="error-code" value="200" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.xml
index 9fbcd8f2..f7847c7c 100644
--- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.xml
@@ -47,6 +47,9 @@
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' value='$vnf-topology-operation-input.vnf-request-input.' />
</set>
<set>
+ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id' value='`$prop.vnf-index`' />
+ </set>
+ <set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Created' />
<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`' />
<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`' />