3 "id": "180bf863.7ff698",
\r
6 "xml": "<outcome value='failure'>\n",
\r
11 "z": "a4e67f56.cb2c9",
\r
19 "id": "7b831419.1eac8c",
\r
22 "xml": "<outcome value='failure'>\n",
\r
26 "y": 363.49999237060547,
\r
27 "z": "a4e67f56.cb2c9",
\r
35 "id": "140f6ea5.4e8041",
\r
36 "type": "not-found",
\r
37 "name": "not-found",
\r
38 "xml": "<outcome value='not-found'>\n",
\r
42 "y": 416.24999237060547,
\r
43 "z": "a4e67f56.cb2c9",
\r
51 "id": "47086c60.ba95f4",
\r
52 "type": "not-found",
\r
53 "name": "not-found",
\r
54 "xml": "<outcome value='not-found'>\n",
\r
58 "y": 115.99999237060547,
\r
59 "z": "a4e67f56.cb2c9",
\r
67 "id": "11938b45.589b15",
\r
68 "type": "not-found",
\r
69 "name": "not-found",
\r
70 "xml": "<outcome value='not-found'>\n",
\r
73 "x": 638.2499389648438,
\r
75 "z": "a4e67f56.cb2c9",
\r
83 "id": "dbe515ac.28eb98",
\r
86 "xml": "<outcome value='failure'>\n",
\r
89 "x": 632.2499389648438,
\r
91 "z": "a4e67f56.cb2c9",
\r
99 "id": "5f02c1cf.37b4f",
\r
102 "xml": "<outcome value='failure'>\n",
\r
106 "y": 461.49999237060547,
\r
107 "z": "a4e67f56.cb2c9",
\r
115 "id": "3a82553d.6d98ea",
\r
116 "type": "not-found",
\r
117 "name": "not-found",
\r
118 "xml": "<outcome value='not-found'>\n",
\r
122 "y": 512.4999923706055,
\r
123 "z": "a4e67f56.cb2c9",
\r
131 "id": "46c38e22.64329",
\r
134 "xml": "<outcome value='failure'>\n",
\r
139 "z": "a4e67f56.cb2c9",
\r
147 "id": "8ecbeb04.4666d8",
\r
150 "xml": "<outcome value='failure'>\n",
\r
155 "z": "a4e67f56.cb2c9",
\r
163 "id": "35ce6e5b.761062",
\r
165 "name": "multipleRunningConfig",
\r
166 "xml": "<outcome value='Other'>\n",
\r
171 "z": "a4e67f56.cb2c9",
\r
179 "id": "c7e15c3e.27cb3",
\r
180 "type": "get-resource",
\r
181 "name": "Retrieve device credentials",
\r
182 "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",
\r
185 "x": 402.75006103515625,
\r
186 "y": 111.74999237060547,
\r
187 "z": "a4e67f56.cb2c9",
\r
197 "id": "8215021c.22176",
\r
199 "name": "Call device interfacing DG",
\r
200 "xml": "<call rpc='`$dg-rpc`' module = '`$module`' mode='sync'>\n<parameter name=\"nodeName\" value=\"callInterfacingDG\" />\n",
\r
204 "y": 417.49999237060547,
\r
205 "z": "a4e67f56.cb2c9",
\r
215 "id": "ab93e21b.a1f7e",
\r
216 "type": "get-resource",
\r
217 "name": "Get device interfacing DG",
\r
218 "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",
\r
223 "z": "a4e67f56.cb2c9",
\r
233 "id": "afcdc902.93d708",
\r
234 "type": "get-resource",
\r
235 "name": "Check if running config exists",
\r
236 "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",
\r
239 "x": 413.0000305175781,
\r
240 "y": 551.2499923706055,
\r
241 "z": "a4e67f56.cb2c9",
\r
251 "id": "b890cd70.906b9",
\r
253 "name": "Insert configuration",
\r
254 "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",
\r
259 "z": "a4e67f56.cb2c9",
\r
268 "id": "a92cddb8.c9d51",
\r
270 "name": "Update configuration",
\r
271 "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",
\r
274 "x": 1171.2499885559082,
\r
275 "y": 704.7499923706055,
\r
276 "z": "a4e67f56.cb2c9",
\r
285 "id": "b92bafaa.6f832",
\r
286 "type": "switchNode",
\r
288 "xml": "<switch test='`$runningConfig.count.value`'>\n",
\r
291 "x": 623.7499961853027,
\r
292 "y": 603.0000019073486,
\r
293 "z": "a4e67f56.cb2c9",
\r
303 "id": "3e4780c.eefb78",
\r
305 "name": "block : atomic",
\r
306 "xml": "<block atomic='true'>",
\r
310 "x": 137.50000381469727,
\r
311 "y": 224.24999618530273,
\r
312 "z": "a4e67f56.cb2c9",
\r
321 "id": "551adf9c.16e0f",
\r
324 "xml": "<outcome value='success'>\n",
\r
327 "x": 450.24993896484375,
\r
329 "z": "a4e67f56.cb2c9",
\r
337 "id": "11955887.62d437",
\r
340 "xml": "<outcome value='success'>\n",
\r
343 "x": 414.74993896484375,
\r
344 "y": 488.49999237060547,
\r
345 "z": "a4e67f56.cb2c9",
\r
353 "id": "e9858666.192658",
\r
356 "xml": "<outcome value='success'>\n",
\r
359 "x": 236.2498779296875,
\r
360 "y": 342.24999237060547,
\r
361 "z": "a4e67f56.cb2c9",
\r
369 "id": "7b612e94.00088",
\r
372 "xml": "<outcome value='success'>\n",
\r
375 "x": 452.49993896484375,
\r
376 "y": 653.4999923706055,
\r
377 "z": "a4e67f56.cb2c9",
\r
385 "id": "473728a6.0b2d68",
\r
388 "xml": "<outcome value='success'>\n",
\r
393 "z": "a4e67f56.cb2c9",
\r
399 "id": "35aaded4.f11712",
\r
402 "xml": "<block>\n",
\r
408 "z": "a4e67f56.cb2c9",
\r
416 "id": "541750f1.605a4",
\r
419 "xml": "<outcome value='success'>\n",
\r
424 "z": "a4e67f56.cb2c9",
\r
430 "id": "8c3cc0da.7b207",
\r
433 "xml": "<block>\n",
\r
439 "z": "a4e67f56.cb2c9",
\r
447 "id": "78f7b47a.d6ce1c",
\r
449 "name": "noRunningConfig",
\r
450 "xml": "<outcome value='0'>\n",
\r
455 "z": "a4e67f56.cb2c9",
\r
463 "id": "4ed41f3c.8441d",
\r
465 "name": "runningConfigExists",
\r
466 "xml": "<outcome value='1'>\n",
\r
471 "z": "a4e67f56.cb2c9",
\r
479 "id": "6c20bf89.5231d",
\r
481 "name": "GetRunningConfig",
\r
482 "xml": "<method rpc='Generic_GetRunningConfig' mode='sync'>\n",
\r
486 "y": 140.74999237060547,
\r
487 "z": "a4e67f56.cb2c9",
\r
495 "id": "84baaf90.5a32d",
\r
496 "type": "service-logic",
\r
497 "name": "APPC 2.0.0",
\r
499 "version": "2.0.0",
\r
501 "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'>",
\r
503 "x": 264.99999237060547,
\r
504 "y": 55.9999942779541,
\r
505 "z": "a4e67f56.cb2c9",
\r
513 "id": "5449a18d.439af",
\r
514 "type": "returnSuccess",
\r
515 "name": "return success",
\r
516 "xml": "<return status='success'>\n",
\r
518 "x": 118.00003051757812,
\r
519 "y": 430.24999237060547,
\r
520 "z": "a4e67f56.cb2c9",
\r
524 "id": "60394b9e.416b44",
\r
528 "x": 97.4999885559082,
\r
529 "y": 56.74999237060547,
\r
530 "z": "a4e67f56.cb2c9",
\r
538 "id": "b1e85b4d.4de818",
\r
541 "xml": "<block>\n",
\r
546 "y": 48.499996185302734,
\r
547 "z": "a4e67f56.cb2c9",
\r
557 "id": "c6bbc167.8e6de",
\r
559 "name": "Set error message",
\r
560 "xml": "<set>\n<parameter name='node-error-message' value='Error while retrieving device credentials' />\n",
\r
563 "y": 34.74999237060547,
\r
564 "z": "a4e67f56.cb2c9",
\r
570 "id": "fc731431.b82788",
\r
573 "xml": "<block>\n",
\r
578 "y": 114.99999237060547,
\r
579 "z": "a4e67f56.cb2c9",
\r
589 "id": "5a58c62.8050138",
\r
591 "name": "Set error message",
\r
592 "xml": "<set>\n<parameter name='node-error-message' value=\"`'Device credentials not found for the ' + $vnf-type `\"/>\n",
\r
595 "y": 74.24999237060547,
\r
596 "z": "a4e67f56.cb2c9",
\r
602 "id": "ba6f005b.3e44e",
\r
605 "xml": "<block>\n",
\r
611 "z": "a4e67f56.cb2c9",
\r
621 "id": "372c3af9.966c56",
\r
624 "xml": "<block>\n",
\r
630 "z": "a4e67f56.cb2c9",
\r
640 "id": "27e3ed66.16f0c2",
\r
642 "name": "Set error message",
\r
643 "xml": "<set>\n<parameter name='node-error-message' value='Error while getting device interfacing DG details' />\n",
\r
645 "x": 1026.4999885559082,
\r
647 "z": "a4e67f56.cb2c9",
\r
653 "id": "c98aab75.3231f8",
\r
655 "name": "Set error message",
\r
656 "xml": "<set>\n<parameter name='node-error-message' value=\"`'Device Interfacing DG mapping not found for the ' + $vnf-type `\" />\n",
\r
660 "z": "a4e67f56.cb2c9",
\r
666 "id": "743a8961.a83bb8",
\r
667 "type": "returnFailure",
\r
668 "name": "return failure",
\r
669 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",
\r
673 "z": "a4e67f56.cb2c9",
\r
677 "id": "63daa94e.76aae8",
\r
680 "xml": "<block>\n",
\r
685 "y": 313.74999237060547,
\r
686 "z": "a4e67f56.cb2c9",
\r
696 "id": "3ce56e6e.d0d1b2",
\r
699 "xml": "<block>\n",
\r
704 "y": 398.99999237060547,
\r
705 "z": "a4e67f56.cb2c9",
\r
715 "id": "6b1bdb26.cbe694",
\r
717 "name": "Set error message",
\r
718 "xml": "<set>\n<parameter name='node-error-message' value=\"`$error-message`\"/>\n",
\r
721 "y": 305.24999237060547,
\r
722 "z": "a4e67f56.cb2c9",
\r
728 "id": "189f4de.d45a0b2",
\r
730 "name": "Set error message",
\r
731 "xml": "<set>\n<parameter name='node-error-message' value='Device Interfacing DG not found' />\n",
\r
734 "y": 348.49999237060547,
\r
735 "z": "a4e67f56.cb2c9",
\r
741 "id": "358af0c2.a30ea",
\r
744 "xml": "<block>\n",
\r
749 "y": 511.49999237060547,
\r
750 "z": "a4e67f56.cb2c9",
\r
760 "id": "60cd06a7.dbee98",
\r
763 "xml": "<block>\n",
\r
768 "y": 456.99999237060547,
\r
769 "z": "a4e67f56.cb2c9",
\r
779 "id": "4f35fa3d.a4b784",
\r
781 "name": "Set error message",
\r
782 "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",
\r
785 "y": 392.99999237060547,
\r
786 "z": "a4e67f56.cb2c9",
\r
792 "id": "3871609f.8f563",
\r
794 "name": "Set error message",
\r
795 "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",
\r
798 "y": 432.99999237060547,
\r
799 "z": "a4e67f56.cb2c9",
\r
805 "id": "ffb12b2e.32f4f8",
\r
806 "type": "returnFailure",
\r
807 "name": "return failure",
\r
808 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",
\r
811 "y": 532.2499923706055,
\r
812 "z": "a4e67f56.cb2c9",
\r
816 "id": "7b36969f.21ea78",
\r
819 "xml": "<block>\n",
\r
825 "z": "a4e67f56.cb2c9",
\r
835 "id": "d90b7545.846c58",
\r
837 "name": "Set error message",
\r
838 "xml": "<set>\n<parameter name='node-error-message' value='More than one running configuration available for a VNFC' />\n",
\r
842 "z": "a4e67f56.cb2c9",
\r
848 "id": "b1eeb2dd.58bb4",
\r
849 "type": "returnFailure",
\r
850 "name": "return failure",
\r
851 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$node-error-message`' />",
\r
855 "z": "a4e67f56.cb2c9",
\r
859 "id": "9806fd80.49448",
\r
862 "xml": "<block>\n",
\r
868 "z": "a4e67f56.cb2c9",
\r
878 "id": "c10f41b7.4725d",
\r
880 "name": "Set error message",
\r
881 "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",
\r
885 "z": "a4e67f56.cb2c9",
\r
891 "id": "13894430.36b39c",
\r
894 "xml": "<block>\n",
\r
900 "z": "a4e67f56.cb2c9",
\r
910 "id": "8a66df46.83bf",
\r
912 "name": "Set error message",
\r
913 "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",
\r
917 "z": "a4e67f56.cb2c9",
\r
923 "id": "a535318d.76e89",
\r
925 "name": "Log error",
\r
926 "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",
\r
931 "z": "a4e67f56.cb2c9",
\r
937 "id": "e53f7a1.c43ed88",
\r
939 "name": "Log error",
\r
940 "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",
\r
944 "y": 487.99999237060547,
\r
945 "z": "a4e67f56.cb2c9",
\r
951 "id": "8702f3c1.de0c",
\r
953 "name": "Log error",
\r
954 "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",
\r
959 "z": "a4e67f56.cb2c9",
\r
965 "id": "e5f7f554.e2b2d8",
\r
967 "name": "set DG parameters",
\r
968 "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`\" />",
\r
971 "y": 318.74999237060547,
\r
972 "z": "a4e67f56.cb2c9",
\r
978 "id": "90297c5e.6500e",
\r
981 "xml": "<block>\n",
\r
986 "y": 341.74999237060547,
\r
987 "z": "a4e67f56.cb2c9",
\r