diff options
Diffstat (limited to 'platform-logic')
16 files changed, 3260 insertions, 3456 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.json index 710748fc..722e5c12 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.json @@ -557,8 +557,8 @@ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANSiteInstance'`\">\n",
"comments": "",
"outputs": 1,
- "x": 1243.008186340332,
- "y": 773.003986954689,
+ "x": 1251.008171081543,
+ "y": 817.0040302276611,
"z": "8f678717.6ce918",
"wires": [
[
@@ -573,8 +573,8 @@ "xml": "<for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 889.0080261230469,
- "y": 740.0040270090103,
+ "x": 1256.0080871582031,
+ "y": 730.0041098594666,
"z": "8f678717.6ce918",
"wires": [
[
@@ -594,7 +594,7 @@ "z": "8f678717.6ce918",
"wires": [
[
- "752f257f.d5098c"
+ "f8bad303.dbe7d"
]
]
},
@@ -605,8 +605,8 @@ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1465.0081024169922,
- "y": 773.0040684938431,
+ "x": 1501.0082206726074,
+ "y": 811.0041122436523,
"z": "8f678717.6ce918",
"wires": [
[
@@ -2086,8 +2086,8 @@ "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1949.2583618164062,
- "y": 755.5041704177856,
+ "x": 1961.2583961486816,
+ "y": 799.5041923522949,
"z": "8f678717.6ce918",
"wires": [
[
@@ -2119,8 +2119,8 @@ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1663.5312805175781,
- "y": 781.0312776565552,
+ "x": 1693.531337738037,
+ "y": 804.0312929153442,
"z": "8f678717.6ce918",
"wires": [
[
@@ -2241,5 +2241,69 @@ "y": 2197.2225341796875,
"z": "8f678717.6ce918",
"wires": []
+ },
+ {
+ "id": "f8bad303.dbe7d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 875,
+ "y": 666.6666870117188,
+ "z": "8f678717.6ce918",
+ "wires": [
+ [
+ "8c2d8bf6.5cda78"
+ ]
+ ]
+ },
+ {
+ "id": "8c2d8bf6.5cda78",
+ "type": "switchNode",
+ "name": "switch vf-modules.vf-module_length",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length >= '0'`\">\n\n<!--switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\"-->\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 708.7500152587891,
+ "y": 790.9167098999023,
+ "z": "8f678717.6ce918",
+ "wires": [
+ [
+ "fd56a113.86307"
+ ]
+ ]
+ },
+ {
+ "id": "fd56a113.86307",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 877,
+ "y": 734.6666870117188,
+ "z": "8f678717.6ce918",
+ "wires": [
+ [
+ "341d8e5.7253272"
+ ]
+ ]
+ },
+ {
+ "id": "341d8e5.7253272",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1024.2500305175781,
+ "y": 733.416708946228,
+ "z": "8f678717.6ce918",
+ "wires": [
+ [
+ "752f257f.d5098c"
+ ]
+ ]
}
]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-create.json index 3ce166ee..b09a059b 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-create.json @@ -1,431 +1,431 @@ [
{
- "id": "3ecdadeb.18aa62",
+ "id": "f782e37.109032",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 432.00389862060547,
- "y": 378.9999885559082,
- "z": "dfb806d8.8899e8",
+ "x": 583,
+ "y": 401.1628177165985,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "b1de8da9.db8a2",
- "d704787.9944088",
- "c4e200e6.2e02b",
- "5f812e79.2be7e",
- "2b234f37.76666",
- "7dbca450.42794c",
- "7e93696e.840218",
- "676ec3b1.844d3c",
- "e3e05047.2e5b8",
- "91a71daa.ef5c2",
- "b3c3b183.55c72",
- "d01634bb.bb46b8",
- "43cde2b5.87e1ac",
- "c6fbc47.00d1938",
- "98c6c3b2.42b6b"
+ "3a0d40d2.1b88f",
+ "fdf59618.623758",
+ "d535f520.a2b4c8",
+ "5957a088.cf332",
+ "9afb8db9.2b0d5",
+ "1b22ffce.90ac5",
+ "9c073f69.f288d",
+ "8cc9cbda.e9db18",
+ "1db1621b.e18c6e",
+ "33fd1f45.d7ff5",
+ "2ebef402.b67dec",
+ "a78628f7.4e9428",
+ "9f1428de.0587b8",
+ "69722b7c.abba54",
+ "86d99a3f.07f208"
]
]
},
{
- "id": "b1de8da9.db8a2",
+ "id": "3a0d40d2.1b88f",
"type": "for",
"name": "for loop idx - VF input parameters",
"xml": "<for index=\"idx\" start=\"0\" end=\"`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param_length`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 778.2540588378906,
- "y": 361.66665744781494,
- "z": "dfb806d8.8899e8",
+ "x": 929.2501602172852,
+ "y": 383.82948660850525,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "d245ffbf.59c6c"
+ "edd147b1.5a9678"
]
]
},
{
- "id": "d245ffbf.59c6c",
+ "id": "edd147b1.5a9678",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 993.0324020385742,
- "y": 359.22224140167236,
- "z": "dfb806d8.8899e8",
+ "x": 1144.0285034179688,
+ "y": 381.38507056236267,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "82c635c3.382618",
- "bcda53d8.f6893"
+ "239191e9.78691e",
+ "1a76d1a9.524ade"
]
]
},
{
- "id": "82c635c3.382618",
+ "id": "239191e9.78691e",
"type": "execute",
"name": "execute split parameterName",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",
"comments": "",
"outputs": 1,
- "x": 1189.2886047363281,
- "y": 336.97037982940674,
- "z": "dfb806d8.8899e8",
+ "x": 1340.2847061157227,
+ "y": 359.13320899009705,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[]
]
},
{
- "id": "bcda53d8.f6893",
+ "id": "1a76d1a9.524ade",
"type": "set",
"name": "set parameterName",
"xml": "<set>\n<parameter name=\"`vf-module-topology-operation-input.vf-module-request-input.vf-module-input-parameters.param[$idx].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",
"comments": "",
- "x": 1158.7330322265625,
- "y": 373.97049617767334,
- "z": "dfb806d8.8899e8",
+ "x": 1309.729133605957,
+ "y": 396.13332533836365,
+ "z": "5ddf8caa.1b92e4",
"wires": []
},
{
- "id": "ac17a6a.af45258",
+ "id": "24f00d92.239812",
"type": "comment",
"name": "Take the parameter names by removing prefix",
"info": "",
"comments": "",
- "x": 816.2542610168457,
- "y": 318.3333249092102,
- "z": "dfb806d8.8899e8",
+ "x": 967.2503623962402,
+ "y": 340.4961540699005,
+ "z": "5ddf8caa.1b92e4",
"wires": []
},
{
- "id": "c4e200e6.2e02b",
+ "id": "d535f520.a2b4c8",
"type": "set",
"name": "set new vf-module_length",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index + 1`' />",
"comments": "",
- "x": 757.190673828125,
- "y": 520.1629304885864,
- "z": "dfb806d8.8899e8",
+ "x": 908.1867752075195,
+ "y": 542.3257596492767,
+ "z": "5ddf8caa.1b92e4",
"wires": []
},
{
- "id": "d704787.9944088",
+ "id": "fdf59618.623758",
"type": "set",
"name": "set vf-module-request-input.",
"xml": "<set>\n<parameter name='vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n",
"comments": "",
- "x": 764.1902618408203,
- "y": 415.1541962623596,
- "z": "dfb806d8.8899e8",
+ "x": 915.1863632202148,
+ "y": 437.3170254230499,
+ "z": "5ddf8caa.1b92e4",
"wires": []
},
{
- "id": "7e93696e.840218",
+ "id": "9c073f69.f288d",
"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[$vf-index].vf-module-id' value='`$prop.vf-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].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[$vf-index].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[$vf-index].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[$vf-index].vf-module-data.vnf-information.' value='`$vf-module-topology-operation-input.vnf-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n\n<!--parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-topology.' value='`$tmp.vf-module-topology.`' /-->\n<!--parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index+1`' /-->\n",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-id' value='`$prop.vf-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].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[$vf-index].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[$vf-index].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[$vf-index].vf-module-data.vnf-information.' value='`$vf-module-topology-operation-input.vnf-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />\n\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-topology.' value='`$tmp.vf-module-topology.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index+1`' />\n",
"comments": "",
- "x": 769.3570175170898,
- "y": 628.3335423469543,
- "z": "dfb806d8.8899e8",
+ "x": 920.3531188964844,
+ "y": 650.4963715076447,
+ "z": "5ddf8caa.1b92e4",
"wires": []
},
{
- "id": "676ec3b1.844d3c",
+ "id": "8cc9cbda.e9db18",
"type": "set",
"name": "set vf-module-object-path",
"xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vf-id`'/> \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": 757.503942489624,
- "y": 679.8373885154724,
- "z": "dfb806d8.8899e8",
+ "x": 908.5000438690186,
+ "y": 702.0002176761627,
+ "z": "5ddf8caa.1b92e4",
"wires": []
},
{
- "id": "e3e05047.2e5b8",
+ "id": "1db1621b.e18c6e",
"type": "save",
"name": "save sdwan lan-port-config resource in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='lan-port-config' \n key='lan-port-config.lan-port-config-id = $prop.vf-id' >\n<parameter name=\"lan-port-config-id\" value=\"`$prop.vf-id`\" />\n<parameter name=\"device-id\" value='`$prop.lan.deviceName`' />\n<parameter name=\"port-switch\" value='`$prop.lan.portSwitch`' />\n<parameter name=\"port-type\" value='`$prop.lan.portType`' />\n<parameter name=\"port-number\" value='`$prop.lan.portnumber`' />\n<parameter name=\"ipv4-address\" value='`$prop.lan.ipAddress`' />\n<parameter name='vlan-tag' value='`$prop.lan.vlanId`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.vf-id + '/vf-module-data/'` \" />\n",
"comments": "",
"outputs": 1,
- "x": 812.5039215087891,
- "y": 772.3373708724976,
- "z": "dfb806d8.8899e8",
+ "x": 963.5000228881836,
+ "y": 794.5002000331879,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[]
]
},
{
- "id": "91a71daa.ef5c2",
+ "id": "33fd1f45.d7ff5",
"type": "save",
"name": "save service relationship in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf:relationship-list' \n key='generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"lan-port-config\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/lan-port-configs/lan-port-config/' + $prop.vf-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"lan-port-config-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vf-id`\" />\n",
"comments": "",
"outputs": 1,
- "x": 772.5038375854492,
- "y": 819.3373589515686,
- "z": "dfb806d8.8899e8",
+ "x": 923.4999389648438,
+ "y": 841.5001881122589,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[]
]
},
{
- "id": "b3c3b183.55c72",
+ "id": "2ebef402.b67dec",
"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": 723.2263832092285,
- "y": 866.5112180709839,
- "z": "dfb806d8.8899e8",
+ "x": 874.222484588623,
+ "y": 888.6740472316742,
+ "z": "5ddf8caa.1b92e4",
"wires": []
},
{
- "id": "5f812e79.2be7e",
+ "id": "5957a088.cf332",
"type": "switchNode",
"name": "switch vnf_length",
"xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 733.424467086792,
- "y": 68.5038731098175,
- "z": "dfb806d8.8899e8",
+ "x": 884.4205684661865,
+ "y": 90.66670227050781,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "ecb5481e.49db98"
+ "26211aa4.6aca76"
]
]
},
{
- "id": "ecb5481e.49db98",
+ "id": "26211aa4.6aca76",
"type": "other",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 920.0911464691162,
- "y": 67.83717083930969,
- "z": "dfb806d8.8899e8",
+ "x": 1071.0872478485107,
+ "y": 90,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "5cc69be0.888194"
+ "60b9b040.3db19"
]
]
},
{
- "id": "5cc69be0.888194",
+ "id": "60b9b040.3db19",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"There are no VNFs in MD-SAL\" />\n",
"comments": "",
- "x": 1101.7577724456787,
- "y": 67.83717083930969,
- "z": "dfb806d8.8899e8",
+ "x": 1252.7538738250732,
+ "y": 90,
+ "z": "5ddf8caa.1b92e4",
"wires": []
},
{
- "id": "2b234f37.76666",
+ "id": "9afb8db9.2b0d5",
"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": 771.6744890213013,
- "y": 245.50386714935303,
- "z": "dfb806d8.8899e8",
+ "x": 922.6705904006958,
+ "y": 267.66669631004333,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "43b76269.61638c",
- "80f9fdd1.5acfa"
+ "925220d0.8e6e8",
+ "8d034f0b.c8c8d"
]
]
},
{
- "id": "43b76269.61638c",
+ "id": "925220d0.8e6e8",
"type": "other",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1002.6744995117188,
- "y": 221.50386428833008,
- "z": "dfb806d8.8899e8",
+ "x": 1153.6706008911133,
+ "y": 243.66669344902039,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "30daa7e7.f7d908"
+ "f6929bd3.916468"
]
]
},
{
- "id": "80f9fdd1.5acfa",
+ "id": "8d034f0b.c8c8d",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 1002.6744995117188,
- "y": 261.5038642883301,
- "z": "dfb806d8.8899e8",
+ "x": 1153.6706008911133,
+ "y": 283.6666934490204,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "15ffa14c.a3471f"
+ "28516ca8.58b9a4"
]
]
},
{
- "id": "30daa7e7.f7d908",
+ "id": "f6929bd3.916468",
"type": "set",
"name": "set vf-index",
"xml": "<set>\n<parameter name='vf-index' value='0' />\n",
"comments": "",
- "x": 1145.1744995117188,
- "y": 221.50386428833008,
- "z": "dfb806d8.8899e8",
+ "x": 1296.1706008911133,
+ "y": 243.66669344902039,
+ "z": "5ddf8caa.1b92e4",
"wires": []
},
{
- "id": "15ffa14c.a3471f",
+ "id": "28516ca8.58b9a4",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1147.0315437316895,
- "y": 261.4403762817383,
- "z": "dfb806d8.8899e8",
+ "x": 1298.027645111084,
+ "y": 283.6032054424286,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "81c65311.3e7fa",
- "1c59d473.dd26bc"
+ "fe45ce64.2ccb7",
+ "e4014c75.a1a78"
]
]
},
{
- "id": "1c59d473.dd26bc",
+ "id": "e4014c75.a1a78",
"type": "set",
"name": "set vf-index",
"xml": "<set>\n<parameter name='vf-index' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n\n",
"comments": "",
- "x": 1299.7300186157227,
- "y": 231.05947497440502,
- "z": "dfb806d8.8899e8",
+ "x": 1450.7261199951172,
+ "y": 253.22230413509533,
+ "z": "5ddf8caa.1b92e4",
"wires": []
},
{
- "id": "81c65311.3e7fa",
+ "id": "fe45ce64.2ccb7",
"type": "for",
"name": "for each existing vf-index",
"xml": "<for index='idx' start='0' end='`$vf-index`' >\n",
"comments": "",
"outputs": 1,
- "x": 1356.1585235595703,
- "y": 284.2816047668457,
- "z": "dfb806d8.8899e8",
+ "x": 1507.1546249389648,
+ "y": 306.444433927536,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "aaf0ab5e.460008"
+ "c9dd9d48.363c4"
]
]
},
{
- "id": "85ce8231.1cc8f",
+ "id": "93986914.2633c8",
"type": "comment",
"name": "make sure this network doesn't exist already",
"info": "",
"comments": "",
- "x": 1579.809253692627,
- "y": 242.53566217422485,
- "z": "dfb806d8.8899e8",
+ "x": 1730.8053550720215,
+ "y": 264.69849133491516,
+ "z": "5ddf8caa.1b92e4",
"wires": []
},
{
- "id": "aaf0ab5e.460008",
+ "id": "c9dd9d48.363c4",
"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": 1631.4442443847656,
- "y": 283.8531074523926,
- "z": "dfb806d8.8899e8",
+ "x": 1782.4403457641602,
+ "y": 306.0159366130829,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "1a7eae6b.66a2b2"
+ "3a28d2c1.9fee3e"
]
]
},
{
- "id": "1a7eae6b.66a2b2",
+ "id": "3a28d2c1.9fee3e",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1532.1744422912598,
- "y": 342.4245386123657,
- "z": "dfb806d8.8899e8",
+ "x": 1683.1705436706543,
+ "y": 364.58736777305603,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "40223de2.189ee4"
+ "c7dfb468.8d2468"
]
]
},
{
- "id": "40223de2.189ee4",
+ "id": "c7dfb468.8d2468",
"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-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id already found in service-data\" />\n",
"comments": "",
- "x": 1679.924545288086,
- "y": 342.28173068119213,
- "z": "dfb806d8.8899e8",
+ "x": 1830.9206466674805,
+ "y": 364.44455984188244,
+ "z": "5ddf8caa.1b92e4",
"wires": []
},
{
- "id": "7dbca450.42794c",
+ "id": "1b22ffce.90ac5",
"type": "call",
"name": "call sdwan-get-vf-module-lanport-param",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lanport-param' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 803.0039367675781,
- "y": 468.0000219345093,
- "z": "dfb806d8.8899e8",
+ "x": 954.0000381469727,
+ "y": 490.1628510951996,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[]
]
},
{
- "id": "d01634bb.bb46b8",
+ "id": "a78628f7.4e9428",
"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[$vf-index].vf-module-data.vf-module-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].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[$vf-index].vf-module-data.vf-module-level-oper-status.last-action' value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\n",
"comments": "",
- "x": 774.00390625,
- "y": 722.00390625,
- "z": "dfb806d8.8899e8",
+ "x": 925.0000076293945,
+ "y": 744.1667354106903,
+ "z": "5ddf8caa.1b92e4",
"wires": []
},
{
- "id": "80c0749d.c5b758",
+ "id": "ceaeb6e4.45d088",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 101.00390625,
- "y": 95.00390625,
- "z": "dfb806d8.8899e8",
+ "x": 252.00000762939453,
+ "y": 117.16673541069031,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "1e8e9be2.f38a84"
+ "b9aae3a1.4ae74"
]
]
},
{
- "id": "1e8e9be2.f38a84",
+ "id": "b9aae3a1.4ae74",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -433,146 +433,145 @@ "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": 215.50390434265137,
- "y": 202.00389766693115,
- "z": "dfb806d8.8899e8",
+ "x": 366.5000057220459,
+ "y": 224.16672682762146,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "441193b5.7a563c"
+ "486cfe7f.88b42"
]
]
},
{
- "id": "441193b5.7a563c",
+ "id": "486cfe7f.88b42",
"type": "method",
"name": "sdwan-vf-operation-lanport-create",
"xml": "<method rpc='sdwan-vf-operation-lanport-create' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 214.50390434265137,
- "y": 302.00389766693115,
- "z": "dfb806d8.8899e8",
+ "x": 365.5000057220459,
+ "y": 324.16672682762146,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "3ecdadeb.18aa62"
+ "f782e37.109032"
]
]
},
{
- "id": "43cde2b5.87e1ac",
+ "id": "9f1428de.0587b8",
"type": "execute",
"name": "execute generate-vf-id",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vf-id\"/>\n",
"comments": "",
"outputs": 1,
- "x": 756.0039520263672,
- "y": 576.5038995742798,
- "z": "dfb806d8.8899e8",
+ "x": 907.0000534057617,
+ "y": 598.6667287349701,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[]
]
},
{
- "id": "c6fbc47.00d1938",
+ "id": "69722b7c.abba54",
"type": "for",
"name": "for each vnf",
"xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 723.0038871765137,
- "y": 123.00390815734863,
- "z": "dfb806d8.8899e8",
+ "x": 873.9999885559082,
+ "y": 145.16673731803894,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "a2640a51.5d0d78"
+ "c4314464.ea4888"
]
]
},
{
- "id": "a2640a51.5d0d78",
+ "id": "c4314464.ea4888",
"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": 974.0039825439453,
- "y": 118.67052865028381,
- "z": "dfb806d8.8899e8",
+ "x": 1125.0000839233398,
+ "y": 140.83335781097412,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "d22976f8.730608"
+ "7e2619a7.4c1a38"
]
]
},
{
- "id": "d22976f8.730608",
+ "id": "7e2619a7.4c1a38",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1192.3372993469238,
- "y": 120.6705105304718,
- "z": "dfb806d8.8899e8",
+ "x": 1343.3334007263184,
+ "y": 142.8333396911621,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "92022bc5.0cdcc8"
+ "e7b8aabb.779c28"
]
]
},
{
- "id": "92022bc5.0cdcc8",
+ "id": "e7b8aabb.779c28",
"type": "set",
"name": "set vnf-index",
"xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
"comments": "",
- "x": 1345.6704711914062,
- "y": 120.67053151130676,
- "z": "dfb806d8.8899e8",
+ "x": 1496.6665725708008,
+ "y": 142.83336067199707,
+ "z": "5ddf8caa.1b92e4",
"wires": []
},
{
- "id": "98c6c3b2.42b6b",
+ "id": "86d99a3f.07f208",
"type": "switchNode",
"name": "switch vnf-index",
"xml": "<switch test='`$vnf-index`'>\n",
"comments": "",
"outputs": 1,
- "x": 737.00390625,
- "y": 184.00390625,
- "z": "dfb806d8.8899e8",
+ "x": 888.0000076293945,
+ "y": 206.1667354106903,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "681068c6.40fb78"
+ "885839d2.ea1b48"
]
]
},
{
- "id": "681068c6.40fb78",
+ "id": "885839d2.ea1b48",
"type": "other",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 899.0039520263672,
- "y": 183.00390529632568,
- "z": "dfb806d8.8899e8",
+ "x": 1050.0000534057617,
+ "y": 205.166734457016,
+ "z": "5ddf8caa.1b92e4",
"wires": [
[
- "f9b4e412.cab938"
+ "1a2b1c2a.3b4624"
]
]
},
{
- "id": "f9b4e412.cab938",
+ "id": "1a2b1c2a.3b4624",
"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": 1048.2540435791016,
- "y": 180.78178310394287,
- "z": "dfb806d8.8899e8",
+ "x": 1199.250144958496,
+ "y": 202.94461226463318,
+ "z": "5ddf8caa.1b92e4",
"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-lanport-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-deactivate.json index 5178c07f..f299e172 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-deactivate.json @@ -1,54 +1,54 @@ [
{
- "id": "5903e495.687e5c",
+ "id": "35bbf866.78a5e8",
"type": "method",
"name": "method sdwan-vf-operation-lanport-deactivate",
"xml": "<method rpc='sdwan-vf-operation-lanport-deactivate' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 240.00390625,
- "y": 212.58634185791016,
- "z": "eb27f9f.1aaf508",
+ "x": 249.00390625,
+ "y": 220.58633995056152,
+ "z": "53bd9180.45e08",
"wires": [
[
- "4f6607f2.8abb38"
+ "25755a25.25e4a6"
]
]
},
{
- "id": "16a24c83.115633",
+ "id": "99c65fff.e6457",
"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": 622.0039138793945,
- "y": 363.99999046325684,
- "z": "eb27f9f.1aaf508",
+ "x": 646.0039138793945,
+ "y": 410.00000286102295,
+ "z": "53bd9180.45e08",
"wires": [
[
- "38ac049b.8f28ac",
- "918c4288.cf32",
- "e4bed2ad.0f579"
+ "9fd4d822.1e9bc8",
+ "5a6df27a.b5c33c",
+ "6ea0353d.247c0c"
]
]
},
{
- "id": "a6d98bd3.492e98",
+ "id": "4a63efcc.f1d8a",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 159.00391006469727,
- "y": 55,
- "z": "eb27f9f.1aaf508",
+ "x": 168.00391006469727,
+ "y": 62.99999809265137,
+ "z": "53bd9180.45e08",
"wires": [
[
- "1152c743.415d39"
+ "7d33035d.b0824c"
]
]
},
{
- "id": "1152c743.415d39",
+ "id": "7d33035d.b0824c",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -56,1836 +56,2216 @@ "comments": "",
"xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
"outputs": 1,
- "x": 228.28961181640625,
- "y": 118.23810958862305,
- "z": "eb27f9f.1aaf508",
+ "x": 237.28961181640625,
+ "y": 126.23810768127441,
+ "z": "53bd9180.45e08",
"wires": [
[
- "5903e495.687e5c"
+ "35bbf866.78a5e8"
]
]
},
{
- "id": "4f6607f2.8abb38",
+ "id": "25755a25.25e4a6",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 240.6705780029297,
- "y": 468.666708946228,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "ee96d694.8e7de8",
- "ebce096c.09ff98",
- "16a24c83.115633",
- "8d9ec798.9077a8",
- "1c23a104.8b10df",
- "ea24678.936eb98",
- "1a442450.4a365c",
- "76875429.7977ec",
- "c0a9943e.0b6a78",
- "728a6387.ded5dc",
- "d768a494.487678",
- "24c5eb03.2a37b4",
- "37a0c49e.52f2ec",
- "88d74976.c878b8",
- "7eaf7940.931d68",
- "b028cd6d.5db14",
- "b07d774b.c67f18",
- "c2a2820.4e02d8",
- "6e845a3.14ef3a4",
- "715f7228.db42ac",
- "b36b6e5f.5d733"
- ]
- ]
- },
- {
- "id": "ebce096c.09ff98",
+ "x": 249.6705780029297,
+ "y": 476.6667070388794,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "cfe3e61f.155e78",
+ "e5e47d7b.5e2bd",
+ "99c65fff.e6457",
+ "f0379b33.897b78",
+ "b3b4dc97.18506",
+ "92ac4604.5a24c8",
+ "5d312c55.693bf4",
+ "b6bd8ed3.859c2",
+ "b9a7fd1a.5768b",
+ "e69ff5d3.246378",
+ "dacb223a.3b862",
+ "df8f9116.6cb59",
+ "3e7ff409.79880c",
+ "f569daa2.8f9b28",
+ "3dfde9c2.fe1616",
+ "8212e1ef.d576a",
+ "d319cb18.70bf18",
+ "4e34e7e4.f09c28",
+ "d52b4c36.b4383",
+ "898196c1.4be1c8",
+ "84308c74.6696",
+ "5399251a.d1c53c",
+ "7ffab63e.0ceec8",
+ "a8ac6552.309118"
+ ]
+ ]
+ },
+ {
+ "id": "e5e47d7b.5e2bd",
"type": "for",
"name": "for each vnf",
"xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 582.0352668762207,
- "y": 221.26913261413574,
- "z": "eb27f9f.1aaf508",
+ "x": 591.0352668762207,
+ "y": 229.2691307067871,
+ "z": "53bd9180.45e08",
"wires": [
[
- "906e6ab4.d1bf48"
+ "abb41723.436e98"
]
]
},
{
- "id": "ee96d694.8e7de8",
+ "id": "cfe3e61f.155e78",
"type": "switchNode",
"name": "switch vnf_length",
"xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 593.0038986206055,
- "y": 159.99999332427979,
- "z": "eb27f9f.1aaf508",
+ "x": 602.0038986206055,
+ "y": 167.99999141693115,
+ "z": "53bd9180.45e08",
"wires": [
[
- "88ebf11b.dd6cf"
+ "5ecc4eea.38b52"
]
]
},
{
- "id": "88ebf11b.dd6cf",
+ "id": "5ecc4eea.38b52",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 773.0038795471191,
- "y": 158.9999828338623,
- "z": "eb27f9f.1aaf508",
+ "x": 782.0038795471191,
+ "y": 166.99998092651367,
+ "z": "53bd9180.45e08",
"wires": [
[
- "42b4e84a.5144c8"
+ "640fd5ea.dc5b5c"
]
]
},
{
- "id": "42b4e84a.5144c8",
+ "id": "640fd5ea.dc5b5c",
"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": 922.4326057434082,
- "y": 160.14290046691895,
- "z": "eb27f9f.1aaf508",
+ "x": 931.4326057434082,
+ "y": 168.1428985595703,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "906e6ab4.d1bf48",
+ "id": "abb41723.436e98",
"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": 811.0038948059082,
- "y": 221.99998903274536,
- "z": "eb27f9f.1aaf508",
+ "x": 820.0038948059082,
+ "y": 229.99998712539673,
+ "z": "53bd9180.45e08",
"wires": [
[
- "31ffe1c7.1814fe"
+ "b2038cfb.be4ff"
]
]
},
{
- "id": "31ffe1c7.1814fe",
+ "id": "b2038cfb.be4ff",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1026.0038795471191,
- "y": 219.9999828338623,
- "z": "eb27f9f.1aaf508",
+ "x": 1035.0038795471191,
+ "y": 227.99998092651367,
+ "z": "53bd9180.45e08",
"wires": [
[
- "e443968b.c056d8"
+ "d5665599.ce1f08"
]
]
},
{
- "id": "e443968b.c056d8",
+ "id": "d5665599.ce1f08",
"type": "set",
"name": "set vnf-index",
"xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
"comments": "",
- "x": 1190.0038795471191,
- "y": 214.9999828338623,
- "z": "eb27f9f.1aaf508",
+ "x": 1199.0038795471191,
+ "y": 222.99998092651367,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "918c4288.cf32",
+ "id": "5a6df27a.b5c33c",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 844.00390625,
- "y": 398,
- "z": "eb27f9f.1aaf508",
+ "x": 897.0039176940918,
+ "y": 401.00000381469727,
+ "z": "53bd9180.45e08",
"wires": [
[
- "8a688447.06c508"
+ "6f3d1b55.996ac4"
]
]
},
{
- "id": "38ac049b.8f28ac",
+ "id": "9fd4d822.1e9bc8",
"type": "outcome",
"name": "0",
"xml": "<outcome value='0'>\n",
"comments": "",
"outputs": 1,
- "x": 849.0039024353027,
- "y": 344.9999990463257,
- "z": "eb27f9f.1aaf508",
+ "x": 893.0039176940918,
+ "y": 347.0000042915344,
+ "z": "53bd9180.45e08",
"wires": [
[
- "8a688447.06c508"
+ "6f3d1b55.996ac4"
]
]
},
{
- "id": "8a688447.06c508",
+ "id": "6f3d1b55.996ac4",
"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": 1007.00390625,
- "y": 358,
- "z": "eb27f9f.1aaf508",
+ "x": 1065.0038871765137,
+ "y": 363.0000047683716,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "e4bed2ad.0f579",
+ "id": "6ea0353d.247c0c",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 844.00390625,
- "y": 459,
- "z": "eb27f9f.1aaf508",
+ "x": 853.00390625,
+ "y": 466.99999809265137,
+ "z": "53bd9180.45e08",
"wires": [
[
- "4a56c78a.01ddc8"
+ "c106227.8a742e"
]
]
},
{
- "id": "6a4e4809.c60518",
+ "id": "71fb1ae1.5a6d94",
"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": 1198.003921508789,
- "y": 457.0000139474869,
- "z": "eb27f9f.1aaf508",
+ "x": 1207.003921508789,
+ "y": 465.00001204013824,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "4a56c78a.01ddc8",
+ "id": "c106227.8a742e",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1005.0039520263672,
- "y": 455.99999141693115,
- "z": "eb27f9f.1aaf508",
+ "x": 1014.0039520263672,
+ "y": 463.9999895095825,
+ "z": "53bd9180.45e08",
"wires": [
[
- "6a4e4809.c60518",
- "bc83d339.7a157"
+ "71fb1ae1.5a6d94",
+ "53e6b05c.c8062"
]
]
},
{
- "id": "bc83d339.7a157",
+ "id": "53e6b05c.c8062",
"type": "for",
"name": "for each existing vf-index",
"xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1217.0039367675781,
- "y": 506.0000123977661,
- "z": "eb27f9f.1aaf508",
+ "x": 1226.0039367675781,
+ "y": 514.0000104904175,
+ "z": "53bd9180.45e08",
"wires": [
[
- "f6f67e00.4f2d6"
+ "22133afc.a97b96"
]
]
},
{
- "id": "f6f67e00.4f2d6",
+ "id": "22133afc.a97b96",
"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": 1460.00390625,
- "y": 505,
- "z": "eb27f9f.1aaf508",
+ "x": 1469.00390625,
+ "y": 512.9999980926514,
+ "z": "53bd9180.45e08",
"wires": [
[
- "dd4f952e.96ea88"
+ "c42cf16b.ee598"
]
]
},
{
- "id": "dd4f952e.96ea88",
+ "id": "c42cf16b.ee598",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1658.0039348602295,
- "y": 492.0000066757202,
- "z": "eb27f9f.1aaf508",
+ "x": 1667.0039348602295,
+ "y": 500.0000047683716,
+ "z": "53bd9180.45e08",
"wires": [
[
- "daa971e2.4674d"
+ "52618d69.6a0a14"
]
]
},
{
- "id": "daa971e2.4674d",
+ "id": "52618d69.6a0a14",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1810.00390625,
- "y": 494,
- "z": "eb27f9f.1aaf508",
+ "x": 1819.00390625,
+ "y": 501.99999809265137,
+ "z": "53bd9180.45e08",
"wires": [
[
- "b77c5961.7e0078",
- "f6edb536.7a6928",
- "29517aa5.1b19a6"
+ "8df43c37.e421c",
+ "e47f4a77.f0aa38",
+ "37f7f248.465a3e"
]
]
},
{
- "id": "b77c5961.7e0078",
+ "id": "8df43c37.e421c",
"type": "set",
"name": "set tmp.vidx and ctx.vnf-data",
"xml": "<set>\n<parameter name='tmp.vidx' value='`$idx`' />\n<parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\n",
"comments": "",
- "x": 2038.004020690918,
- "y": 436.00000381469727,
- "z": "eb27f9f.1aaf508",
+ "x": 2047.004020690918,
+ "y": 444.00000190734863,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "f6edb536.7a6928",
+ "id": "e47f4a77.f0aa38",
"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": 2042.004020690918,
- "y": 490.00000381469727,
- "z": "eb27f9f.1aaf508",
+ "x": 2051.004020690918,
+ "y": 498.00000190734863,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "8d9ec798.9077a8",
+ "id": "f0379b33.897b78",
"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": 541.0041198730469,
- "y": 1931.5012760162354,
- "z": "eb27f9f.1aaf508",
+ "x": 563.0041961669922,
+ "y": 2464.501329421997,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "29517aa5.1b19a6",
+ "id": "37f7f248.465a3e",
"type": "call",
"name": "call sdwan-get-vf-module-lanport-param",
"xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lanport-param' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 2072.4590454101562,
- "y": 541.0104961395264,
- "z": "eb27f9f.1aaf508",
+ "x": 2096.459159851074,
+ "y": 549.0105247497559,
+ "z": "53bd9180.45e08",
"wires": [
[]
]
},
{
- "id": "cc302ad2.335ad8",
- "type": "for",
- "name": "for vf-modules.vf-module_length",
- "xml": "<for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 879.2579803466797,
- "y": 546.0040225982666,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "58d4b8d7.026f28"
- ]
- ]
- },
- {
- "id": "ffc92a35.504858",
- "type": "switchNode",
- "name": "switch this deviceName == vf-input",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == $prop.lan.deviceName`\">\n \n",
- "comments": "",
- "outputs": 1,
- "x": 1152.2582244873047,
- "y": 632.0041282176971,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "753161a4.e4105"
- ]
- ]
- },
- {
- "id": "58d4b8d7.026f28",
- "type": "for",
- "name": "for vf-module-input-param length",
- "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1177.2578964233398,
- "y": 549.0040645599365,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "ffc92a35.504858"
- ]
- ]
- },
- {
- "id": "753161a4.e4105",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1366.2580375671387,
- "y": 629.0041129589081,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "530b71d0.67585"
- ]
- ]
- },
- {
- "id": "db40c5ed.6ed418",
- "type": "for",
- "name": "for vf-modules.vf-module_length",
- "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1755.258228302002,
- "y": 626.0042676925659,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "e3d2d09b.6274e"
- ]
- ]
- },
- {
- "id": "e3d2d09b.6274e",
- "type": "switchNode",
- "name": "switch deviceId == input vf-id",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'deviceId'`\">\n \n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 2047.2581176757812,
- "y": 627.0042266845703,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "9b1b7b47.77c908"
- ]
- ]
- },
- {
- "id": "9b1b7b47.77c908",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2246.258285522461,
- "y": 625.0042266845703,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "6eb0efd.3e47b1"
- ]
- ]
- },
- {
- "id": "6eb0efd.3e47b1",
- "type": "set",
- "name": "set prop.lan.deviceId",
- "xml": "<set>\n<parameter name='prop.lan.deviceId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />\n",
- "comments": "",
- "x": 2419.258289337158,
- "y": 625.0042676925659,
- "z": "eb27f9f.1aaf508",
- "wires": []
- },
- {
- "id": "1c23a104.8b10df",
- "type": "for",
- "name": "for service-data.vnfs.vnf_length",
- "xml": "<for index='vnfidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 625.2578277587891,
- "y": 481.00401973724365,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "cc302ad2.335ad8"
- ]
- ]
- },
- {
- "id": "427eb2b2.29a19c",
- "type": "switchNode",
- "name": "switch ActivateSDWANSiteInstance",
- "xml": "<!--switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANSiteInstance'`\"-->\n<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSiteInstance'`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 1220.0081939697266,
- "y": 753.0039882659912,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "d5fc4f12.f3715"
- ]
- ]
- },
- {
- "id": "9c314385.3cccd",
- "type": "for",
- "name": "for vf-modules.vf-module_length",
- "xml": "<for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 753.0080795288086,
- "y": 824.0040054321289,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "f0f279f1.f5aee8"
- ]
- ]
- },
- {
- "id": "c0a9943e.0b6a78",
- "type": "for",
- "name": "for service-data.vnfs.vnf_length",
- "xml": "<for index='vnfidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 617.0078887939453,
- "y": 651.0039081573486,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "a69a253a.e8e958"
- ]
- ]
- },
- {
- "id": "d5fc4f12.f3715",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1442.0081100463867,
- "y": 753.0040698051453,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "41fe08aa.15b428"
- ]
- ]
- },
- {
- "id": "41fe08aa.15b428",
- "type": "for",
- "name": "for vf-modules.vf-module_length",
- "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
- "comments": "",
- "outputs": 1,
- "x": 1523.2581176757812,
- "y": 827.5040712356567,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "687fd9fe.041c58"
- ]
- ]
- },
- {
- "id": "703289c8.f0d638",
- "type": "switchNode",
- "name": "switch siteId",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'siteId'`\">\n \n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1906.2584762573242,
- "y": 834.5041785240173,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "b38ab304.d8ca8"
- ]
- ]
- },
- {
- "id": "b38ab304.d8ca8",
- "type": "outcomeTrue",
- "name": "true",
- "xml": "<outcome value='true'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2083.2584953308105,
- "y": 837.5040187835693,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "3a704ef2.91c232"
- ]
- ]
- },
- {
- "id": "97126ca9.bd5cb",
- "type": "set",
- "name": "set prop.attach.siteId",
- "xml": "<set>\n<parameter name='prop.attach.siteId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />\n",
- "comments": "",
- "x": 2467.259002685547,
- "y": 811.5040702819824,
- "z": "eb27f9f.1aaf508",
- "wires": []
- },
- {
- "id": "3a704ef2.91c232",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic=\"true\">",
- "atomic": "true",
- "outputs": 1,
- "x": 2242.508686065674,
- "y": 833.0040588378906,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "97126ca9.bd5cb",
- "82be127b.4ba08",
- "e04e88b3.6b7888"
- ]
- ]
- },
- {
- "id": "37a0c49e.52f2ec",
+ "id": "dacb223a.3b862",
"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": 578.0078353881836,
- "y": 970.5039968490601,
- "z": "eb27f9f.1aaf508",
+ "x": 648.0079498291016,
+ "y": 1490.5041389465332,
+ "z": "53bd9180.45e08",
"wires": [
[
- "737a26fd.e1dab8",
- "dacb633c.487af",
- "48a17fc2.d83c5"
+ "c940f649.2f6038",
+ "e19a27.d3ada5d8",
+ "79fc4361.409b6c"
]
]
},
{
- "id": "737a26fd.e1dab8",
+ "id": "c940f649.2f6038",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 822.0078964233398,
- "y": 934.5039968490601,
- "z": "eb27f9f.1aaf508",
+ "x": 892.0080108642578,
+ "y": 1454.5041389465332,
+ "z": "53bd9180.45e08",
"wires": [
[
- "e7e7ee2.fc0eb1"
+ "81501425.48b828"
]
]
},
{
- "id": "dacb633c.487af",
+ "id": "e19a27.d3ada5d8",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 824.498779296875,
- "y": 970.0780334472656,
- "z": "eb27f9f.1aaf508",
+ "x": 894.498893737793,
+ "y": 1490.0781755447388,
+ "z": "53bd9180.45e08",
"wires": [
[
- "3d818670.7778da"
+ "d5f98dd5.bc10f"
]
]
},
{
- "id": "48a17fc2.d83c5",
+ "id": "79fc4361.409b6c",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 819.831787109375,
- "y": 1006.4113922119141,
- "z": "eb27f9f.1aaf508",
+ "x": 889.831901550293,
+ "y": 1526.4115343093872,
+ "z": "53bd9180.45e08",
"wires": [
[
- "42fa81a1.deae7"
+ "46ccd480.5b967c"
]
]
},
{
- "id": "42fa81a1.deae7",
+ "id": "46ccd480.5b967c",
"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": 973.6042785644531,
- "y": 1003.8504791259766,
- "z": "eb27f9f.1aaf508",
+ "x": 1043.604393005371,
+ "y": 1523.8506212234497,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "3d818670.7778da",
+ "id": "d5f98dd5.bc10f",
"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": 970.0701751708984,
- "y": 968.3637208938599,
- "z": "eb27f9f.1aaf508",
+ "x": 1040.0702896118164,
+ "y": 1488.363862991333,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "e7e7ee2.fc0eb1",
+ "id": "81501425.48b828",
"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": 982.5080070495605,
- "y": 932.5039367675781,
- "z": "eb27f9f.1aaf508",
+ "x": 1052.5081214904785,
+ "y": 1452.5040788650513,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "88d74976.c878b8",
+ "id": "df8f9116.6cb59",
"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": 591.9460678100586,
- "y": 1073.62509059906,
- "z": "eb27f9f.1aaf508",
+ "x": 661.9461822509766,
+ "y": 1593.6252326965332,
+ "z": "53bd9180.45e08",
"wires": [
[
- "76d84be1.6ba5b4",
- "93f8c0dc.5b81e"
+ "75ba6457.55e20c",
+ "7c1891ac.de4b4"
]
]
},
{
- "id": "76d84be1.6ba5b4",
+ "id": "75ba6457.55e20c",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 826.9461936950684,
- "y": 1059.6250791549683,
- "z": "eb27f9f.1aaf508",
+ "x": 896.9463081359863,
+ "y": 1579.6252212524414,
+ "z": "53bd9180.45e08",
"wires": [
[
- "f2b8e32a.bae75"
+ "2888a6db.27655a"
]
]
},
{
- "id": "93f8c0dc.5b81e",
+ "id": "7c1891ac.de4b4",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 826.1961936950684,
- "y": 1095.2679862976074,
- "z": "eb27f9f.1aaf508",
+ "x": 896.1963081359863,
+ "y": 1615.2681283950806,
+ "z": "53bd9180.45e08",
"wires": [
[
- "f416c022.785c9"
+ "8ca3ace6.8f2fa"
]
]
},
{
- "id": "f416c022.785c9",
+ "id": "8ca3ace6.8f2fa",
"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": 974.9462013244629,
- "y": 1096.0180683135986,
- "z": "eb27f9f.1aaf508",
+ "x": 1044.9463157653809,
+ "y": 1616.0182104110718,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "f2b8e32a.bae75",
+ "id": "2888a6db.27655a",
"type": "set",
"name": "set token-id",
"xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
"comments": "",
- "x": 968.9462013244629,
- "y": 1058.6250801086426,
- "z": "eb27f9f.1aaf508",
+ "x": 1038.9463157653809,
+ "y": 1578.6252222061157,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "b028cd6d.5db14",
+ "id": "f569daa2.8f9b28",
"type": "execute",
"name": "execute RestApiCallNode device port delete",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdlan-port-del.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/ports/action/batch-delete'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"portResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
"comments": "",
"outputs": 1,
- "x": 618.0351638793945,
- "y": 1225.0782289505005,
- "z": "eb27f9f.1aaf508",
+ "x": 675.0353012084961,
+ "y": 1951.0783553123474,
+ "z": "53bd9180.45e08",
"wires": [
[
- "fb8d6372.3f4b4",
- "48c81a07.925bc4"
+ "4d91b121.93b57",
+ "75531b9b.e105c4"
]
]
},
{
- "id": "fb8d6372.3f4b4",
+ "id": "4d91b121.93b57",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 867.0352230072021,
- "y": 1239.0784349441528,
- "z": "eb27f9f.1aaf508",
+ "x": 941.0353107452393,
+ "y": 1965.0785331726074,
+ "z": "53bd9180.45e08",
"wires": [
[
- "a8972b96.6e4798"
+ "dd75e498.a44248"
]
]
},
{
- "id": "48c81a07.925bc4",
+ "id": "75531b9b.e105c4",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 867.0352230072021,
- "y": 1201.0782704353333,
- "z": "eb27f9f.1aaf508",
+ "x": 941.0353107452393,
+ "y": 1927.0783686637878,
+ "z": "53bd9180.45e08",
"wires": [
[
- "2b546f30.f74b7"
+ "e4666bb9.655488"
]
]
},
{
- "id": "2b546f30.f74b7",
+ "id": "e4666bb9.655488",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create device port rest api\" />\n",
"comments": "",
- "x": 1011.0355567932129,
- "y": 1200.078269958496,
- "z": "eb27f9f.1aaf508",
+ "x": 1085.03564453125,
+ "y": 1926.0783681869507,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "a8972b96.6e4798",
+ "id": "dd75e498.a44248",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1014.035234451294,
- "y": 1240.0782737731934,
- "z": "eb27f9f.1aaf508",
+ "x": 1088.035322189331,
+ "y": 1966.078372001648,
+ "z": "53bd9180.45e08",
"wires": [
[]
]
},
{
- "id": "7630dbec.718c24",
+ "id": "e75609bc.a3de38",
"type": "comment",
"name": "Delete port",
"info": "",
"comments": "",
- "x": 519.7011032104492,
- "y": 1191.522253036499,
- "z": "eb27f9f.1aaf508",
+ "x": 652.7012023925781,
+ "y": 1911.522358417511,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "7eaf7940.931d68",
+ "id": "3e7ff409.79880c",
"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": 566.7011032104492,
- "y": 1140.1886892318726,
- "z": "eb27f9f.1aaf508",
+ "x": 636.7012176513672,
+ "y": 1660.1888313293457,
+ "z": "53bd9180.45e08",
"wires": [
[]
]
},
{
- "id": "ea684fc6.056a2",
+ "id": "f13eba50.3d1838",
"type": "execute",
- "name": "execute RestApiCallNode bridge domain create",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdlan-bridge-domain.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/bridge-domains'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"bridgeDomainResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "name": "execute RestApiCallNode bridge domain delete",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdlan-bridge-domain-del.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/bridge-domains/action/batch-delete'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"bridgeDomainResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
"comments": "",
"outputs": 1,
- "x": 1040.6854133605957,
- "y": 1320.188857793808,
- "z": "eb27f9f.1aaf508",
+ "x": 1080.6854934692383,
+ "y": 1843.1889221668243,
+ "z": "53bd9180.45e08",
"wires": [
[
- "3b59cd60.020932",
- "c2414827.1f0308"
+ "bc2da0e7.1ce4a",
+ "69e42e4a.84408"
]
]
},
{
- "id": "3b59cd60.020932",
+ "id": "bc2da0e7.1ce4a",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1361.6854400634766,
- "y": 1337.1891782283783,
- "z": "eb27f9f.1aaf508",
+ "x": 1401.6855201721191,
+ "y": 1860.1892426013947,
+ "z": "53bd9180.45e08",
"wires": [
[
- "ce1097ce.dee208"
+ "b57ce49e.88b5a8"
]
]
},
{
- "id": "c2414827.1f0308",
+ "id": "69e42e4a.84408",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1364.6854667663574,
- "y": 1302.1889598369598,
- "z": "eb27f9f.1aaf508",
+ "x": 1404.685546875,
+ "y": 1825.1890242099762,
+ "z": "53bd9180.45e08",
"wires": [
[
- "eb07b224.53901"
+ "9387ae8d.090e"
]
]
},
{
- "id": "eb07b224.53901",
+ "id": "9387ae8d.090e",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create bridge domain rest api\" />\n",
"comments": "",
- "x": 1567.6858558654785,
- "y": 1298.1890671253204,
- "z": "eb27f9f.1aaf508",
+ "x": 1607.685935974121,
+ "y": 1821.1891314983368,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "ce1097ce.dee208",
+ "id": "b57ce49e.88b5a8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1568.6854209899902,
- "y": 1333.1889336109161,
- "z": "eb27f9f.1aaf508",
+ "x": 1608.6855010986328,
+ "y": 1856.1889979839325,
+ "z": "53bd9180.45e08",
"wires": [
[]
]
},
{
- "id": "fb63c3bc.ee861",
+ "id": "4dae46d7.5c90d8",
"type": "comment",
"name": "Create bridge domain",
"info": "",
"comments": "",
- "x": 984.3513069152832,
- "y": 1286.6330835819244,
- "z": "eb27f9f.1aaf508",
+ "x": 1024.3513870239258,
+ "y": 1809.6331479549408,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "ea24678.936eb98",
+ "id": "b3b4dc97.18506",
"type": "switchNode",
"name": "switch portSwitch",
"xml": "<switch test=\"`$prop.lan.portSwitch == 'layer2-port'`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 549.4629821777344,
- "y": 1335.855546951294,
- "z": "eb27f9f.1aaf508",
+ "x": 589.463062286377,
+ "y": 1858.8556113243103,
+ "z": "53bd9180.45e08",
"wires": [
[
- "3354418d.f828fe"
+ "20eebbbe.c7cef4"
]
]
},
{
- "id": "3354418d.f828fe",
+ "id": "20eebbbe.c7cef4",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 737.4629096984863,
- "y": 1333.9668741226196,
- "z": "eb27f9f.1aaf508",
+ "x": 777.4629898071289,
+ "y": 1856.966938495636,
+ "z": "53bd9180.45e08",
"wires": [
[
- "ea684fc6.056a2"
+ "f13eba50.3d1838"
]
]
},
{
- "id": "1a442450.4a365c",
+ "id": "92ac4604.5a24c8",
"type": "execute",
"name": "execute split ip and mask",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.lan.ipAddress`'/>\n<parameter name=\"regex\" value=\"/\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"ipandMask\"/>\n",
"comments": "",
"outputs": 1,
- "x": 565.0078735351562,
- "y": 1421.7540397644043,
- "z": "eb27f9f.1aaf508",
+ "x": 633.0079803466797,
+ "y": 1710.754201889038,
+ "z": "53bd9180.45e08",
"wires": [
[
- "9d1d8447.931768",
- "a4c1e51b.fe66b8"
+ "83755f92.869b3",
+ "d8dc34d5.644498"
]
]
},
{
- "id": "a4c1e51b.fe66b8",
+ "id": "d8dc34d5.644498",
"type": "failure",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 766.0078926086426,
- "y": 1399.7540311813354,
- "z": "eb27f9f.1aaf508",
+ "x": 834.007999420166,
+ "y": 1688.7541933059692,
+ "z": "53bd9180.45e08",
"wires": [
[
- "1daa2649.cf0d8a"
+ "800919b7.c0b4e8"
]
]
},
{
- "id": "9d1d8447.931768",
+ "id": "83755f92.869b3",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 766.0078964233398,
- "y": 1440.7540349960327,
- "z": "eb27f9f.1aaf508",
+ "x": 834.0080032348633,
+ "y": 1729.7541971206665,
+ "z": "53bd9180.45e08",
"wires": [
[
- "77f9f3ef.24297c"
+ "8fbc1d19.f0f92"
]
]
},
{
- "id": "1daa2649.cf0d8a",
+ "id": "800919b7.c0b4e8",
"type": "set",
"name": "set ipAddress prefixLength",
"xml": "<set>\n<parameter name='prop.lan.ip-address' value='`$ipandMask[0]`' />\n<parameter name='prop.lan.prefixLength' value='`$ipandMask[1]`' />",
"comments": "",
- "x": 963.0079116821289,
- "y": 1397.7540311813354,
- "z": "eb27f9f.1aaf508",
+ "x": 1031.0080184936523,
+ "y": 1686.7541933059692,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "77f9f3ef.24297c",
+ "id": "8fbc1d19.f0f92",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
"comments": "",
- "x": 921.0079040527344,
- "y": 1437.7540340423584,
- "z": "eb27f9f.1aaf508",
+ "x": 989.0080108642578,
+ "y": 1726.7541961669922,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "623ff011.75e11",
+ "id": "535f90ba.81c84",
"type": "comment",
"name": "TODO: split ip/mask",
"info": "",
"comments": "",
- "x": 962.0175437927246,
- "y": 1359.9343032836914,
- "z": "eb27f9f.1aaf508",
+ "x": 1002.0176239013672,
+ "y": 1882.9343676567078,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "b07d774b.c67f18",
+ "id": "3dfde9c2.fe1616",
"type": "execute",
"name": "execute RestApiCallNode IPSubnets delete",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdlan-ip-subnets-del.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/ip-subnets/action/batch-delete'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"lanPortResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
"comments": "",
"outputs": 1,
- "x": 623.7792434692383,
- "y": 1497.8749294281006,
- "z": "eb27f9f.1aaf508",
+ "x": 673.7793731689453,
+ "y": 1783.8751149177551,
+ "z": "53bd9180.45e08",
"wires": [
[
- "fb6426f0.aef3a8",
- "334c3bc2.ea5ee4"
+ "99c4d00e.08671",
+ "a2e86398.f1731"
]
]
},
{
- "id": "334c3bc2.ea5ee4",
+ "id": "a2e86398.f1731",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 892.7792739868164,
- "y": 1484.8749017715454,
- "z": "eb27f9f.1aaf508",
+ "x": 942.7794036865234,
+ "y": 1770.8750872612,
+ "z": "53bd9180.45e08",
"wires": [
[
- "1de305ac.79165a"
+ "af4f8529.170688"
]
]
},
{
- "id": "fb6426f0.aef3a8",
+ "id": "99c4d00e.08671",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 889.7792472839355,
- "y": 1519.8751201629639,
- "z": "eb27f9f.1aaf508",
+ "x": 939.7793769836426,
+ "y": 1805.8753056526184,
+ "z": "53bd9180.45e08",
"wires": [
[
- "e16c200f.f574"
+ "5fda12d3.42df1c"
]
]
},
{
- "id": "1de305ac.79165a",
+ "id": "af4f8529.170688",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create device port rest api\" />\n",
"comments": "",
- "x": 1045.779655456543,
- "y": 1480.8751277923584,
- "z": "eb27f9f.1aaf508",
+ "x": 1095.77978515625,
+ "y": 1766.875313282013,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "e16c200f.f574",
+ "id": "5fda12d3.42df1c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1036.7792282104492,
- "y": 1520.8748760223389,
- "z": "eb27f9f.1aaf508",
+ "x": 1086.7793579101562,
+ "y": 1806.8750615119934,
+ "z": "53bd9180.45e08",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5d312c55.693bf4",
+ "type": "set",
+ "name": "set prop.siteAttachement_length=0",
+ "xml": "<set>\n<parameter name='prop.siteAttachements_length' value='0' />\n<parameter name='prop.siteIds_length' value='0' />\n\n\n\n",
+ "comments": "",
+ "x": 588.2896728515625,
+ "y": 755.333324432373,
+ "z": "53bd9180.45e08",
+ "wires": []
+ },
+ {
+ "id": "8212e1ef.d576a",
+ "type": "update",
+ "name": "update SDWAN VPN status to AAI",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='lan-port-config' \n key='sdwan-vpn.sdwan-vpn-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id' >\n<parameter name='sdwan-vpn-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<parameter name='operational-status' value='PendingDelete' />\n<parameter name='lan-port-config-id' value='`$prop.lan-port-config-id`' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 627.3210525512695,
+ "y": 2405.031599998474,
+ "z": "53bd9180.45e08",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b6bd8ed3.859c2",
+ "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": 615.0040740966797,
+ "y": 2257.2531147003174,
+ "z": "53bd9180.45e08",
+ "wires": []
+ },
+ {
+ "id": "b9a7fd1a.5768b",
+ "type": "set",
+ "name": "set vf-module-id and vf-module-object-path",
+ "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "comments": "",
+ "x": 649.3072738647461,
+ "y": 2301.0562238693237,
+ "z": "53bd9180.45e08",
+ "wires": []
+ },
+ {
+ "id": "e69ff5d3.246378",
+ "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='PendingDelete' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.last-rpc-action' value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.last-action' value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />",
+ "comments": "",
+ "x": 616.307300567627,
+ "y": 2354.0562658309937,
+ "z": "53bd9180.45e08",
+ "wires": []
+ },
+ {
+ "id": "d319cb18.70bf18",
+ "type": "switchNode",
+ "name": "switch vnf-index",
+ "xml": "<switch test='`$vnf-index`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 605.00390625,
+ "y": 295.00390434265137,
+ "z": "53bd9180.45e08",
"wires": [
[
- "3689e594.d6f2aa"
+ "ef16bfb5.32205"
]
]
},
{
- "id": "3689e594.d6f2aa",
- "type": "set",
- "name": "set prop.lan.lanPortId",
- "xml": "<set>\n<parameter name='prop.lan.lanPortId' value='`lanPortResp.success[0].id`' />\n",
+ "id": "ef16bfb5.32205",
+ "type": "other",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
"comments": "",
- "x": 1243.6683311462402,
- "y": 1523.208342552185,
- "z": "eb27f9f.1aaf508",
+ "outputs": 1,
+ "x": 767.0039520263672,
+ "y": 294.00390338897705,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "533d6edf.10cb2"
+ ]
+ ]
+ },
+ {
+ "id": "533d6edf.10cb2",
+ "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.2540435791016,
+ "y": 291.78178119659424,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "6e845a3.14ef3a4",
+ "id": "4e34e7e4.f09c28",
"type": "execute",
- "name": "execute RestApiCallNode create vpn topology",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-topology.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpn1Id + '/topology'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "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": 613.0039138793945,
+ "y": 339.00391387939453,
+ "z": "53bd9180.45e08",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "77c41cd6.2372d4",
+ "type": "for",
+ "name": "for vf-modules.vf-module_length",
+ "xml": "<for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 640.2896423339844,
- "y": 1656.3338270187378,
- "z": "eb27f9f.1aaf508",
+ "x": 1353.0002746582031,
+ "y": 673.9999980926514,
+ "z": "53bd9180.45e08",
"wires": [
[
- "f2309f9f.30389",
- "436824e6.cfd19c"
+ "21611c6f.dff1a4"
]
]
},
{
- "id": "436824e6.cfd19c",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "6125a2b2.49651c",
+ "type": "switchNode",
+ "name": "switch this deviceName == vf-input",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == $prop.lan.deviceName`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1243.00048828125,
+ "y": 737.0001811981201,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "68612c50.e30414"
+ ]
+ ]
+ },
+ {
+ "id": "21611c6f.dff1a4",
+ "type": "for",
+ "name": "for vf-module-input-param length",
+ "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1639.0001220703125,
+ "y": 676.0000820159912,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "d87e69ee.1345e8"
+ ]
+ ]
+ },
+ {
+ "id": "68612c50.e30414",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 886.2895774841309,
- "y": 1692.3331775665283,
- "z": "eb27f9f.1aaf508",
+ "x": 1463.0002117156982,
+ "y": 738.0001888275146,
+ "z": "53bd9180.45e08",
"wires": [
[
- "cc161513.6096e8"
+ "edcb51f3.2237"
]
]
},
{
- "id": "cc161513.6096e8",
+ "id": "960703be.78273",
+ "type": "for",
+ "name": "for vf-modules.vf-module_length",
+ "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1889.0002899169922,
+ "y": 748.0000529289246,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "7bbeeb0c.35b8f4"
+ ]
+ ]
+ },
+ {
+ "id": "7bbeeb0c.35b8f4",
+ "type": "switchNode",
+ "name": "switch deviceId == input vf-id",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'deviceId'`\">\n \n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2197.0005645751953,
+ "y": 731.000020980835,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "e133b219.33252"
+ ]
+ ]
+ },
+ {
+ "id": "e133b219.33252",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2406.000602722168,
+ "y": 733.0000133514404,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "e0137def.ca4f7"
+ ]
+ ]
+ },
+ {
+ "id": "cfb82eaa.9abd5",
+ "type": "set",
+ "name": "set prop.lan.deviceId",
+ "xml": "<set>\n<parameter name='prop.lan.deviceId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />\n",
+ "comments": "",
+ "x": 2779.000629425049,
+ "y": 669.0001910924911,
+ "z": "53bd9180.45e08",
+ "wires": []
+ },
+ {
+ "id": "d87e69ee.1345e8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
- "comments": "",
"outputs": 1,
- "x": 1058.2895183563232,
- "y": 1706.333193898201,
- "z": "eb27f9f.1aaf508",
+ "x": 1868.2461585998535,
+ "y": 673.9998292922974,
+ "z": "53bd9180.45e08",
"wires": [
- []
+ [
+ "6125a2b2.49651c"
+ ]
]
},
{
- "id": "f1b7a0fd.a1f56",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn topology failed\" />\n",
+ "id": "e0137def.ca4f7",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 2567.2461738586426,
+ "y": 697.7498325109482,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "cfb82eaa.9abd5",
+ "d20ef7d4.f5f0b8"
+ ]
+ ]
+ },
+ {
+ "id": "d20ef7d4.f5f0b8",
+ "type": "set",
+ "name": "set site-vnf-index",
+ "xml": "<set>\n<parameter name='site-vnf-index' value='`$vnfidx`' />\n",
"comments": "",
- "x": 1058.2896404266357,
- "y": 1662.333193898201,
- "z": "eb27f9f.1aaf508",
+ "x": 2776.24609375,
+ "y": 715.749822974205,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "f2309f9f.30389",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
+ "id": "b9bc4317.89e3e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"outputs": 1,
- "x": 890.2894954681396,
- "y": 1650.333176612854,
- "z": "eb27f9f.1aaf508",
+ "x": 1124.496078491211,
+ "y": 675.9998455047607,
+ "z": "53bd9180.45e08",
"wires": [
[
- "f1b7a0fd.a1f56"
+ "77c41cd6.2372d4"
]
]
},
{
- "id": "c2a2820.4e02d8",
- "type": "execute",
- "name": "execute RestApiCallNode create vpn ",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/vpn'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "id": "b2d8abb3.217c58",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 607.2880249023438,
- "y": 1589.832929611206,
- "z": "eb27f9f.1aaf508",
+ "x": 972.24609375,
+ "y": 679.2498235702515,
+ "z": "53bd9180.45e08",
"wires": [
[
- "5dca5344.cc070c",
- "f5dbcc17.8c2d6"
+ "b9bc4317.89e3e"
]
]
},
{
- "id": "f5dbcc17.8c2d6",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
+ "id": "f078c09.b7bad4",
+ "type": "switchNode",
+ "name": "switch vf-modules.vf-module_length",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length >= '0'`\">\n\n<!--switch test=\"`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\"-->\n",
"comments": "",
"outputs": 1,
- "x": 832.2879238128662,
- "y": 1609.8328419923782,
- "z": "eb27f9f.1aaf508",
+ "x": 866.2460784912109,
+ "y": 628.2498235702515,
+ "z": "53bd9180.45e08",
"wires": [
[
- "ffd8c00c.52d8c"
+ "b2d8abb3.217c58"
]
]
},
{
- "id": "ffd8c00c.52d8c",
+ "id": "c16816f9.ad7738",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
+ "outputs": 1,
+ "x": 666.4961013793945,
+ "y": 588.99982213974,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "f078c09.b7bad4"
+ ]
+ ]
+ },
+ {
+ "id": "d52b4c36.b4383",
+ "type": "for",
+ "name": "for service-data.vnfs.vnf_length",
+ "xml": "<for index='vnfidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1002.28786277771,
- "y": 1612.8328419923782,
- "z": "eb27f9f.1aaf508",
+ "x": 607,
+ "y": 540.9999599456787,
+ "z": "53bd9180.45e08",
"wires": [
- []
+ [
+ "c16816f9.ad7738"
+ ]
]
},
{
- "id": "60415.0a145bec",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn failed\" />\n",
+ "id": "edcb51f3.2237",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1630.6666259765625,
+ "y": 743.9999980926514,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "960703be.78273",
+ "4982b8e3.7bf018"
+ ]
+ ]
+ },
+ {
+ "id": "4982b8e3.7bf018",
+ "type": "set",
+ "name": "set prop.vnf-id",
+ "xml": "<set>\n<parameter name='prop.vnf-id' value='`$service-data.vnfs.vnf[$vnfidx].vnf-id`' />\n\n",
"comments": "",
- "x": 1002.2879848480225,
- "y": 1568.8328419923782,
- "z": "eb27f9f.1aaf508",
+ "x": 1838.666603088379,
+ "y": 710.9999837875366,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "5dca5344.cc070c",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
+ "id": "76c5dda5.a20724",
+ "type": "switchNode",
+ "name": "switch ActivateSDWANSiteInstance",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANSiteInstance'`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1204.000015258789,
+ "y": 984.9999885559082,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "8cda715e.63dfe"
+ ]
+ ]
+ },
+ {
+ "id": "54e7e0d7.ec4c7",
+ "type": "for",
+ "name": "for vf-modules.vf-module_length",
+ "xml": "<for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 835.28786277771,
- "y": 1568.8328419923782,
- "z": "eb27f9f.1aaf508",
+ "x": 849.9998550415039,
+ "y": 952.0000286102295,
+ "z": "53bd9180.45e08",
"wires": [
[
- "60415.0a145bec"
+ "df9b68f3.e58818"
]
]
},
{
- "id": "55cb7e10.b843e",
+ "id": "8cda715e.63dfe",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1425.9999313354492,
+ "y": 985.0000700950623,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "3b6a7f.d02b6582"
+ ]
+ ]
+ },
+ {
+ "id": "7bec1948.27ddc8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2978.2502937316895,
+ "y": 1072.500097155571,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "d5a6d636.c92678"
+ ]
+ ]
+ },
+ {
+ "id": "b505ce84.b2b46",
+ "type": "set",
+ "name": "set prop.attach.siteId",
+ "xml": "<set>\n<parameter name='prop.attach.siteId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$sidx].value`' />\n",
+ "comments": "",
+ "x": 3369.2509765625,
+ "y": 1025.5001991987228,
+ "z": "53bd9180.45e08",
+ "wires": []
+ },
+ {
+ "id": "d5a6d636.c92678",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 3137.5004844665527,
+ "y": 1068.0001372098923,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "b505ce84.b2b46",
+ "4da0fe6e.eebe4",
+ "17807948.b29547"
+ ]
+ ]
+ },
+ {
+ "id": "73df7c27.84ca64",
"type": "switchNode",
"name": "switch ActivateSDWANVpnInstance",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANVpnInstance'`\">\n",
"comments": "",
"outputs": 1,
- "x": 1198.2898483276367,
- "y": 874.3332567214966,
- "z": "eb27f9f.1aaf508",
+ "x": 1001.2816162109375,
+ "y": 1147.3292617797852,
+ "z": "53bd9180.45e08",
"wires": [
[
- "35e81d22.6ca8a2"
+ "acb8bfa5.0f71a"
]
]
},
{
- "id": "f0f279f1.f5aee8",
+ "id": "df9b68f3.e58818",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 955.6229515075684,
- "y": 803.3333368301392,
- "z": "eb27f9f.1aaf508",
+ "x": 939.6147727966309,
+ "y": 1035.3293371200562,
+ "z": "53bd9180.45e08",
"wires": [
[
- "427eb2b2.29a19c",
- "55cb7e10.b843e",
- "ee6738c4.de8eb8"
+ "76c5dda5.a20724"
]
]
},
{
- "id": "35e81d22.6ca8a2",
+ "id": "acb8bfa5.0f71a",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1293.9563598632812,
- "y": 948.3333377838135,
- "z": "eb27f9f.1aaf508",
+ "x": 1234.9482421875,
+ "y": 1165.3293838500977,
+ "z": "53bd9180.45e08",
"wires": [
[
- "50c0c92c.64de28"
+ "afc867ac.84f698"
]
]
},
{
- "id": "50c0c92c.64de28",
+ "id": "afc867ac.84f698",
"type": "for",
"name": "for vf-modules.vf-module_length",
"xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1508.2062454223633,
- "y": 949.8333144187927,
- "z": "eb27f9f.1aaf508",
+ "x": 1478.1981353759766,
+ "y": 1178.8293342590332,
+ "z": "53bd9180.45e08",
"wires": [
[
- "759cda21.f2dc74"
+ "3989a47c.b3eb0c"
]
]
},
{
- "id": "759cda21.f2dc74",
+ "id": "8e8a391c.6736c8",
"type": "switchNode",
"name": "switch vpn-id",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'vpn-id'`\">\n \n\n\n",
"comments": "",
"outputs": 1,
- "x": 1755.206283569336,
- "y": 944.8333973884583,
- "z": "eb27f9f.1aaf508",
+ "x": 1917.1982345581055,
+ "y": 1230.8293769359589,
+ "z": "53bd9180.45e08",
"wires": [
[
- "848c4744.1c01a8"
+ "837b3b44.ef6fa8"
]
]
},
{
- "id": "848c4744.1c01a8",
+ "id": "837b3b44.ef6fa8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1905.9562377929688,
- "y": 946.3333129882812,
- "z": "eb27f9f.1aaf508",
+ "x": 2067.9481887817383,
+ "y": 1232.3292925357819,
+ "z": "53bd9180.45e08",
"wires": [
[
- "3b552595.502b8a"
+ "f9c5d7e8.6fe0f8"
]
]
},
{
- "id": "3b552595.502b8a",
+ "id": "f9c5d7e8.6fe0f8",
"type": "set",
"name": "set prop.vpn1Id",
- "xml": "<set>\n<parameter name='prop.vpn1Id' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />\n",
+ "xml": "<set>\n<parameter name='prop.vpnId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />\n",
"comments": "",
- "x": 2079.956985473633,
- "y": 946.3333714008331,
- "z": "eb27f9f.1aaf508",
+ "x": 2241.9489364624023,
+ "y": 1232.3293509483337,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "82be127b.4ba08",
+ "id": "4da0fe6e.eebe4",
"type": "set",
"name": "Add sites to list and update length",
"xml": "<set>\n<parameter name='prop.siteIds[$prop.siteIds_length]' value='`$prop.attach.siteId`' />\n<parameter name='prop.siteIds_length' value='`$prop.siteIds_length + 1`' />\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
"comments": "",
- "x": 2510.2903594970703,
- "y": 852.3333714008331,
- "z": "eb27f9f.1aaf508",
+ "x": 3405.2822265625,
+ "y": 1080.3294657468796,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "e04e88b3.6b7888",
+ "id": "17807948.b29547",
"type": "set",
"name": "Add site attachement to list and update length",
"xml": "<set>\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].siteId' value='`$prop.attach.siteId`' />\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles[0]' value='`$prop.role`' />\n<parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles_length' value='1' />\n<parameter name='prop.siteAttachements_length' value='`$prop.siteAttachements_length + 1`' />\n\n\n\n\n\n\n\n\n\n\n\n\n",
"comments": "",
- "x": 2541.290252685547,
- "y": 895.3333377838135,
- "z": "eb27f9f.1aaf508",
- "wires": []
- },
- {
- "id": "76875429.7977ec",
- "type": "set",
- "name": "set prop.siteAttachement_length=0",
- "xml": "<set>\n<parameter name='prop.siteAttachements_length' value='0' />\n<parameter name='prop.siteIds_length' value='0' />\n\n\n\n",
- "comments": "",
- "x": 627.2896270751953,
- "y": 600.333330154419,
- "z": "eb27f9f.1aaf508",
+ "x": 3436.282051086426,
+ "y": 1130.3294161558151,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "687fd9fe.041c58",
- "type": "block",
- "name": "block atomic",
- "xml": "<block atomic=\"true\">\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1740.6232833862305,
- "y": 828.3333358764648,
- "z": "eb27f9f.1aaf508",
- "wires": [
- [
- "703289c8.f0d638",
- "7c3e64c6.118e7c",
- "fd5e762b.9175c8"
- ]
- ]
- },
- {
- "id": "7c3e64c6.118e7c",
+ "id": "f9ac8f47.1e9e6",
"type": "switchNode",
"name": "switch role",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'role'`\">\n \n\n\n",
"comments": "",
"outputs": 1,
- "x": 1902.9562149047852,
- "y": 759.3333349227905,
- "z": "eb27f9f.1aaf508",
+ "x": 2147.948272705078,
+ "y": 968.329355597496,
+ "z": "53bd9180.45e08",
"wires": [
[
- "9d3d23c.1af69e"
+ "5c967566.19521c"
]
]
},
{
- "id": "9d3d23c.1af69e",
+ "id": "5c967566.19521c",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2065.9562187194824,
- "y": 754.3333358764648,
- "z": "eb27f9f.1aaf508",
+ "x": 2311.9482765197754,
+ "y": 968.329355597496,
+ "z": "53bd9180.45e08",
"wires": [
[
- "b50c3782.0e6ad8"
+ "3f851d36.3fe612"
]
]
},
{
- "id": "b50c3782.0e6ad8",
+ "id": "3f851d36.3fe612",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 2233.9562606811523,
- "y": 748.3333339691162,
- "z": "eb27f9f.1aaf508",
+ "x": 2499.948444366455,
+ "y": 953.3293546438217,
+ "z": "53bd9180.45e08",
"wires": [
[
- "1dffa18.8cf065f",
- "4b307f30.7cc1"
+ "45f33203.c0930c",
+ "7bf54e32.503a7",
+ "8e7a27c3.580478"
]
]
},
{
- "id": "4b307f30.7cc1",
+ "id": "7bf54e32.503a7",
"type": "switchNode",
"name": "switch sd-wan-edge",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == 'sd-wan-edge'`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 2428.9563903808594,
- "y": 709.3333253860474,
- "z": "eb27f9f.1aaf508",
+ "x": 2694.948574066162,
+ "y": 914.3293460607529,
+ "z": "53bd9180.45e08",
"wires": [
[
- "fcbf0bd1.06d8d8"
+ "777af33b.674edc"
]
]
},
{
- "id": "1dffa18.8cf065f",
+ "id": "45f33203.c0930c",
"type": "switchNode",
"name": "switch dsvpn-hub",
- "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'dsvpn-hub'`\">\n \n\n\n",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == 'dsvpn-hub'`\">\n \n\n\n",
"comments": "",
"outputs": 1,
- "x": 2425.956497192383,
- "y": 764.333340883255,
- "z": "eb27f9f.1aaf508",
+ "x": 2691.9486808776855,
+ "y": 969.3293615579605,
+ "z": "53bd9180.45e08",
"wires": [
[
- "99c61a76.666788"
+ "caa4c354.afd2"
]
]
},
{
- "id": "4a479c02.0630f4",
+ "id": "fdf6d987.e37e68",
"type": "set",
"name": "set spoke role",
"xml": "<set>\n<parameter name='prop.role' value=\"spoke\" />\n",
"comments": "",
- "x": 2758.956512451172,
- "y": 703.3333711624146,
- "z": "eb27f9f.1aaf508",
+ "x": 3024.9486961364746,
+ "y": 908.32939183712,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "5e79562c.63b268",
+ "id": "17e33b60.b53685",
"type": "set",
"name": "set hub role",
"xml": "<set>\n<parameter name='prop.role' value=\"hub\" />\n",
"comments": "",
- "x": 2757.956272125244,
- "y": 758.3333549499512,
- "z": "eb27f9f.1aaf508",
+ "x": 3023.948455810547,
+ "y": 963.3293756246567,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "fcbf0bd1.06d8d8",
+ "id": "777af33b.674edc",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2598.9563598632812,
- "y": 705,
- "z": "eb27f9f.1aaf508",
+ "x": 2864.948543548584,
+ "y": 909.9960206747055,
+ "z": "53bd9180.45e08",
"wires": [
[
- "4a479c02.0630f4"
+ "fdf6d987.e37e68"
]
]
},
{
- "id": "99c61a76.666788",
+ "id": "caa4c354.afd2",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 2602.9563598632812,
- "y": 760,
- "z": "eb27f9f.1aaf508",
+ "x": 2868.948543548584,
+ "y": 964.9960206747055,
+ "z": "53bd9180.45e08",
"wires": [
[
- "5e79562c.63b268"
+ "17e33b60.b53685"
]
]
},
{
- "id": "715f7228.db42ac",
- "type": "update",
- "name": "update SDWAN VPN status to AAI",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='lan-port-config' \n key='sdwan-vpn.sdwan-vpn-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id' >\n<parameter name='sdwan-vpn-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<parameter name='operational-status' value='PendingDelete' />\n<parameter name='lan-port-config-id' value='`$prop.lan-port-config-id`' />",
+ "id": "709b059b.1a3b4c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
"comments": "",
"outputs": 1,
- "x": 605.3209762573242,
- "y": 1872.0315465927124,
- "z": "eb27f9f.1aaf508",
+ "x": 707.606761932373,
+ "y": 1287.9920058250427,
+ "z": "53bd9180.45e08",
"wires": [
- []
+ [
+ "82979871.cd6fd8"
+ ]
]
},
{
- "id": "fd5e762b.9175c8",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic23.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"param-name\"/>\n<parameter name=\"field3\" value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name`'/>\n",
+ "id": "82979871.cd6fd8",
+ "type": "switchNode",
+ "name": "switch ActivateSDWANSiteInstance",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANSiteInstance'`\">\n",
"comments": "",
"outputs": 1,
- "x": 1898.3208618164062,
- "y": 703.53125,
- "z": "eb27f9f.1aaf508",
+ "x": 971.9920043945312,
+ "y": 1237.6626572608948,
+ "z": "53bd9180.45e08",
"wires": [
- []
+ [
+ "f8c88c15.90092"
+ ]
]
},
{
- "id": "ee6738c4.de8eb8",
- "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/svclogic24.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"request-action\"/>\n<parameter name=\"field3\" value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action`'/>\n",
+ "id": "f8c88c15.90092",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1141.3210792541504,
- "y": 704.5313692092896,
- "z": "eb27f9f.1aaf508",
+ "x": 1193.9919204711914,
+ "y": 1237.6627388000488,
+ "z": "53bd9180.45e08",
"wires": [
- []
+ [
+ "1c164ecd.76b921"
+ ]
]
},
{
- "id": "5ab12293.b61a8c",
- "type": "comment",
- "name": "**revert the changes",
- "info": "",
+ "id": "1c164ecd.76b921",
+ "type": "for",
+ "name": "for vf-modules.vf-module_length",
+ "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
"comments": "",
- "x": 1299.320888519287,
- "y": 709.0312824249268,
- "z": "eb27f9f.1aaf508",
- "wires": []
+ "outputs": 1,
+ "x": 1275.241928100586,
+ "y": 1312.1627402305603,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "c8fa5a58.80db78"
+ ]
+ ]
+ },
+ {
+ "id": "c8fa5a58.80db78",
+ "type": "block",
+ "name": "block atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1492.6070938110352,
+ "y": 1312.9920048713684,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "aa284cfd.de3c"
+ ]
+ ]
+ },
+ {
+ "id": "aa284cfd.de3c",
+ "type": "switchNode",
+ "name": "switch siteId",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'siteId'`\">\n \n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1658.242286682129,
+ "y": 1319.162847518921,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "f702cf2b.aacec"
+ ]
+ ]
+ },
+ {
+ "id": "f702cf2b.aacec",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1835.2423057556152,
+ "y": 1322.162687778473,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "b76df1d4.d74b6"
+ ]
+ ]
},
{
- "id": "530b71d0.67585",
+ "id": "b76df1d4.d74b6",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1524.3372802734375,
- "y": 626.2530469894409,
- "z": "eb27f9f.1aaf508",
+ "x": 1994.4924964904785,
+ "y": 1317.6627278327942,
+ "z": "53bd9180.45e08",
"wires": [
[
- "db40c5ed.6ed418",
- "68d688c3.70e818"
+ "b312ede7.48d31"
]
]
},
{
- "id": "68d688c3.70e818",
+ "id": "b312ede7.48d31",
"type": "set",
- "name": "set prop.vnf-id",
- "xml": "<set>\n<parameter name='prop.vnf-id' value='`$service-data.vnfs.vnf[$vnfidx].vnf-id`' />\n\n",
+ "name": "set prop.attach.siteId",
+ "xml": "<set>\n<parameter name='prop.siteId' value='`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />\n",
"comments": "",
- "x": 1716.0039558410645,
- "y": 556.2530250549316,
- "z": "eb27f9f.1aaf508",
+ "x": 2219.2428131103516,
+ "y": 1296.162739276886,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "a69a253a.e8e958",
+ "id": "3989a47c.b3eb0c",
+ "type": "block",
+ "name": "block atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1716.9918365478516,
+ "y": 1179.3293342590332,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "8e8a391c.6736c8",
+ "d0a786b4.a86d48",
+ "56d8edb1.dcf524"
+ ]
+ ]
+ },
+ {
+ "id": "d0a786b4.a86d48",
+ "type": "switchNode",
+ "name": "switch name",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'name'`\">\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1917.991844177246,
+ "y": 1179.3293232917786,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "3ed84db0.ad5f32"
+ ]
+ ]
+ },
+ {
+ "id": "3ed84db0.ad5f32",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2068.741798400879,
+ "y": 1180.8292388916016,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "8a23eec9.2e81d"
+ ]
+ ]
+ },
+ {
+ "id": "8a23eec9.2e81d",
+ "type": "set",
+ "name": "set prop.name",
+ "xml": "<set>\n<parameter name='prop.name' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />\n",
+ "comments": "",
+ "x": 2242.742546081543,
+ "y": 1180.8292973041534,
+ "z": "53bd9180.45e08",
+ "wires": []
+ },
+ {
+ "id": "506103c9.e594dc",
+ "type": "for",
+ "name": "for vf-modules.vf-module_length",
+ "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1910.2501907348633,
+ "y": 967.5001720190048,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "f9ac8f47.1e9e6"
+ ]
+ ]
+ },
+ {
+ "id": "6f32456b.72586c",
+ "type": "switchNode",
+ "name": "switch siteId",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$sidx].name == 'siteId'`\">\n \n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2801.250274658203,
+ "y": 1069.500256896019,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "7bec1948.27ddc8"
+ ]
+ ]
+ },
+ {
+ "id": "3b6a7f.d02b6582",
+ "type": "block",
+ "name": "block atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1624.5231094360352,
+ "y": 993.0272792577744,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "506103c9.e594dc"
+ ]
+ ]
+ },
+ {
+ "id": "8e7a27c3.580478",
+ "type": "for",
+ "name": "for vf-modules.vf-module_length",
+ "xml": "<for index='sidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2554.5228729248047,
+ "y": 1063.02727496624,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "6f32456b.72586c"
+ ]
+ ]
+ },
+ {
+ "id": "56d8edb1.dcf524",
+ "type": "switchNode",
+ "name": "switch topology",
+ "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'topology'`\">\n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1916.495735168457,
+ "y": 1119.7499059438705,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "d01e6e11.a971d"
+ ]
+ ]
+ },
+ {
+ "id": "d01e6e11.a971d",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2067.24568939209,
+ "y": 1121.2498215436935,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "6ddbdfd6.cc626"
+ ]
+ ]
+ },
+ {
+ "id": "6ddbdfd6.cc626",
+ "type": "set",
+ "name": "set prop.topology",
+ "xml": "<set>\n<parameter name='prop.topology' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />\n",
+ "comments": "",
+ "x": 2241.246437072754,
+ "y": 1121.2498799562454,
+ "z": "53bd9180.45e08",
+ "wires": []
+ },
+ {
+ "id": "84308c74.6696",
+ "type": "for",
+ "name": "for vf-modules.vf-module_length",
+ "xml": "<for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 605.9918594360352,
+ "y": 1191.662724018097,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "709b059b.1a3b4c"
+ ]
+ ]
+ },
+ {
+ "id": "898196c1.4be1c8",
+ "type": "for",
+ "name": "for service-data.vnfs.vnf_length",
+ "xml": "<for index='vnfidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 600.9997100830078,
+ "y": 882.9999084472656,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "1312e19.ff3371e"
+ ]
+ ]
+ },
+ {
+ "id": "1312e19.ff3371e",
"type": "switchNode",
"name": "switch prop.vnf-id match",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vnfidx].vnf-id == $prop.vnf-id`\">",
"comments": "",
"outputs": 1,
- "x": 874.0042572021484,
- "y": 677.5863618850708,
- "z": "eb27f9f.1aaf508",
+ "x": 862.0000152587891,
+ "y": 888.9999885559082,
+ "z": "53bd9180.45e08",
"wires": [
[
- "5ecfed21.a77fb4"
+ "e5973ada.69f578"
]
]
},
{
- "id": "5ecfed21.a77fb4",
+ "id": "e5973ada.69f578",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 662.0044097900391,
- "y": 752.5863652229309,
- "z": "eb27f9f.1aaf508",
+ "x": 1066.0001983642578,
+ "y": 891.9999885559082,
+ "z": "53bd9180.45e08",
"wires": [
[
- "9c314385.3cccd"
+ "54e7e0d7.ec4c7"
]
]
},
{
- "id": "efed662f.81b6a8",
+ "id": "3b1cdfc0.3a554",
"type": "comment",
"name": "if device-name match with the incomming device-name, sites in this service vnf should not be included",
"info": "",
"comments": "",
- "x": 737.0039978027344,
- "y": 849.5863828659058,
- "z": "eb27f9f.1aaf508",
+ "x": 1016.0000152587891,
+ "y": 846.9999885559082,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "728a6387.ded5dc",
- "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",
+ "id": "5399251a.d1c53c",
+ "type": "execute",
+ "name": "execute RestApiCallNode create vpn topology",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-topology.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpnId + '/topology'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
"comments": "",
- "x": 593.0039978027344,
- "y": 1724.2530612945557,
- "z": "eb27f9f.1aaf508",
- "wires": []
+ "outputs": 1,
+ "x": 658.5039520263672,
+ "y": 2143.5038986206055,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "fe03e503.9b1f18",
+ "3b9440a6.e7886"
+ ]
+ ]
},
{
- "id": "d768a494.487678",
- "type": "set",
- "name": "set vf-module-id and vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "id": "3b9440a6.e7886",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
- "x": 627.3071975708008,
- "y": 1768.056170463562,
- "z": "eb27f9f.1aaf508",
- "wires": []
+ "outputs": 1,
+ "x": 919.5038585662842,
+ "y": 2170.503242611885,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "818c55d3.807c68"
+ ]
+ ]
},
{
- "id": "24c5eb03.2a37b4",
- "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='PendingDelete' />\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`' />",
+ "id": "818c55d3.807c68",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1089.503797531128,
+ "y": 2173.503242611885,
+ "z": "53bd9180.45e08",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fe431e88.b86a8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn topology failed\" />\n",
"comments": "",
- "x": 594.3072242736816,
- "y": 1821.056212425232,
- "z": "eb27f9f.1aaf508",
+ "x": 1089.5039196014404,
+ "y": 2129.503242611885,
+ "z": "53bd9180.45e08",
"wires": []
},
{
- "id": "b36b6e5f.5d733",
- "type": "switchNode",
- "name": "switch vnf-index",
- "xml": "<switch test='`$vnf-index`'>\n",
+ "id": "fe03e503.9b1f18",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 596.00390625,
- "y": 287.00390625,
- "z": "eb27f9f.1aaf508",
+ "x": 922.5037975311279,
+ "y": 2129.503242611885,
+ "z": "53bd9180.45e08",
"wires": [
[
- "eab1927d.01f0a"
+ "fe431e88.b86a8"
]
]
},
{
- "id": "eab1927d.01f0a",
- "type": "other",
- "name": "Null",
- "xml": "<outcome value=''>\n",
+ "id": "a8ac6552.309118",
+ "type": "execute",
+ "name": "execute RestApiCallNode create vpn ",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/vpn'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 640.5022888183594,
+ "y": 2053.0029220581055,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "ee15b935.f63c98",
+ "c139232f.6bd6e"
+ ]
+ ]
+ },
+ {
+ "id": "c139232f.6bd6e",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 758.0039520263672,
- "y": 286.0039052963257,
- "z": "eb27f9f.1aaf508",
+ "x": 863.5022029876709,
+ "y": 2077.0028907060623,
+ "z": "53bd9180.45e08",
"wires": [
[
- "a638e200.1e293"
+ "fbcee124.bb586"
]
]
},
{
- "id": "a638e200.1e293",
+ "id": "fbcee124.bb586",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1033.5021419525146,
+ "y": 2080.0028907060623,
+ "z": "53bd9180.45e08",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8f294b6c.2dfef8",
"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",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing Create vpn failed\" />\n",
"comments": "",
- "x": 907.2540435791016,
- "y": 283.78178310394287,
- "z": "eb27f9f.1aaf508",
+ "x": 1033.5022640228271,
+ "y": 2036.0028907060623,
+ "z": "53bd9180.45e08",
"wires": []
+ },
+ {
+ "id": "ee15b935.f63c98",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 866.5021419525146,
+ "y": 2036.0028907060623,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "8f294b6c.2dfef8"
+ ]
+ ]
+ },
+ {
+ "id": "7ffab63e.0ceec8",
+ "type": "for",
+ "name": "for service-data.vnfs.vnf_length",
+ "xml": "<for index='vnfidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 593.75390625,
+ "y": 1018.7539043426514,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "f2ff74c6.2d66c8"
+ ]
+ ]
+ },
+ {
+ "id": "f2ff74c6.2d66c8",
+ "type": "for",
+ "name": "for vf-modules.vf-module_length",
+ "xml": "<for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 728.7540435791016,
+ "y": 1087.754051208496,
+ "z": "53bd9180.45e08",
+ "wires": [
+ [
+ "73df7c27.84ca64"
+ ]
+ ]
}
]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.json index d66530dd..74c64fd7 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.json @@ -1,22 +1,22 @@ [
{
- "id": "5b377527.318dfc",
+ "id": "ec163be6.3f3848",
"type": "method",
"name": "method sdwan-vf-operation-lanport-delete",
"xml": "<method rpc='sdwan-vf-operation-lanport-delete' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 289.00390625,
- "y": 239.5863505601883,
- "z": "6e499246.1345bc",
+ "x": 257,
+ "y": 184.58635187149048,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "b6ef6d6.088219"
+ "4793fbaf.4f8194"
]
]
},
{
- "id": "5fa9c4d6.4ec86c",
+ "id": "1bec69d8.54d756",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -24,707 +24,707 @@ "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": 277.28961181640625,
- "y": 140.23810827732086,
- "z": "6e499246.1345bc",
+ "x": 245.28570556640625,
+ "y": 85.23810958862305,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "5b377527.318dfc"
+ "ec163be6.3f3848"
]
]
},
{
- "id": "3e4efa76.6244b6",
+ "id": "8b3450fa.11be1",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 198.00390625,
- "y": 77.99999868869781,
- "z": "6e499246.1345bc",
+ "x": 166,
+ "y": 23,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "5fa9c4d6.4ec86c"
+ "1bec69d8.54d756"
]
]
},
{
- "id": "b6ef6d6.088219",
+ "id": "4793fbaf.4f8194",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 305.6706085205078,
- "y": 468.6667181253433,
- "z": "6e499246.1345bc",
+ "x": 273.6667022705078,
+ "y": 413.6667194366455,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "71f387b9.003178",
- "a6a43527.61a1e8",
- "4d09affd.63ec7",
- "158609f4.fc8936",
- "7132f9a1.7bd008",
- "379a2e2e.3a8382",
- "6e5f86e6.881a38",
- "13d12ad9.b40a25",
- "50901066.93c6f",
- "71b32013.3584b",
- "c59a5d45.5b06a",
- "4315ff0e.d57d4",
- "cd89e451.16b298"
+ "9dfafdb.c466",
+ "a32b04df.766888",
+ "1b926ba7.620a94",
+ "d56abb49.55c298",
+ "dcdd31d0.479e7",
+ "fb17bb23.b22de8",
+ "4443f52d.bb0e4c",
+ "3673a6e1.e30cca",
+ "2bcb08d.42550f8",
+ "48c6ddd.4092a24",
+ "96d011a.ebe42f",
+ "279f2432.3dd51c",
+ "9d4a1934.79a7a8"
]
]
},
{
- "id": "a6a43527.61a1e8",
+ "id": "a32b04df.766888",
"type": "for",
"name": "for each vnf",
"xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 640.0352554321289,
- "y": 249.26914072036743,
- "z": "6e499246.1345bc",
+ "x": 608.0313491821289,
+ "y": 194.26914203166962,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "5c4cd934.c95538"
+ "f4a89702.3708f8"
]
]
},
{
- "id": "71f387b9.003178",
+ "id": "9dfafdb.c466",
"type": "switchNode",
"name": "switch vnf_length",
"xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 645.0039100646973,
- "y": 188.00001001358032,
- "z": "6e499246.1345bc",
+ "x": 613.0000038146973,
+ "y": 133.0000113248825,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "ec17d276.93fee"
+ "58b9bfe5.41c97"
]
]
},
{
- "id": "ec17d276.93fee",
+ "id": "58b9bfe5.41c97",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 825.0038909912109,
- "y": 186.99999952316284,
- "z": "6e499246.1345bc",
+ "x": 792.9999847412109,
+ "y": 132.00000083446503,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "2a49b970.30fb16"
+ "2d04caf9.98dff6"
]
]
},
{
- "id": "2a49b970.30fb16",
+ "id": "2d04caf9.98dff6",
"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": 974.4326171875,
- "y": 188.14291715621948,
- "z": "6e499246.1345bc",
+ "x": 942.4287109375,
+ "y": 133.14291846752167,
+ "z": "1c424bc5.8e5824",
"wires": []
},
{
- "id": "5c4cd934.c95538",
+ "id": "f4a89702.3708f8",
"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": 863.00390625,
- "y": 250.0000057220459,
- "z": "6e499246.1345bc",
+ "x": 831,
+ "y": 195.00000703334808,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "2a4d20b9.66aac"
+ "4ee74d2f.481124"
]
]
},
{
- "id": "2a4d20b9.66aac",
+ "id": "4ee74d2f.481124",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1078.003890991211,
- "y": 247.99999952316284,
- "z": "6e499246.1345bc",
+ "x": 1045.999984741211,
+ "y": 193.00000083446503,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "991cadde.a1c2"
+ "864b8c78.81cb3"
]
]
},
{
- "id": "991cadde.a1c2",
+ "id": "864b8c78.81cb3",
"type": "set",
"name": "set vnf-index",
"xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
"comments": "",
- "x": 1242.003890991211,
- "y": 242.99999952316284,
- "z": "6e499246.1345bc",
+ "x": 1209.999984741211,
+ "y": 188.00000083446503,
+ "z": "1c424bc5.8e5824",
"wires": []
},
{
- "id": "4d09affd.63ec7",
+ "id": "1b926ba7.620a94",
"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": 692.0039405822754,
- "y": 391.00002348423004,
- "z": "6e499246.1345bc",
+ "x": 660.0000343322754,
+ "y": 336.0000247955322,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "7db8009f.80aa9",
- "7fce8758.381048",
- "58a4a3cc.ac1abc"
+ "f160fe58.60ceb",
+ "c6dbecb6.3daf1",
+ "78728405.050dbc"
]
]
},
{
- "id": "7fce8758.381048",
+ "id": "c6dbecb6.3daf1",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 914.0039329528809,
- "y": 425.0000330209732,
- "z": "6e499246.1345bc",
+ "x": 882.0000267028809,
+ "y": 370.0000343322754,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "c31ea383.0d2c3"
+ "8b2c8779.a3f058"
]
]
},
{
- "id": "7db8009f.80aa9",
+ "id": "f160fe58.60ceb",
"type": "outcome",
"name": "0",
"xml": "<outcome value='0'>\n",
"comments": "",
"outputs": 1,
- "x": 919.0039291381836,
- "y": 372.0000320672989,
- "z": "6e499246.1345bc",
+ "x": 887.0000228881836,
+ "y": 317.0000333786011,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "c31ea383.0d2c3"
+ "8b2c8779.a3f058"
]
]
},
{
- "id": "c31ea383.0d2c3",
+ "id": "8b2c8779.a3f058",
"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": 1077.0039329528809,
- "y": 385.0000330209732,
- "z": "6e499246.1345bc",
+ "x": 1045.0000267028809,
+ "y": 330.0000343322754,
+ "z": "1c424bc5.8e5824",
"wires": []
},
{
- "id": "58a4a3cc.ac1abc",
+ "id": "78728405.050dbc",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 914.0039329528809,
- "y": 486.0000330209732,
- "z": "6e499246.1345bc",
+ "x": 882.0000267028809,
+ "y": 431.0000343322754,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "d3465076.36c57"
+ "3894cc60.de2194"
]
]
},
{
- "id": "b0e78257.0ab82",
+ "id": "70ed1707.f5ee78",
"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": 1268.00394821167,
- "y": 484.0000469684601,
- "z": "6e499246.1345bc",
+ "x": 1236.00004196167,
+ "y": 429.00004827976227,
+ "z": "1c424bc5.8e5824",
"wires": []
},
{
- "id": "d3465076.36c57",
+ "id": "3894cc60.de2194",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1075.003978729248,
- "y": 483.00002443790436,
- "z": "6e499246.1345bc",
+ "x": 1043.000072479248,
+ "y": 428.00002574920654,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "b0e78257.0ab82",
- "d9692dd.614b9d"
+ "70ed1707.f5ee78",
+ "ec070549.11ed28"
]
]
},
{
- "id": "d9692dd.614b9d",
+ "id": "ec070549.11ed28",
"type": "for",
"name": "for each existing vf-index",
"xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1287.0039176940918,
- "y": 537.00002348423,
- "z": "6e499246.1345bc",
+ "x": 1255.0000114440918,
+ "y": 482.0000247955322,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "45a4bb37.a28924"
+ "fcb13450.487cd8"
]
]
},
{
- "id": "45a4bb37.a28924",
+ "id": "fcb13450.487cd8",
"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": 1558.0039367675781,
- "y": 538.0000606775284,
- "z": "6e499246.1345bc",
+ "x": 1526.0000305175781,
+ "y": 483.00006198883057,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "a0aa45d1.8fe618"
+ "f167edc3.b2418"
]
]
},
{
- "id": "a0aa45d1.8fe618",
+ "id": "f167edc3.b2418",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1771.0040607452393,
- "y": 525.0000301599503,
- "z": "6e499246.1345bc",
+ "x": 1739.0001544952393,
+ "y": 470.00003147125244,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "e8f5881c.0d1318"
+ "3335b07e.93a8c"
]
]
},
{
- "id": "e8f5881c.0d1318",
+ "id": "3335b07e.93a8c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1923.0040321350098,
- "y": 527.00002348423,
- "z": "6e499246.1345bc",
+ "x": 1891.0001258850098,
+ "y": 472.0000247955322,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "f7c8637f.374ce",
- "c9be57ad.3da878",
- "26312e31.67daa2"
+ "3d815800.695568",
+ "da733ba9.b543b8",
+ "ab8c2e99.50d5d"
]
]
},
{
- "id": "f7c8637f.374ce",
+ "id": "3d815800.695568",
"type": "set",
"name": "set tmp.vidx and ctx.vnf-data",
"xml": "<set>\n<parameter name='tmp.vidx' value='`$idx`' />\n<parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\n",
"comments": "",
- "x": 2145.0040321350098,
- "y": 523.00002348423,
- "z": "6e499246.1345bc",
+ "x": 2113.0001258850098,
+ "y": 468.0000247955322,
+ "z": "1c424bc5.8e5824",
"wires": []
},
{
- "id": "c9be57ad.3da878",
+ "id": "da733ba9.b543b8",
"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": 2151.0040321350098,
- "y": 572.00002348423,
- "z": "6e499246.1345bc",
+ "x": 2119.0001258850098,
+ "y": 517.0000247955322,
+ "z": "1c424bc5.8e5824",
"wires": []
},
{
- "id": "26312e31.67daa2",
+ "id": "ab8c2e99.50d5d",
"type": "call",
"name": "call sdwan-get-vf-module-lan-param",
- "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lan-param' mode='sync' >\n",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lanport-param' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 2179.004253387451,
- "y": 620.0000292062759,
- "z": "6e499246.1345bc",
+ "x": 2147.000347137451,
+ "y": 565.0000305175781,
+ "z": "1c424bc5.8e5824",
"wires": [
[]
]
},
{
- "id": "158609f4.fc8936",
+ "id": "d56abb49.55c298",
"type": "switchNode",
"name": "switch tmp.vidx ",
"xml": "<switch test=\"`$tmp.vidx`\">\n\n",
"comments": "",
"outputs": 1,
- "x": 631.0351524353027,
- "y": 564.0161062479019,
- "z": "6e499246.1345bc",
+ "x": 599.0312461853027,
+ "y": 509.0161075592041,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "cbb03bf0.425b98"
+ "a2f7bc45.7d854"
]
]
},
{
- "id": "cbb03bf0.425b98",
+ "id": "a2f7bc45.7d854",
"type": "outcome",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 778.463794708252,
- "y": 563.5875164270401,
- "z": "6e499246.1345bc",
+ "x": 746.459888458252,
+ "y": 508.5875177383423,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "6af4136a.19a86c"
+ "a5b6de1f.319b7"
]
]
},
{
- "id": "6af4136a.19a86c",
+ "id": "a5b6de1f.319b7",
"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": 927.892520904541,
- "y": 564.7304340600967,
- "z": "6e499246.1345bc",
+ "x": 895.888614654541,
+ "y": 509.7304353713989,
+ "z": "1c424bc5.8e5824",
"wires": []
},
{
- "id": "7132f9a1.7bd008",
+ "id": "9d4a1934.79a7a8",
"type": "switchNode",
"name": "switch vf-module-oper-status",
"xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.order-status`'>\n",
"comments": "",
"outputs": 1,
- "x": 675.3333129882812,
- "y": 634.3333116769791,
- "z": "6e499246.1345bc",
+ "x": 643.3294067382812,
+ "y": 579.3333129882812,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "32ea7a53.265046",
- "d6d3b52a.3f5ab8"
+ "88c55560.ea56c8",
+ "5f573696.518908"
]
]
},
{
- "id": "32ea7a53.265046",
+ "id": "88c55560.ea56c8",
"type": "outcome",
"name": "outcome PendingDelete",
"xml": "<outcome value='PendingDelete'>\n",
"comments": "",
"outputs": 1,
- "x": 966.1665802001953,
- "y": 638.444434762001,
- "z": "6e499246.1345bc",
+ "x": 930.1627044677734,
+ "y": 562.4444751739502,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "6b31ad53.5727b4"
+ "ddef1b.d5ace0e8"
]
]
},
{
- "id": "d6d3b52a.3f5ab8",
+ "id": "5f573696.518908",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 933.1667175292969,
- "y": 690.444487452507,
- "z": "6e499246.1345bc",
+ "x": 914.1628684997559,
+ "y": 608.4445171356201,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "148355e2.614e0a"
+ "d2e1da0b.14c268"
]
]
},
{
- "id": "148355e2.614e0a",
+ "id": "d2e1da0b.14c268",
"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 is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",
"comments": "",
- "x": 1092.6664848327637,
- "y": 693.4444864988327,
- "z": "6e499246.1345bc",
+ "x": 1131.6626281738281,
+ "y": 607.4444761276245,
+ "z": "1c424bc5.8e5824",
"wires": []
},
{
- "id": "6b31ad53.5727b4",
+ "id": "ddef1b.d5ace0e8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1163.4729804992676,
- "y": 648.7695890665054,
- "z": "6e499246.1345bc",
+ "x": 1144.4691066741943,
+ "y": 560.7696704864502,
+ "z": "1c424bc5.8e5824",
"wires": [
[]
]
},
{
- "id": "13d12ad9.b40a25",
+ "id": "4443f52d.bb0e4c",
"type": "returnSuccess",
"name": "return success",
"xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
"comments": "",
- "x": 646.4445304870605,
- "y": 1081.2221623659134,
- "z": "6e499246.1345bc",
+ "x": 614.4406242370605,
+ "y": 1026.2221636772156,
+ "z": "1c424bc5.8e5824",
"wires": []
},
{
- "id": "71b32013.3584b",
+ "id": "2bcb08d.42550f8",
"type": "set",
"name": "set prop.vnfNewidx",
"xml": "<set>\n<parameter name='prop.vnfidxLen' value='`0`' />\n",
"comments": "",
- "x": 653.531177520752,
- "y": 705.3334804773331,
- "z": "6e499246.1345bc",
+ "x": 621.527271270752,
+ "y": 650.3334817886353,
+ "z": "1c424bc5.8e5824",
"wires": []
},
{
- "id": "50901066.93c6f",
+ "id": "3673a6e1.e30cca",
"type": "for",
"name": "for lidx..service-data.vf-modules.vf-module[]",
"xml": "<for index='lidx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 729.5310974121094,
- "y": 759.3333555459976,
- "z": "6e499246.1345bc",
+ "x": 697.5271911621094,
+ "y": 704.3333568572998,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "18389e8.0583e62"
+ "811b86b3.145198"
]
]
},
{
- "id": "379a2e2e.3a8382",
+ "id": "dcdd31d0.479e7",
"type": "set",
"name": "set new vnf length",
"xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length\" value='`$prop.vnfidxLen`'/>\n\n\t\n",
"comments": "",
- "x": 653.6324691772461,
- "y": 812.1375733613968,
- "z": "6e499246.1345bc",
+ "x": 621.6285629272461,
+ "y": 757.137574672699,
+ "z": "1c424bc5.8e5824",
"wires": []
},
{
- "id": "c59a5d45.5b06a",
+ "id": "48c6ddd.4092a24",
"type": "set",
"name": "Remove vnf from ServiceData",
"xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen].\" value=\"\"/>\n",
"comments": "",
- "x": 694.531135559082,
- "y": 859.333486199379,
- "z": "6e499246.1345bc",
+ "x": 662.527229309082,
+ "y": 804.3334875106812,
+ "z": "1c424bc5.8e5824",
"wires": []
},
{
- "id": "18389e8.0583e62",
+ "id": "811b86b3.145198",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 989.5310878753662,
- "y": 766.3332153558731,
- "z": "6e499246.1345bc",
+ "x": 957.5271816253662,
+ "y": 711.3332166671753,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "a366647e.22aaf8"
+ "1e6e592d.12c717"
]
]
},
{
- "id": "4315ff0e.d57d4",
+ "id": "96d011a.ebe42f",
"type": "delete",
"name": "delete lanport vf instance configuration in AAI",
"xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='lan-port-config' \n key='lan-port-config.lan-port-config-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id'>\n",
"comments": "",
"outputs": 1,
- "x": 728.5315055847168,
- "y": 1028.5948683023453,
- "z": "6e499246.1345bc",
+ "x": 696.5275993347168,
+ "y": 973.5948696136475,
+ "z": "1c424bc5.8e5824",
"wires": [
[]
]
},
{
- "id": "a366647e.22aaf8",
+ "id": "1e6e592d.12c717",
"type": "switchNode",
"name": "switch vnf-id found",
"xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$lidx].vf-module-data.vf-module-information.vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",
"comments": "",
"outputs": 1,
- "x": 1175.5311546325684,
- "y": 766.3333760499954,
- "z": "6e499246.1345bc",
+ "x": 1143.5272483825684,
+ "y": 711.3333773612976,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "c7c20dda.52c1b"
+ "33904649.f29baa"
]
]
},
{
- "id": "c7c20dda.52c1b",
+ "id": "33904649.f29baa",
"type": "outcomeFalse",
"name": "false",
"xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 1344.531162261963,
- "y": 765.3332134485245,
- "z": "6e499246.1345bc",
+ "x": 1312.527256011963,
+ "y": 710.3332147598267,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "72fa222d.49f9ac"
+ "feb2eba6.9b1178"
]
]
},
{
- "id": "72fa222d.49f9ac",
+ "id": "feb2eba6.9b1178",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 1498.5310010910034,
- "y": 757.3332144021988,
- "z": "6e499246.1345bc",
+ "x": 1466.5270948410034,
+ "y": 702.333215713501,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "ed2c94b0.3c96e8",
- "f18820dc.cc2b"
+ "1c71b1a3.8a840e",
+ "76b09d29.70bbf4"
]
]
},
{
- "id": "ed2c94b0.3c96e8",
+ "id": "1c71b1a3.8a840e",
"type": "set",
"name": "set vnf data",
- "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen].vnf-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[lidx].vf-module-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen].vnf-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[lidx].vf-module-data.`' />\n",
+ "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen].vf-module-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$lidx].vf-module-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen].vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$lidx].vf-module-data.`' />\n",
"comments": "",
- "x": 1663.531096458435,
- "y": 732.3333698511124,
- "z": "6e499246.1345bc",
+ "x": 1631.527190208435,
+ "y": 677.3333711624146,
+ "z": "1c424bc5.8e5824",
"wires": []
},
{
- "id": "f18820dc.cc2b",
+ "id": "76b09d29.70bbf4",
"type": "set",
"name": "set prop.vnfNewidx",
"xml": "<set>\n<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\n",
"comments": "",
- "x": 1685.531096458435,
- "y": 788.3333336114883,
- "z": "6e499246.1345bc",
+ "x": 1653.527190208435,
+ "y": 733.3333349227905,
+ "z": "1c424bc5.8e5824",
"wires": []
},
{
- "id": "6e5f86e6.881a38",
+ "id": "fb17bb23.b22de8",
"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": 670.333366394043,
- "y": 975.6666570901871,
- "z": "6e499246.1345bc",
+ "x": 638.329460144043,
+ "y": 920.6666584014893,
+ "z": "1c424bc5.8e5824",
"wires": []
},
{
- "id": "8ba40e29.5c2bb",
+ "id": "c43a3a93.767aa8",
"type": "set",
"name": "Remove vnf from ServiceData",
"xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].\" value=\"\"/>\n",
"comments": "",
- "x": 684.3372116088867,
- "y": 909.5862270593643,
- "z": "6e499246.1345bc",
+ "x": 652.3333053588867,
+ "y": 854.5862283706665,
+ "z": "1c424bc5.8e5824",
"wires": []
},
{
- "id": "cd89e451.16b298",
+ "id": "279f2432.3dd51c",
"type": "switchNode",
"name": "switch vnf-index",
"xml": "<switch test='`$vnf-index`'>\n",
"comments": "",
"outputs": 1,
- "x": 649.00390625,
- "y": 314.00390625,
- "z": "6e499246.1345bc",
+ "x": 617,
+ "y": 259.0039075613022,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "ccd2db16.3151b8"
+ "145975f0.e3dbaa"
]
]
},
{
- "id": "ccd2db16.3151b8",
+ "id": "145975f0.e3dbaa",
"type": "other",
"name": "Null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 811.0039520263672,
- "y": 313.0039052963257,
- "z": "6e499246.1345bc",
+ "x": 779.0000457763672,
+ "y": 258.00390660762787,
+ "z": "1c424bc5.8e5824",
"wires": [
[
- "2eb95e60.9609a2"
+ "3cec081f.179438"
]
]
},
{
- "id": "2eb95e60.9609a2",
+ "id": "3cec081f.179438",
"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": 960.2540435791016,
- "y": 310.78178310394287,
- "z": "6e499246.1345bc",
+ "x": 928.2501373291016,
+ "y": 255.78178441524506,
+ "z": "1c424bc5.8e5824",
"wires": []
}
]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json index 65c2f0ec..3414cb9e 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json @@ -1,36 +1,36 @@ [
{
- "id": "4d340fd2.1d47a",
+ "id": "aeae6125.a8d28",
"type": "method",
"name": "method vnf-topology-operation-vpn-site-resource-create",
"xml": "<method rpc='vnf-topology-operation-vpn-site-resource-create' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 251.00390625,
- "y": 191.9999925820157,
- "z": "b6e8aa45.a03d48",
+ "x": 265,
+ "y": 223.9999925820157,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "dd995ca6.5527c"
+ "10f15a6d.ba1d76"
]
]
},
{
- "id": "83ce2cf0.a21b",
+ "id": "3eb5635c.ae734c",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 127.57528686523438,
- "y": 44,
- "z": "b6e8aa45.a03d48",
+ "x": 141.57138061523438,
+ "y": 76,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "d4e5788.5ad9988"
+ "1821ad11.5dad23"
]
]
},
{
- "id": "d4e5788.5ad9988",
+ "id": "1821ad11.5dad23",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
@@ -38,337 +38,432 @@ "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": 229.86099243164062,
- "y": 102.23810407798737,
- "z": "b6e8aa45.a03d48",
+ "x": 243.85708618164062,
+ "y": 134.23810407798737,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "4d340fd2.1d47a"
+ "aeae6125.a8d28"
]
]
},
{
- "id": "dd995ca6.5527c",
+ "id": "10f15a6d.ba1d76",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
- "x": 231.24195098876953,
- "y": 363.6666643349454,
- "z": "b6e8aa45.a03d48",
+ "x": 245.23804473876953,
+ "y": 395.6666643349454,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "9e4483c6.3ac77",
- "a13164e4.2addc8",
- "3a6751cb.2db1fe",
- "deb0deb9.10aa8",
- "8f8480.f469fb8",
- "f27c92ed.2a351",
- "4152c1db.9724f",
- "34769e57.986742",
- "27f27223.64947e",
- "5e423ee5.be879",
- "dfdcb682.501ff8"
+ "175dc57.fde8c3b",
+ "3afb3c65.1ca3a4",
+ "fadde341.82f5a",
+ "9885c8cf.ded0d8",
+ "a5e91b3d.29e478",
+ "6e79157a.cf280c",
+ "fff46357.6f3ad",
+ "5da9f931.70bc48",
+ "df8e278a.898b28",
+ "3a3acb9a.529fc4",
+ "ff8a3cb6.2dc93",
+ "1bd26429.61c74c"
]
]
},
{
- "id": "a13164e4.2addc8",
+ "id": "3afb3c65.1ca3a4",
"type": "set",
"name": "set vnf-level-oper-status to Created",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",
"comments": "",
- "x": 665.3887023925781,
- "y": 617.6705932617188,
- "z": "b6e8aa45.a03d48",
+ "x": 667.3848571777344,
+ "y": 759.670597076416,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "9e4483c6.3ac77",
+ "id": "175dc57.fde8c3b",
"type": "set",
"name": "copy input data to service data",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id' value='`$prop.vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='$vnf-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' value='$vnf-topology-operation-input.vnf-request-input.' />\n\n",
"comments": "",
- "x": 657.2418899536133,
- "y": 512.6668453216553,
- "z": "b6e8aa45.a03d48",
+ "x": 659.2380447387695,
+ "y": 654.6668491363525,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "8f8480.f469fb8",
+ "id": "a5e91b3d.29e478",
"type": "execute",
"name": "execute generate-vnf-index",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vnf-id\"/>\n",
"comments": "",
"outputs": 1,
- "x": 645.5753936767578,
- "y": 462.33342933654785,
- "z": "b6e8aa45.a03d48",
+ "x": 647.5715484619141,
+ "y": 604.3334331512451,
+ "z": "3deddfaf.57c2f",
"wires": [
[]
]
},
{
- "id": "dfdcb682.501ff8",
+ "id": "ff8a3cb6.2dc93",
"type": "set",
"name": "set vnf-index to service data",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id' value='`$prop.vnf-id`' />\n",
"comments": "",
- "x": 656.5754699707031,
- "y": 569.3334331512451,
- "z": "b6e8aa45.a03d48",
+ "x": 658.5716247558594,
+ "y": 711.3334369659424,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "3a6751cb.2db1fe",
+ "id": "fadde341.82f5a",
"type": "switchNode",
"name": "switch service-data.vnfs.vnf_length",
"xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
"comments": "",
"outputs": 1,
- "x": 660.5752716064453,
- "y": 242.3333559036255,
- "z": "b6e8aa45.a03d48",
+ "x": 674.5713653564453,
+ "y": 274.3333559036255,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "2c3f6b93.ddbca4",
- "29bbdb18.cfe584"
+ "fe0779f6.a341a8",
+ "9f0ded05.d925c"
]
]
},
{
- "id": "2c3f6b93.ddbca4",
+ "id": "fe0779f6.a341a8",
"type": "other",
"name": "NULL",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 895.2896575927734,
- "y": 237.47617626190186,
- "z": "b6e8aa45.a03d48",
+ "x": 909.2857513427734,
+ "y": 269.47617626190186,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "8e783130.b1886"
+ "e3b683ce.f47fd"
]
]
},
{
- "id": "8e783130.b1886",
+ "id": "e3b683ce.f47fd",
"type": "set",
"name": "set vnf-index=0",
"xml": "<set>\n<parameter name='vnf-index' value='0' />\n",
"comments": "",
- "x": 1055.5753631591797,
- "y": 237.47626781463623,
- "z": "b6e8aa45.a03d48",
+ "x": 1069.5714569091797,
+ "y": 269.47626781463623,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "29bbdb18.cfe584",
+ "id": "9f0ded05.d925c",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 891.7181968688965,
- "y": 270.76200771331787,
- "z": "b6e8aa45.a03d48",
+ "x": 905.7142906188965,
+ "y": 302.76200771331787,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "64bc2d84.970e54"
+ "411ddf99.4fbb3"
]
]
},
{
- "id": "c816157.792fce8",
+ "id": "b6024395.bc24",
"type": "set",
"name": "set vnf-index = vnf_length",
"xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",
"comments": "",
- "x": 1284.575439453125,
- "y": 249.04773330688477,
- "z": "b6e8aa45.a03d48",
+ "x": 1298.571533203125,
+ "y": 281.04773330688477,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "a9c0fb1a.4ae688",
+ "id": "3b57b625.74c07a",
"type": "for",
"name": "for each existing VNF",
"xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 1273.0040588378906,
- "y": 284.04770517349243,
- "z": "b6e8aa45.a03d48",
+ "x": 1287.0001525878906,
+ "y": 316.04770517349243,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "e4810c54.16f7c"
+ "a7076dba.f36af"
]
]
},
{
- "id": "64bc2d84.970e54",
+ "id": "411ddf99.4fbb3",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1026.4324798583984,
- "y": 272.76197719573975,
- "z": "b6e8aa45.a03d48",
+ "x": 1040.4285736083984,
+ "y": 304.76197719573975,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "c816157.792fce8",
- "a9c0fb1a.4ae688"
+ "b6024395.bc24",
+ "3b57b625.74c07a"
]
]
},
{
- "id": "e4810c54.16f7c",
+ "id": "a7076dba.f36af",
"type": "switchNode",
"name": "switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id",
"xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",
"comments": "",
"outputs": 1,
- "x": 1666.289794921875,
- "y": 284.61918926239014,
- "z": "b6e8aa45.a03d48",
+ "x": 1680.285888671875,
+ "y": 316.61918926239014,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "d88564b1.978518"
+ "b4dc78a5.d896c8"
]
]
},
{
- "id": "d88564b1.978518",
+ "id": "b4dc78a5.d896c8",
"type": "outcomeTrue",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 1947.575496673584,
- "y": 283.19059467315674,
- "z": "b6e8aa45.a03d48",
+ "x": 1961.571590423584,
+ "y": 315.19059467315674,
+ "z": "3deddfaf.57c2f",
"wires": [
[
- "eb2d673c.26d6e8"
+ "51ac74f.88fd58c"
]
]
},
{
- "id": "5a4256cd.31fdd8",
+ "id": "4be264b1.270e6c",
"type": "comment",
"name": "make sure this vnf-id doesn't exist already",
"info": "",
"comments": "",
- "x": 1635.4324111938477,
- "y": 248.1905813217163,
- "z": "b6e8aa45.a03d48",
+ "x": 1649.4285049438477,
+ "y": 280.1905813217163,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "deb0deb9.10aa8",
+ "id": "9885c8cf.ded0d8",
"type": "set",
"name": "set new vnf_length",
"xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",
"comments": "",
- "x": 617.5753936767578,
- "y": 410.33342599868774,
- "z": "b6e8aa45.a03d48",
+ "x": 619.5715484619141,
+ "y": 552.333429813385,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "f27c92ed.2a351",
+ "id": "6e79157a.cf280c",
"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": 604.5753555297852,
- "y": 880.59694480896,
- "z": "b6e8aa45.a03d48",
+ "x": 606.5715103149414,
+ "y": 1022.5969486236572,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "5e423ee5.be879",
+ "id": "3a3acb9a.529fc4",
"type": "save",
"name": "save service relationship in AAI",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \n AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/generic-vnfs/generic-vnf/' + $prop.vnf-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"generic-vnf.vnf-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vnf-id`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 667.2421264648438,
- "y": 827.5968379974365,
- "z": "b6e8aa45.a03d48",
+ "x": 669.23828125,
+ "y": 969.5968418121338,
+ "z": "3deddfaf.57c2f",
"wires": [
[]
]
},
{
- "id": "4152c1db.9724f",
+ "id": "fff46357.6f3ad",
"type": "set",
"name": "set vnf-index and vnf-object-path",
"xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-id + '/vnf-data/'` \" />",
"comments": "",
- "x": 658.5753860473633,
- "y": 658.5968637466431,
- "z": "b6e8aa45.a03d48",
+ "x": 660.5715408325195,
+ "y": 800.5968675613403,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "34769e57.986742",
+ "id": "5da9f931.70bc48",
"type": "set",
"name": "set vnf-request-input.",
"xml": "<set>\n<parameter name='vnf-request-input.' value='`$vnf-topology-operation-input.vnf-request-input.`' />\n",
"comments": "",
- "x": 623.5750274658203,
- "y": 361.3247985839844,
- "z": "b6e8aa45.a03d48",
+ "x": 625.5711822509766,
+ "y": 503.32480239868164,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "eb2d673c.26d6e8",
+ "id": "51ac74f.88fd58c",
"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 ' + $service-data.vnfs.vnf[$idx].vnf-id\n + ' already exists, and has order status ' + $service-data.vnfs.vnf[$idx].vnf-data.vnf-level-oper-status.order-status`\" />\n",
"comments": "",
- "x": 2076.1468658447266,
- "y": 334.1906089782715,
- "z": "b6e8aa45.a03d48",
+ "x": 2090.1429595947266,
+ "y": 366.1906089782715,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "6aca9b4.e7d1e64",
- "type": "comment",
- "name": "Take the parameter names by removing prefix",
- "info": "",
+ "id": "df8e278a.898b28",
+ "type": "save",
+ "name": "save AnAI - vnf-instance.orchestration-status",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $prop.vnf-id\" >\n<parameter name=\"orchestration-status\" value=\"create\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",
"comments": "",
- "x": 1369.5754776000977,
- "y": 337.66667556762695,
- "z": "b6e8aa45.a03d48",
- "wires": []
+ "outputs": 1,
+ "x": 715.5458450317383,
+ "y": 910.2470846176147,
+ "z": "3deddfaf.57c2f",
+ "wires": [
+ []
+ ]
},
{
- "id": "301883bc.025f5c",
+ "id": "6f579a3f.d15af4",
"type": "comment",
"name": "TODO: change AAI models",
"info": "",
"comments": "",
- "x": 647.1859512329102,
- "y": 727.9742965698242,
- "z": "b6e8aa45.a03d48",
+ "x": 649.1821060180664,
+ "y": 869.9743003845215,
+ "z": "3deddfaf.57c2f",
"wires": []
},
{
- "id": "27f27223.64947e",
- "type": "save",
- "name": "save AnAI - vnf-instance.orchestration-status",
- "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $prop.vnf-id\" >\n<parameter name=\"orchestration-status\" value=\"create\" />\n<parameter name=\"vnf-type\" value=\"some vnf-type\" />",
+ "id": "1bd26429.61c74c",
+ "type": "switchNode",
+ "name": "switch service-data.vnf-request-input.vnf-name",
+ "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 693.0000152587891,
+ "y": 393.0000114440918,
+ "z": "3deddfaf.57c2f",
+ "wires": [
+ [
+ "33ff6eed.504462",
+ "e2af6995.223f28",
+ "cc14ee3a.bceeb"
+ ]
+ ]
+ },
+ {
+ "id": "33ff6eed.504462",
+ "type": "outcomeTrue",
+ "name": "SDWAN-vpn",
+ "xml": "<outcome value='SDWAN-vpn'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 990.6667137145996,
+ "y": 378.0000114440918,
+ "z": "3deddfaf.57c2f",
+ "wires": [
+ [
+ "55868aa1.2254e4"
+ ]
+ ]
+ },
+ {
+ "id": "e2af6995.223f28",
+ "type": "outcomeTrue",
+ "name": "SDWAN-site",
+ "xml": "<outcome value='SDWAN-site'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 983.6666870117188,
+ "y": 428,
+ "z": "3deddfaf.57c2f",
+ "wires": [
+ [
+ "496e33ab.398b4c"
+ ]
+ ]
+ },
+ {
+ "id": "cc14ee3a.bceeb",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 966.6666870117188,
+ "y": 478,
+ "z": "3deddfaf.57c2f",
+ "wires": [
+ [
+ "c9a98bce.5a8c88"
+ ]
+ ]
+ },
+ {
+ "id": "c9a98bce.5a8c88",
+ "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: vnf-name should be either SDWAN-vpn or SDWAN-site.\" />\n",
"comments": "",
+ "x": 1137.333366394043,
+ "y": 476.00001335144043,
+ "z": "3deddfaf.57c2f",
+ "wires": []
+ },
+ {
+ "id": "55868aa1.2254e4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1172,
+ "y": 379,
+ "z": "3deddfaf.57c2f",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "496e33ab.398b4c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
"outputs": 1,
- "x": 713.549690246582,
- "y": 768.2470808029175,
- "z": "b6e8aa45.a03d48",
+ "x": 1163,
+ "y": 427,
+ "z": "3deddfaf.57c2f",
"wires": [
[]
]
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.xml index d13b5db5..7a6c7273 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.xml @@ -1,6 +1,6 @@ <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}'>
+ 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}'>
<method rpc='sdwan-vf-operation-lanport-activate' mode='sync'>
<block atomic="true">
<switch test='`$service-data.vnfs.vnf_length`'>
@@ -104,46 +104,55 @@ <parameter name='prop.siteIds_length' value='0' />
</set>
<for index='vnfidx' start='0' end='`$service-data.vnfs.vnf_length`' >
- <for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length`' >
- <block>
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANSiteInstance'`">
- <outcome value='true'>
- <block atomic="true">
- <for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'role'`">
+ <block atomic="true">
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length >= '0'`">
+ <!--switch test="`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`"-->
+ <outcome value='true'>
+ <block atomic="true">
+ <for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length`' >
+ <block>
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANSiteInstance'`">
<outcome value='true'>
<block atomic="true">
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == 'sd-wan-edge'`">
- <outcome value='true'>
- <set>
- <parameter name='prop.role' value="spoke" />
- </set>
- </outcome>
- </switch>
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == 'dsvpn-hub'`">
- <outcome value='true'>
- <set>
- <parameter name='prop.role' value="hub" />
- </set>
- </outcome>
- </switch>
- <for index='sidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$sidx].name == 'siteId'`">
+ <for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'role'`">
<outcome value='true'>
<block atomic="true">
- <set>
- <parameter name='prop.attach.siteId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$sidx].value`' />
- </set>
- <set>
- <parameter name='prop.siteIds[$prop.siteIds_length]' value='`$prop.attach.siteId`' />
- <parameter name='prop.siteIds_length' value='`$prop.siteIds_length + 1`' />
- </set>
- <set>
- <parameter name='prop.siteAttachements[$prop.siteAttachements_length].siteId' value='`$prop.attach.siteId`' />
- <parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles[0]' value='`$prop.role`' />
- <parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles_length' value='1' />
- <parameter name='prop.siteAttachements_length' value='`$prop.siteAttachements_length + 1`' />
- </set>
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == 'sd-wan-edge'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='prop.role' value="spoke" />
+ </set>
+ </outcome>
+ </switch>
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == 'dsvpn-hub'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='prop.role' value="hub" />
+ </set>
+ </outcome>
+ </switch>
+ <for index='sidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$sidx].name == 'siteId'`">
+ <outcome value='true'>
+ <block atomic="true">
+ <set>
+ <parameter name='prop.attach.siteId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$sidx].value`' />
+ </set>
+ <set>
+ <parameter name='prop.siteIds[$prop.siteIds_length]' value='`$prop.attach.siteId`' />
+ <parameter name='prop.siteIds_length' value='`$prop.siteIds_length + 1`' />
+ </set>
+ <set>
+ <parameter name='prop.siteAttachements[$prop.siteAttachements_length].siteId' value='`$prop.attach.siteId`' />
+ <parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles[0]' value='`$prop.role`' />
+ <parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles_length' value='1' />
+ <parameter name='prop.siteAttachements_length' value='`$prop.siteAttachements_length + 1`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </for>
</block>
</outcome>
</switch>
@@ -151,41 +160,41 @@ </block>
</outcome>
</switch>
- </for>
- </block>
- </outcome>
- </switch>
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANVpnInstance'`">
- <outcome value='true'>
- <for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
- <block atomic="true">
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'topology'`">
- <outcome value='true'>
- <set>
- <parameter name='prop.topology' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
- </set>
- </outcome>
- </switch>
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'name'`">
- <outcome value='true'>
- <set>
- <parameter name='prop.name' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
- </set>
- </outcome>
- </switch>
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'vpn-id'`">
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANVpnInstance'`">
<outcome value='true'>
- <set>
- <parameter name='prop.vpnId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
- </set>
+ <for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
+ <block atomic="true">
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'topology'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='prop.topology' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
+ </set>
+ </outcome>
+ </switch>
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'name'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='prop.name' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
+ </set>
+ </outcome>
+ </switch>
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'vpn-id'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='prop.vpnId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
+ </set>
+ </outcome>
+ </switch>
+ </block>
+ </for>
</outcome>
</switch>
</block>
</for>
- </outcome>
- </switch>
- </block>
- </for>
+ </block>
+ </outcome>
+ </switch>
+ </block>
</for>
<for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module_length`' >
<block>
@@ -225,11 +234,11 @@ </return>
</outcome>
</execute>
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="esr-thirdparty-sdnc"
- key="esr-thirdparty-sdnc.thirdparty-sdnc-id = 'SDWANController' AND
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = 'SDWANController' AND
depth = '1'"
- pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >
+ pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >
<outcome value='success'>
<set>
<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
@@ -447,13 +456,13 @@ + $vf-module-topology-operation-input.vf-module-information.vf-module-id
+ '/vf-module-data/vf-module-topology/'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ $vf-module-topology-operation-input.service-information.service-instance-id
+ '/service-data/vnfs/vnf/'
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
+ '/vnf-data/vnf-topology/'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ $vf-module-topology-operation-input.service-information.service-instance-id
+ '/service-data/service-topology/'`"/>
</set>
@@ -462,8 +471,8 @@ <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`' />
<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`' />
</set>
- <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='lan-port-config'
- key='lan-port-config.lan-port-config-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id' >
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='lan-port-config'
+ key='lan-port-config.lan-port-config-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id' >
<parameter name='lan-port-config-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />
<parameter name='operational-status' value='Active' />
<!--parameter name='lan-port-config-id' value='`$prop.lan-port-config-id`' /-->
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-create.xml index d2538710..d1578ec5 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-create.xml @@ -1,6 +1,6 @@ <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}'>
+ 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}'>
<method rpc='sdwan-vf-operation-lanport-create' mode='sync'>
<block atomic="true">
<switch test='`$service-data.vnfs.vnf_length`'>
@@ -85,8 +85,8 @@ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vnf-information.' value='`$vf-module-topology-operation-input.vnf-information.`' />
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-request-input.' value='`$vf-module-topology-operation-input.vf-module-request-input.`' />
- <!--parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-topology.' value='`$tmp.vf-module-topology.`' /-->
- <!--parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index+1`' /-->
+ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-topology.' value='`$tmp.vf-module-topology.`' />
+ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length' value='`$vf-index+1`' />
</set>
<set>
<parameter name='vf-module-id' value='`$prop.vf-id`'/>
@@ -98,13 +98,13 @@ + $vf-module-topology-operation-input.vf-module-information.vf-module-id
+ '/vf-module-data/vf-module-topology/'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ $vf-module-topology-operation-input.service-information.service-instance-id
+ '/service-data/vnfs/vnf/'
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
+ '/vnf-data/vnf-topology/'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ $vf-module-topology-operation-input.service-information.service-instance-id
+ '/service-data/service-topology/'`"/>
</set>
@@ -113,8 +113,8 @@ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.last-rpc-action' value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.last-action' value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />
</set>
- <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='lan-port-config'
- key='lan-port-config.lan-port-config-id = $prop.vf-id' >
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='lan-port-config'
+ key='lan-port-config.lan-port-config-id = $prop.vf-id' >
<parameter name="lan-port-config-id" value="`$prop.vf-id`" />
<parameter name="device-id" value='`$prop.lan.deviceName`' />
<parameter name="port-switch" value='`$prop.lan.portSwitch`' />
@@ -128,9 +128,9 @@ <parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-version`' />
<parameter name='selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.vf-id + '/vf-module-data/'` " />
</save>
- <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf:relationship-list'
- key='generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id'
- force="true" pfx="tmp.AnAI-data">
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf:relationship-list'
+ key='generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id'
+ force="true" pfx="tmp.AnAI-data">
<parameter name="relationship-list.relationship[0].related-to" value="lan-port-config" />
<parameter name="relationship-list.relationship[0].related-link" value="`'/network/lan-port-configs/lan-port-config/' + $prop.vf-id`" />
<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="lan-port-config-id" />
@@ -143,5 +143,4 @@ </return>
</block>
</method>
-</service-logic>
-
+</service-logic>
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-deactivate.xml index 2a0a3af1..9a814918 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-deactivate.xml @@ -1,6 +1,6 @@ <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}'>
+ 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}'>
<method rpc='sdwan-vf-operation-lanport-deactivate' mode='sync'>
<block atomic="true">
<switch test='`$service-data.vnfs.vnf_length`'>
@@ -30,6 +30,10 @@ </return>
</outcome>
</switch>
+ <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' />
+ </execute>
<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>
<outcome value='0'>
<return status='failure'>
@@ -70,28 +74,44 @@ </outcome>
</switch>
<for index='vnfidx' start='0' end='`$service-data.vnfs.vnf_length`' >
- <for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length`' >
- <for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == $prop.lan.deviceName`">
- <outcome value='true'>
- <block atomic="true">
- <set>
- <parameter name='prop.vnf-id' value='`$service-data.vnfs.vnf[$vnfidx].vnf-id`' />
- </set>
+ <block atomic="true">
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length >= '0'`">
+ <!--switch test="`$service-data.vnfs.vnf[$i].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`"-->
+ <outcome value='true'>
+ <block atomic="true">
+ <for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length`' >
<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'deviceId'`">
- <outcome value='true'>
- <set>
- <parameter name='prop.lan.deviceId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
- </set>
- </outcome>
- </switch>
+ <block atomic="true">
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == $prop.lan.deviceName`">
+ <outcome value='true'>
+ <block atomic="true">
+ <set>
+ <parameter name='prop.vnf-id' value='`$service-data.vnfs.vnf[$vnfidx].vnf-id`' />
+ </set>
+ <for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'deviceId'`">
+ <outcome value='true'>
+ <block atomic="true">
+ <set>
+ <parameter name='prop.lan.deviceId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
+ </set>
+ <set>
+ <parameter name='site-vnf-index' value='`$vnfidx`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </for>
+ </block>
+ </outcome>
+ </switch>
+ </block>
</for>
- </block>
- </outcome>
- </switch>
- </for>
- </for>
+ </for>
+ </block>
+ </outcome>
+ </switch>
+ </block>
</for>
<set>
<parameter name='prop.siteAttachements_length' value='0' />
@@ -102,23 +122,10 @@ <outcome value='false'>
<for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length`' >
<block>
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/svclogic24.log"/>
- <parameter name="field1" value="__TIMESTAMP__"/>
- <parameter name="field2" value="request-action"/>
- <parameter name="field3" value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action`'/>
- </record>
- <!--switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANSiteInstance'`"-->
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSiteInstance'`">
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANSiteInstance'`">
<outcome value='true'>
- <for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
- <block atomic="true">
- <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
- <parameter name="file" value="/opt/opendaylight/current/data/log/svclogic23.log"/>
- <parameter name="field1" value="__TIMESTAMP__"/>
- <parameter name="field2" value="param-name"/>
- <parameter name="field3" value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name`'/>
- </record>
+ <block atomic="true">
+ <for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
<switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'role'`">
<outcome value='true'>
<block atomic="true">
@@ -129,50 +136,39 @@ </set>
</outcome>
</switch>
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'dsvpn-hub'`">
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value == 'dsvpn-hub'`">
<outcome value='true'>
<set>
<parameter name='prop.role' value="hub" />
</set>
</outcome>
</switch>
+ <for index='sidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$sidx].name == 'siteId'`">
+ <outcome value='true'>
+ <block atomic="true">
+ <set>
+ <parameter name='prop.attach.siteId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$sidx].value`' />
+ </set>
+ <set>
+ <parameter name='prop.siteIds[$prop.siteIds_length]' value='`$prop.attach.siteId`' />
+ <parameter name='prop.siteIds_length' value='`$prop.siteIds_length + 1`' />
+ </set>
+ <set>
+ <parameter name='prop.siteAttachements[$prop.siteAttachements_length].siteId' value='`$prop.attach.siteId`' />
+ <parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles[0]' value='`$prop.role`' />
+ <parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles_length' value='1' />
+ <parameter name='prop.siteAttachements_length' value='`$prop.siteAttachements_length + 1`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </for>
</block>
</outcome>
</switch>
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'siteId'`">
- <outcome value='true'>
- <block atomic="true">
- <set>
- <parameter name='prop.attach.siteId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
- </set>
- <set>
- <parameter name='prop.siteIds[$prop.siteIds_length]' value='`$prop.attach.siteId`' />
- <parameter name='prop.siteIds_length' value='`$prop.siteIds_length + 1`' />
- </set>
- <set>
- <parameter name='prop.siteAttachements[$prop.siteAttachements_length].siteId' value='`$prop.attach.siteId`' />
- <parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles[0]' value='`$prop.role`' />
- <parameter name='prop.siteAttachements[$prop.siteAttachements_length].roles_length' value='1' />
- <parameter name='prop.siteAttachements_length' value='`$prop.siteAttachements_length + 1`' />
- </set>
- </block>
- </outcome>
- </switch>
- </block>
- </for>
- </outcome>
- </switch>
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANVpnInstance'`">
- <outcome value='true'>
- <for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
- <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'vpn-id'`">
- <outcome value='true'>
- <set>
- <parameter name='prop.vpn1Id' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
- </set>
- </outcome>
- </switch>
- </for>
+ </for>
+ </block>
</outcome>
</switch>
</block>
@@ -180,11 +176,65 @@ </outcome>
</switch>
</for>
- <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="esr-thirdparty-sdnc"
- key="esr-thirdparty-sdnc.thirdparty-sdnc-id = SDWANController AND
+ <for index='vnfidx' start='0' end='`$service-data.vnfs.vnf_length`' >
+ <for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length`' >
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANVpnInstance'`">
+ <outcome value='true'>
+ <for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
+ <block atomic="true">
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'topology'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='prop.topology' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
+ </set>
+ </outcome>
+ </switch>
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'name'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='prop.name' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
+ </set>
+ </outcome>
+ </switch>
+ <switch test="`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'vpn-id'`">
+ <outcome value='true'>
+ <set>
+ <parameter name='prop.vpnId' value='`$service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
+ </set>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </outcome>
+ </switch>
+ </for>
+ </for>
+ <for index='vfidx' start='0' end='`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module_length`' >
+ <block>
+ <switch test="`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.request-information.request-action == 'ActivateSDWANSiteInstance'`">
+ <outcome value='true'>
+ <for index='pidx' start='0' end='`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length`' >
+ <block atomic="true">
+ <switch test="`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].name == 'siteId'`">
+ <outcome value='true'>
+ <block atomic="true">
+ <set>
+ <parameter name='prop.siteId' value='`$service-data.vnfs.vnf[$site-vnf-index].vnf-data.vf-modules.vf-module[$vfidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$pidx].value`' />
+ </set>
+ </block>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ </outcome>
+ </switch>
+ </block>
+ </for>
+ <get-resource plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="esr-thirdparty-sdnc"
+ key="esr-thirdparty-sdnc.thirdparty-sdnc-id = SDWANController AND
depth = '1'"
- pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >
+ pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >
<outcome value='success'>
<set>
<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value="`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`" />
@@ -231,14 +281,31 @@ </outcome>
</execute>
<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-tenant-auth' mode='sync' ></call>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
+ <parameter name="original_string" value='`$prop.lan.ipAddress`'/>
+ <parameter name="regex" value="/"/>
+ <parameter name="ctx_memory_result_key" value="ipandMask"/>
+ <outcome value='success'>
+ <set>
+ <parameter name='prop.lan.ip-address' value='`$ipandMask[0]`' />
+ <parameter name='prop.lan.prefixLength' value='`$ipandMask[1]`' />
+ </set>
+ </outcome>
+ <outcome value='failure'>
+ <return status='failure'>
+ <parameter name='error-code' value='' />
+ <parameter name='error-message' value="An error occured while splitting sna1_route" />
+ </return>
+ </outcome>
+ </execute>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sdlan-port-del.json'`" />
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/ports/action/batch-delete'`" />
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sdlan-ip-subnets-del.json'`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/ip-subnets/action/batch-delete'`" />
<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
<parameter name="format" value="json"/>
<parameter name="httpMethod" value="post"/>
- <parameter name="responsePrefix" value="portResp"/>
+ <parameter name="responsePrefix" value="lanPortResp"/>
<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
<parameter name="trustStorePassword" value="adminadmin"/>
<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
@@ -258,8 +325,8 @@ <switch test="`$prop.lan.portSwitch == 'layer2-port'`">
<outcome value='true'>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sdlan-bridge-domain.json'`" />
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/bridge-domains'`" />
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sdlan-bridge-domain-del.json'`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/bridge-domains/action/batch-delete'`" />
<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
<parameter name="format" value="json"/>
@@ -283,31 +350,14 @@ </execute>
</outcome>
</switch>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >
- <parameter name="original_string" value='`$prop.lan.ipAddress`'/>
- <parameter name="regex" value="/"/>
- <parameter name="ctx_memory_result_key" value="ipandMask"/>
- <outcome value='success'>
- <set>
- <parameter name='prop.lan.ip-address' value='`$ipandMask[0]`' />
- <parameter name='prop.lan.prefixLength' value='`$ipandMask[1]`' />
- </set>
- </outcome>
- <outcome value='failure'>
- <return status='failure'>
- <parameter name='error-code' value='' />
- <parameter name='error-message' value="An error occured while splitting sna1_route" />
- </return>
- </outcome>
- </execute>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
- <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sdlan-ip-subnets-del.json'`" />
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/ip-subnets/action/batch-delete'`" />
+ <parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sdlan-port-del.json'`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/ports/action/batch-delete'`" />
<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
<parameter name="format" value="json"/>
<parameter name="httpMethod" value="post"/>
- <parameter name="responsePrefix" value="lanPortResp"/>
+ <parameter name="responsePrefix" value="portResp"/>
<parameter name="trustStoreFileName" value="/opt/onap/sdnc/data/stores/truststore.onap.client.jks"/>
<parameter name="trustStorePassword" value="adminadmin"/>
<parameter name="keyStoreFileName" value="/opt/onap/sdnc/data/stores/sdnc.p12"/>
@@ -321,11 +371,7 @@ </return>
</outcome>
<outcome value='success'>
- <block atomic="true">
- <set>
- <parameter name='prop.lan.lanPortId' value='`lanPortResp.success[0].id`' />
- </set>
- </block>
+ <block atomic="true"></block>
</outcome>
</execute>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
@@ -354,7 +400,7 @@ </execute>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name="templateFileName" value="`$prop.restapi.templateDir + '/sdwan-vpn-topology.json'`" />
- <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpn1Id + '/topology'`" />
+ <parameter name="restapiUrl" value="`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/' + $prop.vpnId + '/topology'`" />
<parameter name="restapiUser" value="`$prop.sdncRestApi.thirdpartySdnc.user`" />
<parameter name="restapiPassword" value="`$prop.sdncRestApi.thirdpartySdnc.password`" />
<parameter name="format" value="json"/>
@@ -391,13 +437,13 @@ + $vf-module-topology-operation-input.vf-module-information.vf-module-id
+ '/vf-module-data/vf-module-topology/'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ $vf-module-topology-operation-input.service-information.service-instance-id
+ '/service-data/vnfs/vnf/'
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
+ '/vnf-data/vnf-topology/'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ $vf-module-topology-operation-input.service-information.service-instance-id
+ '/service-data/service-topology/'`"/>
</set>
@@ -406,8 +452,8 @@ <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`' />
<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`' />
</set>
- <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='lan-port-config'
- key='sdwan-vpn.sdwan-vpn-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id' >
+ <update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='lan-port-config'
+ key='sdwan-vpn.sdwan-vpn-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id' >
<parameter name='sdwan-vpn-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />
<parameter name='operational-status' value='PendingDelete' />
<parameter name='lan-port-config-id' value='`$prop.lan-port-config-id`' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.xml index 30df6e08..7a7dba27 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.xml @@ -1,6 +1,6 @@ <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}'>
+ 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}'>
<method rpc='sdwan-vf-operation-lanport-delete' mode='sync'>
<block atomic="true">
<switch test='`$service-data.vnfs.vnf_length`'>
@@ -61,7 +61,7 @@ <set>
<parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />
</set>
- <call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lan-param' mode='sync' ></call>
+ <call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lanport-param' mode='sync' ></call>
</block>
</outcome>
</switch>
@@ -99,8 +99,8 @@ <outcome value='false'>
<block atomic="true">
<set>
- <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen].vnf-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[lidx].vf-module-id`' />
- <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen].vnf-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[lidx].vf-module-data.`' />
+ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen].vf-module-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$lidx].vf-module-id`' />
+ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen].vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$lidx].vf-module-data.`' />
</set>
<set>
<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />
@@ -125,18 +125,18 @@ + $vf-module-topology-operation-input.vf-module-information.vf-module-id
+ '/vf-module-data/vf-module-topology/'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ $vf-module-topology-operation-input.service-information.service-instance-id
+ '/service-data/vnfs/vnf/'
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
+ '/vnf-data/vnf-topology/'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ $vf-module-topology-operation-input.service-information.service-instance-id
+ '/service-data/service-topology/'`"/>
</set>
- <delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource='lan-port-config'
- key='lan-port-config.lan-port-config-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id'></delete>
+ <delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource='lan-port-config'
+ key='lan-port-config.lan-port-config-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id'></delete>
<return status='success'>
<parameter name="ack-final-indicator" value="Y" />
<parameter name="error-code" value="200" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.xml index b730b324..3e8b537b 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.xml @@ -1,6 +1,6 @@ <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}'>
+ 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}'>
<method rpc='vnf-topology-operation-vpn-site-resource-create' mode='sync'>
<block atomic="true">
<switch test='`$service-data.vnfs.vnf_length`'>
@@ -29,6 +29,21 @@ </block>
</outcome>
</switch>
+ <switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-name`'>
+ <outcome value='SDWAN-vpn'>
+ <block atomic="true"></block>
+ </outcome>
+ <outcome value='SDWAN-site'>
+ <block atomic="true"></block>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='ack-final' value='Y'/>
+ <parameter name="error-code" value="500" />
+ <parameter name="error-message" value="Error: vnf-name should be either SDWAN-vpn or SDWAN-site." />
+ </return>
+ </outcome>
+ </switch>
<set>
<parameter name='vnf-request-input.' value='`$vnf-topology-operation-input.vnf-request-input.`' />
</set>
@@ -58,17 +73,17 @@ <parameter name='vnfId' value='`$prop.vnf-id`' />
<parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-id + '/vnf-data/'` " />
</set>
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="generic-vnf"
- key="generic-vnf.vnf-id = $prop.vnf-id" >
+ <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
+ resource="generic-vnf"
+ key="generic-vnf.vnf-id = $prop.vnf-id" >
<parameter name="orchestration-status" value="create" />
<parameter name="vnf-type" value="some vnf-type" />
</save>
- <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
- key='service-instance.service-instance-id = $service-data.service-information.service-instance-id
- AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id
- AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'
- force="true" pfx="tmp.AnAI-data">
+ <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
+ key='service-instance.service-instance-id = $service-data.service-information.service-instance-id
+ AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id
+ AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type'
+ force="true" pfx="tmp.AnAI-data">
<parameter name="relationship-list.relationship[0].related-to" value="generic-vnf" />
<parameter name="relationship-list.relationship[0].related-link" value="`'/network/generic-vnfs/generic-vnf/' + $prop.vnf-id`" />
<parameter name="relationship-list.relationship[0].relationship-data[0].relationship-key" value="generic-vnf.vnf-id" />
diff --git a/platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json b/platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json index aad0514d..18a63f29 100644 --- a/platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json +++ b/platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json @@ -1,1083 +1,813 @@ [
{
- "id": "fe0acee3.b3d4f",
+ "id": "ab475552.d851d8",
"type": "method",
"name": "upgrade-post-check",
"xml": "<method rpc='upgrade-post-check' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 523,
- "y": 71,
- "z": "b4969602.e5a2a8",
+ "x": 548,
+ "y": 59,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "88d3f9c3.91e818"
+ "356938f4.e6ef78"
]
]
},
{
- "id": "dd69f330.0db38",
+ "id": "db22c5e0.c4b368",
"type": "service-logic",
- "name": "LCM ${project.version}",
+ "name": "LCM 1.4.5",
"module": "LCM",
- "version": "${project.version}",
+ "version": "1.4.5",
"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='LCM' version='${project.version}'>",
"outputs": 1,
- "x": 310.99993896484375,
- "y": 72,
- "z": "b4969602.e5a2a8",
+ "x": 335.99993896484375,
+ "y": 60,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "fe0acee3.b3d4f"
+ "ab475552.d851d8"
]
]
},
{
- "id": "ca77e1d2.5f235",
+ "id": "74883a0a.669d34",
"type": "execute",
"name": "execute AnsibleA.reqExec",
"xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n<parameter name='User' value='`$prop.ansible.user`'/>\n<parameter name='Password' value='`$prop.ansible.password`'/>\n<parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>\n<parameter name='EnvParameters' value='`$upgrade-post-check-input.payload`'/>\n<parameter name='NodeList' value=\"`$nodelist`\"/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$playbookname`'/>",
"comments": "",
"outputs": 1,
- "x": 378.00001525878906,
- "y": 679,
- "z": "b4969602.e5a2a8",
+ "x": 403.00001525878906,
+ "y": 667,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "98532a13.9e8648",
- "300b9189.6839ae",
- "93689f4a.8157"
+ "8efae65a.30c7b8",
+ "fdc248e2.dda948",
+ "fc8e86cf.976918"
]
]
},
{
- "id": "338f7649.ef4e9a",
+ "id": "ea8ede8a.5e5e7",
"type": "switchNode",
"name": "switch",
"xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
"comments": "",
"outputs": 1,
- "x": 777.9999389648438,
- "y": 787.0000305175781,
- "z": "b4969602.e5a2a8",
+ "x": 802.9999389648438,
+ "y": 775.0000305175781,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "13e6fdd5.284672",
- "558456ec.861628",
- "d84c0d6b.4e961"
+ "ed747ae6.f82e38",
+ "d348a5a9.90bb58",
+ "606ee94e.547568"
]
]
},
{
- "id": "13e6fdd5.284672",
+ "id": "ed747ae6.f82e38",
"type": "other",
"name": "outcome 500",
"xml": "<outcome value='500'>\n",
"comments": "",
"outputs": 1,
- "x": 922.9999389648438,
- "y": 785.0000381469727,
- "z": "b4969602.e5a2a8",
+ "x": 947.9999389648438,
+ "y": 773.0000381469727,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "d4f3b77a.b39508"
+ "8e974f56.dbd44"
]
]
},
{
- "id": "558456ec.861628",
+ "id": "d348a5a9.90bb58",
"type": "other",
"name": "outcome 100",
"xml": "<outcome value='100'>\n",
"comments": "",
"outputs": 1,
- "x": 919.9999389648438,
- "y": 842.0000305175781,
- "z": "b4969602.e5a2a8",
+ "x": 944.9999389648438,
+ "y": 830.0000305175781,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "a1c39fcf.a06c"
+ "5fe71ec4.57d62"
]
]
},
{
- "id": "a1c39fcf.a06c",
+ "id": "5fe71ec4.57d62",
"type": "execute",
"name": "execute reqExecResult",
"xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>\n\t<parameter name='PlaybookName' value='`$playbookname`'/>\n\t\n\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 1107.9999389648438,
- "y": 841.0000305175781,
- "z": "b4969602.e5a2a8",
+ "x": 1132.9999389648438,
+ "y": 829.0000305175781,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "f58c60bb.b391f",
- "b18d4538.e8ef28"
+ "484e1e77.a4c4c",
+ "ef7a898e.c55ae8"
]
]
},
{
- "id": "300b9189.6839ae",
+ "id": "fdc248e2.dda948",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 636.9999389648438,
- "y": 700.0000915527344,
- "z": "b4969602.e5a2a8",
+ "x": 661.9999389648438,
+ "y": 688.0000915527344,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "d4f3b77a.b39508"
+ "8e974f56.dbd44"
]
]
},
{
- "id": "98532a13.9e8648",
+ "id": "8efae65a.30c7b8",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 638.9999389648438,
- "y": 752.0000610351562,
- "z": "b4969602.e5a2a8",
+ "x": 663.9999389648438,
+ "y": 740.0000610351562,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "338f7649.ef4e9a"
+ "ea8ede8a.5e5e7"
]
]
},
{
- "id": "f58c60bb.b391f",
+ "id": "484e1e77.a4c4c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1278.9998779296875,
- "y": 820.0000610351562,
- "z": "b4969602.e5a2a8",
+ "x": 1301.9999389648438,
+ "y": 787.0000381469727,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "44e1b1d0.b5bf9"
+ "8e974f56.dbd44"
]
]
},
{
- "id": "d84c0d6b.4e961",
+ "id": "606ee94e.547568",
"type": "other",
"name": "outcome 101",
"xml": "<outcome value='101'>\n",
"comments": "",
"outputs": 1,
- "x": 919.9999389648438,
- "y": 743.0000686645508,
- "z": "b4969602.e5a2a8",
+ "x": 944.9999389648438,
+ "y": 731.0000686645508,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "d4f3b77a.b39508"
+ "8e974f56.dbd44"
]
]
},
{
- "id": "b18d4538.e8ef28",
+ "id": "ef7a898e.c55ae8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1281.9998779296875,
- "y": 871.0001220703125,
- "z": "b4969602.e5a2a8",
+ "x": 1309.9998779296875,
+ "y": 835.0001220703125,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "44e1b1d0.b5bf9"
+ "565fc0b9.1ff1a"
]
]
},
{
- "id": "67392fb2.3fda3",
+ "id": "bca33267.b186f",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",
+ "comments": "",
+ "x": 1603.9998779296875,
+ "y": 892.0000610351562,
+ "z": "802a6e37.fb3c1",
+ "wires": []
+ },
+ {
+ "id": "f3c40140.4762d",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 126,
- "y": 71,
- "z": "b4969602.e5a2a8",
+ "x": 151,
+ "y": 59,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "dd69f330.0db38"
+ "db22c5e0.c4b368"
]
]
},
{
- "id": "88d3f9c3.91e818",
+ "id": "356938f4.e6ef78",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 123.91668701171875,
- "y": 163.08334350585938,
- "z": "b4969602.e5a2a8",
+ "x": 148.91668701171875,
+ "y": 151.08334350585938,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "ca77e1d2.5f235",
- "c7ec6050.45978",
- "889f84ed.e111e8",
- "40652fca.65d24",
- "983b7f00.0aa95",
- "43b098aa.2b8088",
- "3c8d18f4.57a768",
- "5c9efc94.d81d24"
+ "74883a0a.669d34",
+ "5f157934.113238",
+ "fad67e1f.e709b",
+ "f04f2fb5.8c0ca",
+ "a1aa3253.06afa",
+ "e636c2ac.2dc0d",
+ "8b5b2558.88c888",
+ "89a1b60f.9a2848"
]
]
},
{
- "id": "c7ec6050.45978",
+ "id": "5f157934.113238",
"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%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
"comments": "",
"outputs": 1,
- "x": 422.0000305175781,
- "y": 196.08334350585938,
- "z": "b4969602.e5a2a8",
+ "x": 447.0000305175781,
+ "y": 184.08334350585938,
+ "z": "802a6e37.fb3c1",
"wires": [
[]
]
},
{
- "id": "d9d2286.379c4d8",
+ "id": "9c2d2fed.0688d",
"type": "execute",
"name": "execute DmaapMsg",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
"comments": "",
"outputs": 1,
- "x": 1588.9998779296875,
- "y": 649.0834045410156,
- "z": "b4969602.e5a2a8",
+ "x": 1613.9998779296875,
+ "y": 637.0834045410156,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "642ae55d.535a7c"
+ "789af377.cced2c"
]
]
},
{
- "id": "642ae55d.535a7c",
+ "id": "789af377.cced2c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1758.9998168945312,
- "y": 648.0834045410156,
- "z": "b4969602.e5a2a8",
+ "x": 1783.9998168945312,
+ "y": 636.0834045410156,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "7969554f.e56e0c"
+ "c75d24f.c2de2d8"
]
]
},
{
- "id": "d4f3b77a.b39508",
+ "id": "8e974f56.dbd44",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1391.9998168945312,
- "y": 673.0834045410156,
- "z": "b4969602.e5a2a8",
+ "x": 1416.9998168945312,
+ "y": 661.0834045410156,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "d9d2286.379c4d8",
- "8a00ee98.85d8c",
- "a967853.2e08a78"
+ "9c2d2fed.0688d",
+ "a0c3935d.9a935",
+ "82255155.ccaef"
]
]
},
{
- "id": "61a865a3.81374c",
+ "id": "2939808a.b52ef",
"type": "execute",
"name": "execute DmaapMsg",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
"comments": "",
"outputs": 1,
- "x": 1600.4998779296875,
- "y": 904.0833740234375,
- "z": "b4969602.e5a2a8",
+ "x": 1614.4998779296875,
+ "y": 842.0833740234375,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "bf6e3414.ac0ab8"
+ "22bed4c.08b6a2c"
]
]
},
{
- "id": "bf6e3414.ac0ab8",
+ "id": "22bed4c.08b6a2c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
"x": 1782.4998779296875,
- "y": 904.0833740234375,
- "z": "b4969602.e5a2a8",
+ "y": 842.0833740234375,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "a98ac8b6.1c8b18"
+ "8841bc4a.67149"
]
]
},
{
- "id": "7969554f.e56e0c",
+ "id": "c75d24f.c2de2d8",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
"comments": "",
"outputs": 1,
- "x": 1878.9998779296875,
- "y": 647.0833740234375,
- "z": "b4969602.e5a2a8",
+ "x": 1903.9998779296875,
+ "y": 635.0833740234375,
+ "z": "802a6e37.fb3c1",
"wires": [
[]
]
},
{
- "id": "8a00ee98.85d8c",
+ "id": "a0c3935d.9a935",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
"comments": "",
- "x": 1570.91650390625,
- "y": 700.0834045410156,
- "z": "b4969602.e5a2a8",
+ "x": 1595.91650390625,
+ "y": 688.0834045410156,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "a98ac8b6.1c8b18",
+ "id": "8841bc4a.67149",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
"comments": "",
"outputs": 1,
- "x": 1912.9166259765625,
- "y": 904.0833740234375,
- "z": "b4969602.e5a2a8",
+ "x": 1910.9166259765625,
+ "y": 842.0833740234375,
+ "z": "802a6e37.fb3c1",
"wires": [
[]
]
},
{
- "id": "a967853.2e08a78",
+ "id": "82255155.ccaef",
"type": "set",
"name": "set DmaapReq",
"xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
"comments": "",
- "x": 1575.9998779296875,
- "y": 596.0833740234375,
- "z": "b4969602.e5a2a8",
+ "x": 1600.9998779296875,
+ "y": 584.0833740234375,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "44e1b1d0.b5bf9",
+ "id": "565fc0b9.1ff1a",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1406.9998779296875,
- "y": 845.0833740234375,
- "z": "b4969602.e5a2a8",
+ "x": 1437.9998779296875,
+ "y": 836.0833740234375,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "61a865a3.81374c",
- "af2360f3.a1b32",
- "c058b1a3.cafa7",
- "d59d4575.f7aa08",
- "97b68625.59c538"
+ "2939808a.b52ef",
+ "cd18f032.f6fef",
+ "bca33267.b186f"
]
]
},
{
- "id": "72836a7a.768624",
+ "id": "cd18f032.f6fef",
"type": "set",
"name": "set DmaapReq",
"xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
"comments": "",
- "x": 1938.1666259765625,
- "y": 819.0833740234375,
- "z": "b4969602.e5a2a8",
+ "x": 1604.1666259765625,
+ "y": 787.0833740234375,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "93689f4a.8157",
+ "id": "fc8e86cf.976918",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 645.9999389648438,
- "y": 652.0000610351562,
- "z": "b4969602.e5a2a8",
+ "x": 670.9999389648438,
+ "y": 640.0000610351562,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "c92e96da.bead68"
+ "95e77813.ba9108"
]
]
},
{
- "id": "3705b5ae.a55ada",
+ "id": "60c18ca3.4f03c4",
"type": "set",
"name": "set Defaults",
"xml": "<set>\n<parameter name='org.onap.appc.adapter.ansible.result.code' value='401'/>\n<parameter name='org.onap.appc.adapter.ansible.message' value='Ansible Adapter was not found'/>\n",
"comments": "",
- "x": 936.9999389648438,
- "y": 611,
- "z": "b4969602.e5a2a8",
+ "x": 961.9999389648438,
+ "y": 599,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "c92e96da.bead68",
+ "id": "95e77813.ba9108",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 782.9999389648438,
- "y": 646.0000610351562,
- "z": "b4969602.e5a2a8",
+ "x": 807.9999389648438,
+ "y": 634.0000610351562,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "3705b5ae.a55ada",
- "d4f3b77a.b39508"
+ "60c18ca3.4f03c4",
+ "8e974f56.dbd44"
]
]
},
{
- "id": "889f84ed.e111e8",
+ "id": "fad67e1f.e709b",
"type": "set",
"name": "set default values",
"xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n<parameter name='quote' value=\"'\" />\n",
"comments": "",
- "x": 415,
- "y": 243,
- "z": "b4969602.e5a2a8",
+ "x": 440,
+ "y": 231,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "9e2047bf.84ca98",
+ "id": "24f45898.65de18",
"type": "get-resource",
"name": "get aai.generic-vnf ",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $upgrade-post-check-input.action-identifiers.vnf-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx='aai.generic-vnf'>",
"comments": "",
"outputs": 1,
- "x": 955,
- "y": 419,
- "z": "b4969602.e5a2a8",
+ "x": 980,
+ "y": 407,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "db67679b.d5f7f8"
+ "3a57fbc.0ac6d04"
]
]
},
{
- "id": "db67679b.d5f7f8",
+ "id": "3a57fbc.0ac6d04",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1113.3907470703125,
- "y": 417.28399658203125,
- "z": "b4969602.e5a2a8",
+ "x": 1138.3907470703125,
+ "y": 405.28399658203125,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "9f78147c.45b0d8"
+ "721a47cc.cdf2d8"
]
]
},
{
- "id": "3c8d18f4.57a768",
+ "id": "8b5b2558.88c888",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='`$playbookname`'/>\n\t<parameter name=\"field2\" value='`$nodelist`'/>",
"comments": "",
"outputs": 1,
- "x": 343.9998779296875,
- "y": 607,
- "z": "b4969602.e5a2a8",
+ "x": 368.9998779296875,
+ "y": 595,
+ "z": "802a6e37.fb3c1",
"wires": [
[]
]
},
{
- "id": "983b7f00.0aa95",
+ "id": "a1aa3253.06afa",
"type": "switchNode",
"name": "switch pnf-flag",
"xml": "<switch test='`$payloadJson.pnf-flag`'>\n",
"comments": "",
"outputs": 1,
- "x": 397,
- "y": 344,
- "z": "b4969602.e5a2a8",
+ "x": 422,
+ "y": 332,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "6ab53366.6b679c",
- "c2f80dd0.8d1"
+ "9417db8c.51c568",
+ "9e3df3f5.2c2d9"
]
]
},
{
- "id": "40652fca.65d24",
+ "id": "f04f2fb5.8c0ca",
"type": "execute",
"name": "execute jsonStringToCtx",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='upgrade-post-check-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='true' />",
"comments": "",
"outputs": 1,
- "x": 429,
- "y": 290,
- "z": "b4969602.e5a2a8",
+ "x": 454,
+ "y": 278,
+ "z": "802a6e37.fb3c1",
"wires": [
[]
]
},
{
- "id": "6ab53366.6b679c",
+ "id": "9417db8c.51c568",
"type": "outcome",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 594,
- "y": 323,
- "z": "b4969602.e5a2a8",
+ "x": 619,
+ "y": 311,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "b2f335c.b319ac8"
+ "94353f3f.e7eee"
]
]
},
{
- "id": "c2f80dd0.8d1",
+ "id": "9e3df3f5.2c2d9",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 593.9999389648438,
- "y": 384,
- "z": "b4969602.e5a2a8",
+ "x": 618.9999389648438,
+ "y": 372,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "64084999.263e28"
+ "95b6db3f.a43608"
]
]
},
{
- "id": "64084999.263e28",
+ "id": "95b6db3f.a43608",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 741.9999389648438,
- "y": 383,
- "z": "b4969602.e5a2a8",
+ "x": 766.9999389648438,
+ "y": 371,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "9e2047bf.84ca98",
- "1c2838e7.02c327"
+ "24f45898.65de18",
+ "240a5e4b.ef6af2"
]
]
},
{
- "id": "b2f335c.b319ac8",
+ "id": "94353f3f.e7eee",
"type": "set",
"name": "set AnsibleReq",
"xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $payloadJson.ipaddress-v4-oam + $quote + ']'`\"/>\n<parameter name='playbookname' value='`$prop.lcm.pnf.upgrade-post-check.playbookname`'/>\n",
"comments": "",
- "x": 755,
- "y": 321,
- "z": "b4969602.e5a2a8",
+ "x": 780,
+ "y": 309,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "1c2838e7.02c327",
+ "id": "240a5e4b.ef6af2",
"type": "execute",
"name": "set playbookname",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $payloadJson.nf-naming-code + '.upgrade-post-check.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 964,
- "y": 363,
- "z": "b4969602.e5a2a8",
+ "x": 989,
+ "y": 351,
+ "z": "802a6e37.fb3c1",
"wires": [
[]
]
},
{
- "id": "43b098aa.2b8088",
+ "id": "e636c2ac.2dc0d",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 394,
- "y": 475,
- "z": "b4969602.e5a2a8",
+ "x": 419,
+ "y": 463,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "f5a4d554.8310a8"
+ "a65bd4c9.27f638"
]
]
},
{
- "id": "f5a4d554.8310a8",
+ "id": "a65bd4c9.27f638",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 565,
- "y": 476,
- "z": "b4969602.e5a2a8",
+ "x": 590,
+ "y": 464,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "e3207caa.85b44"
+ "286bc0d0.e5819"
]
]
},
{
- "id": "e3207caa.85b44",
+ "id": "286bc0d0.e5819",
"type": "set",
"name": "set playbookname",
- "xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>\n<parameter name='playbookname' value='`$prop.lcm.upgrade-post-check.playbookname`'/>",
+ "xml": "<set>\n<parameter name='playbookname' value='`$prop.lcm.upgrade-post-check.playbookname`'/>",
"comments": "",
- "x": 755,
- "y": 475,
- "z": "b4969602.e5a2a8",
+ "x": 780,
+ "y": 463,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "5c9efc94.d81d24",
+ "id": "89a1b60f.9a2848",
"type": "switchNode",
"name": "switch nodelist",
"xml": "<switch test='`$nodelist`'>\n",
"comments": "",
"outputs": 1,
- "x": 384,
- "y": 534,
- "z": "b4969602.e5a2a8",
+ "x": 409,
+ "y": 522,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "77224991.c20a78",
- "2deab8c5.642298"
+ "10bd0563.dd89eb",
+ "9f1eacfe.fa54"
]
]
},
{
- "id": "77224991.c20a78",
+ "id": "10bd0563.dd89eb",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 564,
- "y": 527,
- "z": "b4969602.e5a2a8",
+ "x": 589,
+ "y": 515,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "3881d027.425ff"
+ "f0ef60d3.f64f"
]
]
},
{
- "id": "3881d027.425ff",
+ "id": "f0ef60d3.f64f",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>",
"comments": "",
- "x": 721,
- "y": 541,
- "z": "b4969602.e5a2a8",
+ "x": 746,
+ "y": 529,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "2deab8c5.642298",
+ "id": "9f1eacfe.fa54",
"type": "outcome",
"name": "empty",
"xml": "<outcome value=\"['']\">\n\n",
"comments": "",
"outputs": 1,
- "x": 563,
- "y": 571,
- "z": "b4969602.e5a2a8",
+ "x": 588,
+ "y": 559,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "3881d027.425ff"
+ "f0ef60d3.f64f"
]
]
},
{
- "id": "153ed401.962ddc",
+ "id": "26d43493.24ca8c",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 1439,
- "y": 406,
- "z": "b4969602.e5a2a8",
+ "x": 1464,
+ "y": 394,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "3cfaf009.20065"
+ "ad0fd429.dd1178"
]
]
},
{
- "id": "3cfaf009.20065",
+ "id": "ad0fd429.dd1178",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1617,
- "y": 406,
- "z": "b4969602.e5a2a8",
+ "x": 1642,
+ "y": 394,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "8e725f1f.6662f"
+ "bbed41e1.ca0c4"
]
]
},
{
- "id": "9e70216f.c9b2f",
+ "id": "3935df66.a3be5",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $aai.generic-vnf.ipv4-oam-address + $quote + ']'`\"/>\n",
"comments": "",
- "x": 1412,
- "y": 459,
- "z": "b4969602.e5a2a8",
+ "x": 1437,
+ "y": 447,
+ "z": "802a6e37.fb3c1",
"wires": []
},
{
- "id": "9f78147c.45b0d8",
+ "id": "721a47cc.cdf2d8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1242,
- "y": 416,
- "z": "b4969602.e5a2a8",
+ "x": 1267,
+ "y": 404,
+ "z": "802a6e37.fb3c1",
"wires": [
[
- "153ed401.962ddc",
- "9e70216f.c9b2f"
+ "26d43493.24ca8c",
+ "3935df66.a3be5"
]
]
},
{
- "id": "8e725f1f.6662f",
+ "id": "bbed41e1.ca0c4",
"type": "execute",
"name": "set playbookname",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $aai.generic-vnf.nf-naming-code + '.upgrade-post-check.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 1789,
- "y": 404,
- "z": "b4969602.e5a2a8",
+ "x": 1814,
+ "y": 392,
+ "z": "802a6e37.fb3c1",
"wires": [
[]
]
- },
- {
- "id": "af2360f3.a1b32",
- "type": "execute",
- "name": "execute jsonStringToCtx",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='org.onap.appc.adapter.ansible.results' />\n\t<parameter name='outputPath' value='resultsJson' />\n\t<parameter name='isEscaped' value='false' />\n",
- "comments": "",
- "outputs": 1,
- "x": 1616,
- "y": 750,
- "z": "b4969602.e5a2a8",
- "wires": [
- []
- ]
- },
- {
- "id": "c058b1a3.cafa7",
- "type": "execute",
- "name": "execute getAttributeValue",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='source' value=\"`'resultsJson.' + $payloadJson.ipaddress-v4-oam + '.Output'`\" />\n\t<parameter name='outputPath' value='outputPayload' />",
- "comments": "",
- "outputs": 1,
- "x": 1622,
- "y": 793,
- "z": "b4969602.e5a2a8",
- "wires": [
- []
- ]
- },
- {
- "id": "d59d4575.f7aa08",
- "type": "switchNode",
- "name": "switch outputPayload",
- "xml": "<switch test='`$outputPayload`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1606,
- "y": 840,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "676d5ce5.e9d864",
- "8ecd1678.ebdff8"
- ]
- ]
- },
- {
- "id": "676d5ce5.e9d864",
- "type": "outcome",
- "name": "null",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1783,
- "y": 819,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "72836a7a.768624"
- ]
- ]
- },
- {
- "id": "8ecd1678.ebdff8",
- "type": "outcome",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1782,
- "y": 859,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "5f5e736e.9d3b8c"
- ]
- ]
- },
- {
- "id": "5f5e736e.9d3b8c",
- "type": "set",
- "name": "set DmaapReq with payload",
- "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n<parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>",
- "comments": "",
- "x": 1980,
- "y": 859,
- "z": "b4969602.e5a2a8",
- "wires": []
- },
- {
- "id": "bd7deada.205038",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",
- "comments": "",
- "x": 2322,
- "y": 937,
- "z": "b4969602.e5a2a8",
- "wires": []
- },
- {
- "id": "530e9d63.07dd34",
- "type": "outcome",
- "name": "null",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1788.000244140625,
- "y": 958.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "aba50f21.a535d"
- ]
- ]
- },
- {
- "id": "d6c0e471.9108d8",
- "type": "outcome",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1787.000244140625,
- "y": 1034.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "801dd50e.8622c8"
- ]
- ]
- },
- {
- "id": "97b68625.59c538",
- "type": "switchNode",
- "name": "switch outputPayload",
- "xml": "<switch test='`$outputPayload`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1605.000244140625,
- "y": 994.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "530e9d63.07dd34",
- "d6c0e471.9108d8"
- ]
- ]
- },
- {
- "id": "acbbf9db.eeba28",
- "type": "returnSuccess",
- "name": "return success with payload",
- "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n<parameter name='payload' value='`$outputPayload`'/>",
- "comments": "",
- "x": 2363.000244140625,
- "y": 1018.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": []
- },
- {
- "id": "aba50f21.a535d",
- "type": "switchNode",
- "name": "switch result code",
- "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 1958.000244140625,
- "y": 958.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "3ac4241b.62144c",
- "c67e4b5c.d70a28"
- ]
- ]
- },
- {
- "id": "801dd50e.8622c8",
- "type": "switchNode",
- "name": "switch result code",
- "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 1958.000244140625,
- "y": 1034.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "8dcd3ae3.608a58",
- "a94e8dc6.52647"
- ]
- ]
- },
- {
- "id": "657ecc9e.2687c4",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
- "comments": "",
- "x": 2316.000244140625,
- "y": 974.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": []
- },
- {
- "id": "52f49f6f.dcf4",
- "type": "returnFailure",
- "name": "return failure with payload",
- "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n<parameter name='payload' value='`$outputPayload`'/>",
- "comments": "",
- "x": 2359.000244140625,
- "y": 1056.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": []
- },
- {
- "id": "3ac4241b.62144c",
- "type": "other",
- "name": "outcome 400",
- "xml": "<outcome value='400'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2146.000244140625,
- "y": 936.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "bd7deada.205038"
- ]
- ]
- },
- {
- "id": "c67e4b5c.d70a28",
- "type": "outcome",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2127.000244140625,
- "y": 974.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "657ecc9e.2687c4"
- ]
- ]
- },
- {
- "id": "8dcd3ae3.608a58",
- "type": "other",
- "name": "outcome 400",
- "xml": "<outcome value='400'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2147.000244140625,
- "y": 1018.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "acbbf9db.eeba28"
- ]
- ]
- },
- {
- "id": "a94e8dc6.52647",
- "type": "outcome",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2129.000244140625,
- "y": 1056.9999389648438,
- "z": "b4969602.e5a2a8",
- "wires": [
- [
- "52f49f6f.dcf4"
- ]
- ]
}
]
\ No newline at end of file diff --git a/platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json b/platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json index aa78a91e..08b896ec 100644 --- a/platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json +++ b/platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json @@ -1,1083 +1,813 @@ [
{
- "id": "e17c1584.f756d8",
+ "id": "dfc42d29.4066",
"type": "method",
"name": "upgrade-pre-check",
"xml": "<method rpc='upgrade-pre-check' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 552,
- "y": 67,
- "z": "df893cfa.16f38",
+ "x": 554,
+ "y": 86,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "4a691c8b.6b9db4"
+ "dc3f6c8f.49cb4"
]
]
},
{
- "id": "1f7a861d.c2112a",
+ "id": "ec3ea72c.b00d38",
"type": "service-logic",
- "name": "LCM ${project.version}",
+ "name": "LCM 1.4.5",
"module": "LCM",
- "version": "${project.version}",
+ "version": "1.4.5",
"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='LCM' version='${project.version}'>",
"outputs": 1,
- "x": 339.99993896484375,
- "y": 68,
- "z": "df893cfa.16f38",
+ "x": 341.99993896484375,
+ "y": 87,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "e17c1584.f756d8"
+ "dfc42d29.4066"
]
]
},
{
- "id": "bb18ce54.65a6d",
+ "id": "aa4b4733.b95e98",
"type": "execute",
"name": "execute AnsibleA.reqExec",
"xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n<parameter name='User' value='`$prop.ansible.user`'/>\n<parameter name='Password' value='`$prop.ansible.password`'/>\n<parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>\n<parameter name='EnvParameters' value='`$upgrade-pre-check-input.payload`'/>\n<parameter name='NodeList' value=\"`$nodelist`\"/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-pre-check-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$playbookname`'/>",
"comments": "",
"outputs": 1,
- "x": 407.00001525878906,
- "y": 675,
- "z": "df893cfa.16f38",
+ "x": 409.00001525878906,
+ "y": 694,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "c6f98872.c067e8",
- "5614f2d4.83759c",
- "1beab9a5.7e2366"
+ "eed23890.382f88",
+ "39c73cda.20f284",
+ "d5d4d9a.dfdee28"
]
]
},
{
- "id": "8e97cc56.5d143",
+ "id": "c2461908.a56de8",
"type": "switchNode",
"name": "switch",
"xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
"comments": "",
"outputs": 1,
- "x": 806.9999389648438,
- "y": 783.0000305175781,
- "z": "df893cfa.16f38",
+ "x": 808.9999389648438,
+ "y": 802.0000305175781,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "d5d391c0.e33eb",
- "96569d9a.8f849",
- "8eb6da31.c976d8"
+ "21b1a494.57eb8c",
+ "c0ddf646.939658",
+ "c13b6a1f.ac5838"
]
]
},
{
- "id": "d5d391c0.e33eb",
+ "id": "21b1a494.57eb8c",
"type": "other",
"name": "outcome 500",
"xml": "<outcome value='500'>\n",
"comments": "",
"outputs": 1,
- "x": 951.9999389648438,
- "y": 781.0000381469727,
- "z": "df893cfa.16f38",
+ "x": 953.9999389648438,
+ "y": 800.0000381469727,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "261676ae.6c18ea"
+ "c0fa5e3.de329a"
]
]
},
{
- "id": "96569d9a.8f849",
+ "id": "c0ddf646.939658",
"type": "other",
"name": "outcome 100",
"xml": "<outcome value='100'>\n",
"comments": "",
"outputs": 1,
- "x": 948.9999389648438,
- "y": 838.0000305175781,
- "z": "df893cfa.16f38",
+ "x": 950.9999389648438,
+ "y": 857.0000305175781,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "a9aeb5d4.ad8218"
+ "95b7bcea.2185b"
]
]
},
{
- "id": "a9aeb5d4.ad8218",
+ "id": "95b7bcea.2185b",
"type": "execute",
"name": "execute reqExecResult",
"xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>\n\t<parameter name='PlaybookName' value='`$playbookname`'/>\n\t\n\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 1136.9999389648438,
- "y": 837.0000305175781,
- "z": "df893cfa.16f38",
+ "x": 1138.9999389648438,
+ "y": 856.0000305175781,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "50e30f80.cb97b",
- "f9b1e44f.cf0bf8"
+ "205ffc13.4d2b24",
+ "c24e2446.933768"
]
]
},
{
- "id": "5614f2d4.83759c",
+ "id": "39c73cda.20f284",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 665.9999389648438,
- "y": 696.0000915527344,
- "z": "df893cfa.16f38",
+ "x": 667.9999389648438,
+ "y": 715.0000915527344,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "261676ae.6c18ea"
+ "c0fa5e3.de329a"
]
]
},
{
- "id": "c6f98872.c067e8",
+ "id": "eed23890.382f88",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 667.9999389648438,
- "y": 748.0000610351562,
- "z": "df893cfa.16f38",
+ "x": 669.9999389648438,
+ "y": 767.0000610351562,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "8e97cc56.5d143"
+ "c2461908.a56de8"
]
]
},
{
- "id": "50e30f80.cb97b",
+ "id": "205ffc13.4d2b24",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1305.9998779296875,
- "y": 819.0000610351562,
- "z": "df893cfa.16f38",
+ "x": 1307.9999389648438,
+ "y": 814.0000381469727,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "7ac364bd.12e01c"
+ "c0fa5e3.de329a"
]
]
},
{
- "id": "8eb6da31.c976d8",
+ "id": "c13b6a1f.ac5838",
"type": "other",
"name": "outcome 101",
"xml": "<outcome value='101'>\n",
"comments": "",
"outputs": 1,
- "x": 948.9999389648438,
- "y": 739.0000686645508,
- "z": "df893cfa.16f38",
+ "x": 950.9999389648438,
+ "y": 758.0000686645508,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "261676ae.6c18ea"
+ "c0fa5e3.de329a"
]
]
},
{
- "id": "f9b1e44f.cf0bf8",
+ "id": "c24e2446.933768",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1309.9998779296875,
- "y": 863.0001220703125,
- "z": "df893cfa.16f38",
+ "x": 1315.9998779296875,
+ "y": 862.0001220703125,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "7ac364bd.12e01c"
+ "1b8bc484.4e584b"
]
]
},
{
- "id": "a40759ed.63a388",
+ "id": "425c7483.101a2c",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",
+ "comments": "",
+ "x": 1609.9998779296875,
+ "y": 919.0000610351562,
+ "z": "a5b492f8.99d13",
+ "wires": []
+ },
+ {
+ "id": "d9f050b3.ea908",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 155,
- "y": 67,
- "z": "df893cfa.16f38",
+ "x": 157,
+ "y": 86,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "1f7a861d.c2112a"
+ "ec3ea72c.b00d38"
]
]
},
{
- "id": "4a691c8b.6b9db4",
+ "id": "dc3f6c8f.49cb4",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 152.91668701171875,
- "y": 159.08334350585938,
- "z": "df893cfa.16f38",
+ "x": 154.91668701171875,
+ "y": 178.08334350585938,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "bb18ce54.65a6d",
- "4f789742.ddd168",
- "2f15d339.87cf0c",
- "556d2c3e.217c14",
- "905f1137.7562f",
- "5cc58e7c.083a5",
- "db896c60.3d19a",
- "ae5d9d02.d1fe4"
+ "aa4b4733.b95e98",
+ "ad12ad52.0e14c",
+ "494bc731.2b3b38",
+ "e7275d95.288b8",
+ "790211fa.4ddc3",
+ "87c25306.3bca6",
+ "54a283d8.5df65c",
+ "1cee6cc7.a0f263"
]
]
},
{
- "id": "4f789742.ddd168",
+ "id": "ad12ad52.0e14c",
"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%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
"comments": "",
"outputs": 1,
- "x": 451.0000305175781,
- "y": 192.08334350585938,
- "z": "df893cfa.16f38",
+ "x": 453.0000305175781,
+ "y": 211.08334350585938,
+ "z": "a5b492f8.99d13",
"wires": [
[]
]
},
{
- "id": "9f29e934.d196d8",
+ "id": "9aa2e4.6e1c5d2",
"type": "execute",
"name": "execute DmaapMsg",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
"comments": "",
"outputs": 1,
- "x": 1617.9998779296875,
- "y": 645.0834045410156,
- "z": "df893cfa.16f38",
+ "x": 1619.9998779296875,
+ "y": 664.0834045410156,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "eff6b07f.5f555"
+ "fde058a0.d22348"
]
]
},
{
- "id": "eff6b07f.5f555",
+ "id": "fde058a0.d22348",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1787.9998168945312,
- "y": 644.0834045410156,
- "z": "df893cfa.16f38",
+ "x": 1789.9998168945312,
+ "y": 663.0834045410156,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "39c1e046.0c9a2"
+ "ff5c4bc7.d7c748"
]
]
},
{
- "id": "261676ae.6c18ea",
+ "id": "c0fa5e3.de329a",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1420.9998168945312,
- "y": 669.0834045410156,
- "z": "df893cfa.16f38",
+ "x": 1422.9998168945312,
+ "y": 688.0834045410156,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "9f29e934.d196d8",
- "20f5321f.fe2dee",
- "b16d5209.3031f"
+ "9aa2e4.6e1c5d2",
+ "16091a49.ebb886",
+ "320ba499.3a71fc"
]
]
},
{
- "id": "dd99789.6491a88",
+ "id": "d1627c41.4a916",
"type": "execute",
"name": "execute DmaapMsg",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
"comments": "",
"outputs": 1,
- "x": 1653.4998779296875,
- "y": 911.0833740234375,
- "z": "df893cfa.16f38",
+ "x": 1620.4998779296875,
+ "y": 869.0833740234375,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "16bb547b.d2861c"
+ "cdd5a821.a26858"
]
]
},
{
- "id": "16bb547b.d2861c",
+ "id": "cdd5a821.a26858",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1838.4998779296875,
- "y": 911.0833740234375,
- "z": "df893cfa.16f38",
+ "x": 1788.4998779296875,
+ "y": 869.0833740234375,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "95e8f51a.226ea8"
+ "6834bf03.5aff8"
]
]
},
{
- "id": "39c1e046.0c9a2",
+ "id": "ff5c4bc7.d7c748",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
"comments": "",
"outputs": 1,
- "x": 1907.9998779296875,
- "y": 643.0833740234375,
- "z": "df893cfa.16f38",
+ "x": 1909.9998779296875,
+ "y": 662.0833740234375,
+ "z": "a5b492f8.99d13",
"wires": [
[]
]
},
{
- "id": "20f5321f.fe2dee",
+ "id": "16091a49.ebb886",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
"comments": "",
- "x": 1599.91650390625,
- "y": 696.0834045410156,
- "z": "df893cfa.16f38",
+ "x": 1601.91650390625,
+ "y": 715.0834045410156,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "95e8f51a.226ea8",
+ "id": "6834bf03.5aff8",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
"comments": "",
"outputs": 1,
- "x": 1970.9166259765625,
- "y": 911.0833740234375,
- "z": "df893cfa.16f38",
+ "x": 1916.9166259765625,
+ "y": 869.0833740234375,
+ "z": "a5b492f8.99d13",
"wires": [
[]
]
},
{
- "id": "b16d5209.3031f",
+ "id": "320ba499.3a71fc",
"type": "set",
"name": "set DmaapReq",
"xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
"comments": "",
- "x": 1604.9998779296875,
- "y": 592.0833740234375,
- "z": "df893cfa.16f38",
+ "x": 1606.9998779296875,
+ "y": 611.0833740234375,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "7ac364bd.12e01c",
+ "id": "1b8bc484.4e584b",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1441.9998779296875,
- "y": 838.0833740234375,
- "z": "df893cfa.16f38",
+ "x": 1443.9998779296875,
+ "y": 863.0833740234375,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "dd99789.6491a88",
- "66ca1a2.98ef5e4",
- "6f78d9df.0d3518",
- "3c0a54ab.00262c",
- "9977ea00.521808"
+ "d1627c41.4a916",
+ "da2077e7.65e5f8",
+ "425c7483.101a2c"
]
]
},
{
- "id": "b364bef1.e2765",
+ "id": "da2077e7.65e5f8",
"type": "set",
"name": "set DmaapReq",
"xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
"comments": "",
- "x": 1995.1666259765625,
- "y": 816.0833740234375,
- "z": "df893cfa.16f38",
+ "x": 1610.1666259765625,
+ "y": 814.0833740234375,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "1beab9a5.7e2366",
+ "id": "d5d4d9a.dfdee28",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 674.9999389648438,
- "y": 648.0000610351562,
- "z": "df893cfa.16f38",
+ "x": 676.9999389648438,
+ "y": 667.0000610351562,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "dd0b1351.6bec5"
+ "c67639b8.92e2d8"
]
]
},
{
- "id": "6e45eb8e.292b44",
+ "id": "1707d581.de00aa",
"type": "set",
"name": "set Defaults",
"xml": "<set>\n<parameter name='org.onap.appc.adapter.ansible.result.code' value='401'/>\n<parameter name='org.onap.appc.adapter.ansible.message' value='Ansible Adapter was not found'/>\n",
"comments": "",
- "x": 965.9999389648438,
- "y": 607,
- "z": "df893cfa.16f38",
+ "x": 967.9999389648438,
+ "y": 626,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "dd0b1351.6bec5",
+ "id": "c67639b8.92e2d8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 811.9999389648438,
- "y": 642.0000610351562,
- "z": "df893cfa.16f38",
+ "x": 813.9999389648438,
+ "y": 661.0000610351562,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "6e45eb8e.292b44",
- "261676ae.6c18ea"
+ "1707d581.de00aa",
+ "c0fa5e3.de329a"
]
]
},
{
- "id": "2f15d339.87cf0c",
+ "id": "494bc731.2b3b38",
"type": "set",
"name": "set default values",
"xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n<parameter name='quote' value=\"'\" />\n",
"comments": "",
- "x": 444,
- "y": 239,
- "z": "df893cfa.16f38",
+ "x": 446,
+ "y": 258,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "3bd1d194.63001e",
+ "id": "6e382fc2.9cf55",
"type": "get-resource",
"name": "get aai.generic-vnf ",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $upgrade-pre-check-input.action-identifiers.vnf-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx='aai.generic-vnf'>",
"comments": "",
"outputs": 1,
- "x": 984,
- "y": 415,
- "z": "df893cfa.16f38",
+ "x": 986,
+ "y": 434,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "d0549989.50cdf8"
+ "d143bfec.8f45b"
]
]
},
{
- "id": "d0549989.50cdf8",
+ "id": "d143bfec.8f45b",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1142.3907470703125,
- "y": 413.28399658203125,
- "z": "df893cfa.16f38",
+ "x": 1144.3907470703125,
+ "y": 432.28399658203125,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "50890a76.58d434"
+ "19bb6647.2aa81a"
]
]
},
{
- "id": "db896c60.3d19a",
+ "id": "54a283d8.5df65c",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='`$playbookname`'/>\n\t<parameter name=\"field2\" value='`$nodelist`'/>",
"comments": "",
"outputs": 1,
- "x": 372.9998779296875,
- "y": 603,
- "z": "df893cfa.16f38",
+ "x": 374.9998779296875,
+ "y": 622,
+ "z": "a5b492f8.99d13",
"wires": [
[]
]
},
{
- "id": "905f1137.7562f",
+ "id": "790211fa.4ddc3",
"type": "switchNode",
"name": "switch pnf-flag",
"xml": "<switch test='`$payloadJson.pnf-flag`'>\n",
"comments": "",
"outputs": 1,
- "x": 426,
- "y": 340,
- "z": "df893cfa.16f38",
+ "x": 428,
+ "y": 359,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "d4a98e23.62f9b",
- "a403044b.ebc9f8"
+ "3deb4f48.5eacb",
+ "33286dd4.94fc62"
]
]
},
{
- "id": "556d2c3e.217c14",
+ "id": "e7275d95.288b8",
"type": "execute",
"name": "execute jsonStringToCtx",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='upgrade-pre-check-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='true' />",
"comments": "",
"outputs": 1,
- "x": 458,
- "y": 286,
- "z": "df893cfa.16f38",
+ "x": 460,
+ "y": 305,
+ "z": "a5b492f8.99d13",
"wires": [
[]
]
},
{
- "id": "d4a98e23.62f9b",
+ "id": "3deb4f48.5eacb",
"type": "outcome",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 623,
- "y": 319,
- "z": "df893cfa.16f38",
+ "x": 625,
+ "y": 338,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "582ec79b.faa468"
+ "cb346986.12dd48"
]
]
},
{
- "id": "a403044b.ebc9f8",
+ "id": "33286dd4.94fc62",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 622.9999389648438,
- "y": 380,
- "z": "df893cfa.16f38",
+ "x": 624.9999389648438,
+ "y": 399,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "3184e083.2b204"
+ "3af30869.256818"
]
]
},
{
- "id": "3184e083.2b204",
+ "id": "3af30869.256818",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 770.9999389648438,
- "y": 379,
- "z": "df893cfa.16f38",
+ "x": 772.9999389648438,
+ "y": 398,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "3bd1d194.63001e",
- "395906a2.acd1ea"
+ "6e382fc2.9cf55",
+ "ce17fe7f.d3b68"
]
]
},
{
- "id": "582ec79b.faa468",
+ "id": "cb346986.12dd48",
"type": "set",
"name": "set AnsibleReq",
"xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $payloadJson.ipaddress-v4-oam + $quote + ']'`\"/>\n<parameter name='playbookname' value='`$prop.lcm.pnf.upgrade-pre-check.playbookname`'/>\n",
"comments": "",
- "x": 784,
- "y": 317,
- "z": "df893cfa.16f38",
+ "x": 786,
+ "y": 336,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "395906a2.acd1ea",
+ "id": "ce17fe7f.d3b68",
"type": "execute",
"name": "set playbookname",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $payloadJson.nf-naming-code + '.upgrade-pre-check.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 993,
- "y": 359,
- "z": "df893cfa.16f38",
+ "x": 995,
+ "y": 378,
+ "z": "a5b492f8.99d13",
"wires": [
[]
]
},
{
- "id": "5cc58e7c.083a5",
+ "id": "87c25306.3bca6",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 423,
- "y": 471,
- "z": "df893cfa.16f38",
+ "x": 425,
+ "y": 490,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "b9c121b9.01765"
+ "4b5ce9b.bbd8818"
]
]
},
{
- "id": "b9c121b9.01765",
+ "id": "4b5ce9b.bbd8818",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 594,
- "y": 472,
- "z": "df893cfa.16f38",
+ "x": 596,
+ "y": 491,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "96dc86e8.19da88"
+ "7b056df1.6a5e34"
]
]
},
{
- "id": "96dc86e8.19da88",
+ "id": "7b056df1.6a5e34",
"type": "set",
"name": "set playbookname",
- "xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>\n<parameter name='playbookname' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>",
+ "xml": "<set>\n<parameter name='playbookname' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>",
"comments": "",
- "x": 784,
- "y": 471,
- "z": "df893cfa.16f38",
+ "x": 786,
+ "y": 490,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "ae5d9d02.d1fe4",
+ "id": "1cee6cc7.a0f263",
"type": "switchNode",
"name": "switch nodelist",
"xml": "<switch test='`$nodelist`'>\n",
"comments": "",
"outputs": 1,
- "x": 413,
- "y": 530,
- "z": "df893cfa.16f38",
+ "x": 415,
+ "y": 549,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "d47821da.1dd48",
- "69b2cec2.dd018"
+ "892b8fdd.f84ea",
+ "8e25ca9e.be6708"
]
]
},
{
- "id": "d47821da.1dd48",
+ "id": "892b8fdd.f84ea",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 593,
- "y": 523,
- "z": "df893cfa.16f38",
+ "x": 595,
+ "y": 542,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "dce9b14d.bb77b"
+ "482863bc.936c5c"
]
]
},
{
- "id": "dce9b14d.bb77b",
+ "id": "482863bc.936c5c",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>",
"comments": "",
- "x": 750,
- "y": 537,
- "z": "df893cfa.16f38",
+ "x": 752,
+ "y": 556,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "69b2cec2.dd018",
+ "id": "8e25ca9e.be6708",
"type": "outcome",
"name": "empty",
"xml": "<outcome value=\"['']\">\n\n",
"comments": "",
"outputs": 1,
- "x": 592,
- "y": 567,
- "z": "df893cfa.16f38",
+ "x": 594,
+ "y": 586,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "dce9b14d.bb77b"
+ "482863bc.936c5c"
]
]
},
{
- "id": "8d045871.31f638",
+ "id": "75287f66.d6424",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 1468,
- "y": 402,
- "z": "df893cfa.16f38",
+ "x": 1470,
+ "y": 421,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "ef1e7a17.621f38"
+ "cf31ac68.a9966"
]
]
},
{
- "id": "ef1e7a17.621f38",
+ "id": "cf31ac68.a9966",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1646,
- "y": 402,
- "z": "df893cfa.16f38",
+ "x": 1648,
+ "y": 421,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "862a6ea8.3ba16"
+ "822cf6dc.fbd318"
]
]
},
{
- "id": "8543ebcf.2ead48",
+ "id": "f5a8e69f.6d2868",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $aai.generic-vnf.ipv4-oam-address + $quote + ']'`\"/>\n",
"comments": "",
- "x": 1441,
- "y": 455,
- "z": "df893cfa.16f38",
+ "x": 1443,
+ "y": 474,
+ "z": "a5b492f8.99d13",
"wires": []
},
{
- "id": "50890a76.58d434",
+ "id": "19bb6647.2aa81a",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1271,
- "y": 412,
- "z": "df893cfa.16f38",
+ "x": 1273,
+ "y": 431,
+ "z": "a5b492f8.99d13",
"wires": [
[
- "8d045871.31f638",
- "8543ebcf.2ead48"
+ "75287f66.d6424",
+ "f5a8e69f.6d2868"
]
]
},
{
- "id": "862a6ea8.3ba16",
+ "id": "822cf6dc.fbd318",
"type": "execute",
"name": "set playbookname",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $aai.generic-vnf.nf-naming-code + '.upgrade-pre-check.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 1818,
- "y": 400,
- "z": "df893cfa.16f38",
- "wires": [
- []
- ]
- },
- {
- "id": "66ca1a2.98ef5e4",
- "type": "execute",
- "name": "execute jsonStringToCtx",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='org.onap.appc.adapter.ansible.results' />\n\t<parameter name='outputPath' value='resultsJson' />\n\t<parameter name='isEscaped' value='false' />\n",
- "comments": "",
- "outputs": 1,
- "x": 1668,
- "y": 744,
- "z": "df893cfa.16f38",
- "wires": [
- []
- ]
- },
- {
- "id": "6f78d9df.0d3518",
- "type": "execute",
- "name": "execute getAttributeValue",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='source' value=\"`'resultsJson.' + $payloadJson.ipaddress-v4-oam + '.Output'`\" />\n\t<parameter name='outputPath' value='outputPayload' />",
- "comments": "",
- "outputs": 1,
- "x": 1674,
- "y": 789,
- "z": "df893cfa.16f38",
+ "x": 1820,
+ "y": 419,
+ "z": "a5b492f8.99d13",
"wires": [
[]
]
- },
- {
- "id": "3c0a54ab.00262c",
- "type": "switchNode",
- "name": "switch outputPayload",
- "xml": "<switch test='`$outputPayload`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1660,
- "y": 836,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "65b8d06e.2f308",
- "db2edf05.5dbf2"
- ]
- ]
- },
- {
- "id": "65b8d06e.2f308",
- "type": "outcome",
- "name": "null",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1838,
- "y": 816,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "b364bef1.e2765"
- ]
- ]
- },
- {
- "id": "db2edf05.5dbf2",
- "type": "outcome",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1839,
- "y": 860,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "3b020d0b.edb822"
- ]
- ]
- },
- {
- "id": "3b020d0b.edb822",
- "type": "set",
- "name": "set DmaapReq with payload",
- "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n<parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>",
- "comments": "",
- "x": 2036,
- "y": 860,
- "z": "df893cfa.16f38",
- "wires": []
- },
- {
- "id": "e583cc0b.79586",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",
- "comments": "",
- "x": 2371,
- "y": 946.9999389648438,
- "z": "df893cfa.16f38",
- "wires": []
- },
- {
- "id": "b678b572.4bc6d8",
- "type": "outcome",
- "name": "null",
- "xml": "<outcome value=''>\n",
- "comments": "",
- "outputs": 1,
- "x": 1837.000244140625,
- "y": 968.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "bebb9bde.cadbc8"
- ]
- ]
- },
- {
- "id": "e71f0e75.f5e6e",
- "type": "outcome",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1836.000244140625,
- "y": 1044.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "a34ae1ab.50555"
- ]
- ]
- },
- {
- "id": "9977ea00.521808",
- "type": "switchNode",
- "name": "switch outputPayload",
- "xml": "<switch test='`$outputPayload`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1654.000244140625,
- "y": 1004.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "b678b572.4bc6d8",
- "e71f0e75.f5e6e"
- ]
- ]
- },
- {
- "id": "c888915f.7e81c",
- "type": "returnSuccess",
- "name": "return success with payload",
- "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n<parameter name='payload' value='`$outputPayload`'/>",
- "comments": "",
- "x": 2412.000244140625,
- "y": 1028.9998779296875,
- "z": "df893cfa.16f38",
- "wires": []
- },
- {
- "id": "bebb9bde.cadbc8",
- "type": "switchNode",
- "name": "switch result code",
- "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 2007.000244140625,
- "y": 968.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "1b395046.b5f6",
- "d4989dec.88a2e"
- ]
- ]
- },
- {
- "id": "a34ae1ab.50555",
- "type": "switchNode",
- "name": "switch result code",
- "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
- "comments": "",
- "outputs": 1,
- "x": 2007.000244140625,
- "y": 1044.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "8e9f2082.ee767",
- "3b44f0c3.4b7c2"
- ]
- ]
- },
- {
- "id": "5e9a3c.5f7e95c4",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
- "comments": "",
- "x": 2365.000244140625,
- "y": 984.9998779296875,
- "z": "df893cfa.16f38",
- "wires": []
- },
- {
- "id": "398f4135.fd470e",
- "type": "returnFailure",
- "name": "return failure with payload",
- "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n<parameter name='payload' value='`$outputPayload`'/>",
- "comments": "",
- "x": 2408.000244140625,
- "y": 1066.9998779296875,
- "z": "df893cfa.16f38",
- "wires": []
- },
- {
- "id": "1b395046.b5f6",
- "type": "other",
- "name": "outcome 400",
- "xml": "<outcome value='400'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2195.000244140625,
- "y": 946.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "e583cc0b.79586"
- ]
- ]
- },
- {
- "id": "d4989dec.88a2e",
- "type": "outcome",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2176.000244140625,
- "y": 984.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "5e9a3c.5f7e95c4"
- ]
- ]
- },
- {
- "id": "8e9f2082.ee767",
- "type": "other",
- "name": "outcome 400",
- "xml": "<outcome value='400'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2196.000244140625,
- "y": 1028.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "c888915f.7e81c"
- ]
- ]
- },
- {
- "id": "3b44f0c3.4b7c2",
- "type": "outcome",
- "name": "other",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2178.000244140625,
- "y": 1066.9998779296875,
- "z": "df893cfa.16f38",
- "wires": [
- [
- "398f4135.fd470e"
- ]
- ]
}
]
\ No newline at end of file diff --git a/platform-logic/lcm/src/main/json/LCM_upgrade-software.json b/platform-logic/lcm/src/main/json/LCM_upgrade-software.json index 0ddbf91e..656abb45 100644 --- a/platform-logic/lcm/src/main/json/LCM_upgrade-software.json +++ b/platform-logic/lcm/src/main/json/LCM_upgrade-software.json @@ -1,811 +1,811 @@ [
{
- "id": "fab0f7ed.c486b8",
+ "id": "d52a9fe6.4a061",
"type": "method",
"name": "upgrade-software",
"xml": "<method rpc='upgrade-software' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 480,
- "y": 147,
- "z": "50de34e0.ace54c",
+ "x": 544,
+ "y": 52,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "5ccc8e8d.06e5"
+ "8be92af7.e48088"
]
]
},
{
- "id": "5c791eb8.0072b",
+ "id": "b090596a.f30168",
"type": "service-logic",
- "name": "LCM ${project.version}",
+ "name": "LCM 1.4.5",
"module": "LCM",
- "version": "${project.version}",
+ "version": "1.4.5",
"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='LCM' version='${project.version}'>",
"outputs": 1,
- "x": 267.99993896484375,
- "y": 148,
- "z": "50de34e0.ace54c",
+ "x": 331.99993896484375,
+ "y": 53,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "fab0f7ed.c486b8"
+ "d52a9fe6.4a061"
]
]
},
{
- "id": "3503ece1.d7ad14",
+ "id": "2f057096.50046",
"type": "execute",
"name": "execute AnsibleA.reqExec",
"xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n<parameter name='User' value='`$prop.ansible.user`'/>\n<parameter name='Password' value='`$prop.ansible.password`'/>\n<parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>\n<parameter name='EnvParameters' value='`$upgrade-software-input.payload`'/>\n<parameter name='NodeList' value=\"`$nodelist`\"/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-software-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$playbookname`'/>",
"comments": "",
"outputs": 1,
- "x": 335.00001525878906,
- "y": 755,
- "z": "50de34e0.ace54c",
+ "x": 399.00001525878906,
+ "y": 660,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "734b2c42.973ee4",
- "bb8a76ca.fb7058",
- "a457fe79.46497"
+ "f4a52a80.3301f8",
+ "4c3969ef.3ad0e8",
+ "519ffe08.0c9b3"
]
]
},
{
- "id": "f17ff2aa.67075",
+ "id": "5a208b8c.11bad4",
"type": "switchNode",
"name": "switch",
"xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
"comments": "",
"outputs": 1,
- "x": 734.9999389648438,
- "y": 863.0000305175781,
- "z": "50de34e0.ace54c",
+ "x": 798.9999389648438,
+ "y": 768.0000305175781,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "7ad5787f.1c20f8",
- "b6f779a3.cc7ed8",
- "f695f05e.abf31"
+ "e1869f29.6536c",
+ "43f57bf1.626ff4",
+ "c32ffe89.d048e"
]
]
},
{
- "id": "7ad5787f.1c20f8",
+ "id": "e1869f29.6536c",
"type": "other",
"name": "outcome 500",
"xml": "<outcome value='500'>\n",
"comments": "",
"outputs": 1,
- "x": 879.9999389648438,
- "y": 861.0000381469727,
- "z": "50de34e0.ace54c",
+ "x": 943.9999389648438,
+ "y": 766.0000381469727,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "2b54a991.b17b16"
+ "398fd4fb.d6173c"
]
]
},
{
- "id": "b6f779a3.cc7ed8",
+ "id": "43f57bf1.626ff4",
"type": "other",
"name": "outcome 100",
"xml": "<outcome value='100'>\n",
"comments": "",
"outputs": 1,
- "x": 876.9999389648438,
- "y": 918.0000305175781,
- "z": "50de34e0.ace54c",
+ "x": 940.9999389648438,
+ "y": 823.0000305175781,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "1a65bc45.b2fcb4"
+ "f88fcab6.006eb8"
]
]
},
{
- "id": "1a65bc45.b2fcb4",
+ "id": "f88fcab6.006eb8",
"type": "execute",
"name": "execute reqExecResult",
"xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>\n\t<parameter name='PlaybookName' value='`$playbookname`'/>\n\t\n\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 1064.9999389648438,
- "y": 917.0000305175781,
- "z": "50de34e0.ace54c",
+ "x": 1128.9999389648438,
+ "y": 822.0000305175781,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "5b0d24c6.9eb0ac",
- "2b5e4322.1d495c"
+ "73432b98.4b25e4",
+ "bd487c1a.8c998"
]
]
},
{
- "id": "bb8a76ca.fb7058",
+ "id": "4c3969ef.3ad0e8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 593.9999389648438,
- "y": 776.0000915527344,
- "z": "50de34e0.ace54c",
+ "x": 657.9999389648438,
+ "y": 681.0000915527344,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "2b54a991.b17b16"
+ "398fd4fb.d6173c"
]
]
},
{
- "id": "734b2c42.973ee4",
+ "id": "f4a52a80.3301f8",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 595.9999389648438,
- "y": 828.0000610351562,
- "z": "50de34e0.ace54c",
+ "x": 659.9999389648438,
+ "y": 733.0000610351562,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "f17ff2aa.67075"
+ "5a208b8c.11bad4"
]
]
},
{
- "id": "5b0d24c6.9eb0ac",
+ "id": "73432b98.4b25e4",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1233.9999389648438,
- "y": 875.0000381469727,
- "z": "50de34e0.ace54c",
+ "x": 1297.9999389648438,
+ "y": 780.0000381469727,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "2b54a991.b17b16"
+ "398fd4fb.d6173c"
]
]
},
{
- "id": "f695f05e.abf31",
+ "id": "c32ffe89.d048e",
"type": "other",
"name": "outcome 101",
"xml": "<outcome value='101'>\n",
"comments": "",
"outputs": 1,
- "x": 876.9999389648438,
- "y": 819.0000686645508,
- "z": "50de34e0.ace54c",
+ "x": 940.9999389648438,
+ "y": 724.0000686645508,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "2b54a991.b17b16"
+ "398fd4fb.d6173c"
]
]
},
{
- "id": "2b5e4322.1d495c",
+ "id": "bd487c1a.8c998",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1241.9998779296875,
- "y": 923.0001220703125,
- "z": "50de34e0.ace54c",
+ "x": 1305.9998779296875,
+ "y": 828.0001220703125,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "db1e6d62.a1404"
+ "adb9b1a6.61eb5"
]
]
},
{
- "id": "c1a2b259.11e46",
+ "id": "2b291cab.721924",
"type": "returnSuccess",
"name": "return success",
"xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",
"comments": "",
- "x": 1535.9998779296875,
- "y": 980.0000610351562,
- "z": "50de34e0.ace54c",
+ "x": 1599.9998779296875,
+ "y": 885.0000610351562,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "566f9779.c05d38",
+ "id": "db787a9a.5729a8",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 83,
- "y": 147,
- "z": "50de34e0.ace54c",
+ "x": 147,
+ "y": 52,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "5c791eb8.0072b"
+ "b090596a.f30168"
]
]
},
{
- "id": "5ccc8e8d.06e5",
+ "id": "8be92af7.e48088",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 80.91668701171875,
- "y": 239.08334350585938,
- "z": "50de34e0.ace54c",
+ "x": 144.91668701171875,
+ "y": 144.08334350585938,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "3503ece1.d7ad14",
- "dc18f7c9.2e4ac8",
- "814875d2.cac108",
- "e9d89bdf.30f7a8",
- "69e97f86.e07ef",
- "fa9a8e1f.bba53",
- "baba22fc.1ceb5",
- "81510405.ca8868"
+ "2f057096.50046",
+ "f86ff952.0492a8",
+ "e1e7ef0d.bad94",
+ "3f387094.3465e",
+ "1f8f1867.c1cf08",
+ "4e2df025.06262",
+ "690e9c9d.3aca34",
+ "3ebaf64f.5a6c4a"
]
]
},
{
- "id": "dc18f7c9.2e4ac8",
+ "id": "f86ff952.0492a8",
"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%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
"comments": "",
"outputs": 1,
- "x": 379.0000305175781,
- "y": 272.0833435058594,
- "z": "50de34e0.ace54c",
+ "x": 443.0000305175781,
+ "y": 177.08334350585938,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[]
]
},
{
- "id": "70d1c79a.089af8",
+ "id": "70a47606.d49438",
"type": "execute",
"name": "execute DmaapMsg",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
"comments": "",
"outputs": 1,
- "x": 1545.9998779296875,
- "y": 725.0834045410156,
- "z": "50de34e0.ace54c",
+ "x": 1609.9998779296875,
+ "y": 630.0834045410156,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "d776c76b.1dd188"
+ "34ac5379.9a844c"
]
]
},
{
- "id": "d776c76b.1dd188",
+ "id": "34ac5379.9a844c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1715.9998168945312,
- "y": 724.0834045410156,
- "z": "50de34e0.ace54c",
+ "x": 1779.9998168945312,
+ "y": 629.0834045410156,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "eac6c260.d11fc"
+ "fb390c18.77a19"
]
]
},
{
- "id": "2b54a991.b17b16",
+ "id": "398fd4fb.d6173c",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1348.9998168945312,
- "y": 749.0834045410156,
- "z": "50de34e0.ace54c",
+ "x": 1412.9998168945312,
+ "y": 654.0834045410156,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "70d1c79a.089af8",
- "7970fcd5.6f11b4",
- "3d8934f9.d0339c"
+ "70a47606.d49438",
+ "d82deaf3.a98988",
+ "df7a754d.479a48"
]
]
},
{
- "id": "e790e11b.4f947",
+ "id": "add47742.421838",
"type": "execute",
"name": "execute DmaapMsg",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
"comments": "",
"outputs": 1,
- "x": 1546.4998779296875,
- "y": 930.0833740234375,
- "z": "50de34e0.ace54c",
+ "x": 1610.4998779296875,
+ "y": 835.0833740234375,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "2e13891.034f576"
+ "5ad46d9d.c433d4"
]
]
},
{
- "id": "2e13891.034f576",
+ "id": "5ad46d9d.c433d4",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1714.4998779296875,
- "y": 930.0833740234375,
- "z": "50de34e0.ace54c",
+ "x": 1778.4998779296875,
+ "y": 835.0833740234375,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "30475e40.9b8be2"
+ "a1c42905.fff878"
]
]
},
{
- "id": "eac6c260.d11fc",
+ "id": "fb390c18.77a19",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
"comments": "",
"outputs": 1,
- "x": 1835.9998779296875,
- "y": 723.0833740234375,
- "z": "50de34e0.ace54c",
+ "x": 1899.9998779296875,
+ "y": 628.0833740234375,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[]
]
},
{
- "id": "7970fcd5.6f11b4",
+ "id": "d82deaf3.a98988",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
"comments": "",
- "x": 1527.91650390625,
- "y": 776.0834045410156,
- "z": "50de34e0.ace54c",
+ "x": 1591.91650390625,
+ "y": 681.0834045410156,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "30475e40.9b8be2",
+ "id": "a1c42905.fff878",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
"comments": "",
"outputs": 1,
- "x": 1842.9166259765625,
- "y": 930.0833740234375,
- "z": "50de34e0.ace54c",
+ "x": 1906.9166259765625,
+ "y": 835.0833740234375,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[]
]
},
{
- "id": "3d8934f9.d0339c",
+ "id": "df7a754d.479a48",
"type": "set",
"name": "set DmaapReq",
"xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
"comments": "",
- "x": 1532.9998779296875,
- "y": 672.0833740234375,
- "z": "50de34e0.ace54c",
+ "x": 1596.9998779296875,
+ "y": 577.0833740234375,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "db1e6d62.a1404",
+ "id": "adb9b1a6.61eb5",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1369.9998779296875,
- "y": 924.0833740234375,
- "z": "50de34e0.ace54c",
+ "x": 1433.9998779296875,
+ "y": 829.0833740234375,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "e790e11b.4f947",
- "3a3f1d44.898da2",
- "c1a2b259.11e46"
+ "add47742.421838",
+ "ff897b1a.9583f8",
+ "2b291cab.721924"
]
]
},
{
- "id": "3a3f1d44.898da2",
+ "id": "ff897b1a.9583f8",
"type": "set",
"name": "set DmaapReq",
"xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
"comments": "",
- "x": 1536.1666259765625,
- "y": 875.0833740234375,
- "z": "50de34e0.ace54c",
+ "x": 1600.1666259765625,
+ "y": 780.0833740234375,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "a457fe79.46497",
+ "id": "519ffe08.0c9b3",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 602.9999389648438,
- "y": 728.0000610351562,
- "z": "50de34e0.ace54c",
+ "x": 666.9999389648438,
+ "y": 633.0000610351562,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "3d4c2c9a.7b1324"
+ "e32c4a6d.892558"
]
]
},
{
- "id": "d512629f.bc625",
+ "id": "8405f654.a242a8",
"type": "set",
"name": "set Defaults",
"xml": "<set>\n<parameter name='org.onap.appc.adapter.ansible.result.code' value='401'/>\n<parameter name='org.onap.appc.adapter.ansible.message' value='Ansible Adapter was not found'/>\n",
"comments": "",
- "x": 893.9999389648438,
- "y": 687,
- "z": "50de34e0.ace54c",
+ "x": 957.9999389648438,
+ "y": 592,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "3d4c2c9a.7b1324",
+ "id": "e32c4a6d.892558",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 739.9999389648438,
- "y": 722.0000610351562,
- "z": "50de34e0.ace54c",
+ "x": 803.9999389648438,
+ "y": 627.0000610351562,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "d512629f.bc625",
- "2b54a991.b17b16"
+ "8405f654.a242a8",
+ "398fd4fb.d6173c"
]
]
},
{
- "id": "814875d2.cac108",
+ "id": "e1e7ef0d.bad94",
"type": "set",
"name": "set default values",
"xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n<parameter name='quote' value=\"'\" />\n",
"comments": "",
- "x": 372,
- "y": 319,
- "z": "50de34e0.ace54c",
+ "x": 436,
+ "y": 224,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "442dbdff.6dfcb4",
+ "id": "62ae5ec1.69479",
"type": "get-resource",
"name": "get aai.generic-vnf ",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $upgrade-software-input.action-identifiers.vnf-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx='aai.generic-vnf'>",
"comments": "",
"outputs": 1,
- "x": 912,
- "y": 495,
- "z": "50de34e0.ace54c",
+ "x": 978,
+ "y": 415,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "1e57cb28.122ad5"
+ "45f13d8e.2baab4"
]
]
},
{
- "id": "1e57cb28.122ad5",
+ "id": "45f13d8e.2baab4",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1070.3907470703125,
- "y": 493.28399658203125,
- "z": "50de34e0.ace54c",
+ "x": 1134.3907470703125,
+ "y": 398.28399658203125,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "5a65efc0.bf413"
+ "374bb3b9.6cefec"
]
]
},
{
- "id": "baba22fc.1ceb5",
+ "id": "690e9c9d.3aca34",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='`$playbookname`'/>\n\t<parameter name=\"field2\" value='`$nodelist`'/>",
"comments": "",
"outputs": 1,
- "x": 300.9998779296875,
- "y": 683,
- "z": "50de34e0.ace54c",
+ "x": 364.9998779296875,
+ "y": 588,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[]
]
},
{
- "id": "69e97f86.e07ef",
+ "id": "1f8f1867.c1cf08",
"type": "switchNode",
"name": "switch pnf-flag",
"xml": "<switch test='`$payloadJson.pnf-flag`'>\n",
"comments": "",
"outputs": 1,
- "x": 354,
- "y": 420,
- "z": "50de34e0.ace54c",
+ "x": 418,
+ "y": 325,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "e43265e9.4c7f38",
- "d78c93da.7125f"
+ "5b32bef7.b059e",
+ "f5bcff23.7649a"
]
]
},
{
- "id": "e9d89bdf.30f7a8",
+ "id": "3f387094.3465e",
"type": "execute",
"name": "execute jsonStringToCtx",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='upgrade-software-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='true' />",
"comments": "",
"outputs": 1,
- "x": 386,
- "y": 366,
- "z": "50de34e0.ace54c",
+ "x": 450,
+ "y": 271,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[]
]
},
{
- "id": "e43265e9.4c7f38",
+ "id": "5b32bef7.b059e",
"type": "outcome",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 551,
- "y": 399,
- "z": "50de34e0.ace54c",
+ "x": 615,
+ "y": 304,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "abbc4ae4.be5328"
+ "a02f543f.407778"
]
]
},
{
- "id": "d78c93da.7125f",
+ "id": "f5bcff23.7649a",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 550.9999389648438,
- "y": 460,
- "z": "50de34e0.ace54c",
+ "x": 614.9999389648438,
+ "y": 365,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "f68ee407.ca6d88"
+ "4ae3a7c9.907f18"
]
]
},
{
- "id": "f68ee407.ca6d88",
+ "id": "4ae3a7c9.907f18",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 698.9999389648438,
- "y": 459,
- "z": "50de34e0.ace54c",
+ "x": 762.9999389648438,
+ "y": 364,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "442dbdff.6dfcb4",
- "80c560bb.eea5f"
+ "62ae5ec1.69479",
+ "fc28a02d.cc248"
]
]
},
{
- "id": "abbc4ae4.be5328",
+ "id": "a02f543f.407778",
"type": "set",
"name": "set AnsibleReq",
"xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $payloadJson.ipaddress-v4-oam + $quote + ']'`\"/>\n<parameter name='playbookname' value='`$prop.lcm.pnf.upgrade-software.playbookname`'/>\n",
"comments": "",
- "x": 712,
- "y": 397,
- "z": "50de34e0.ace54c",
+ "x": 776,
+ "y": 302,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "80c560bb.eea5f",
+ "id": "fc28a02d.cc248",
"type": "execute",
"name": "set playbookname",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $payloadJson.nf-naming-code + '.upgrade-software.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 921,
- "y": 439,
- "z": "50de34e0.ace54c",
+ "x": 976,
+ "y": 312,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[]
]
},
{
- "id": "fa9a8e1f.bba53",
+ "id": "4e2df025.06262",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 351,
- "y": 551,
- "z": "50de34e0.ace54c",
+ "x": 415,
+ "y": 456,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "1a5624d2.74e98b"
+ "6164fda7.628474"
]
]
},
{
- "id": "1a5624d2.74e98b",
+ "id": "6164fda7.628474",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 522,
- "y": 552,
- "z": "50de34e0.ace54c",
+ "x": 586,
+ "y": 457,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "524c17a1.30fbf8"
+ "789294b0.3e8a8c"
]
]
},
{
- "id": "524c17a1.30fbf8",
+ "id": "789294b0.3e8a8c",
"type": "set",
"name": "set playbookname",
- "xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>\n<parameter name='playbookname' value='`$prop.lcm.upgrade-software.playbookname`'/>",
+ "xml": "<set>\n<parameter name='playbookname' value='`$prop.lcm.upgrade-software.playbookname`'/>",
"comments": "",
- "x": 712,
- "y": 551,
- "z": "50de34e0.ace54c",
+ "x": 776,
+ "y": 456,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "81510405.ca8868",
+ "id": "3ebaf64f.5a6c4a",
"type": "switchNode",
"name": "switch nodelist",
"xml": "<switch test='`$nodelist`'>\n",
"comments": "",
"outputs": 1,
- "x": 341,
- "y": 610,
- "z": "50de34e0.ace54c",
+ "x": 405,
+ "y": 515,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "7a126f.d2de2d9",
- "8743a074.e8506"
+ "12193ca9.50e163",
+ "8146ae4e.2b29b"
]
]
},
{
- "id": "7a126f.d2de2d9",
+ "id": "12193ca9.50e163",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 521,
- "y": 603,
- "z": "50de34e0.ace54c",
+ "x": 585,
+ "y": 508,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "c954af6f.c34df"
+ "b589f932.9ec108"
]
]
},
{
- "id": "c954af6f.c34df",
+ "id": "b589f932.9ec108",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>",
"comments": "",
- "x": 678,
- "y": 617,
- "z": "50de34e0.ace54c",
+ "x": 742,
+ "y": 522,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "8743a074.e8506",
+ "id": "8146ae4e.2b29b",
"type": "outcome",
"name": "empty",
"xml": "<outcome value=\"['']\">\n\n",
"comments": "",
"outputs": 1,
- "x": 520,
- "y": 647,
- "z": "50de34e0.ace54c",
+ "x": 584,
+ "y": 552,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "c954af6f.c34df"
+ "b589f932.9ec108"
]
]
},
{
- "id": "90b2891b.001708",
+ "id": "94498b41.794368",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 1396,
- "y": 482,
- "z": "50de34e0.ace54c",
+ "x": 1460,
+ "y": 387,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "c9dd0d76.432f7"
+ "975c4b05.0f6d08"
]
]
},
{
- "id": "c9dd0d76.432f7",
+ "id": "975c4b05.0f6d08",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1574,
- "y": 482,
- "z": "50de34e0.ace54c",
+ "x": 1638,
+ "y": 387,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "6ea15b2b.d9cd74"
+ "eee08f4b.ee327"
]
]
},
{
- "id": "9706bdee.6acf9",
+ "id": "7c4590ff.245c9",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $aai.generic-vnf.ipv4-oam-address + $quote + ']'`\"/>\n",
"comments": "",
- "x": 1369,
- "y": 535,
- "z": "50de34e0.ace54c",
+ "x": 1433,
+ "y": 440,
+ "z": "d0eb0cbd.ae56e",
"wires": []
},
{
- "id": "5a65efc0.bf413",
+ "id": "374bb3b9.6cefec",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1199,
- "y": 492,
- "z": "50de34e0.ace54c",
+ "x": 1263,
+ "y": 397,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[
- "90b2891b.001708",
- "9706bdee.6acf9"
+ "94498b41.794368",
+ "7c4590ff.245c9"
]
]
},
{
- "id": "6ea15b2b.d9cd74",
+ "id": "eee08f4b.ee327",
"type": "execute",
"name": "set playbookname",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $aai.generic-vnf.nf-naming-code + '.upgrade-software.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 1746,
- "y": 480,
- "z": "50de34e0.ace54c",
+ "x": 1810,
+ "y": 385,
+ "z": "d0eb0cbd.ae56e",
"wires": [
[]
]
diff --git a/platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml b/platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml index a772373d..4a88aac4 100644 --- a/platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml +++ b/platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml @@ -57,7 +57,6 @@ <switch test='`$playbookname`'>
<outcome value=''>
<set>
- <parameter name='nodelist' value="`$prop.ansible.nodelist`"/>
<parameter name='playbookname' value='`$prop.lcm.upgrade-post-check.playbookname`'/>
</set>
</outcome>
@@ -271,56 +270,23 @@ <parameter name='PlaybookName' value='`$playbookname`'/>
<outcome value='failure'>
<block>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
- <parameter name='source' value='org.onap.appc.adapter.ansible.results' />
- <parameter name='outputPath' value='resultsJson' />
- <parameter name='isEscaped' value='false' />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='source' value="`'resultsJson.' + $payloadJson.ipaddress-v4-oam + '.Output'`" />
- <parameter name='outputPath' value='outputPayload' />
- </execute>
- <switch test='`$outputPayload`'>
- <outcome value=''>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </set>
- </outcome>
- <outcome value='Other'>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- <parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>
- </set>
- </outcome>
- </switch>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </set>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
<parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
@@ -337,96 +303,31 @@ </record>
</outcome>
</execute>
- <switch test='`$outputPayload`'>
- <outcome value=''>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='400'>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- </return>
- </outcome>
- </switch>
- </outcome>
- <outcome value='Other'>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='400'>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- <parameter name='payload' value='`$outputPayload`'/>
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- <parameter name='payload' value='`$outputPayload`'/>
- </return>
- </outcome>
- </switch>
- </outcome>
- </switch>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
</block>
</outcome>
<outcome value='success'>
<block>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
- <parameter name='source' value='org.onap.appc.adapter.ansible.results' />
- <parameter name='outputPath' value='resultsJson' />
- <parameter name='isEscaped' value='false' />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='source' value="`'resultsJson.' + $payloadJson.ipaddress-v4-oam + '.Output'`" />
- <parameter name='outputPath' value='outputPayload' />
- </execute>
- <switch test='`$outputPayload`'>
- <outcome value=''>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </set>
- </outcome>
- <outcome value='Other'>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- <parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>
- </set>
- </outcome>
- </switch>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </set>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
<parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
@@ -443,42 +344,10 @@ </record>
</outcome>
</execute>
- <switch test='`$outputPayload`'>
- <outcome value=''>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='400'>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- </return>
- </outcome>
- </switch>
- </outcome>
- <outcome value='Other'>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='400'>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- <parameter name='payload' value='`$outputPayload`'/>
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- <parameter name='payload' value='`$outputPayload`'/>
- </return>
- </outcome>
- </switch>
- </outcome>
- </switch>
+ <return status='success'>
+ <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </return>
</block>
</outcome>
</execute>
diff --git a/platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml b/platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml index 28f7048e..6f89bfcf 100644 --- a/platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml +++ b/platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml @@ -57,7 +57,6 @@ <switch test='`$playbookname`'>
<outcome value=''>
<set>
- <parameter name='nodelist' value="`$prop.ansible.nodelist`"/>
<parameter name='playbookname' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>
</set>
</outcome>
@@ -271,56 +270,23 @@ <parameter name='PlaybookName' value='`$playbookname`'/>
<outcome value='failure'>
<block>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
- <parameter name='source' value='org.onap.appc.adapter.ansible.results' />
- <parameter name='outputPath' value='resultsJson' />
- <parameter name='isEscaped' value='false' />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='source' value="`'resultsJson.' + $payloadJson.ipaddress-v4-oam + '.Output'`" />
- <parameter name='outputPath' value='outputPayload' />
- </execute>
- <switch test='`$outputPayload`'>
- <outcome value=''>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </set>
- </outcome>
- <outcome value='Other'>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- <parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>
- </set>
- </outcome>
- </switch>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </set>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
<parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
@@ -337,96 +303,31 @@ </record>
</outcome>
</execute>
- <switch test='`$outputPayload`'>
- <outcome value=''>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='400'>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- </return>
- </outcome>
- </switch>
- </outcome>
- <outcome value='Other'>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='400'>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- <parameter name='payload' value='`$outputPayload`'/>
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- <parameter name='payload' value='`$outputPayload`'/>
- </return>
- </outcome>
- </switch>
- </outcome>
- </switch>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
</block>
</outcome>
<outcome value='success'>
<block>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
- <parameter name='source' value='org.onap.appc.adapter.ansible.results' />
- <parameter name='outputPath' value='resultsJson' />
- <parameter name='isEscaped' value='false' />
- </execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
- <parameter name='source' value="`'resultsJson.' + $payloadJson.ipaddress-v4-oam + '.Output'`" />
- <parameter name='outputPath' value='outputPayload' />
- </execute>
- <switch test='`$outputPayload`'>
- <outcome value=''>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </set>
- </outcome>
- <outcome value='Other'>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- <parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>
- </set>
- </outcome>
- </switch>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </set>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
<parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
@@ -443,42 +344,10 @@ </record>
</outcome>
</execute>
- <switch test='`$outputPayload`'>
- <outcome value=''>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='400'>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- </return>
- </outcome>
- </switch>
- </outcome>
- <outcome value='Other'>
- <switch test="`$org.onap.appc.adapter.ansible.result.code`">
- <outcome value='400'>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- <parameter name='payload' value='`$outputPayload`'/>
- </return>
- </outcome>
- <outcome value='Other'>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- <parameter name='payload' value='`$outputPayload`'/>
- </return>
- </outcome>
- </switch>
- </outcome>
- </switch>
+ <return status='success'>
+ <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </return>
</block>
</outcome>
</execute>
diff --git a/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml b/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml index 1a72c47e..e4f818f7 100644 --- a/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml +++ b/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml @@ -57,7 +57,6 @@ <switch test='`$playbookname`'>
<outcome value=''>
<set>
- <parameter name='nodelist' value="`$prop.ansible.nodelist`"/>
<parameter name='playbookname' value='`$prop.lcm.upgrade-software.playbookname`'/>
</set>
</outcome>
|