diff options
author | prakash.e <prakash.e@huawei.com> | 2019-04-25 19:51:31 +0530 |
---|---|---|
committer | prakash.e <prakash.e@huawei.com> | 2019-04-25 19:51:39 +0530 |
commit | b10f4cf9e0951eb70e7d4027eb51ffb8d3014598 (patch) | |
tree | 1b8f6726bd0b016142892bc29b003acedadc3035 | |
parent | ffdd4b815d64e6337707152470b230f755fd1c15 (diff) |
Fix SDWAN site role passed to controller
SDWAN site role dsvpn-hub and sdwan-edge is not fetched
and passed to controller. Now it is fetched in for loop
and passed to controller.
Change-Id: I85b7be5bdc802fa7144631aeaf3cf19bc3fde979
Issue-ID: SDNC-659
Signed-off-by: Prakash.E <prakash.e@huawei.com>
Former-commit-id: 570153b334e64246b2eff459d18d6eac6df70e22
2 files changed, 1007 insertions, 950 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.json index dfb0b20c..a7cc60b1 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.json @@ -1,38 +1,38 @@ [
{
- "id": "449f76b2.35ecd8",
+ "id": "62a2b375.b0142c",
"type": "switchNode",
"name": "switch vf-modules.vf-module_length",
"xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 651.00390625,
- "y": 351.99999046325684,
- "z": "a60b8cc5.55e8f",
+ "x": 631.00390625,
+ "y": 358.9999910593033,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "398bb19.252604e",
- "b6d1d1d8.bb9ed",
- "62a6e293.8703bc"
+ "2ce296c7.89a92a",
+ "286b40a1.270d8",
+ "a5e09c26.33e85"
]
]
},
{
- "id": "3ae00491.8f60fc",
+ "id": "274a6c23.93af74",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 188.00390243530273,
- "y": 43,
- "z": "a60b8cc5.55e8f",
+ "x": 185.00391006469727,
+ "y": 38.00000190734863,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "cd3d997.ba35068"
+ "d19a3d29.13e6c"
]
]
},
{
- "id": "cd3d997.ba35068",
+ "id": "d19a3d29.13e6c",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -40,2064 +40,2101 @@ "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": 257.2896041870117,
- "y": 106.23810958862305,
- "z": "a60b8cc5.55e8f",
+ "x": 237.28960418701172,
+ "y": 113.2381101846695,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "42625ee9.60cf8"
+ "f2cc8408.469028"
]
]
},
{
- "id": "42625ee9.60cf8",
+ "id": "f2cc8408.469028",
"type": "method",
"name": "method sdwan-vf-operation-lanport-activate",
"xml": "<method rpc='sdwan-vf-operation-lanport-activate' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 269.00389862060547,
- "y": 200.58634185791016,
- "z": "a60b8cc5.55e8f",
+ "x": 249.00389862060547,
+ "y": 207.5863424539566,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "3ec2bae1.a772e6"
+ "b1463b24.6fe0e8"
]
]
},
{
- "id": "3ec2bae1.a772e6",
+ "id": "b1463b24.6fe0e8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 269.67057037353516,
- "y": 456.666708946228,
- "z": "a60b8cc5.55e8f",
- "wires": [
- [
- "788af4bb.4d81cc",
- "1b2b5acf.fbd5d5",
- "449f76b2.35ecd8",
- "9c153d6a.4cf43",
- "46f7cea6.503f1",
- "fcbf2fc7.b018d",
- "505ed63f.24baa8",
- "94404e6f.e8fde",
- "16a0b0ad.e2c3df",
- "e352097b.fa56f8",
- "ea89a3cd.96c6c",
- "b4355150.f8381",
- "23f60fe.f5fa6f",
- "9f914b2c.f63948",
- "3174dd24.ba8ab2",
- "455e901d.d7497",
- "41672a48.274fe4",
- "58693560.f55b6c",
- "69c506db.344ae8",
- "3c1e06fc.eec57a",
- "b87c5ca2.4198d",
- "13f149d1.1db0a6",
- "97edc5d7.68c598",
- "deaed14.de5b43"
- ]
- ]
- },
- {
- "id": "1b2b5acf.fbd5d5",
+ "x": 249.67057037353516,
+ "y": 463.6667095422745,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "303d2cf.b399dd4",
+ "d51e952d.52f938",
+ "62a2b375.b0142c",
+ "c2a7f215.4af7c",
+ "e1a9154.b1471e8",
+ "67323544.ab409c",
+ "b8bc82a8.8f71c",
+ "af677f19.b868e",
+ "5684b01b.2cc86",
+ "3b06c257.27b87e",
+ "f005bd73.83921",
+ "e03228a1.7c0b08",
+ "b83326ad.562c28",
+ "d5b2bc3d.8d9a6",
+ "292717fc.ce9118",
+ "a812fb94.72ecd8",
+ "b9762c75.21e69",
+ "c04f18a6.eec778",
+ "bb7f5a63.9f3828",
+ "a98e7add.71df78",
+ "955e1b88.3ac648",
+ "f78f25c0.9e44a8",
+ "e3c5f502.462e18",
+ "2a5aae1a.c1b0a2",
+ "b74ec81a.384238"
+ ]
+ ]
+ },
+ {
+ "id": "d51e952d.52f938",
"type": "for",
"name": "for each vnf",
"xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 616.0352668762207,
- "y": 222.26914596557617,
- "z": "a60b8cc5.55e8f",
+ "x": 596.0352668762207,
+ "y": 229.26914656162262,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "7ea5c9a1.849a58"
+ "1705b3b3.be9e2c"
]
]
},
{
- "id": "788af4bb.4d81cc",
+ "id": "303d2cf.b399dd4",
"type": "switchNode",
"name": "switch vnf_length",
"xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 621.0039215087891,
- "y": 161.00001525878906,
- "z": "a60b8cc5.55e8f",
+ "x": 601.0039215087891,
+ "y": 168.0000158548355,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "eddbe91d.071158"
+ "ae5f28f0.d5a908"
]
]
},
{
- "id": "eddbe91d.071158",
+ "id": "ae5f28f0.d5a908",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 801.0039024353027,
- "y": 160.00000476837158,
- "z": "a60b8cc5.55e8f",
+ "x": 781.0039024353027,
+ "y": 167.00000536441803,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "43ffd7ae.190158"
+ "60302d9b.78d214"
]
]
},
{
- "id": "43ffd7ae.190158",
+ "id": "60302d9b.78d214",
"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": 950.4326286315918,
- "y": 161.14292240142822,
- "z": "a60b8cc5.55e8f",
+ "x": 930.4326286315918,
+ "y": 168.14292299747467,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "7ea5c9a1.849a58",
+ "id": "1705b3b3.be9e2c",
"type": "switchNode",
"name": "switch this vnf-id == input vnf-id",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\"> \n",
"comments": "",
"outputs": 1,
- "x": 839.0039176940918,
- "y": 223.00001096725464,
- "z": "a60b8cc5.55e8f",
+ "x": 819.0039176940918,
+ "y": 230.0000115633011,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "63b5b6be.7bb648"
+ "1f9e74ab.0ce8fb"
]
]
},
{
- "id": "63b5b6be.7bb648",
+ "id": "1f9e74ab.0ce8fb",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1054.0039024353027,
- "y": 221.00000476837158,
- "z": "a60b8cc5.55e8f",
+ "x": 1034.0039024353027,
+ "y": 228.00000536441803,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "395d7249.60aa0e"
+ "67d2b453.3ade6c"
]
]
},
{
- "id": "395d7249.60aa0e",
+ "id": "67d2b453.3ade6c",
"type": "set",
"name": "set vnf-index",
"xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
"comments": "",
- "x": 1218.0039024353027,
- "y": 216.00000476837158,
- "z": "a60b8cc5.55e8f",
+ "x": 1198.0039024353027,
+ "y": 223.00000536441803,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "b6d1d1d8.bb9ed",
+ "id": "286b40a1.270d8",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 873.0038986206055,
- "y": 386,
- "z": "a60b8cc5.55e8f",
+ "x": 853.0038986206055,
+ "y": 393.00000059604645,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "284a993a.df0816"
+ "9beeb53f.32d368"
]
]
},
{
- "id": "398bb19.252604e",
+ "id": "2ce296c7.89a92a",
"type": "outcome",
"name": "0",
"xml": "<outcome value='0'>\n",
"comments": "",
"outputs": 1,
- "x": 878.0038948059082,
- "y": 332.9999990463257,
- "z": "a60b8cc5.55e8f",
+ "x": 858.0038948059082,
+ "y": 339.99999964237213,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "284a993a.df0816"
+ "9beeb53f.32d368"
]
]
},
{
- "id": "284a993a.df0816",
+ "id": "9beeb53f.32d368",
"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": 1036.0038986206055,
- "y": 346,
- "z": "a60b8cc5.55e8f",
+ "x": 1016.0038986206055,
+ "y": 353.00000059604645,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "62a6e293.8703bc",
+ "id": "a5e09c26.33e85",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 873.0038986206055,
- "y": 447,
- "z": "a60b8cc5.55e8f",
+ "x": 853.0038986206055,
+ "y": 454.00000059604645,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "f366b8b5.961cc8"
+ "e1d84972.4ad0c8"
]
]
},
{
- "id": "cb04cf04.061eb",
+ "id": "fd2ead86.4408b",
"type": "set",
"name": "set vf-module_length",
"xml": "<set>\n<parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n",
"comments": "",
- "x": 1227.0039138793945,
- "y": 445.0000139474869,
- "z": "a60b8cc5.55e8f",
+ "x": 1207.0039138793945,
+ "y": 452.0000145435333,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "f366b8b5.961cc8",
+ "id": "e1d84972.4ad0c8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1034.0039443969727,
- "y": 443.99999141693115,
- "z": "a60b8cc5.55e8f",
+ "x": 1014.0039443969727,
+ "y": 450.9999920129776,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "cb04cf04.061eb",
- "19000243.abd3ee"
+ "fd2ead86.4408b",
+ "a0db8178.b9fc1"
]
]
},
{
- "id": "19000243.abd3ee",
+ "id": "a0db8178.b9fc1",
"type": "for",
"name": "for each existing vf-index",
"xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1246.0038833618164,
- "y": 497.99999046325684,
- "z": "a60b8cc5.55e8f",
+ "x": 1226.0038833618164,
+ "y": 504.9999910593033,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "7d37972f.257a38"
+ "d2a74f27.76a7b"
]
]
},
{
- "id": "7d37972f.257a38",
+ "id": "d2a74f27.76a7b",
"type": "switchNode",
"name": "switch vf-module-id found",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",
"comments": "",
"outputs": 1,
- "x": 1489.0038986206055,
- "y": 493,
- "z": "a60b8cc5.55e8f",
+ "x": 1469.0038986206055,
+ "y": 500.00000059604645,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "377bfea7.613792"
+ "b730478a.e23168"
]
]
},
{
- "id": "377bfea7.613792",
+ "id": "b730478a.e23168",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1687.003927230835,
- "y": 480.0000066757202,
- "z": "a60b8cc5.55e8f",
+ "x": 1667.003927230835,
+ "y": 487.00000727176666,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "18c55aa5.f966a5"
+ "e50ff701.4c8a98"
]
]
},
{
- "id": "18c55aa5.f966a5",
+ "id": "e50ff701.4c8a98",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1839.0038986206055,
- "y": 482,
- "z": "a60b8cc5.55e8f",
+ "x": 1819.0038986206055,
+ "y": 489.00000059604645,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "d08221fe.a8a22",
- "f8638c60.50c2c",
- "4e4f3655.251b48"
+ "9ab17191.831f",
+ "5290285b.0a9238",
+ "718a2bc4.09e914"
]
]
},
{
- "id": "d08221fe.a8a22",
+ "id": "9ab17191.831f",
"type": "set",
"name": "set tmp.vidx and ctx.vnf-data",
"xml": "<set>\n<parameter name='tmp.vidx' value='`$idx`' />\n<parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\n",
"comments": "",
- "x": 2067.0040130615234,
- "y": 424.00000381469727,
- "z": "a60b8cc5.55e8f",
+ "x": 2047.0040130615234,
+ "y": 431.0000044107437,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "f8638c60.50c2c",
+ "id": "5290285b.0a9238",
"type": "set",
"name": "set vf-module-request-input.",
"xml": "<set>\n<parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\n\n",
"comments": "",
- "x": 2071.0040130615234,
- "y": 478.00000381469727,
- "z": "a60b8cc5.55e8f",
+ "x": 2051.0040130615234,
+ "y": 485.0000044107437,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "9c153d6a.4cf43",
+ "id": "c2a7f215.4af7c",
"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": 585.0040168762207,
- "y": 2093.501151561737,
- "z": "a60b8cc5.55e8f",
+ "x": 581.0040321350098,
+ "y": 2299.501180291176,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "4e4f3655.251b48",
+ "id": "718a2bc4.09e914",
"type": "call",
"name": "call sdwan-get-vf-module-lanport-param",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lanport-param' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 2101.4590377807617,
- "y": 529.0104961395264,
- "z": "a60b8cc5.55e8f",
+ "x": 2081.4590377807617,
+ "y": 536.0104967355728,
+ "z": "54b5b8b7.025628",
"wires": [
[]
]
},
{
- "id": "2dd1b5ff.e9de3a",
+ "id": "8567646d.1060f8",
"type": "for",
"name": "for vf-modules.vf-module_length",
"xml": "<for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1358.2580871582031,
- "y": 557.0040807723999,
- "z": "a60b8cc5.55e8f",
+ "x": 1338.2580871582031,
+ "y": 564.0040813684464,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "afb4aa7c.d42128"
+ "ac4f7552.ac0308"
]
]
},
{
- "id": "bc24bdbf.b7fae",
+ "id": "80043aea.5219e8",
"type": "switchNode",
"name": "switch this deviceName == vf-input",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == $prop.lan.deviceName`\">\n",
"comments": "",
"outputs": 1,
- "x": 1429.25830078125,
- "y": 630.0042104721069,
- "z": "a60b8cc5.55e8f",
+ "x": 1409.25830078125,
+ "y": 637.0042110681534,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "3a56a654.531a3a"
+ "2efabc06.34d0a4"
]
]
},
{
- "id": "afb4aa7c.d42128",
+ "id": "ac4f7552.ac0308",
"type": "for",
"name": "for vf-module-input-param length",
"xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1644.2579345703125,
- "y": 559.0041646957397,
- "z": "a60b8cc5.55e8f",
+ "x": 1624.2579345703125,
+ "y": 566.0041652917862,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "258487d9.bf18e8"
+ "fb5d6670.5ef758"
]
]
},
{
- "id": "3a56a654.531a3a",
+ "id": "2efabc06.34d0a4",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1649.2580242156982,
- "y": 631.0042181015015,
- "z": "a60b8cc5.55e8f",
+ "x": 1629.2580242156982,
+ "y": 638.0042186975479,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "c2e2f4ae.3e81f8"
+ "f29692e0.539f3"
]
]
},
{
- "id": "c2e2f4ae.3e81f8",
+ "id": "f29692e0.539f3",
"type": "for",
"name": "for vf-modules.vf-module_length",
"xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1894.2581024169922,
- "y": 631.0041356086731,
- "z": "a60b8cc5.55e8f",
+ "x": 1874.2581024169922,
+ "y": 638.0041362047195,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "1b295fc8.1fb94"
+ "da95560e.179868"
]
]
},
{
- "id": "1b295fc8.1fb94",
+ "id": "da95560e.179868",
"type": "switchNode",
"name": "switch deviceId == input vf-id",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'deviceId'`\">\n \n\n\n",
"comments": "",
"outputs": 1,
- "x": 2202.2583770751953,
- "y": 614.0041036605835,
- "z": "a60b8cc5.55e8f",
+ "x": 2182.2583770751953,
+ "y": 621.00410425663,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "35a3cdd9.9a70d2"
+ "78aec0a1.e1723"
]
]
},
{
- "id": "35a3cdd9.9a70d2",
+ "id": "78aec0a1.e1723",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2411.258415222168,
- "y": 616.004096031189,
- "z": "a60b8cc5.55e8f",
+ "x": 2391.258415222168,
+ "y": 623.0040966272354,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "219f921f.088efe"
+ "df2e3f53.8ca7"
]
]
},
{
- "id": "219f921f.088efe",
+ "id": "df6bb2fa.c17ef",
"type": "set",
"name": "set prop.lan.deviceId",
"xml": "<set>\n<parameter name='prop.lan.deviceId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />\n",
"comments": "",
- "x": 2588.2583808898926,
- "y": 612.0042867660522,
- "z": "a60b8cc5.55e8f",
+ "x": 2764.258441925049,
+ "y": 559.0042743682861,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "46f7cea6.503f1",
+ "id": "e1a9154.b1471e8",
"type": "for",
"name": "for service-data.vnfs.vnf_length",
"xml": "<for index='vnfidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 612.2578125,
- "y": 424.00404262542725,
- "z": "a60b8cc5.55e8f",
+ "x": 592.2578125,
+ "y": 431.0040432214737,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "8fd527ce.0b2738"
+ "ae8078e2.85aab8"
]
]
},
{
- "id": "daa35d7b.bbc16",
+ "id": "cea7983f.defeb8",
"type": "switchNode",
"name": "switch ActivateSDWANSiteInstance",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANSiteInstance'`\">\n",
"comments": "",
"outputs": 1,
- "x": 1249.008186340332,
- "y": 741.0039882659912,
- "z": "a60b8cc5.55e8f",
+ "x": 1229.008186340332,
+ "y": 748.0039888620377,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "d9309324.f3584"
+ "aa05a333.09241"
]
]
},
{
- "id": "7a222fcd.73c1e",
+ "id": "1a7b39b6.722626",
"type": "for",
"name": "for vf-modules.vf-module_length",
"xml": "<for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 895.0080261230469,
- "y": 708.0040283203125,
- "z": "a60b8cc5.55e8f",
+ "x": 875.0080261230469,
+ "y": 715.004028916359,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "7ba15821.578698"
+ "6936e75f.9c21b8"
]
]
},
{
- "id": "3174dd24.ba8ab2",
+ "id": "292717fc.ce9118",
"type": "for",
"name": "for service-data.vnfs.vnf_length",
"xml": "<for index='vnfidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 646.0078811645508,
- "y": 639.0039081573486,
- "z": "a60b8cc5.55e8f",
+ "x": 626.0078811645508,
+ "y": 646.0039087533951,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "7a222fcd.73c1e"
+ "1a7b39b6.722626"
]
]
},
{
- "id": "d9309324.f3584",
+ "id": "aa05a333.09241",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1471.0081024169922,
- "y": 741.0040698051453,
- "z": "a60b8cc5.55e8f",
- "wires": [
- [
- "6e42570c.9e97d8"
- ]
- ]
- },
- {
- "id": "6e42570c.9e97d8",
- "type": "for",
- "name": "for vf-modules.vf-module_length",
- "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1552.2581100463867,
- "y": 815.5040712356567,
- "z": "a60b8cc5.55e8f",
+ "x": 1451.0081024169922,
+ "y": 748.0040704011917,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "8eb63937.68f308"
+ "45b20afa.d404e4"
]
]
},
{
- "id": "f89ede9f.dfe34",
- "type": "switchNode",
- "name": "switch siteId",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'siteId'`\">\n \n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1935.2584686279297,
- "y": 822.5041785240173,
- "z": "a60b8cc5.55e8f",
- "wires": [
- [
- "69e745ff.0d272c"
- ]
- ]
- },
- {
- "id": "69e745ff.0d272c",
+ "id": "5020b41b.37af8c",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2112.258487701416,
- "y": 825.5040187835693,
- "z": "a60b8cc5.55e8f",
+ "x": 3003.2584648132324,
+ "y": 835.5040974617004,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "f03a8e8e.83fe2"
+ "285e8b02.5f5364"
]
]
},
{
- "id": "dee78c9f.5dd72",
+ "id": "f8bdb397.3f361",
"type": "set",
"name": "set prop.attach.siteId",
- "xml": "<set>\n<parameter name='prop.attach.siteId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />\n",
+ "xml": "<set>\n<parameter name='prop.attach.siteId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$sidx].value`' />\n",
"comments": "",
- "x": 2496.2589950561523,
- "y": 799.5040702819824,
- "z": "a60b8cc5.55e8f",
+ "x": 3394.259147644043,
+ "y": 788.5041995048523,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "f03a8e8e.83fe2",
+ "id": "285e8b02.5f5364",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2271.5086784362793,
- "y": 821.0040588378906,
- "z": "a60b8cc5.55e8f",
- "wires": [
- [
- "dee78c9f.5dd72",
- "43b17553.c7382c",
- "36d57da.c3bd682",
- "1a9cf10f.4a8b1f"
- ]
- ]
- },
- {
- "id": "9e2a9762.50d9a8",
- "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 = SDWANController AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1930.0078430175781,
- "y": 1338.5039596557617,
- "z": "a60b8cc5.55e8f",
- "wires": [
- [
- "45a4d258.24544c",
- "cb543421.e8e548",
- "f2ddc8f8.67f5b8"
- ]
- ]
- },
- {
- "id": "45a4d258.24544c",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2174.0079040527344,
- "y": 1302.5039596557617,
- "z": "a60b8cc5.55e8f",
- "wires": [
- [
- "73860a6b.6e7a64"
- ]
- ]
- },
- {
- "id": "cb543421.e8e548",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2176.4987869262695,
- "y": 1338.0779962539673,
- "z": "a60b8cc5.55e8f",
- "wires": [
- [
- "57b80d68.fd6804"
- ]
- ]
- },
- {
- "id": "f2ddc8f8.67f5b8",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2171.8317947387695,
- "y": 1374.4113550186157,
- "z": "a60b8cc5.55e8f",
- "wires": [
- [
- "114f2452.7c39bc"
- ]
- ]
- },
- {
- "id": "114f2452.7c39bc",
- "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": 2325.6042861938477,
- "y": 1371.8504419326782,
- "z": "a60b8cc5.55e8f",
- "wires": []
- },
- {
- "id": "57b80d68.fd6804",
- "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": 2322.070182800293,
- "y": 1336.3636837005615,
- "z": "a60b8cc5.55e8f",
- "wires": []
- },
- {
- "id": "73860a6b.6e7a64",
- "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": 2334.508014678955,
- "y": 1300.5038995742798,
- "z": "a60b8cc5.55e8f",
- "wires": []
- },
- {
- "id": "315d042b.94c54c",
- "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.onap.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": 1943.9460754394531,
- "y": 1441.6250534057617,
- "z": "a60b8cc5.55e8f",
- "wires": [
- [
- "277e96cc.23f53a",
- "d503dd86.6b851"
- ]
- ]
- },
- {
- "id": "277e96cc.23f53a",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2178.946201324463,
- "y": 1427.62504196167,
- "z": "a60b8cc5.55e8f",
+ "x": 3162.5086555480957,
+ "y": 831.0041375160217,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "7b5e2570.2698cc"
+ "f8bdb397.3f361",
+ "ca69f782.4f6db8",
+ "91acccd4.f9b4d"
]
]
},
{
- "id": "d503dd86.6b851",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2178.196201324463,
- "y": 1463.267949104309,
- "z": "a60b8cc5.55e8f",
- "wires": [
- [
- "198d65d8.c721ba"
- ]
- ]
- },
- {
- "id": "198d65d8.c721ba",
- "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": 2326.9462089538574,
- "y": 1464.0180311203003,
- "z": "a60b8cc5.55e8f",
- "wires": []
- },
- {
- "id": "7b5e2570.2698cc",
- "type": "set",
- "name": "set token-id",
- "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
- "comments": "",
- "x": 2320.9462089538574,
- "y": 1426.6250429153442,
- "z": "a60b8cc5.55e8f",
- "wires": []
- },
- {
- "id": "41672a48.274fe4",
+ "id": "b9762c75.21e69",
"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 + '/sdlan-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.onap.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": 647.03515625,
- "y": 1213.0782289505005,
- "z": "a60b8cc5.55e8f",
+ "x": 643.0351715087891,
+ "y": 1419.0782576799393,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "74d5de9e.64c39",
- "95bf4540.859768"
+ "2da7ca99.c33e76",
+ "294e6b7c.164174"
]
]
},
{
- "id": "74d5de9e.64c39",
+ "id": "2da7ca99.c33e76",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 896.0352153778076,
- "y": 1227.0784349441528,
- "z": "a60b8cc5.55e8f",
+ "x": 892.0352306365967,
+ "y": 1433.0784636735916,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "446d7b16.686f54"
+ "78f113d9.71ae5c"
]
]
},
{
- "id": "95bf4540.859768",
+ "id": "294e6b7c.164174",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 896.0352153778076,
- "y": 1189.0782704353333,
- "z": "a60b8cc5.55e8f",
+ "x": 892.0352306365967,
+ "y": 1395.078299164772,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "5b043775.82b438"
+ "bdca7d72.89f35"
]
]
},
{
- "id": "5b043775.82b438",
+ "id": "bdca7d72.89f35",
"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": 1040.0355491638184,
- "y": 1188.078269958496,
- "z": "a60b8cc5.55e8f",
+ "x": 1036.0355644226074,
+ "y": 1394.0782986879349,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "446d7b16.686f54",
+ "id": "78f113d9.71ae5c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1043.0352268218994,
- "y": 1228.0782737731934,
- "z": "a60b8cc5.55e8f",
+ "x": 1039.0352420806885,
+ "y": 1434.0783025026321,
+ "z": "54b5b8b7.025628",
"wires": [
[]
]
},
{
- "id": "fcbf2fc7.b018d",
+ "id": "67323544.ab409c",
"type": "set",
"name": "set prop.lan.devicePortId",
"xml": "<set>\n<parameter name='prop.lan.devicePortId' value='`$portResp.success[0].id`' />\n",
"comments": "",
- "x": 589.6924171447754,
- "y": 1266.1794338226318,
- "z": "a60b8cc5.55e8f",
+ "x": 585.6924324035645,
+ "y": 1472.1794625520706,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "b76fce1f.c41d6",
+ "id": "52d8036.d8251fc",
"type": "comment",
"name": "Create port",
"info": "",
"comments": "",
- "x": 548.7010955810547,
- "y": 1179.522253036499,
- "z": "a60b8cc5.55e8f",
+ "x": 544.7011108398438,
+ "y": 1385.5222817659378,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "455e901d.d7497",
+ "id": "a812fb94.72ecd8",
"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": 595.7010955810547,
- "y": 1128.1886892318726,
- "z": "a60b8cc5.55e8f",
+ "x": 591.7011108398438,
+ "y": 1334.1887179613113,
+ "z": "54b5b8b7.025628",
"wires": [
[]
]
},
{
- "id": "4fc0e57c.93c3fc",
+ "id": "49f7e1ca.47a1d",
"type": "execute",
"name": "execute RestApiCallNode bridge domain create",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdlan-bridge-domain.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/bridge-domains'`\" />\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=\"bridgeDomainResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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": 1069.6854057312012,
- "y": 1308.188857793808,
- "z": "a60b8cc5.55e8f",
+ "x": 1065.6854209899902,
+ "y": 1514.1888865232468,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "fe4c3471.1ff888",
- "5d7f5544.360c1c"
+ "90e9cae2.8856e8",
+ "e415727a.32568"
]
]
},
{
- "id": "fe4c3471.1ff888",
+ "id": "90e9cae2.8856e8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1390.685432434082,
- "y": 1325.1891782283783,
- "z": "a60b8cc5.55e8f",
+ "x": 1386.685447692871,
+ "y": 1531.189206957817,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "ab1e6271.60b9c"
+ "e9c18e15.5844e"
]
]
},
{
- "id": "5d7f5544.360c1c",
+ "id": "e415727a.32568",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1393.685459136963,
- "y": 1290.1889598369598,
- "z": "a60b8cc5.55e8f",
+ "x": 1389.685474395752,
+ "y": 1496.1889885663986,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "cee492db.e0603"
+ "7758ee8.0aa2e1"
]
]
},
{
- "id": "cee492db.e0603",
+ "id": "7758ee8.0aa2e1",
"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 bridge domain rest api\" />\n",
"comments": "",
- "x": 1596.685848236084,
- "y": 1286.1890671253204,
- "z": "a60b8cc5.55e8f",
+ "x": 1592.685863494873,
+ "y": 1492.1890958547592,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "ab1e6271.60b9c",
+ "id": "e9c18e15.5844e",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1597.6854133605957,
- "y": 1321.1889336109161,
- "z": "a60b8cc5.55e8f",
+ "x": 1593.6854286193848,
+ "y": 1527.188962340355,
+ "z": "54b5b8b7.025628",
"wires": [
[]
]
},
{
- "id": "e47a1f03.1d40d",
+ "id": "5596dd8.d4db124",
"type": "comment",
"name": "Create bridge domain",
"info": "",
"comments": "",
- "x": 1013.3512992858887,
- "y": 1274.6330835819244,
- "z": "a60b8cc5.55e8f",
+ "x": 1009.3513145446777,
+ "y": 1480.6331123113632,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "505ed63f.24baa8",
+ "id": "b8bc82a8.8f71c",
"type": "switchNode",
"name": "switch portSwitch",
"xml": "<switch test=\"`$prop.lan.portSwitch == 'layer2-port'`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 569.4628715515137,
- "y": 1309.855489730835,
- "z": "a60b8cc5.55e8f",
+ "x": 565.4628868103027,
+ "y": 1515.8555184602737,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "f3a0568f.15eb08"
+ "9b68044d.8003c8"
]
]
},
{
- "id": "f3a0568f.15eb08",
+ "id": "9b68044d.8003c8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 748.4629020690918,
- "y": 1309.966812133789,
- "z": "a60b8cc5.55e8f",
+ "x": 744.4629173278809,
+ "y": 1515.9668408632278,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "4fc0e57c.93c3fc"
+ "49f7e1ca.47a1d"
]
]
},
{
- "id": "94404e6f.e8fde",
+ "id": "af677f19.b868e",
"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.lan.ipAddress`'/>\n<parameter name=\"regex\" value=\"/\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"ipandMask\"/>\n",
"comments": "",
"outputs": 1,
- "x": 594.0078659057617,
- "y": 1409.7540397644043,
- "z": "a60b8cc5.55e8f",
+ "x": 590.0078811645508,
+ "y": 1615.754068493843,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "8f41cbf5.215278",
- "e159f50d.926278"
+ "818ce376.62233",
+ "94450d41.00936"
]
]
},
{
- "id": "e159f50d.926278",
+ "id": "94450d41.00936",
"type": "failure",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 795.007884979248,
- "y": 1387.7540311813354,
- "z": "a60b8cc5.55e8f",
+ "x": 791.0079002380371,
+ "y": 1593.7540599107742,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "f5bbd137.51f5f"
+ "bdf6adef.1a65c"
]
]
},
{
- "id": "8f41cbf5.215278",
+ "id": "818ce376.62233",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 795.0078887939453,
- "y": 1428.7540349960327,
- "z": "a60b8cc5.55e8f",
+ "x": 791.0079040527344,
+ "y": 1634.7540637254715,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "b8b52f84.e55ad"
+ "9306915f.667d1"
]
]
},
{
- "id": "f5bbd137.51f5f",
+ "id": "bdf6adef.1a65c",
"type": "set",
"name": "set ipAddress prefixLength",
"xml": "<set>\n<parameter name='prop.lan.ip-address' value='`$ipandMask[0]`' />\n<parameter name='prop.lan.prefixLength' value='`$ipandMask[1]`' />",
"comments": "",
- "x": 992.0079040527344,
- "y": 1385.7540311813354,
- "z": "a60b8cc5.55e8f",
+ "x": 988.0079193115234,
+ "y": 1591.7540599107742,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "b8b52f84.e55ad",
+ "id": "9306915f.667d1",
"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": 950.0078964233398,
- "y": 1425.7540340423584,
- "z": "a60b8cc5.55e8f",
+ "x": 946.0079116821289,
+ "y": 1631.7540627717972,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "9835abaa.deb1b8",
+ "id": "a7eaad12.8d234",
"type": "comment",
"name": "Create wan port",
"info": "",
"comments": "",
- "x": 567.0177421569824,
- "y": 1362.7640895843506,
- "z": "a60b8cc5.55e8f",
+ "x": 563.0177574157715,
+ "y": 1568.7641183137894,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "707a08a2.84bfc8",
+ "id": "1c53f052.63589",
"type": "comment",
"name": "TODO: split ip/mask",
"info": "",
"comments": "",
- "x": 991.0175361633301,
- "y": 1347.9343032836914,
- "z": "a60b8cc5.55e8f",
+ "x": 987.0175514221191,
+ "y": 1553.9343320131302,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "58693560.f55b6c",
+ "id": "b74ec81a.384238",
"type": "execute",
"name": "execute RestApiCallNode IPSubnets create",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdlan-ip-subnets.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/ip-subnets'`\" />\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=\"lanPortResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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": 652.7792358398438,
- "y": 1485.8749294281006,
- "z": "a60b8cc5.55e8f",
+ "x": 648.7792510986328,
+ "y": 1691.8749581575394,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "e01d8566.26a208",
- "b77c647.be67698"
+ "23e6b6aa.7344ca",
+ "c063d0d7.3d16a"
]
]
},
{
- "id": "b77c647.be67698",
+ "id": "c063d0d7.3d16a",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 921.7792663574219,
- "y": 1472.8749017715454,
- "z": "a60b8cc5.55e8f",
+ "x": 917.7792816162109,
+ "y": 1678.8749305009842,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "7b6fdd20.906734"
+ "8e16c4db.999008"
]
]
},
{
- "id": "e01d8566.26a208",
+ "id": "23e6b6aa.7344ca",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 918.779239654541,
- "y": 1507.8751201629639,
- "z": "a60b8cc5.55e8f",
+ "x": 914.7792549133301,
+ "y": 1713.8751488924026,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "a2642272.8a0b"
+ "c72550d5.e3c3a"
]
]
},
{
- "id": "7b6fdd20.906734",
+ "id": "8e16c4db.999008",
"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": 1074.7796478271484,
- "y": 1468.8751277923584,
- "z": "a60b8cc5.55e8f",
+ "x": 1070.7796630859375,
+ "y": 1674.8751565217972,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "a2642272.8a0b",
+ "id": "c72550d5.e3c3a",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1065.7792205810547,
- "y": 1508.8748760223389,
- "z": "a60b8cc5.55e8f",
+ "x": 1061.7792358398438,
+ "y": 1714.8749047517776,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "e06f7472.e95f98"
+ "4df7140a.3b523c"
]
]
},
{
- "id": "e06f7472.e95f98",
+ "id": "4df7140a.3b523c",
"type": "set",
"name": "set prop.lan.lanPortId",
"xml": "<set>\n<parameter name='prop.lan.lanPortId' value='`lanPortResp.success[0].id`' />\n",
"comments": "",
- "x": 1272.6683235168457,
- "y": 1511.208342552185,
- "z": "a60b8cc5.55e8f",
+ "x": 1268.6683387756348,
+ "y": 1717.2083712816238,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "3c1e06fc.eec57a",
+ "id": "bb7f5a63.9f3828",
"type": "execute",
"name": "execute RestApiCallNode create vpn topology",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-topology.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpn1Id + '/topology'`\" />\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=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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": 669.2896881103516,
- "y": 1665.3338165283203,
- "z": "a60b8cc5.55e8f",
+ "x": 665.2897033691406,
+ "y": 1871.333845257759,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "5e387a3e.4fd8a4",
- "e4302470.9e4168"
+ "5f34ded5.63106",
+ "676b6124.5f3ce"
]
]
},
{
- "id": "e4302470.9e4168",
+ "id": "676b6124.5f3ce",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 917.289571762085,
- "y": 1691.333193898201,
- "z": "a60b8cc5.55e8f",
+ "x": 913.289587020874,
+ "y": 1897.3332226276398,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "1a5d2b85.cc6d14"
+ "f979e24a.e1f45"
]
]
},
{
- "id": "1a5d2b85.cc6d14",
+ "id": "f979e24a.e1f45",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1087.2895107269287,
- "y": 1694.333193898201,
- "z": "a60b8cc5.55e8f",
+ "x": 1083.2895259857178,
+ "y": 1900.3332226276398,
+ "z": "54b5b8b7.025628",
"wires": [
[]
]
},
{
- "id": "5ab2794a.636098",
+ "id": "cc2c04a4.b165e8",
"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 vpn topology failed\" />\n",
"comments": "",
- "x": 1087.2896327972412,
- "y": 1650.333193898201,
- "z": "a60b8cc5.55e8f",
+ "x": 1083.2896480560303,
+ "y": 1856.3332226276398,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "5e387a3e.4fd8a4",
+ "id": "5f34ded5.63106",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 920.2895107269287,
- "y": 1650.333193898201,
- "z": "a60b8cc5.55e8f",
+ "x": 916.2895259857178,
+ "y": 1856.3332226276398,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "5ab2794a.636098"
+ "cc2c04a4.b165e8"
]
]
},
{
- "id": "69c506db.344ae8",
+ "id": "c04f18a6.eec778",
"type": "execute",
"name": "execute RestApiCallNode create vpn ",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/vpn'`\" />\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=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.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": 640.288013458252,
- "y": 1575.8328762054443,
- "z": "a60b8cc5.55e8f",
+ "x": 636.288028717041,
+ "y": 1781.8329049348831,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "e0d8f775.adb548",
- "1307c84a.e256c8"
+ "97764cff.1f5ea",
+ "ea83fcec.06662"
]
]
},
{
- "id": "1307c84a.e256c8",
+ "id": "ea83fcec.06662",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 861.2879161834717,
- "y": 1597.8328419923782,
- "z": "a60b8cc5.55e8f",
+ "x": 857.2879314422607,
+ "y": 1803.832870721817,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "845c9ffd.b87b7"
+ "70ae34b5.54dd0c"
]
]
},
{
- "id": "845c9ffd.b87b7",
+ "id": "70ae34b5.54dd0c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1031.2878551483154,
- "y": 1600.8328419923782,
- "z": "a60b8cc5.55e8f",
+ "x": 1027.2878704071045,
+ "y": 1806.832870721817,
+ "z": "54b5b8b7.025628",
"wires": [
[]
]
},
{
- "id": "de430292.51fa5",
+ "id": "98836605.c54338",
"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 vpn failed\" />\n",
"comments": "",
- "x": 1031.287977218628,
- "y": 1556.8328419923782,
- "z": "a60b8cc5.55e8f",
+ "x": 1027.287992477417,
+ "y": 1762.832870721817,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "e0d8f775.adb548",
+ "id": "97764cff.1f5ea",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 864.2878551483154,
- "y": 1556.8328419923782,
- "z": "a60b8cc5.55e8f",
+ "x": 860.2878704071045,
+ "y": 1762.832870721817,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "de430292.51fa5"
+ "98836605.c54338"
]
]
},
{
- "id": "8b10096b.8cb7e8",
+ "id": "51c264bd.1cd0cc",
"type": "switchNode",
"name": "switch ActivateSDWANVpnInstance",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANVpnInstance'`\">\n",
"comments": "",
"outputs": 1,
- "x": 1227.2898406982422,
- "y": 862.3332567214966,
- "z": "a60b8cc5.55e8f",
+ "x": 1235.2898559570312,
+ "y": 900.3332679271698,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "43a6f166.ec09e"
+ "425067a.9f0ee98"
]
]
},
{
- "id": "7ba15821.578698",
+ "id": "6936e75f.9c21b8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 984.6229438781738,
- "y": 791.3333368301392,
- "z": "a60b8cc5.55e8f",
+ "x": 964.6229438781738,
+ "y": 798.3333374261856,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "daa35d7b.bbc16",
- "8b10096b.8cb7e8"
+ "cea7983f.defeb8",
+ "51c264bd.1cd0cc"
]
]
},
{
- "id": "43a6f166.ec09e",
+ "id": "425067a.9f0ee98",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1322.9563522338867,
- "y": 936.3333377838135,
- "z": "a60b8cc5.55e8f",
+ "x": 1330.9563674926758,
+ "y": 974.3333489894867,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "f4ccb599.a134d8"
+ "c1956959.4be878"
]
]
},
{
- "id": "f4ccb599.a134d8",
+ "id": "c1956959.4be878",
"type": "for",
"name": "for vf-modules.vf-module_length",
"xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1537.2062377929688,
- "y": 937.8333144187927,
- "z": "a60b8cc5.55e8f",
+ "x": 1545.2062530517578,
+ "y": 975.8333256244659,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "f6720c82.39b5d"
+ "d2a805b2.ac7b88"
]
]
},
{
- "id": "f6720c82.39b5d",
+ "id": "2b39b5dd.e8366a",
"type": "switchNode",
"name": "switch vpn-id",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'vpn-id'`\">\n \n\n\n",
"comments": "",
"outputs": 1,
- "x": 1784.2062759399414,
- "y": 932.8333973884583,
- "z": "a60b8cc5.55e8f",
+ "x": 1942.2064056396484,
+ "y": 993.8333772420883,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "460bb48a.240e2c"
+ "3ae5efa1.57a7"
]
]
},
{
- "id": "460bb48a.240e2c",
+ "id": "3ae5efa1.57a7",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1934.9562301635742,
- "y": 934.3333129882812,
- "z": "a60b8cc5.55e8f",
+ "x": 2092.9563598632812,
+ "y": 995.3332928419113,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "ac3fc038.e0007"
+ "3180f641.87c8ba"
]
]
},
{
- "id": "ac3fc038.e0007",
+ "id": "3180f641.87c8ba",
"type": "set",
"name": "set prop.vpn1Id",
"xml": "<set>\n<parameter name='prop.vpn1Id' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />\n",
"comments": "",
- "x": 2108.9569778442383,
- "y": 934.3333714008331,
- "z": "a60b8cc5.55e8f",
+ "x": 2266.9571075439453,
+ "y": 995.3333512544632,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "43b17553.c7382c",
+ "id": "ca69f782.4f6db8",
"type": "set",
"name": "Add sites to list and update length",
"xml": "<set>\n<parameter name='prop.siteIds[$prop.siteIds_length]' value='`$prop.attach.siteId`' />\n<parameter name='prop.siteIds_length' value='`$prop.siteIds_length + 1`' />\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
"comments": "",
- "x": 2539.290351867676,
- "y": 840.3333714008331,
- "z": "a60b8cc5.55e8f",
+ "x": 3430.290397644043,
+ "y": 843.333466053009,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "36d57da.c3bd682",
+ "id": "91acccd4.f9b4d",
"type": "set",
"name": "Add site attachement to list and update length",
"xml": "<set>\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].siteId' value='`$prop.attach.siteId`' />\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles[0]' value='`$prop.role`' />\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles_length' value='1' />\n<parameter name='prop.siteAttachements_length' value='`$prop.siteAttachements_length + 1`' />\n\n\n\n\n\n\n\n\n\n\n\n\n",
"comments": "",
- "x": 2570.2902450561523,
- "y": 883.3333377838135,
- "z": "a60b8cc5.55e8f",
+ "x": 3461.2902221679688,
+ "y": 893.3334164619446,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "16a0b0ad.e2c3df",
+ "id": "5684b01b.2cc86",
"type": "set",
"name": "set prop.siteAttachement_length=0",
"xml": "<set>\n<parameter name='prop.siteAttachements_length' value='0' />\n<parameter name='prop.siteIds_length' value='0' />\n\n\n\n",
"comments": "",
- "x": 656.2896194458008,
- "y": 588.333330154419,
- "z": "a60b8cc5.55e8f",
+ "x": 636.2896194458008,
+ "y": 595.3333307504654,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "8eb63937.68f308",
- "type": "block",
- "name": "block atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1769.623275756836,
- "y": 816.3333358764648,
- "z": "a60b8cc5.55e8f",
- "wires": [
- [
- "f89ede9f.dfe34",
- "fe16c8cc.020428",
- "9d46cf63.0dcd9"
- ]
- ]
- },
- {
- "id": "fe16c8cc.020428",
+ "id": "e157d21e.75dc",
"type": "switchNode",
"name": "switch role",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'role'`\">\n \n\n\n",
"comments": "",
"outputs": 1,
- "x": 1931.9562072753906,
- "y": 747.3333349227905,
- "z": "a60b8cc5.55e8f",
+ "x": 2172.956443786621,
+ "y": 731.3333559036255,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "7b19ac17.f7b154"
+ "91af0190.6f383"
]
]
},
{
- "id": "7b19ac17.f7b154",
+ "id": "91af0190.6f383",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2094.956211090088,
- "y": 742.3333358764648,
- "z": "a60b8cc5.55e8f",
+ "x": 2336.9564476013184,
+ "y": 731.3333559036255,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "5fca6bb6.2ad174"
+ "71599403.d1a60c"
]
]
},
{
- "id": "5fca6bb6.2ad174",
+ "id": "71599403.d1a60c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2262.956253051758,
- "y": 736.3333339691162,
- "z": "a60b8cc5.55e8f",
+ "x": 2524.956615447998,
+ "y": 716.3333549499512,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "fa5fdce5.2309f",
- "d71b47e7.ba0928",
- "368fa25d.21f04e"
+ "7213abe2.551d54",
+ "f3a9e626.ca5db8",
+ "a1885c07.3d09a"
]
]
},
{
- "id": "d71b47e7.ba0928",
+ "id": "f3a9e626.ca5db8",
"type": "switchNode",
"name": "switch sd-wan-edge",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == 'sd-wan-edge'`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 2457.956382751465,
- "y": 697.3333253860474,
- "z": "a60b8cc5.55e8f",
+ "x": 2719.956745147705,
+ "y": 677.3333463668823,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "4c9e170f.05bda8"
+ "de11bb23.ad1648"
]
]
},
{
- "id": "fa5fdce5.2309f",
+ "id": "7213abe2.551d54",
"type": "switchNode",
"name": "switch dsvpn-hub",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'dsvpn-hub'`\">\n \n\n\n",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == 'dsvpn-hub'`\">\n \n\n\n",
"comments": "",
"outputs": 1,
- "x": 2454.9564895629883,
- "y": 752.333340883255,
- "z": "a60b8cc5.55e8f",
+ "x": 2716.9568519592285,
+ "y": 732.33336186409,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "a41f3558.9efd38"
+ "19121485.c6be8b"
]
]
},
{
- "id": "8f17f745.17ddb8",
+ "id": "cab86296.3a26c",
"type": "set",
"name": "set spoke role",
"xml": "<set>\n<parameter name='prop.role' value=\"spoke\" />\n",
"comments": "",
- "x": 2787.9565048217773,
- "y": 691.3333711624146,
- "z": "a60b8cc5.55e8f",
+ "x": 3049.9568672180176,
+ "y": 671.3333921432495,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "44a0a864.8cd1d8",
+ "id": "856c6a7c.0a9268",
"type": "set",
"name": "set hub role",
"xml": "<set>\n<parameter name='prop.role' value=\"hub\" />\n",
"comments": "",
- "x": 2786.9562644958496,
- "y": 746.3333549499512,
- "z": "a60b8cc5.55e8f",
+ "x": 3048.95662689209,
+ "y": 726.3333759307861,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "4c9e170f.05bda8",
+ "id": "de11bb23.ad1648",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2627.9563522338867,
- "y": 693,
- "z": "a60b8cc5.55e8f",
+ "x": 2889.956714630127,
+ "y": 673.000020980835,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "8f17f745.17ddb8"
+ "cab86296.3a26c"
]
]
},
{
- "id": "a41f3558.9efd38",
+ "id": "19121485.c6be8b",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2631.9563522338867,
- "y": 748,
- "z": "a60b8cc5.55e8f",
+ "x": 2893.956714630127,
+ "y": 728.000020980835,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "44a0a864.8cd1d8"
+ "856c6a7c.0a9268"
]
]
},
{
- "id": "b87c5ca2.4198d",
+ "id": "a98e7add.71df78",
"type": "update",
"name": "update SDWAN VPN status to AAI",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='lan-port-config' \n key='lan-port-config.lan-port-config-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id' >\n<parameter name='lan-port-config-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<parameter name='operational-status' value='Active' />\n<!--parameter name='lan-port-config-id' value='`$prop.lan-port-config-id`' /-->\n",
"comments": "",
"outputs": 1,
- "x": 640.3208885192871,
- "y": 2012.031280040741,
- "z": "a60b8cc5.55e8f",
+ "x": 636.3209037780762,
+ "y": 2218.0313087701797,
+ "z": "54b5b8b7.025628",
"wires": [
[]
]
},
{
- "id": "b4355150.f8381",
+ "id": "e03228a1.7c0b08",
"type": "set",
"name": "set vf-module-level-oper-status",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.last-rpc-action' value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.last-action' value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />",
"comments": "",
- "x": 634.9559097290039,
- "y": 1957.126205444336,
- "z": "a60b8cc5.55e8f",
+ "x": 630.955924987793,
+ "y": 2163.1262341737747,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "ea89a3cd.96c6c",
+ "id": "f005bd73.83921",
"type": "set",
"name": "set vf-module-id and vf-module-object-path",
"xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
"comments": "",
- "x": 670.9559097290039,
- "y": 1910.6261444091797,
- "z": "a60b8cc5.55e8f",
+ "x": 666.955924987793,
+ "y": 2116.6261731386185,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "e352097b.fa56f8",
+ "id": "3b06c257.27b87e",
"type": "set",
"name": "copy input data in service-data",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.sdnc-request-header.' value='`$vf-module-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.request-information.' value='`$vf-module-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.' value='`$vf-module-topology-operation-input.service-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />\n",
"comments": "",
- "x": 634.9558601379395,
- "y": 1858.876064300537,
- "z": "a60b8cc5.55e8f",
+ "x": 630.9558753967285,
+ "y": 2064.876093029976,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "9f914b2c.f63948",
+ "id": "d5b2bc3d.8d9a6",
"type": "set",
"name": "set device PortId to service data",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length].name' value='devicePortId' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length].value' value='`$prop.lan.devicePortId`' />\n",
"comments": "",
- "x": 641.3209266662598,
- "y": 1752.0314636230469,
- "z": "a60b8cc5.55e8f",
+ "x": 637.3209419250488,
+ "y": 1958.0314923524857,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "23f60fe.f5fa6f",
+ "id": "b83326ad.562c28",
"type": "set",
"name": "set lan PortId to service data",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length].name' value='lanPortId' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length].value' value='`$prop.lan.lanPortId`' />\n",
"comments": "",
- "x": 627.3208503723145,
- "y": 1806.0312767028809,
- "z": "a60b8cc5.55e8f",
- "wires": []
- },
- {
- "id": "1a9cf10f.4a8b1f",
- "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/svclogic21.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"prop.attach.siteId\"/>\n<parameter name=\"field3\" value='`$prop.attach.siteId`'/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2464.3209915161133,
- "y": 928.5312805175781,
- "z": "a60b8cc5.55e8f",
- "wires": [
- []
- ]
- },
- {
- "id": "368fa25d.21f04e",
- "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/svclogic22.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"set spoke role\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2433.321002960205,
- "y": 659.531247138977,
- "z": "a60b8cc5.55e8f",
- "wires": [
- []
- ]
- },
- {
- "id": "9d46cf63.0dcd9",
- "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/svclogic23.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"param-name\"/>\n<parameter name=\"field3\" value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name`'/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1927.3208541870117,
- "y": 691.53125,
- "z": "a60b8cc5.55e8f",
- "wires": [
- []
- ]
- },
- {
- "id": "62b5eb93.96f0e4",
- "type": "comment",
- "name": "**revert the changes",
- "info": "",
- "comments": "",
- "x": 1328.3208808898926,
- "y": 697.0312824249268,
- "z": "a60b8cc5.55e8f",
+ "x": 623.3208656311035,
+ "y": 2012.0313054323196,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "4995fb6d.83aaf4",
+ "id": "b435bcc5.258",
"type": "switchNode",
"name": "switch vf-modules.vf-module_length",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length >= '0'`\">\n\n<!--switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\"-->\n",
"comments": "",
"outputs": 1,
- "x": 871.5038909912109,
- "y": 511.25390625,
- "z": "a60b8cc5.55e8f",
+ "x": 851.5038909912109,
+ "y": 518.2539068460464,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "208d9618.3a993a"
+ "6bafbe6f.aa9fa"
]
]
},
{
- "id": "208d9618.3a993a",
+ "id": "6bafbe6f.aa9fa",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 977.50390625,
- "y": 562.25390625,
- "z": "a60b8cc5.55e8f",
+ "x": 957.50390625,
+ "y": 569.2539068460464,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "fd503aa4.1469a8"
+ "6df05552.51f26c"
]
]
},
{
- "id": "8fd527ce.0b2738",
+ "id": "ae8078e2.85aab8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 671.7539138793945,
- "y": 472.0039048194885,
- "z": "a60b8cc5.55e8f",
+ "x": 651.7539138793945,
+ "y": 479.003905415535,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "4995fb6d.83aaf4"
+ "b435bcc5.258"
]
]
},
{
- "id": "fd503aa4.1469a8",
+ "id": "6df05552.51f26c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1129.753890991211,
- "y": 559.0039281845093,
- "z": "a60b8cc5.55e8f",
+ "x": 1109.753890991211,
+ "y": 566.0039287805557,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "2dd1b5ff.e9de3a"
+ "8567646d.1060f8"
]
]
},
{
- "id": "258487d9.bf18e8",
+ "id": "fb5d6670.5ef758",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1873.5039710998535,
- "y": 557.0039119720459,
- "z": "a60b8cc5.55e8f",
+ "x": 1853.5039710998535,
+ "y": 564.0039125680923,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "bc24bdbf.b7fae"
+ "80043aea.5219e8"
]
]
},
{
- "id": "63f09f8.86bc26",
+ "id": "6484dde4.eec674",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 878.2539176940918,
- "y": 910.7539704740047,
- "z": "a60b8cc5.55e8f",
+ "x": 874.2539329528809,
+ "y": 1116.7539992034435,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "6c04212d.63f27"
+ "a1390712.a62bc8"
]
]
},
{
- "id": "b3737121.de6a3",
+ "id": "ad9df864.da7a08",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 881.7448844909668,
- "y": 958.328006118536,
- "z": "a60b8cc5.55e8f",
+ "x": 877.7448997497559,
+ "y": 1164.3280348479748,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "b8053b7f.3dfe58"
+ "90fe71ad.3f6b8"
]
]
},
{
- "id": "b40d4802.cec768",
+ "id": "eb0b9e44.3ab32",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 877.0778923034668,
- "y": 999.6613191068172,
- "z": "a60b8cc5.55e8f",
+ "x": 873.0779075622559,
+ "y": 1205.661347836256,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "11f26c3c.e24064"
+ "71113a16.58bf04"
]
]
},
{
- "id": "b8053b7f.3dfe58",
+ "id": "90fe71ad.3f6b8",
"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": 1058.3162956237793,
- "y": 946.6137422025204,
- "z": "a60b8cc5.55e8f",
+ "x": 1054.3163108825684,
+ "y": 1152.6137709319592,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "11f26c3c.e24064",
+ "id": "71113a16.58bf04",
"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": 1064.8504486083984,
- "y": 995.1005118787289,
- "z": "a60b8cc5.55e8f",
+ "x": 1060.8504638671875,
+ "y": 1201.1005406081676,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "b9f93820.627df8",
+ "id": "dee3d47e.3afa78",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 880.2539901733398,
- "y": 1053.7540006637573,
- "z": "a60b8cc5.55e8f",
+ "x": 876.2540054321289,
+ "y": 1259.754029393196,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "ea0a2431.4fcee8"
+ "511dbf29.862b4"
]
]
},
{
- "id": "4b6f89c7.7da458",
+ "id": "1b95ad69.b293e3",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 872.5039901733398,
- "y": 1107.3968839645386,
- "z": "a60b8cc5.55e8f",
+ "x": 868.5040054321289,
+ "y": 1313.3969126939774,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "10698363.0892ad"
+ "b6fcc0f6.ed652"
]
]
},
{
- "id": "ea0a2431.4fcee8",
+ "id": "511dbf29.862b4",
"type": "set",
"name": "set token-id",
"xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
"comments": "",
- "x": 1030.2539176940918,
- "y": 1054.7539691925049,
- "z": "a60b8cc5.55e8f",
+ "x": 1026.2539329528809,
+ "y": 1260.7539979219437,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "10698363.0892ad",
+ "id": "b6fcc0f6.ed652",
"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": 1025.2539901733398,
- "y": 1107.1469449996948,
- "z": "a60b8cc5.55e8f",
+ "x": 1021.2540054321289,
+ "y": 1313.1469737291336,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "6c04212d.63f27",
+ "id": "a1390712.a62bc8",
"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": 1073.7539978027344,
- "y": 905.7539749145508,
- "z": "a60b8cc5.55e8f",
+ "x": 1069.7540130615234,
+ "y": 1111.7540036439896,
+ "z": "54b5b8b7.025628",
"wires": []
},
{
- "id": "97edc5d7.68c598",
+ "id": "f78f25c0.9e44a8",
"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.onap.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": 631.2539672851562,
- "y": 1076.754077911377,
- "z": "a60b8cc5.55e8f",
+ "x": 627.2539825439453,
+ "y": 1282.7541066408157,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "b9f93820.627df8",
- "4b6f89c7.7da458"
+ "dee3d47e.3afa78",
+ "1b95ad69.b293e3"
]
]
},
{
- "id": "13f149d1.1db0a6",
+ "id": "955e1b88.3ac648",
"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 = 'SDWANController' AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
"comments": "",
"outputs": 1,
- "x": 616.254035949707,
- "y": 957.7539901733398,
- "z": "a60b8cc5.55e8f",
+ "x": 612.2540512084961,
+ "y": 1163.7540189027786,
+ "z": "54b5b8b7.025628",
"wires": [
[
- "63f09f8.86bc26",
- "b3737121.de6a3",
- "b40d4802.cec768"
+ "6484dde4.eec674",
+ "ad9df864.da7a08",
+ "eb0b9e44.3ab32"
]
]
},
{
- "id": "deaed14.de5b43",
+ "id": "e3c5f502.462e18",
"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": 631.00390625,
- "y": 291.50390625,
- "z": "a60b8cc5.55e8f",
+ "x": 611.00390625,
+ "y": 298.50390684604645,
+ "z": "54b5b8b7.025628",
"wires": [
[]
]
+ },
+ {
+ "id": "df2e3f53.8ca7",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2552.5039863586426,
+ "y": 587.7539157867432,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "df6bb2fa.c17ef",
+ "f982878a.d924a8"
+ ]
+ ]
+ },
+ {
+ "id": "f982878a.d924a8",
+ "type": "set",
+ "name": "set site-vnf-index",
+ "xml": "<set>\n<parameter name='site-vnf-index' value='`$vnfidx`' />\n",
+ "comments": "",
+ "x": 2761.50390625,
+ "y": 605.75390625,
+ "z": "54b5b8b7.025628",
+ "wires": []
+ },
+ {
+ "id": "2a5aae1a.c1b0a2",
+ "type": "for",
+ "name": "for vf-modules.vf-module_length",
+ "xml": "<for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 631.0000305175781,
+ "y": 954.6667243242264,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "a16d9ee5.ca4f8"
+ ]
+ ]
+ },
+ {
+ "id": "a16d9ee5.ca4f8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 732.614933013916,
+ "y": 1050.9960061311722,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "b25dce73.2318a"
+ ]
+ ]
+ },
+ {
+ "id": "b25dce73.2318a",
+ "type": "switchNode",
+ "name": "switch ActivateSDWANSiteInstance",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANSiteInstance'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 997.0001754760742,
+ "y": 1000.6666575670242,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "d392cd81.71967"
+ ]
+ ]
+ },
+ {
+ "id": "d392cd81.71967",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1219.0000915527344,
+ "y": 1000.6667391061783,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "fbfbcd34.6e005"
+ ]
+ ]
+ },
+ {
+ "id": "fbfbcd34.6e005",
+ "type": "for",
+ "name": "for vf-modules.vf-module_length",
+ "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1300.250099182129,
+ "y": 1075.1667405366898,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "14eee879.fb0a98"
+ ]
+ ]
+ },
+ {
+ "id": "14eee879.fb0a98",
+ "type": "block",
+ "name": "block atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1517.6152648925781,
+ "y": 1075.9960051774979,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "3e0dbda2.f3d102"
+ ]
+ ]
+ },
+ {
+ "id": "3e0dbda2.f3d102",
+ "type": "switchNode",
+ "name": "switch siteId",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'siteId'`\">\n \n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1683.2504577636719,
+ "y": 1082.1668478250504,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "d2a4cdf0.bc75d"
+ ]
+ ]
+ },
+ {
+ "id": "d2a4cdf0.bc75d",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1860.2504768371582,
+ "y": 1085.1666880846024,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "62ddf11d.87106"
+ ]
+ ]
+ },
+ {
+ "id": "62ddf11d.87106",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2019.5006675720215,
+ "y": 1080.6667281389236,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "f40c1288.f6e07"
+ ]
+ ]
+ },
+ {
+ "id": "f40c1288.f6e07",
+ "type": "set",
+ "name": "set prop.attach.siteId",
+ "xml": "<set>\n<parameter name='prop.siteId' value='`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />\n",
+ "comments": "",
+ "x": 2244.2509841918945,
+ "y": 1059.1667395830154,
+ "z": "54b5b8b7.025628",
+ "wires": []
+ },
+ {
+ "id": "d2a805b2.ac7b88",
+ "type": "block",
+ "name": "block atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1768.0000610351562,
+ "y": 972.3333503007889,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "2b39b5dd.e8366a",
+ "15adf9ee.e16a86"
+ ]
+ ]
+ },
+ {
+ "id": "15adf9ee.e16a86",
+ "type": "switchNode",
+ "name": "switch name",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'name'`\">\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1943.000015258789,
+ "y": 942.333323597908,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "76044b62.8da524"
+ ]
+ ]
+ },
+ {
+ "id": "76044b62.8da524",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2093.749969482422,
+ "y": 943.833239197731,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "dfeb8378.a414f"
+ ]
+ ]
+ },
+ {
+ "id": "dfeb8378.a414f",
+ "type": "set",
+ "name": "set prop.name",
+ "xml": "<set>\n<parameter name='prop.name' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />\n",
+ "comments": "",
+ "x": 2267.750717163086,
+ "y": 943.8332976102829,
+ "z": "54b5b8b7.025628",
+ "wires": []
+ },
+ {
+ "id": "3e65957b.505a7a",
+ "type": "for",
+ "name": "for vf-modules.vf-module_length",
+ "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1935.2583618164062,
+ "y": 730.5041723251343,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "e157d21e.75dc"
+ ]
+ ]
+ },
+ {
+ "id": "6306e7ef.6a3048",
+ "type": "switchNode",
+ "name": "switch siteId",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$sidx].name == 'siteId'`\">\n \n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2826.258445739746,
+ "y": 832.5042572021484,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "5020b41b.37af8c"
+ ]
+ ]
+ },
+ {
+ "id": "45b20afa.d404e4",
+ "type": "block",
+ "name": "block atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1649.5312805175781,
+ "y": 756.0312795639038,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "3e65957b.505a7a"
+ ]
+ ]
+ },
+ {
+ "id": "a1885c07.3d09a",
+ "type": "for",
+ "name": "for vf-modules.vf-module_length",
+ "xml": "<for index='sidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2579.5310440063477,
+ "y": 826.0312752723694,
+ "z": "54b5b8b7.025628",
+ "wires": [
+ [
+ "6306e7ef.6a3048"
+ ]
+ ]
}
]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.xml index 9211d48b..14941e5a 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.xml @@ -78,9 +78,14 @@ <for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
<switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'deviceId'`">
<outcome value='true'>
- <set>
- <parameter name='prop.lan.deviceId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
- </set>
+ <block atomic="true">
+ <set>
+ <parameter name='prop.lan.deviceId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
+ </set>
+ <set>
+ <parameter name='site-vnf-index' value='`$vnfidx`' />
+ </set>
+ </block>
</outcome>
</switch>
</for>
@@ -103,22 +108,11 @@ <block>
<switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANSiteInstance'`">
<outcome value='true'>
- <for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
- <block atomic="true">
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/svclogic23.log"/>
- <parameter name="field1" value="__TIMESTAMP__"/>
- <parameter name="field2" value="param-name"/>
- <parameter name="field3" value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name`'/>
- </record>
+ <block atomic="true">
+ <for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
<switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'role'`">
<outcome value='true'>
<block atomic="true">
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/svclogic22.log"/>
- <parameter name="field1" value="__TIMESTAMP__"/>
- <parameter name="field2" value="set spoke role"/>
- </record>
<switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == 'sd-wan-edge'`">
<outcome value='true'>
<set>
@@ -126,61 +120,87 @@ </set>
</outcome>
</switch>
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'dsvpn-hub'`">
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == 'dsvpn-hub'`">
<outcome value='true'>
<set>
<parameter name='prop.role' value="hub" />
</set>
</outcome>
</switch>
+ <for index='sidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$sidx].name == 'siteId'`">
+ <outcome value='true'>
+ <block atomic="true">
+ <set>
+ <parameter name='prop.attach.siteId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$sidx].value`' />
+ </set>
+ <set>
+ <parameter name='prop.siteIds[$prop.siteIds_length]' value='`$prop.attach.siteId`' />
+ <parameter name='prop.siteIds_length' value='`$prop.siteIds_length + 1`' />
+ </set>
+ <set>
+ <parameter name='prop.siteAttachements[$prop.siteAttachements_length].siteId' value='`$prop.attach.siteId`' />
+ <parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles[0]' value='`$prop.role`' />
+ <parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles_length' value='1' />
+ <parameter name='prop.siteAttachements_length' value='`$prop.siteAttachements_length + 1`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </for>
</block>
</outcome>
</switch>
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'siteId'`">
- <outcome value='true'>
- <block atomic="true">
- <set>
- <parameter name='prop.attach.siteId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
- </set>
- <set>
- <parameter name='prop.siteIds[$prop.siteIds_length]' value='`$prop.attach.siteId`' />
- <parameter name='prop.siteIds_length' value='`$prop.siteIds_length + 1`' />
- </set>
- <set>
- <parameter name='prop.siteAttachements[$prop.siteAttachements_length].siteId' value='`$prop.attach.siteId`' />
- <parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles[0]' value='`$prop.role`' />
- <parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles_length' value='1' />
- <parameter name='prop.siteAttachements_length' value='`$prop.siteAttachements_length + 1`' />
- </set>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/svclogic21.log"/>
- <parameter name="field1" value="__TIMESTAMP__"/>
- <parameter name="field2" value="prop.attach.siteId"/>
- <parameter name="field3" value='`$prop.attach.siteId`'/>
- </record>
- </block>
- </outcome>
- </switch>
- </block>
- </for>
+ </for>
+ </block>
</outcome>
</switch>
<switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANVpnInstance'`">
<outcome value='true'>
<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'vpn-id'`">
- <outcome value='true'>
- <set>
- <parameter name='prop.vpn1Id' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
- </set>
- </outcome>
- </switch>
+ <block atomic="true">
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'name'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='prop.name' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
+ </set>
+ </outcome>
+ </switch>
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'vpn-id'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='prop.vpn1Id' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
+ </set>
+ </outcome>
+ </switch>
+ </block>
</for>
</outcome>
</switch>
</block>
</for>
</for>
+ <for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module_length`' >
+ <block>
+ <switch test="`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANSiteInstance'`">
+ <outcome value='true'>
+ <for index='pidx' start='0' end='`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
+ <block atomic="true">
+ <switch test="`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'siteId'`">
+ <outcome value='true'>
+ <block atomic="true">
+ <set>
+ <parameter name='prop.siteId' value='`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </outcome>
+ </switch>
+ </block>
+ </for>
<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="esr-thirdparty-sdnc"
key="esr-thirdparty-sdnc.thirdparty-sdnc-id = 'SDWANController' AND
|