aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.json1277
1 files changed, 580 insertions, 697 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.json
index 1f6af4fe..a29f5c0c 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.json
@@ -1,20 +1,20 @@
[
{
- "id": "fea5a9bd.a03d18",
+ "id": "426569df.8612f8",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 86.00390625,
- "y": 44.999999046325684,
- "z": "3545e2b7.8c73ce",
+ "x": 120.00390625,
+ "y": 238.75390625,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "e45f8bd6.497e68"
+ "7d6fafb.3ddd95"
]
]
},
{
- "id": "e45f8bd6.497e68",
+ "id": "7d6fafb.3ddd95",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,1688 +22,1571 @@
"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": 234.2895965576172,
- "y": 95.23810768127441,
- "z": "3545e2b7.8c73ce",
+ "x": 268.2895965576172,
+ "y": 288.99201488494873,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "f0f23207.f8f43"
+ "7af8806b.3ecd7"
]
]
},
{
- "id": "f0f23207.f8f43",
+ "id": "7af8806b.3ecd7",
"type": "method",
"name": "method sdwan-vnf-topology-operation-wanport-activate",
"xml": "<method rpc='sdwan-vnf-topology-operation-wanport-activate' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 237.43252563476562,
- "y": 180.00003147125244,
- "z": "3545e2b7.8c73ce",
+ "x": 271.4325256347656,
+ "y": 373.75393867492676,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "32849d64.f1ae32"
+ "63259a1d.b752b4"
]
]
},
{
- "id": "32849d64.f1ae32",
+ "id": "63259a1d.b752b4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 300.67066192626953,
- "y": 785.6669883728027,
- "z": "3545e2b7.8c73ce",
+ "x": 334.67066192626953,
+ "y": 979.420895576477,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "dc92d74f.dca7a8",
- "1cf85990.ed3b86",
- "b4c4037f.4ac1e",
- "f3c230b1.3312b",
- "ac816a8a.6fb1f8",
- "e9d0f6cd.99c098",
- "62f05310.c79d2c",
- "ca279788.45f118",
- "aece4931.30eed8",
- "d9e42142.36e4c",
- "eaa46981.c8da08",
- "2847803.c88858",
- "a3465abe.51b3e8",
- "ea6762c6.702c5",
- "33c90daa.1c8182",
- "81b0e70b.0576d8",
- "e220c2f5.e3641",
- "cd49784f.a3cd48"
+ "ff4c2e55.307e9",
+ "36b7eecd.26eef2",
+ "236a2d57.6cfe02",
+ "7b3df5af.3ce7ac",
+ "21db1d94.b93312",
+ "b01a2888.afc958",
+ "8814bd0.a9cd04",
+ "a3b723.963fa8e",
+ "eefe56c7.aeba48",
+ "1d7f590a.25aba7",
+ "4f9762f1.7b8f7c",
+ "739bdc62.97be04",
+ "e93ff52d.80faa8",
+ "378b7e77.9ee662",
+ "8569d96f.59e838",
+ "2af7b981.494176",
+ "66231f4c.1fe22",
+ "d3523f5e.150e2",
+ "ce5ce7ac.be3938",
+ "a1d99b62.d31458"
]
]
},
{
- "id": "dc92d74f.dca7a8",
+ "id": "ff4c2e55.307e9",
"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": 639.3383979797363,
- "y": 1527.3344058990479,
- "z": "3545e2b7.8c73ce",
+ "x": 659.3384132385254,
+ "y": 1777.088438987732,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "eaa46981.c8da08",
+ "id": "1d7f590a.25aba7",
"type": "execute",
"name": "execute RestApiCallNode device port create",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-port.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/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=\"portResp\"/>\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-port.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/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=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"portResp\"/>\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": 715.3380165100098,
- "y": 780.8894968032837,
- "z": "3545e2b7.8c73ce",
+ "x": 749.3380165100098,
+ "y": 974.643404006958,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "65c0152d.40a98c",
- "6523c3cc.277f2c"
+ "53451b0.d0c27e4",
+ "d2d2e81c.454428"
]
]
},
{
- "id": "65c0152d.40a98c",
+ "id": "53451b0.d0c27e4",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 964.3380756378174,
- "y": 794.889702796936,
- "z": "3545e2b7.8c73ce",
+ "x": 998.3380756378174,
+ "y": 988.6436100006104,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "9cca9a95.c82758"
+ "eca1c460.e76228"
]
]
},
{
- "id": "6523c3cc.277f2c",
+ "id": "d2d2e81c.454428",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 964.3380756378174,
- "y": 756.8895382881165,
- "z": "3545e2b7.8c73ce",
+ "x": 998.3380756378174,
+ "y": 950.6434454917908,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "d75e1634.f465a8"
+ "104d6c7d.be4024"
]
]
},
{
- "id": "d75e1634.f465a8",
+ "id": "104d6c7d.be4024",
"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 Create device port rest api\" />\n",
"comments": "",
- "x": 1108.3384094238281,
- "y": 755.8895378112793,
- "z": "3545e2b7.8c73ce",
+ "x": 1142.3384094238281,
+ "y": 949.6434450149536,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "9cca9a95.c82758",
+ "id": "eca1c460.e76228",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1111.3380870819092,
- "y": 795.8895416259766,
- "z": "3545e2b7.8c73ce",
+ "x": 1145.3380870819092,
+ "y": 989.6434488296509,
+ "z": "2525d6cd.61f35a",
"wires": [
[]
]
},
{
- "id": "a3465abe.51b3e8",
+ "id": "4f9762f1.7b8f7c",
"type": "execute",
"name": "execute RestApiCallNode get transport network info",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-network-orchestration.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`\" />\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=\"get\"/>\n<parameter name=\"responsePrefix\" value=\"transportNetworksResp\"/>\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=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`\" />\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=\"get\"/>\n<parameter name=\"responsePrefix\" value=\"transportNetworksResp\"/>\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": 738.0043678283691,
- "y": 960.0006022453308,
- "z": "3545e2b7.8c73ce",
+ "x": 772.0043678283691,
+ "y": 1153.7545094490051,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "91b71ecc.ea421",
- "dad0aff7.4b6c2"
+ "af3e9c1f.7be91",
+ "394b70c0.ac6f"
]
]
},
{
- "id": "81b0e70b.0576d8",
+ "id": "e93ff52d.80faa8",
"type": "execute",
"name": "execute RestApiCallNode wan port create",
"xml": "<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`\" />",
"comments": "",
"outputs": 1,
- "x": 711.0044593811035,
- "y": 1197.0006504058838,
- "z": "3545e2b7.8c73ce",
+ "x": 745.0044593811035,
+ "y": 1390.754557609558,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "b0038d4b.581a3",
- "fdc236b1.efb848"
+ "727c41a7.9551b",
+ "51280d82.cd5cc4"
]
]
},
{
- "id": "1cf85990.ed3b86",
+ "id": "36b7eecd.26eef2",
"type": "switchNode",
"name": "switch service-data.vnfs.vnf_length",
"xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 697.0248413085938,
- "y": 124.02091121673584,
- "z": "3545e2b7.8c73ce",
+ "x": 731.0248413085938,
+ "y": 317.77481842041016,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "d1aa4aa.5bcccb8",
- "7a701067.ec473",
- "6e75ccb1.58cf34"
+ "7f1fbca4.9489e4",
+ "5c724185.8e516",
+ "5b28fd04.e48584"
]
]
},
{
- "id": "d1aa4aa.5bcccb8",
+ "id": "7f1fbca4.9489e4",
"type": "other",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 949.0248756408691,
- "y": 125.02099227905273,
- "z": "3545e2b7.8c73ce",
+ "x": 983.0248756408691,
+ "y": 318.77489948272705,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "4988f92c.8e1ab8"
+ "9ce50f4e.b2fc8"
]
]
},
{
- "id": "4988f92c.8e1ab8",
+ "id": "9ce50f4e.b2fc8",
"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": 1110.8026237487793,
- "y": 104.90993928909302,
- "z": "3545e2b7.8c73ce",
+ "x": 1144.8026237487793,
+ "y": 298.66384649276733,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "7a701067.ec473",
+ "id": "5c724185.8e516",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 942.0252838134766,
- "y": 158.02099609375,
- "z": "3545e2b7.8c73ce",
+ "x": 976.0252838134766,
+ "y": 351.7749032974243,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "ba03b0d7.0be36"
+ "85017b74.ea3478"
]
]
},
{
- "id": "ba03b0d7.0be36",
+ "id": "85017b74.ea3478",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 960.2947769165039,
- "y": 320.5755786895752,
- "z": "3545e2b7.8c73ce",
+ "x": 994.2947769165039,
+ "y": 514.3294858932495,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "24648014.ff824",
- "5aa1ffdc.05015",
- "a65a9125.dc54c",
- "ae97242b.dc5558",
- "acc92682.3c6fd8"
+ "6e42e95a.0ecb68",
+ "f672c022.be35c",
+ "59c48b6.04c5c74",
+ "5cf9118c.68854",
+ "388b05e0.8ee79a"
]
]
},
{
- "id": "24648014.ff824",
+ "id": "6e42e95a.0ecb68",
"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": 1245.3109436035156,
- "y": 150.44955730438232,
- "z": "3545e2b7.8c73ce",
+ "x": 1279.3109436035156,
+ "y": 344.20346450805664,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "1aa311e.b073aee"
+ "7f2ca034.081d2"
]
]
},
{
- "id": "5aa1ffdc.05015",
+ "id": "f672c022.be35c",
"type": "switchNode",
"name": "switch tmp.vidx ",
"xml": "<switch test=\"`$tmp.vidx`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 1171.612247467041,
- "y": 296.4327926635742,
- "z": "3545e2b7.8c73ce",
+ "x": 1205.612247467041,
+ "y": 490.18669986724854,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "93a97c9.4fbf08"
+ "40c5bcb3.8f3694"
]
]
},
{
- "id": "93a97c9.4fbf08",
+ "id": "40c5bcb3.8f3694",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1319.0408897399902,
- "y": 296.0042028427124,
- "z": "3545e2b7.8c73ce",
+ "x": 1353.0408897399902,
+ "y": 489.7581100463867,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "c3cf31a6.b52f"
+ "8c183b0a.c20d58"
]
]
},
{
- "id": "b192d0.2d48dd3",
+ "id": "52d419f2.072bd8",
"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": 1618.7401733398438,
- "y": 149.6997194290161,
- "z": "3545e2b7.8c73ce",
+ "x": 1652.7401733398438,
+ "y": 343.45362663269043,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "801ede81.82f43"
+ "7d43258f.b6dc1c"
]
]
},
{
- "id": "c3cf31a6.b52f",
+ "id": "8c183b0a.c20d58",
"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": 1468.4696159362793,
- "y": 297.14712047576904,
- "z": "3545e2b7.8c73ce",
+ "x": 1502.4696159362793,
+ "y": 490.90102767944336,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "801ede81.82f43",
+ "id": "7d43258f.b6dc1c",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1773.6921653747559,
- "y": 150.59239864349365,
- "z": "3545e2b7.8c73ce",
+ "x": 1807.6921653747559,
+ "y": 344.34630584716797,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "7772ec9b.efcac4"
+ "7b4fae02.aca0c"
]
]
},
{
- "id": "db3e11bd.eb0ca",
+ "id": "5f826b27.adc144",
"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": 2181.224250793457,
- "y": 60.34245681762695,
- "z": "3545e2b7.8c73ce",
+ "x": 2215.224250793457,
+ "y": 254.09636402130127,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "6e75ccb1.58cf34",
+ "id": "5b28fd04.e48584",
"type": "outcome",
"name": "0",
"xml": "<outcome value='0'>\n",
"comments": "",
"outputs": 1,
- "x": 950.9936256408691,
- "y": 88.98967838287354,
- "z": "3545e2b7.8c73ce",
+ "x": 984.9936256408691,
+ "y": 282.74358558654785,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "4988f92c.8e1ab8"
+ "9ce50f4e.b2fc8"
]
]
},
{
- "id": "cd49784f.a3cd48",
+ "id": "378b7e77.9ee662",
"type": "set",
- "name": "set device PortId and wan portId 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='devicePortId' />\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='`$prop.wan.devicePortId`' />\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 + 1].name' value='wanPortId' />\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 + 1].value' value='`$prop.wan.wanPortId`' />\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 + 2`' />\n\n\n\n\n",
+ "name": "set device PortId 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='devicePortId' />\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='`$prop.wan.devicePortId`' />\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\n\n\n\n",
"comments": "",
- "x": 734.9947814941406,
- "y": 1318.9909219741821,
- "z": "3545e2b7.8c73ce",
+ "x": 711.9948043823242,
+ "y": 1513.744936466217,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "abae1674.12b3d8",
+ "id": "b1043d5b.c9816",
"type": "comment",
"name": "Get siteId from site resource created for this service",
"info": "",
"comments": "",
- "x": 722.9938888549805,
- "y": 309.32321548461914,
- "z": "3545e2b7.8c73ce",
+ "x": 756.9938888549805,
+ "y": 503.07712268829346,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "1aa311e.b073aee",
+ "id": "7f2ca034.081d2",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1464.6605758666992,
- "y": 149.98963737487793,
- "z": "3545e2b7.8c73ce",
+ "x": 1498.6605758666992,
+ "y": 343.74354457855225,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "b192d0.2d48dd3"
+ "52d419f2.072bd8"
]
]
},
{
- "id": "b4c4037f.4ac1e",
+ "id": "236a2d57.6cfe02",
"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": 672.5501022338867,
- "y": 1406.2128171920776,
- "z": "3545e2b7.8c73ce",
+ "x": 692.5501174926758,
+ "y": 1655.9668502807617,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "f3c230b1.3312b",
+ "id": "7b3df5af.3ce7ac",
"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": 689.9945640563965,
- "y": 1445.990653038025,
- "z": "3545e2b7.8c73ce",
+ "x": 709.9945793151855,
+ "y": 1695.744686126709,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "da8588c8.55f098",
+ "id": "a1d99b62.d31458",
"type": "update",
"name": "save SDWAN wan port instance configuration in AAI",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n key='wan-port-config.id = $service-data.vnfs.vnf[$tmp.vidx].vnf-id' >\n<parameter name=\"id\" value=\"`$service-data.vnfs.vnf[$tmp.vidx].vnf-id`\" />\n<parameter name='operational-status' value='Active' />\n<parameter name='device-port-id' value='`$prop.wan.devicePortId`' />\n<parameter name='wan-port-id' value='`$prop.wan.wanPortId`' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n key='wan-port-config.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='operational-status' value='Active' />\n<parameter name='device-port-id' value='`$prop.wan.devicePortId`' />\n<parameter name='wan-port-id' value='`$prop.wan.wanPortId`' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n",
"comments": "",
"outputs": 1,
- "x": 752.6574897766113,
- "y": 1485.1381149291992,
- "z": "3545e2b7.8c73ce",
+ "x": 772.6575050354004,
+ "y": 1734.8921480178833,
+ "z": "2525d6cd.61f35a",
"wires": [
[]
]
},
{
- "id": "d902b620.732c58",
+ "id": "44786d4c.78c0b4",
"type": "set",
"name": "set prop.wan.transportNetworkId",
- "xml": "<set>\n<parameter name='prop.wan.transportNetworkId' value='`$transportNetworksResp[$tidx].id`' />\n",
+ "xml": "<set>\n<parameter name='prop.wan.transportNetworkId' value='`$transportNetworksResp.data.transportNetworks[$tidx].id`' />\n",
"comments": "",
- "x": 1492.995449066162,
- "y": 1036.9906740188599,
- "z": "3545e2b7.8c73ce",
+ "x": 1526.995449066162,
+ "y": 1230.7445812225342,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "ac816a8a.6fb1f8",
+ "id": "ce5ce7ac.be3938",
"type": "for",
"name": "for loop sidx - Get siteId from servicedata",
"xml": "<for index=\"sidx\" start=\"0\" end=\"`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n \n \n",
"comments": "",
"outputs": 1,
- "x": 702.9939117431641,
- "y": 459.98987197875977,
- "z": "3545e2b7.8c73ce",
+ "x": 736.9939117431641,
+ "y": 653.7437791824341,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "f946d98b.8721e8"
+ "4aaf0dac.f4bd44"
]
]
},
{
- "id": "6e3361b7.a1918",
+ "id": "3237e366.c0b81c",
"type": "switchNode",
"name": "switch siteId",
"xml": "<switch test=\"`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'siteId'`\">\n",
"comments": "",
"outputs": 1,
- "x": 1133.994239807129,
- "y": 460.9900026321411,
- "z": "3545e2b7.8c73ce",
+ "x": 1167.994239807129,
+ "y": 654.7439098358154,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "628588c5.8c4528"
+ "c0bb2f42.b3aaf"
]
]
},
{
- "id": "628588c5.8c4528",
+ "id": "c0bb2f42.b3aaf",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1271.9946975708008,
- "y": 458.98998737335205,
- "z": "3545e2b7.8c73ce",
+ "x": 1305.9946975708008,
+ "y": 652.7438945770264,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "b0597272.0a65f"
+ "1433eee.8c0de11"
]
]
},
{
- "id": "b0597272.0a65f",
+ "id": "1433eee.8c0de11",
"type": "set",
"name": "set prop.wan.siteId",
"xml": "<set>\n<parameter name='prop.wan.siteId' value='`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].value`' />\n\n\n",
"comments": "",
- "x": 1435.9947319030762,
- "y": 460.58984088897705,
- "z": "3545e2b7.8c73ce",
+ "x": 1469.9947319030762,
+ "y": 654.3437480926514,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "33c90daa.1c8182",
+ "id": "739bdc62.97be04",
"type": "execute",
"name": "execute split ip and mask",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.ipAddress`'/>\n<parameter name=\"regex\" value=\"/\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"ipandMask\"/>\n",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.wan.ipAddress`'/>\n<parameter name=\"regex\" value=\"/\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"ipandMask\"/>\n",
"comments": "",
"outputs": 1,
- "x": 661.9942359924316,
- "y": 1105.323642730713,
- "z": "3545e2b7.8c73ce",
+ "x": 695.9942359924316,
+ "y": 1299.0775499343872,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "d21f243c.e29608",
- "61bef1c0.f032f"
+ "fdf45f99.54463",
+ "bde78d5d.e4b42"
]
]
},
{
- "id": "61bef1c0.f032f",
+ "id": "bde78d5d.e4b42",
"type": "failure",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 862.994255065918,
- "y": 1083.323634147644,
- "z": "3545e2b7.8c73ce",
+ "x": 896.994255065918,
+ "y": 1277.0775413513184,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "dba59ea6.fb87c"
+ "b4f4511b.838b7"
]
]
},
{
- "id": "d21f243c.e29608",
+ "id": "fdf45f99.54463",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 862.9942588806152,
- "y": 1124.3236379623413,
- "z": "3545e2b7.8c73ce",
+ "x": 896.9942588806152,
+ "y": 1318.0775451660156,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "5e04d6ae.a87ea8"
+ "284d3324.0f7a9c"
]
]
},
{
- "id": "dba59ea6.fb87c",
+ "id": "b4f4511b.838b7",
"type": "set",
"name": "set ipAddress prefixLength",
"xml": "<set>\n<parameter name='prop.wan.ip-address' value='`$ipandMask[0]`' />\n<parameter name='prop.wan.prefixLength' value='`$ipandMask[1]`' />",
"comments": "",
- "x": 1059.9942741394043,
- "y": 1081.323634147644,
- "z": "3545e2b7.8c73ce",
+ "x": 1093.9942741394043,
+ "y": 1275.0775413513184,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "5e04d6ae.a87ea8",
+ "id": "284d3324.0f7a9c",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
"comments": "",
- "x": 1017.9942665100098,
- "y": 1121.323637008667,
- "z": "3545e2b7.8c73ce",
+ "x": 1051.9942665100098,
+ "y": 1315.0775442123413,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "aece4931.30eed8",
+ "id": "a3b723.963fa8e",
"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": 696.4940643310547,
- "y": 559.9899234771729,
- "z": "3545e2b7.8c73ce",
+ "x": 730.4940643310547,
+ "y": 753.7438306808472,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "acfff48e.adde88",
- "cfdab1ae.df7ca",
- "3d21e606.ef145a"
+ "e9572be2.73ae58",
+ "29c0457e.12142a",
+ "d78bfaf1.6dc7f8"
]
]
},
{
- "id": "acfff48e.adde88",
+ "id": "e9572be2.73ae58",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 909.4941635131836,
- "y": 521.989951133728,
- "z": "3545e2b7.8c73ce",
+ "x": 943.4941635131836,
+ "y": 715.7438583374023,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "caaa91ba.7a205"
+ "b45f540f.db5988"
]
]
},
{
- "id": "cfdab1ae.df7ca",
+ "id": "29c0457e.12142a",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 911.9850463867188,
- "y": 557.5639877319336,
- "z": "3545e2b7.8c73ce",
+ "x": 945.9850463867188,
+ "y": 751.3178949356079,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "43a0c2ab.03d7fc"
+ "5afb7116.97e19"
]
]
},
{
- "id": "3d21e606.ef145a",
+ "id": "d78bfaf1.6dc7f8",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 907.3180541992188,
- "y": 593.897346496582,
- "z": "3545e2b7.8c73ce",
+ "x": 941.3180541992188,
+ "y": 787.6512537002563,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "5c31ca17.841574"
+ "aca4c3f3.f6f79"
]
]
},
{
- "id": "5c31ca17.841574",
+ "id": "aca4c3f3.f6f79",
"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": 1061.0905456542969,
- "y": 591.3364334106445,
- "z": "3545e2b7.8c73ce",
+ "x": 1095.0905456542969,
+ "y": 785.0903406143188,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "43a0c2ab.03d7fc",
+ "id": "5afb7116.97e19",
"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": 1057.5564422607422,
- "y": 555.8496751785278,
- "z": "3545e2b7.8c73ce",
+ "x": 1091.5564422607422,
+ "y": 749.6035823822021,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "caaa91ba.7a205",
+ "id": "b45f540f.db5988",
"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": 1069.9942741394043,
- "y": 519.9898910522461,
- "z": "3545e2b7.8c73ce",
+ "x": 1103.9942741394043,
+ "y": 713.7437982559204,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "e9d0f6cd.99c098",
+ "id": "21db1d94.b93312",
"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=\"sdwan-wanport-vnf-topology-operation-activate\"/>\n<parameter name=\"field3\" value=\"SDWAN-Activate\"/>\n",
"comments": "",
"outputs": 1,
- "x": 615.0040016174316,
- "y": 180.00002908706665,
- "z": "3545e2b7.8c73ce",
+ "x": 649.0040016174316,
+ "y": 373.75393629074097,
+ "z": "2525d6cd.61f35a",
"wires": [
[]
]
},
{
- "id": "62f05310.c79d2c",
+ "id": "b01a2888.afc958",
"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": 651.3061256408691,
- "y": 215.0000729560852,
- "z": "3545e2b7.8c73ce",
+ "x": 685.3061256408691,
+ "y": 408.7539801597595,
+ "z": "2525d6cd.61f35a",
"wires": [
[]
]
},
{
- "id": "d9e42142.36e4c",
+ "id": "eefe56c7.aeba48",
"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": 699.004207611084,
- "y": 649.6669254302979,
- "z": "3545e2b7.8c73ce",
+ "x": 733.004207611084,
+ "y": 843.4208326339722,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "dbf3792f.06d4c8",
- "ba692605.0e2fb8"
+ "f0beb476.3438c8",
+ "bfd1c15b.d1a6c"
]
]
},
{
- "id": "dbf3792f.06d4c8",
+ "id": "f0beb476.3438c8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 927.004337310791,
- "y": 631.6669187545776,
- "z": "3545e2b7.8c73ce",
+ "x": 961.004337310791,
+ "y": 825.420825958252,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "2ce328a2.bcfc88"
+ "7978fb11.837754"
]
]
},
{
- "id": "2ce328a2.bcfc88",
+ "id": "7978fb11.837754",
"type": "set",
"name": "set token-id",
"xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
"comments": "",
- "x": 1069.0043449401855,
- "y": 630.666919708252,
- "z": "3545e2b7.8c73ce",
+ "x": 1103.0043449401855,
+ "y": 824.4208269119263,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "eb7128c2.0605b8",
+ "id": "518fd324.836c3c",
"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 get token rest api\" />\n",
"comments": "",
- "x": 1075.0043449401855,
- "y": 668.059907913208,
- "z": "3545e2b7.8c73ce",
+ "x": 1109.0043449401855,
+ "y": 861.8138151168823,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "ba692605.0e2fb8",
+ "id": "bfd1c15b.d1a6c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 926.254337310791,
- "y": 667.3098258972168,
- "z": "3545e2b7.8c73ce",
+ "x": 960.254337310791,
+ "y": 861.0637331008911,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "eb7128c2.0605b8"
+ "518fd324.836c3c"
]
]
},
{
- "id": "ea6762c6.702c5",
- "type": "for",
- "name": "for loop tidx - Get transportNetwork ID",
- "xml": "<for index=\"tidx\" start=\"0\" end=\"`$transportNetworksResp.transportNetworks_length`\">\n \n \n",
- "comments": "",
- "outputs": 1,
- "x": 695.0043983459473,
- "y": 995.3335218429565,
- "z": "3545e2b7.8c73ce",
- "wires": [
- [
- "f45abeac.b55fa"
- ]
- ]
- },
- {
- "id": "f45abeac.b55fa",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 911.0047798156738,
- "y": 996.3337659835815,
- "z": "3545e2b7.8c73ce",
- "wires": [
- [
- "8c6e090d.8c7a88"
- ]
- ]
- },
- {
- "id": "8c6e090d.8c7a88",
+ "id": "e5fec542.f96808",
"type": "switchNode",
"name": "switch transportNetworkName same",
- "xml": "<switch test=\"`$transportNetworksResp.transportNetworks[$tidx].name == $prop.wan.transportNetworkName`\">\n\n",
+ "xml": "<switch test=\"`$transportNetworksResp.data.transportNetworks[$tidx].name == $prop.wan.transportNetworkName`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 1132.0050621032715,
- "y": 994.6670722961426,
- "z": "3545e2b7.8c73ce",
+ "x": 1166.0050621032715,
+ "y": 1188.420979499817,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "9c44e433.9ec8a8"
+ "5378ee5d.02dde"
]
]
},
{
- "id": "9c44e433.9ec8a8",
+ "id": "5378ee5d.02dde",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1345.0045127868652,
- "y": 994.6669902801514,
- "z": "3545e2b7.8c73ce",
+ "x": 1379.0045127868652,
+ "y": 1188.4208974838257,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "d902b620.732c58"
+ "44786d4c.78c0b4"
]
]
},
{
- "id": "570db1f7.cbe77",
+ "id": "a080fa5f.ddeb88",
"type": "switchNode",
"name": "switch ActivateSDWANDeviceInstance",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n \n \n\n",
"comments": "",
"outputs": 1,
- "x": 1559.3375091552734,
- "y": 227.00005626678467,
- "z": "3545e2b7.8c73ce",
+ "x": 1593.3375091552734,
+ "y": 420.753963470459,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "8b1ff3eb.69d25"
+ "6c3d1f35.43a16"
]
]
},
{
- "id": "8b1ff3eb.69d25",
+ "id": "6c3d1f35.43a16",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1782.3375186920166,
- "y": 227.00005626678467,
- "z": "3545e2b7.8c73ce",
+ "x": 1816.3375186920166,
+ "y": 420.753963470459,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "48e7d6a0.748938"
+ "4f891fe5.5f59b"
]
]
},
{
- "id": "c26d092c.4da7c8",
+ "id": "57757525.a0de7c",
"type": "set",
"name": "set tmp.devicevidx",
"xml": "<set>\n<parameter name='tmp.devicevidx' value='`$vidx`' />\n\n",
"comments": "",
- "x": 2747.3368530273438,
- "y": 658.0000810623169,
- "z": "3545e2b7.8c73ce",
+ "x": 2781.3368530273438,
+ "y": 851.7539882659912,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "a65a9125.dc54c",
+ "id": "388b05e0.8ee79a",
"type": "switchNode",
"name": "switch tmp.devicevidx",
"xml": "<switch test=\"`$tmp.devicevidx`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 1212.3374366760254,
- "y": 385.0001187324524,
- "z": "3545e2b7.8c73ce",
+ "x": 1246.3374366760254,
+ "y": 578.7540259361267,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "432fe6b0.129348"
+ "44f27715.04a478"
]
]
},
{
- "id": "432fe6b0.129348",
+ "id": "44f27715.04a478",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1396.7660026550293,
- "y": 385.57155561447144,
- "z": "3545e2b7.8c73ce",
+ "x": 1430.7660026550293,
+ "y": 579.3254628181458,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "4e59531.7ac0fac"
+ "143c0c16.156cc4"
]
]
},
{
- "id": "4e59531.7ac0fac",
+ "id": "143c0c16.156cc4",
"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=\"ActivateSDWANDeviceInstance not found in service-data\" />\n",
"comments": "",
- "x": 1537.1947441101074,
- "y": 385.7144351005554,
- "z": "3545e2b7.8c73ce",
+ "x": 1571.1947441101074,
+ "y": 579.4683423042297,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "81f1ba7c.aa1808",
+ "id": "fd72d81.72be228",
"type": "comment",
"name": "Get deviceId from device resource created for this service",
"info": "",
"comments": "",
- "x": 2196.6707916259766,
- "y": 324.3333349227905,
- "z": "3545e2b7.8c73ce",
+ "x": 2230.6707916259766,
+ "y": 518.0872421264648,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "c653d564.103fb8",
+ "id": "d06cae4f.399ba",
"type": "for",
"name": "for loop didx - Get deviceId from servicedata",
"xml": "<for index=\"didx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n \n \n",
"comments": "",
"outputs": 1,
- "x": 2182.671001434326,
- "y": 247.99997901916504,
- "z": "3545e2b7.8c73ce",
+ "x": 2216.671001434326,
+ "y": 441.75388622283936,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "b9b11207.7934a"
+ "cc06f146.51f0f"
]
]
},
{
- "id": "7c90973.05bfa68",
+ "id": "fc2a7486.890a38",
"type": "switchNode",
"name": "switch name (DeviceName)",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].name == 'name'`\">\n",
"comments": "",
"outputs": 1,
- "x": 2200.671600341797,
- "y": 386.00022411346436,
- "z": "3545e2b7.8c73ce",
+ "x": 2234.671600341797,
+ "y": 579.7541313171387,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "41a73401.a0e75c"
+ "e011449c.868068"
]
]
},
{
- "id": "41a73401.a0e75c",
+ "id": "e011449c.868068",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2402.672092437744,
- "y": 380.0002841949463,
- "z": "3545e2b7.8c73ce",
+ "x": 2436.672092437744,
+ "y": 573.7541913986206,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "edf1bf9c.83bf3"
+ "4999ecb0.3d8164"
]
]
},
{
- "id": "f946d98b.8721e8",
+ "id": "4aaf0dac.f4bd44",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 965.0041046142578,
- "y": 460.6666965484619,
- "z": "3545e2b7.8c73ce",
+ "x": 999.0041046142578,
+ "y": 654.4206037521362,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "6e3361b7.a1918"
+ "3237e366.c0b81c"
]
]
},
{
- "id": "b9b11207.7934a",
+ "id": "cc06f146.51f0f",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1975.003890991211,
- "y": 384.6667251586914,
- "z": "3545e2b7.8c73ce",
+ "x": 2009.003890991211,
+ "y": 578.4206323623657,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "7c90973.05bfa68"
+ "fc2a7486.890a38"
]
]
},
{
- "id": "f5314270.2417a",
+ "id": "1d887fbe.2fb47",
"type": "switchNode",
"name": "switch deviceId",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].name == 'deviceId'`\">\n",
"comments": "",
"outputs": 1,
- "x": 3046.0050506591797,
- "y": 598.6670217514038,
- "z": "3545e2b7.8c73ce",
+ "x": 3080.0050506591797,
+ "y": 792.4209289550781,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "6eb2a758.9628c8"
+ "e9c4ed3a.99165"
]
]
},
{
- "id": "6eb2a758.9628c8",
+ "id": "e9c4ed3a.99165",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 3199.0054206848145,
- "y": 599.6670989990234,
- "z": "3545e2b7.8c73ce",
+ "x": 3233.0054206848145,
+ "y": 793.4210062026978,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "2a323a58.ea63c6"
+ "49a9daf2.48f304"
]
]
},
{
- "id": "2a323a58.ea63c6",
+ "id": "49a9daf2.48f304",
"type": "set",
"name": "set prop.wan.deviceId",
"xml": "<set>\n<parameter name='prop.wan.deviceId' value='`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].value`' />\n",
"comments": "",
- "x": 3368.0060272216797,
- "y": 598.2671337127686,
- "z": "3545e2b7.8c73ce",
+ "x": 3402.0060272216797,
+ "y": 792.0210409164429,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "48e7d6a0.748938",
+ "id": "4f891fe5.5f59b",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1923.6708374023438,
- "y": 249.0000762939453,
- "z": "3545e2b7.8c73ce",
+ "x": 1957.6708374023438,
+ "y": 442.75398349761963,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "c653d564.103fb8"
+ "d06cae4f.399ba"
]
]
},
{
- "id": "edf1bf9c.83bf3",
+ "id": "4999ecb0.3d8164",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2221.0051345825195,
- "y": 463.00025367736816,
- "z": "3545e2b7.8c73ce",
+ "x": 2255.0051345825195,
+ "y": 656.7541608810425,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "8e851a14.33c2e8"
+ "46a841ba.4af92"
]
]
},
{
- "id": "15e6beda.ef5931",
+ "id": "c5bcabb0.9f3978",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2610.0058403015137,
- "y": 466.0003786087036,
- "z": "3545e2b7.8c73ce",
+ "x": 2644.0058403015137,
+ "y": 659.7542858123779,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "8b8e8a8.6844f78"
+ "512e7a73.c439f4"
]
]
},
{
- "id": "7772ec9b.efcac4",
+ "id": "7b4fae02.aca0c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1912.3376846313477,
- "y": 151.00003242492676,
- "z": "3545e2b7.8c73ce",
- "wires": [
- [
- "db3e11bd.eb0ca",
- "3f24458e.06f9fa",
- "a565af06.127cb",
- "9a2c7dc6.4b893"
- ]
- ]
- },
- {
- "id": "e220c2f5.e3641",
- "type": "for",
- "name": "for loop wanPortidx - Get wanPortId",
- "xml": "<for index=\"wanPortidx\" start=\"0\" end=\"`$wanPortResp_length`\">\n \n \n",
- "comments": "",
- "outputs": 1,
- "x": 693.3374061584473,
- "y": 1231.0003681182861,
- "z": "3545e2b7.8c73ce",
- "wires": [
- [
- "50e167ac.c7e768"
- ]
- ]
- },
- {
- "id": "50e167ac.c7e768",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 910.3379402160645,
- "y": 1232.000452041626,
- "z": "3545e2b7.8c73ce",
+ "x": 1946.3376846313477,
+ "y": 344.7539396286011,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "97aa93ae.f7018"
+ "5f826b27.adc144",
+ "3b7b404e.14ae9",
+ "11bb0a8f.c8a415",
+ "207a1eb2.66eaf2"
]
]
},
{
- "id": "97aa93ae.f7018",
- "type": "switchNode",
- "name": "switch deviceId same",
- "xml": "<switch test=\"`$wanPortResp[$wanPortidx].deviceId == $prop.deviceId`\">\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1084.3385925292969,
- "y": 1239.3339138031006,
- "z": "3545e2b7.8c73ce",
- "wires": [
- [
- "3a30ba64.e39ed6"
- ]
- ]
- },
- {
- "id": "3a30ba64.e39ed6",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1252.3377742767334,
- "y": 1228.333701133728,
- "z": "3545e2b7.8c73ce",
- "wires": [
- [
- "3ba0cd34.c2b072"
- ]
- ]
- },
- {
- "id": "3ba0cd34.c2b072",
+ "id": "66231f4c.1fe22",
"type": "set",
"name": "set prop.wan.wanPortId",
- "xml": "<set>\n<parameter name='prop.wan.wanPortId' value='`$wanPortResp[$wanPortidx].id`' />\n",
+ "xml": "<set>\n<parameter name='prop.wan.wanPortId' value='`$wanPortResp.success[0].id`' />\n",
"comments": "",
- "x": 1334.3284950256348,
- "y": 1278.6572723388672,
- "z": "3545e2b7.8c73ce",
+ "x": 693.3285293579102,
+ "y": 1455.4113006591797,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "2847803.c88858",
- "type": "for",
- "name": "for loop portidx - Get device portId",
- "xml": "<for index=\"portidx\" start=\"0\" end=\"`$portResp_length`\">\n \n \n",
- "comments": "",
- "outputs": 1,
- "x": 686.0040702819824,
- "y": 831.333553314209,
- "z": "3545e2b7.8c73ce",
- "wires": [
- [
- "ec540fb0.f5947"
- ]
- ]
- },
- {
- "id": "ec540fb0.f5947",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 887.0044059753418,
- "y": 832.3337163925171,
- "z": "3545e2b7.8c73ce",
- "wires": [
- [
- "b9169b7.ff5dd68"
- ]
- ]
- },
- {
- "id": "b9169b7.ff5dd68",
- "type": "switchNode",
- "name": "switch deviceId same",
- "xml": "<switch test=\"`$portResp[$portidx].deviceId == $prop.deviceId`\">\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1046.0049057006836,
- "y": 830.6671323776245,
- "z": "3545e2b7.8c73ce",
- "wires": [
- [
- "165db6.9ea6824a"
- ]
- ]
- },
- {
- "id": "165db6.9ea6824a",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1219.0042743682861,
- "y": 831.6669683456421,
- "z": "3545e2b7.8c73ce",
- "wires": [
- [
- "a1161094.a324"
- ]
- ]
- },
- {
- "id": "a1161094.a324",
+ "id": "8569d96f.59e838",
"type": "set",
"name": "set prop.wan.devicePortId",
- "xml": "<set>\n<parameter name='prop.wan.devicePortId' value='`$portResp[$portidx].id`' />\n",
+ "xml": "<set>\n<parameter name='prop.wan.devicePortId' value='`$portResp.success[0].id`' />\n",
"comments": "",
- "x": 1379.99515914917,
- "y": 882.9906177520752,
- "z": "3545e2b7.8c73ce",
+ "x": 703.9952239990234,
+ "y": 1036.7445602416992,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "69fec1ed.0fee",
+ "id": "f2d45048.04d33",
"type": "comment",
"name": "Create port",
"info": "",
"comments": "",
- "x": 617.0039558410645,
- "y": 747.3335208892822,
- "z": "3545e2b7.8c73ce",
+ "x": 651.0039558410645,
+ "y": 941.0874280929565,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "595aa329.443d7c",
+ "id": "f7f10711.f1f2c8",
"type": "comment",
"name": "Get network id",
"info": "",
"comments": "",
- "x": 613.0039558410645,
- "y": 922.3334903717041,
- "z": "3545e2b7.8c73ce",
+ "x": 702.0040283203125,
+ "y": 1119.0873865485191,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "a89f747e.6de7f8",
+ "id": "8a3200f.80e49",
"type": "comment",
"name": "Create wan port",
"info": "",
"comments": "",
- "x": 628.0041046142578,
- "y": 1069.3336572647095,
- "z": "3545e2b7.8c73ce",
+ "x": 669.0041122436523,
+ "y": 1252.0875997543335,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "fdc236b1.efb848",
+ "id": "51280d82.cd5cc4",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 997.0040283203125,
- "y": 1157.000238418579,
- "z": "3545e2b7.8c73ce",
+ "x": 1031.0040283203125,
+ "y": 1350.7541456222534,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "a6e9f6d5.ea4dd8"
+ "7e3eadf1.9f0d14"
]
]
},
{
- "id": "b0038d4b.581a3",
+ "id": "727c41a7.9551b",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 997.0040245056152,
- "y": 1197.0004034042358,
- "z": "3545e2b7.8c73ce",
+ "x": 1031.0040245056152,
+ "y": 1390.7543106079102,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "be9a3635.dfb8c8"
+ "e2be8d7c.bac7d"
]
]
},
{
- "id": "be9a3635.dfb8c8",
+ "id": "e2be8d7c.bac7d",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1141.0040397644043,
- "y": 1196.0002403259277,
- "z": "3545e2b7.8c73ce",
+ "x": 1175.0040397644043,
+ "y": 1389.754147529602,
+ "z": "2525d6cd.61f35a",
"wires": [
[]
]
},
{
- "id": "a6e9f6d5.ea4dd8",
+ "id": "7e3eadf1.9f0d14",
"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 Create wan port rest api\" />\n",
"comments": "",
- "x": 1139.0043601989746,
- "y": 1156.000238418579,
- "z": "3545e2b7.8c73ce",
+ "x": 1173.0043601989746,
+ "y": 1349.7541456222534,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "dad0aff7.4b6c2",
+ "id": "394b70c0.ac6f",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1044.0039558410645,
- "y": 908.0001773834229,
- "z": "3545e2b7.8c73ce",
+ "x": 1078.0039558410645,
+ "y": 1101.7540845870972,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "63d1b7a0.e4fbc8"
+ "7a566c5c.f46854"
]
]
},
{
- "id": "91b71ecc.ea421",
+ "id": "af3e9c1f.7be91",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1044.0039520263672,
- "y": 948.0003423690796,
- "z": "3545e2b7.8c73ce",
+ "x": 1078.0039520263672,
+ "y": 1141.754249572754,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "45c0e517.c6f5ac"
+ "1ebcd5ee.10112a"
]
]
},
{
- "id": "45c0e517.c6f5ac",
+ "id": "1ebcd5ee.10112a",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1188.0039672851562,
- "y": 947.0001792907715,
- "z": "3545e2b7.8c73ce",
+ "x": 1222.0039672851562,
+ "y": 1140.7540864944458,
+ "z": "2525d6cd.61f35a",
"wires": [
[]
]
},
{
- "id": "63d1b7a0.e4fbc8",
+ "id": "7a566c5c.f46854",
"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 Get transport network info rest api\" />\n",
"comments": "",
- "x": 1186.0042877197266,
- "y": 907.0001773834229,
- "z": "3545e2b7.8c73ce",
+ "x": 1220.0042877197266,
+ "y": 1100.7540845870972,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "a565af06.127cb",
+ "id": "11bb0a8f.c8a415",
"type": "call",
"name": "call sdwan-get-wan-param",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 2184.670539855957,
- "y": 157.000075340271,
- "z": "3545e2b7.8c73ce",
+ "x": 2218.670539855957,
+ "y": 350.7539825439453,
+ "z": "2525d6cd.61f35a",
"wires": [
[]
]
},
{
- "id": "3f24458e.06f9fa",
+ "id": "3b7b404e.14ae9",
"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": 2153.670539855957,
- "y": 107.00009250640869,
- "z": "3545e2b7.8c73ce",
+ "x": 2187.670539855957,
+ "y": 300.753999710083,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "7cd20fc3.2681b",
+ "id": "5738aa95.6c6dc4",
"type": "comment",
"name": "This is also required for template parameters update",
"info": "",
"comments": "",
- "x": 2549.0043029785156,
- "y": 203.0000352859497,
- "z": "3545e2b7.8c73ce",
+ "x": 2583.0043029785156,
+ "y": 396.753942489624,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "400dec0b.3df124",
+ "id": "f74da2b3.1326d",
"type": "switchNode",
"name": "switch ActivateSiteInstance",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n \n \n\n",
"comments": "",
"outputs": 1,
- "x": 1522.0043487548828,
- "y": 192.00004863739014,
- "z": "3545e2b7.8c73ce",
+ "x": 1556.0043487548828,
+ "y": 385.75395584106445,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "a948b445.19bab8"
+ "3fa03eb7.c59572"
]
]
},
{
- "id": "a948b445.19bab8",
+ "id": "3fa03eb7.c59572",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1718.0045318603516,
- "y": 193.00004863739014,
- "z": "3545e2b7.8c73ce",
+ "x": 1752.0045318603516,
+ "y": 386.75395584106445,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "50e42e52.250bb"
+ "5e72f4d2.b107fc"
]
]
},
{
- "id": "50e42e52.250bb",
+ "id": "5e72f4d2.b107fc",
"type": "set",
"name": "set tmp.siteVidx",
"xml": "<set>\n<parameter name='tmp.siteVidx' value='`$vidx`' />\n<parameter name='ctx.site.' value='`$service-data.vnfs.vnf[$vidx].`' />\n\n",
"comments": "",
- "x": 1904.0038299560547,
- "y": 190.0000524520874,
- "z": "3545e2b7.8c73ce",
+ "x": 1938.0038299560547,
+ "y": 383.7539596557617,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "ae97242b.dc5558",
+ "id": "5cf9118c.68854",
"type": "switchNode",
"name": "switch tmp.siteVidx",
"xml": "<switch test=\"`$tmp.siteVidx`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 1195.6706581115723,
- "y": 334.00006914138794,
- "z": "3545e2b7.8c73ce",
+ "x": 1229.6706581115723,
+ "y": 527.7539763450623,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "31115c1a.df8dd4"
+ "9765105d.6b72d"
]
]
},
{
- "id": "31115c1a.df8dd4",
+ "id": "9765105d.6b72d",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1370.0993690490723,
- "y": 334.5715208053589,
- "z": "3545e2b7.8c73ce",
+ "x": 1404.0993690490723,
+ "y": 528.3254280090332,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "efdc94d7.becbf8"
+ "3a85e200.dcaaae"
]
]
},
{
- "id": "efdc94d7.becbf8",
+ "id": "3a85e200.dcaaae",
"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=\"ActivateSiteInstance not found in service-data\" />\n",
"comments": "",
- "x": 1512.5280876159668,
- "y": 333.71438360214233,
- "z": "3545e2b7.8c73ce",
+ "x": 1546.5280876159668,
+ "y": 527.4682908058167,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "8e851a14.33c2e8",
+ "id": "46a841ba.4af92",
"type": "switchNode",
"name": "switch deviceName match",
"xml": "<switch test=\"`$prop.wan.deviceName == $service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].value`\">\n\n\n",
"comments": "",
"outputs": 1,
- "x": 2426.671859741211,
- "y": 464.00031757354736,
- "z": "3545e2b7.8c73ce",
+ "x": 2460.671859741211,
+ "y": 657.7542247772217,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "15e6beda.ef5931"
+ "c5bcabb0.9f3978"
]
]
},
{
- "id": "8b8e8a8.6844f78",
+ "id": "512e7a73.c439f4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2509.3377990722656,
- "y": 538.0001611709595,
- "z": "3545e2b7.8c73ce",
+ "x": 2543.3377990722656,
+ "y": 731.7540683746338,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "7124d1e8.c1afc",
- "c26d092c.4da7c8"
+ "4c673d0.8ff4ac4",
+ "57757525.a0de7c"
]
]
},
{
- "id": "7124d1e8.c1afc",
+ "id": "4c673d0.8ff4ac4",
"type": "for",
"name": "for loop deviceidx - Get deviceId from servicedata",
"xml": "<for index=\"deviceidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n \n \n",
"comments": "",
"outputs": 1,
- "x": 2789.5349502563477,
- "y": 533.0313501358032,
- "z": "3545e2b7.8c73ce",
+ "x": 2823.5349502563477,
+ "y": 726.7852573394775,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "29242480.1ab1ec"
+ "536e54bd.8b3bec"
]
]
},
{
- "id": "29242480.1ab1ec",
+ "id": "536e54bd.8b3bec",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2866.5356826782227,
- "y": 597.0314493179321,
- "z": "3545e2b7.8c73ce",
+ "x": 2900.5356826782227,
+ "y": 790.7853565216064,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "f5314270.2417a"
+ "1d887fbe.2fb47"
]
]
},
{
- "id": "9a2c7dc6.4b893",
+ "id": "207a1eb2.66eaf2",
"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=\".....\"/>\n<parameter name=\"field3\" value=\"prop.wan.deviceName\"/>\n<parameter name=\"field4\" value='`$prop.wan.deviceName`'/>\n",
"comments": "",
"outputs": 1,
- "x": 2112.535285949707,
- "y": 205.03126621246338,
- "z": "3545e2b7.8c73ce",
+ "x": 2146.535285949707,
+ "y": 398.7851734161377,
+ "z": "2525d6cd.61f35a",
"wires": [
[]
]
},
{
- "id": "acc92682.3c6fd8",
+ "id": "59c48b6.04c5c74",
"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": 1238.003978729248,
- "y": 228.00001621246338,
- "z": "3545e2b7.8c73ce",
+ "x": 1272.003978729248,
+ "y": 421.7539234161377,
+ "z": "2525d6cd.61f35a",
"wires": [
[
- "570db1f7.cbe77",
- "400dec0b.3df124"
+ "a080fa5f.ddeb88",
+ "f74da2b3.1326d"
]
]
},
{
- "id": "ca279788.45f118",
+ "id": "8814bd0.a9cd04",
"type": "set",
"name": "copy input data to service data",
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$service-data.vnfs.vnf[$tmp.vidx].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.' />",
+ "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.' />",
"comments": "",
- "x": 685.03515625,
- "y": 1360.5311269760132,
- "z": "3545e2b7.8c73ce",
+ "x": 705.0351715087891,
+ "y": 1610.2851600646973,
+ "z": "2525d6cd.61f35a",
"wires": []
},
{
- "id": "a2ce1e1.66d8de",
+ "id": "eac4599c.f1e908",
"type": "comment",
"name": "TODO: split ip/mask",
"info": "",
"comments": "",
- "x": 1059.00390625,
- "y": 1043.50390625,
- "z": "3545e2b7.8c73ce",
+ "x": 1093.00390625,
+ "y": 1237.2578134536743,
+ "z": "2525d6cd.61f35a",
+ "wires": []
+ },
+ {
+ "id": "aa148c7f.0d986",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 945.0047798156738,
+ "y": 1190.0876731872559,
+ "z": "2525d6cd.61f35a",
+ "wires": [
+ [
+ "e5fec542.f96808"
+ ]
+ ]
+ },
+ {
+ "id": "2af7b981.494176",
+ "type": "for",
+ "name": "for loop tidx - Get transportNetwork ID",
+ "xml": "<for index=\"tidx\" start=\"0\" end=\"`$transportNetworksResp.data.transportNetworks_length`\">\n \n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 729.0043983459473,
+ "y": 1189.0874290466309,
+ "z": "2525d6cd.61f35a",
+ "wires": [
+ [
+ "aa148c7f.0d986"
+ ]
+ ]
+ },
+ {
+ "id": "d3523f5e.150e2",
+ "type": "set",
+ "name": "set wan portId 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='wanPortId' />\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='`$prop.wan.wanPortId`' />\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\n\n\n\n",
+ "comments": "",
+ "x": 706.0038986206055,
+ "y": 1560.0040016174316,
+ "z": "2525d6cd.61f35a",
"wires": []
}
]