aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-vf-module-input.json558
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json1285
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-wan-param.json580
-rw-r--r--platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.json823
-rw-r--r--[-rwxr-xr-x]platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-vf-module-input.xml9
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.xml4
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-wan-param.xml2
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.xml22
8 files changed, 1379 insertions, 1904 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-vf-module-input.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-vf-module-input.json
index ebf78f4d..71818370 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-vf-module-input.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-vf-module-input.json
@@ -1 +1,557 @@
-[{"id":"ea5c79fa.0a8cc8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":286.25000762939453,"y":416.25000762939453,"z":"e7f16526.16fa48","wires":[["415f4f79.ce4c6","3f9465cc.1cf0ca","d5fa8c45.3e223","4b25ca9c.280804","f4dcf148.c2c8d","74fce8e4.b16128","b87e6689.a6bb68"]]},{"id":"415f4f79.ce4c6","type":"switchNode","name":"switch svc-request-id","xml":"<switch test='`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`'>\n","comments":"","outputs":1,"x":542.7619094848633,"y":349.33034229278564,"z":"e7f16526.16fa48","wires":[["569a8602.d763d8"]]},{"id":"569a8602.d763d8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":768.476203918457,"y":349.3303461074829,"z":"e7f16526.16fa48","wires":[["83dcb0ce.53e5a"]]},{"id":"83dcb0ce.53e5a","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=\"sdnc-request-header.svc-request-id is a required input\" />\n","comments":"","x":919.9047698974609,"y":349.3303442001343,"z":"e7f16526.16fa48","wires":[]},{"id":"3f9465cc.1cf0ca","type":"switchNode","name":"switch svc-action","xml":"<switch test='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`'>\n","comments":"","outputs":1,"x":531.3332726614817,"y":307.9017738614764,"z":"e7f16526.16fa48","wires":[["90f99d55.c26ac"]]},{"id":"90f99d55.c26ac","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":767.0476243155344,"y":306.47317164284846,"z":"e7f16526.16fa48","wires":[["81889b61.b3bfd8"]]},{"id":"81889b61.b3bfd8","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=\"sdnc-request-header.svc-action is a required input\" />\n","comments":"","x":917.0475976126536,"y":306.4731811795916,"z":"e7f16526.16fa48","wires":[]},{"id":"d5fa8c45.3e223","type":"switchNode","name":"switch request-action","xml":"<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":541.3333260672434,"y":392.1874889646258,"z":"e7f16526.16fa48","wires":[["faa49149.2b86c"]]},{"id":"faa49149.2b86c","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":768.4761995588033,"y":392.1874998637609,"z":"e7f16526.16fa48","wires":[["54306d5b.2a8714"]]},{"id":"54306d5b.2a8714","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=\"request-information.request-action is a required input\" />\n","comments":"","x":919.9047655378072,"y":392.18749795641224,"z":"e7f16526.16fa48","wires":[]},{"id":"9652914c.1bb7e","type":"switchNode","name":"switch model-customization-id","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`'>\n","comments":"","outputs":1,"x":1138.7978401184082,"y":563.9496374130249,"z":"e7f16526.16fa48","wires":[["10afdd9f.c76fe2"]]},{"id":"10afdd9f.c76fe2","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1343.7978401184082,"y":563.9496202468872,"z":"e7f16526.16fa48","wires":[["5ca4e9bd.7d2d68"]]},{"id":"5ca4e9bd.7d2d68","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=\"vf-module-information.onap-model-information.model-customization-uuid is a required input\" />\n","comments":"","x":1495.226406097412,"y":563.9496183395386,"z":"e7f16526.16fa48","wires":[]},{"id":"5073a804.d512e8","type":"switchNode","name":"switch tenant","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-request-input.tenant`'>\n","comments":"","outputs":1,"x":1084.6549186706543,"y":605.3781480789185,"z":"e7f16526.16fa48","wires":[["59c1d2fa.686d8c"]]},{"id":"59c1d2fa.686d8c","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1342.3692359924316,"y":605.3781824111938,"z":"e7f16526.16fa48","wires":[["f3fb61d6.cc04f"]]},{"id":"f3fb61d6.cc04f","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=\"vf-module-information.vf-module-request-input.tenant is a required input\" />\n","comments":"","x":1493.7978019714355,"y":605.3781805038452,"z":"e7f16526.16fa48","wires":[]},{"id":"85af947a.22df18","type":"comment","name":"Validation of required fields","info":"","comments":"","x":691.3332824707031,"y":263.61605644226074,"z":"e7f16526.16fa48","wires":[]},{"id":"4b25ca9c.280804","type":"switchNode","name":"switch svc-action","xml":"<switch test='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`'>\n","comments":"","outputs":1,"x":524.4880752563477,"y":606.2948093414307,"z":"e7f16526.16fa48","wires":[["46f73107.a11e3"]]},{"id":"46f73107.a11e3","type":"outcome","name":"assign","xml":"<outcome value='assign'>\n","comments":"","outputs":1,"x":684.0713768005371,"y":605.8780736923218,"z":"e7f16526.16fa48","wires":[["5f080643.137608"]]},{"id":"5f080643.137608","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":876.0713768005371,"y":605.8780736923218,"z":"e7f16526.16fa48","wires":[["9652914c.1bb7e","5073a804.d512e8","97868ae3.7d64c8"]]},{"id":"b003da9.6001328","type":"dgstart","name":"DGSTART","outputs":1,"x":203.7500098092214,"y":136.1636562347412,"z":"e7f16526.16fa48","wires":[["4513d2b4.de1b4c"]]},{"id":"4513d2b4.de1b4c","type":"service-logic","name":"GENERIC-RESOURCE-API ${project.version}","module":"GENERIC-RESOURCE-API","version":"${project.version}","comments":"","xml":"<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>","outputs":1,"x":317.03571537562766,"y":176.4017677307129,"z":"e7f16526.16fa48","wires":[["9f09d02b.74d24"]]},{"id":"9f09d02b.74d24","type":"method","name":"method validate-vf-module-input","xml":"<method rpc='validate-vf-module-input' mode='sync'>\n","comments":"","outputs":1,"x":274.095304761614,"y":217.08031368255615,"z":"e7f16526.16fa48","wires":[["ea5c79fa.0a8cc8"]]},{"id":"c6fa4eaa.296c1","type":"comment","name":"validate-vf-module-input","info":"","comments":"","x":598.0948660714284,"y":83.75,"z":"e7f16526.16fa48","wires":[]},{"id":"f4dcf148.c2c8d","type":"switchNode","name":"switch service-instance-id","xml":"<switch test='`$vf-module-topology-operation-input.service-information.service-instance-id`'>\n","comments":"","outputs":1,"x":554.3571570260183,"y":436.25001525878906,"z":"e7f16526.16fa48","wires":[["40adc00a.0182f"]]},{"id":"40adc00a.0182f","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":766.7857382638113,"y":436.2500114440918,"z":"e7f16526.16fa48","wires":[["4bc1bff5.09afa"]]},{"id":"4bc1bff5.09afa","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"service-information.service-instance-id is a required input\" />\n","comments":"","x":918.2143042428152,"y":436.25000953674316,"z":"e7f16526.16fa48","wires":[]},{"id":"74fce8e4.b16128","type":"switchNode","name":"switch vnf-id","xml":"<switch test='`$vf-module-topology-operation-input.vnf-information.vnf-id`'>\n","comments":"","outputs":1,"x":511.8571662902832,"y":482.7500057220459,"z":"e7f16526.16fa48","wires":[["5b2b7ba3.f8c584"]]},{"id":"5b2b7ba3.f8c584","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":767.1428756713867,"y":481.32143783569336,"z":"e7f16526.16fa48","wires":[["a3b38083.db3e6"]]},{"id":"a3b38083.db3e6","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-information.vnf-id is a required input\" />\n","comments":"","x":918.5714416503906,"y":481.3214359283447,"z":"e7f16526.16fa48","wires":[]},{"id":"97868ae3.7d64c8","type":"switchNode","name":"switch aic-cloud-region","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region`'>\n","comments":"","outputs":1,"x":1114,"y":647.6548051834106,"z":"e7f16526.16fa48","wires":[["a5724b37.d9d578"]]},{"id":"a5724b37.d9d578","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1340.7143173217773,"y":647.654839515686,"z":"e7f16526.16fa48","wires":[["e5de3e6a.52ece"]]},{"id":"e5de3e6a.52ece","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=\"vf-module-request-input.aic-cloud-region is a required input\" />\n","comments":"","x":1492.1428833007812,"y":647.6548376083374,"z":"e7f16526.16fa48","wires":[]},{"id":"b87e6689.a6bb68","type":"switchNode","name":"switch vf-module-id","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`'>\n","comments":"","outputs":1,"x":532.6666564941406,"y":528.7499847412109,"z":"e7f16526.16fa48","wires":[["e506a425.ee0a78"]]},{"id":"e506a425.ee0a78","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":766.9523658752441,"y":527.3214168548584,"z":"e7f16526.16fa48","wires":[["b00a0f0d.7df6c"]]},{"id":"b00a0f0d.7df6c","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=\"vf-module-information.vf-module-id is a required input\" />\n","comments":"","x":918.380931854248,"y":527.3214149475098,"z":"e7f16526.16fa48","wires":[]},{"id":"27b56d4b.cf2242","type":"outcome","name":"changeassign","xml":"<outcome value='changeassign'>\n","comments":"","outputs":1,"x":707.9166946411133,"y":761.0000114440918,"z":"e7f16526.16fa48","wires":[["858c4aa9.75cbe8"]]},{"id":"858c4aa9.75cbe8","type":"switchNode","name":"switch model-customization-id","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`'>\n","comments":"","outputs":1,"x":934.5833358764648,"y":761.3333168029785,"z":"e7f16526.16fa48","wires":[["16e33b74.6a3275"]]},{"id":"16e33b74.6a3275","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1139.5833358764648,"y":761.3332996368408,"z":"e7f16526.16fa48","wires":[["8cdecc05.e04a9"]]},{"id":"8cdecc05.e04a9","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=\"vf-module-information.onap-model-information.model-customization-uuid is a required input\" />\n","comments":"","x":1291.0119018554688,"y":761.3332977294922,"z":"e7f16526.16fa48","wires":[]},{"id":"ba0cf2a7.da9b1","type":"comment","name":"model-customization-uuid validation moved to changeassign DG","info":"","comments":"","x":765,"y":718.75,"z":"e7f16526.16fa48","wires":[]}] \ No newline at end of file
+[
+ {
+ "id": "64530960.7a4c48",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 266.03125,
+ "y": 487.50000762939453,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "42eab53.cead04c",
+ "9030d08e.473eb",
+ "e2eeb7ea.c3b598",
+ "6a464fe8.f5db",
+ "1cf09f88.9f996",
+ "50ebeee1.1f03d"
+ ]
+ ]
+ },
+ {
+ "id": "42eab53.cead04c",
+ "type": "switchNode",
+ "name": "switch svc-request-id",
+ "xml": "<switch test='`$vf-module-topology-operation-input.sdnc-request-header.svc-request-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 522.5431518554688,
+ "y": 420.58034229278564,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "acac6999.f74ae8"
+ ]
+ ]
+ },
+ {
+ "id": "acac6999.f74ae8",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 748.2574462890625,
+ "y": 420.5803461074829,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "7a7765a6.716e9c"
+ ]
+ ]
+ },
+ {
+ "id": "7a7765a6.716e9c",
+ "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=\"sdnc-request-header.svc-request-id is a required input\" />\n",
+ "comments": "",
+ "x": 899.6860122680664,
+ "y": 420.5803442001343,
+ "z": "c914996f.38af08",
+ "wires": []
+ },
+ {
+ "id": "9030d08e.473eb",
+ "type": "switchNode",
+ "name": "switch svc-action",
+ "xml": "<switch test='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 511.1145150320872,
+ "y": 379.1517738614764,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "6c42550c.9ee7ec"
+ ]
+ ]
+ },
+ {
+ "id": "6c42550c.9ee7ec",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 746.8288666861399,
+ "y": 377.72317164284846,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "7bffbb0f.9e8194"
+ ]
+ ]
+ },
+ {
+ "id": "7bffbb0f.9e8194",
+ "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=\"sdnc-request-header.svc-action is a required input\" />\n",
+ "comments": "",
+ "x": 896.8288399832591,
+ "y": 377.7231811795916,
+ "z": "c914996f.38af08",
+ "wires": []
+ },
+ {
+ "id": "e2eeb7ea.c3b598",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 521.1145684378489,
+ "y": 463.4374889646258,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "3b145144.cf0dce"
+ ]
+ ]
+ },
+ {
+ "id": "3b145144.cf0dce",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 748.2574419294087,
+ "y": 463.4374998637609,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "dab01406.ba8c98"
+ ]
+ ]
+ },
+ {
+ "id": "dab01406.ba8c98",
+ "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=\"request-information.request-action is a required input\" />\n",
+ "comments": "",
+ "x": 899.6860079084126,
+ "y": 463.43749795641224,
+ "z": "c914996f.38af08",
+ "wires": []
+ },
+ {
+ "id": "12ea91e7.8a5dee",
+ "type": "switchNode",
+ "name": "switch model-customization-id",
+ "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1118.5790824890137,
+ "y": 635.1996374130249,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "7123b9f.8aa2648"
+ ]
+ ]
+ },
+ {
+ "id": "7123b9f.8aa2648",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1323.5790824890137,
+ "y": 635.1996202468872,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "56283888.4b07c8"
+ ]
+ ]
+ },
+ {
+ "id": "56283888.4b07c8",
+ "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=\"vf-module-information.onap-model-information.model-customization-uuid is a required input\" />\n",
+ "comments": "",
+ "x": 1475.0076484680176,
+ "y": 635.1996183395386,
+ "z": "c914996f.38af08",
+ "wires": []
+ },
+ {
+ "id": "eca8ac0.d277c58",
+ "type": "switchNode",
+ "name": "switch tenant",
+ "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-request-input.tenant`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1064.4361610412598,
+ "y": 676.6281480789185,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "17c7649f.342e3b"
+ ]
+ ]
+ },
+ {
+ "id": "17c7649f.342e3b",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1322.150478363037,
+ "y": 676.6281824111938,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "a9a7bd61.ab17c"
+ ]
+ ]
+ },
+ {
+ "id": "a9a7bd61.ab17c",
+ "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=\"vf-module-information.vf-module-request-input.tenant is a required input\" />\n",
+ "comments": "",
+ "x": 1473.579044342041,
+ "y": 676.6281805038452,
+ "z": "c914996f.38af08",
+ "wires": []
+ },
+ {
+ "id": "37d1ad14.2a8632",
+ "type": "comment",
+ "name": "Validation of required fields",
+ "info": "",
+ "comments": "",
+ "x": 671.1145248413086,
+ "y": 334.86605644226074,
+ "z": "c914996f.38af08",
+ "wires": []
+ },
+ {
+ "id": "6a464fe8.f5db",
+ "type": "switchNode",
+ "name": "switch svc-action",
+ "xml": "<switch test='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 504.2693176269531,
+ "y": 677.5448093414307,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "55f87411.8977fc"
+ ]
+ ]
+ },
+ {
+ "id": "55f87411.8977fc",
+ "type": "outcome",
+ "name": "assign",
+ "xml": "<outcome value='assign'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 663.8526191711426,
+ "y": 677.1280736923218,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "76a30e92.c3b23"
+ ]
+ ]
+ },
+ {
+ "id": "76a30e92.c3b23",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 855.8526191711426,
+ "y": 677.1280736923218,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "12ea91e7.8a5dee",
+ "eca8ac0.d277c58",
+ "75303db4.f39ac4"
+ ]
+ ]
+ },
+ {
+ "id": "412ad4c5.a2550c",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 183.53125217982688,
+ "y": 207.4136562347412,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "5fecaed1.6af1f"
+ ]
+ ]
+ },
+ {
+ "id": "5fecaed1.6af1f",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
+ "outputs": 1,
+ "x": 296.81695774623313,
+ "y": 247.6517677307129,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "ce8e825.505198"
+ ]
+ ]
+ },
+ {
+ "id": "ce8e825.505198",
+ "type": "method",
+ "name": "method validate-vf-module-input",
+ "xml": "<method rpc='validate-vf-module-input' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 253.87654713221946,
+ "y": 288.33031368255615,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "64530960.7a4c48"
+ ]
+ ]
+ },
+ {
+ "id": "d3c65d01.b09e8",
+ "type": "comment",
+ "name": "validate-vf-module-input",
+ "info": "",
+ "comments": "",
+ "x": 577.8761084420339,
+ "y": 155,
+ "z": "c914996f.38af08",
+ "wires": []
+ },
+ {
+ "id": "1cf09f88.9f996",
+ "type": "switchNode",
+ "name": "switch service-instance-id",
+ "xml": "<switch test='`$vf-module-topology-operation-input.service-information.service-instance-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 534.1383993966238,
+ "y": 507.50001525878906,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "4a5d470b.8d66d8"
+ ]
+ ]
+ },
+ {
+ "id": "4a5d470b.8d66d8",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 746.5669806344167,
+ "y": 507.5000114440918,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "6a814e78.eefa1"
+ ]
+ ]
+ },
+ {
+ "id": "6a814e78.eefa1",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"service-information.service-instance-id is a required input\" />\n",
+ "comments": "",
+ "x": 897.9955466134206,
+ "y": 507.50000953674316,
+ "z": "c914996f.38af08",
+ "wires": []
+ },
+ {
+ "id": "50ebeee1.1f03d",
+ "type": "switchNode",
+ "name": "switch vnf-id",
+ "xml": "<switch test='`$vf-module-topology-operation-input.vnf-information.vnf-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 491.6384086608887,
+ "y": 554.0000057220459,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "91be467.d997cb8"
+ ]
+ ]
+ },
+ {
+ "id": "91be467.d997cb8",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 746.9241180419922,
+ "y": 552.5714378356934,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "a61fec00.397b18"
+ ]
+ ]
+ },
+ {
+ "id": "a61fec00.397b18",
+ "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-information.vnf-id is a required input\" />\n",
+ "comments": "",
+ "x": 898.3526840209961,
+ "y": 552.5714359283447,
+ "z": "c914996f.38af08",
+ "wires": []
+ },
+ {
+ "id": "75303db4.f39ac4",
+ "type": "switchNode",
+ "name": "switch aic-cloud-region",
+ "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-request-input.aic-cloud-region`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1093.7812423706055,
+ "y": 718.9048051834106,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "ce90203b.b0afd"
+ ]
+ ]
+ },
+ {
+ "id": "ce90203b.b0afd",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1320.4955596923828,
+ "y": 718.904839515686,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "2275e534.88d4ca"
+ ]
+ ]
+ },
+ {
+ "id": "2275e534.88d4ca",
+ "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=\"vf-module-request-input.aic-cloud-region is a required input\" />\n",
+ "comments": "",
+ "x": 1471.9241256713867,
+ "y": 718.9048376083374,
+ "z": "c914996f.38af08",
+ "wires": []
+ },
+ {
+ "id": "3d870d1c.309352",
+ "type": "outcome",
+ "name": "changeassign",
+ "xml": "<outcome value='changeassign'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 687.6979370117188,
+ "y": 832.2500114440918,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "fa0141f0.f9902"
+ ]
+ ]
+ },
+ {
+ "id": "fa0141f0.f9902",
+ "type": "switchNode",
+ "name": "switch model-customization-id",
+ "xml": "<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 914.3645782470703,
+ "y": 832.5833168029785,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "5358c72a.6a77a8"
+ ]
+ ]
+ },
+ {
+ "id": "5358c72a.6a77a8",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1119.3645782470703,
+ "y": 832.5832996368408,
+ "z": "c914996f.38af08",
+ "wires": [
+ [
+ "80d57253.986af"
+ ]
+ ]
+ },
+ {
+ "id": "80d57253.986af",
+ "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=\"vf-module-information.onap-model-information.model-customization-uuid is a required input\" />\n",
+ "comments": "",
+ "x": 1270.7931442260742,
+ "y": 832.5832977294922,
+ "z": "c914996f.38af08",
+ "wires": []
+ },
+ {
+ "id": "319c1dc4.f1e692",
+ "type": "comment",
+ "name": "model-customization-uuid validation moved to changeassign DG",
+ "info": "",
+ "comments": "",
+ "x": 744.7812423706055,
+ "y": 790,
+ "z": "c914996f.38af08",
+ "wires": []
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json
index 8a5d8f9e..801b57c2 100644
--- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json
+++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.json
@@ -1,1305 +1,212 @@
[
{
- "id": "3eca748a.ef817c",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 123,
- "y": 75,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "350fb0d5.88723"
- ]
- ]
- },
- {
- "id": "350fb0d5.88723",
- "type": "service-logic",
- "name": "GENERIC-RESOURCE-API ${project.version}",
- "module": "GENERIC-RESOURCE-API",
- "version": "${project.version}",
+ "id": "a64f3290.a6791",
+ "type": "get-resource",
+ "name": "get-resource service-subscription",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.subscription-service-type\n AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data-tenant\">\n \n",
"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": 368.2857131958008,
- "y": 74.23807907104492,
- "z": "619b2b0c.b0ac74",
+ "x": 641.03125,
+ "y": 413.09522104263306,
+ "z": "734fbe9e.c17a1",
"wires": [
[
- "7fecfee8.d291b"
+ "d8117fcb.f28fc",
+ "d8ad970.7e76268"
]
]
},
{
- "id": "7fecfee8.d291b",
- "type": "method",
- "name": "validate-sdwan-vf-vpn-input-parameters",
- "xml": "<method rpc='validate-sdwan-vf-vpn-input-parameters' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 451.9166946411133,
- "y": 209.25301837921143,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "8f6f1f8b.897a9"
- ]
- ]
- },
- {
- "id": "8f6f1f8b.897a9",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 735.9167022705078,
- "y": 197.25304317474365,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "634b7128.2e84d",
- "adb8eda0.ca986",
- "bc20a4d8.66ea78",
- "376a189c.5eea28"
- ]
- ]
- },
- {
- "id": "634b7128.2e84d",
+ "id": "a43b0986.72aee8",
"type": "switchNode",
- "name": "switch svc-action",
- "xml": "<switch test='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "name": "switch temp-ub-sub-account-id",
+ "xml": "<switch test='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`'>\n",
"comments": "",
"outputs": 1,
- "x": 995.916633605957,
- "y": 45.25303936004639,
- "z": "619b2b0c.b0ac74",
+ "x": 1053.0313415527344,
+ "y": 377.84530210494995,
+ "z": "734fbe9e.c17a1",
"wires": [
[
- "183ac3e9.257bcc"
+ "5fa9cabc.5c37a4",
+ "625dfb34.3c2da4"
]
]
},
{
- "id": "183ac3e9.257bcc",
+ "id": "5fa9cabc.5c37a4",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>",
"comments": "",
"outputs": 1,
- "x": 1186.6309356689453,
- "y": 46.2530403137207,
- "z": "619b2b0c.b0ac74",
+ "x": 1245.745792388916,
+ "y": 351.84534311294556,
+ "z": "734fbe9e.c17a1",
"wires": [
[
- "65be383e.39b058"
+ "cc0fb2fe.338bf"
]
]
},
{
- "id": "65be383e.39b058",
- "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=\"sdnc-request-header.svc-request-id is a required input\" />\n",
- "comments": "",
- "x": 1361.0594863891602,
- "y": 45.25303268432617,
- "z": "619b2b0c.b0ac74",
- "wires": []
- },
- {
- "id": "adb8eda0.ca986",
- "type": "switchNode",
- "name": "switch svc-action",
- "xml": "<switch test='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 332.9166564941406,
- "y": 468.2530336380005,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "83c4de98.01196",
- "ce7e74f7.3c86c8",
- "147fd5d9.68de3a",
- "1561519f.abda0e",
- "d7c5bf00.510dc"
- ]
- ]
- },
- {
- "id": "83c4de98.01196",
- "type": "outcome",
- "name": "create",
- "xml": "<outcome value='create'>\n",
- "comments": "",
- "outputs": 1,
- "x": 526.5000228881836,
- "y": 297.66667079925537,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "363f7231.506cbe"
- ]
- ]
- },
- {
- "id": "363f7231.506cbe",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 687.5000228881836,
- "y": 297.66667079925537,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "46be34f.5b2c7cc"
- ]
- ]
- },
- {
- "id": "ce7e74f7.3c86c8",
- "type": "outcome",
- "name": "deactivate",
- "xml": "<outcome value='deactivate'>\n",
- "comments": "",
- "outputs": 1,
- "x": 499.4920120239258,
- "y": 906.428539276123,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "aec7db3f.798358"
- ]
- ]
- },
- {
- "id": "147fd5d9.68de3a",
- "type": "outcome",
- "name": "delete",
- "xml": "<outcome value='delete'>\n",
- "comments": "",
- "outputs": 1,
- "x": 503.20639419555664,
- "y": 1077.1430969238281,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "c7708172.24701"
- ]
- ]
- },
- {
- "id": "1561519f.abda0e",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 502.9682846069336,
- "y": 1250.571382522583,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "b6252f6e.c1321"
- ]
- ]
- },
- {
- "id": "b6252f6e.c1321",
- "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=\"`$vf-module-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",
- "comments": "",
- "x": 686.5398178100586,
- "y": 1251.190523147583,
- "z": "619b2b0c.b0ac74",
- "wires": []
- },
- {
- "id": "46be34f.5b2c7cc",
- "type": "switchNode",
- "name": "switch request-action",
- "xml": "<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 888,
- "y": 295.6666797399521,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "3528f63.34e230a",
- "82048a2c.348118"
- ]
- ]
- },
- {
- "id": "3528f63.34e230a",
- "type": "other",
- "name": "Other",
- "xml": "<outcome value='Other'>",
- "comments": "",
- "outputs": 1,
- "x": 1073.4999923706055,
- "y": 323.66667652130127,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "3198409.3ebdec"
- ]
- ]
- },
- {
- "id": "3198409.3ebdec",
- "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=\"request-information.request-action is required to be SOTN CreateVPNNetworkInstance for svc-action=create\" />\n",
- "comments": "",
- "x": 1224.0000228881836,
- "y": 317.66667079925537,
- "z": "619b2b0c.b0ac74",
- "wires": []
- },
- {
- "id": "ee1459dc.d090c8",
- "type": "other",
- "name": "DeleteSDWANVpnInstance",
- "xml": "<outcome value='DeleteSDWANVpnInstance'>",
- "comments": "",
- "outputs": 1,
- "x": 945.0634384155273,
- "y": 1073.698395729065,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "773b0668.3dfda8"
- ]
- ]
- },
- {
- "id": "640b4312.a9c5ac",
+ "id": "625dfb34.3c2da4",
"type": "other",
"name": "Other",
"xml": "<outcome value='Other'>",
"comments": "",
"outputs": 1,
- "x": 860.6189804077148,
- "y": 1149.920636177063,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "20eafb56.ca5e14"
- ]
- ]
- },
- {
- "id": "20eafb56.ca5e14",
- "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=\"request-information.request-action is required to be SOTN DeleteVPNNetworkInstance for svc-action=delete\" />\n",
- "comments": "",
- "x": 1020.9524002075195,
- "y": 1152.0317735671997,
- "z": "619b2b0c.b0ac74",
- "wires": []
- },
- {
- "id": "773b0668.3dfda8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1168.9523086547852,
- "y": 1079.9206190109253,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "30507c3b.465aa4",
- "b4bebf6c.2b4fa",
- "b3df3a7b.216bd8",
- "eb92e3d.8a6ff2"
- ]
- ]
- },
- {
- "id": "d7c5bf00.510dc",
- "type": "outcome",
- "name": "activate",
- "xml": "<outcome value='activate'>\n",
- "comments": "",
- "outputs": 1,
- "x": 520.4285774230957,
- "y": 560.7143135070801,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "aa89a015.4408d"
- ]
- ]
- },
- {
- "id": "aa89a015.4408d",
- "type": "switchNode",
- "name": "switch request-action",
- "xml": "<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 703.2857437133789,
- "y": 557.8571634292603,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "c1f6d379.b3eef",
- "89075fc5.672ae"
- ]
- ]
- },
- {
- "id": "c1f6d379.b3eef",
- "type": "other",
- "name": "ActivateSDWANVpnInstance",
- "xml": "<outcome value='ActivateSDWANVpnInstance'>",
- "comments": "",
- "outputs": 1,
- "x": 956.5000228881836,
- "y": 537.6666707992554,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "ce665d03.3901d"
- ]
- ]
- },
- {
- "id": "89075fc5.672ae",
- "type": "other",
- "name": "Other",
- "xml": "<outcome value='Other'>",
- "comments": "",
- "outputs": 1,
- "x": 886.5000228881836,
- "y": 577.6666707992554,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "c6e2911c.5f916"
- ]
- ]
- },
- {
- "id": "c6e2911c.5f916",
- "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=\"request-information.request-action is required to be SOTN ActivateVPNNetworkInstance for svc-action=activate\" />\n",
- "comments": "",
- "x": 1044.0000228881836,
- "y": 577.6666707992554,
- "z": "619b2b0c.b0ac74",
- "wires": []
- },
- {
- "id": "ce665d03.3901d",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1187.5000228881836,
- "y": 537.6666707992554,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "b3df3a7b.216bd8",
- "30507c3b.465aa4",
- "b4bebf6c.2b4fa",
- "57bd5824.2497c8"
- ]
- ]
- },
- {
- "id": "c598159a.7423c8",
- "type": "other",
- "name": "DeactivateSDWANVpnInstance",
- "xml": "<outcome value='DeactivateSDWANVpnInstance'>",
- "comments": "",
- "outputs": 1,
- "x": 942.9206390380859,
- "y": 908.1429328918457,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "50af0272.e02a9c"
- ]
- ]
- },
- {
- "id": "e01173d7.fe6b9",
- "type": "other",
- "name": "Other",
- "xml": "<outcome value='Other'>",
- "comments": "",
- "outputs": 1,
- "x": 857.9206314086914,
- "y": 977.1429405212402,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "d14295e9.c68018"
- ]
- ]
- },
- {
- "id": "d14295e9.c68018",
- "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=\"request-information.request-action is required to be SOTN DeactivateVPNNetworkInstance for svc-action=deactivate\" />\n",
- "comments": "",
- "x": 1038.9206466674805,
- "y": 978.1429405212402,
- "z": "619b2b0c.b0ac74",
- "wires": []
- },
- {
- "id": "aec7db3f.798358",
- "type": "switchNode",
- "name": "switch request-action",
- "xml": "<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>",
- "comments": "",
- "outputs": 1,
- "x": 679.7776947021484,
- "y": 910.6188039779663,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "c598159a.7423c8",
- "e01173d7.fe6b9"
- ]
- ]
- },
- {
- "id": "c7708172.24701",
- "type": "switchNode",
- "name": "switch request-action",
- "xml": "<switch test='`$vf-module-topology-operation-input.request-information.request-action`'>",
- "comments": "",
- "outputs": 1,
- "x": 683.5554962158203,
- "y": 1076.9523208141327,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "ee1459dc.d090c8",
- "640b4312.a9c5ac"
- ]
- ]
- },
- {
- "id": "50af0272.e02a9c",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1202.888786315918,
- "y": 910.9523277282715,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "30507c3b.465aa4",
- "b4bebf6c.2b4fa",
- "b3df3a7b.216bd8",
- "c2db488a.b105a8"
- ]
- ]
- },
- {
- "id": "82048a2c.348118",
- "type": "other",
- "name": "CreateSDWANVpnInstance",
- "xml": "<outcome value='CreateSDWANVpnInstance'>",
- "comments": "",
- "outputs": 1,
- "x": 1172.499984741211,
- "y": 276.6666679382324,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "7a0b5551.c75d9c"
- ]
- ]
- },
- {
- "id": "7a0b5551.c75d9c",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1407.49995803833,
- "y": 275.6666679382324,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "3f52a78f.7ab728"
- ]
- ]
- },
- {
- "id": "3f52a78f.7ab728",
- "type": "for",
- "name": "for loop i - vpn vf input parameters",
- "xml": "<for index=\"i\" start=\"0\" end=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 1638.000015258789,
- "y": 276.6666679382324,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "d37b6b2c.71fb38"
- ]
- ]
- },
- {
- "id": "d37b6b2c.71fb38",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1846.5000228881836,
- "y": 277.66667079925537,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "9ec108e6.32a3b8",
- "a16aa1da.005f3",
- "3a20c40b.dcc4cc"
- ]
- ]
- },
- {
- "id": "9ec108e6.32a3b8",
- "type": "set",
- "name": "clear tmp-data",
- "xml": "<set>\n<parameter name='tmp.name' value='' />\n<parameter name='tmp.value' value='' />\n",
- "comments": "",
- "x": 2029.5000228881836,
- "y": 237.66667079925537,
- "z": "619b2b0c.b0ac74",
- "wires": []
- },
- {
- "id": "a16aa1da.005f3",
- "type": "set",
- "name": "set tmp-data",
- "xml": "<set>\n<parameter name='tmp.name' value=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].name`\"/>\n<parameter name='tmp.value' value=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$i].value`\"/>\n",
- "comments": "",
- "x": 2024.0000228881836,
- "y": 277.66667079925537,
- "z": "619b2b0c.b0ac74",
- "wires": []
- },
- {
- "id": "3a20c40b.dcc4cc",
- "type": "switchNode",
- "name": "switch name",
- "xml": "<switch test=\"`$tmp.name`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 2024.0000228881836,
- "y": 317.66667079925537,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "3280408b.66ab3",
- "63ad3611.30c718",
- "2eab978e.1492a8"
- ]
- ]
- },
- {
- "id": "d22ab892.eef718",
- "type": "switchNode",
- "name": "switch value",
- "xml": "<switch test=\"`$tmp.value`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 2484.0001907348633,
- "y": 269.66669142246246,
- "z": "619b2b0c.b0ac74",
+ "x": 1246.0313568115234,
+ "y": 406.8453059196472,
+ "z": "734fbe9e.c17a1",
"wires": [
[
- "b07f67fa.6ab208"
+ "f90c9031.98073"
]
]
},
{
- "id": "2eab978e.1492a8",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>",
+ "id": "d8117fcb.f28fc",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 2243.500358581543,
- "y": 335.66667902469635,
- "z": "619b2b0c.b0ac74",
+ "x": 851.5311126708984,
+ "y": 385.84127950668335,
+ "z": "734fbe9e.c17a1",
"wires": [
[
- "5967794c.72e8b8"
+ "a43b0986.72aee8"
]
]
},
{
- "id": "5967794c.72e8b8",
- "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=\"`'vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[' + $i + ']' + '.name is a required input'`\" />\n",
- "comments": "",
- "x": 2418.5003623962402,
- "y": 334.66667902469635,
- "z": "619b2b0c.b0ac74",
- "wires": []
- },
- {
- "id": "3280408b.66ab3",
- "type": "other",
- "name": "name",
- "xml": "<outcome value='name'>",
+ "id": "d8ad970.7e76268",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 2243.500358581543,
- "y": 219.66667330265045,
- "z": "619b2b0c.b0ac74",
+ "x": 845.2097015380859,
+ "y": 438.0555911064148,
+ "z": "734fbe9e.c17a1",
"wires": [
[
- "d22ab892.eef718"
+ "3d299dd2.2779d2"
]
]
},
{
- "id": "63ad3611.30c718",
- "type": "other",
- "name": "topology",
- "xml": "<outcome value='topology'>",
- "comments": "",
- "outputs": 1,
- "x": 2255.500114440918,
- "y": 273.333335518837,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "d22ab892.eef718"
- ]
- ]
- },
- {
- "id": "b07f67fa.6ab208",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>",
- "comments": "",
- "outputs": 1,
- "x": 2627.5001907348633,
- "y": 269.66669142246246,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "3ecabf5c.8d652"
- ]
- ]
- },
- {
- "id": "3ecabf5c.8d652",
+ "id": "3d299dd2.2779d2",
"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=\"`'vf-module-request-input.vf-module-input-parameters.param '+ $tmp.name +' is a required input'`\" />\n",
+ "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": 2785.5001907348633,
- "y": 269.66669142246246,
- "z": "619b2b0c.b0ac74",
+ "x": 997.9597015380859,
+ "y": 437.80565214157104,
+ "z": "734fbe9e.c17a1",
"wires": []
},
{
- "id": "b3df3a7b.216bd8",
- "type": "switchNode",
- "name": "switch service-data.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": 1479.3889541625977,
- "y": 576.9999761581421,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "37913775.d258a8",
- "8c9e338f.0d83c"
- ]
- ]
- },
- {
- "id": "37913775.d258a8",
- "type": "other",
- "name": "outcome Null",
- "xml": "<outcome value=''>\n",
+ "id": "22ec666.190639a",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
"comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
"outputs": 1,
- "x": 1748.0000228881836,
- "y": 556.666711807251,
- "z": "619b2b0c.b0ac74",
+ "x": 221.03125,
+ "y": 140.23810720443726,
+ "z": "734fbe9e.c17a1",
"wires": [
[
- "7c4231f0.9cbb7"
+ "8abe47ad.c27bd8"
]
]
},
{
- "id": "7c4231f0.9cbb7",
- "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=\"vf-module-topology-operation-input.vf-module-request-input.vf-module-id not found in service-data\" />\n",
- "comments": "",
- "x": 1924.0000228881836,
- "y": 557.6666707992554,
- "z": "619b2b0c.b0ac74",
- "wires": []
- },
- {
- "id": "8c9e338f.0d83c",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
+ "id": "3762da11.93d966",
+ "type": "dgstart",
+ "name": "DGSTART",
"outputs": 1,
- "x": 1726.5000228881836,
- "y": 597.6666707992554,
- "z": "619b2b0c.b0ac74",
+ "x": 141.74554443359375,
+ "y": 77.99999761581421,
+ "z": "734fbe9e.c17a1",
"wires": [
[
- "b6f61e8c.9dd35"
+ "22ec666.190639a"
]
]
},
{
- "id": "b6f61e8c.9dd35",
+ "id": "6b7a2ebd.00d69",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1887.5000228881836,
- "y": 597.6666707992554,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "9317c153.6ccad",
- "bdedbaa4.65e588"
- ]
- ]
- },
- {
- "id": "9317c153.6ccad",
- "type": "for",
- "name": "for nidx..service-data.vf-modules.vf-module[]",
- "xml": "<for index='nidx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 2150.0000228881836,
- "y": 577.6666707992554,
- "z": "619b2b0c.b0ac74",
+ "x": 374.98365020751953,
+ "y": 376.8095316886902,
+ "z": "734fbe9e.c17a1",
"wires": [
[
- "1fade275.78b10e"
+ "a64f3290.a6791",
+ "4bfcb671.50b358"
]
]
},
{
- "id": "1fade275.78b10e",
- "type": "switchNode",
- "name": "switch vf-module-id found",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$nidx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n \n\n",
- "comments": "",
- "outputs": 1,
- "x": 2436.0000228881836,
- "y": 577.6666707992554,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "99a1d82a.9dd8c8"
- ]
- ]
- },
- {
- "id": "99a1d82a.9dd8c8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
+ "id": "8abe47ad.c27bd8",
+ "type": "method",
+ "name": "method sdwan-get-tenant-auth",
+ "xml": "<method rpc='sdwan-get-tenant-auth' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 2606.5000228881836,
- "y": 577.6666707992554,
- "z": "619b2b0c.b0ac74",
+ "x": 232.74554443359375,
+ "y": 234.58633947372437,
+ "z": "734fbe9e.c17a1",
"wires": [
[
- "39ae6a67.1c8296"
+ "6b7a2ebd.00d69"
]
]
},
{
- "id": "70e3cfee.6e895",
+ "id": "f90c9031.98073",
"type": "set",
- "name": "set tmp.nidx and ctx.network-data",
- "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$nidx].vf-module-data.`' />\n",
+ "name": "set prop.tenant-id",
+ "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data-tenant.temp-ub-sub-account-id`' />\n",
"comments": "",
- "x": 3007.50008392334,
- "y": 574.6667140722275,
- "z": "619b2b0c.b0ac74",
+ "x": 1423.888427734375,
+ "y": 405.9523615837097,
+ "z": "734fbe9e.c17a1",
"wires": []
},
{
- "id": "1412cffb.8d463",
- "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=\"vf-module-topology-operation-input.vf-module-request-input.vf-module-id not found in service-data\" />\n",
- "comments": "",
- "x": 2364.0000228881836,
- "y": 617.6666707992554,
- "z": "619b2b0c.b0ac74",
- "wires": []
- },
- {
- "id": "fbeeeb3e.43c3b8",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 2226.5000228881836,
- "y": 617.6666707992554,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "1412cffb.8d463"
- ]
- ]
- },
- {
- "id": "bdedbaa4.65e588",
- "type": "switchNode",
- "name": "switch tmp.nidx ",
- "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2072.5000228881836,
- "y": 617.6666707992554,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "fbeeeb3e.43c3b8"
- ]
- ]
- },
- {
- "id": "57bd5824.2497c8",
- "type": "switchNode",
- "name": "switch network-level-oper-status",
- "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.nidx].vf-module-data.vf-module-level-oper-status.order-status`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1451.6667098999023,
- "y": 656.5555486679077,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "719dd138.28ef4",
- "2dca8a18.a65586"
- ]
- ]
- },
- {
- "id": "719dd138.28ef4",
- "type": "outcome",
- "name": "outcome Created",
- "xml": "<outcome value='Created'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1748.5001258850098,
- "y": 656.5555467605591,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "94e9cf1a.6c399"
- ]
- ]
- },
- {
- "id": "2dca8a18.a65586",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1716.5001258850098,
- "y": 696.5555467605591,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "2c8432e2.7a0b8e"
- ]
- ]
- },
- {
- "id": "2c8432e2.7a0b8e",
- "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=\"`'vf-module is not in appropriate state for activate. Current state is ' + $service-data.vf-modules.vf-module[$tmp.nidx].vf-module-data.vf-module-level-oper-status.order-status`\" />\n",
- "comments": "",
- "x": 1874.0001258850098,
- "y": 696.5555467605591,
- "z": "619b2b0c.b0ac74",
- "wires": []
- },
- {
- "id": "b4bebf6c.2b4fa",
- "type": "switchNode",
- "name": "switch vf-module-id",
- "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 1398.5000228881836,
- "y": 517.6666707992554,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "9ad9b806.2c19b8"
- ]
- ]
- },
- {
- "id": "9ad9b806.2c19b8",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>",
- "comments": "",
- "outputs": 1,
- "x": 1626.5000228881836,
- "y": 517.6666707992554,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "b7b28733.f37c08"
- ]
- ]
- },
- {
- "id": "b7b28733.f37c08",
- "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=\"network-request-input.network-input-parameters.name is a required input\" />\n",
- "comments": "",
- "x": 1764.0000228881836,
- "y": 517.6666707992554,
- "z": "619b2b0c.b0ac74",
- "wires": []
- },
- {
- "id": "30507c3b.465aa4",
+ "id": "4bfcb671.50b358",
"type": "execute",
- "name": "execute requiredParameters",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"vf-module-topology-operation-input.vf-module-information.vf-module-id\" value=\"$vf-module-topology-operation-input.vf-module-information.vf-module-id\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1433.0000228881836,
- "y": 477.66667079925537,
- "z": "619b2b0c.b0ac74",
- "wires": [
- []
- ]
- },
- {
- "id": "c2db488a.b105a8",
- "type": "switchNode",
- "name": "switch network-level-oper-status",
- "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.nidx].vf-module-data.vf-module-level-oper-status.order-status`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1479.8332748413086,
- "y": 906.5555257797241,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "cf4b307b.b1b04",
- "acc49742.fd0df8"
- ]
- ]
- },
- {
- "id": "cf4b307b.b1b04",
- "type": "outcome",
- "name": "outcome Active",
- "xml": "<outcome value='Active'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1753.166648864746,
- "y": 880.9999837875366,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "e31a54a2.3ff1f8"
- ]
- ]
- },
- {
- "id": "acc49742.fd0df8",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1723.166648864746,
- "y": 920.9999837875366,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "bc3125bf.c135a8"
- ]
- ]
- },
- {
- "id": "bc3125bf.c135a8",
- "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=\"`'vf-module is not in appropriate state for deactivate. Current state is ' + $service-data.vf-modules.vf-module[$tmp.nidx].vf-module-data.vf-module-level-oper-status.order-status`\" />\n ",
+ "name": "execute RestApiCallNode Create tenant auth",
+ "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/campus/v2/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\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=\"tenant-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": "",
- "x": 1889.166648864746,
- "y": 922.9999837875366,
- "z": "619b2b0c.b0ac74",
- "wires": []
- },
- {
- "id": "eb92e3d.8a6ff2",
- "type": "switchNode",
- "name": "switch network-level-oper-status",
- "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.nidx].vf-module-data.vf-module-level-oper-status.order-status`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1468.7221908569336,
- "y": 1077.6666097640991,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "4005e1e5.db606",
- "3f0b16e4.30f1ca"
- ]
- ]
- },
- {
- "id": "4005e1e5.db606",
- "type": "outcome",
- "name": "outcome PendingDelete",
- "xml": "<outcome value='PendingDelete'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1768.7222518920898,
- "y": 1045.444405555725,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "e99f233c.ef676"
- ]
- ]
- },
- {
- "id": "3f0b16e4.30f1ca",
- "type": "other",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1712.055564880371,
- "y": 1092.1110677719116,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "26e244b4.b2362c"
- ]
- ]
- },
- {
- "id": "26e244b4.b2362c",
- "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=\"`'vf-module is not in appropriate state for delete. Current state is ' + $service-data.vf-modules.vf-module[$tmp.nidx].vf-module-data.vf-module-level-oper-status.order-status`\" />\n",
- "comments": "",
- "x": 1878.055564880371,
- "y": 1094.1110677719116,
- "z": "619b2b0c.b0ac74",
- "wires": []
- },
- {
- "id": "94e9cf1a.6c399",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
"outputs": 1,
- "x": 1940.5001029968262,
- "y": 657.6666488647461,
- "z": "619b2b0c.b0ac74",
+ "x": 668.5312805175781,
+ "y": 515.988030910492,
+ "z": "734fbe9e.c17a1",
"wires": [
[]
]
},
{
- "id": "e31a54a2.3ff1f8",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1953.1665267944336,
- "y": 879.1481161117554,
- "z": "619b2b0c.b0ac74",
- "wires": [
- []
- ]
- },
- {
- "id": "e99f233c.ef676",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 1984.277732849121,
- "y": 1045.8147420883179,
- "z": "619b2b0c.b0ac74",
- "wires": [
- []
- ]
- },
- {
- "id": "39ae6a67.1c8296",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 2756.666534423828,
- "y": 574.0000190734863,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "70e3cfee.6e895"
- ]
- ]
- },
- {
- "id": "bc20a4d8.66ea78",
- "type": "switchNode",
- "name": "switch vnf_length",
- "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 971.0065307617188,
- "y": 121.24849605560303,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "ae64d058.26533"
- ]
- ]
- },
- {
- "id": "ae64d058.26533",
- "type": "outcome",
- "name": "NULL",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1151.0065116882324,
- "y": 120.24848556518555,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "d4c5df8d.2e7e3"
- ]
- ]
- },
- {
- "id": "d4c5df8d.2e7e3",
+ "id": "cc0fb2fe.338bf",
"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 entry not found in service-data\" />\n",
- "comments": "",
- "x": 1300.4352378845215,
- "y": 121.39140319824219,
- "z": "619b2b0c.b0ac74",
- "wires": []
- },
- {
- "id": "376a189c.5eea28",
- "type": "for",
- "name": "for each vnf",
- "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 951.0379104614258,
- "y": 183.51763439178467,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "891fced5.d7d06"
- ]
- ]
- },
- {
- "id": "891fced5.d7d06",
- "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": 1189.0065269470215,
- "y": 183.2484917640686,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "2828372d.9354b8"
- ]
- ]
- },
- {
- "id": "2828372d.9354b8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1404.0065116882324,
- "y": 181.24848556518555,
- "z": "619b2b0c.b0ac74",
- "wires": [
- [
- "56c573f0.8eef8c"
- ]
- ]
- },
- {
- "id": "56c573f0.8eef8c",
- "type": "set",
- "name": "set vnf-index",
- "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
+ "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": 1568.0065116882324,
- "y": 176.24848556518555,
- "z": "619b2b0c.b0ac74",
+ "x": 1428.1740341186523,
+ "y": 351.6666522026062,
+ "z": "734fbe9e.c17a1",
"wires": []
}
] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-wan-param.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-wan-param.json
index 30ccba9b..88915060 100644
--- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-wan-param.json
+++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-get-wan-param.json
@@ -1,20 +1,20 @@
[
{
- "id": "818160d.1a87aa",
+ "id": "f4e72acb.01bf58",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 116.01041412353516,
- "y": 49.010414123535156,
- "z": "83799888.3d8488",
+ "x": 130.03125,
+ "y": 54.00000190734863,
+ "z": "192759e2.8ca676",
"wires": [
[
- "2c87f750.9ff0e8"
+ "a16de899.ba6ce8"
]
]
},
{
- "id": "2c87f750.9ff0e8",
+ "id": "a16de899.ba6ce8",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,838 +22,838 @@
"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": 253.01041793823242,
- "y": 154.0104274749756,
- "z": "83799888.3d8488",
+ "x": 267.03125381469727,
+ "y": 159.00001525878906,
+ "z": "192759e2.8ca676",
"wires": [
[
- "ff163fb7.14832"
+ "452b8421.fdadac"
]
]
},
{
- "id": "ff163fb7.14832",
+ "id": "452b8421.fdadac",
"type": "method",
"name": "sdwan-get-wan-param",
"xml": "<method rpc='sdwan-get-wan-param' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 241.01053619384766,
- "y": 242.0104103088379,
- "z": "83799888.3d8488",
+ "x": 255.0313720703125,
+ "y": 246.99999809265137,
+ "z": "192759e2.8ca676",
"wires": [
[
- "352c95ce.453cea"
+ "50910d6a.5d96b4"
]
]
},
{
- "id": "352c95ce.453cea",
+ "id": "50910d6a.5d96b4",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 248.01042938232422,
- "y": 328.0104684829712,
- "z": "83799888.3d8488",
+ "x": 262.03126525878906,
+ "y": 333.00005626678467,
+ "z": "192759e2.8ca676",
"wires": [
[
- "52293f30.d5b77"
+ "8cd27d33.452ae"
]
]
},
{
- "id": "52293f30.d5b77",
+ "id": "8cd27d33.452ae",
"type": "for",
"name": "for each sdwan-get-request-input-param",
- "xml": "<for index=\"idx\" start=\"0\" end=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`\">\n\n",
+ "xml": "<for index=\"idx\" start=\"0\" end=\"`$vf-module-request-input.vf-module-input-parameters.param_length`\">\n",
"comments": "",
"outputs": 1,
- "x": 284.6771926879883,
- "y": 410.6770648956299,
- "z": "83799888.3d8488",
+ "x": 298.6980285644531,
+ "y": 415.66665267944336,
+ "z": "192759e2.8ca676",
"wires": [
[
- "e8d20d4.02e64f"
+ "b3542ade.7b14d8"
]
]
},
{
- "id": "e8d20d4.02e64f",
+ "id": "b3542ade.7b14d8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 549.5106964111328,
- "y": 320.01045656204224,
- "z": "83799888.3d8488",
+ "x": 563.5315322875977,
+ "y": 325.0000443458557,
+ "z": "192759e2.8ca676",
"wires": [
[
- "2847b0ea.9ebb",
- "d4feaef6.6438f",
- "3e47338e.c3ab3c",
- "91d20588.adacd8",
- "43f318cb.2f4418",
- "49351eca.09882",
- "a41eaf2.439f75",
- "9005e8e9.34f768",
- "a55d2183.cf6a",
- "c8c85e46.4f10f",
- "286e48cc.e48988",
- "383fea5a.143066",
- "18a75045.9bb5e",
- "60fcaabc.ca5bf4",
- "d17b4c90.52ccd",
- "2a13a6a0.eb644a",
- "19ce9dfd.f8a2f2",
- "a399cdca.37b7a"
+ "e86947af.f5b608",
+ "638cf29c.12828c",
+ "46b5c4a7.4a507c",
+ "b5fed085.d4d7c",
+ "77b16659.a09ba8",
+ "d7c2c346.bb4d6",
+ "8f7cd129.e628b",
+ "7871b91.d889348",
+ "de89e87a.10da58",
+ "769a21a2.077c4",
+ "e772d25.ba6eb3",
+ "6d16b1ef.6edda",
+ "f44a56f3.db7c08",
+ "2d9d0a07.21b996",
+ "f4e0170c.c926f8",
+ "ec6279c6.c6c888",
+ "7c9c948.6f89d6c",
+ "97c178d3.f58628"
]
]
},
{
- "id": "2847b0ea.9ebb",
+ "id": "e86947af.f5b608",
"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": 781.0111198425293,
- "y": 804.0109233856201,
- "z": "83799888.3d8488",
+ "x": 795.0319557189941,
+ "y": 809.0005111694336,
+ "z": "192759e2.8ca676",
"wires": []
},
{
- "id": "43f318cb.2f4418",
+ "id": "77b16659.a09ba8",
"type": "switchNode",
"name": "switch deviceName",
"xml": "<switch test=\"`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'deviceName'`\">\n",
"comments": "",
"outputs": 1,
- "x": 782.0105018615723,
- "y": 235.01046657562256,
- "z": "83799888.3d8488",
+ "x": 796.0313377380371,
+ "y": 240.00005435943604,
+ "z": "192759e2.8ca676",
"wires": [
[
- "510fde76.25775"
+ "8a272a2c.746128"
]
]
},
{
- "id": "510fde76.25775",
+ "id": "8a272a2c.746128",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 984.010908126831,
- "y": 236.01053714752197,
- "z": "83799888.3d8488",
+ "x": 998.0317440032959,
+ "y": 241.00012493133545,
+ "z": "192759e2.8ca676",
"wires": [
[
- "bacc1950.a6e0e8"
+ "2c0253a3.fcc01c"
]
]
},
{
- "id": "bacc1950.a6e0e8",
+ "id": "2c0253a3.fcc01c",
"type": "set",
"name": "set deviceName",
"xml": "<set>\n<parameter name='prop.wan.deviceName' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />",
"comments": "",
- "x": 1148.0111656188965,
- "y": 232.6106538772583,
- "z": "83799888.3d8488",
+ "x": 1162.0320014953613,
+ "y": 237.60024166107178,
+ "z": "192759e2.8ca676",
"wires": []
},
{
- "id": "c8c85e46.4f10f",
+ "id": "769a21a2.077c4",
"type": "switchNode",
"name": "switch vlanId",
"xml": "<switch test=\"`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'vlanId'`\">\n",
"comments": "",
"outputs": 1,
- "x": 763.8506278991699,
- "y": 465.01052474975586,
- "z": "83799888.3d8488",
+ "x": 777.8714637756348,
+ "y": 470.00011253356934,
+ "z": "192759e2.8ca676",
"wires": [
[
- "5ea3c659.f0cd28"
+ "96af6598.d7c628"
]
]
},
{
- "id": "5ea3c659.f0cd28",
+ "id": "96af6598.d7c628",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 948.850715637207,
- "y": 463.010555267334,
- "z": "83799888.3d8488",
+ "x": 962.8715515136719,
+ "y": 468.00014305114746,
+ "z": "192759e2.8ca676",
"wires": [
[
- "a7e47063.77624"
+ "835228c7.4ae758"
]
]
},
{
- "id": "a7e47063.77624",
+ "id": "835228c7.4ae758",
"type": "set",
"name": "set vlanId",
"xml": "<set>\n<parameter name='prop.wan.vlanId' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />",
"comments": "",
- "x": 1096.1846237182617,
- "y": 460.4718141555786,
- "z": "83799888.3d8488",
+ "x": 1110.2054595947266,
+ "y": 465.4614019393921,
+ "z": "192759e2.8ca676",
"wires": []
},
{
- "id": "3e47338e.c3ab3c",
+ "id": "46b5c4a7.4a507c",
"type": "switchNode",
"name": "switch name",
"xml": "<switch test=\"`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'name'`\">\n",
"comments": "",
"outputs": 1,
- "x": 779.905574798584,
- "y": 164.98373794555664,
- "z": "83799888.3d8488",
+ "x": 793.9264106750488,
+ "y": 169.97332572937012,
+ "z": "192759e2.8ca676",
"wires": [
[
- "69feffe1.51e2a"
+ "7b61097d.91aee8"
]
]
},
{
- "id": "69feffe1.51e2a",
+ "id": "7b61097d.91aee8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 967.9056625366211,
- "y": 165.98376750946045,
- "z": "83799888.3d8488",
+ "x": 981.9264984130859,
+ "y": 170.97335529327393,
+ "z": "192759e2.8ca676",
"wires": [
[
- "8d991bb4.b45f18"
+ "b4967d12.d0c5f"
]
]
},
{
- "id": "8d991bb4.b45f18",
+ "id": "b4967d12.d0c5f",
"type": "set",
"name": "set name",
"xml": "<set>\n<parameter name='prop.wan.name' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n",
"comments": "",
- "x": 1117.905912399292,
- "y": 160.58384323120117,
- "z": "83799888.3d8488",
+ "x": 1131.9267482757568,
+ "y": 165.57343101501465,
+ "z": "192759e2.8ca676",
"wires": []
},
{
- "id": "9005e8e9.34f768",
+ "id": "7871b91.d889348",
"type": "switchNode",
"name": "switch ipAddress",
"xml": "<switch test=\"`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'ipAddress'`\">\n",
"comments": "",
"outputs": 1,
- "x": 767.9058036804199,
- "y": 391.38722801208496,
- "z": "83799888.3d8488",
+ "x": 781.9266395568848,
+ "y": 396.37681579589844,
+ "z": "192759e2.8ca676",
"wires": [
[
- "cf4b6fa5.dfd8b"
+ "e6c538ab.c14a08"
]
]
},
{
- "id": "cf4b6fa5.dfd8b",
+ "id": "e6c538ab.c14a08",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 961.9060516357422,
- "y": 392.3871765136719,
- "z": "83799888.3d8488",
+ "x": 975.926887512207,
+ "y": 397.37676429748535,
+ "z": "192759e2.8ca676",
"wires": [
[
- "abac1fea.19c24"
+ "4bb13cc.edc5bc4"
]
]
},
{
- "id": "abac1fea.19c24",
+ "id": "4bb13cc.edc5bc4",
"type": "set",
"name": "set ipAddress",
"xml": "<set>\n<parameter name='prop.wan.ipAddress' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n",
"comments": "",
- "x": 1114.2399597167969,
- "y": 390.84843730926514,
- "z": "83799888.3d8488",
+ "x": 1128.2607955932617,
+ "y": 395.8380250930786,
+ "z": "192759e2.8ca676",
"wires": []
},
{
- "id": "a55d2183.cf6a",
+ "id": "de89e87a.10da58",
"type": "switchNode",
"name": "switch providerIpAddress",
"xml": "<switch test=\"`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'providerIpAddress'`\">\n",
"comments": "",
"outputs": 1,
- "x": 799.9059638977051,
- "y": 426.387149810791,
- "z": "83799888.3d8488",
+ "x": 813.9267997741699,
+ "y": 431.3767375946045,
+ "z": "192759e2.8ca676",
"wires": [
[
- "b70a8774.407208"
+ "a03ed9c9.218c88"
]
]
},
{
- "id": "b70a8774.407208",
+ "id": "a03ed9c9.218c88",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 975.9062156677246,
- "y": 426.387095451355,
- "z": "83799888.3d8488",
+ "x": 989.9270515441895,
+ "y": 431.37668323516846,
+ "z": "192759e2.8ca676",
"wires": [
[
- "a3935f63.e64dc"
+ "3a45df3c.4f62e"
]
]
},
{
- "id": "a3935f63.e64dc",
+ "id": "3a45df3c.4f62e",
"type": "set",
"name": "set providerIpAddress",
"xml": "<set>\n<parameter name='prop.wan.providerIpAddress' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />",
"comments": "",
- "x": 1142.2397994995117,
- "y": 426.84827709198,
- "z": "83799888.3d8488",
+ "x": 1156.2606353759766,
+ "y": 431.83786487579346,
+ "z": "192759e2.8ca676",
"wires": []
},
{
- "id": "383fea5a.143066",
+ "id": "6d16b1ef.6edda",
"type": "switchNode",
"name": "switch inputBandwidth",
"xml": "<switch test=\"`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'inputBandwidth'`\">\n",
"comments": "",
"outputs": 1,
- "x": 790.9057731628418,
- "y": 538.3869562149048,
- "z": "83799888.3d8488",
+ "x": 804.9266090393066,
+ "y": 543.3765439987183,
+ "z": "192759e2.8ca676",
"wires": [
[
- "45b075bc.f36a3c"
+ "299964fe.6aa9cc"
]
]
},
{
- "id": "45b075bc.f36a3c",
+ "id": "299964fe.6aa9cc",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 967.9059715270996,
- "y": 537.3870210647583,
- "z": "83799888.3d8488",
+ "x": 981.9268074035645,
+ "y": 542.3766088485718,
+ "z": "192759e2.8ca676",
"wires": [
[
- "7f4d1606.062148"
+ "a43497c1.d28c98"
]
]
},
{
- "id": "7f4d1606.062148",
+ "id": "a43497c1.d28c98",
"type": "set",
"name": "set inputBandwidth",
"xml": "<set>\n<parameter name='prop.wan.inputBandwidth' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />",
"comments": "",
- "x": 1175.2397212982178,
- "y": 531.8481855392456,
- "z": "83799888.3d8488",
+ "x": 1189.2605571746826,
+ "y": 536.8377733230591,
+ "z": "192759e2.8ca676",
"wires": []
},
{
- "id": "18a75045.9bb5e",
+ "id": "f44a56f3.db7c08",
"type": "switchNode",
"name": "switch outputBandwidth",
"xml": "<switch test=\"`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'outputBandwidth'`\">\n",
"comments": "",
"outputs": 1,
- "x": 796.9057731628418,
- "y": 577.3869562149048,
- "z": "83799888.3d8488",
+ "x": 810.9266090393066,
+ "y": 582.3765439987183,
+ "z": "192759e2.8ca676",
"wires": [
[
- "2be3aa98.e7daa6"
+ "6b63ec76.cea694"
]
]
},
{
- "id": "2be3aa98.e7daa6",
+ "id": "6b63ec76.cea694",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 980.905969619751,
- "y": 577.3870649337769,
- "z": "83799888.3d8488",
+ "x": 994.9268054962158,
+ "y": 582.3766527175903,
+ "z": "192759e2.8ca676",
"wires": [
[
- "7e2e3a9b.578594"
+ "9c582c07.4759e"
]
]
},
{
- "id": "7e2e3a9b.578594",
+ "id": "9c582c07.4759e",
"type": "set",
"name": "set outputBandwidth",
"xml": "<set>\n<parameter name='prop.wan.outputBandwidth' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />",
"comments": "",
- "x": 1177.2397441864014,
- "y": 570.8481683731079,
- "z": "83799888.3d8488",
+ "x": 1191.2605800628662,
+ "y": 575.8377561569214,
+ "z": "192759e2.8ca676",
"wires": []
},
{
- "id": "91d20588.adacd8",
+ "id": "b5fed085.d4d7c",
"type": "switchNode",
"name": "switch description",
"xml": "<switch test=\"`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'description'`\">\n",
"comments": "",
"outputs": 1,
- "x": 786.9057273864746,
- "y": 198.387113571167,
- "z": "83799888.3d8488",
+ "x": 800.9265632629395,
+ "y": 203.37670135498047,
+ "z": "192759e2.8ca676",
"wires": [
[
- "8acddcca.d85a2"
+ "92449f78.32a97"
]
]
},
{
- "id": "8acddcca.d85a2",
+ "id": "92449f78.32a97",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 978.9059715270996,
- "y": 199.3871431350708,
- "z": "83799888.3d8488",
+ "x": 992.9268074035645,
+ "y": 204.37673091888428,
+ "z": "192759e2.8ca676",
"wires": [
[
- "f82affc6.722b5"
+ "8982915c.e8181"
]
]
},
{
- "id": "f82affc6.722b5",
+ "id": "8982915c.e8181",
"type": "set",
"name": "set description",
"xml": "<set>\n<parameter name='prop.wan.description' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n",
"comments": "",
- "x": 1129.239974975586,
- "y": 198.84835243225098,
- "z": "83799888.3d8488",
+ "x": 1143.2608108520508,
+ "y": 203.83794021606445,
+ "z": "192759e2.8ca676",
"wires": []
},
{
- "id": "a41eaf2.439f75",
+ "id": "8f7cd129.e628b",
"type": "switchNode",
"name": "switch portNumber",
"xml": "<switch test=\"`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'portNumber'`\">\n",
"comments": "",
"outputs": 1,
- "x": 779.2389717102051,
- "y": 351.0047388076782,
- "z": "83799888.3d8488",
+ "x": 793.2598075866699,
+ "y": 355.9943265914917,
+ "z": "192759e2.8ca676",
"wires": [
[
- "9190cac8.65bcb8"
+ "75d70ce6.dcc884"
]
]
},
{
- "id": "9190cac8.65bcb8",
+ "id": "75d70ce6.dcc884",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 970.239143371582,
- "y": 354.00476837158203,
- "z": "83799888.3d8488",
+ "x": 984.2599792480469,
+ "y": 358.9943561553955,
+ "z": "192759e2.8ca676",
"wires": [
[
- "bc0c9c4f.ffd6c"
+ "15c7df8.ee5e621"
]
]
},
{
- "id": "bc0c9c4f.ffd6c",
+ "id": "15c7df8.ee5e621",
"type": "set",
"name": "set portNumber",
"xml": "<set>\n<parameter name='prop.wan.portNumber' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n",
"comments": "",
- "x": 1124.2394714355469,
- "y": 353.6047830581665,
- "z": "83799888.3d8488",
+ "x": 1138.2603073120117,
+ "y": 358.59437084198,
+ "z": "192759e2.8ca676",
"wires": []
},
{
- "id": "49351eca.09882",
+ "id": "d7c2c346.bb4d6",
"type": "switchNode",
"name": "switch portType",
"xml": "<switch test=\"`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'portType'`\">\n",
"comments": "",
"outputs": 1,
- "x": 780.134090423584,
- "y": 270.97804832458496,
- "z": "83799888.3d8488",
+ "x": 794.1549263000488,
+ "y": 275.96763610839844,
+ "z": "192759e2.8ca676",
"wires": [
[
- "9c7436d2.ff2978"
+ "ca83aa38.707c38"
]
]
},
{
- "id": "9c7436d2.ff2978",
+ "id": "ca83aa38.707c38",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 975.1341781616211,
- "y": 270.97807788848877,
- "z": "83799888.3d8488",
+ "x": 989.1550140380859,
+ "y": 275.96766567230225,
+ "z": "192759e2.8ca676",
"wires": [
[
- "45817322.3ae1fc"
+ "2f419e64.d2b172"
]
]
},
{
- "id": "45817322.3ae1fc",
+ "id": "2f419e64.d2b172",
"type": "set",
"name": "set portType",
"xml": "<set>\n<parameter name='prop.wan.portType' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n",
"comments": "",
- "x": 1122.134506225586,
- "y": 271.57809257507324,
- "z": "83799888.3d8488",
+ "x": 1136.1553421020508,
+ "y": 276.5676803588867,
+ "z": "192759e2.8ca676",
"wires": []
},
{
- "id": "c9e43e20.584a3",
+ "id": "bc53deb3.66dc2",
"type": "set",
"name": "set transportnetworkName",
"xml": "<set>\n<parameter name='prop.wan.transportNetworkName' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />",
"comments": "",
- "x": 1224.0102291107178,
- "y": 496.39741706848145,
- "z": "83799888.3d8488",
+ "x": 1238.0310649871826,
+ "y": 501.3870048522949,
+ "z": "192759e2.8ca676",
"wires": []
},
{
- "id": "878c2a18.4ab5f8",
+ "id": "2040cf67.854b5",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1012.6763229370117,
- "y": 497.93633460998535,
- "z": "83799888.3d8488",
+ "x": 1026.6971588134766,
+ "y": 502.9259223937988,
+ "z": "192759e2.8ca676",
"wires": [
[
- "c9e43e20.584a3"
+ "bc53deb3.66dc2"
]
]
},
{
- "id": "286e48cc.e48988",
+ "id": "e772d25.ba6eb3",
"type": "switchNode",
"name": "switch transportnetworkName",
"xml": "<switch test=\"`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'transportNetworkName'`\">\n",
"comments": "",
"outputs": 1,
- "x": 813.6761474609375,
- "y": 501.9360647201538,
- "z": "83799888.3d8488",
+ "x": 827.6969833374023,
+ "y": 506.9256525039673,
+ "z": "192759e2.8ca676",
"wires": [
[
- "878c2a18.4ab5f8"
+ "2040cf67.854b5"
]
]
},
{
- "id": "d4feaef6.6438f",
+ "id": "638cf29c.12828c",
"type": "switchNode",
"name": "switch id",
"xml": "<switch test=\"`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'id'`\">\n",
"comments": "",
"outputs": 1,
- "x": 772.0097541809082,
- "y": 132.39711570739746,
- "z": "83799888.3d8488",
+ "x": 786.030590057373,
+ "y": 137.38670349121094,
+ "z": "192759e2.8ca676",
"wires": [
[
- "c4e97c71.2edee"
+ "24f19492.f009fc"
]
]
},
{
- "id": "c4e97c71.2edee",
+ "id": "24f19492.f009fc",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 973.009895324707,
- "y": 130.3971462249756,
- "z": "83799888.3d8488",
+ "x": 987.0307312011719,
+ "y": 135.38673400878906,
+ "z": "192759e2.8ca676",
"wires": [
[
- "fa0065d4.357e68"
+ "a4b229b.62831d8"
]
]
},
{
- "id": "fa0065d4.357e68",
+ "id": "a4b229b.62831d8",
"type": "set",
"name": "set id",
"xml": "<set>\n<parameter name='prop.wan.id' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n",
"comments": "",
- "x": 1115.0102424621582,
- "y": 125.99725341796875,
- "z": "83799888.3d8488",
+ "x": 1129.031078338623,
+ "y": 130.98684120178223,
+ "z": "192759e2.8ca676",
"wires": []
},
{
- "id": "60fcaabc.ca5bf4",
+ "id": "2d9d0a07.21b996",
"type": "switchNode",
"name": "switch devicePortId",
"xml": "<switch test=\"`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'devicePortId'`\">\n",
"comments": "",
"outputs": 1,
- "x": 782.0104598999023,
- "y": 622.010443687439,
- "z": "83799888.3d8488",
+ "x": 796.0312957763672,
+ "y": 627.0000314712524,
+ "z": "192759e2.8ca676",
"wires": [
[
- "642147fe.576a98"
+ "88000960.246438"
]
]
},
{
- "id": "642147fe.576a98",
+ "id": "88000960.246438",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 981.0106258392334,
- "y": 616.0105199813843,
- "z": "83799888.3d8488",
+ "x": 995.0314617156982,
+ "y": 621.0001077651978,
+ "z": "192759e2.8ca676",
"wires": [
[
- "fd4863f3.2dd12"
+ "fabf24be.4a2ae8"
]
]
},
{
- "id": "fd4863f3.2dd12",
+ "id": "fabf24be.4a2ae8",
"type": "set",
"name": "set devicePortId",
"xml": "<set>\n<parameter name='prop.wan.devicePortId' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />",
"comments": "",
- "x": 1180.3443698883057,
- "y": 615.4716176986694,
- "z": "83799888.3d8488",
+ "x": 1194.3652057647705,
+ "y": 620.4612054824829,
+ "z": "192759e2.8ca676",
"wires": []
},
{
- "id": "d17b4c90.52ccd",
+ "id": "f4e0170c.c926f8",
"type": "switchNode",
"name": "switch wanPortId",
"xml": "<switch test=\"`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'wanPortId'`\">\n",
"comments": "",
"outputs": 1,
- "x": 772.0104598999023,
- "y": 658.0104455947876,
- "z": "83799888.3d8488",
+ "x": 786.0312957763672,
+ "y": 663.0000333786011,
+ "z": "192759e2.8ca676",
"wires": [
[
- "f3f82bbf.a22db8"
+ "6611a8d1.372738"
]
]
},
{
- "id": "f3f82bbf.a22db8",
+ "id": "6611a8d1.372738",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 983.0106239318848,
- "y": 651.0105228424072,
- "z": "83799888.3d8488",
+ "x": 997.0314598083496,
+ "y": 656.0001106262207,
+ "z": "192759e2.8ca676",
"wires": [
[
- "9cec917d.42e1c"
+ "148c330d.e6ff2d"
]
]
},
{
- "id": "9cec917d.42e1c",
+ "id": "148c330d.e6ff2d",
"type": "set",
"name": "set wanPortId",
"xml": "<set>\n<parameter name='prop.wan.wanPortId' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />",
"comments": "",
- "x": 1180.3443698883057,
- "y": 655.4716176986694,
- "z": "83799888.3d8488",
+ "x": 1194.3652057647705,
+ "y": 660.4612054824829,
+ "z": "192759e2.8ca676",
"wires": []
},
{
- "id": "e6f5b113.db834",
+ "id": "1bb7d8d3.393ca7",
"type": "set",
"name": "set apn",
"xml": "<set>\n<parameter name='prop.wan.apn-name' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />\n",
"comments": "",
- "x": 1121.0000076293945,
- "y": 310.01041412353516,
- "z": "83799888.3d8488",
+ "x": 1135.0208435058594,
+ "y": 315.00000190734863,
+ "z": "192759e2.8ca676",
"wires": []
},
{
- "id": "2a13a6a0.eb644a",
+ "id": "ec6279c6.c6c888",
"type": "switchNode",
"name": "switch apn",
"xml": "<switch test=\"`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'apn'`\">\n",
"comments": "",
"outputs": 1,
- "x": 770.0000076293945,
- "y": 309.01041412353516,
- "z": "83799888.3d8488",
+ "x": 784.0208435058594,
+ "y": 314.00000190734863,
+ "z": "192759e2.8ca676",
"wires": [
[
- "cd547003.96af2"
+ "48104b80.431324"
]
]
},
{
- "id": "cd547003.96af2",
+ "id": "48104b80.431324",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 965.0000953674316,
- "y": 309.01044368743896,
- "z": "83799888.3d8488",
+ "x": 979.0209312438965,
+ "y": 314.00003147125244,
+ "z": "192759e2.8ca676",
"wires": [
[
- "e6f5b113.db834"
+ "1bb7d8d3.393ca7"
]
]
},
{
- "id": "19ce9dfd.f8a2f2",
+ "id": "7c9c948.6f89d6c",
"type": "switchNode",
"name": "switch publicIP",
"xml": "<switch test=\"`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'publicIP'`\">\n",
"comments": "",
"outputs": 1,
- "x": 768.0000305175781,
- "y": 701.0104351043701,
- "z": "83799888.3d8488",
+ "x": 782.020866394043,
+ "y": 706.0000228881836,
+ "z": "192759e2.8ca676",
"wires": [
[
- "fadc805c.91335"
+ "bd2c91e6.2d3bd"
]
]
},
{
- "id": "fadc805c.91335",
+ "id": "bd2c91e6.2d3bd",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 977.0002021789551,
- "y": 696.010516166687,
- "z": "83799888.3d8488",
+ "x": 991.0210380554199,
+ "y": 701.0001039505005,
+ "z": "192759e2.8ca676",
"wires": [
[
- "bda8c6bd.b7ac88"
+ "432b35f4.5934dc"
]
]
},
{
- "id": "bda8c6bd.b7ac88",
+ "id": "432b35f4.5934dc",
"type": "set",
"name": "set publicIP",
"xml": "<set>\n<parameter name='prop.wan.publicIP' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />",
"comments": "",
- "x": 1182.3338661193848,
- "y": 694.4716167449951,
- "z": "83799888.3d8488",
+ "x": 1196.3547019958496,
+ "y": 699.4612045288086,
+ "z": "192759e2.8ca676",
"wires": []
},
{
- "id": "a399cdca.37b7a",
+ "id": "97c178d3.f58628",
"type": "switchNode",
"name": "switch IPMode",
"xml": "<switch test=\"`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'IPMode'`\">\n",
"comments": "",
"outputs": 1,
- "x": 778.0000305175781,
- "y": 742.0104360580444,
- "z": "83799888.3d8488",
+ "x": 792.020866394043,
+ "y": 747.0000238418579,
+ "z": "192759e2.8ca676",
"wires": [
[
- "728b6eda.0249c"
+ "12f9c78d.14c828"
]
]
},
{
- "id": "728b6eda.0249c",
+ "id": "12f9c78d.14c828",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 977.0002822875977,
- "y": 741.0105991363525,
- "z": "83799888.3d8488",
+ "x": 991.0211181640625,
+ "y": 746.000186920166,
+ "z": "192759e2.8ca676",
"wires": [
[
- "43404525.61dcfc"
+ "6609b7c6.fc8a48"
]
]
},
{
- "id": "43404525.61dcfc",
+ "id": "6609b7c6.fc8a48",
"type": "set",
"name": "set IPMode",
"xml": "<set>\n<parameter name='prop.wan.IPMode' value='`$vf-module-request-input.vf-module-input-parameters.param[$idx].value`' />",
"comments": "",
- "x": 1188.3339176177979,
- "y": 739.471586227417,
- "z": "83799888.3d8488",
+ "x": 1202.3547534942627,
+ "y": 744.4611740112305,
+ "z": "192759e2.8ca676",
"wires": []
}
] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.json
index d02748ca..4e36776d 100644
--- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.json
+++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.json
@@ -1,20 +1,20 @@
[
{
- "id": "66d617ca.7974e8",
+ "id": "7366a05a.d05f2",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 166.00390625,
- "y": 42.000000953674316,
- "z": "487c8439.e79e0c",
+ "x": 188.03125,
+ "y": 47.000000953674316,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "ec960184.8c747"
+ "e3bd5c4c.51008"
]
]
},
{
- "id": "ec960184.8c747",
+ "id": "e3bd5c4c.51008",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -22,1102 +22,1117 @@
"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": 245.28961181640625,
- "y": 104.23811054229736,
- "z": "487c8439.e79e0c",
+ "x": 267.31695556640625,
+ "y": 109.23811054229736,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "b566667e.9703e8"
+ "1596b30b.8477dd"
]
]
},
{
- "id": "b566667e.9703e8",
+ "id": "1596b30b.8477dd",
"type": "method",
"name": "method sdwan-vf-operation-device-activate",
"xml": "<method rpc='sdwan-vf-operation-device-activate' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 257.00390625,
- "y": 198.58634281158447,
- "z": "487c8439.e79e0c",
+ "x": 279.03125,
+ "y": 203.58634281158447,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "48de3c23.140fd4"
+ "f1b88e0f.347c2"
]
]
},
{
- "id": "48de3c23.140fd4",
+ "id": "f1b88e0f.347c2",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 243.6705780029297,
- "y": 383.6667146682739,
- "z": "487c8439.e79e0c",
+ "x": 265.6979217529297,
+ "y": 388.6667146682739,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "9b8b15e3.9d27d8",
- "22c945bf.bff90a",
- "7a7ac9c1.d1c088",
- "3bb5998d.d31786",
- "6b9873c1.ed3cac",
- "496cf1c2.09334",
- "ab75124f.85f25",
- "b9df134a.f3234",
- "ad243b23.84cc68",
- "d63a100a.4fb85",
- "fba80bcb.537e38",
- "45830f23.d0369",
- "d2ac70a8.01bbc",
- "104a605b.c517a",
- "2b5c22d1.d99c1e",
- "673290e1.c0902",
- "4d09bded.34c944",
- "d9f0bb67.a6d688"
+ "bfdad516.55b728",
+ "c5688842.c82648",
+ "43050414.43a59c",
+ "18e2b9c5.c15ab6",
+ "96bc0bad.d1b6d8",
+ "1fac2e8e.1cd261",
+ "ec973dfa.2bb02",
+ "c8253bec.651ed8",
+ "6a3f667b.faa1c8",
+ "6e068351.b1d5ac",
+ "bad73f6e.5a9bd",
+ "c48e860.5ae0278",
+ "eb6bd181.9cba1",
+ "dcfcf0d8.7769b",
+ "bb4fec85.4dd7b",
+ "79ce744.767cc8c",
+ "503505b2.fa936c",
+ "f2facc44.32ff4"
]
]
},
{
- "id": "22c945bf.bff90a",
+ "id": "c5688842.c82648",
"type": "for",
"name": "for each vnf",
"xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 589.035270690918,
- "y": 278.2691421508789,
- "z": "487c8439.e79e0c",
+ "x": 594.0626163482666,
+ "y": 256.26913380622864,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "936d4e00.f8f0f"
+ "30e4aafc.b14b26"
]
]
},
{
- "id": "9b8b15e3.9d27d8",
+ "id": "bfdad516.55b728",
"type": "switchNode",
"name": "switch vnf_length",
"xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 594.0039253234863,
- "y": 217.0000114440918,
- "z": "487c8439.e79e0c",
+ "x": 616.0312690734863,
+ "y": 222.0000114440918,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "e59760b9.c5416"
+ "46627c7a.59d634"
]
]
},
{
- "id": "e59760b9.c5416",
+ "id": "46627c7a.59d634",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 774.00390625,
- "y": 216.00000095367432,
- "z": "487c8439.e79e0c",
+ "x": 796.03125,
+ "y": 221.00000095367432,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "76bc4811.c948a8"
+ "b77e7e6.92ec98"
]
]
},
{
- "id": "76bc4811.c948a8",
+ "id": "b77e7e6.92ec98",
"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": 923.4326324462891,
- "y": 217.14291858673096,
- "z": "487c8439.e79e0c",
+ "x": 945.4599761962891,
+ "y": 222.14291858673096,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "936d4e00.f8f0f",
+ "id": "30e4aafc.b14b26",
"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": 812.0039215087891,
- "y": 279.0000071525574,
- "z": "487c8439.e79e0c",
+ "x": 817.0312671661377,
+ "y": 256.9999988079071,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "70d6072a.9e11d8"
+ "507916d8.8412f8"
]
]
},
{
- "id": "70d6072a.9e11d8",
+ "id": "507916d8.8412f8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1027.00390625,
- "y": 277.0000009536743,
- "z": "487c8439.e79e0c",
+ "x": 1032.0312519073486,
+ "y": 254.99999260902405,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "ea0a9e13.79435"
+ "1abf62f5.2b1d9d"
]
]
},
{
- "id": "ea0a9e13.79435",
+ "id": "1abf62f5.2b1d9d",
"type": "set",
"name": "set vnf-index",
"xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
"comments": "",
- "x": 1191.00390625,
- "y": 272.0000009536743,
- "z": "487c8439.e79e0c",
+ "x": 1196.0312519073486,
+ "y": 249.99999260902405,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "7a7ac9c1.d1c088",
+ "id": "43050414.43a59c",
"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": 639.0039138793945,
- "y": 349.99999141693115,
- "z": "487c8439.e79e0c",
+ "x": 661.0312576293945,
+ "y": 354.99999141693115,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "f88f2a92.99e738",
- "cbbc80b7.cd82",
- "d281c228.3bb21"
+ "e26b2607.2a2748",
+ "a2e81bf7.01bb98",
+ "41da8842.556048"
]
]
},
{
- "id": "cbbc80b7.cd82",
+ "id": "a2e81bf7.01bb98",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 861.00390625,
- "y": 384.0000009536743,
- "z": "487c8439.e79e0c",
+ "x": 883.03125,
+ "y": 389.0000009536743,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "3e09921b.36399e"
+ "837a0388.6ec21"
]
]
},
{
- "id": "f88f2a92.99e738",
+ "id": "e26b2607.2a2748",
"type": "outcome",
"name": "0",
"xml": "<outcome value='0'>\n",
"comments": "",
"outputs": 1,
- "x": 866.0039024353027,
- "y": 331,
- "z": "487c8439.e79e0c",
+ "x": 888.0312461853027,
+ "y": 336,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "3e09921b.36399e"
+ "837a0388.6ec21"
]
]
},
{
- "id": "3e09921b.36399e",
+ "id": "837a0388.6ec21",
"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": 1024.00390625,
- "y": 344.0000009536743,
- "z": "487c8439.e79e0c",
+ "x": 1046.03125,
+ "y": 349.0000009536743,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "d281c228.3bb21",
+ "id": "41da8842.556048",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 861.00390625,
- "y": 445.0000009536743,
- "z": "487c8439.e79e0c",
+ "x": 883.03125,
+ "y": 450.0000009536743,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "8e3c57a1.dadbf8"
+ "1f4e644a.d7030c"
]
]
},
{
- "id": "8c0936c1.7617c8",
+ "id": "7a6fd972.23f808",
"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": 1215.003921508789,
- "y": 443.0000149011612,
- "z": "487c8439.e79e0c",
+ "x": 1237.031265258789,
+ "y": 448.0000149011612,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "8e3c57a1.dadbf8",
+ "id": "1f4e644a.d7030c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1022.0039520263672,
- "y": 441.99999237060547,
- "z": "487c8439.e79e0c",
+ "x": 1044.0312957763672,
+ "y": 446.99999237060547,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "8c0936c1.7617c8",
- "28692055.9016f",
- "a8eb8c24.f4a0f"
+ "7a6fd972.23f808",
+ "bc92f3b3.aa654",
+ "67e2e66a.9bd638"
]
]
},
{
- "id": "28692055.9016f",
+ "id": "bc92f3b3.aa654",
"type": "for",
"name": "for each existing vf-index",
"xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1234.003890991211,
- "y": 495.99999141693115,
- "z": "487c8439.e79e0c",
+ "x": 1256.031234741211,
+ "y": 500.99999141693115,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "73f639ab.d244b8"
+ "af0c0219.f27c4"
]
]
},
{
- "id": "73f639ab.d244b8",
+ "id": "af0c0219.f27c4",
"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": 1477.00390625,
- "y": 491.0000009536743,
- "z": "487c8439.e79e0c",
+ "x": 1499.03125,
+ "y": 496.0000009536743,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "fdba254c.4c6898"
+ "c50413ad.70d3b"
]
]
},
{
- "id": "fdba254c.4c6898",
+ "id": "c50413ad.70d3b",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1675.0039348602295,
- "y": 478.00000762939453,
- "z": "487c8439.e79e0c",
+ "x": 1697.0312786102295,
+ "y": 483.00000762939453,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "e324ecda.ee495"
+ "c8462944.d3d558"
]
]
},
{
- "id": "e324ecda.ee495",
+ "id": "c8462944.d3d558",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1827.00390625,
- "y": 480.0000009536743,
- "z": "487c8439.e79e0c",
+ "x": 1849.03125,
+ "y": 485.0000009536743,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "a7ad0572.bfda18",
- "1d9eaeb3.112c31",
- "96aaf259.9b5e1"
+ "e39cc1dd.da5e8",
+ "3673863c.1c835a",
+ "ccfc5c32.59e5f"
]
]
},
{
- "id": "a7ad0572.bfda18",
+ "id": "e39cc1dd.da5e8",
"type": "set",
"name": "set tmp.vidx and ctx.vf-module-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": 2076.004005432129,
- "y": 474.0000033378601,
- "z": "487c8439.e79e0c",
+ "x": 2102.0314903259277,
+ "y": 413.0000123977661,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "1d9eaeb3.112c31",
+ "id": "3673863c.1c835a",
"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": 2065.004005432129,
- "y": 525.000036239624,
- "z": "487c8439.e79e0c",
+ "x": 2086.0313682556152,
+ "y": 474.0000581741333,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "96aaf259.9b5e1",
+ "id": "ccfc5c32.59e5f",
"type": "call",
"name": "call sdwan-get-vf-module-device-param",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-device-param' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 2096.0042114257812,
- "y": 572.0000371932983,
- "z": "487c8439.e79e0c",
+ "x": 2118.0315475463867,
+ "y": 531.0000734329224,
+ "z": "b6c1c029.17cd1",
"wires": [
[]
]
},
{
- "id": "6b9873c1.ed3cac",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Provided alloted resource length\"/>\n<parameter name=\"field3\" value=\"'parameters length'\"/>\n<parameter name=\"field4\" value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`'/>\n\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 554.0039806365967,
- "y": 576.0000066757202,
- "z": "487c8439.e79e0c",
- "wires": [
- []
- ]
- },
- {
- "id": "3bb5998d.d31786",
+ "id": "18e2b9c5.c15ab6",
"type": "switchNode",
"name": "switch tmp.vidx ",
"xml": "<switch test=\"`$tmp.vidx`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 578.0351257324219,
- "y": 523.016074180603,
- "z": "487c8439.e79e0c",
+ "x": 598.0624961853027,
+ "y": 489.0160655975342,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "68156871.093ed8"
+ "8c2388b0.edeb08"
]
]
},
{
- "id": "68156871.093ed8",
+ "id": "8c2388b0.edeb08",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 725.4637680053711,
- "y": 522.5874843597412,
- "z": "487c8439.e79e0c",
+ "x": 745.491138458252,
+ "y": 488.58747577667236,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "749cf44f.03bbfc"
+ "9db89e13.5611a"
]
]
},
{
- "id": "749cf44f.03bbfc",
+ "id": "9db89e13.5611a",
"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": 874.8924942016602,
- "y": 523.7304019927979,
- "z": "487c8439.e79e0c",
+ "x": 894.919864654541,
+ "y": 489.730393409729,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "b9df134a.f3234",
+ "id": "ec973dfa.2bb02",
"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": 585.0351448059082,
- "y": 625.0160593986511,
- "z": "487c8439.e79e0c",
+ "x": 603.0625228881836,
+ "y": 535.016065120697,
+ "z": "b6c1c029.17cd1",
"wires": [
[]
]
},
{
- "id": "fa016c6e.8bda5",
+ "id": "c738eb6c.67a768",
"type": "comment",
"name": "make sure this VNF doesn't exist already",
"info": "",
"comments": "",
- "x": 1307.4205932617188,
- "y": 1212.2502059936523,
- "z": "487c8439.e79e0c",
+ "x": 1343.4479675292969,
+ "y": 984.2502048015594,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "2b5c22d1.d99c1e",
+ "id": "eb6bd181.9cba1",
"type": "execute",
"name": "execute RestApiCallNode Create Devcie Instance",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-device.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v3/devices'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"deviceResp\"/>\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": 673.0080718994141,
- "y": 1216.424148797989,
- "z": "487c8439.e79e0c",
+ "x": 692.0354614257812,
+ "y": 990.4241485595703,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "9ca787d1.dfba38",
- "a187483b.9fc538"
+ "5fa43c53.6045a4",
+ "6960119.9f640f"
]
]
},
{
- "id": "69b97572.5eed5c",
+ "id": "faa94bad.fa2558",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1074.6745147705078,
- "y": 1186.3128004074097,
- "z": "487c8439.e79e0c",
+ "x": 1110.701889038086,
+ "y": 958.3127992153168,
+ "z": "b6c1c029.17cd1",
"wires": [
[]
]
},
{
- "id": "d59ec52f.21c8f8",
+ "id": "706df2c3.ee526c",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Activate Device rest api\" />\n",
"comments": "",
- "x": 1076.1190948486328,
- "y": 1236.868332862854,
- "z": "487c8439.e79e0c",
+ "x": 1112.146469116211,
+ "y": 1008.8683316707611,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "a187483b.9fc538",
+ "id": "6960119.9f640f",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 923.1189384460449,
- "y": 1239.8682870864868,
- "z": "487c8439.e79e0c",
+ "x": 959.146312713623,
+ "y": 1011.8682858943939,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "d59ec52f.21c8f8"
+ "706df2c3.ee526c"
]
]
},
{
- "id": "9ca787d1.dfba38",
+ "id": "5fa43c53.6045a4",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 922.5634536743164,
- "y": 1183.5349988937378,
- "z": "487c8439.e79e0c",
+ "x": 958.5908279418945,
+ "y": 955.5349977016449,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "69b97572.5eed5c"
+ "faa94bad.fa2558"
]
]
},
{
- "id": "104a605b.c517a",
- "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": 590.0001373291016,
- "y": 1160.5913829803467,
- "z": "487c8439.e79e0c",
- "wires": [
- []
- ]
- },
- {
- "id": "ab75124f.85f25",
+ "id": "1fac2e8e.1cd261",
"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": 552.0041103363037,
- "y": 1641.5002851486206,
- "z": "487c8439.e79e0c",
+ "x": 588.0314846038818,
+ "y": 1413.5002839565277,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "496cf1c2.09334",
+ "id": "96bc0bad.d1b6d8",
"type": "set",
"name": "copy input data to service data",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$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": 597.3373680114746,
- "y": 1531.8336429595947,
- "z": "487c8439.e79e0c",
+ "x": 633.3647422790527,
+ "y": 1303.8336417675018,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "5763663a.274778",
+ "id": "503505b2.fa936c",
"type": "save",
"name": "update deviceInstance configuration in AAI",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id' >\n<parameter name='device-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<!--parameter name='device-id' value='`$deviceResp.success[0].id`' /-->\n<parameter name='operational-status' value='Active' />\n",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id' >\n<parameter name='device-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<parameter name='operational-status' value='Active' />\n",
"comments": "",
"outputs": 1,
- "x": 632.6708755493164,
- "y": 1584.722743988037,
- "z": "487c8439.e79e0c",
+ "x": 680.6982574462891,
+ "y": 1352.723069190979,
+ "z": "b6c1c029.17cd1",
"wires": [
[]
]
},
{
- "id": "fba80bcb.537e38",
+ "id": "6e068351.b1d5ac",
"type": "set",
"name": "set deviceId 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=\"deviceId\" />\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='`$deviceResp.success[0].id`' />\n",
"comments": "",
- "x": 593.6709938049316,
- "y": 1315.7538223266602,
- "z": "487c8439.e79e0c",
+ "x": 629.6983680725098,
+ "y": 1087.7538211345673,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "ad243b23.84cc68",
+ "id": "c8253bec.651ed8",
"type": "set",
"name": "set vf-module-object-path",
"xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $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": 576.0041046142578,
- "y": 1474.2504119873047,
- "z": "487c8439.e79e0c",
+ "x": 612.0314788818359,
+ "y": 1246.2504107952118,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "d9f0bb67.a6d688",
+ "id": "79ce744.767cc8c",
"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": 620.0086822509766,
- "y": 725.8936567306519,
- "z": "487c8439.e79e0c",
+ "x": 634.0360374450684,
+ "y": 583.8936786651611,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "24c130a1.06544",
- "1c6d2fc3.9d47f",
- "d711f941.efb278"
+ "27c395d1.cc99aa",
+ "a15c5f02.651f",
+ "8a9a7c18.8150d"
]
]
},
{
- "id": "24c130a1.06544",
+ "id": "27c395d1.cc99aa",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 865.008659362793,
- "y": 668.8936103284359,
- "z": "487c8439.e79e0c",
+ "x": 856.0360660552979,
+ "y": 542.8936786651611,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "e6538e05.e2e95"
+ "fcc107ae.11a1d8"
]
]
},
{
- "id": "1c6d2fc3.9d47f",
+ "id": "a15c5f02.651f",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 868.499626159668,
- "y": 716.4676459729671,
- "z": "487c8439.e79e0c",
+ "x": 859.5270328521729,
+ "y": 590.4677143096924,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "8c8ed57c.0ce668"
+ "a0280dad.4672"
]
]
},
{
- "id": "d711f941.efb278",
+ "id": "8a9a7c18.8150d",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 863.832633972168,
- "y": 757.8009589612484,
- "z": "487c8439.e79e0c",
+ "x": 854.8600406646729,
+ "y": 631.8010272979736,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "37c7dcba.fd9d34"
+ "59e30e0a.ba719"
]
]
},
{
- "id": "e6538e05.e2e95",
+ "id": "fcc107ae.11a1d8",
"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": 1062.5087203979492,
- "y": 656.8936103284359,
- "z": "487c8439.e79e0c",
+ "x": 1053.536127090454,
+ "y": 530.8936786651611,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "8c8ed57c.0ce668",
+ "id": "a0280dad.4672",
"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": 1045.0710372924805,
- "y": 704.7533820569515,
- "z": "487c8439.e79e0c",
+ "x": 1036.0984439849854,
+ "y": 578.7534503936768,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "37c7dcba.fd9d34",
+ "id": "59e30e0a.ba719",
"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": 1051.6051902770996,
- "y": 753.24015173316,
- "z": "487c8439.e79e0c",
+ "x": 1042.6325969696045,
+ "y": 627.2402200698853,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "4d09bded.34c944",
+ "id": "bb4fec85.4dd7b",
"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": 628.008659362793,
- "y": 833.893609046936,
- "z": "487c8439.e79e0c",
+ "x": 634.0360565185547,
+ "y": 691.8935861587524,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "68b0f825.949708",
- "3ec68637.c0dbea"
+ "e3fdea02.bef5f8",
+ "510fc414.2ace1c"
]
]
},
{
- "id": "68b0f825.949708",
+ "id": "e3fdea02.bef5f8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 867.008731842041,
- "y": 811.8936405181885,
- "z": "487c8439.e79e0c",
+ "x": 873.0361289978027,
+ "y": 669.8936176300049,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "ea7ef978.26d9b8"
+ "59b687d7.302ac8"
]
]
},
{
- "id": "3ec68637.c0dbea",
+ "id": "510fc414.2ace1c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 859.258731842041,
- "y": 865.5365238189697,
- "z": "487c8439.e79e0c",
+ "x": 865.2861289978027,
+ "y": 723.5365009307861,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "6b38fd7f.9697a4"
+ "7a4deae6.6f0ce4"
]
]
},
{
- "id": "ea7ef978.26d9b8",
+ "id": "59b687d7.302ac8",
"type": "set",
"name": "set token-id",
"xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
"comments": "",
- "x": 1017.008659362793,
- "y": 812.893609046936,
- "z": "487c8439.e79e0c",
+ "x": 1023.0360565185547,
+ "y": 670.8935861587524,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "6b38fd7f.9697a4",
+ "id": "7a4deae6.6f0ce4",
"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": 1012.008731842041,
- "y": 865.286584854126,
- "z": "487c8439.e79e0c",
+ "x": 1018.0361289978027,
+ "y": 723.2865619659424,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "d2ac70a8.01bbc",
+ "id": "c48e860.5ae0278",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 549.7587051391602,
- "y": 1079.8937320709229,
- "z": "487c8439.e79e0c",
+ "x": 573.7860565185547,
+ "y": 900.8937749862671,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "c50d0af9.6eaaa8"
+ "bc9e7395.79f5e"
]
]
},
{
- "id": "c50d0af9.6eaaa8",
+ "id": "bc9e7395.79f5e",
"type": "execute",
"name": "execute RestApiCallNode Create network orchestration",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-network-orchestration.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"orchestration-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": 868.2587966918945,
- "y": 1082.8938932418823,
- "z": "487c8439.e79e0c",
+ "x": 892.2861480712891,
+ "y": 903.8939361572266,
+ "z": "b6c1c029.17cd1",
"wires": [
[]
]
},
{
- "id": "673290e1.c0902",
+ "id": "dcfcf0d8.7769b",
"type": "get-resource",
"name": "get-resource service-subscription",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data\">\n",
"comments": "",
"outputs": 1,
- "x": 604.0802001953125,
- "y": 984.5722246170044,
- "z": "487c8439.e79e0c",
+ "x": 628.107551574707,
+ "y": 805.5722675323486,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "3dede820.fe1e48",
- "221b4119.4d74ce"
+ "1d2a1174.f60a5f",
+ "af67f570.499af8"
]
]
},
{
- "id": "a417e40c.ac4638",
+ "id": "14d246ea.4d18f9",
"type": "switchNode",
"name": "switch temp-ub-sub-account-id",
"xml": "<switch test='`$tmp.AnAI-data.temp-ub-sub-account-id`'>\n",
"comments": "",
"outputs": 1,
- "x": 1016.0802917480469,
- "y": 949.3223056793213,
- "z": "487c8439.e79e0c",
+ "x": 1040.1076431274414,
+ "y": 770.3223485946655,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "d1aef225.461ff",
- "30bdca8a.d90ec6"
+ "a01e54d0.c0ef88",
+ "8e84ac75.03435"
]
]
},
{
- "id": "d1aef225.461ff",
+ "id": "a01e54d0.c0ef88",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>",
"comments": "",
"outputs": 1,
- "x": 1208.794750213623,
- "y": 923.322338104248,
- "z": "487c8439.e79e0c",
+ "x": 1232.8221015930176,
+ "y": 744.3223810195923,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "b031c826.3fa048"
+ "5b46bfcb.e107"
]
]
},
{
- "id": "30bdca8a.d90ec6",
+ "id": "8e84ac75.03435",
"type": "other",
"name": "Other",
"xml": "<outcome value='Other'>",
"comments": "",
"outputs": 1,
- "x": 1209.080307006836,
- "y": 978.3223094940186,
- "z": "487c8439.e79e0c",
+ "x": 1233.1076583862305,
+ "y": 799.3223524093628,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "85a88d68.7da4e"
+ "f1e78a9c.989338"
]
]
},
{
- "id": "927bbae7.3f69d8",
+ "id": "305c6a3e.5caf76",
"type": "set",
"name": "set prop.tenant-id",
"xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data.temp-ub-sub-account-id`' />\n",
"comments": "",
- "x": 1456.5088996887207,
- "y": 1063.4651098251343,
- "z": "487c8439.e79e0c",
+ "x": 1480.5362510681152,
+ "y": 884.4651527404785,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "b031c826.3fa048",
+ "id": "5b46bfcb.e107",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1348.2586479187012,
- "y": 923.6436066627502,
- "z": "487c8439.e79e0c",
+ "x": 1372.2859992980957,
+ "y": 744.6436495780945,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "e230776c.5a9d58",
- "3aed4c7a.4aaa14",
- "be32cece.2100a",
- "e41ff38c.c7009",
- "93c1362e.aa2c78",
- "a9cddfc0.c31fc",
- "7328f02d.f9128"
+ "e65ad869.b6a738",
+ "33daccfa.fa4ad4",
+ "a292b1f1.50e1",
+ "89d28fc6.070cc",
+ "5b1692a.ed07e6c",
+ "628cc8d7.dc94c8",
+ "306fdb54.fea144"
]
]
},
{
- "id": "e41ff38c.c7009",
+ "id": "89d28fc6.070cc",
"type": "set",
"name": "set prop.customer-id",
"xml": "<set>\n<parameter name='prop.customer-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.global-customer-id`' />\n",
"comments": "",
- "x": 1559.901756286621,
- "y": 734.2151670455933,
- "z": "487c8439.e79e0c",
+ "x": 1583.9291076660156,
+ "y": 555.2152099609375,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "e230776c.5a9d58",
+ "id": "e65ad869.b6a738",
"type": "execute",
"name": "execute RestApiCallNode Create tenant",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-tenant.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v2/baseservice/tenants'`\" />\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=\"tenant-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": 1618.9015731811523,
- "y": 864.7864580154419,
- "z": "487c8439.e79e0c",
+ "x": 1642.9289245605469,
+ "y": 685.7865009307861,
+ "z": "b6c1c029.17cd1",
"wires": [
[]
]
},
{
- "id": "3aed4c7a.4aaa14",
+ "id": "33daccfa.fa4ad4",
"type": "set",
"name": "set prop.tenant-id",
"xml": "<set>\n<parameter name='prop.tenant-id' value='`$tenant-result.data.tenantId`' />\n",
"comments": "",
- "x": 1561.7588653564453,
- "y": 962.6436986923218,
- "z": "487c8439.e79e0c",
+ "x": 1585.7862167358398,
+ "y": 783.643741607666,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "be32cece.2100a",
+ "id": "a292b1f1.50e1",
"type": "execute",
"name": "execute RestApiCallNode Create tenant auth",
"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/campus/v2/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\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=\"tenant-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": 1637.2588348388672,
- "y": 1013.3937277793884,
- "z": "487c8439.e79e0c",
+ "x": 1661.2861862182617,
+ "y": 834.3937706947327,
+ "z": "b6c1c029.17cd1",
"wires": [
[]
]
},
{
- "id": "93c1362e.aa2c78",
+ "id": "5b1692a.ed07e6c",
"type": "get-resource",
"name": "update-resource customer-id in service-subscription",
"xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.global-customer-id'>\n<parameter name='temp-ub-sub-account-id' value='`$tenant-result.data.tenantId`' />\n<!--parameter name='temp-ub-sub-account-id' value='`$prop.customer-id`' /-->\n\n\n",
"comments": "",
"outputs": 1,
- "x": 1660.1873016357422,
- "y": 915.7865858078003,
- "z": "487c8439.e79e0c",
+ "x": 1684.2146530151367,
+ "y": 736.7866287231445,
+ "z": "b6c1c029.17cd1",
"wires": [
[]
]
},
{
- "id": "3dede820.fe1e48",
+ "id": "1d2a1174.f60a5f",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 814.5800628662109,
- "y": 957.3182830810547,
- "z": "487c8439.e79e0c",
+ "x": 838.6074142456055,
+ "y": 778.3183259963989,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "a417e40c.ac4638"
+ "14d246ea.4d18f9"
]
]
},
{
- "id": "221b4119.4d74ce",
+ "id": "af67f570.499af8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 808.2586517333984,
- "y": 1009.5325946807861,
- "z": "487c8439.e79e0c",
+ "x": 832.286003112793,
+ "y": 830.5326375961304,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "13b27219.75f72e"
+ "10c51d46.007b83"
]
]
},
{
- "id": "13b27219.75f72e",
+ "id": "10c51d46.007b83",
"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": 961.0086517333984,
- "y": 1009.2826557159424,
- "z": "487c8439.e79e0c",
+ "x": 985.036003112793,
+ "y": 830.2826986312866,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "85a88d68.7da4e",
+ "id": "f1e78a9c.989338",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1267.7310638427734,
- "y": 1061.4693012237549,
- "z": "487c8439.e79e0c",
+ "x": 1291.758415222168,
+ "y": 882.4693441390991,
+ "z": "b6c1c029.17cd1",
"wires": [
[
- "927bbae7.3f69d8",
- "cc5300b4.c716d"
+ "305c6a3e.5caf76",
+ "f8f4d633.b36da8"
]
]
},
{
- "id": "cc5300b4.c716d",
+ "id": "f8f4d633.b36da8",
"type": "execute",
"name": "execute RestApiCallNode Create tenant auth",
"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/campus/v2/baseservice/tenants/authorization/' + $prop.tenant-id`\" />\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=\"tenant-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": 1539.1596603393555,
- "y": 1110.0407037734985,
- "z": "487c8439.e79e0c",
+ "x": 1563.18701171875,
+ "y": 931.0407466888428,
+ "z": "b6c1c029.17cd1",
"wires": [
[]
]
},
{
- "id": "a9cddfc0.c31fc",
+ "id": "628cc8d7.dc94c8",
"type": "set",
"name": "set prop.userAccount",
"xml": "<set>\n<parameter name='prop.userAccount' value='`$tmp.userAccountEmail`' />\n<parameter name='prop.userEmail' value='`$tmp.userAccountEmail`' />",
"comments": "",
- "x": 1571.008659362793,
- "y": 816.889702796936,
- "z": "487c8439.e79e0c",
+ "x": 1595.0360107421875,
+ "y": 637.8897457122803,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "7328f02d.f9128",
+ "id": "306fdb54.fea144",
"type": "execute",
"name": "execute concat customer-id and @test.com",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n <parameter name=\"source\" value='`$prop.customer-id`'/>\n <parameter name=\"outputPath\" value=\"tmp.userAccountEmail\"/>\n <parameter name=\"target\" value=\"@test.com\"/>\n\n\n",
"comments": "",
"outputs": 1,
- "x": 1635.0125350952148,
- "y": 775.8936452865601,
- "z": "487c8439.e79e0c",
+ "x": 1659.0398864746094,
+ "y": 596.8936882019043,
+ "z": "b6c1c029.17cd1",
"wires": [
[]
]
},
{
- "id": "a8eb8c24.f4a0f",
+ "id": "67e2e66a.9bd638",
"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/svclogic1.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"vf-module-id-input\"/>\n<parameter name=\"field3\" value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`'/>\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 1182.3333740234375,
- "y": 378,
- "z": "487c8439.e79e0c",
+ "x": 1204.3607177734375,
+ "y": 383,
+ "z": "b6c1c029.17cd1",
"wires": [
[]
]
},
{
- "id": "d63a100a.4fb85",
+ "id": "6a3f667b.faa1c8",
"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`' />\n",
"comments": "",
- "x": 597.0001373291016,
- "y": 1410.3333740234375,
- "z": "487c8439.e79e0c",
+ "x": 633.0275115966797,
+ "y": 1182.3333728313446,
+ "z": "b6c1c029.17cd1",
"wires": []
},
{
- "id": "45830f23.d0369",
+ "id": "bad73f6e.5a9bd",
"type": "set",
"name": "increment param length",
"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_length' value='`$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 + 1`' />\n",
"comments": "",
- "x": 580.0000553131104,
- "y": 1360.0000801086426,
- "z": "487c8439.e79e0c",
+ "x": 616.0274295806885,
+ "y": 1132.0000789165497,
+ "z": "b6c1c029.17cd1",
+ "wires": []
+ },
+ {
+ "id": "f2facc44.32ff4",
+ "type": "switchNode",
+ "name": "switch vnf-index",
+ "xml": "<switch test='`$vnf-index`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 605.0520858764648,
+ "y": 301.0312559604645,
+ "z": "b6c1c029.17cd1",
+ "wires": [
+ [
+ "4089ca12.07b054"
+ ]
+ ]
+ },
+ {
+ "id": "4089ca12.07b054",
+ "type": "other",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 767.052131652832,
+ "y": 300.03125500679016,
+ "z": "b6c1c029.17cd1",
+ "wires": [
+ [
+ "3c7c191c.e210a6"
+ ]
+ ]
+ },
+ {
+ "id": "3c7c191c.e210a6",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"vnf id not found in service-data\" />\n",
+ "comments": "",
+ "x": 916.3022232055664,
+ "y": 297.80913281440735,
+ "z": "b6c1c029.17cd1",
"wires": []
}
] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-vf-module-input.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-vf-module-input.xml
index 82bf08ed..f21ff996 100755..100644
--- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-vf-module-input.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_validate-vf-module-input.xml
@@ -48,15 +48,6 @@
</return>
</outcome>
</switch>
- <switch test='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`'>
- <outcome value=''>
- <return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="vf-module-information.vf-module-id is a required input" />
- </return>
- </outcome>
- </switch>
<switch test='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`'>
<outcome value='assign'>
<block atomic="true">
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.xml
index 2fc01cf8..491efeff 100644
--- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-tenant-auth.xml
@@ -5,7 +5,7 @@
<block atomic="true">
<get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="service-subscription"
- key= 'service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.subscription-service-type
+ key= 'service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.subscription-service-type
AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.global-customer-id'
force="true" pfx="tmp.AnAI-data-tenant">
<outcome value='success'>
@@ -34,7 +34,7 @@
</get-resource>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name="templateFileName" value="`$prop.restapi.templateDir + '/actokentemplate.json'`" />
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/baseservice/tenants/authorization/' + $prop.tenant-id`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v2/baseservice/tenants/authorization/' + $prop.tenant-id`" />
<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
<parameter name="format" value="json"/>
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-wan-param.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-wan-param.xml
index e42b3bda..30d7116b 100644
--- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-wan-param.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-get-wan-param.xml
@@ -3,7 +3,7 @@
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}'>
<method rpc='sdwan-get-wan-param' mode='sync'>
<block atomic="true">
- <for index="idx" start="0" end="`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`">
+ <for index="idx" start="0" end="`$vf-module-request-input.vf-module-input-parameters.param_length`">
<block>
<switch test="`$vf-module-request-input.vf-module-input-parameters.param[$idx].name == 'id'`">
<outcome value='true'>
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.xml
index 3e57bbcf..4bd38211 100644
--- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.xml
@@ -21,6 +21,15 @@
</outcome>
</switch>
</for>
+ <switch test='`$vnf-index`'>
+ <outcome value=''>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="vnf id not found in service-data" />
+ </return>
+ </outcome>
+ </switch>
<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>
<outcome value='0'>
<return status='failure'>
@@ -75,13 +84,6 @@
</return>
</outcome>
</switch>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/svclogic.log"/>
- <parameter name="field1" value="__TIMESTAMP__"/>
- <parameter name="field2" value="Provided alloted resource length"/>
- <parameter name="field3" value="'parameters length'"/>
- <parameter name="field4" value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`'/>
- </record>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
<parameter name='contextPrefix' value='prop' />
@@ -244,7 +246,6 @@
<parameter name='customHttpHeaders' value="`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`" />
</execute>
</block>
- <call module='GENERIC-RESOURCE-API' rpc='sdwan-get-tenant-auth' mode='sync' ></call>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sdwan-device.json'`" />
<parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v3/devices'`" />
@@ -306,6 +307,11 @@
<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.`' />
<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.`' />
</set>
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device'
+ key='device.device-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id' >
+ <parameter name='device-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />
+ <parameter name='operational-status' value='Active' />
+ </update>
<return status='success'>
<parameter name="ack-final-indicator" value="Y" />
<parameter name="error-code" value="200" />