3 "id": "902cbf05.82ac2",
8 "y": 52.999999046325684,
17 "id": "51c9fb4f.5229b4",
18 "type": "service-logic",
19 "name": "GENERIC-RESOURCE-API ${project.version}",
20 "module": "GENERIC-RESOURCE-API",
21 "version": "${project.version}",
23 "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}'>",
25 "x": 321.00391006469727,
26 "y": 125.00001621246338,
27 "z": "d3dd528c.9edcf",
35 "id": "ccbd5d22.8595f",
37 "name": "sotn-attachment-topology-operation-deactivate",
38 "xml": "<method rpc='sotn-attachment-topology-operation-deactivate' mode='sync'>\n",
41 "x": 309.0040283203125,
42 "y": 212.99999904632568,
43 "z": "d3dd528c.9edcf",
51 "id": "1f233e48.d0a312",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 325.0040283203125,
59 "y": 768.0002436637878,
60 "z": "d3dd528c.9edcf",
86 "id": "c4ceb71c.15c748",
88 "name": "set tmp.ar.allotted-resource-id,etc",
89 "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
91 "x": 721.9974670410156,
92 "y": 166.9934859275818,
93 "z": "d3dd528c.9edcf",
99 "id": "2ba99ef0.0a9972",
101 "name": "set tmp ar-id to fetch resource from MDSAL",
104 "x": 750.9577789306641,
105 "y": 131.02528190612793,
106 "z": "d3dd528c.9edcf",
112 "id": "9533eb28.c2dc18",
114 "name": "set tmp.ar.self-link",
115 "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
117 "x": 675.9974060058594,
118 "y": 259.9934911727905,
119 "z": "d3dd528c.9edcf",
125 "id": "9831615b.70a3c",
127 "name": "execute Properties",
128 "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",
131 "x": 682.2592964172363,
132 "y": 347.6602201461792,
133 "z": "d3dd528c.9edcf",
141 "id": "cf024f6b.1779",
143 "name": "generate allotted-resource url",
144 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
147 "x": 714.2593231201172,
148 "y": 435.66020154953003,
149 "z": "d3dd528c.9edcf",
157 "id": "379451f5.6f5f6e",
158 "type": "get-resource",
159 "name": "get-resource connection-attachment-allotted-resource",
160 "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='connection-attachment-allotted-resources/connection-attachment-allotted-resource/$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id/' pfx='mdsal-ar' >\n",
163 "x": 784.9974212646484,
164 "y": 525.7712602615356,
165 "z": "d3dd528c.9edcf",
174 "id": "2fa8e20c.3e4dde",
176 "name": "GET connection-attachment-allotted-resource from mdsal",
179 "x": 791.8122177124023,
180 "y": 497.5385789871216,
181 "z": "d3dd528c.9edcf",
187 "id": "e89ba5d2.ca7f98",
189 "name": "Used for setting output to API Handler",
192 "x": 729.9974365234375,
193 "y": 226.9935007095337,
194 "z": "d3dd528c.9edcf",
200 "id": "f751e97a.0a8c78",
202 "name": "Obtain different URL, template location etc",
203 "info": "For saving resource information to MDSAL & for AAI",
205 "x": 747.9974021911621,
206 "y": 312.882381439209,
207 "z": "d3dd528c.9edcf",
213 "id": "48dad372.ba3dcc",
215 "name": "Used to Get AR by id to MDSAL, same as self-link",
218 "x": 773.9974212646484,
219 "y": 399.8823404312134,
220 "z": "d3dd528c.9edcf",
226 "id": "15794b13.fbac75",
229 "xml": "<outcome value='success'>\n",
232 "x": 1084.6706237792969,
233 "y": 510.99999141693115,
234 "z": "d3dd528c.9edcf",
242 "id": "952af6d.1617708",
244 "name": "block: atomic",
245 "xml": "<block atomic=\"true\">\n",
249 "x": 1253.6706275939941,
250 "y": 509.49989223480225,
251 "z": "d3dd528c.9edcf",
259 "id": "f480b1f9.28302",
260 "type": "switchNode",
261 "name": "switch cr length",
262 "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
265 "x": 1464.5278701782227,
266 "y": 509.11902141571045,
267 "z": "d3dd528c.9edcf",
276 "id": "f8514da1.cfdee",
279 "xml": "<outcome value='1'>\n",
282 "x": 1653.8611755371094,
283 "y": 509.1189794540405,
284 "z": "d3dd528c.9edcf",
292 "id": "738ae2e5.a84e3c",
294 "name": "block: atomic",
295 "xml": "<block atomic='true'>\n",
299 "x": 1838.3850650787354,
300 "y": 506.02381324768066,
301 "z": "d3dd528c.9edcf",
311 "id": "190c7cc8.68d4f3",
312 "type": "returnFailure",
313 "name": "return failure",
314 "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=\"Error: SOTN resource not found\" />\n \n",
316 "x": 1797.5228652954102,
317 "y": 587.0660448074341,
318 "z": "d3dd528c.9edcf",
324 "id": "e02b6e93.81b44",
327 "xml": "<outcome value='Other'>\n",
330 "x": 1076.5224266052246,
331 "y": 546.0660762786865,
332 "z": "d3dd528c.9edcf",
340 "id": "be0cca0e.643168",
342 "name": "block: atomic",
343 "xml": "<block atomic=\"true\">\n",
347 "x": 1256.5223770141602,
348 "y": 546.732626914978,
349 "z": "d3dd528c.9edcf",
357 "id": "7e23dfd3.3f458",
360 "xml": "<outcome value='Other'>\n",
363 "x": 1642.1891288757324,
364 "y": 546.3993396759033,
365 "z": "d3dd528c.9edcf",
373 "id": "ee3a63b7.1587f",
375 "name": "set connection-attachment-ar from get",
376 "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
378 "x": 2207.4484100341797,
379 "y": 473.0000296831131,
380 "z": "d3dd528c.9edcf",
386 "id": "869cba11.4e5318",
388 "name": "set oper-status",
389 "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
391 "x": 2140.4485778808594,
392 "y": 548.4285554885864,
393 "z": "d3dd528c.9edcf",
399 "id": "30f03cbb.095034",
400 "type": "switchNode",
401 "name": "switch order-status",
402 "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
405 "x": 2150.448356628418,
406 "y": 513.9999895095825,
407 "z": "d3dd528c.9edcf",
416 "id": "7bf97396.e41b0c",
418 "name": "outcome Active",
419 "xml": "<outcome value='Active'>\n",
422 "x": 2386.048439025879,
423 "y": 508.0000205039978,
424 "z": "d3dd528c.9edcf",
432 "id": "a79d0f34.3ad1d",
434 "name": "outcome Other",
435 "xml": "<outcome value='Other'>\n",
438 "x": 2379.7628784179688,
439 "y": 547.4286284446716,
440 "z": "d3dd528c.9edcf",
448 "id": "2b17c4af.c9c67c",
455 "x": 2600.518955230713,
456 "y": 509.3756546974182,
457 "z": "d3dd528c.9edcf",
465 "id": "2df968ff.a59058",
466 "type": "returnFailure",
467 "name": "return failure",
468 "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\" \n value=\"`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
470 "x": 2619.6706581115723,
471 "y": 550.0000185966492,
472 "z": "d3dd528c.9edcf",
478 "id": "4926a336.1549ec",
480 "name": "call GENERIC-RESOURCE-API:sotn-get-request-input-param",
481 "xml": "<call module='GENERIC-RESOURCE-API' rpc='connection-attachment-get-request-input-param' mode='sync' >\n",
484 "x": 972.3069458007812,
485 "y": 615.4935545921326,
486 "z": "d3dd528c.9edcf",
494 "id": "78575bc9.95a094",
496 "name": "block: atomic",
497 "xml": "<block atomic=\"true\">\n",
501 "x": 654.3130226135254,
502 "y": 615.4998412132263,
503 "z": "d3dd528c.9edcf",
511 "id": "b6fea8ef.c49268",
512 "type": "get-resource",
513 "name": "get-resource parent-service-data",
514 "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='services/service/$tmp.ar.parent-service-instance-id/service-data' pfx='mdsal-psd' >\n",
517 "x": 719.0043334960938,
518 "y": 757.5316157341003,
519 "z": "d3dd528c.9edcf",
528 "id": "bc002904.292928",
530 "name": "GET parent-service-data from mdsal to check existence of other End point",
533 "x": 839.0042724609375,
534 "y": 686.5315546989441,
535 "z": "d3dd528c.9edcf",
541 "id": "73d4e1e5.100ea",
543 "name": "for pidx..mdsal-psd.provided-allotted-resources.provided-allotted-resource[]",
544 "xml": "<for index='pidx' start='0' end='`$mdsal-psd.provided-allotted-resources.provided-allotted-resource_length`' >\n",
547 "x": 1728.1887531280518,
548 "y": 925.0041079521179,
549 "z": "d3dd528c.9edcf",
557 "id": "509e7b0a.918fb4",
558 "type": "switchNode",
559 "name": "switch mdsal-psd.provided-allotted-resources_length",
560 "xml": "<switch test='`$mdsal-psd.provided-allotted-resources.provided-allotted-resource_length`'>\n",
563 "x": 785.1881103515625,
564 "y": 901.7180781364441,
565 "z": "d3dd528c.9edcf",
575 "id": "b115b5.efc49a48",
578 "xml": "<outcome value='Other'>\n",
581 "x": 1117.3309860229492,
582 "y": 1125.575547479093,
583 "z": "d3dd528c.9edcf",
591 "id": "94ad2e31.d7a3e",
593 "name": "block : atomic",
594 "xml": "<block atomic=\"true\">",
597 "x": 1311.4583415985107,
598 "y": 919.7015204429626,
599 "z": "d3dd528c.9edcf",
607 "id": "c9283f4f.e54c7",
608 "type": "switchNode",
609 "name": "switch allotted-resource-id",
610 "xml": "<switch test=\"`$mdsal-psd.provided-allotted-resources.provided-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
613 "x": 2163.3001537323,
614 "y": 925.0040049552917,
615 "z": "d3dd528c.9edcf",
624 "id": "ce361aba.4d4be8",
625 "type": "outcomeTrue",
627 "xml": "<outcome value='true'>\n",
630 "x": 2372.1103801727295,
631 "y": 897.4684948921204,
632 "z": "d3dd528c.9edcf",
640 "id": "3b258e58.c08552",
642 "name": "block : atomic",
643 "xml": "<block atomic=\"true\">",
646 "x": 2551.8710765838623,
647 "y": 961.3256735801697,
648 "z": "d3dd528c.9edcf",
657 "id": "2345638f.0ed1bc",
659 "name": "set tmp.pidx and ptx.consumed-ar",
660 "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
662 "x": 2808.728582382202,
663 "y": 935.8971877098083,
664 "z": "d3dd528c.9edcf",
670 "id": "fd1f9423.d014e8",
675 "x": 2719.5893001556396,
676 "y": 982.6532034873962,
677 "z": "d3dd528c.9edcf",
683 "id": "ededcdc6.ddc17",
685 "name": "Check existence of other AR in parent service data",
686 "info": "Check if other allotted resource is available.",
688 "x": 774.966552734375,
689 "y": 835.8928828239441,
690 "z": "d3dd528c.9edcf",
696 "id": "77bec0eb.5d668",
699 "xml": "<outcome value='1'>\n",
702 "x": 1128.9833793640137,
703 "y": 1049.6772646903992,
704 "z": "d3dd528c.9edcf",
712 "id": "9692bf9c.5ffa",
713 "type": "returnFailure",
714 "name": "return failure",
715 "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=\"Error: SOTN resource not found\" />\n \n",
717 "x": 1289.9833297729492,
718 "y": 1124.6772892698646,
719 "z": "d3dd528c.9edcf",
725 "id": "722d0ca5.9a3d54",
728 "xml": "<outcome value='2'>\n",
731 "x": 1136.983362197876,
732 "y": 920.6772208213806,
733 "z": "d3dd528c.9edcf",
741 "id": "9ff06a7f.769658",
748 "x": 2530.0945949554443,
749 "y": 896.6772379875183,
750 "z": "d3dd528c.9edcf",
758 "id": "1207b5bd.65bd4a",
759 "type": "outcomeTrue",
761 "xml": "<outcome value='false'>\n",
764 "x": 2371.0945949554443,
765 "y": 959.6772379875183,
766 "z": "d3dd528c.9edcf",
774 "id": "57dd9846.719728",
775 "type": "switchNode",
776 "name": "switch mdsal-psd.networks_length",
777 "xml": "<switch test='`$mdsal-psd.networks.network_length`'>\n",
780 "x": 1565.3168487548828,
781 "y": 1049.8997659683228,
782 "z": "d3dd528c.9edcf",
791 "id": "d874512e.3c2f3",
794 "xml": "<outcome value='1'>\n",
797 "x": 1837.3168716430664,
798 "y": 1023.7886009216309,
799 "z": "d3dd528c.9edcf",
807 "id": "42dfaf86.525d6",
810 "xml": "<outcome value='Other'>\n",
813 "x": 1831.316993713379,
814 "y": 1083.7886009216309,
815 "z": "d3dd528c.9edcf",
823 "id": "156eaea.2042551",
824 "type": "returnFailure",
825 "name": "return failure",
826 "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=\"Error: Incorrect state found more then 1 network\" />\n \n",
828 "x": 1987.969337463379,
829 "y": 1084.8904075622559,
830 "z": "d3dd528c.9edcf",
836 "id": "e24945d6.e64ac8",
838 "name": "set tmp.network.",
839 "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.networks.network[0].`' />\n",
842 "y": 1024.7887563705444,
843 "z": "d3dd528c.9edcf",
849 "id": "5c010902.1e64d8",
851 "name": "block : atomic",
852 "xml": "<block atomic=\"true\">",
856 "y": 1050.7885127067566,
857 "z": "d3dd528c.9edcf",
865 "id": "ccbd0c47.f16a",
867 "name": "block : atomic",
868 "xml": "<block atomic=\"true\">",
871 "x": 2029.094581604004,
872 "y": 1026.7884788513184,
873 "z": "d3dd528c.9edcf",
882 "id": "36e6716c.6f770e",
884 "name": "for nidx..tmp.network.network-data.network-request-input.network...[]",
885 "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >",
888 "x": 2449.0948486328125,
889 "y": 1086.7884664535522,
890 "z": "d3dd528c.9edcf",
898 "id": "e46aaefd.f607b",
905 "x": 2814.6502323150635,
906 "y": 1086.7885255813599,
907 "z": "d3dd528c.9edcf",
916 "id": "4ebafc38.9bc584",
917 "type": "switchNode",
918 "name": "switch access-node-id",
919 "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">",
922 "x": 3019.1604862213135,
923 "y": 1089.7989015579224,
924 "z": "d3dd528c.9edcf",
932 "id": "3f5b228d.225fde",
933 "type": "outcomeTrue",
935 "xml": "<outcome value='true'>\n",
938 "x": 3206.1604862213135,
939 "y": 1090.7989015579224,
940 "z": "d3dd528c.9edcf",
948 "id": "5885ed34.2fa454",
950 "name": "set tmp.found-in-network tmp.ep-available",
951 "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
953 "x": 3457.160493850708,
954 "y": 1090.3988437652588,
955 "z": "d3dd528c.9edcf",
961 "id": "d3b38771.361348",
962 "type": "returnSuccess",
963 "name": "return success",
964 "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",
966 "x": 3002.150384902954,
967 "y": 1134.7885007858276,
968 "z": "d3dd528c.9edcf",
974 "id": "afaa2fc8.ec942",
975 "type": "switchNode",
976 "name": "switch tmp.ep-available",
977 "xml": "<switch test='`$tmp.ep-available`'>\n",
980 "x": 711.3167114257812,
981 "y": 1313.2327876091003,
982 "z": "d3dd528c.9edcf",
991 "id": "c45531af.37393",
992 "type": "outcomeTrue",
994 "xml": "<outcome value='true'>\n",
997 "x": 929.9834308624268,
998 "y": 1362.5661444664001,
999 "z": "d3dd528c.9edcf",
1007 "id": "465effa9.6427f",
1008 "type": "outcomeTrue",
1010 "xml": "<outcome value='false'>\n",
1013 "x": 934.8722324371338,
1014 "y": 1271.5662055015564,
1015 "z": "d3dd528c.9edcf",
1023 "id": "98f645f2.256338",
1030 "x": 1081.8722286224365,
1031 "y": 1273.4550185203552,
1032 "z": "d3dd528c.9edcf",
1040 "id": "a447132c.ff129",
1042 "name": "block : atomic",
1043 "xml": "<block atomic=\"true\">",
1046 "x": 1100.094518661499,
1047 "y": 1360.5661025047302,
1048 "z": "d3dd528c.9edcf",
1056 "id": "5c394256.a4b72c",
1058 "name": "GET connection-attachment-ar to store AR data from mdsal",
1061 "x": 2270.4766960144043,
1062 "y": 437.50391244888306,
1063 "z": "d3dd528c.9edcf",
1069 "id": "f3cf0d72.a94cd",
1071 "name": "Set source end point",
1074 "x": 675.9765739440918,
1075 "y": 583.2539219856262,
1076 "z": "d3dd528c.9edcf",
1082 "id": "6c9c6e62.89b72",
1084 "name": "set tmp.ar.parent-service-instance-id",
1085 "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
1088 "y": 721.9999995231628,
1089 "z": "d3dd528c.9edcf",
1095 "id": "7bd13bf5.d657f4",
1098 "xml": "<outcome value='success'>\n",
1102 "y": 749.9999995231628,
1103 "z": "d3dd528c.9edcf",
1111 "id": "21599ec.9703d62",
1114 "xml": "<outcome value='Other'>\n",
1117 "x": 957.8244590759277,
1118 "y": 785.0660843849182,
1119 "z": "d3dd528c.9edcf",
1127 "id": "26a3704.033389",
1128 "type": "returnFailure",
1129 "name": "return failure",
1130 "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=\"Error: SOTN resource not found\" />\n \n",
1132 "x": 1132.97314453125,
1133 "y": 781.3334345817566,
1134 "z": "d3dd528c.9edcf",
1140 "id": "9696eaab.88d618",
1148 "y": 747.9999995231628,
1149 "z": "d3dd528c.9edcf",
1157 "id": "761075c6.da2f4c",
1159 "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",
1160 "xml": "<set>\n<parameter name='tmp.found-in-ar' value='false' />\n<parameter name='tmp.found-in-network' value='false' />\n<parameter name='tmp.ep-available' value='false' />",
1163 "y": 866.9999995231628,
1164 "z": "d3dd528c.9edcf",
1170 "id": "419a1f7.f1beae",
1172 "name": "If other EP exists delete from domain controller",
1176 "y": 1237.9999995231628,
1177 "z": "d3dd528c.9edcf",
1183 "id": "19fee4f1.0172ab",
1185 "name": "set controller data",
1186 "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",
1188 "x": 2025.9730224609375,
1189 "y": 1735.0002546310425,
1190 "z": "d3dd528c.9edcf",
1196 "id": "d425caaa.8a6858",
1197 "type": "get-resource",
1198 "name": "get-resource esr-thirdparty-sdnc",
1199 "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 = $tmp.thirdparty-sdnc-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
1202 "x": 1589.4729614257812,
1203 "y": 1794.0002546310425,
1204 "z": "d3dd528c.9edcf",
1214 "id": "4f05b74c.969be8",
1217 "xml": "<outcome value='success'>\n",
1220 "x": 1828.4729614257812,
1221 "y": 1747.0002546310425,
1222 "z": "d3dd528c.9edcf",
1230 "id": "c7b3919.c8ebe7",
1231 "type": "not-found",
1232 "name": "not-found",
1233 "xml": "<outcome value='not-found'>\n",
1236 "x": 1831.9639282226562,
1237 "y": 1794.5742902755737,
1238 "z": "d3dd528c.9edcf",
1246 "id": "40abfefc.3d745",
1249 "xml": "<outcome value='Other'>\n",
1252 "x": 1827.2969360351562,
1253 "y": 1835.907603263855,
1254 "z": "d3dd528c.9edcf",
1262 "id": "7e0e9058.e96b3",
1263 "type": "returnFailure",
1264 "name": "return failure",
1265 "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",
1267 "x": 2008.5353393554688,
1268 "y": 1782.860026359558,
1269 "z": "d3dd528c.9edcf",
1275 "id": "6ad29b98.83f084",
1276 "type": "returnFailure",
1277 "name": "return failure",
1278 "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",
1280 "x": 2015.069492340088,
1281 "y": 1831.3467960357666,
1282 "z": "d3dd528c.9edcf",
1288 "id": "77debd2c.f40a64",
1289 "type": "get-resource",
1290 "name": "get-resource pnf",
1291 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.node-id AND \n\t\t depth = '0'\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n",
1294 "x": 1539.9730834960938,
1295 "y": 1667.00031375885,
1296 "z": "d3dd528c.9edcf",
1306 "id": "b2f42acb.73d9c8",
1309 "xml": "<outcome value='success'>\n",
1312 "x": 1822.9729309082031,
1313 "y": 1608.0002002716064,
1314 "z": "d3dd528c.9edcf",
1322 "id": "659e715a.79934",
1323 "type": "not-found",
1324 "name": "not-found",
1325 "xml": "<outcome value='not-found'>\n",
1328 "x": 1826.4638977050781,
1329 "y": 1655.5742359161377,
1330 "z": "d3dd528c.9edcf",
1338 "id": "79d0fb49.773bc4",
1341 "xml": "<outcome value='Other'>\n",
1344 "x": 1821.7969055175781,
1345 "y": 1696.907548904419,
1346 "z": "d3dd528c.9edcf",
1354 "id": "4fe04183.c5614",
1355 "type": "returnFailure",
1356 "name": "return failure",
1357 "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
1359 "x": 2003.0353088378906,
1360 "y": 1643.859972000122,
1361 "z": "d3dd528c.9edcf",
1367 "id": "5d2c56ed.47c2c8",
1368 "type": "returnFailure",
1369 "name": "return failure",
1370 "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 pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
1372 "x": 2009.5694618225098,
1373 "y": 1692.3467416763306,
1374 "z": "d3dd528c.9edcf",
1380 "id": "ac4575c7.b5d618",
1382 "name": "set tmp.thirdparty-sdnc-id",
1383 "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
1385 "x": 2026.9729309082031,
1386 "y": 1595.0002002716064,
1387 "z": "d3dd528c.9edcf",
1393 "id": "a421d0fb.ce81c",
1395 "name": "get domain controller information",
1398 "x": 1583.4769897460938,
1399 "y": 1636.0042810440063,
1400 "z": "d3dd528c.9edcf",
1406 "id": "f8c8821d.d50c3",
1408 "name": "execute RestApiCallNode Delete ethernet Service",
1409 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + 'restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.vpn-name`\" />\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=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.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`\" />",
1412 "x": 1637.9730224609375,
1413 "y": 1899.0002546310425,
1414 "z": "d3dd528c.9edcf",
1423 "id": "925b677f.9fd908",
1426 "xml": "<outcome value='success'>\n",
1429 "x": 1924.9729614257812,
1430 "y": 1922.0002546310425,
1431 "z": "d3dd528c.9edcf",
1439 "id": "fe5326f7.64a0a8",
1441 "name": "block : atomic",
1442 "xml": "<block atomic=\"true\">",
1446 "x": 2094.972900390625,
1447 "y": 1925.0002546310425,
1448 "z": "d3dd528c.9edcf",
1456 "id": "3a5a8a5c.8b0aa6",
1457 "type": "returnFailure",
1458 "name": "return failure",
1459 "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 rest api\" />\n",
1461 "x": 2094.9730224609375,
1462 "y": 1881.0002546310425,
1463 "z": "d3dd528c.9edcf",
1469 "id": "cff10bd6.5c54c8",
1472 "xml": "<outcome value='failure'>\n",
1475 "x": 1927.972900390625,
1476 "y": 1881.0002546310425,
1477 "z": "d3dd528c.9edcf",
1485 "id": "b7b5526f.d9371",
1488 "xml": "<outcome value='failure'>\n",
1491 "x": 985.734619140625,
1492 "y": 1896.9525974988937,
1493 "z": "d3dd528c.9edcf",
1501 "id": "2cde2bd.f2613d4",
1502 "type": "returnFailure",
1503 "name": "return failure",
1504 "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=\"AAI failed\" />\n",
1506 "x": 1152.2584991455078,
1507 "y": 1908.5716685056686,
1508 "z": "d3dd528c.9edcf",
1514 "id": "8465056c.00dde8",
1516 "name": "not-found",
1517 "xml": "<outcome value='not-found'>\n",
1520 "x": 992.829906463623,
1521 "y": 1929.7145651578903,
1522 "z": "d3dd528c.9edcf",
1530 "id": "dd28433d.d632",
1532 "name": "Save Resource to AAI",
1535 "x": 704.7823333740234,
1536 "y": 1879.3019857406616,
1537 "z": "d3dd528c.9edcf",
1543 "id": "4d323c0f.df7854",
1545 "name": "TODO: Rework after confirmation from AAI",
1548 "x": 1005.141242980957,
1549 "y": 1856.8730244636536,
1550 "z": "d3dd528c.9edcf",
1556 "id": "ce4db8c8.182408",
1558 "name": "set output to api handler",
1559 "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
1561 "x": 719.5500297546387,
1562 "y": 1800.8274669647217,
1563 "z": "d3dd528c.9edcf",
1569 "id": "ea67aab8.ef7588",
1570 "type": "returnSuccess",
1571 "name": "return success",
1572 "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",
1574 "x": 687.9631118774414,
1575 "y": 1961.4432191848755,
1576 "z": "d3dd528c.9edcf",
1582 "id": "72567cb3.f1fbd4",
1584 "name": "execute RestApiCallNode - PUT AR by id",
1585 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-attachment.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
1588 "x": 769.2821311950684,
1589 "y": 1708.468240737915,
1590 "z": "d3dd528c.9edcf",
1600 "id": "4724b378.ec2a2c",
1601 "type": "not-found",
1602 "name": "not-found",
1603 "xml": "<outcome value='not-found'>\n",
1606 "x": 1037.9235076904297,
1607 "y": 1759.799652479589,
1608 "z": "d3dd528c.9edcf",
1616 "id": "4dfcb271.a6386c",
1619 "xml": "<outcome value='failure'>\n",
1622 "x": 1028.9235572814941,
1623 "y": 1728.2996782287955,
1624 "z": "d3dd528c.9edcf",
1632 "id": "4e56cabb.034884",
1635 "xml": "<outcome value='success'>\n",
1638 "x": 1032.6735954284668,
1639 "y": 1698.6567831039429,
1640 "z": "d3dd528c.9edcf",
1648 "id": "2831c4f6.7c5dbc",
1649 "type": "returnFailure",
1650 "name": "return failure",
1651 "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 updating md-sal for connection-attachment-allotted-resource\" />\n",
1653 "x": 1198.6735954284668,
1654 "y": 1729.0497020706534,
1655 "z": "d3dd528c.9edcf",
1661 "id": "a711cf9d.6d6a",
1668 "x": 1174.3295631408691,
1669 "y": 1694.848952293396,
1670 "z": "d3dd528c.9edcf",
1678 "id": "bc240e74.2145b",
1680 "name": "set ar-data",
1681 "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />",
1683 "x": 674.4957275390625,
1684 "y": 1559.8492209911346,
1685 "z": "d3dd528c.9edcf",
1691 "id": "d8c85975.6bf758",
1693 "name": "execute getTime",
1694 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
1697 "x": 691.7815704345703,
1698 "y": 1632.4688186645508,
1699 "z": "d3dd528c.9edcf",
1707 "id": "a691ab09.aead58",
1709 "name": "set allotted-resource-oper-status",
1710 "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
1712 "x": 741.7686500549316,
1713 "y": 1669.4198989868164,
1714 "z": "d3dd528c.9edcf",
1720 "id": "ad638e.fad5cc7",
1722 "name": "set model-data",
1723 "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
1725 "x": 688.3372688293457,
1726 "y": 1599.023871421814,
1727 "z": "d3dd528c.9edcf",
1733 "id": "1b962b1.7c9dad5",
1735 "name": "Prepare data for allotted-resource addition to MDSAL",
1736 "info": "This will add to allotted-resource which is present inside service.",
1738 "x": 801.6707305908203,
1739 "y": 1520.0238234996796,
1740 "z": "d3dd528c.9edcf",
1746 "id": "aad41a92.c6b998",
1748 "name": "Add to allotted-resources in mdsal",
1751 "x": 743.2505569458008,
1752 "y": 1487.4371252059937,
1753 "z": "d3dd528c.9edcf",
1759 "id": "53b9be67.07128",
1761 "name": "update AAI allotted-resource",
1762 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"PendingDelete\" />\n",
1765 "x": 731.2266120910645,
1766 "y": 1916.7541284561157,
1767 "z": "d3dd528c.9edcf",
1776 "id": "b6034c83.e1568",
1777 "type": "get-resource",
1778 "name": "get-resource connectivity",
1779 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"connectivity\" \n\t\tkey=\"connectivity.connectivity-id = $mdsal-psd.networks.network[0].network-id AND \n\t\t depth = '1'\"\n pfx='tmp.connectivity' local-only='false' >\n",
1782 "x": 1315.0043029785156,
1783 "y": 1361.5044565200806,
1784 "z": "d3dd528c.9edcf",
1792 "id": "2227c12c.941eae",
1794 "name": "block : atomic",
1795 "xml": "<block atomic=\"true\">",
1798 "x": 1316.121467590332,
1799 "y": 1539.344430923462,
1800 "z": "d3dd528c.9edcf",
1812 "id": "a7e5f7ca.25d0c8",
1814 "name": "vpn-binding",
1815 "xml": "<outcome value='vpn-binding'>\n",
1818 "x": 1923.2897968292236,
1819 "y": 1367.8257465362549,
1820 "z": "d3dd528c.9edcf",
1828 "id": "e5fcddf9.8d24f",
1830 "name": "for each relationship",
1831 "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.connectivity.relationship-list.relationship_length`' >\n",
1834 "x": 1537.0041198730469,
1835 "y": 1368.0041971206665,
1836 "z": "d3dd528c.9edcf",
1844 "id": "889a6909.fd0648",
1845 "type": "switchNode",
1846 "name": "switch related-to",
1847 "xml": "<switch test='`$tmp.connectivity.relationship-list.relationship[$vidx].related-to`'>\n",
1850 "x": 1744.0041809082031,
1851 "y": 1367.004243850708,
1852 "z": "d3dd528c.9edcf",
1860 "id": "6584aa7e.7c6da4",
1862 "name": "set tmp.vpn-name",
1863 "xml": "<set>\n<parameter name='tmp.vpn-name' value=\"`$tmp.connectivity.relationship-list.relationship[$vidx].relationship-data[0].relationship-value` \" />\n",
1865 "x": 1540.0040893554688,
1866 "y": 1419.004427909851,
1867 "z": "d3dd528c.9edcf",
1873 "id": "1fbc8c35.8ef854",
1875 "name": "split vpnName to find nodeId",
1876 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.vpn-name`'/>\n<parameter name=\"regex\" value=\"-\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"route1\"/>\n",
1881 "z": "d3dd528c.9edcf",
1890 "id": "7097b625.7335c8",
1893 "xml": "<outcome value='success'>\n",
1898 "z": "d3dd528c.9edcf",
1906 "id": "719277cb.1f0738",
1908 "name": "set tmp.node-id",
1909 "xml": "<set>\n<parameter name='tmp.node-id' value='`$route1[0]`' />\n",
1913 "z": "d3dd528c.9edcf",
1919 "id": "188e2bb3.ba9264",
1920 "type": "returnFailure",
1921 "name": "return failure",
1922 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
1926 "z": "d3dd528c.9edcf",
1932 "id": "bd900e2d.e6685",
1935 "xml": "<outcome value='failure'>\n",
1940 "z": "d3dd528c.9edcf",