[
{
- "id": "c57da515.f74988",
+ "id": "206c85aa.5a072a",
"type": "comment",
"name": "sdwan-vnf-topology-operation-device-activate",
"info": "",
"comments": "",
- "x": 571.344856262207,
- "y": 61,
- "z": "48050f50.e2132",
+ "x": 508.3447952270508,
+ "y": 68,
+ "z": "51909408.51161c",
"wires": []
},
{
- "id": "e16a751b.7b48a8",
+ "id": "ca427018.80bcb",
"type": "service-logic",
- "name": "GENERIC-RESOURCE-API 1.2.1-SNAPSHOT",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
- "version": "1.2.1-SNAPSHOT",
+ "version": "${project.version}",
"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='1.2.1-SNAPSHOT'>",
+ "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": 251.2857666015625,
- "y": 132.0002670288086,
- "z": "48050f50.e2132",
+ "x": 188.28570556640625,
+ "y": 139.0002670288086,
+ "z": "51909408.51161c",
"wires": [
[
- "e3b9d3fc.f582d"
+ "2fa01ba0.438244"
]
]
},
{
- "id": "22a66427.5103ec",
+ "id": "d277668e.e654a8",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 172.00006103515625,
- "y": 69.76215744018555,
- "z": "48050f50.e2132",
+ "x": 109,
+ "y": 76.76215744018555,
+ "z": "51909408.51161c",
"wires": [
[
- "e16a751b.7b48a8"
+ "ca427018.80bcb"
]
]
},
{
- "id": "5e9c748a.d0c93c",
+ "id": "29e19c37.979fb4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 246.66673278808594,
- "y": 411.42884254455566,
- "z": "48050f50.e2132",
+ "x": 183.6666717529297,
+ "y": 418.42884254455566,
+ "z": "51909408.51161c",
"wires": [
[
- "164a289d.b889e7",
- "c60faf33.f797b",
- "138d258a.ddadba",
- "2a9fc936.08f4c6",
- "b4b11b51.f47008",
- "88ab4e5f.36358",
- "15d0a117.420b6f",
- "34088ab3.22cba6",
- "96fd10aa.3117f",
- "3c7b9f2b.d2464",
- "4d7e6631.03a558",
- "58df9113.78ab9",
- "971b776.085e288",
- "64ab23e7.432f0c"
+ "d0145adc.c61398",
+ "8a8e6e5a.af8ac",
+ "5365293b.242938",
+ "2b32a3df.95a32c",
+ "7f49e88e.6ac0a8",
+ "8f8a4ade.fb21d8",
+ "9162baea.a58618",
+ "96cec913.036c98",
+ "f1cfd3b2.a98b6",
+ "7bfd6f06.aec7d",
+ "a82fd005.9ab21",
+ "752aae5e.411ae",
+ "feaf1629.1e79e8",
+ "bd5ee22a.cd67b"
]
]
},
{
- "id": "c60faf33.f797b",
+ "id": "8a8e6e5a.af8ac",
"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": 646.3334732055664,
- "y": 1056.0956745147705,
- "z": "48050f50.e2132",
+ "x": 589.0477142333984,
+ "y": 1021.6670913696289,
+ "z": "51909408.51161c",
"wires": []
},
{
- "id": "164a289d.b889e7",
+ "id": "d0145adc.c61398",
"type": "set",
"name": "set vnf-level-oper-status to Active",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].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[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",
"comments": "",
- "x": 727.813533782959,
- "y": 863.4328231811523,
- "z": "48050f50.e2132",
+ "x": 670.527774810791,
+ "y": 829.0042400360107,
+ "z": "51909408.51161c",
"wires": []
},
{
- "id": "b4b11b51.f47008",
+ "id": "7f49e88e.6ac0a8",
"type": "set",
"name": "copy input data to service data",
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='`$vnf-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='`$vnf-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='`$vnf-topology-operation-input.service-information.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-information.' value='`$vnf-topology-operation-input.vnf-information.`' />\n",
+ "xml": "<set>\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='`$vnf-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='`$vnf-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='`$vnf-topology-operation-input.service-information.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-information.' value='`$vnf-topology-operation-input.vnf-information.`' />\n",
"comments": "",
- "x": 705.6667251586914,
- "y": 919.4289989471436,
- "z": "48050f50.e2132",
+ "x": 648.3809661865234,
+ "y": 885.000415802002,
+ "z": "51909408.51161c",
"wires": []
},
{
- "id": "49141d65.bdcea4",
+ "id": "7ac7ee71.334c",
"type": "comment",
"name": "make sure this VNF doesn't exist already",
"info": "",
"comments": "",
- "x": 1443.8572311401367,
- "y": 634.9527101516724,
- "z": "48050f50.e2132",
+ "x": 1383.7143249511719,
+ "y": 661.9527359008789,
+ "z": "51909408.51161c",
"wires": []
},
{
- "id": "3c7b9f2b.d2464",
+ "id": "7bfd6f06.aec7d",
"type": "save",
- "name": "save deviceInstance configuration in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.id = $vnf-topology-operation-input.vnf-information.vnf-id' >\n<parameter name='id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='device-id' value='$deviceResp[0].id' />\n<parameter name='operational-status' value='Active' />",
+ "name": "update deviceInstance configuration in AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $vnf-topology-operation-input.vnf-information.vnf-id' >\n<parameter name='device-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<!--parameter name='device-id' value='`$deviceResp.success[0].id`' /-->\n<parameter name='operational-status' value='Active' />",
"comments": "",
"outputs": 1,
- "x": 730.0002212524414,
- "y": 969.3179988861084,
- "z": "48050f50.e2132",
+ "x": 672.7144622802734,
+ "y": 934.8894157409668,
+ "z": "51909408.51161c",
"wires": [
[]
]
},
{
- "id": "e3b9d3fc.f582d",
+ "id": "2fa01ba0.438244",
"type": "method",
"name": "method sdwan-vnf-topology-operation-device-activate",
"xml": "<method rpc='sdwan-vnf-topology-operation-device-activate' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 263.00006103515625,
- "y": 226.3484992980957,
- "z": "48050f50.e2132",
+ "x": 200,
+ "y": 233.3484992980957,
+ "z": "51909408.51161c",
"wires": [
[
- "5e9c748a.d0c93c"
+ "29e19c37.979fb4"
]
]
},
{
- "id": "138d258a.ddadba",
+ "id": "5365293b.242938",
"type": "set",
"name": "set vnfId and vnf-object-path",
"xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />",
"comments": "",
- "x": 709.0001754760742,
- "y": 812.348635673523,
- "z": "48050f50.e2132",
+ "x": 651.7144165039062,
+ "y": 777.9200525283813,
+ "z": "51909408.51161c",
"wires": []
},
{
- "id": "64ab23e7.432f0c",
+ "id": "feaf1629.1e79e8",
"type": "execute",
"name": "execute RestApiCallNode Create Devcie Instance",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-device.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v3/devices'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"deviceResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />\n\n\n<!--execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-wan-port.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/transport-network-ports'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"wanPortResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" /-->",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-device.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v3/devices'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"deviceResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
"comments": "",
"outputs": 1,
- "x": 784.4446868896484,
- "y": 639.1265163421631,
- "z": "48050f50.e2132",
+ "x": 724.3017807006836,
+ "y": 666.1265420913696,
+ "z": "51909408.51161c",
"wires": [
[
- "fe651cbe.71dae",
- "4a034411.478adc"
+ "1fffde57.79b802",
+ "1d6faab2.67fba5"
]
]
},
{
- "id": "971b776.085e288",
+ "id": "752aae5e.411ae",
"type": "execute",
"name": "execute RestApiCallNode Get token",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
"comments": "",
"outputs": 1,
- "x": 738.4446105957031,
- "y": 509.1263904571533,
- "z": "48050f50.e2132",
+ "x": 675.4445495605469,
+ "y": 516.1263904571533,
+ "z": "51909408.51161c",
"wires": [
[
- "f5a9152f.d977a8",
- "12711b8c.b16b14"
+ "32c81884.3acf08",
+ "5b1f77c1.6546b8"
]
]
},
{
- "id": "f5a9152f.d977a8",
+ "id": "32c81884.3acf08",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 970.4446105957031,
- "y": 489.1263904571533,
- "z": "48050f50.e2132",
+ "x": 907.4445495605469,
+ "y": 496.1263904571533,
+ "z": "51909408.51161c",
"wires": [
[
- "3cccbb3c.73ecb4"
+ "8863e5c0.8fc5a8"
]
]
},
{
- "id": "12711b8c.b16b14",
+ "id": "5b1f77c1.6546b8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 962.6946105957031,
- "y": 530.7692737579346,
- "z": "48050f50.e2132",
+ "x": 899.6945495605469,
+ "y": 537.7692737579346,
+ "z": "51909408.51161c",
"wires": [
[
- "3e406e18.5253e2"
+ "1b01e427.5d582c"
]
]
},
{
- "id": "3cccbb3c.73ecb4",
+ "id": "8863e5c0.8fc5a8",
"type": "set",
"name": "set token-id",
"xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
"comments": "",
- "x": 1107.4446105957031,
- "y": 489.1263904571533,
- "z": "48050f50.e2132",
+ "x": 1044.4445495605469,
+ "y": 496.1263904571533,
+ "z": "51909408.51161c",
"wires": []
},
{
- "id": "3e406e18.5253e2",
+ "id": "1b01e427.5d582c",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1088.7781066894531,
- "y": 531.0153064727783,
- "z": "48050f50.e2132",
+ "x": 1025.7780456542969,
+ "y": 538.0153064727783,
+ "z": "51909408.51161c",
"wires": [
[]
]
},
{
- "id": "647f2905.b3b168",
+ "id": "b65e0d53.3b7ed",
"type": "comment",
"name": "Do Nothing",
"info": "",
"comments": "",
- "x": 1350.333652496338,
- "y": 331.9041233062744,
- "z": "48050f50.e2132",
+ "x": 1287.3335914611816,
+ "y": 338.9041233062744,
+ "z": "51909408.51161c",
"wires": []
},
{
- "id": "a8bad102.6b5e9",
+ "id": "aa15cb9e.3cdaa8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1211.1111526489258,
- "y": 609.0153045654297,
- "z": "48050f50.e2132",
+ "x": 1150.968246459961,
+ "y": 636.0153303146362,
+ "z": "51909408.51161c",
"wires": [
[]
]
},
{
- "id": "e9b5eb58.3f04d8",
+ "id": "12eca3bc.6e077c",
"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=\"Error executing Activate Device rest api\" />\n",
"comments": "",
- "x": 1212.5557327270508,
- "y": 659.570837020874,
- "z": "48050f50.e2132",
+ "x": 1152.412826538086,
+ "y": 686.5708627700806,
+ "z": "51909408.51161c",
"wires": []
},
{
- "id": "4a034411.478adc",
+ "id": "1d6faab2.67fba5",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1059.555576324463,
- "y": 662.5707912445068,
- "z": "48050f50.e2132",
+ "x": 999.412670135498,
+ "y": 689.5708169937134,
+ "z": "51909408.51161c",
"wires": [
[
- "e9b5eb58.3f04d8"
+ "12eca3bc.6e077c"
]
]
},
{
- "id": "fe651cbe.71dae",
+ "id": "1fffde57.79b802",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1059.0000915527344,
- "y": 606.2375030517578,
- "z": "48050f50.e2132",
+ "x": 998.8571853637695,
+ "y": 633.2375288009644,
+ "z": "51909408.51161c",
"wires": [
[
- "a8bad102.6b5e9"
+ "aa15cb9e.3cdaa8"
]
]
},
{
- "id": "88ab4e5f.36358",
+ "id": "8f8a4ade.fb21d8",
"type": "set",
"name": "set deviceId to service data",
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].name' value=\"deviceId\" />\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$deviceResp[0].id`' /-->\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1`' />\n",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].name' value=\"deviceId\" />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$deviceResp.success[0].id`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1`' />\n",
"comments": "",
- "x": 715.0003280639648,
- "y": 764.3488826751709,
- "z": "48050f50.e2132",
+ "x": 657.7145690917969,
+ "y": 729.9202995300293,
+ "z": "51909408.51161c",
"wires": []
},
{
- "id": "7e5552be.6be08c",
- "type": "comment",
- "name": "URL needs to confirm.",
- "info": "",
- "comments": "",
- "x": 763.0001525878906,
- "y": 581.3486194610596,
- "z": "48050f50.e2132",
- "wires": []
- },
- {
- "id": "62f12a96.37bf64",
- "type": "comment",
- "name": "AAI resource need to update",
- "info": "",
- "comments": "",
- "x": 1041.0001754760742,
- "y": 923.348635673523,
- "z": "48050f50.e2132",
- "wires": []
- },
- {
- "id": "58df9113.78ab9",
+ "id": "a82fd005.9ab21",
"type": "get-resource",
"name": "get-resource esr-thirdparty-sdnc",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = SDWAN-Controller AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = SDWANController AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
"comments": "",
"outputs": 1,
- "x": 733.0002746582031,
- "y": 413.34861183166504,
- "z": "48050f50.e2132",
+ "x": 670.0002136230469,
+ "y": 420.34861183166504,
+ "z": "51909408.51161c",
"wires": [
[
- "a6d8f866.73e908",
- "7fc0e78d.a01498",
- "1501ba2b.428996"
+ "342b0391.a4834c",
+ "7a108269.f3476c",
+ "87289215.d0cea"
]
]
},
{
- "id": "a6d8f866.73e908",
+ "id": "342b0391.a4834c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 974.0003318786621,
- "y": 338.3485860824585,
- "z": "48050f50.e2132",
+ "x": 911.0002708435059,
+ "y": 345.3485860824585,
+ "z": "51909408.51161c",
"wires": [
[
- "133ac586.e3a64a"
+ "21df5526.b03a8a"
]
]
},
{
- "id": "133ac586.e3a64a",
+ "id": "21df5526.b03a8a",
"type": "set",
"name": "set controller data",
"xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
"comments": "",
- "x": 1223.5003852844238,
- "y": 294.348575592041,
- "z": "48050f50.e2132",
+ "x": 1087.5003128051758,
+ "y": 336.34857511520386,
+ "z": "51909408.51161c",
"wires": []
},
{
- "id": "7fc0e78d.a01498",
+ "id": "7a108269.f3476c",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 965.4911689758301,
- "y": 386.92263412475586,
- "z": "48050f50.e2132",
+ "x": 902.4911079406738,
+ "y": 393.92263412475586,
+ "z": "51909408.51161c",
"wires": [
[
- "6099fe20.b764e"
+ "e9fd26db.c0e278"
]
]
},
{
- "id": "6099fe20.b764e",
+ "id": "e9fd26db.c0e278",
"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=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
"comments": "",
- "x": 1139.0625801086426,
- "y": 375.20837020874023,
- "z": "48050f50.e2132",
+ "x": 1076.0625190734863,
+ "y": 382.20837020874023,
+ "z": "51909408.51161c",
"wires": []
},
{
- "id": "1501ba2b.428996",
+ "id": "87289215.d0cea",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 957.8241767883301,
- "y": 428.2559471130371,
- "z": "48050f50.e2132",
+ "x": 894.8241157531738,
+ "y": 435.2559471130371,
+ "z": "51909408.51161c",
"wires": [
[
- "49a6b499.06dbac"
+ "d7092d64.71989"
]
]
},
{
- "id": "49a6b499.06dbac",
+ "id": "d7092d64.71989",
"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=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
"comments": "",
- "x": 1145.5967330932617,
- "y": 423.69513988494873,
- "z": "48050f50.e2132",
- "wires": []
- },
- {
- "id": "b2aff25d.5a4e",
- "type": "comment",
- "name": "review and test req",
- "info": "",
- "comments": "",
- "x": 741.0002212524414,
- "y": 729.3487091064453,
- "z": "48050f50.e2132",
- "wires": []
- },
- {
- "id": "61725e4c.10868",
- "type": "comment",
- "name": "tmp.thirdparty-sdnc-id to be hardcoded here?",
- "info": "",
- "comments": "",
- "x": 731.0042877197266,
- "y": 369.3525629043579,
- "z": "48050f50.e2132",
+ "x": 1082.5966720581055,
+ "y": 430.69513988494873,
+ "z": "51909408.51161c",
"wires": []
},
{
- "id": "4d7e6631.03a558",
- "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=\"device\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/devices/device/' + $vnf-topology-operation-input.vnf-information.vnf-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"device.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\" />",
- "comments": "",
- "outputs": 1,
- "x": 704.0003967285156,
- "y": 1016.0955476760864,
- "z": "48050f50.e2132",
- "wires": [
- []
- ]
- },
- {
- "id": "2a9fc936.08f4c6",
+ "id": "2b32a3df.95a32c",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Provided alloted resource length\"/>\n<parameter name=\"field3\" value=\"'parameters length'\"/>\n<parameter name=\"field4\" value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`'/>\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 678.0000762939453,
- "y": 291.0151786804199,
- "z": "48050f50.e2132",
+ "x": 615.0000152587891,
+ "y": 298.0151786804199,
+ "z": "51909408.51161c",
"wires": [
[]
]
},
{
- "id": "15d0a117.420b6f",
+ "id": "9162baea.a58618",
"type": "for",
"name": "for vidx..service-data.vnfs.vnf_length[]",
"xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 766.031364440918,
- "y": 177.0312786102295,
- "z": "48050f50.e2132",
+ "x": 703.0313034057617,
+ "y": 184.0312786102295,
+ "z": "51909408.51161c",
"wires": [
[
- "1b896cda.b979e3"
+ "b4173a9a.c4a2c8"
]
]
},
{
- "id": "1b896cda.b979e3",
+ "id": "b4173a9a.c4a2c8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1014.3809585571289,
- "y": 177.57134628295898,
- "z": "48050f50.e2132",
+ "x": 951.3808975219727,
+ "y": 184.57134628295898,
+ "z": "51909408.51161c",
"wires": [
[
- "a706d238.291a"
+ "8ed61ccb.fe1d2"
]
]
},
{
- "id": "a706d238.291a",
+ "id": "8ed61ccb.fe1d2",
"type": "switchNode",
"name": "switch vnfid found",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 1168.4605560302734,
- "y": 177.28142833709717,
- "z": "48050f50.e2132",
+ "x": 1105.4604949951172,
+ "y": 184.28142833709717,
+ "z": "51909408.51161c",
"wires": [
[
- "5082e995.a70f58"
+ "25dffe3f.86e402"
]
]
},
{
- "id": "ea1b1425.d6abb8",
+ "id": "94dc5d4a.a00f9",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1462.0580673217773,
- "y": 178.5817413330078,
- "z": "48050f50.e2132",
+ "x": 1399.058006286621,
+ "y": 185.5817413330078,
+ "z": "51909408.51161c",
"wires": [
[
- "65194b17.7753d4",
- "65c6f7a.c67d608",
- "47f60422.f643ac"
+ "fa685102.6e48e",
+ "a75f325a.531e1",
+ "1c8ecc84.ad1ff3"
]
]
},
{
- "id": "5082e995.a70f58",
+ "id": "25dffe3f.86e402",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1323.4125480651855,
- "y": 178.1741075515747,
- "z": "48050f50.e2132",
+ "x": 1260.4124870300293,
+ "y": 185.1741075515747,
+ "z": "51909408.51161c",
"wires": [
[
- "ea1b1425.d6abb8"
+ "94dc5d4a.a00f9"
]
]
},
{
- "id": "65c6f7a.c67d608",
+ "id": "a75f325a.531e1",
"type": "set",
"name": "set vnf-request-input.",
"xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
"comments": "",
- "x": 1703.3909225463867,
- "y": 134.58180141448975,
- "z": "48050f50.e2132",
+ "x": 1640.3908615112305,
+ "y": 141.58180141448975,
+ "z": "51909408.51161c",
"wires": []
},
{
- "id": "65194b17.7753d4",
+ "id": "fa685102.6e48e",
"type": "set",
"name": "set tmp.vidx and ctx.vnf-data",
"xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
"comments": "",
- "x": 1730.9446334838867,
- "y": 87.92416572570801,
- "z": "48050f50.e2132",
+ "x": 1667.9445724487305,
+ "y": 94.92416572570801,
+ "z": "51909408.51161c",
"wires": []
},
{
- "id": "47f60422.f643ac",
+ "id": "1c8ecc84.ad1ff3",
"type": "call",
"name": "call sdwan-get-device-param",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-device-param' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1708.0313720703125,
- "y": 197.03127193450928,
- "z": "48050f50.e2132",
+ "x": 1645.0313110351562,
+ "y": 204.03127193450928,
+ "z": "51909408.51161c",
"wires": [
[]
]
},
{
- "id": "34088ab3.22cba6",
+ "id": "96cec913.036c98",
"type": "switchNode",
"name": "switch tmp.vidx ",
"xml": "<switch test=\"`$tmp.vidx`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 697.03125,
- "y": 238.03125,
- "z": "48050f50.e2132",
+ "x": 634.0311889648438,
+ "y": 245.03125,
+ "z": "51909408.51161c",
"wires": [
[
- "f352fc21.fd854"
+ "dd74e5cf.ddfed8"
]
]
},
{
- "id": "f352fc21.fd854",
+ "id": "dd74e5cf.ddfed8",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 844.4598922729492,
- "y": 237.60266017913818,
- "z": "48050f50.e2132",
+ "x": 781.459831237793,
+ "y": 244.60266017913818,
+ "z": "51909408.51161c",
"wires": [
[
- "d74e2e0c.835e1"
+ "f70bcb29.83b348"
]
]
},
{
- "id": "d74e2e0c.835e1",
+ "id": "f70bcb29.83b348",
"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-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
"comments": "",
- "x": 993.8886184692383,
- "y": 238.74557781219482,
- "z": "48050f50.e2132",
+ "x": 930.888557434082,
+ "y": 245.74557781219482,
+ "z": "51909408.51161c",
"wires": []
},
{
- "id": "96fd10aa.3117f",
+ "id": "f1cfd3b2.a98b6",
"type": "execute",
"name": "execute Properties",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
"comments": "",
"outputs": 1,
- "x": 692.03125,
- "y": 334.03125,
- "z": "48050f50.e2132",
+ "x": 629.0311889648438,
+ "y": 341.03125,
+ "z": "51909408.51161c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bd5ee22a.cd67b",
+ "type": "call",
+ "name": "call sdwan-get-tenant-auth",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-tenant-auth' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 654.2938385009766,
+ "y": 604.2938222885132,
+ "z": "51909408.51161c",
"wires": [
[]
]