7 "y": 146.28573513031006,
8 "z": "29922cf.42f59d4",
9 "wires": [["497329f9.a0cd78"]]
12 "id": "f1358900.5d68d8",
14 "name": "method: GetDeviceRunningConfig",
15 "xml": "<method rpc='GetDeviceRunningConfig' mode='sync'>\n",
18 "x": 552.9285430908203,
19 "y": 136.7143096923828,
20 "z": "29922cf.42f59d4",
21 "wires": [["471dcdf0.fc2004"]]
24 "id": "497329f9.a0cd78",
25 "type": "service-logic",
30 "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='4.0.0'>",
33 "y": 144.28573513031006,
34 "z": "29922cf.42f59d4",
35 "wires": [["f1358900.5d68d8"]]
38 "id": "684c9627.5f6318",
40 "name": "set Request Parameters",
41 "xml": "<set>\n<parameter name='vnf-type' value=\"`$config.vnf-type`\" />\n<parameter name='vnf-name' value=\"`$config.vnf-name`\" />\n<parameter name='protocol' value=\"`$config.protocol`\" />\n<parameter name='hostIpAddress' value=\"`$config.host-ip-address`\" />\n<parameter name='userName' value=\"`$config.user-name`\" />\n<parameter name='password' value=\"`$config.password`\" />\n<parameter name='portNumber' value=\"`$config.port-number`\" />\n",
43 "x": 478.8334197998047,
44 "y": 215.28573083877563,
45 "z": "29922cf.42f59d4",
49 "id": "26aeca14.cd8d26",
51 "name": "execute: Get Rest Configuration",
52 "xml": "<execute plugin=\"org.onap.sdnc.restconf.RestConfCallNode\" method=\"getConfiguration\">\n<parameter name=\"hostIpAddress\" value=\"`$hostIpAddress`\" />\n<parameter name=\"protocol\" value=\"`$protocol`\" />\n<parameter name=\"responsePrefix\" value=\"restconf\" />\n",
56 "y": 560.2857351303101,
57 "z": "29922cf.42f59d4",
58 "wires": [["761073a7.72105c",
63 "id": "d1c68a25.bb7f48",
64 "type": "returnFailure",
65 "name": "return failure",
66 "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"Unable to Get the Configuration\"/>\n",
68 "x": 1913.5000381469727,
69 "y": 670.2857513427734,
70 "z": "29922cf.42f59d4",
74 "id": "761073a7.72105c",
77 "xml": "<outcome value='Other'>\n",
81 "y": 628.2857351303101,
82 "z": "29922cf.42f59d4",
83 "wires": [["980ae7de.429418"]]
86 "id": "60cadb73.4dfd94",
94 "y": 680.2857351303101,
95 "z": "29922cf.42f59d4",
96 "wires": [["acc3d980.4c3ae8"]]
99 "id": "acc3d980.4c3ae8",
100 "type": "returnSuccess",
101 "name": "return success",
102 "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$restconf.config`\" />\n",
105 "y": 668.2857351303101,
106 "z": "29922cf.42f59d4",
110 "id": "53dfa016.9b377",
113 "xml": "<outcome value='success'>\n",
117 "y": 680.2857351303101,
118 "z": "29922cf.42f59d4",
119 "wires": [["60cadb73.4dfd94"]]
122 "id": "980ae7de.429418",
129 "x": 1700.5000343322754,
130 "y": 660.2857999801636,
131 "z": "29922cf.42f59d4",
132 "wires": [["d1c68a25.bb7f48"]]
135 "id": "471dcdf0.fc2004",
143 "y": 214.28573513031006,
144 "z": "29922cf.42f59d4",
145 "wires": [["684c9627.5f6318",
149 "id": "2b20bd30.589cf2",
151 "name": "RESTCONF-XML",
152 "xml": "<outcome value='RESTCONF-XML'>\n",
156 "y": 561.2857351303101,
157 "z": "29922cf.42f59d4",
158 "wires": [["389980f2.b63a1"]]
161 "id": "389980f2.b63a1",
164 "xml": "<block atomic=\"true\">\n",
169 "y": 512.2857351303101,
170 "z": "29922cf.42f59d4",
171 "wires": [["26aeca14.cd8d26"]]
174 "id": "41b7f9d9.1f5548",
175 "type": "switchNode",
176 "name": "switch : Protocol",
177 "xml": "<switch test=\"`$protocol`\">\n",
181 "y": 316.28573513031006,
182 "z": "29922cf.42f59d4",
183 "wires": [["2b20bd30.589cf2",
191 "id": "f73b901b.430dd",
194 "xml": "<outcome value='CLI'>\n",
198 "y": 317.28573513031006,
199 "z": "29922cf.42f59d4",
200 "wires": [["457eeb81.2f69d4"]]
203 "id": "f7691378.c379f",
204 "type": "get-resource",
205 "name": "get-resource GET_CONFIG_TEMPLATE",
206 "xml": "<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"SELECT TEMPLATE FROM GET_CONFIG_TEMPLATE WHERE vnf_type = $vnf-type ;\"\n force='true'\n\tpfx='config-template'>\n",
209 "x": 662.4999694824219,
210 "y": 295.28573513031006,
211 "z": "29922cf.42f59d4",
212 "wires": [["c3dc6e3.0cd7a9",
216 "id": "457eeb81.2f69d4",
219 "xml": "<block atomic=\"true\">\n",
223 "x": 418.4999694824219,
224 "y": 318.28573513031006,
225 "z": "29922cf.42f59d4",
226 "wires": [["f7691378.c379f",
230 "id": "e5ea27da.229d78",
231 "type": "returnFailure",
232 "name": "return failure",
233 "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"Unable to Read Config Template\"/>\n\t",
235 "x": 1239.4999694824219,
236 "y": 322.28573513031006,
237 "z": "29922cf.42f59d4",
241 "id": "a81acdf3.2286e",
244 "xml": "<block atomic=\"true\">\n",
248 "x": 1068.4999694824219,
249 "y": 323.28573513031006,
250 "z": "29922cf.42f59d4",
251 "wires": [["e5ea27da.229d78"]]
254 "id": "c179e600.916e38",
255 "type": "returnSuccess",
256 "name": "return success",
257 "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$cliOutput`\" />\n",
260 "y": 538.2857837677002,
261 "z": "29922cf.42f59d4",
265 "id": "213364e.2f7799c",
267 "name": "execute: Get CLI RunningConfig",
268 "xml": "<configure adaptor='org.onap.appc.ccadaptor.ConfigComponentAdaptor' key='GetCliRunningConfig'>\n<parameter name=\"Host_ip_address\" value=\"`$hostIpAddress`\" />\n<parameter name=\"User_name\" value=\"`$userName`\" />\n<parameter name=\"Password\" value=\"`$password`\" />\n<parameter name=\"Port_number\" value=\"`$portNumber`\" />\n<parameter name=\"Get_config_template\" value=\"`$config-template.TEMPLATE`\" />\n",
271 "x": 627.5000152587891,
272 "y": 384.2857475280762,
273 "z": "29922cf.42f59d4",
274 "wires": [["58c05e0d.ca719",
279 "id": "aa72dd53.d34a6",
287 "y": 483.2857961654663,
288 "z": "29922cf.42f59d4",
289 "wires": [["c179e600.916e38"]]
292 "id": "c3dc6e3.0cd7a9",
295 "xml": "<outcome value='failure'>\n",
298 "x": 915.4999694824219,
299 "y": 335.28573513031006,
300 "z": "29922cf.42f59d4",
301 "wires": [["a81acdf3.2286e"]]
304 "id": "58c05e0d.ca719",
307 "xml": "<outcome value='success'>\n",
311 "y": 481.2857961654663,
312 "z": "29922cf.42f59d4",
313 "wires": [["aa72dd53.d34a6"]]
316 "id": "9d75f86d.fcf6f8",
319 "xml": "<outcome value='failure'>\n",
323 "y": 583.2857351303101,
324 "z": "29922cf.42f59d4",
325 "wires": [["980ae7de.429418"]]
328 "id": "e88ef92c.05b908",
331 "xml": "<outcome value='not-found'>\n",
334 "x": 914.4999694824219,
335 "y": 264.28573513031006,
336 "z": "29922cf.42f59d4",
337 "wires": [["a81acdf3.2286e"]]
340 "id": "c2bf0f18.b66bd",
343 "xml": "<outcome value='failure'>\n",
346 "x": 897.5000076293945,
347 "y": 399.28572845458984,
348 "z": "29922cf.42f59d4",
349 "wires": [["468136ac.050fe8"]]
352 "id": "d533b203.44ac2",
355 "xml": "<outcome value='Other'>\n",
359 "y": 438.28573513031006,
360 "z": "29922cf.42f59d4",
361 "wires": [["980ae7de.429418"]]
364 "id": "4d537984.fce5b8",
369 "x": 795.4999694824219,
370 "y": 76.28573513031006,
371 "z": "29922cf.42f59d4",
375 "id": "efce9311.3ec9c",
377 "name": "NETCONF-XML",
378 "xml": "<outcome value='NETCONF-XML'>\n",
382 "y": 724.2857351303101,
383 "z": "29922cf.42f59d4",
384 "wires": [["19cc4b03.d7c245"]]
387 "id": "19cc4b03.d7c245",
390 "xml": "<block atomic=\"true\">\n",
395 "y": 724.2857351303101,
396 "z": "29922cf.42f59d4",
397 "wires": [["114625c5.4c47da"]]
400 "id": "114625c5.4c47da",
402 "name": "execute: Get XML RunningConfig",
403 "xml": "<configure adaptor='org.onap.appc.ccadaptor.ConfigComponentAdaptor' key='xml-getrunningconfig'>\n<parameter name=\"Host_ip_address\" value=\"`$hostIpAddress`\" />\n<parameter name=\"User_name\" value=\"`$userName`\" />\n<parameter name=\"Password\" value=\"`$password`\" />\n<parameter name=\"Port_number\" value=\"`$portNumber`\" />\n<parameter name=\"Protocol\" value=\"`$protocol`\" />\n",
406 "x": 617.5000305175781,
407 "y": 752.0000581741333,
408 "z": "29922cf.42f59d4",
409 "wires": [["d9933637.fdfbe8",
414 "id": "d9933637.fdfbe8",
417 "xml": "<outcome value='failure'>\n",
421 "y": 735.2857351303101,
422 "z": "29922cf.42f59d4",
423 "wires": [["468136ac.050fe8"]]
426 "id": "d8407e19.b2ae5",
429 "xml": "<outcome value='Other'>\n",
433 "y": 784.2857351303101,
434 "z": "29922cf.42f59d4",
435 "wires": [["980ae7de.429418"]]
438 "id": "4ba100a2.2d875",
441 "xml": "<outcome value='RESTCONF'>\n",
445 "y": 486.28573513031006,
446 "z": "29922cf.42f59d4",
447 "wires": [["389980f2.b63a1"]]
450 "id": "8f1de84f.6cbdc8",
453 "xml": "<outcome value='success'>\n",
457 "y": 832.2857351303101,
458 "z": "29922cf.42f59d4",
459 "wires": [["9b1018a5.1ea1b8"]]
462 "id": "9b1018a5.1ea1b8",
470 "y": 831.2857351303101,
471 "z": "29922cf.42f59d4",
472 "wires": [["5238f474.e44b5c"]]
475 "id": "5238f474.e44b5c",
476 "type": "returnSuccess",
477 "name": "return success",
478 "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$xmlRunningConfigOutput `\" />\n",
480 "x": 1119.1669387817383,
481 "y": 829.2857484817505,
482 "z": "29922cf.42f59d4",
486 "id": "a98dd406.ae1e38",
489 "xml": "<outcome value='CHEF'>\n",
493 "y": 821.2857351303101,
494 "z": "29922cf.42f59d4",
495 "wires": [["93385fe7.e8392"]]
498 "id": "ea521b2b.c10e68",
501 "xml": "<block atomic=\"true\">\n",
505 "x": 373.49999237060547,
506 "y": 868.952395439148,
507 "z": "29922cf.42f59d4",
508 "wires": [["3ca78413.d1069c"]]
511 "id": "3ca78413.d1069c",
513 "name": "execute: getChefRunningConfig",
514 "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getConfigFilesByVnfVmNCategory\">\n<parameter name=\"fileCategory\" value=\"device_configuration\" />\n<parameter name='vnfId' value=\"`$config.vnf-id`\" />\n<parameter name='vmName' value=\"`$config.vm-name`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.deviceconfig\" />\n",
517 "x": 609.6428680419922,
518 "y": 913.1430015563965,
519 "z": "29922cf.42f59d4",
520 "wires": [["4c13e30f.d81abc",
525 "id": "865d288e.79d5d8",
528 "xml": "<outcome value='success'>\n",
531 "x": 804.2142944335938,
532 "y": 1009.42857837677,
533 "z": "29922cf.42f59d4",
534 "wires": [["9bc470b3.2ff51"]]
537 "id": "9bc470b3.2ff51",
544 "x": 1103.1667976379395,
545 "y": 1043.952380180359,
546 "z": "29922cf.42f59d4",
547 "wires": [["4cf92959.cfebc8"]]
550 "id": "6edce4de.9ea51c",
553 "xml": "<outcome value='Other'>\n",
556 "x": 911.500129699707,
557 "y": 945.2858009338379,
558 "z": "29922cf.42f59d4",
562 "id": "4c13e30f.d81abc",
565 "xml": "<outcome value='failure'>\n",
568 "x": 910.500129699707,
569 "y": 896.2858009338379,
570 "z": "29922cf.42f59d4",
571 "wires": [["6d388b53.b092e4"]]
574 "id": "4cf92959.cfebc8",
575 "type": "returnSuccess",
576 "name": "return success",
577 "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$tmp.deviceconfig.file-content`\" />\n",
579 "x": 1339.500144958496,
580 "y": 1047.6190533638,
581 "z": "29922cf.42f59d4",
585 "id": "6d388b53.b092e4",
592 "x": 1086.500129699707,
593 "y": 900.2858009338379,
594 "z": "29922cf.42f59d4",
595 "wires": [["88bb55d0.d73b28"]]
598 "id": "88bb55d0.d73b28",
599 "type": "returnFailure",
600 "name": "return failure",
601 "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$tmp.deviceconfig.error-message`\"/>\n\n",
603 "x": 1236.8334503173828,
604 "y": 880.4287014007568,
605 "z": "29922cf.42f59d4",
609 "id": "b641b4ab.bd2f58",
610 "type": "returnFailure",
611 "name": "return failure",
612 "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$error-message`\"/>\n",
615 "y": 446.28573513031006,
616 "z": "29922cf.42f59d4",
620 "id": "468136ac.050fe8",
628 "y": 450.28573513031006,
629 "z": "29922cf.42f59d4",
630 "wires": [["b641b4ab.bd2f58"]]
633 "id": "ecf33fc3.b2ebf",
636 "xml": "<outcome value='Ansible'>\n",
639 "x": 134.94049835205078,
640 "y": 939.0120496749878,
641 "z": "29922cf.42f59d4",
642 "wires": [["36381aaa.232fa6"]]
645 "id": "93385fe7.e8392",
648 "xml": "<block atomic=\"true\">\n",
652 "x": 321.08331298828125,
653 "y": 1000.8689870834351,
654 "z": "29922cf.42f59d4",
655 "wires": [["28a7f80c.1bcbb8"]]
658 "id": "28a7f80c.1bcbb8",
660 "name": "call GetTemplateConfig_Chef",
661 "xml": "<call module='APPC' rpc='GetTemplateConfig_Chef' mode='sync' >\n",
664 "x": 539.8928527832031,
665 "y": 1045.8692655563354,
666 "z": "29922cf.42f59d4",
667 "wires": [["9f06d6d9.fb9738",
672 "id": "9129b200.1a41a",
674 "name": "call GetTemplateConfig_Ansible",
675 "xml": "<call module='APPC' rpc='GetTemplateConfig_Ansible' mode='sync' >\n",
678 "x": 505.60706329345703,
679 "y": 1283.011887550354,
680 "z": "29922cf.42f59d4",
681 "wires": [["67887719.98cd58",
686 "id": "e0ce4934.759568",
689 "xml": "<outcome value='Other'>\n",
692 "x": 630.3690185546875,
693 "y": 1143.2500557899475,
694 "z": "29922cf.42f59d4",
695 "wires": [["980ae7de.429418"]]
698 "id": "9f06d6d9.fb9738",
701 "xml": "<outcome value='failure'>\n",
704 "x": 629.3690185546875,
705 "y": 1094.2500557899475,
706 "z": "29922cf.42f59d4",
707 "wires": [["489ea315.c3ed8c"]]
710 "id": "489ea315.c3ed8c",
717 "x": 805.3690185546875,
718 "y": 1098.2500557899475,
719 "z": "29922cf.42f59d4",
720 "wires": [["81e09063.6dd78"]]
723 "id": "81e09063.6dd78",
724 "type": "returnFailure",
725 "name": "return failure",
726 "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$error-message`\"/>\n\n",
728 "x": 1045.3690185546875,
729 "y": 1091.2500557899475,
730 "z": "29922cf.42f59d4",
734 "id": "549741e8.f5fc1",
737 "xml": "<outcome value='success'>\n",
740 "x": 568.7023315429688,
741 "y": 1216.583429813385,
742 "z": "29922cf.42f59d4",
743 "wires": [["e25f0226.6a041"]]
746 "id": "e25f0226.6a041",
753 "x": 731.7023315429688,
754 "y": 1216.583429813385,
755 "z": "29922cf.42f59d4",
756 "wires": [["5e274de2.7cd6a4"]]
759 "id": "5e274de2.7cd6a4",
760 "type": "returnSuccess",
761 "name": "return success",
762 "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$APPC.GetRunningConfig`\" />\n<parameter name='output.status.code' value='`$output.status.code`' />\n<parameter name='output.status.message' value='`$output.status.message`'/>\n<parameter name='output.status.results' value = '`$output.status.results`'/>\n",
764 "x": 881.8451843261719,
765 "y": 1195.7260999679565,
766 "z": "29922cf.42f59d4",
770 "id": "36381aaa.232fa6",
773 "xml": "<block atomic=\"true\">\n",
777 "x": 317.27384185791016,
778 "y": 1198.0118017196655,
779 "z": "29922cf.42f59d4",
780 "wires": [["9129b200.1a41a"]]
783 "id": "2a2ae29d.92c9ce",
786 "xml": "<outcome value='Other'>\n",
789 "x": 738.9403610229492,
790 "y": 1348.0119047164917,
791 "z": "29922cf.42f59d4",
792 "wires": [["980ae7de.429418"]]
795 "id": "67887719.98cd58",
798 "xml": "<outcome value='failure'>\n",
801 "x": 737.9403610229492,
802 "y": 1299.0119047164917,
803 "z": "29922cf.42f59d4",
804 "wires": [["b615152c.d34648"]]
807 "id": "b615152c.d34648",
814 "x": 913.9403610229492,
815 "y": 1303.0119047164917,
816 "z": "29922cf.42f59d4",
817 "wires": [["6194ee24.2cc39"]]
820 "id": "6194ee24.2cc39",
821 "type": "returnFailure",
822 "name": "return failure",
823 "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"\"/>\n<parameter name=\"dcae-error-message\" value=\"`$error-message`\"/>\n\n",
825 "x": 1105.9403381347656,
826 "y": 1296.0119123458862,
827 "z": "29922cf.42f59d4",
831 "id": "883aacc0.c3db4",
834 "xml": "<outcome value='success'>\n",
837 "x": 677.2736740112305,
838 "y": 1421.3452787399292,
839 "z": "29922cf.42f59d4",
840 "wires": [["e5cfa4d.8698f58"]]
843 "id": "e5cfa4d.8698f58",
850 "x": 840.2736740112305,
851 "y": 1421.3452787399292,
852 "z": "29922cf.42f59d4",
853 "wires": [["18a16323.e5a8ed"]]
856 "id": "18a16323.e5a8ed",
857 "type": "returnSuccess",
858 "name": "return success",
859 "xml": "<return status='success'>\n<parameter name='device-running-config' value=\"`$APPC.GetRunningConfig`\" />\n<parameter name='code' value='`$output.status.code`' />\n<parameter name='message' value='`$output.status.message`'/>\n<parameter name='Status' value = '`$output.status.results`'/>\n",
861 "x": 1029.2736282348633,
862 "y": 1423.345359802246,
863 "z": "29922cf.42f59d4",