diff options
Diffstat (limited to 'appc-directed-graph')
-rw-r--r-- | appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_GetRunningConfig_2.0.0.json | 2335 |
1 files changed, 1211 insertions, 1124 deletions
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_GetRunningConfig_2.0.0.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_GetRunningConfig_2.0.0.json index 41eeca446..6bdcd2ca5 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_GetRunningConfig_2.0.0.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/APPC_method_GetRunningConfig_2.0.0.json @@ -1,1124 +1,1211 @@ -[
- {
- "id": "2bf5503c.d388e",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 664.888916015625,
- "y": 58.25000762939453,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "dbafdb1b.934f58"
- ]
- ]
- },
- {
- "id": "faf55a2.8a3cca8",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 749.138916015625,
- "y": 374.75,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "b59140c4.f0d26"
- ]
- ]
- },
- {
- "id": "5a7e4d0c.a3ad34",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 745.138916015625,
- "y": 427.5,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "eda2123c.64453"
- ]
- ]
- },
- {
- "id": "3371a22a.28dfee",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 667.888916015625,
- "y": 127.25,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "577dc0de.87c37"
- ]
- ]
- },
- {
- "id": "c372101a.aa5ea",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 665.1388549804688,
- "y": 278.50000762939453,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "2cc0ecf5.2756c4"
- ]
- ]
- },
- {
- "id": "feb957d9.9b3838",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 659.1388549804688,
- "y": 213.25000762939453,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "48d059a1.2c1378"
- ]
- ]
- },
- {
- "id": "757aad86.e63454",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 737.388916015625,
- "y": 472.75,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "cbdc9a91.622178"
- ]
- ]
- },
- {
- "id": "c6746ea4.d8171",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 736.888916015625,
- "y": 523.75,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "fbb83850.3ab008"
- ]
- ]
- },
- {
- "id": "4ac10f26.bb958",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1406.888916015625,
- "y": 608.0000076293945,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "8f213625.b48068"
- ]
- ]
- },
- {
- "id": "202e4abf.4f39b6",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1411.638916015625,
- "y": 706.5000076293945,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "db7afb3c.2c58c8"
- ]
- ]
- },
- {
- "id": "15804f82.f28b4",
- "type": "success",
- "name": "multipleRunningConfig",
- "xml": "<outcome value='Other'>\n",
- "comments": "",
- "outputs": 1,
- "x": 859.388916015625,
- "y": 579.0000076293945,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "64a22d10.d8c794"
- ]
- ]
- },
- {
- "id": "a20d1d4b.9026d",
- "type": "get-resource",
- "name": "Retrieve device credentials",
- "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select USER_NAME , PASSWORD , PORT_NUMBER from DEVICE_AUTHENTICATION where VNF_TYPE = $vnf-type \" >\n<parameter name=\"nodeName\" value=\"retrieveDeviceCredentials\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 429.63897705078125,
- "y": 123,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "2bf5503c.d388e",
- "3371a22a.28dfee",
- "d3311276.7aeb5"
- ]
- ]
- },
- {
- "id": "b39573b0.7834d",
- "type": "call",
- "name": "Call device interfacing DG",
- "xml": "<call rpc='`$dg-rpc`' module = '`$module`' mode='sync'>\n<parameter name=\"nodeName\" value=\"callInterfacingDG\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 479.888916015625,
- "y": 428.75,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "faf55a2.8a3cca8",
- "5a7e4d0c.a3ad34",
- "27a86a4d.b60b06"
- ]
- ]
- },
- {
- "id": "26e12fcf.61188",
- "type": "get-resource",
- "name": "Get device interfacing DG",
- "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select dg_rpc , module , protocol from DEVICE_INTERFACE_PROTOCOL where VNF_TYPE = $vnf-type and DG_RPC is not null \" >\n<parameter name=\"nodeName\" value=\"getDeviceInterfacingDG\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 406.638916015625,
- "y": 277.75000762939453,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "c372101a.aa5ea",
- "feb957d9.9b3838",
- "7730960.662fc6c"
- ]
- ]
- },
- {
- "id": "d1f75432.3fab98",
- "type": "get-resource",
- "name": "Check if running config exists",
- "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select count(1) as value from UPLOAD_CONFIG where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='runningConfig.count'>\n<parameter name=\"nodeName\" value=\"getDBRunningConf\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 439.8889465332031,
- "y": 562.5,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "757aad86.e63454",
- "c6746ea4.d8171",
- "df801ff7.3334"
- ]
- ]
- },
- {
- "id": "6624b792.a4c4e8",
- "type": "save",
- "name": "Insert configuration",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"INSERT INTO UPLOAD_CONFIG (REQUEST_ID, ORIGINATOR_ID, SERVICE_DESCRIPTION, ACTION, VNF_ID, VNF_NAME, VM_NAME, VNF_TYPE, VNFC_TYPE, HOST_IP_ADDRESS, CONFIG_INDICATOR, PENDING_DELETE, CONTENT ) VALUES ( $input.common-header.request-id , $input.common-header.originator-id , $service-description , $input.action , $input.action-identifiers.vnf-id , $vnf-name , $vm-name , $vnf-type , $vnfc-type , $host-ip-address , 'Running' , NULL , $device-running-config ) \" force='true' >\n<parameter name=\"nodeName\" value=\"InsertConfiguration\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1198.638916015625,
- "y": 619.2500076293945,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "4ac10f26.bb958",
- "b2654dc9.f9d45"
- ]
- ]
- },
- {
- "id": "11aa7b01.78e3c5",
- "type": "save",
- "name": "Update configuration",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"update UPLOAD_CONFIG set CONTENT = $device-running-config , REQUEST_ID = $input.common-header.request-id , ORIGINATOR_ID = $input.common-header.originator-id , SERVICE_DESCRIPTION = $service-description , ACTION = $input.action , UPLOAD_DATE = CURRENT_TIMESTAMP where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='update'>\n<parameter name=\"nodeName\" value=\"updateConfiguration\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1198.1389045715332,
- "y": 716,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "202e4abf.4f39b6",
- "5fee9fb0.f2325"
- ]
- ]
- },
- {
- "id": "2dbbd306.12300c",
- "type": "switchNode",
- "name": "switch",
- "xml": "<switch test='`$runningConfig.count.value`'>\n",
- "comments": "",
- "outputs": 1,
- "x": 650.6389122009277,
- "y": 614.2500095367432,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "15804f82.f28b4",
- "ede96b3d.4c0f28",
- "c37b362b.01c868"
- ]
- ]
- },
- {
- "id": "c183af40.7e96b",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 164.38891983032227,
- "y": 235.50000381469727,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "a20d1d4b.9026d",
- "b696a7db.8ca138"
- ]
- ]
- },
- {
- "id": "d3311276.7aeb5",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 477.13885498046875,
- "y": 187.00000762939453,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "26e12fcf.61188"
- ]
- ]
- },
- {
- "id": "27a86a4d.b60b06",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 441.63885498046875,
- "y": 499.75,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "d1f75432.3fab98"
- ]
- ]
- },
- {
- "id": "7730960.662fc6c",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 263.1387939453125,
- "y": 353.5,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "29603b9a.2c5b84"
- ]
- ]
- },
- {
- "id": "df801ff7.3334",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 479.38885498046875,
- "y": 664.75,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "2dbbd306.12300c"
- ]
- ]
- },
- {
- "id": "b2654dc9.f9d45",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1408.638916015625,
- "y": 657.2500076293945,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "e8b89f13.0bbb4"
- ]
- ]
- },
- {
- "id": "35b04eb6.6d2212",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1024.638916015625,
- "y": 631.2500076293945,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "6624b792.a4c4e8"
- ]
- ]
- },
- {
- "id": "5fee9fb0.f2325",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1411.388916015625,
- "y": 772.5000305175781,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "e8b89f13.0bbb4"
- ]
- ]
- },
- {
- "id": "ed19ec7d.1ee2b",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1026.138916015625,
- "y": 694.5000076293945,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "11aa7b01.78e3c5"
- ]
- ]
- },
- {
- "id": "ede96b3d.4c0f28",
- "type": "success",
- "name": "noRunningConfig",
- "xml": "<outcome value='0'>\n",
- "comments": "",
- "outputs": 1,
- "x": 850.638916015625,
- "y": 630.0000076293945,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "35b04eb6.6d2212"
- ]
- ]
- },
- {
- "id": "c37b362b.01c868",
- "type": "failure",
- "name": "runningConfigExists",
- "xml": "<outcome value='1'>\n",
- "comments": "",
- "outputs": 1,
- "x": 854.138916015625,
- "y": 695.0000076293945,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "ed19ec7d.1ee2b"
- ]
- ]
- },
- {
- "id": "4896d6e4.5270f8",
- "type": "method",
- "name": "GetRunningConfig",
- "xml": "<method rpc='GetRunningConfig' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 154.888916015625,
- "y": 152,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "c183af40.7e96b"
- ]
- ]
- },
- {
- "id": "13a41622.3f89ca",
- "type": "service-logic",
- "name": "APPC 2.0.0",
- "module": "APPC",
- "version": "2.0.0",
- "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='APPC' version='2.0.0'>",
- "outputs": 1,
- "x": 291.88890838623047,
- "y": 67.25000190734863,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "4896d6e4.5270f8"
- ]
- ]
- },
- {
- "id": "b696a7db.8ca138",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n",
- "comments": "",
- "x": 144.88894653320312,
- "y": 441.5,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "251494ff.29474c",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 124.3889045715332,
- "y": 68,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "13a41622.3f89ca"
- ]
- ]
- },
- {
- "id": "dbafdb1b.934f58",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 839.888916015625,
- "y": 59.750003814697266,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "c5226259.21e3e",
- "2490a85b.6f7c38",
- "253f5533.50173a"
- ]
- ]
- },
- {
- "id": "c5226259.21e3e",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='node-error-message' value='Error while retrieving device credentials' />\n",
- "comments": "",
- "x": 1046.388916015625,
- "y": 46,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "577dc0de.87c37",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 844.638916015625,
- "y": 126.25,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "920835f9.5449d8",
- "2490a85b.6f7c38",
- "253f5533.50173a"
- ]
- ]
- },
- {
- "id": "920835f9.5449d8",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='node-error-message' value=\"`'Device credentials not found for the ' + $vnf-type `\"/>\n",
- "comments": "",
- "x": 1048.388916015625,
- "y": 85.5,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "48d059a1.2c1378",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 839.388916015625,
- "y": 196.25000762939453,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "ed173feb.0d45f",
- "253f5533.50173a",
- "2490a85b.6f7c38"
- ]
- ]
- },
- {
- "id": "2cc0ecf5.2756c4",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 843.388916015625,
- "y": 252.50000762939453,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "e5af31d.d7d11d",
- "253f5533.50173a",
- "2490a85b.6f7c38"
- ]
- ]
- },
- {
- "id": "ed173feb.0d45f",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='node-error-message' value='Error while getting device interfacing DG details' />\n",
- "comments": "",
- "x": 1053.3889045715332,
- "y": 133.00000762939453,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "e5af31d.d7d11d",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='node-error-message' value=\"`'Device Interfacing DG mapping not found for the ' + $vnf-type `\" />\n",
- "comments": "",
- "x": 1051.138916015625,
- "y": 176.00000762939453,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "253f5533.50173a",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",
- "comments": "",
- "x": 1079.138916015625,
- "y": 271.25000762939453,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "b59140c4.f0d26",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 910.638916015625,
- "y": 325,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "11ce3fcd.175be",
- "9a30398b.6a1268",
- "81b0e59d.dd52a8"
- ]
- ]
- },
- {
- "id": "eda2123c.64453",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 924.638916015625,
- "y": 410.25,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "e924feb9.1fc4b",
- "9a30398b.6a1268",
- "81b0e59d.dd52a8"
- ]
- ]
- },
- {
- "id": "11ce3fcd.175be",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='node-error-message' value=\"`$error-message`\"/>\n",
- "comments": "",
- "x": 1178.638916015625,
- "y": 316.5,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "e924feb9.1fc4b",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='node-error-message' value='Device Interfacing DG not found' />\n",
- "comments": "",
- "x": 1180.638916015625,
- "y": 359.75,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "fbb83850.3ab008",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 941.138916015625,
- "y": 522.75,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "9897d37f.3e86f",
- "81b0e59d.dd52a8",
- "9a30398b.6a1268"
- ]
- ]
- },
- {
- "id": "cbdc9a91.622178",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 939.888916015625,
- "y": 468.25,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "1dd1ceae.7c5731",
- "81b0e59d.dd52a8",
- "9a30398b.6a1268"
- ]
- ]
- },
- {
- "id": "1dd1ceae.7c5731",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\"/>\n",
- "comments": "",
- "x": 1179.388916015625,
- "y": 404.25,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "9897d37f.3e86f",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n",
- "comments": "",
- "x": 1179.638916015625,
- "y": 444.25,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "81b0e59d.dd52a8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",
- "comments": "",
- "x": 1187.138916015625,
- "y": 543.5,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "64a22d10.d8c794",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1577.638916015625,
- "y": 576.7500076293945,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "d55829a0.692118",
- "53f66547.a56dac",
- "75356e6f.a67ac"
- ]
- ]
- },
- {
- "id": "d55829a0.692118",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='node-error-message' value='More than one running configuration available for a VNFC' />\n",
- "comments": "",
- "x": 1803.388916015625,
- "y": 530.2500610351562,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "53f66547.a56dac",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",
- "comments": "",
- "x": 1802.638916015625,
- "y": 710.0000305175781,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "8f213625.b48068",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1582.138916015625,
- "y": 632.75,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "b2368a5.6789578",
- "53f66547.a56dac",
- "75356e6f.a67ac"
- ]
- ]
- },
- {
- "id": "b2368a5.6789578",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while updating the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n",
- "comments": "",
- "x": 1806.638916015625,
- "y": 575.2500305175781,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "db7afb3c.2c58c8",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1582.638916015625,
- "y": 693.25,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "cc111001.f32a8",
- "53f66547.a56dac",
- "75356e6f.a67ac"
- ]
- ]
- },
- {
- "id": "cc111001.f32a8",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while updating the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n",
- "comments": "",
- "x": 1807.388916015625,
- "y": 621.2500305175781,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "2490a85b.6f7c38",
- "type": "record",
- "name": "Log error",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1070.888916015625,
- "y": 227.25000762939453,
- "z": "276d1f6b.9bb71",
- "wires": [
- []
- ]
- },
- {
- "id": "9a30398b.6a1268",
- "type": "record",
- "name": "Log error",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1186.888916015625,
- "y": 499.25,
- "z": "276d1f6b.9bb71",
- "wires": [
- []
- ]
- },
- {
- "id": "75356e6f.a67ac",
- "type": "record",
- "name": "Log error",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 1800.888916015625,
- "y": 663.2500305175781,
- "z": "276d1f6b.9bb71",
- "wires": [
- []
- ]
- },
- {
- "id": "21660aea.e01ea6",
- "type": "set",
- "name": "set DG parameters",
- "xml": "<set>\n<parameter name='config.vnf-type' value=\"`$vnf-type`\" />\n<parameter name='config.vnf-name' value=\"`$vnf-name`\" />\n<parameter name='config.protocol' value=\"`$protocol`\" />\n<parameter name='config.host-ip-address' value=\"`$host-ip-address`\" />\n<parameter name='config.user-name' value=\"`$USER-NAME`\" />\n<parameter name='config.password' value=\"`$PASSWORD`\" />\n<parameter name='config.port-number' value=\"`$PORT-NUMBER`\" />",
- "comments": "",
- "x": 585.888916015625,
- "y": 330,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "29603b9a.2c5b84",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 395.888916015625,
- "y": 353,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "21660aea.e01ea6",
- "b39573b0.7834d"
- ]
- ]
- },
- {
- "id": "e8b89f13.0bbb4",
- "type": "get-resource",
- "name": "Get Running Config Id",
- "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' key=\"select UPLOAD_CONFIG_ID from UPLOAD_CONFIG where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='runningConfig'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1648.888916015625,
- "y": 779.3333435058594,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "ab251259.3d74",
- "d14179e1.547d98",
- "aec5de94.0b1ee"
- ]
- ]
- },
- {
- "id": "ab251259.3d74",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2001.388916015625,
- "y": 733.5833740234375,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "bf29ea96.6ffa68"
- ]
- ]
- },
- {
- "id": "d14179e1.547d98",
- "type": "not-found",
- "name": "not-found",
- "xml": "<outcome value='not-found'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1993.888916015625,
- "y": 793.5833740234375,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "e27c0f02.9b77"
- ]
- ]
- },
- {
- "id": "bf29ea96.6ffa68",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2158.8885498046875,
- "y": 732.0833740234375,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "5b24ae34.dd7d9",
- "dfd2268c.d462e8",
- "babb2c3a.ce283"
- ]
- ]
- },
- {
- "id": "5b24ae34.dd7d9",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\"/>\n",
- "comments": "",
- "x": 2393.3887939453125,
- "y": 673.0833740234375,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "babb2c3a.ce283",
- "type": "record",
- "name": "Log error",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2384.8885498046875,
- "y": 772.0833740234375,
- "z": "276d1f6b.9bb71",
- "wires": [
- []
- ]
- },
- {
- "id": "e27c0f02.9b77",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2159.1387939453125,
- "y": 794.5833740234375,
- "z": "276d1f6b.9bb71",
- "wires": [
- [
- "cf88cbf8.678fd8",
- "dfd2268c.d462e8",
- "babb2c3a.ce283"
- ]
- ]
- },
- {
- "id": "dfd2268c.d462e8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",
- "comments": "",
- "x": 2400.1385498046875,
- "y": 827.3333740234375,
- "z": "276d1f6b.9bb71",
- "wires": []
- },
- {
- "id": "aec5de94.0b1ee",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1985.388671875,
- "y": 861.5833740234375,
- "z": "276d1f6b.9bb71",
- "wires": [
- []
- ]
- },
- {
- "id": "cf88cbf8.678fd8",
- "type": "set",
- "name": "Set error message",
- "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n",
- "comments": "",
- "x": 2400.6387939453125,
- "y": 723.0833740234375,
- "z": "276d1f6b.9bb71",
- "wires": []
- }
-]
+[ + { + "id": "41c9ff8.d1003", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 718.4999847412109, + "y": 348.9999876022339, + "z": "f559ad98.b8693", + "wires": [ + [ + "c71126ee.a63608" + ] + ] + }, + { + "id": "2f462db6.1bf662", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 709.4999732971191, + "y": 424.25000762939453, + "z": "f559ad98.b8693", + "wires": [ + [ + "93afef4a.9f677" + ] + ] + }, + { + "id": "f7067fbf.b9ee2", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 650.7499198913574, + "y": 87.7499828338623, + "z": "f559ad98.b8693", + "wires": [ + [ + "89ea0bc2.cebbb8" + ] + ] + }, + { + "id": "af1966db.536898", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 647.2499294281006, + "y": 37.49998474121094, + "z": "f559ad98.b8693", + "wires": [ + [ + "35f55e04.cb5542" + ] + ] + }, + { + "id": "1cf51b48.0883a5", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 676.7499237060547, + "y": 506.99992752075195, + "z": "f559ad98.b8693", + "wires": [ + [ + "25b252df.c74fce" + ] + ] + }, + { + "id": "c944dab9.aabd48", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 674.9999465942383, + "y": 557.9999904632568, + "z": "f559ad98.b8693", + "wires": [ + [ + "7047697.c309998" + ] + ] + }, + { + "id": "5ae40f9c.4c573", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1346.2497959136963, + "y": 643.5000324249268, + "z": "f559ad98.b8693", + "wires": [ + [ + "20eba032.0d715" + ] + ] + }, + { + "id": "c1a9f0a9.4d854", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1353.4999618530273, + "y": 713.2499885559082, + "z": "f559ad98.b8693", + "wires": [ + [ + "d23e8d46.32801" + ] + ] + }, + { + "id": "e4bb8d09.58ee4", + "type": "success", + "name": "multipleRunningConfig", + "xml": "<outcome value='Other'>\n", + "comments": "", + "outputs": 1, + "x": 821.2499809265137, + "y": 604.4999561309814, + "z": "f559ad98.b8693", + "wires": [ + [ + "4ef6cf2b.3f87e" + ] + ] + }, + { + "id": "18f727b5.1aba48", + "type": "call", + "name": "Call device interfacing DG", + "xml": "<call rpc='`$dg-rpc`' module = '`$module`' mode='sync'>\n<parameter name=\"nodeName\" value=\"callInterfacingDG\" />\n", + "comments": "", + "outputs": 1, + "x": 466.75, + "y": 424.25000762939453, + "z": "f559ad98.b8693", + "wires": [ + [ + "41c9ff8.d1003", + "2f462db6.1bf662", + "9cc74be2.2caf28" + ] + ] + }, + { + "id": "4820c332.ead96c", + "type": "get-resource", + "name": "Get device interfacing DG", + "xml": "<get-resource plugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' resource='SQL' key=\"select dg_rpc , module , protocol from DEVICE_INTERFACE_PROTOCOL where VNF_TYPE = $vnf-type and DG_RPC is not null \" >\n<parameter name=\"nodeName\" value=\"getDeviceInterfacingDG\" />\n", + "comments": "", + "outputs": 1, + "x": 362.24999237060547, + "y": 119.49999141693115, + "z": "f559ad98.b8693", + "wires": [ + [ + "f7067fbf.b9ee2", + "af1966db.536898", + "94826497.dea478" + ] + ] + }, + { + "id": "aab808f2.7e3fc8", + "type": "get-resource", + "name": "Check if running config exists", + "xml": "<get-resource plugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' resource='SQL' key=\"select count(1) as value from UPLOAD_CONFIG where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='runningConfig.count'>\n<parameter name=\"nodeName\" value=\"getDBRunningConf\" />\n", + "comments": "", + "outputs": 1, + "x": 244.25003051757812, + "y": 706.7499723434448, + "z": "f559ad98.b8693", + "wires": [ + [ + "1cf51b48.0883a5", + "c944dab9.aabd48", + "8ab22ee2.47cf3" + ] + ] + }, + { + "id": "cf0ad6ea.cb1f78", + "type": "save", + "name": "Insert configuration", + "xml": "<save plugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' resource='SQL' key=\"INSERT INTO UPLOAD_CONFIG (REQUEST_ID, ORIGINATOR_ID, SERVICE_DESCRIPTION, ACTION, VNF_ID, VNF_NAME, VM_NAME, VNF_TYPE, VNFC_TYPE, HOST_IP_ADDRESS, CONFIG_INDICATOR, PENDING_DELETE, CONTENT ) VALUES ( $input.common-header.request-id , $input.common-header.originator-id , $service-description , $input.action , $input.action-identifiers.vnf-id , $vnf-name , $vm-name , $vnf-type , $vnfc-type , $host-ip-address , 'Running' , NULL , $device-running-config ) \" force='true' >\n<parameter name=\"nodeName\" value=\"InsertConfiguration\" />\n", + "comments": "", + "outputs": 1, + "x": 1142.9998016357422, + "y": 691.0000305175781, + "z": "f559ad98.b8693", + "wires": [ + [ + "5ae40f9c.4c573", + "e56377db.c62b78" + ] + ] + }, + { + "id": "1a65ac62.011454", + "type": "save", + "name": "Update configuration", + "xml": "<save plugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' resource='SQL' key=\"update UPLOAD_CONFIG set CONTENT = $device-running-config , REQUEST_ID = $input.common-header.request-id , ORIGINATOR_ID = $input.common-header.originator-id , SERVICE_DESCRIPTION = $service-description , ACTION = $input.action , UPLOAD_DATE = CURRENT_TIMESTAMP where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='update'>\n<parameter name=\"nodeName\" value=\"updateConfiguration\" />\n", + "comments": "", + "outputs": 1, + "x": 1145.0000038146973, + "y": 761.4999904632568, + "z": "f559ad98.b8693", + "wires": [ + [ + "c1a9f0a9.4d854", + "df5dba1b.dda078" + ] + ] + }, + { + "id": "47c94803.def228", + "type": "switchNode", + "name": "switch", + "xml": "<switch test='`$runningConfig.count.value`'>\n", + "comments": "", + "outputs": 1, + "x": 604.9999542236328, + "y": 762.2500133514404, + "z": "f559ad98.b8693", + "wires": [ + [ + "e4bb8d09.58ee4", + "f4178997.62e378", + "fdf247dd.8933e8" + ] + ] + }, + { + "id": "c7da8af6.af9338", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 77.50001525878906, + "y": 313.49999237060547, + "z": "f559ad98.b8693", + "wires": [ + [ + "7374b7a3.466358", + "4820c332.ead96c" + ] + ] + }, + { + "id": "9cc74be2.2caf28", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 493.4999485015869, + "y": 485.25, + "z": "f559ad98.b8693", + "wires": [ + [ + "aab808f2.7e3fc8" + ] + ] + }, + { + "id": "94826497.dea478", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 642.4996528625488, + "y": 125.25001525878906, + "z": "f559ad98.b8693", + "wires": [ + [ + "c5cb1412.497a18" + ] + ] + }, + { + "id": "8ab22ee2.47cf3", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 449.9999351501465, + "y": 762.7500019073486, + "z": "f559ad98.b8693", + "wires": [ + [ + "47c94803.def228" + ] + ] + }, + { + "id": "e56377db.c62b78", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 1350.4999294281006, + "y": 677.7500190734863, + "z": "f559ad98.b8693", + "wires": [ + [ + "7ffbca1c.8ade54" + ] + ] + }, + { + "id": "b814bec0.102a7", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 971.4999084472656, + "y": 689.2499027252197, + "z": "f559ad98.b8693", + "wires": [ + [ + "cf0ad6ea.cb1f78" + ] + ] + }, + { + "id": "df5dba1b.dda078", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 1349.5000114440918, + "y": 760.5000305175781, + "z": "f559ad98.b8693", + "wires": [ + [ + "7ffbca1c.8ade54" + ] + ] + }, + { + "id": "1cd6e410.a66d5c", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 970.4999771118164, + "y": 761.2499752044678, + "z": "f559ad98.b8693", + "wires": [ + [ + "1a65ac62.011454" + ] + ] + }, + { + "id": "f4178997.62e378", + "type": "success", + "name": "noRunningConfig", + "xml": "<outcome value='0'>\n", + "comments": "", + "outputs": 1, + "x": 814.9998359680176, + "y": 689.2499303817749, + "z": "f559ad98.b8693", + "wires": [ + [ + "b814bec0.102a7" + ] + ] + }, + { + "id": "fdf247dd.8933e8", + "type": "failure", + "name": "runningConfigExists", + "xml": "<outcome value='1'>\n", + "comments": "", + "outputs": 1, + "x": 795.9999465942383, + "y": 761.7499675750732, + "z": "f559ad98.b8693", + "wires": [ + [ + "1cd6e410.a66d5c" + ] + ] + }, + { + "id": "48dbdb81.69c4a4", + "type": "method", + "name": "GetRunningConfig", + "xml": "<method rpc='GetRunningConfig' mode='sync'>\n", + "comments": "", + "outputs": 1, + "x": 93.0000114440918, + "y": 140, + "z": "f559ad98.b8693", + "wires": [ + [ + "c7da8af6.af9338" + ] + ] + }, + { + "id": "eb3ce0c0.b42d", + "type": "service-logic", + "name": "APPC 2.0.0", + "module": "APPC", + "version": "2.0.0", + "comments": "", + "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='2.0.0'>", + "outputs": 1, + "x": 251.99999618530273, + "y": 41.25, + "z": "f559ad98.b8693", + "wires": [ + [ + "48dbdb81.69c4a4" + ] + ] + }, + { + "id": "7374b7a3.466358", + "type": "returnSuccess", + "name": "return success", + "xml": "<return status='success'>\n", + "comments": "", + "x": 160.25, + "y": 560.7499656677246, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "c79d207b.fb939", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 91.38888931274414, + "y": 41.55555725097656, + "z": "f559ad98.b8693", + "wires": [ + [ + "eb3ce0c0.b42d" + ] + ] + }, + { + "id": "35f55e04.cb5542", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 792.4997253417969, + "y": 37.99998474121094, + "z": "f559ad98.b8693", + "wires": [ + [ + "fbf3ae87.ec3e", + "59265f06.32f92", + "110568c2.beef77" + ] + ] + }, + { + "id": "89ea0bc2.cebbb8", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 798.9999694824219, + "y": 91.74999141693115, + "z": "f559ad98.b8693", + "wires": [ + [ + "d8a25f2a.4b75f", + "59265f06.32f92", + "110568c2.beef77" + ] + ] + }, + { + "id": "fbf3ae87.ec3e", + "type": "set", + "name": "Set error message", + "xml": "<set>\n<parameter name='node-error-message' value='Error while getting device interfacing DG details' />\n", + "comments": "", + "x": 1086.4999828338623, + "y": 33.500003814697266, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "d8a25f2a.4b75f", + "type": "set", + "name": "Set error message", + "xml": "<set>\n<parameter name='node-error-message' value=\"`'Device Interfacing DG mapping not found for the ' + $vnf-type `\" />\n", + "comments": "", + "x": 1085.5000038146973, + "y": 81.5000171661377, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "59265f06.32f92", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />", + "comments": "", + "x": 1073.4998054504395, + "y": 166.7500171661377, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "c71126ee.a63608", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 866.2499465942383, + "y": 348.0000123977661, + "z": "f559ad98.b8693", + "wires": [ + [ + "be6a0416.09a6f8", + "56da2cf4.8a70d4", + "77a033d2.9e603c" + ] + ] + }, + { + "id": "93afef4a.9f677", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 865.2499656677246, + "y": 405.75000381469727, + "z": "f559ad98.b8693", + "wires": [ + [ + "6a449088.49c4c", + "56da2cf4.8a70d4", + "77a033d2.9e603c" + ] + ] + }, + { + "id": "be6a0416.09a6f8", + "type": "set", + "name": "Set error message", + "xml": "<set>\n<parameter name='node-error-message' value=\"`$error-message`\"/>\n", + "comments": "", + "x": 1116.7500114440918, + "y": 304.5, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "6a449088.49c4c", + "type": "set", + "name": "Set error message", + "xml": "<set>\n<parameter name='node-error-message' value='Device Interfacing DG not found' />\n", + "comments": "", + "x": 1118.7500114440918, + "y": 347.75, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "7047697.c309998", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 880.5000839233398, + "y": 558.2500133514404, + "z": "f559ad98.b8693", + "wires": [ + [ + "c84e4bf6.e67e68", + "77a033d2.9e603c", + "56da2cf4.8a70d4" + ] + ] + }, + { + "id": "25b252df.c74fce", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 883.0000305175781, + "y": 507.49997329711914, + "z": "f559ad98.b8693", + "wires": [ + [ + "f80dbb6f.4e6798", + "77a033d2.9e603c", + "56da2cf4.8a70d4" + ] + ] + }, + { + "id": "f80dbb6f.4e6798", + "type": "set", + "name": "Set error message", + "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\"/>\n", + "comments": "", + "x": 1117.5000114440918, + "y": 392.25, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "c84e4bf6.e67e68", + "type": "set", + "name": "Set error message", + "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n", + "comments": "", + "x": 1117.7500114440918, + "y": 432.25, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "77a033d2.9e603c", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />", + "comments": "", + "x": 1125.2499389648438, + "y": 554.0000247955322, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "4ef6cf2b.3f87e", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1508.250099182129, + "y": 592.2500324249268, + "z": "f559ad98.b8693", + "wires": [ + [ + "5b6e690e.0c1d28", + "91e99105.1b771", + "ad0cfd57.99bc5" + ] + ] + }, + { + "id": "5b6e690e.0c1d28", + "type": "set", + "name": "Set error message", + "xml": "<set>\n<parameter name='node-error-message' value='More than one running configuration available for a VNFC' />\n", + "comments": "", + "x": 1741.5000114440918, + "y": 518.2500610351562, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "91e99105.1b771", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />", + "comments": "", + "x": 1740.7500114440918, + "y": 698.0000305175781, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "20eba032.0d715", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1520.25, + "y": 641.9999914169312, + "z": "f559ad98.b8693", + "wires": [ + [ + "521a5086.14cc", + "91e99105.1b771", + "ad0cfd57.99bc5" + ] + ] + }, + { + "id": "521a5086.14cc", + "type": "set", + "name": "Set error message", + "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while updating the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n", + "comments": "", + "x": 1744.7500114440918, + "y": 563.2500305175781, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "d23e8d46.32801", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1520.7500629425049, + "y": 704.9999961853027, + "z": "f559ad98.b8693", + "wires": [ + [ + "3e69c586.3bd81a", + "91e99105.1b771", + "ad0cfd57.99bc5" + ] + ] + }, + { + "id": "3e69c586.3bd81a", + "type": "set", + "name": "Set error message", + "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while updating the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n", + "comments": "", + "x": 1745.5000114440918, + "y": 609.2500305175781, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "110568c2.beef77", + "type": "record", + "name": "Log error", + "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n", + "comments": "", + "outputs": 1, + "x": 1059.0000038146973, + "y": 122.75003051757812, + "z": "f559ad98.b8693", + "wires": [ + [] + ] + }, + { + "id": "56da2cf4.8a70d4", + "type": "record", + "name": "Log error", + "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n", + "comments": "", + "outputs": 1, + "x": 1116.24995803833, + "y": 506.0000057220459, + "z": "f559ad98.b8693", + "wires": [ + [] + ] + }, + { + "id": "ad0cfd57.99bc5", + "type": "record", + "name": "Log error", + "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n", + "comments": "", + "outputs": 1, + "x": 1739.0000114440918, + "y": 651.2500305175781, + "z": "f559ad98.b8693", + "wires": [ + [] + ] + }, + { + "id": "aa5124a4.42edf8", + "type": "set", + "name": "set DG parameters", + "xml": "<set>\n<parameter name='config.vnf-type' value=\"`$vnf-type`\" />\n<parameter name='config.vnf-name' value=\"`$vnf-name`\" />\n<parameter name='config.protocol' value=\"`$protocol`\" />\n<parameter name='config.host-ip-address' value=\"`$host-ip-address`\" />\n<parameter name='config.user-name' value=\"`$property.user`\" />\n<parameter name='config.password' value=\"`$property.password`\" />\n<parameter name='config.port-number' value=\"`$property.port`\" />\n<parameter name='input.action' value='`$input.action.lcm`' />", + "comments": "", + "x": 495.6665725708008, + "y": 363.41665840148926, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "384b0e85.e96e12", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 308.9999885559082, + "y": 357.25, + "z": "f559ad98.b8693", + "wires": [ + [ + "aa5124a4.42edf8", + "18f727b5.1aba48" + ] + ] + }, + { + "id": "7ffbca1c.8ade54", + "type": "get-resource", + "name": "Get Running Config Id", + "xml": "<get-resource plugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' resource='SQL' key=\"select UPLOAD_CONFIG_ID from UPLOAD_CONFIG where VNF_ID = $input.action-identifiers.vnf-id and ( if ( $vnfc-type = '' , VNFC_TYPE is NULL OR VNFC_TYPE = '' , VNFC_TYPE = $vnfc-type ) ) and HOST_IP_ADDRESS = $host-ip-address and CONFIG_INDICATOR = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y') \" force='true' pfx='runningConfig'>\n", + "comments": "", + "outputs": 1, + "x": 1587.0000114440918, + "y": 767.3333435058594, + "z": "f559ad98.b8693", + "wires": [ + [ + "756799b2.127ab8", + "d2c8dc26.6753", + "a3603572.aa71c8" + ] + ] + }, + { + "id": "756799b2.127ab8", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1939.5000114440918, + "y": 721.5833740234375, + "z": "f559ad98.b8693", + "wires": [ + [ + "23c677a.c356588" + ] + ] + }, + { + "id": "d2c8dc26.6753", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 1932.0000114440918, + "y": 781.5833740234375, + "z": "f559ad98.b8693", + "wires": [ + [ + "183025a2.dd2f3a" + ] + ] + }, + { + "id": "23c677a.c356588", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2096.9996452331543, + "y": 720.0833740234375, + "z": "f559ad98.b8693", + "wires": [ + [ + "73bc0b7b.225044", + "7209d921.afe358", + "3953bd65.2d7222" + ] + ] + }, + { + "id": "73bc0b7b.225044", + "type": "set", + "name": "Set error message", + "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\"/>\n", + "comments": "", + "x": 2331.4998893737793, + "y": 661.0833740234375, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "3953bd65.2d7222", + "type": "record", + "name": "Log error", + "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$node-error-message`\"/>\n", + "comments": "", + "outputs": 1, + "x": 2322.9996452331543, + "y": 760.0833740234375, + "z": "f559ad98.b8693", + "wires": [ + [] + ] + }, + { + "id": "183025a2.dd2f3a", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2097.2498893737793, + "y": 782.5833740234375, + "z": "f559ad98.b8693", + "wires": [ + [ + "bab488fc.6d28c8", + "7209d921.afe358", + "3953bd65.2d7222" + ] + ] + }, + { + "id": "7209d921.afe358", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />", + "comments": "", + "x": 2338.2496452331543, + "y": 815.3333740234375, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "a3603572.aa71c8", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 1923.4997177124023, + "y": 842.0833988189697, + "z": "f559ad98.b8693", + "wires": [ + [] + ] + }, + { + "id": "bab488fc.6d28c8", + "type": "set", + "name": "Set error message", + "xml": "<set>\n<parameter name='node-error-message' value=\"`'Error while quering the running configuration in the repository for vnf-id:' + $input.action-identifiers.vnf-id + ' and Host-ip-address:' + $host-ip-address `\" />\n", + "comments": "", + "x": 2338.7498893737793, + "y": 711.0833740234375, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "3bdcbd6e.01b3e2", + "type": "execute", + "name": "execute params", + "xml": " <execute plugin=\"org.onap.appc.encryptiontool.wrapper.EncryptionToolDGWrapper\" method =\"getProperty\">\n <parameter name=\"prefix\" value =\"property\"/>\n\n \n ", + "comments": "", + "outputs": 1, + "x": 642.2894668579102, + "y": 277.7848024368286, + "z": "f559ad98.b8693", + "wires": [ + [ + "cb1f79d8.7891d8", + "6861fd37.7df344", + "4697bcd0.0dec64" + ] + ] + }, + { + "id": "cb1f79d8.7891d8", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 923.8092803955078, + "y": 186.4753589630127, + "z": "f559ad98.b8693", + "wires": [ + [ + "b7727830.f70c48" + ] + ] + }, + { + "id": "6861fd37.7df344", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 917.1189308166504, + "y": 224.55056953430176, + "z": "f559ad98.b8693", + "wires": [ + [ + "b7727830.f70c48" + ] + ] + }, + { + "id": "b7727830.f70c48", + "type": "block", + "name": "block", + "xml": "<block>\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1156.0080337524414, + "y": 223.93567276000977, + "z": "f559ad98.b8693", + "wires": [ + [ + "559673fe.888d2c", + "6c13c721.deff88" + ] + ] + }, + { + "id": "559673fe.888d2c", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status=\"failure\">\n<parameter name='error-code' value=\"500\" />\n<parameter name='error-message' value=\"`$property.error-message`\" />\n<parameter name='input.action' value='`$input.action.lcm`' />", + "comments": "", + "x": 1328.7062797546387, + "y": 246.45551300048828, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "9e8ebc01.21a36", + "type": "other", + "name": "other", + "xml": "<outcome value='Other'>\n", + "comments": "", + "outputs": 1, + "x": 490.0077896118164, + "y": 277.59803581237793, + "z": "f559ad98.b8693", + "wires": [ + [ + "3bdcbd6e.01b3e2" + ] + ] + }, + { + "id": "7cabaa6e.4a0e94", + "type": "switchNode", + "name": "switch : Protocol", + "xml": "<switch test=\"`$protocol`\">\n", + "comments": "", + "outputs": 1, + "x": 319.4444122314453, + "y": 239.00312042236328, + "z": "f559ad98.b8693", + "wires": [ + [ + "be889448.d8ff48", + "9e8ebc01.21a36" + ] + ] + }, + { + "id": "be889448.d8ff48", + "type": "outcome", + "name": "CHEF", + "xml": "<outcome value='CHEF'>\n", + "comments": "", + "outputs": 1, + "x": 489.6309585571289, + "y": 241.35237169265747, + "z": "f559ad98.b8693", + "wires": [ + [ + "bba1a316.5318d" + ] + ] + }, + { + "id": "bba1a316.5318d", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 641.1466674804688, + "y": 241.11018657684326, + "z": "f559ad98.b8693", + "wires": [ + [] + ] + }, + { + "id": "6c13c721.deff88", + "type": "record", + "name": "Log error", + "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$property.error-message`\"/>\n", + "comments": "", + "outputs": 1, + "x": 1310.5626678466797, + "y": 196.81265926361084, + "z": "f559ad98.b8693", + "wires": [ + [] + ] + }, + { + "id": "4697bcd0.0dec64", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 896.0903778076172, + "y": 261.3960475921631, + "z": "f559ad98.b8693", + "wires": [ + [ + "384b0e85.e96e12" + ] + ] + }, + { + "id": "c5cb1412.497a18", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 341.11741638183594, + "y": 174.45075607299805, + "z": "f559ad98.b8693", + "wires": [ + [ + "7cabaa6e.4a0e94", + "95de0225.d624f", + "d50d962a.3fc508" + ] + ] + }, + { + "id": "95de0225.d624f", + "type": "set", + "name": "set propertyParam", + "xml": "<set>\n<parameter name='APPC.protocol.PROTOCOL' value='`$protocol`' />\n<parameter name='input.action' value='GetRunningConfig' />\n\n\n\n\n\n", + "comments": "", + "x": 564.3396072387695, + "y": 206.3396282196045, + "z": "f559ad98.b8693", + "wires": [] + }, + { + "id": "d50d962a.3fc508", + "type": "set", + "name": "set Action_variable", + "xml": "<set>\n<parameter name='input.action.lcm' value='`$input.action`' />\n\n\n\n", + "comments": "", + "x": 565.0055809020996, + "y": 170.00568962097168, + "z": "f559ad98.b8693", + "wires": [] + } +]
\ No newline at end of file |