3 "id": "856df3f7.e848d",
\r
7 "x": 287.9998779296875,
\r
8 "y": 432.4548645019531,
\r
9 "z": "457a744e.ed1b4c",
\r
17 "id": "c3ac539a.75d23",
\r
18 "type": "service-logic",
\r
19 "name": "GENERIC-RESOURCE-API ${project.version}",
\r
20 "module": "GENERIC-RESOURCE-API",
\r
21 "version": "${project.version}",
\r
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}'>",
\r
25 "x": 181.99988174438477,
\r
26 "y": 504.4548816680908,
\r
27 "z": "457a744e.ed1b4c",
\r
35 "id": "42cf8419.06f25c",
\r
37 "name": "sotn-attachment-topology-operation-activate",
\r
38 "xml": "<method rpc='sotn-attachment-topology-operation-activate' mode='sync'>\n",
\r
42 "y": 592.4548645019531,
\r
43 "z": "457a744e.ed1b4c",
\r
51 "id": "44229f8c.39b5a",
\r
53 "name": "block : atomic",
\r
54 "xml": "<block atomic=\"true\">\n",
\r
59 "y": 1147.4551091194153,
\r
60 "z": "457a744e.ed1b4c",
\r
87 "id": "ba9e8375.777f",
\r
89 "name": "set tmp.ar.allotted-resource-id,etc",
\r
90 "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",
\r
92 "x": 582.9934387207031,
\r
93 "y": 546.4483513832092,
\r
94 "z": "457a744e.ed1b4c",
\r
98 "id": "8dfc51c4.4907a",
\r
100 "name": "set tmp ar-id to fetch resource from MDSAL",
\r
103 "x": 597.4536285400391,
\r
104 "y": 499.48014736175537,
\r
105 "z": "457a744e.ed1b4c",
\r
109 "id": "15d45773.32c279",
\r
111 "name": "set tmp.ar.self-link",
\r
112 "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",
\r
114 "x": 536.9933776855469,
\r
115 "y": 639.448356628418,
\r
116 "z": "457a744e.ed1b4c",
\r
120 "id": "47caa47d.16426c",
\r
122 "name": "execute Properties",
\r
123 "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",
\r
126 "x": 543.2552680969238,
\r
127 "y": 727.1150856018066,
\r
128 "z": "457a744e.ed1b4c",
\r
134 "id": "a32bd31f.e0ecd",
\r
136 "name": "generate allotted-resource tmp.ar-url",
\r
137 "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",
\r
140 "x": 590.2553253173828,
\r
141 "y": 815.1150894165039,
\r
142 "z": "457a744e.ed1b4c",
\r
148 "id": "722a6658.bf16e8",
\r
150 "name": "GET connection-attachment-allotted-resource from mdsal",
\r
153 "x": 622.3081359863281,
\r
154 "y": 934.9935235977173,
\r
155 "z": "457a744e.ed1b4c",
\r
159 "id": "f15283c1.aa42d",
\r
161 "name": "Used for setting output to API Handler",
\r
164 "x": 576.4932861328125,
\r
165 "y": 595.4483661651611,
\r
166 "z": "457a744e.ed1b4c",
\r
170 "id": "56bc8415.3a63fc",
\r
172 "name": "Obtain different URL, template location etc",
\r
173 "info": "For saving resource information to MDSAL & for AAI",
\r
175 "x": 594.4932518005371,
\r
176 "y": 681.3372468948364,
\r
177 "z": "457a744e.ed1b4c",
\r
181 "id": "d454f4dd.1be708",
\r
183 "name": "Used to Get AR by id to MDSAL, same as self-link",
\r
186 "x": 620.4932708740234,
\r
187 "y": 768.3372058868408,
\r
188 "z": "457a744e.ed1b4c",
\r
192 "id": "860a625.2d0bba",
\r
195 "xml": "<outcome value='success'>\n",
\r
198 "x": 1096.666669845581,
\r
199 "y": 963.4548492431641,
\r
200 "z": "457a744e.ed1b4c",
\r
208 "id": "23f7f9e5.e74c26",
\r
210 "name": "block: atomic",
\r
211 "xml": "<block atomic=\"true\">\n",
\r
215 "x": 1240.666748046875,
\r
216 "y": 920.9547672271729,
\r
217 "z": "457a744e.ed1b4c",
\r
225 "id": "50c8dc73.ad5724",
\r
226 "type": "switchNode",
\r
227 "name": "switch cr length",
\r
228 "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
\r
231 "x": 1409.5241718292236,
\r
232 "y": 918.573938369751,
\r
233 "z": "457a744e.ed1b4c",
\r
242 "id": "c054c953.458078",
\r
244 "name": "outcome 1",
\r
245 "xml": "<outcome value='1'>\n",
\r
248 "x": 1564.857307434082,
\r
249 "y": 890.5738534927368,
\r
250 "z": "457a744e.ed1b4c",
\r
258 "id": "46a60f4d.34912",
\r
260 "name": "block: atomic",
\r
261 "xml": "<block atomic='true'>\n",
\r
265 "x": 1723.3811111450195,
\r
266 "y": 888.4787006378174,
\r
267 "z": "457a744e.ed1b4c",
\r
277 "id": "bb2fd456.9a1798",
\r
278 "type": "returnFailure",
\r
279 "name": "return failure",
\r
280 "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: Connection attachment resource not exist\" />\n \n",
\r
282 "x": 1663.51904296875,
\r
283 "y": 995.5209350585938,
\r
284 "z": "457a744e.ed1b4c",
\r
288 "id": "db78a108.063fb",
\r
291 "xml": "<outcome value='Other'>\n",
\r
294 "x": 1088.5184726715088,
\r
295 "y": 998.5209341049194,
\r
296 "z": "457a744e.ed1b4c",
\r
304 "id": "333707db.05b3b8",
\r
306 "name": "block: atomic",
\r
307 "xml": "<block atomic=\"true\">\n",
\r
311 "x": 1268.5184230804443,
\r
312 "y": 999.1874847412109,
\r
313 "z": "457a744e.ed1b4c",
\r
321 "id": "79145839.1bfe98",
\r
324 "xml": "<outcome value='Other'>\n",
\r
327 "x": 1556.1853103637695,
\r
328 "y": 949.8542280197144,
\r
329 "z": "457a744e.ed1b4c",
\r
337 "id": "df6acc2d.ff6de",
\r
339 "name": "set connection-attachment-ar from get",
\r
340 "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
\r
342 "x": 1970.444564819336,
\r
343 "y": 861.4549527168274,
\r
344 "z": "457a744e.ed1b4c",
\r
348 "id": "cfe330b5.d7e03",
\r
350 "name": "set oper-status",
\r
351 "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",
\r
353 "x": 1904.444595336914,
\r
354 "y": 934.8834552764893,
\r
355 "z": "457a744e.ed1b4c",
\r
359 "id": "612880e0.04607",
\r
360 "type": "switchNode",
\r
361 "name": "switch order-status",
\r
362 "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
\r
365 "x": 1914.4443740844727,
\r
366 "y": 900.4548892974854,
\r
367 "z": "457a744e.ed1b4c",
\r
377 "id": "59d3ffeb.34439",
\r
379 "name": "outcome Created",
\r
380 "xml": "<outcome value='Created'>\n",
\r
383 "x": 2150.0444564819336,
\r
384 "y": 894.4549202919006,
\r
385 "z": "457a744e.ed1b4c",
\r
393 "id": "3d1a678c.8bbdd8",
\r
395 "name": "outcome Other",
\r
396 "xml": "<outcome value='Other'>\n",
\r
399 "x": 2143.7589569091797,
\r
400 "y": 974.8835549354553,
\r
401 "z": "457a744e.ed1b4c",
\r
409 "id": "df7e0809.5f60a8",
\r
412 "xml": "<block>\n",
\r
416 "x": 2308.5151290893555,
\r
417 "y": 894.8305759429932,
\r
418 "z": "457a744e.ed1b4c",
\r
424 "id": "29c5c973.948626",
\r
425 "type": "returnFailure",
\r
426 "name": "return failure",
\r
427 "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",
\r
429 "x": 2319.6667709350586,
\r
430 "y": 973.4549541473389,
\r
431 "z": "457a744e.ed1b4c",
\r
435 "id": "e7c9e6c8.22ec78",
\r
437 "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
\r
438 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
\r
441 "x": 807.3029289245605,
\r
442 "y": 1045.9484691619873,
\r
443 "z": "457a744e.ed1b4c",
\r
449 "id": "759ba274.db6d0c",
\r
451 "name": "block: atomic",
\r
452 "xml": "<block atomic=\"true\">\n",
\r
456 "x": 501.3090286254883,
\r
457 "y": 1046.954839706421,
\r
458 "z": "457a744e.ed1b4c",
\r
466 "id": "a3f3b1ad.b0019",
\r
468 "name": "GET parent-service-data from mdsal to check existence of other End point",
\r
471 "x": 674.500244140625,
\r
472 "y": 1080.9866170883179,
\r
473 "z": "457a744e.ed1b4c",
\r
477 "id": "76fcae92.3eed7",
\r
479 "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
\r
480 "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
\r
483 "x": 1580.185073852539,
\r
484 "y": 1244.4590945243835,
\r
485 "z": "457a744e.ed1b4c",
\r
493 "id": "d86c13ce.944c4",
\r
494 "type": "switchNode",
\r
495 "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",
\r
496 "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",
\r
499 "x": 664.1840972900391,
\r
500 "y": 1352.1731309890747,
\r
501 "z": "457a744e.ed1b4c",
\r
511 "id": "2966b54a.501cfa",
\r
514 "xml": "<outcome value='Other'>\n",
\r
517 "x": 992.3271179199219,
\r
518 "y": 1425.0304050445557,
\r
519 "z": "457a744e.ed1b4c",
\r
527 "id": "70b1403b.56bf6",
\r
529 "name": "block : atomic",
\r
530 "xml": "<block atomic=\"true\">",
\r
533 "x": 1176.4543800354004,
\r
534 "y": 1284.1564140319824,
\r
535 "z": "457a744e.ed1b4c",
\r
544 "id": "d5a80521.4971a8",
\r
545 "type": "switchNode",
\r
546 "name": "switch allotted-resource-id",
\r
547 "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
\r
550 "x": 2020.296401977539,
\r
551 "y": 1241.458896636963,
\r
552 "z": "457a744e.ed1b4c",
\r
561 "id": "fbf9bebd.108b5",
\r
562 "type": "outcomeTrue",
\r
564 "xml": "<outcome value='true'>\n",
\r
567 "x": 2193.106616973877,
\r
568 "y": 1212.923511505127,
\r
569 "z": "457a744e.ed1b4c",
\r
577 "id": "ca9dd6b1.dea908",
\r
579 "name": "block : atomic",
\r
580 "xml": "<block atomic=\"true\">",
\r
583 "x": 2341.867088317871,
\r
584 "y": 1269.780598640442,
\r
585 "z": "457a744e.ed1b4c",
\r
593 "id": "74d65b2c.e08474",
\r
595 "name": "set tmp.pidx and ptx.consumed-ar",
\r
596 "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
\r
598 "x": 2576.7245140075684,
\r
599 "y": 1268.3521308898926,
\r
600 "z": "457a744e.ed1b4c",
\r
604 "id": "f9f17725.c60488",
\r
606 "name": "Check existence of other AR in parent service data",
\r
607 "info": "Check if other allotted resource is available.",
\r
609 "x": 597.4624137878418,
\r
610 "y": 1246.3478260040283,
\r
611 "z": "457a744e.ed1b4c",
\r
615 "id": "a9c0a3da.bac0f",
\r
617 "name": "outcome 1",
\r
618 "xml": "<outcome value='1'>\n",
\r
621 "x": 1006.9795875549316,
\r
622 "y": 1364.1320886611938,
\r
623 "z": "457a744e.ed1b4c",
\r
631 "id": "e73ccbba.1ddf58",
\r
632 "type": "returnFailure",
\r
633 "name": "return failure",
\r
634 "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: End points not available\" />\n \n",
\r
636 "x": 1151.9794654846191,
\r
637 "y": 1424.1323337554932,
\r
638 "z": "457a744e.ed1b4c",
\r
642 "id": "90fbdee6.96522",
\r
644 "name": "outcome 2",
\r
645 "xml": "<outcome value='2'>\n",
\r
648 "x": 1001.9794006347656,
\r
649 "y": 1285.1321144104004,
\r
650 "z": "457a744e.ed1b4c",
\r
658 "id": "d1d91e32.6cacd",
\r
661 "xml": "<block>\n",
\r
665 "x": 2351.090831756592,
\r
666 "y": 1212.132254600525,
\r
667 "z": "457a744e.ed1b4c",
\r
673 "id": "1701079a.547728",
\r
674 "type": "outcomeTrue",
\r
676 "xml": "<outcome value='false'>\n",
\r
679 "x": 2200.090473175049,
\r
680 "y": 1269.1321144104004,
\r
681 "z": "457a744e.ed1b4c",
\r
689 "id": "4ca6c420.3d4d6c",
\r
690 "type": "switchNode",
\r
691 "name": "switch tmp.found-in-ar",
\r
692 "xml": "<switch test='`$tmp.found-in-ar`'>\n\n",
\r
695 "x": 1388.979377746582,
\r
696 "y": 1337.9099321365356,
\r
697 "z": "457a744e.ed1b4c",
\r
705 "id": "de2c4f3e.58ca2",
\r
706 "type": "outcomeTrue",
\r
708 "xml": "<outcome value='true'>\n",
\r
711 "x": 1559.9794120788574,
\r
712 "y": 1339.0211534500122,
\r
713 "z": "457a744e.ed1b4c",
\r
721 "id": "81e5e824.bbde88",
\r
723 "name": "block : atomic",
\r
724 "xml": "<block atomic=\"true\">",
\r
727 "x": 1708.979507446289,
\r
728 "y": 1339.021152496338,
\r
729 "z": "457a744e.ed1b4c",
\r
738 "id": "a5795c00.0454b8",
\r
741 "xml": "<outcome value='success'>\n",
\r
744 "x": 2455.0973320007324,
\r
745 "y": 1355.2500066757202,
\r
746 "z": "457a744e.ed1b4c",
\r
754 "id": "a870baef.09bb38",
\r
757 "xml": "<outcome value='Other'>\n",
\r
760 "x": 2446.94913482666,
\r
761 "y": 1390.3160915374756,
\r
762 "z": "457a744e.ed1b4c",
\r
770 "id": "7afdbce8.a487b4",
\r
771 "type": "switchNode",
\r
772 "name": "switch mdsal-psd.service-data.networks_length",
\r
773 "xml": "<switch test='`$mdsal-psd.service-data.networks.network_length`'>\n",
\r
776 "x": 1452.3128814697266,
\r
777 "y": 1439.354772567749,
\r
778 "z": "457a744e.ed1b4c",
\r
787 "id": "35f89340.b0afec",
\r
789 "name": "outcome 1",
\r
790 "xml": "<outcome value='1'>\n",
\r
793 "x": 1716.312728881836,
\r
794 "y": 1419.2435188293457,
\r
795 "z": "457a744e.ed1b4c",
\r
803 "id": "3ae2030c.2e369c",
\r
806 "xml": "<outcome value='Other'>\n",
\r
809 "x": 1706.3127899169922,
\r
810 "y": 1467.2434902191162,
\r
811 "z": "457a744e.ed1b4c",
\r
819 "id": "41cb4081.5cc8b",
\r
820 "type": "returnFailure",
\r
821 "name": "return failure",
\r
822 "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",
\r
824 "x": 1844.9651336669922,
\r
825 "y": 1469.345251083374,
\r
826 "z": "457a744e.ed1b4c",
\r
830 "id": "835a530e.7655e",
\r
832 "name": "set tmp.network.",
\r
833 "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[0].`' />\n\n\n",
\r
835 "x": 2077.7575874328613,
\r
836 "y": 1420.243688583374,
\r
837 "z": "457a744e.ed1b4c",
\r
841 "id": "44d59200.c8af1c",
\r
843 "name": "block : atomic",
\r
844 "xml": "<block atomic=\"true\">",
\r
847 "x": 1174.4238967895508,
\r
848 "y": 1363.2433557510376,
\r
849 "z": "457a744e.ed1b4c",
\r
857 "id": "3440b31f.59dfbc",
\r
859 "name": "block : atomic",
\r
860 "xml": "<block atomic=\"true\">",
\r
863 "x": 1875.0904998779297,
\r
864 "y": 1422.2433528900146,
\r
865 "z": "457a744e.ed1b4c",
\r
874 "id": "387084b4.ee101c",
\r
876 "name": "for nidx..tmp.network.network-data.network-request-input.network...[]",
\r
877 "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >",
\r
880 "x": 2238.0905380249023,
\r
881 "y": 1468.243507385254,
\r
882 "z": "457a744e.ed1b4c",
\r
890 "id": "b2211b9d.e49e88",
\r
893 "xml": "<block>\n",
\r
897 "x": 2284.6466064453125,
\r
898 "y": 1699.2433166503906,
\r
899 "z": "457a744e.ed1b4c",
\r
916 "id": "ce7f2d9.0fd97d",
\r
917 "type": "switchNode",
\r
918 "name": "switch access-node-id",
\r
919 "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">",
\r
922 "x": 2561.15682220459,
\r
923 "y": 1541.2540640830994,
\r
924 "z": "457a744e.ed1b4c",
\r
932 "id": "5cc6ea52.13cad4",
\r
933 "type": "outcomeTrue",
\r
935 "xml": "<outcome value='true'>\n",
\r
938 "x": 2750.156448364258,
\r
939 "y": 1543.2539286613464,
\r
940 "z": "457a744e.ed1b4c",
\r
948 "id": "dbd5e88a.b68d18",
\r
950 "name": "set tmp.found-in-network tmp.ep-available",
\r
951 "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
\r
953 "x": 3003.156623840332,
\r
954 "y": 1542.8539748191833,
\r
955 "z": "457a744e.ed1b4c",
\r
959 "id": "296fd7a4.634998",
\r
960 "type": "returnSuccess",
\r
961 "name": "return success",
\r
962 "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",
\r
964 "x": 2535.1462745666504,
\r
965 "y": 1915.2433552742004,
\r
966 "z": "457a744e.ed1b4c",
\r
970 "id": "c339c30c.1d058",
\r
971 "type": "switchNode",
\r
972 "name": "switch tmp.ep-available",
\r
973 "xml": "<switch test='`$tmp.ep-available`'>\n",
\r
976 "x": 527.3126983642578,
\r
977 "y": 1547.687665939331,
\r
978 "z": "457a744e.ed1b4c",
\r
987 "id": "9cb4ba0f.749ab8",
\r
988 "type": "outcomeTrue",
\r
990 "xml": "<outcome value='true'>\n",
\r
993 "x": 745.9794178009033,
\r
994 "y": 1597.0210227966309,
\r
995 "z": "457a744e.ed1b4c",
\r
1003 "id": "66f8b762.86d108",
\r
1004 "type": "outcomeTrue",
\r
1006 "xml": "<outcome value='false'>\n",
\r
1009 "x": 750.8682193756104,
\r
1010 "y": 1506.021083831787,
\r
1011 "z": "457a744e.ed1b4c",
\r
1019 "id": "a01acdad.7b848",
\r
1022 "xml": "<block>\n",
\r
1023 "atomic": "false",
\r
1026 "x": 897.8682155609131,
\r
1027 "y": 1507.909896850586,
\r
1028 "z": "457a744e.ed1b4c",
\r
1034 "id": "27a77fa0.c4aee",
\r
1036 "name": "block : atomic",
\r
1037 "xml": "<block atomic=\"true\">",
\r
1040 "x": 916.0905055999756,
\r
1041 "y": 1595.020980834961,
\r
1042 "z": "457a744e.ed1b4c",
\r
1045 "36228b5c.1add84",
\r
1046 "c3a3291b.9f4668",
\r
1052 "id": "36228b5c.1add84",
\r
1053 "type": "switchNode",
\r
1054 "name": "switch tmp.found-in-ar",
\r
1055 "xml": "<switch test='`$tmp.found-in-ar`'>\n",
\r
1058 "x": 1142.2015190124512,
\r
1059 "y": 1562.020980834961,
\r
1060 "z": "457a744e.ed1b4c",
\r
1069 "id": "8ea65101.30d46",
\r
1070 "type": "outcomeTrue",
\r
1072 "xml": "<outcome value='true'>\n",
\r
1075 "x": 1337.6459655761719,
\r
1076 "y": 1540.0210418701172,
\r
1077 "z": "457a744e.ed1b4c",
\r
1085 "id": "d5079913.80c4d8",
\r
1086 "type": "outcomeTrue",
\r
1088 "xml": "<outcome value='false'>\n",
\r
1091 "x": 1334.6458740234375,
\r
1092 "y": 1588.0210266113281,
\r
1093 "z": "457a744e.ed1b4c",
\r
1101 "id": "68265a71.7dde04",
\r
1103 "name": "block : atomic",
\r
1104 "xml": "<block atomic=\"true\">",
\r
1107 "x": 1525.2016296386719,
\r
1108 "y": 1537.0210418701172,
\r
1109 "z": "457a744e.ed1b4c",
\r
1117 "id": "f6ff2749.20d6b8",
\r
1119 "name": "block : atomic",
\r
1120 "xml": "<block atomic=\"true\">",
\r
1123 "x": 1522.2015380859375,
\r
1124 "y": 1587.0210266113281,
\r
1125 "z": "457a744e.ed1b4c",
\r
1133 "id": "3cd1669e.2956fa",
\r
1134 "type": "comment",
\r
1135 "name": "GET connection-attachment-ar to store AR data from mdsal",
\r
1138 "x": 2019.9725914001465,
\r
1139 "y": 812.9588122367859,
\r
1140 "z": "457a744e.ed1b4c",
\r
1144 "id": "96f74137.f7998",
\r
1145 "type": "comment",
\r
1146 "name": "Set source end point",
\r
1149 "x": 509.4724884033203,
\r
1150 "y": 901.7088322639465,
\r
1151 "z": "457a744e.ed1b4c",
\r
1155 "id": "4c87cfa1.02c6c",
\r
1157 "name": "set tmp.ar.parent-service-instance-id",
\r
1158 "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",
\r
1160 "x": 574.9687042236328,
\r
1161 "y": 1121.4549551010132,
\r
1162 "z": "457a744e.ed1b4c",
\r
1166 "id": "f3f93c79.0dcb",
\r
1167 "type": "success",
\r
1168 "name": "success",
\r
1169 "xml": "<outcome value='success'>\n",
\r
1172 "x": 934.9688568115234,
\r
1173 "y": 1192.4549417495728,
\r
1174 "z": "457a744e.ed1b4c",
\r
1182 "id": "b078a619.3c13b8",
\r
1185 "xml": "<outcome value='Other'>\n",
\r
1188 "x": 926.8206596374512,
\r
1189 "y": 1227.5210266113281,
\r
1190 "z": "457a744e.ed1b4c",
\r
1198 "id": "42089f0a.93012",
\r
1199 "type": "returnFailure",
\r
1200 "name": "return failure",
\r
1201 "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: Parent service data not available\" />\n \n",
\r
1203 "x": 1072.969440460205,
\r
1204 "y": 1226.7884378433228,
\r
1205 "z": "457a744e.ed1b4c",
\r
1209 "id": "71285b35.a93954",
\r
1212 "xml": "<block>\n",
\r
1213 "atomic": "false",
\r
1216 "x": 1065.968952178955,
\r
1217 "y": 1192.455002784729,
\r
1218 "z": "457a744e.ed1b4c",
\r
1224 "id": "c23d6d08.4c9e6",
\r
1225 "type": "returnFailure",
\r
1226 "name": "return failure",
\r
1227 "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 provided attachment resource not found\" />\n \n",
\r
1229 "x": 2596.9691848754883,
\r
1230 "y": 1390.455129623413,
\r
1231 "z": "457a744e.ed1b4c",
\r
1235 "id": "acd4313a.acdba",
\r
1238 "xml": "<block>\n",
\r
1239 "atomic": "false",
\r
1242 "x": 2581.969306945801,
\r
1243 "y": 1357.455114364624,
\r
1244 "z": "457a744e.ed1b4c",
\r
1250 "id": "b760f3b3.babf2",
\r
1252 "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",
\r
1253 "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' />",
\r
1255 "x": 660.9686431884766,
\r
1256 "y": 1294.4549293518066,
\r
1257 "z": "457a744e.ed1b4c",
\r
1261 "id": "61c0c66f.9cb2e8",
\r
1262 "type": "comment",
\r
1263 "name": "If other EP exists set destination end point",
\r
1264 "info": "Check if other allotted resource is available.",
\r
1266 "x": 563.4685211181641,
\r
1267 "y": 1461.4548778533936,
\r
1268 "z": "457a744e.ed1b4c",
\r
1272 "id": "f95e3456.773938",
\r
1275 "xml": "<block>\n",
\r
1276 "atomic": "false",
\r
1279 "x": 1317.968765258789,
\r
1280 "y": 1799.455159187317,
\r
1281 "z": "457a744e.ed1b4c",
\r
1284 "bd500845.16ea38",
\r
1285 "349a9a1b.d2e8f6",
\r
1288 "145d9915.1a14e7",
\r
1289 "14b60e62.9552e2",
\r
1290 "44bf4a7c.708044",
\r
1296 "id": "bd500845.16ea38",
\r
1297 "type": "switchNode",
\r
1298 "name": "switch access-node-id",
\r
1299 "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-node-id'`\">",
\r
1302 "x": 1560.4790668487549,
\r
1303 "y": 1669.4655556678772,
\r
1304 "z": "457a744e.ed1b4c",
\r
1312 "id": "349a9a1b.d2e8f6",
\r
1313 "type": "returnSuccess",
\r
1314 "name": "return success",
\r
1315 "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",
\r
1317 "x": 1533.4690189361572,
\r
1318 "y": 1974.4555191993713,
\r
1319 "z": "457a744e.ed1b4c",
\r
1323 "id": "9dd5c1cd.85633",
\r
1324 "type": "switchNode",
\r
1325 "name": "switch access-ltp-id",
\r
1326 "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-ltp-id'`\">",
\r
1329 "x": 1551.9688968658447,
\r
1330 "y": 1713.2330870628357,
\r
1331 "z": "457a744e.ed1b4c",
\r
1339 "id": "c65490b9.9fe9b",
\r
1340 "type": "switchNode",
\r
1341 "name": "switch clientSignal",
\r
1342 "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'clientSignal'`\">",
\r
1345 "x": 1545.9689350128174,
\r
1346 "y": 1759.2331337928772,
\r
1347 "z": "457a744e.ed1b4c",
\r
1355 "id": "145d9915.1a14e7",
\r
1356 "type": "switchNode",
\r
1357 "name": "switch cVLAN",
\r
1358 "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'cVLAN'`\">",
\r
1361 "x": 1529.9584369659424,
\r
1362 "y": 1798.2226357460022,
\r
1363 "z": "457a744e.ed1b4c",
\r
1371 "id": "4565f3d5.aafebc",
\r
1372 "type": "outcomeTrue",
\r
1374 "xml": "<outcome value='true'>\n",
\r
1377 "x": 1738.1909809112549,
\r
1378 "y": 1670.1219277381897,
\r
1379 "z": "457a744e.ed1b4c",
\r
1387 "id": "ef2e4180.488b9",
\r
1389 "name": "set dst-access-node-id",
\r
1390 "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-node-id' value='`$tmp.ep.parameters.param[$idx].value`' />",
\r
1392 "x": 1913.1909809112549,
\r
1393 "y": 1669.72190284729,
\r
1394 "z": "457a744e.ed1b4c",
\r
1398 "id": "80dc869e.ab7a58",
\r
1399 "type": "outcomeTrue",
\r
1401 "xml": "<outcome value='true'>\n",
\r
1404 "x": 1733.6808490753174,
\r
1405 "y": 1712.8893837928772,
\r
1406 "z": "457a744e.ed1b4c",
\r
1414 "id": "257fa4da.2cce3c",
\r
1415 "type": "outcomeTrue",
\r
1417 "xml": "<outcome value='true'>\n",
\r
1420 "x": 1733.6808490753174,
\r
1421 "y": 1758.8893837928772,
\r
1422 "z": "457a744e.ed1b4c",
\r
1430 "id": "52fd3d94.d7d2a4",
\r
1431 "type": "outcomeTrue",
\r
1433 "xml": "<outcome value='true'>\n",
\r
1436 "x": 1733.6703510284424,
\r
1437 "y": 1797.8790078163147,
\r
1438 "z": "457a744e.ed1b4c",
\r
1446 "id": "c3a3291b.9f4668",
\r
1448 "name": "for idx..tmp.ep.parameters[]",
\r
1449 "xml": "<for index='idx' start='0' end='`$tmp.ep.parameters.param_length`'>\n\n",
\r
1452 "x": 1170.9686279296875,
\r
1453 "y": 1687.4548645019531,
\r
1454 "z": "457a744e.ed1b4c",
\r
1462 "id": "1e10edac.a57b22",
\r
1464 "name": "set tmp.ep.parameters",
\r
1465 "xml": "<set>\n<parameter name='tmp.ep.parameters.' value='`$mdsal-other-ar.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.`' />\n",
\r
1467 "x": 1736.9686832427979,
\r
1468 "y": 1536.4549388885498,
\r
1469 "z": "457a744e.ed1b4c",
\r
1473 "id": "63596c05.8bab04",
\r
1475 "name": "set tmp.ep.parameters",
\r
1476 "xml": "<set>\n<parameter name='tmp.ep.parameters.' value='`$tmp.network.network-data.network-request-input.network-input-parameters.`' />\n",
\r
1478 "x": 1733.9685916900635,
\r
1479 "y": 1582.4549236297607,
\r
1480 "z": "457a744e.ed1b4c",
\r
1484 "id": "5c8d584.21faba8",
\r
1486 "name": "set dst-access-node-id",
\r
1487 "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-ltp-id' value='`$tmp.ep.parameters.param[$idx].value`' />",
\r
1489 "x": 1910.9688129425049,
\r
1490 "y": 1712.4551796913147,
\r
1491 "z": "457a744e.ed1b4c",
\r
1495 "id": "8b8a921e.bd895",
\r
1497 "name": "set dst-clientSignal",
\r
1498 "xml": "<set>\n<parameter name='prop.remote.connection-attachment.clientSignal' value='`$tmp.ep.parameters.param[$idx].value`' />",
\r
1500 "x": 1904.9688129425049,
\r
1501 "y": 1756.4551796913147,
\r
1502 "z": "457a744e.ed1b4c",
\r
1506 "id": "cb174273.1b4b",
\r
1508 "name": "set dst-cVLAN",
\r
1509 "xml": "<set>\n<parameter name='prop.remote.connection-attachment.cVLAN' value='`$tmp.ep.parameters.param[$idx].value`' />",
\r
1511 "x": 1895.9688129425049,
\r
1512 "y": 1795.4551796913147,
\r
1513 "z": "457a744e.ed1b4c",
\r
1517 "id": "8ac4c29d.af442",
\r
1518 "type": "comment",
\r
1519 "name": "Get controller info and send request",
\r
1524 "z": "457a744e.ed1b4c",
\r
1528 "id": "e30487d9.fc40e8",
\r
1529 "type": "failure",
\r
1530 "name": "failure",
\r
1531 "xml": "<outcome value='failure'>\n",
\r
1534 "x": 749.7310523986816,
\r
1535 "y": 2490.4085731506348,
\r
1536 "z": "457a744e.ed1b4c",
\r
1544 "id": "b5950a83.64a2e8",
\r
1545 "type": "returnFailure",
\r
1546 "name": "return failure",
\r
1547 "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",
\r
1549 "x": 916.2548732757568,
\r
1550 "y": 2517.0275802612305,
\r
1551 "z": "457a744e.ed1b4c",
\r
1555 "id": "3b646004.2813c",
\r
1556 "type": "failure",
\r
1557 "name": "not-found",
\r
1558 "xml": "<outcome value='not-found'>\n",
\r
1561 "x": 751.8262805938721,
\r
1562 "y": 2538.170415878296,
\r
1563 "z": "457a744e.ed1b4c",
\r
1571 "id": "804e67f7.f5fcb8",
\r
1572 "type": "comment",
\r
1573 "name": "Save Resource to AAI",
\r
1576 "x": 509.27857398986816,
\r
1577 "y": 2467.7577362060547,
\r
1578 "z": "457a744e.ed1b4c",
\r
1582 "id": "e4d724bf.bef2c8",
\r
1584 "name": "set output to api handler",
\r
1585 "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",
\r
1587 "x": 538.5463924407959,
\r
1588 "y": 2400.2832174301147,
\r
1589 "z": "457a744e.ed1b4c",
\r
1593 "id": "a54e0786.d45e68",
\r
1594 "type": "returnSuccess",
\r
1595 "name": "return success",
\r
1596 "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",
\r
1598 "x": 498.9595642089844,
\r
1599 "y": 2585.8990058898926,
\r
1600 "z": "457a744e.ed1b4c",
\r
1604 "id": "be2b6004.6abeb",
\r
1605 "type": "execute",
\r
1606 "name": "execute RestApiCallNode - PUT AR by id",
\r
1607 "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\" />",
\r
1610 "x": 591.2784748077393,
\r
1611 "y": 2324.9240703582764,
\r
1612 "z": "457a744e.ed1b4c",
\r
1622 "id": "d7bb7d7e.e7376",
\r
1623 "type": "not-found",
\r
1624 "name": "not-found",
\r
1625 "xml": "<outcome value='not-found'>\n",
\r
1628 "x": 845.9198970794678,
\r
1629 "y": 2369.255464553833,
\r
1630 "z": "457a744e.ed1b4c",
\r
1638 "id": "7647bebc.d34c5",
\r
1639 "type": "failure",
\r
1640 "name": "failure",
\r
1641 "xml": "<outcome value='failure'>\n",
\r
1644 "x": 847.9199199676514,
\r
1645 "y": 2327.7554286941886,
\r
1646 "z": "457a744e.ed1b4c",
\r
1654 "id": "f09cf18.f872f1",
\r
1655 "type": "success",
\r
1656 "name": "success",
\r
1657 "xml": "<outcome value='success'>\n",
\r
1660 "x": 851.6700038909912,
\r
1661 "y": 2279.1125812530518,
\r
1662 "z": "457a744e.ed1b4c",
\r
1670 "id": "a250aba9.a5bd58",
\r
1671 "type": "returnFailure",
\r
1672 "name": "return failure",
\r
1673 "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",
\r
1675 "x": 1006.6700229644775,
\r
1676 "y": 2347.505495071411,
\r
1677 "z": "457a744e.ed1b4c",
\r
1681 "id": "6472d85a.5caad8",
\r
1684 "xml": "<block>\n",
\r
1685 "atomic": "false",
\r
1688 "x": 979.32594871521,
\r
1689 "y": 2281.3047494888306,
\r
1690 "z": "457a744e.ed1b4c",
\r
1696 "id": "6927072b.434fa8",
\r
1698 "name": "set ar-data",
\r
1699 "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.` \" />",
\r
1701 "x": 493.4920902252197,
\r
1702 "y": 2159.3049714565277,
\r
1703 "z": "457a744e.ed1b4c",
\r
1707 "id": "71a15b15.32e354",
\r
1708 "type": "execute",
\r
1709 "name": "execute getTime",
\r
1710 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
\r
1713 "x": 510.77793312072754,
\r
1714 "y": 2231.924569129944,
\r
1715 "z": "457a744e.ed1b4c",
\r
1721 "id": "7f03f367.f1262c",
\r
1723 "name": "set allotted-resource-oper-status",
\r
1724 "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Active' />\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",
\r
1726 "x": 560.7650127410889,
\r
1727 "y": 2268.8756494522095,
\r
1728 "z": "457a744e.ed1b4c",
\r
1732 "id": "fecc8e1.3af3a7",
\r
1734 "name": "set model-data",
\r
1735 "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.` \" />",
\r
1737 "x": 507.33363151550293,
\r
1738 "y": 2198.479621887207,
\r
1739 "z": "457a744e.ed1b4c",
\r
1743 "id": "185d06d5.752689",
\r
1744 "type": "comment",
\r
1745 "name": "Prepare data for allotted-resource addition to MDSAL",
\r
1746 "info": "This will add to allotted-resource which is present inside service.",
\r
1748 "x": 606.166971206665,
\r
1749 "y": 2108.4795739650726,
\r
1750 "z": "457a744e.ed1b4c",
\r
1754 "id": "5da46f5f.98698",
\r
1755 "type": "comment",
\r
1756 "name": "Add to allotted-resources in mdsal",
\r
1759 "x": 547.7467975616455,
\r
1760 "y": 2075.8928756713867,
\r
1761 "z": "457a744e.ed1b4c",
\r
1765 "id": "2c5393b4.18384c",
\r
1767 "name": "update AAI allotted-resource",
\r
1768 "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.service-information.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=\"Active\" />\n",
\r
1771 "x": 550.2229747772217,
\r
1772 "y": 2516.209878921509,
\r
1773 "z": "457a744e.ed1b4c",
\r
1776 "e30487d9.fc40e8",
\r
1782 "id": "43e51eef.5c25b",
\r
1783 "type": "execute",
\r
1784 "name": "execute RestApiCallNode getPath from OOF",
\r
1785 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.oof-getpath.templatefile`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.restapi.connection-oof-url`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.oof.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.oof.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"oof\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
\r
1788 "x": 1358.9729347229004,
\r
1789 "y": 2078.7095308303833,
\r
1790 "z": "457a744e.ed1b4c",
\r
1793 "84ee042e.6dc228",
\r
1799 "id": "84ee042e.6dc228",
\r
1800 "type": "success",
\r
1801 "name": "success",
\r
1802 "xml": "<outcome value='success'>\n",
\r
1805 "x": 1598.9730758666992,
\r
1806 "y": 2102.709500312805,
\r
1807 "z": "457a744e.ed1b4c",
\r
1815 "id": "b48e311d.c6bea",
\r
1816 "type": "returnFailure",
\r
1817 "name": "return failure",
\r
1818 "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 OOF api\" />\n",
\r
1820 "x": 1737.9731101989746,
\r
1821 "y": 2051.7095918655396,
\r
1822 "z": "457a744e.ed1b4c",
\r
1826 "id": "cb8b1fc5.da16f",
\r
1827 "type": "failure",
\r
1828 "name": "failure",
\r
1829 "xml": "<outcome value='failure'>\n",
\r
1832 "x": 1597.9728622436523,
\r
1833 "y": 2051.7095909118652,
\r
1834 "z": "457a744e.ed1b4c",
\r
1842 "id": "916454e5.0a4a68",
\r
1843 "type": "comment",
\r
1844 "name": "Get VPNs from OOF",
\r
1847 "x": 1330.476734161377,
\r
1848 "y": 2034.7135305404663,
\r
1849 "z": "457a744e.ed1b4c",
\r
1853 "id": "402ffb02.0bfaf4",
\r
1855 "name": "for vidx..oof.vpns_length[]",
\r
1856 "xml": "<for index='vidx' start='0' end='`$oof.vpns_length`' >",
\r
1859 "x": 1298.9727783203125,
\r
1860 "y": 2160.959259033203,
\r
1861 "z": "457a744e.ed1b4c",
\r
1869 "id": "e2733493.b8ec78",
\r
1870 "type": "comment",
\r
1871 "name": "Loop through VPN and configure them",
\r
1874 "x": 1330.4731063842773,
\r
1875 "y": 2284.4596366882324,
\r
1876 "z": "457a744e.ed1b4c",
\r
1880 "id": "d50ba090.29ed",
\r
1881 "type": "switchNode",
\r
1882 "name": "switch name",
\r
1883 "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'name'`\">\n \n",
\r
1886 "x": 2538.7569580078125,
\r
1887 "y": 1632.5766906738281,
\r
1888 "z": "457a744e.ed1b4c",
\r
1896 "id": "d52279cb.ede198",
\r
1897 "type": "outcomeTrue",
\r
1899 "xml": "<outcome value='true'>\n",
\r
1902 "x": 2727.7569274902344,
\r
1903 "y": 1632.5766758918762,
\r
1904 "z": "457a744e.ed1b4c",
\r
1912 "id": "cebd51a0.93918",
\r
1914 "name": "set etht-svc-name & bandwidth-profile-name",
\r
1915 "xml": "<set>\n<parameter name='ietf-etht-instance0' value='ietf-eth-tran-service:etht-svc.etht-svc-instances[0].' />\n<parameter name='ietf-bw-profile0' value='ietf-eth-tran-service:etht-svc.globals.etht-svc-bandwidth-profiles[0].' />\n<parameter name='ietf-etht-svc-name' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-name'`\" value='`$ietf-etht-svc-name`' />\n<parameter name=\"`$ietf-bw-profile0 + 'bandwidth-profile-name'`\" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[0].ingress-egress-bandwidth-profile-name'`\" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[1].ingress-egress-bandwidth-profile-name'`\" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />",
\r
1917 "x": 2968.7572441101074,
\r
1918 "y": 1632.176730632782,
\r
1919 "z": "457a744e.ed1b4c",
\r
1923 "id": "66d0e4de.2681dc",
\r
1924 "type": "switchNode",
\r
1925 "name": "switch description",
\r
1926 "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'description'`\">\n",
\r
1929 "x": 2551.596836090088,
\r
1930 "y": 1667.5767855644226,
\r
1931 "z": "457a744e.ed1b4c",
\r
1939 "id": "1de9071b.f26c59",
\r
1940 "type": "outcomeTrue",
\r
1942 "xml": "<outcome value='true'>\n",
\r
1945 "x": 2726.5969009399414,
\r
1946 "y": 1669.5767712593079,
\r
1947 "z": "457a744e.ed1b4c",
\r
1955 "id": "159dd4c7.a1cdeb",
\r
1957 "name": "set etht-svc-descr",
\r
1958 "xml": "<set>\n<parameter name='prop.global.sotn.etht-svc-descr' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
\r
1960 "x": 2882.93021774292,
\r
1961 "y": 1667.0378460884094,
\r
1962 "z": "457a744e.ed1b4c",
\r
1966 "id": "eec873e9.819a7",
\r
1967 "type": "switchNode",
\r
1968 "name": "switch tenantId",
\r
1969 "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'tenantId'`\">\n",
\r
1972 "x": 2546.9790992736816,
\r
1973 "y": 1700.9101758003235,
\r
1974 "z": "457a744e.ed1b4c",
\r
1982 "id": "13291279.e6fefe",
\r
1983 "type": "outcomeTrue",
\r
1985 "xml": "<outcome value='true'>\n",
\r
1988 "x": 2724.979103088379,
\r
1989 "y": 1704.910053730011,
\r
1990 "z": "457a744e.ed1b4c",
\r
1998 "id": "9bcc7bab.93fce8",
\r
2000 "name": "set tenantId",
\r
2001 "xml": "<set>\n<parameter name='prop.global.sotn.tenantId' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
\r
2003 "x": 2862.979290008545,
\r
2004 "y": 1701.5100293159485,
\r
2005 "z": "457a744e.ed1b4c",
\r
2009 "id": "d21f1d66.9335f",
\r
2010 "type": "switchNode",
\r
2011 "name": "switch cir",
\r
2012 "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'cir'`\">\n",
\r
2015 "x": 2529.8186988830566,
\r
2016 "y": 1773.9101309776306,
\r
2017 "z": "457a744e.ed1b4c",
\r
2025 "id": "5d9c8a66.558544",
\r
2026 "type": "outcomeTrue",
\r
2028 "xml": "<outcome value='true'>\n",
\r
2031 "x": 2724.81876373291,
\r
2032 "y": 1774.9101309776306,
\r
2033 "z": "457a744e.ed1b4c",
\r
2041 "id": "e6e553ba.8c38f",
\r
2043 "name": "set cir",
\r
2044 "xml": "<set>\n<parameter name=\"`$ietf-bw-profile0 + 'CIR'`\" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
\r
2046 "x": 2849.1522636413574,
\r
2047 "y": 1773.3712058067322,
\r
2048 "z": "457a744e.ed1b4c",
\r
2052 "id": "1068d706.4b4119",
\r
2053 "type": "switchNode",
\r
2054 "name": "switch vpnType",
\r
2055 "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'vpnType'`\">\n",
\r
2058 "x": 2544.1269874572754,
\r
2059 "y": 1736.6878409385681,
\r
2060 "z": "457a744e.ed1b4c",
\r
2068 "id": "eafe0a88.2abeb8",
\r
2069 "type": "outcomeTrue",
\r
2071 "xml": "<outcome value='true'>\n",
\r
2074 "x": 2726.1271743774414,
\r
2075 "y": 1739.687825679779,
\r
2076 "z": "457a744e.ed1b4c",
\r
2084 "id": "b55361c7.d529b",
\r
2086 "name": "set vpnType",
\r
2087 "xml": "<set>\n<parameter name='prop.global.sotn.vpnType' value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
\r
2089 "x": 2865.4609375,
\r
2090 "y": 1736.1490783691406,
\r
2091 "z": "457a744e.ed1b4c",
\r
2095 "id": "bee803df.af903",
\r
2096 "type": "switchNode",
\r
2097 "name": "switch eir",
\r
2098 "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'eir'`\">\n",
\r
2101 "x": 2525.109043121338,
\r
2102 "y": 1807.6080384254456,
\r
2103 "z": "457a744e.ed1b4c",
\r
2111 "id": "5335406d.46439",
\r
2112 "type": "outcomeTrue",
\r
2114 "xml": "<outcome value='true'>\n",
\r
2117 "x": 2725.10929107666,
\r
2118 "y": 1810.6079773902893,
\r
2119 "z": "457a744e.ed1b4c",
\r
2127 "id": "2c7f791a.111c46",
\r
2129 "name": "set eir",
\r
2130 "xml": "<set>\n<parameter name=\"`$ietf-bw-profile0 + 'EIR'`\" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
\r
2132 "x": 2848.44291305542,
\r
2133 "y": 1810.0690369606018,
\r
2134 "z": "457a744e.ed1b4c",
\r
2138 "id": "45da451c.99e69c",
\r
2139 "type": "switchNode",
\r
2140 "name": "switch colorAware",
\r
2141 "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'colorAware'`\">\n",
\r
2144 "x": 2550.1096534729004,
\r
2145 "y": 1841.6079173088074,
\r
2146 "z": "457a744e.ed1b4c",
\r
2154 "id": "449dd2b2.97f33c",
\r
2155 "type": "outcomeTrue",
\r
2157 "xml": "<outcome value='true'>\n",
\r
2160 "x": 2721.109474182129,
\r
2161 "y": 1847.607855796814,
\r
2162 "z": "457a744e.ed1b4c",
\r
2170 "id": "169755c8.79e75a",
\r
2172 "name": "set colorAware",
\r
2173 "xml": "<set>\n<parameter name=\"`$ietf-bw-profile0 + 'color-aware'`\" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
\r
2175 "x": 2869.4427909851074,
\r
2176 "y": 1848.0690684318542,
\r
2177 "z": "457a744e.ed1b4c",
\r
2181 "id": "c3234be0.466328",
\r
2182 "type": "switchNode",
\r
2183 "name": "switch couplingFlag",
\r
2184 "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'couplingFlag'`\">\n",
\r
2187 "x": 2552.109592437744,
\r
2188 "y": 1877.607979297638,
\r
2189 "z": "457a744e.ed1b4c",
\r
2197 "id": "b42d9413.a57f98",
\r
2198 "type": "outcomeTrue",
\r
2200 "xml": "<outcome value='true'>\n",
\r
2203 "x": 2724.109474182129,
\r
2204 "y": 1886.6079487800598,
\r
2205 "z": "457a744e.ed1b4c",
\r
2213 "id": "8aa66130.b6da6",
\r
2215 "name": "set couplingFlag",
\r
2216 "xml": "<set>\n<parameter name=\"`$ietf-bw-profile0 + 'coupling-flag'`\" value='`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].value`' />\n",
\r
2218 "x": 2877.4427909851074,
\r
2219 "y": 1887.0690693855286,
\r
2220 "z": "457a744e.ed1b4c",
\r
2224 "id": "fb9249ce.b8b3a8",
\r
2225 "type": "comment",
\r
2226 "name": "Check if other EP exists in SOTNConnectionResource",
\r
2230 "y": 1485.2433166503906,
\r
2231 "z": "457a744e.ed1b4c",
\r
2235 "id": "bd5b1d98.86a9b",
\r
2236 "type": "comment",
\r
2237 "name": "Get other global parameters from network",
\r
2240 "x": 2604.812255859375,
\r
2241 "y": 1571.2433166503906,
\r
2242 "z": "457a744e.ed1b4c",
\r
2246 "id": "14b60e62.9552e2",
\r
2247 "type": "switchNode",
\r
2248 "name": "switch access-provider-id",
\r
2249 "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-provider-id'`\">",
\r
2252 "x": 1567.5347309112549,
\r
2253 "y": 1843.6878457069397,
\r
2254 "z": "457a744e.ed1b4c",
\r
2262 "id": "6fdddbf2.363454",
\r
2263 "type": "outcomeTrue",
\r
2265 "xml": "<outcome value='true'>\n",
\r
2268 "x": 1754.5347309112549,
\r
2269 "y": 1839.6878457069397,
\r
2270 "z": "457a744e.ed1b4c",
\r
2278 "id": "74c7de35.e3e86",
\r
2280 "name": "set access-provider-id",
\r
2281 "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-provider-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
\r
2283 "x": 1922.5347309112549,
\r
2284 "y": 1840.2878518104553,
\r
2285 "z": "457a744e.ed1b4c",
\r
2289 "id": "44bf4a7c.708044",
\r
2290 "type": "switchNode",
\r
2291 "name": "switch access-client-id",
\r
2292 "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-client-id'`\">",
\r
2295 "x": 1558.534746170044,
\r
2296 "y": 1886.6982941627502,
\r
2297 "z": "457a744e.ed1b4c",
\r
2305 "id": "563fe70a.3d75e8",
\r
2306 "type": "outcomeTrue",
\r
2308 "xml": "<outcome value='true'>\n",
\r
2311 "x": 1745.534746170044,
\r
2312 "y": 1882.6982941627502,
\r
2313 "z": "457a744e.ed1b4c",
\r
2321 "id": "ce19687f.748618",
\r
2323 "name": "set access-client-id",
\r
2324 "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-client-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
\r
2326 "x": 1913.534746170044,
\r
2327 "y": 1883.2983002662659,
\r
2328 "z": "457a744e.ed1b4c",
\r
2332 "id": "b84af987.adba08",
\r
2333 "type": "switchNode",
\r
2334 "name": "switch access-topology-id",
\r
2335 "xml": "<switch test=\"`$tmp.ep.parameters.param[$idx].name == 'access-topology-id'`\">",
\r
2338 "x": 1571.5346908569336,
\r
2339 "y": 1928.6983251571655,
\r
2340 "z": "457a744e.ed1b4c",
\r
2348 "id": "59f4f928.e35438",
\r
2349 "type": "outcomeTrue",
\r
2351 "xml": "<outcome value='true'>\n",
\r
2354 "x": 1758.5346908569336,
\r
2355 "y": 1924.6983251571655,
\r
2356 "z": "457a744e.ed1b4c",
\r
2364 "id": "561aa1a7.127",
\r
2366 "name": "set access-topology-id",
\r
2367 "xml": "<set>\n<parameter name='prop.remote.connection-attachment.access-topology-id' value='`$tmp.ep.parameters.param[$idx].value`' />\n",
\r
2369 "x": 1926.5346908569336,
\r
2370 "y": 1925.2983312606812,
\r
2371 "z": "457a744e.ed1b4c",
\r
2375 "id": "6b7692da.e3386c",
\r
2377 "name": "block : atomic",
\r
2378 "xml": "<block atomic=\"true\">",
\r
2383 "z": "457a744e.ed1b4c",
\r
2386 "10a67ef2.fe14c1",
\r
2387 "a7c30844.d5a778",
\r
2390 "a76f6a40.d4cee8",
\r
2393 "e27ff4ee.65f258",
\r
2394 "1d2e0089.80d0ff",
\r
2395 "961fa84a.89d648",
\r
2396 "3cad4115.c1792e",
\r
2397 "64d85461.e5001c",
\r
2403 "id": "c28d378e.41d1d8",
\r
2405 "name": "set controller data",
\r
2406 "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",
\r
2410 "z": "457a744e.ed1b4c",
\r
2414 "id": "e27ff4ee.65f258",
\r
2415 "type": "get-resource",
\r
2416 "name": "get-resource esr-thirdparty-sdnc",
\r
2417 "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",
\r
2422 "z": "457a744e.ed1b4c",
\r
2425 "a1b1b4fc.a93fb8",
\r
2432 "id": "a1b1b4fc.a93fb8",
\r
2433 "type": "success",
\r
2434 "name": "success",
\r
2435 "xml": "<outcome value='success'>\n",
\r
2440 "z": "457a744e.ed1b4c",
\r
2448 "id": "74526f9.33f9b9",
\r
2449 "type": "not-found",
\r
2450 "name": "not-found",
\r
2451 "xml": "<outcome value='not-found'>\n",
\r
2456 "z": "457a744e.ed1b4c",
\r
2464 "id": "cec138d1.5a00d8",
\r
2467 "xml": "<outcome value='Other'>\n",
\r
2472 "z": "457a744e.ed1b4c",
\r
2480 "id": "6e8b6c66.c5e0f4",
\r
2481 "type": "returnFailure",
\r
2482 "name": "return failure",
\r
2483 "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",
\r
2487 "z": "457a744e.ed1b4c",
\r
2491 "id": "681da62f.282d18",
\r
2492 "type": "returnFailure",
\r
2493 "name": "return failure",
\r
2494 "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",
\r
2498 "z": "457a744e.ed1b4c",
\r
2502 "id": "5247b131.16685",
\r
2503 "type": "get-resource",
\r
2504 "name": "get-resource pnf",
\r
2505 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $oof.vpn.access-node-id \n\t\tAND depth = '0'\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n\n",
\r
2510 "z": "457a744e.ed1b4c",
\r
2520 "id": "b0e582b1.978d3",
\r
2521 "type": "success",
\r
2522 "name": "success",
\r
2523 "xml": "<outcome value='success'>\n",
\r
2528 "z": "457a744e.ed1b4c",
\r
2536 "id": "b63f814e.25c35",
\r
2537 "type": "not-found",
\r
2538 "name": "not-found",
\r
2539 "xml": "<outcome value='not-found'>\n",
\r
2544 "z": "457a744e.ed1b4c",
\r
2552 "id": "ba9909ab.268d18",
\r
2555 "xml": "<outcome value='Other'>\n",
\r
2560 "z": "457a744e.ed1b4c",
\r
2568 "id": "bc035593.0004d8",
\r
2569 "type": "returnFailure",
\r
2570 "name": "return failure",
\r
2571 "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",
\r
2575 "z": "457a744e.ed1b4c",
\r
2579 "id": "b490ab94.5b0298",
\r
2580 "type": "returnFailure",
\r
2581 "name": "return failure",
\r
2582 "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",
\r
2586 "z": "457a744e.ed1b4c",
\r
2590 "id": "b2fced81.55aa5",
\r
2592 "name": "set tmp.thirdparty-sdnc-id",
\r
2593 "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
\r
2597 "z": "457a744e.ed1b4c",
\r
2601 "id": "ba207179.afcc1",
\r
2602 "type": "comment",
\r
2603 "name": "get domain controller information",
\r
2608 "z": "457a744e.ed1b4c",
\r
2612 "id": "1d2e0089.80d0ff",
\r
2614 "name": "set oof.vpn",
\r
2615 "xml": "<set>\n<parameter name='oof.vpn.' value='`$oof.vpns[$vidx].`' />",
\r
2619 "z": "457a744e.ed1b4c",
\r
2623 "id": "a7c30844.d5a778",
\r
2625 "name": "save VPN resource in AAI",
\r
2626 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n key='vpn-binding.vpn-id = $tmp.vpnName' >\n<parameter name='vpn-id' value='`$tmp.vpnName`' />\n<parameter name='vpn-name' value='`$tmp.vpnName`' />\n<parameter name='access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='src-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='src-access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='dst-access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='dst-access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n<parameter name='vpn-type' value='`$prop.global.sotn.vpnType`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />",
\r
2631 "z": "457a744e.ed1b4c",
\r
2637 "id": "7ac9bf5f.eb2bb",
\r
2639 "name": "set tmp.vpnName",
\r
2640 "xml": "<set>\n<parameter name='tmp.vpnName' value=\"`$oof.vpn.access-node-id + '-' + $ietf-etht-svc-name`\" />",
\r
2644 "z": "457a744e.ed1b4c",
\r
2648 "id": "ecc36fcf.c4875",
\r
2650 "name": "save connectivity relationship in AAI",
\r
2651 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"connectivity\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/connectivities/connectivity/' + $mdsal-psd.service-data.networks.network[0].network-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"connectivity.connectivity-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$mdsal-psd.service-data.networks.network[0].network-id`\" />",
\r
2656 "z": "457a744e.ed1b4c",
\r
2662 "id": "10a67ef2.fe14c1",
\r
2664 "name": "set src-ltpId dst-ltpId",
\r
2665 "xml": "<set>\n<parameter name='src-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.src-access-ltp-id`\" />\n<parameter name='dst-ltpId' value=\"`'nodeId-' + $oof.vpn.access-node-id + '-ltpId-' + $oof.vpn.dst-access-ltp-id`\" />",
\r
2669 "z": "457a744e.ed1b4c",
\r
2673 "id": "a76f6a40.d4cee8",
\r
2675 "name": "save srcLTP relationship in AAI",
\r
2676 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $src-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n",
\r
2681 "z": "457a744e.ed1b4c",
\r
2687 "id": "edafd0b0.6224d",
\r
2689 "name": "save dstLTP relationship in AAI",
\r
2690 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding:relationship-list' \n key='vpn-binding.vpn-id = $tmp.vpnName' \n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $oof.vpn.access-node-id + '/p-interfaces/p-interface/' + $dst-ltpId`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$dst-ltpId`\" />",
\r
2695 "z": "457a744e.ed1b4c",
\r
2701 "id": "b571fb6b.8ab608",
\r
2702 "type": "execute",
\r
2703 "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
\r
2704 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\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='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
\r
2707 "x": 717.0038146972656,
\r
2708 "y": 981.458776473999,
\r
2709 "z": "457a744e.ed1b4c",
\r
2718 "id": "b52dba2d.a71bc8",
\r
2719 "type": "execute",
\r
2720 "name": "execute RestApiCallNode - get-resource parent service data",
\r
2721 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\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='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n",
\r
2724 "x": 644.0039672851562,
\r
2725 "y": 1208.4589395523071,
\r
2726 "z": "457a744e.ed1b4c",
\r
2735 "id": "76fbe2f6.cb133c",
\r
2736 "type": "execute",
\r
2737 "name": "get parent-service-data url",
\r
2738 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
\r
2741 "x": 544.0038757324219,
\r
2742 "y": 1171.4587726593018,
\r
2743 "z": "457a744e.ed1b4c",
\r
2749 "id": "ef83619e.fcadf",
\r
2750 "type": "execute",
\r
2751 "name": "generate tmp.ar-other-url-connection",
\r
2752 "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-other-url-connection\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.provided-ar.allotted-resource-id`\"/>\n \n\n",
\r
2755 "x": 1958.000228881836,
\r
2756 "y": 1327.7883338928223,
\r
2757 "z": "457a744e.ed1b4c",
\r
2763 "id": "70f5ae0d.ee9ea",
\r
2764 "type": "execute",
\r
2765 "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
\r
2766 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-other-url-connection`' />\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='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-other-ar\" />\n\n",
\r
2769 "x": 2095.0008697509766,
\r
2770 "y": 1370.2881984710693,
\r
2771 "z": "457a744e.ed1b4c",
\r
2774 "a5795c00.0454b8",
\r
2780 "id": "b5dd8e8d.014ad",
\r
2783 "xml": "<block>\n",
\r
2784 "atomic": "false",
\r
2787 "x": 1720.0001487731934,
\r
2788 "y": 2093.4549837112427,
\r
2789 "z": "457a744e.ed1b4c",
\r
2795 "id": "2222673c.9be3c8",
\r
2797 "name": "block : atomic",
\r
2798 "xml": "<block atomic=\"true\">",
\r
2801 "x": 1096.9687614440918,
\r
2802 "y": 2118.4551677703857,
\r
2803 "z": "457a744e.ed1b4c",
\r
2812 "id": "b4436494.1a02b8",
\r
2813 "type": "outcome",
\r
2814 "name": "outcome PendingDelete",
\r
2815 "xml": "<outcome value='PendingDelete'>\n",
\r
2818 "x": 2171.031219482422,
\r
2819 "y": 933.486162185669,
\r
2820 "z": "457a744e.ed1b4c",
\r
2828 "id": "7b132c2c.5ce604",
\r
2831 "xml": "<block>\n",
\r
2832 "atomic": "false",
\r
2835 "x": 2355.0312309265137,
\r
2836 "y": 929.486162185669,
\r
2837 "z": "457a744e.ed1b4c",
\r
2843 "id": "3cad4115.c1792e",
\r
2845 "name": "set attachment_param",
\r
2846 "xml": "<set>\n<parameter name=\"`$ietf-etht-instance0 + 'access-provider-id'`\" value='`$oof.vpn.access-provider-id`' />\n<parameter name=\"`$ietf-etht-instance0 + 'access-client-id'`\" value='`$oof.vpn.access-client-id`' />\n<parameter name=\"`$ietf-etht-instance0 + 'access-topology-id'`\" value='`$oof.vpn.access-topology-id`' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[0].access-node-id'`\" value='`$oof.vpn.access-node-id`' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[0].access-ltp-id'`\" value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[1].access-node-id'`\" value='`$oof.vpn.access-node-id`' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[1].access-ltp-id'`\" value='`$oof.vpn.dst-access-ltp-id`' />\n",
\r
2850 "z": "457a744e.ed1b4c",
\r
2854 "id": "961fa84a.89d648",
\r
2856 "name": "set sotn_value",
\r
2857 "xml": "<set>\n<parameter name=\"`$ietf-bw-profile0 + 'bandwidth-profile-type'`\" value='ietf-eth-tran-types:mef-10-bwp' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-type'`\" value='ietf-eth-tran-types:p2p-svc' />\n<parameter name=\"`$ietf-etht-instance0 + 'admin-status'`\" value='ietf-te-types:tunnel-state-up' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[0].access-port-id'`\" value='0' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[0].service-classification-type'`\" value='ietf-eth-tran-types:port-classification' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[1].access-port-id'`\" value='1' />\n<parameter name=\"`$ietf-etht-instance0 + 'etht-svc-access-ports[1].service-classification-type'`\" value='ietf-eth-tran-types:port-classification' />",
\r
2861 "z": "457a744e.ed1b4c",
\r
2865 "id": "64d85461.e5001c",
\r
2866 "type": "execute",
\r
2867 "name": "execute RestApiCallNode Get token",
\r
2868 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
\r
2873 "z": "457a744e.ed1b4c",
\r
2882 "id": "a0d2cca5.2d5be",
\r
2883 "type": "success",
\r
2884 "name": "success",
\r
2885 "xml": "<outcome value='success'>\n",
\r
2890 "z": "457a744e.ed1b4c",
\r
2898 "id": "c52b8c6d.ecc5c",
\r
2899 "type": "failure",
\r
2900 "name": "failure",
\r
2901 "xml": "<outcome value='failure'>\n",
\r
2906 "z": "457a744e.ed1b4c",
\r
2914 "id": "f8066f4a.4c47c",
\r
2915 "type": "returnFailure",
\r
2916 "name": "return failure",
\r
2917 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error executing get token rest api\" />\n",
\r
2921 "z": "457a744e.ed1b4c",
\r
2925 "id": "3e07440b.43da4c",
\r
2927 "name": "set token-id",
\r
2928 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
\r
2932 "z": "457a744e.ed1b4c",
\r
2936 "id": "50328916.399a68",
\r
2937 "type": "execute",
\r
2938 "name": "execute RestconfApiCallNode Create ethernet Service with token",
\r
2939 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\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=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/sdnc/restapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
\r
2944 "z": "457a744e.ed1b4c",
\r
2953 "id": "aefb806d.da2a4",
\r
2954 "type": "success",
\r
2955 "name": "success",
\r
2956 "xml": "<outcome value='success'>\n",
\r
2961 "z": "457a744e.ed1b4c",
\r
2969 "id": "8e77bda1.dcd9a",
\r
2971 "name": "block : atomic",
\r
2972 "xml": "<block atomic=\"true\">",
\r
2978 "z": "457a744e.ed1b4c",
\r
2984 "id": "23ed7381.faa5dc",
\r
2985 "type": "returnFailure",
\r
2986 "name": "return failure",
\r
2987 "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",
\r
2991 "z": "457a744e.ed1b4c",
\r
2995 "id": "1cddc506.88b81b",
\r
2996 "type": "failure",
\r
2997 "name": "failure",
\r
2998 "xml": "<outcome value='failure'>\n",
\r
3003 "z": "457a744e.ed1b4c",
\r
3011 "id": "62b19acd.4aec84",
\r
3012 "type": "switchNode",
\r
3013 "name": "switch prop.sdncRestApi.token_id",
\r
3014 "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n",
\r
3019 "z": "457a744e.ed1b4c",
\r
3022 "ab1d58b3.091298",
\r
3028 "id": "ab1d58b3.091298",
\r
3031 "xml": "<outcome value=''>\n",
\r
3034 "x": 1946.3438301086426,
\r
3035 "y": 2560.121898651123,
\r
3036 "z": "457a744e.ed1b4c",
\r
3044 "id": "6b742a39.c27114",
\r
3047 "xml": "<outcome value='Other'>\n",
\r
3052 "z": "457a744e.ed1b4c",
\r
3060 "id": "c3954e01.62cf4",
\r
3061 "type": "execute",
\r
3062 "name": "execute RestconfApiCallNode Create ethernet Service without token",
\r
3063 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restconfapicall.RestconfApiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc'`\" />\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=\"patch\"/>\n<parameter name='dirPath' value=\"/opt/sdnc/restapi/yang\" />\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
\r
3068 "z": "457a744e.ed1b4c",
\r
3071 "1cddc506.88b81b",
\r
3077 "id": "47c68bcd.5a1f24",
\r
3078 "type": "comment",
\r
3079 "name": "save vpn and its relation to AAI",
\r
3084 "z": "457a744e.ed1b4c",
\r