summaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json956
1 files changed, 486 insertions, 470 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json
index 81ac6874..b8646972 100644
--- a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json
+++ b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-activate.json
@@ -1,20 +1,20 @@
[
{
- "id": "fb32b655.b185b8",
+ "id": "ea193d8f.e165e",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 97,
- "y": 26,
- "z": "84e7e3f2.6b184",
+ "x": 112,
+ "y": 70,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "84e0c1e1.45193"
+ "45143e5e.12cef"
]
]
},
{
- "id": "84e0c1e1.45193",
+ "id": "45143e5e.12cef",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,1316 +22,1332 @@
"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": 228.2856903076172,
- "y": 75.23810863494873,
- "z": "84e7e3f2.6b184",
+ "x": 243.2856903076172,
+ "y": 119.23810863494873,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "45da7482.2ad22c"
+ "22fb039d.719e1c"
]
]
},
{
- "id": "45da7482.2ad22c",
+ "id": "22fb039d.719e1c",
"type": "method",
"name": "method sotn-vf-operation-uni-activate",
"xml": "<method rpc='sotn-vf-operation-uni-activate' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 231.42861938476562,
- "y": 160.00003242492676,
- "z": "84e7e3f2.6b184",
+ "x": 246.42861938476562,
+ "y": 204.00003242492676,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "edcc85d8.9d3d28"
+ "bbe79441.cda0b"
]
]
},
{
- "id": "2c9ee1fb.c2a40e",
+ "id": "8dca40ca.b6cbc8",
"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": 703.9959564208984,
- "y": 340.99998915195465,
- "z": "84e7e3f2.6b184",
+ "x": 718.9959564208984,
+ "y": 384.99998915195465,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "a85389a5.eba5b8",
- "b56c9993.d26ec8",
- "d2286cfd.202a6"
+ "66f88853.0801a8",
+ "5f34a2a5.ce0fbc",
+ "37779f9b.3e84f8"
]
]
},
{
- "id": "edcc85d8.9d3d28",
+ "id": "bbe79441.cda0b",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 322.6626205444336,
- "y": 445.66670763492584,
- "z": "84e7e3f2.6b184",
+ "x": 337.6626205444336,
+ "y": 489.66670763492584,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "2c9ee1fb.c2a40e",
- "fa8ab78.8a0bc48",
- "83723db3.8501b",
- "943ab36c.4be4",
- "56a2543.f406bac",
- "7638ccf.06d4134",
- "a53f3f0c.46a7a",
- "c42e922f.1abaa"
+ "8dca40ca.b6cbc8",
+ "b28368bd.88b17",
+ "91b62864.f184c8",
+ "b0f3fc53.5db61",
+ "b5422f78.9d3e4",
+ "f2975c47.fb694",
+ "aeddedc2.f06158",
+ "5950f717.b81e28"
]
]
},
{
- "id": "83723db3.8501b",
+ "id": "91b62864.f184c8",
"type": "for",
"name": "for each vnf",
"xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 669.0273170471191,
- "y": 211.269144654274,
- "z": "84e7e3f2.6b184",
+ "x": 684.0273170471191,
+ "y": 255.269144654274,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "b6860278.b7c3a"
+ "3d5e06d8.9791c2"
]
]
},
{
- "id": "fa8ab78.8a0bc48",
+ "id": "b28368bd.88b17",
"type": "switchNode",
"name": "switch vnf_length",
"xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 673.9959716796875,
- "y": 150.00001394748688,
- "z": "84e7e3f2.6b184",
+ "x": 688.9959716796875,
+ "y": 194.00001394748688,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "4d78f4ba.adcf7c"
+ "746b74df.fbc48c"
]
]
},
{
- "id": "4d78f4ba.adcf7c",
+ "id": "746b74df.fbc48c",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 853.9959526062012,
- "y": 149.0000034570694,
- "z": "84e7e3f2.6b184",
+ "x": 868.9959526062012,
+ "y": 193.0000034570694,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "83071b4.81cf8e8"
+ "62ebea71.fce5b4"
]
]
},
{
- "id": "83071b4.81cf8e8",
+ "id": "62ebea71.fce5b4",
"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": 1003.4246788024902,
- "y": 150.14292109012604,
- "z": "84e7e3f2.6b184",
+ "x": 1018.4246788024902,
+ "y": 194.14292109012604,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "b6860278.b7c3a",
+ "id": "3d5e06d8.9791c2",
"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": 891.9959678649902,
- "y": 212.00000965595245,
- "z": "84e7e3f2.6b184",
+ "x": 906.9959678649902,
+ "y": 256.00000965595245,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "a420300f.fcc77"
+ "fccff52.827ec08"
]
]
},
{
- "id": "a420300f.fcc77",
+ "id": "fccff52.827ec08",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1106.9959526062012,
- "y": 210.0000034570694,
- "z": "84e7e3f2.6b184",
+ "x": 1121.9959526062012,
+ "y": 254.0000034570694,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "61f2940f.e1eccc"
+ "fc0c6263.7f4b58"
]
]
},
{
- "id": "5ebe199d.38e1f8",
+ "id": "46df70e6.cbb32",
"type": "set",
"name": "set vnf-index",
"xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
"comments": "",
- "x": 1447.9959716796875,
- "y": 178,
- "z": "84e7e3f2.6b184",
+ "x": 1462.9959716796875,
+ "y": 222,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "b56c9993.d26ec8",
+ "id": "5f34a2a5.ce0fbc",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 963.9959716796875,
- "y": 365,
- "z": "84e7e3f2.6b184",
+ "x": 978.9959716796875,
+ "y": 409,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "f74bba14.018558"
+ "b65ac05a.92d3b8"
]
]
},
{
- "id": "a85389a5.eba5b8",
+ "id": "66f88853.0801a8",
"type": "outcome",
"name": "0",
"xml": "<outcome value='0'>\n",
"comments": "",
"outputs": 1,
- "x": 960.9959716796875,
- "y": 293,
- "z": "84e7e3f2.6b184",
+ "x": 975.9959716796875,
+ "y": 337,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "f74bba14.018558"
+ "b65ac05a.92d3b8"
]
]
},
{
- "id": "f74bba14.018558",
+ "id": "b65ac05a.92d3b8",
"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": 1132.9959716796875,
- "y": 327,
- "z": "84e7e3f2.6b184",
+ "x": 1147.9959716796875,
+ "y": 371,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "d2286cfd.202a6",
+ "id": "37779f9b.3e84f8",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 925.9959487915039,
- "y": 435.9999986886978,
- "z": "84e7e3f2.6b184",
+ "x": 940.9959487915039,
+ "y": 479.9999986886978,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "1141c0c2.8446df"
+ "8619e619.b5b6f"
]
]
},
{
- "id": "bd0fe0b8.95c3d",
+ "id": "b4807db5.ce3f18",
"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": 1279.995964050293,
- "y": 434.0000126361847,
- "z": "84e7e3f2.6b184",
+ "x": 1294.995964050293,
+ "y": 478.0000126361847,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "1141c0c2.8446df",
+ "id": "8619e619.b5b6f",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1086.995994567871,
- "y": 432.99999010562897,
- "z": "84e7e3f2.6b184",
+ "x": 1101.995994567871,
+ "y": 476.99999010562897,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "bd0fe0b8.95c3d",
- "7d4d8763.0f4718"
+ "b4807db5.ce3f18",
+ "b7112b63.fa666"
]
]
},
{
- "id": "7d4d8763.0f4718",
+ "id": "b7112b63.fa666",
"type": "for",
"name": "for each existing vf-index",
"xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1298.9959335327148,
- "y": 486.99998915195465,
- "z": "84e7e3f2.6b184",
+ "x": 1313.9959335327148,
+ "y": 530.9999891519547,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "39d7ac61.94fef4"
+ "207d79b0.f0396e"
]
]
},
{
- "id": "39d7ac61.94fef4",
+ "id": "207d79b0.f0396e",
"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": 1541.995948791504,
- "y": 481.9999986886978,
- "z": "84e7e3f2.6b184",
+ "x": 1556.995948791504,
+ "y": 525.9999986886978,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "1b63e74a.2edd39"
+ "f2b976ec.55b34"
]
]
},
{
- "id": "1b63e74a.2edd39",
+ "id": "f2b976ec.55b34",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1739.9959774017334,
- "y": 469.00000536441803,
- "z": "84e7e3f2.6b184",
+ "x": 1754.9959774017334,
+ "y": 513.000005364418,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "21b15a7e.281f96"
+ "eab205c1.ee7e8"
]
]
},
{
- "id": "21b15a7e.281f96",
+ "id": "eab205c1.ee7e8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1891.995948791504,
- "y": 470.9999986886978,
- "z": "84e7e3f2.6b184",
+ "x": 1906.995948791504,
+ "y": 514.9999986886978,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "bfa5b77e.850078",
- "9791123.9d23ff",
- "5999c8a4.0563c8"
+ "7cce5705.9b51",
+ "b161a727.31db88",
+ "8cc64f67.5de4c"
]
]
},
{
- "id": "bfa5b77e.850078",
+ "id": "7cce5705.9b51",
"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": 2119.996063232422,
- "y": 413.0000025033951,
- "z": "84e7e3f2.6b184",
+ "x": 2134.996063232422,
+ "y": 457.0000025033951,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "9791123.9d23ff",
+ "id": "b161a727.31db88",
"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": 2123.996063232422,
- "y": 467.0000025033951,
- "z": "84e7e3f2.6b184",
+ "x": 2138.996063232422,
+ "y": 511.0000025033951,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "943ab36c.4be4",
+ "id": "b0f3fc53.5db61",
"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": 597.9961547851562,
- "y": 1640.501220703125,
- "z": "84e7e3f2.6b184",
+ "x": 612.9961547851562,
+ "y": 1684.501220703125,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "5999c8a4.0563c8",
+ "id": "8cc64f67.5de4c",
"type": "call",
"name": "call sotn-get-vf-module-uni-param",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lanport-param' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 2154.45108795166,
- "y": 518.0104948282242,
- "z": "84e7e3f2.6b184",
+ "x": 2169.45108795166,
+ "y": 562.0104948282242,
+ "z": "5c3e2071.30fcf",
"wires": [
[]
]
},
{
- "id": "56a2543.f406bac",
+ "id": "b5422f78.9d3e4",
"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": 683.9959564208984,
- "y": 280.5039049386978,
- "z": "84e7e3f2.6b184",
+ "x": 698.9959564208984,
+ "y": 324.5039049386978,
+ "z": "5c3e2071.30fcf",
"wires": [
[]
]
},
{
- "id": "61f2940f.e1eccc",
+ "id": "fc0c6263.7f4b58",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1270,
- "y": 220,
- "z": "84e7e3f2.6b184",
+ "x": 1285,
+ "y": 264,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "5ebe199d.38e1f8",
- "97c5cadc.46fd38"
+ "46df70e6.cbb32",
+ "868e2384.9bd088"
]
]
},
{
- "id": "97c5cadc.46fd38",
+ "id": "868e2384.9bd088",
"type": "set",
"name": "set tmp.vnf-id",
"xml": "<set>\n<parameter name='tmp.vnf-id' value='`$vf-module-topology-operation-input.vnf-information.vnf-id`' />\n",
"comments": "",
- "x": 1455,
- "y": 235,
- "z": "84e7e3f2.6b184",
+ "x": 1470,
+ "y": 279,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "7638ccf.06d4134",
+ "id": "5950f717.b81e28",
"type": "get-resource",
"name": "get-resource generic-vnf",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"'generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' \n\t\tAND depth = '0'\"\n pfx='tmp.aai.generic-vnf' local-only='false' >\n\n\n",
"comments": "",
"outputs": 1,
- "x": 603,
- "y": 552,
- "z": "84e7e3f2.6b184",
+ "x": 591,
+ "y": 543,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "6951bd2b.63d4e4"
+ "25602afb.1d9cfe"
]
]
},
{
- "id": "6951bd2b.63d4e4",
+ "id": "8bfca5dd.ccec38",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 806,
- "y": 547,
- "z": "84e7e3f2.6b184",
+ "x": 821,
+ "y": 591,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "c98c270d.88dcd8",
- "b05ba34b.acc5f"
+ "3fb86113.9bfd2e",
+ "cea6f99d.9fa3f8"
]
]
},
{
- "id": "c98c270d.88dcd8",
+ "id": "cea6f99d.9fa3f8",
"type": "for",
"name": "for each relationship in gen-vnf",
"xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.aai.generic-vnf.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1018,
- "y": 550,
- "z": "84e7e3f2.6b184",
+ "x": 1033,
+ "y": 594,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "b3a5598e.a41448"
+ "380b3b11.1fc39c"
]
]
},
{
- "id": "b3a5598e.a41448",
+ "id": "380b3b11.1fc39c",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 1244,
- "y": 554,
- "z": "84e7e3f2.6b184",
+ "x": 1259,
+ "y": 598,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "4e594d45.0e1984"
+ "6ce242f7.50a224"
]
]
},
{
- "id": "4e594d45.0e1984",
+ "id": "6ce242f7.50a224",
"type": "outcome",
"name": "uni",
"xml": "<outcome value='uni'>\n",
"comments": "",
"outputs": 1,
- "x": 1433.285888671875,
- "y": 562.82177734375,
- "z": "84e7e3f2.6b184",
+ "x": 1448.285888671875,
+ "y": 606.82177734375,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "3e26d342.6174fc"
+ "8f0c299e.76aa68"
]
]
},
{
- "id": "3e26d342.6174fc",
+ "id": "8f0c299e.76aa68",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1608.117431640625,
- "y": 565.3402709960938,
- "z": "84e7e3f2.6b184",
+ "x": 1623.117431640625,
+ "y": 609.3402709960938,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "8d7c01bb.0e5ea",
- "db36cb56.ed0998",
- "9f8707c2.df5a68"
+ "9cc6d571.b014d8",
+ "8d29ebb2.4924b",
+ "1b814ca6.da0c53"
]
]
},
{
- "id": "8d7c01bb.0e5ea",
+ "id": "9cc6d571.b014d8",
"type": "set",
"name": "set tmp.unis.uni[].tpId",
"xml": "<set>\n<parameter name='`tmp.unis.uni[$vidx].tpId`' value=\"`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value`\" />\n\n",
"comments": "",
- "x": 1825.117431640625,
- "y": 563.3402709960938,
- "z": "84e7e3f2.6b184",
+ "x": 1840.117431640625,
+ "y": 607.3402709960938,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "b05ba34b.acc5f",
+ "id": "3fb86113.9bfd2e",
"type": "switchNode",
- "name": "switch number of unis < 2",
- "xml": "<switch test='`$tmp.unis.uni_length < 2`' >\n",
+ "name": "switch number of unis less than two",
+ "xml": "<switch test='`$tmp.unis.uni_length &lt; 2`' >\n",
"comments": "",
"outputs": 1,
- "x": 993,
- "y": 714,
- "z": "84e7e3f2.6b184",
+ "x": 1008,
+ "y": 758,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "9ad7b18c.9e2db"
+ "ca909120.1610f"
]
]
},
{
- "id": "11a2c1f3.2f15de",
+ "id": "6807aab1.3361f4",
"type": "returnSuccess",
"name": "return success",
- "xml": "<return status='success'>\n<parameter name='' value='' />\n",
+ "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\n",
"comments": "",
- "x": 1401,
- "y": 716,
- "z": "84e7e3f2.6b184",
+ "x": 1416,
+ "y": 760,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "9ad7b18c.9e2db",
+ "id": "ca909120.1610f",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1209,
- "y": 715,
- "z": "84e7e3f2.6b184",
+ "x": 1224,
+ "y": 759,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "11a2c1f3.2f15de"
+ "6807aab1.3361f4"
]
]
},
{
- "id": "db36cb56.ed0998",
+ "id": "8d29ebb2.4924b",
"type": "execute",
"name": "execute split tpId to get pnf-name",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`tmp.unis.uni[$vidx].tpId`'/>\n<parameter name=\"regex\" value=\"nodeId\"/>\n<parameter name=\"tmp.unis.uni[$vidx].pnf-name\" value=\"\"/>\n",
"comments": "",
"outputs": 1,
- "x": 1864,
- "y": 638,
- "z": "84e7e3f2.6b184",
+ "x": 1879,
+ "y": 682,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "51f60529.b960dc",
- "bd9180ed.9d6e6"
+ "8df25e56.70ef2",
+ "5281d33f.6cf23c"
]
]
},
{
- "id": "bd9180ed.9d6e6",
+ "id": "5281d33f.6cf23c",
"type": "failure",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2087,
- "y": 593,
- "z": "84e7e3f2.6b184",
+ "x": 2102,
+ "y": 637,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "91a82817.a8c858"
+ "98c7bac7.1f7b2"
]
]
},
{
- "id": "51f60529.b960dc",
+ "id": "8df25e56.70ef2",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2089,
- "y": 657,
- "z": "84e7e3f2.6b184",
+ "x": 2104,
+ "y": 701,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "4dddc62b.304038"
+ "538dd561.19c994"
]
]
},
{
- "id": "91a82817.a8c858",
+ "id": "98c7bac7.1f7b2",
"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": 2309,
- "y": 595,
- "z": "84e7e3f2.6b184",
+ "x": 2324,
+ "y": 639,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "4dddc62b.304038",
+ "id": "538dd561.19c994",
"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": 2248,
- "y": 676,
- "z": "84e7e3f2.6b184",
+ "x": 2263,
+ "y": 720,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "9f8707c2.df5a68",
+ "id": "1b814ca6.da0c53",
"type": "get-resource",
"name": "get-resource pnf",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"`pnf.pnf-name = $tmp.unis.uni[$vidx].pnf-name AND depth = '0'`\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n\n",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"'pnf.pnf-name = $tmp.unis.uni[$vidx].pnf-name'\n\t\tAND depth = '0'\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\t\tresource=\"generic-vnf\" -->\n<!--\t\tkey=\"'generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' -->\n<!--\t\tAND depth = '0'\"-->\n<!-- pfx='tmp.aai.generic-vnf' local-only='false' >-->",
"comments": "",
"outputs": 1,
- "x": 1790,
- "y": 731,
- "z": "84e7e3f2.6b184",
+ "x": 1809,
+ "y": 819,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "7f07585.a7576a8"
+ "a9afb163.16d81"
]
]
},
{
- "id": "7f07585.a7576a8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1990.5,
- "y": 749,
- "z": "84e7e3f2.6b184",
- "wires": [
- [
- "2018b1.62ea675"
- ]
- ]
- },
- {
- "id": "2018b1.62ea675",
+ "id": "6d7469b.d065118",
"type": "block",
"name": "block",
- "xml": "<block>\n",
+ "xml": "<block>",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 2153.88232421875,
- "y": 783.6556396484375,
- "z": "84e7e3f2.6b184",
+ "x": 2168.88232421875,
+ "y": 827.6556396484375,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "a36c84bd.45b6f8",
- "e1179ec.bdf3f6"
+ "d8ebfcdc.d7e228",
+ "e363b1ad.6cf518"
]
]
},
{
- "id": "e1179ec.bdf3f6",
+ "id": "d8ebfcdc.d7e228",
"type": "set",
"name": "set node-id",
"xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].node-id`' value=\"`$tmp.aai.pnf.pnf-id`\" />\n",
"comments": "",
- "x": 2390,
- "y": 734,
- "z": "84e7e3f2.6b184",
+ "x": 2348,
+ "y": 781,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "a36c84bd.45b6f8",
+ "id": "e363b1ad.6cf518",
"type": "for",
"name": "for each relationship in pnf",
"xml": "<for silentFailure='true' index='ridx' start='0' end='`$tmp.aai.pnf.relationship-list.relationship_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 2345.882568359375,
- "y": 823.6597290039062,
- "z": "84e7e3f2.6b184",
+ "x": 2360.882568359375,
+ "y": 867.6597290039062,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "c153c531.99c278"
+ "95c7940c.2b5948"
]
]
},
{
- "id": "c153c531.99c278",
+ "id": "95c7940c.2b5948",
"type": "switchNode",
"name": "switch related-to",
"xml": "<switch test='`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].related-to`'>\n",
"comments": "",
"outputs": 1,
- "x": 2571.882568359375,
- "y": 823.6597290039062,
- "z": "84e7e3f2.6b184",
+ "x": 2586.882568359375,
+ "y": 867.6597290039062,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "ebf22767.e2b168",
- "17f20ef3.96aa91"
+ "a1776b53.b80d",
+ "af94fb8e.80dfb8"
]
]
},
{
- "id": "ebf22767.e2b168",
+ "id": "af94fb8e.80dfb8",
"type": "outcome",
"name": "network-resource",
"xml": "<outcome value='network-resource'>\n",
"comments": "",
"outputs": 1,
- "x": 2770,
- "y": 936,
- "z": "84e7e3f2.6b184",
+ "x": 2785,
+ "y": 980,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "15e83210.af0fbe"
+ "127afd4b.34da43"
]
]
},
{
- "id": "15e83210.af0fbe",
+ "id": "127afd4b.34da43",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2983,
- "y": 937,
- "z": "84e7e3f2.6b184",
+ "x": 2998,
+ "y": 981,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "7354a06a.e0a7c",
- "82642fbf.6f96f"
+ "9a33ae38.4ad288",
+ "b1e1b5aa.ff6b18"
]
]
},
{
- "id": "7354a06a.e0a7c",
+ "id": "9a33ae38.4ad288",
"type": "set",
"name": "set network-id",
"xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].network-id`' value=\"`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 3218,
- "y": 867,
- "z": "84e7e3f2.6b184",
+ "x": 3233,
+ "y": 911,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "82642fbf.6f96f",
+ "id": "b1e1b5aa.ff6b18",
"type": "get-resource",
"name": "get-resource network-resource",
- "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"network-resource\" \n\t\tkey=\"`network-resource.network-id = $tmp.unis.uni[$vidx].network-id AND depth = '0'`\"\n pfx='tmp.aai.network-resource' local-only='false' >\n\n\n",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"network-resource\" \n\t\tkey=\"'network-resource.network-id = $tmp.unis.uni[$vidx].network-id'\n\t\tAND depth = '0'\"\n pfx='tmp.aai.network-resource' local-only='false' >\n\n\n",
"comments": "",
"outputs": 1,
- "x": 3226,
- "y": 948,
- "z": "84e7e3f2.6b184",
+ "x": 3241,
+ "y": 992,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "dfffc86d.811b38"
+ "7923986a.2dfdb"
]
]
},
{
- "id": "dfffc86d.811b38",
+ "id": "7923986a.2dfdb",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 3458.5,
- "y": 944,
- "z": "84e7e3f2.6b184",
+ "x": 3473.5,
+ "y": 988,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "c2666ab.b105298"
+ "e1de0e95.dce97"
]
]
},
{
- "id": "c2666ab.b105298",
+ "id": "e1de0e95.dce97",
"type": "set",
"name": "set network-id, topo-id, client-id, etc",
"xml": "<set>\n<parameter name=\"`$tmp.unis.uni[$vidx].network-id`\" value=\"`$tmp.aai.network-resource.network-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].provider-id`\" value=\"`$tmp.aai.network-resource.provider-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].client-id`\" value=\"`$tmp.aai.network-resource.client-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].te-topo-id`\" value=\"`$tmp.aai.network-resource.te-topo-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].network-type`\" value=\"`$tmp.aai.network-resource.network-type`\" />\n\n\n",
"comments": "",
- "x": 3727,
- "y": 943,
- "z": "84e7e3f2.6b184",
+ "x": 3742,
+ "y": 987,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "a53f3f0c.46a7a",
+ "id": "aeddedc2.f06158",
"type": "call",
"name": "call GENERIC-RESOURCE-API:sotn-get-otn-tunnel-path-from-oof",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-otn-tunnel-path-from-oof' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 782,
- "y": 861,
- "z": "84e7e3f2.6b184",
+ "x": 797,
+ "y": 905,
+ "z": "5c3e2071.30fcf",
"wires": [
[]
]
},
{
- "id": "17f20ef3.96aa91",
+ "id": "a1776b53.b80d",
"type": "outcome",
"name": "thirdparty-controller",
"xml": "<outcome value='thirdparty-controller'>\n",
"comments": "",
"outputs": 1,
- "x": 2797,
- "y": 801,
- "z": "84e7e3f2.6b184",
+ "x": 2812,
+ "y": 845,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "a15f639f.76c57"
+ "4c01f776.c87b7"
]
]
},
{
- "id": "a15f639f.76c57",
+ "id": "4c01f776.c87b7",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 3010,
- "y": 802,
- "z": "84e7e3f2.6b184",
+ "x": 3025,
+ "y": 846,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "94cd4673.029758"
+ "583e9b05.f6eef4"
]
]
},
{
- "id": "94cd4673.029758",
+ "id": "583e9b05.f6eef4",
"type": "set",
"name": "set thirdparty-sdnc-id",
"xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].thirdparty-sdnc-id`' value=\"`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`\" />\n",
"comments": "",
- "x": 3237,
- "y": 801,
- "z": "84e7e3f2.6b184",
+ "x": 3252,
+ "y": 845,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "5c2c3ff1.fc693",
+ "id": "d059a84d.8e506",
"type": "comment",
"name": "when we reach here, we have 2 UNIs, so do ACTN operations",
"info": "",
"comments": "",
- "x": 795,
- "y": 807,
- "z": "84e7e3f2.6b184",
+ "x": 810,
+ "y": 851,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "c42e922f.1abaa",
+ "id": "f2975c47.fb694",
"type": "for",
"name": "for vidx..unis.uni_length[]",
"xml": "<for index='vidx' start='0' end='`$tmp.unis.uni_length`' >",
"comments": "",
"outputs": 1,
- "x": 648,
- "y": 1053,
- "z": "84e7e3f2.6b184",
+ "x": 663,
+ "y": 1097,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "1cfcb3ef.b12bfc"
+ "de539d0a.26596"
]
]
},
{
- "id": "70ff03f1.58983c",
+ "id": "3b0a5525.2ac102",
"type": "set",
"name": "set oof.vpn",
"xml": "<set>\n<parameter name='oof.vpn.' value='`$tmp.unis.uni[$vidx].`' />",
"comments": "",
- "x": 1074.0272216796875,
- "y": 992.040771484375,
- "z": "84e7e3f2.6b184",
+ "x": 1089.0272216796875,
+ "y": 1036.040771484375,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "fcf606f6.efb428",
+ "id": "29b92baa.41f5cc",
"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": 1554.0272216796875,
- "y": 1105.0407409667969,
- "z": "84e7e3f2.6b184",
+ "x": 1569.0272216796875,
+ "y": 1149.0407409667969,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "18d11459.dc281c",
+ "id": "82572a7a.757f1",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1384.0272216796875,
- "y": 1105.0407409667969,
- "z": "84e7e3f2.6b184",
+ "x": 1399.0272216796875,
+ "y": 1149.0407409667969,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "fcf606f6.efb428"
+ "29b92baa.41f5cc"
]
]
},
{
- "id": "71856f9f.960fe",
+ "id": "7ff0b8e4.d0edd",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 1388.0272216796875,
- "y": 1145.0407409667969,
- "z": "84e7e3f2.6b184",
+ "x": 1403.0272216796875,
+ "y": 1189.0407409667969,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "48d45483.15892c"
+ "d2605932.de72d8"
]
]
},
{
- "id": "f7967d43.ee995",
+ "id": "bcaaab5e.f760b",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1380.0272216796875,
- "y": 1185.0407409667969,
- "z": "84e7e3f2.6b184",
+ "x": 1395.0272216796875,
+ "y": 1229.0407409667969,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "8a5a416f.cf1fa"
+ "c5af9444.32cba8"
]
]
},
{
- "id": "48d45483.15892c",
+ "id": "d2605932.de72d8",
"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": 1538.0272216796875,
- "y": 1145.0407409667969,
- "z": "84e7e3f2.6b184",
+ "x": 1553.0272216796875,
+ "y": 1189.0407409667969,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "8a5a416f.cf1fa",
+ "id": "c5af9444.32cba8",
"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": 1538.0272216796875,
- "y": 1185.0407409667969,
- "z": "84e7e3f2.6b184",
+ "x": 1553.0272216796875,
+ "y": 1229.0407409667969,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "96b7c9e8.a8e308",
+ "id": "dc15d354.485648",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1384.0272216796875,
- "y": 1225.0407409667969,
- "z": "84e7e3f2.6b184",
+ "x": 1399.0272216796875,
+ "y": 1269.0407409667969,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "f7f59d76.ec927"
+ "189365cc.5aa2da"
]
]
},
{
- "id": "9f0248ba.15c698",
+ "id": "36cada17.d60606",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1380.0272216796875,
- "y": 1265.0407409667969,
- "z": "84e7e3f2.6b184",
+ "x": 1395.0272216796875,
+ "y": 1309.0407409667969,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "66fab2ba.c9700c"
+ "436f764c.14ed4"
]
]
},
{
- "id": "66fab2ba.c9700c",
+ "id": "436f764c.14ed4",
"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": 1538.0272216796875,
- "y": 1265.0407409667969,
- "z": "84e7e3f2.6b184",
+ "x": 1553.0272216796875,
+ "y": 1309.0407409667969,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "f7f59d76.ec927",
+ "id": "189365cc.5aa2da",
"type": "set",
"name": "set token-id",
"xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
"comments": "",
- "x": 1534.5272216796875,
- "y": 1225.0407409667969,
- "z": "84e7e3f2.6b184",
+ "x": 1549.5272216796875,
+ "y": 1269.0407409667969,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "98b0b441.82bf68",
+ "id": "bce6bff8.ae1f18",
"type": "comment",
"name": "Get controller info and send request",
"info": "",
"comments": "",
- "x": 1146.0272216796875,
- "y": 1105.0407409667969,
- "z": "84e7e3f2.6b184",
+ "x": 1161.0272216796875,
+ "y": 1149.0407409667969,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "82fd1dc6.67489",
+ "id": "8c2f104c.2ab35",
"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 = $oof.vpn.thirdparty-sdnc-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
"comments": "",
"outputs": 1,
- "x": 1138.0272216796875,
- "y": 1145.0407409667969,
- "z": "84e7e3f2.6b184",
+ "x": 1153.0272216796875,
+ "y": 1189.0407409667969,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "18d11459.dc281c",
- "71856f9f.960fe",
- "f7967d43.ee995"
+ "82572a7a.757f1",
+ "7ff0b8e4.d0edd",
+ "bcaaab5e.f760b"
]
]
},
{
- "id": "8222512c.b2b7f",
+ "id": "e9d11d4a.ea432",
"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": 1150.5272216796875,
- "y": 1245.0407409667969,
- "z": "84e7e3f2.6b184",
+ "x": 1165.5272216796875,
+ "y": 1289.0407409667969,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "96b7c9e8.a8e308",
- "9f0248ba.15c698"
+ "dc15d354.485648",
+ "36cada17.d60606"
]
]
},
{
- "id": "21e9ada7.141962",
+ "id": "81bac551.cc757",
"type": "comment",
"name": "call domain controller to create underlay OTN tunnel",
"info": "",
"comments": "",
- "x": 1199.5272216796875,
- "y": 1330.49560546875,
- "z": "84e7e3f2.6b184",
+ "x": 1214.5272216796875,
+ "y": 1374.49560546875,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "47386aa5.9bb954",
+ "id": "f9c270fa.7abd5",
"type": "call",
"name": "call GENERIC-RESOURCE-API:sotn-create-otn-tunnel",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-create-otn-tunnel' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1219.5272216796875,
- "y": 1374.49560546875,
- "z": "84e7e3f2.6b184",
+ "x": 1234.5272216796875,
+ "y": 1418.49560546875,
+ "z": "5c3e2071.30fcf",
"wires": [
[]
]
},
{
- "id": "1cfcb3ef.b12bfc",
+ "id": "de539d0a.26596",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 801.5272216796875,
- "y": 1385.0407409667969,
- "z": "84e7e3f2.6b184",
+ "x": 816.5272216796875,
+ "y": 1429.0407409667969,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "82fd1dc6.67489",
- "70ff03f1.58983c",
- "e0cd8c60.4c6de",
- "8b8f2197.efea1",
- "8222512c.b2b7f",
- "518a2698.5bffd8",
- "47386aa5.9bb954"
+ "8c2f104c.2ab35",
+ "3b0a5525.2ac102",
+ "2c3edd05.477cca",
+ "543dd31e.1a6c4c",
+ "e9d11d4a.ea432",
+ "ab256b41.e2d9b8",
+ "f9c270fa.7abd5"
]
]
},
{
- "id": "cbbfd612.33a888",
+ "id": "641e0b16.a7aa44",
"type": "comment",
"name": "Loop through UNIs and configure domain controllers",
"info": "",
"comments": "",
- "x": 736.5003662109375,
- "y": 1193.5003662109375,
- "z": "84e7e3f2.6b184",
+ "x": 751.5003662109375,
+ "y": 1237.5003662109375,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "e0cd8c60.4c6de",
+ "id": "2c3edd05.477cca",
"type": "set",
"name": "set sotn_value",
"xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />",
"comments": "",
- "x": 1065.52734375,
- "y": 1453.040771484375,
- "z": "84e7e3f2.6b184",
+ "x": 1080.52734375,
+ "y": 1497.040771484375,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "8b8f2197.efea1",
+ "id": "543dd31e.1a6c4c",
"type": "set",
"name": "set attachment_param",
"xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n\n",
"comments": "",
- "x": 1090.02734375,
- "y": 1493.040771484375,
- "z": "84e7e3f2.6b184",
+ "x": 1105.02734375,
+ "y": 1537.040771484375,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "518a2698.5bffd8",
+ "id": "ab256b41.e2d9b8",
"type": "switchNode",
"name": "switch prop.sdncRestApi.token_id",
"xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 1125.52734375,
- "y": 1533.040771484375,
- "z": "84e7e3f2.6b184",
+ "x": 1140.52734375,
+ "y": 1577.040771484375,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "7015f66c.94fd18",
- "82d35da9.66aaf"
+ "7aea425d.d2ac8c",
+ "c6896fdc.d8f088"
]
]
},
{
- "id": "dd59a6d0.4b0dc8",
+ "id": "e7a0edea.212a28",
"type": "execute",
"name": "execute RestconfApiCallNode Create ethernet Service with token",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\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=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/sdnc/restapi/yang\" />\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": 1642.52734375,
- "y": 1553.040771484375,
- "z": "84e7e3f2.6b184",
+ "x": 1657.52734375,
+ "y": 1597.040771484375,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "f3736e9e.60052",
- "c00d7e66.d88b7"
+ "dc79f422.6ffec8",
+ "fce6e76c.ef0f5"
]
]
},
{
- "id": "f3736e9e.60052",
+ "id": "dc79f422.6ffec8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1986.02734375,
- "y": 1553.040771484375,
- "z": "84e7e3f2.6b184",
+ "x": 2001.02734375,
+ "y": 1597.040771484375,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "113a662f.cf308a"
+ "e78610af.f485d"
]
]
},
{
- "id": "113a662f.cf308a",
+ "id": "e78610af.f485d",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 2143.52734375,
- "y": 1553.040771484375,
- "z": "84e7e3f2.6b184",
+ "x": 2158.52734375,
+ "y": 1597.040771484375,
+ "z": "5c3e2071.30fcf",
"wires": [
[]
]
},
{
- "id": "9be7bcfb.b7fdc",
+ "id": "3c748274.94d126",
"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 rest api\" />\n",
"comments": "",
- "x": 2140.02734375,
- "y": 1513.040771484375,
- "z": "84e7e3f2.6b184",
+ "x": 2155.02734375,
+ "y": 1557.040771484375,
+ "z": "5c3e2071.30fcf",
"wires": []
},
{
- "id": "c00d7e66.d88b7",
+ "id": "fce6e76c.ef0f5",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1982.02734375,
- "y": 1513.040771484375,
- "z": "84e7e3f2.6b184",
+ "x": 1997.02734375,
+ "y": 1557.040771484375,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "9be7bcfb.b7fdc"
+ "3c748274.94d126"
]
]
},
{
- "id": "7015f66c.94fd18",
+ "id": "7aea425d.d2ac8c",
"type": "other",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1338.3711738586426,
- "y": 1513.162670135498,
- "z": "84e7e3f2.6b184",
+ "x": 1353.3711738586426,
+ "y": 1557.162670135498,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "d88a1a72.f911d8"
+ "7a6c581b.b1ed5"
]
]
},
{
- "id": "82d35da9.66aaf",
+ "id": "c6896fdc.d8f088",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1342.02734375,
- "y": 1553.040771484375,
- "z": "84e7e3f2.6b184",
+ "x": 1357.02734375,
+ "y": 1597.040771484375,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "dd59a6d0.4b0dc8"
+ "e7a0edea.212a28"
]
]
},
{
- "id": "d88a1a72.f911d8",
+ "id": "7a6c581b.b1ed5",
"type": "execute",
"name": "execute RestconfApiCallNode Create ethernet Service without token",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\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=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/sdnc/restapi/yang\" />\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\"/>",
"comments": "",
"outputs": 1,
- "x": 1652.52734375,
- "y": 1513.040771484375,
- "z": "84e7e3f2.6b184",
+ "x": 1667.52734375,
+ "y": 1557.040771484375,
+ "z": "5c3e2071.30fcf",
+ "wires": [
+ [
+ "fce6e76c.ef0f5",
+ "dc79f422.6ffec8"
+ ]
+ ]
+ },
+ {
+ "id": "25602afb.1d9cfe",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 722,
+ "y": 672,
+ "z": "5c3e2071.30fcf",
+ "wires": [
+ [
+ "8bfca5dd.ccec38"
+ ]
+ ]
+ },
+ {
+ "id": "a9afb163.16d81",
+ "type": "failure",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1992,
+ "y": 826,
+ "z": "5c3e2071.30fcf",
"wires": [
[
- "c00d7e66.d88b7",
- "f3736e9e.60052"
+ "6d7469b.d065118"
]
]
}