3 "id": "ea193d8f.e165e",
\r
9 "z": "5c3e2071.30fcf",
\r
17 "id": "45143e5e.12cef",
\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": 243.2856903076172,
\r
26 "y": 119.23810863494873,
\r
27 "z": "5c3e2071.30fcf",
\r
35 "id": "22fb039d.719e1c",
\r
37 "name": "method sotn-vf-operation-uni-activate",
\r
38 "xml": "<method rpc='sotn-vf-operation-uni-activate' mode='sync'>\n",
\r
41 "x": 246.42861938476562,
\r
42 "y": 204.00003242492676,
\r
43 "z": "5c3e2071.30fcf",
\r
51 "id": "8dca40ca.b6cbc8",
\r
52 "type": "switchNode",
\r
53 "name": "switch vf-modules.vf-module_length",
\r
54 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
\r
57 "x": 718.9959564208984,
\r
58 "y": 384.99998915195465,
\r
59 "z": "5c3e2071.30fcf",
\r
69 "id": "bbe79441.cda0b",
\r
71 "name": "block : atomic",
\r
72 "xml": "<block atomic=\"true\">",
\r
75 "x": 337.6626205444336,
\r
76 "y": 489.66670763492584,
\r
77 "z": "5c3e2071.30fcf",
\r
92 "id": "91b62864.f184c8",
\r
94 "name": "for each vnf",
\r
95 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
\r
98 "x": 684.0273170471191,
\r
99 "y": 255.269144654274,
\r
100 "z": "5c3e2071.30fcf",
\r
108 "id": "b28368bd.88b17",
\r
109 "type": "switchNode",
\r
110 "name": "switch vnf_length",
\r
111 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
\r
114 "x": 688.9959716796875,
\r
115 "y": 194.00001394748688,
\r
116 "z": "5c3e2071.30fcf",
\r
124 "id": "746b74df.fbc48c",
\r
127 "xml": "<outcome value=''>\n",
\r
130 "x": 868.9959526062012,
\r
131 "y": 193.0000034570694,
\r
132 "z": "5c3e2071.30fcf",
\r
140 "id": "62ebea71.fce5b4",
\r
141 "type": "returnFailure",
\r
142 "name": "return failure",
\r
143 "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
\r
145 "x": 1018.4246788024902,
\r
146 "y": 194.14292109012604,
\r
147 "z": "5c3e2071.30fcf",
\r
151 "id": "3d5e06d8.9791c2",
\r
152 "type": "switchNode",
\r
153 "name": "switch this vnf-id == input vnf-id",
\r
154 "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\"> \n",
\r
157 "x": 906.9959678649902,
\r
158 "y": 256.00000965595245,
\r
159 "z": "5c3e2071.30fcf",
\r
167 "id": "fccff52.827ec08",
\r
168 "type": "outcomeTrue",
\r
170 "xml": "<outcome value='true'>\n",
\r
173 "x": 1121.9959526062012,
\r
174 "y": 254.0000034570694,
\r
175 "z": "5c3e2071.30fcf",
\r
183 "id": "46df70e6.cbb32",
\r
185 "name": "set vnf-index",
\r
186 "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
\r
188 "x": 1462.9959716796875,
\r
190 "z": "5c3e2071.30fcf",
\r
194 "id": "5f34a2a5.ce0fbc",
\r
197 "xml": "<outcome value=''>\n",
\r
200 "x": 978.9959716796875,
\r
202 "z": "5c3e2071.30fcf",
\r
210 "id": "66f88853.0801a8",
\r
213 "xml": "<outcome value='0'>\n",
\r
216 "x": 975.9959716796875,
\r
218 "z": "5c3e2071.30fcf",
\r
226 "id": "b65ac05a.92d3b8",
\r
227 "type": "returnFailure",
\r
228 "name": "return failure",
\r
229 "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
\r
231 "x": 1147.9959716796875,
\r
233 "z": "5c3e2071.30fcf",
\r
237 "id": "37779f9b.3e84f8",
\r
240 "xml": "<outcome value='Other'>\n",
\r
243 "x": 940.9959487915039,
\r
244 "y": 479.9999986886978,
\r
245 "z": "5c3e2071.30fcf",
\r
253 "id": "b4807db5.ce3f18",
\r
255 "name": "set vf-module_length",
\r
256 "xml": "<set>\n<parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n",
\r
258 "x": 1294.995964050293,
\r
259 "y": 478.0000126361847,
\r
260 "z": "5c3e2071.30fcf",
\r
264 "id": "8619e619.b5b6f",
\r
266 "name": "block : atomic",
\r
267 "xml": "<block atomic=\"true\">",
\r
270 "x": 1101.995994567871,
\r
271 "y": 476.99999010562897,
\r
272 "z": "5c3e2071.30fcf",
\r
281 "id": "b7112b63.fa666",
\r
283 "name": "for each existing vf-index",
\r
284 "xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",
\r
287 "x": 1313.9959335327148,
\r
288 "y": 530.9999891519547,
\r
289 "z": "5c3e2071.30fcf",
\r
297 "id": "207d79b0.f0396e",
\r
298 "type": "switchNode",
\r
299 "name": "switch vf-module-id found",
\r
300 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",
\r
303 "x": 1556.995948791504,
\r
304 "y": 525.9999986886978,
\r
305 "z": "5c3e2071.30fcf",
\r
313 "id": "f2b976ec.55b34",
\r
314 "type": "outcomeTrue",
\r
316 "xml": "<outcome value='true'>\n",
\r
319 "x": 1754.9959774017334,
\r
320 "y": 513.000005364418,
\r
321 "z": "5c3e2071.30fcf",
\r
329 "id": "eab205c1.ee7e8",
\r
331 "name": "block : atomic",
\r
332 "xml": "<block atomic=\"true\">",
\r
335 "x": 1906.995948791504,
\r
336 "y": 514.9999986886978,
\r
337 "z": "5c3e2071.30fcf",
\r
347 "id": "7cce5705.9b51",
\r
349 "name": "set tmp.vidx and ctx.vnf-data",
\r
350 "xml": "<set>\n<parameter name='tmp.vidx' value='`$idx`' />\n<parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\n",
\r
352 "x": 2134.996063232422,
\r
353 "y": 457.0000025033951,
\r
354 "z": "5c3e2071.30fcf",
\r
358 "id": "b161a727.31db88",
\r
360 "name": "set vf-module-request-input.",
\r
361 "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\n\n",
\r
363 "x": 2138.996063232422,
\r
364 "y": 511.0000025033951,
\r
365 "z": "5c3e2071.30fcf",
\r
369 "id": "b0f3fc53.5db61",
\r
370 "type": "returnSuccess",
\r
371 "name": "return success",
\r
372 "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
374 "x": 612.9961547851562,
\r
375 "y": 1684.501220703125,
\r
376 "z": "5c3e2071.30fcf",
\r
380 "id": "8cc64f67.5de4c",
\r
382 "name": "call sotn-get-vf-module-uni-param",
\r
383 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-lanport-param' mode='sync' >\n",
\r
386 "x": 2169.45108795166,
\r
387 "y": 562.0104948282242,
\r
388 "z": "5c3e2071.30fcf",
\r
394 "id": "b5422f78.9d3e4",
\r
396 "name": "execute Properties",
\r
397 "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
400 "x": 698.9959564208984,
\r
401 "y": 324.5039049386978,
\r
402 "z": "5c3e2071.30fcf",
\r
408 "id": "fc0c6263.7f4b58",
\r
410 "name": "block : atomic",
\r
411 "xml": "<block atomic=\"true\">",
\r
416 "z": "5c3e2071.30fcf",
\r
425 "id": "868e2384.9bd088",
\r
427 "name": "set tmp.vnf-id",
\r
428 "xml": "<set>\n<parameter name='tmp.vnf-id' value='`$vf-module-topology-operation-input.vnf-information.vnf-id`' />\n",
\r
432 "z": "5c3e2071.30fcf",
\r
436 "id": "5950f717.b81e28",
\r
437 "type": "get-resource",
\r
438 "name": "get-resource generic-vnf",
\r
439 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"generic-vnf\" \n\t\tkey=\"'generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' \n\t\tAND depth = '0'\"\n pfx='tmp.aai.generic-vnf' local-only='false' >\n\n\n",
\r
444 "z": "5c3e2071.30fcf",
\r
452 "id": "8bfca5dd.ccec38",
\r
455 "xml": "<block>\n",
\r
461 "z": "5c3e2071.30fcf",
\r
470 "id": "cea6f99d.9fa3f8",
\r
472 "name": "for each relationship in gen-vnf",
\r
473 "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.aai.generic-vnf.relationship-list.relationship_length`' >\n",
\r
478 "z": "5c3e2071.30fcf",
\r
486 "id": "380b3b11.1fc39c",
\r
487 "type": "switchNode",
\r
488 "name": "switch related-to",
\r
489 "xml": "<switch test='`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].related-to`'>\n",
\r
494 "z": "5c3e2071.30fcf",
\r
502 "id": "6ce242f7.50a224",
\r
505 "xml": "<outcome value='uni'>\n",
\r
508 "x": 1448.285888671875,
\r
509 "y": 606.82177734375,
\r
510 "z": "5c3e2071.30fcf",
\r
518 "id": "8f0c299e.76aa68",
\r
520 "name": "block : atomic",
\r
521 "xml": "<block atomic=\"true\">",
\r
524 "x": 1623.117431640625,
\r
525 "y": 609.3402709960938,
\r
526 "z": "5c3e2071.30fcf",
\r
536 "id": "9cc6d571.b014d8",
\r
538 "name": "set tmp.unis.uni[].tpId",
\r
539 "xml": "<set>\n<parameter name='`tmp.unis.uni[$vidx].tpId`' value=\"`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].relationship-data[0].relationship-value`\" />\n\n",
\r
541 "x": 1840.117431640625,
\r
542 "y": 607.3402709960938,
\r
543 "z": "5c3e2071.30fcf",
\r
547 "id": "3fb86113.9bfd2e",
\r
548 "type": "switchNode",
\r
549 "name": "switch number of unis less than two",
\r
550 "xml": "<switch test='`$tmp.unis.uni_length < 2`' >\n",
\r
555 "z": "5c3e2071.30fcf",
\r
563 "id": "6807aab1.3361f4",
\r
564 "type": "returnSuccess",
\r
565 "name": "return success",
\r
566 "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\n",
\r
570 "z": "5c3e2071.30fcf",
\r
574 "id": "ca909120.1610f",
\r
575 "type": "outcomeTrue",
\r
577 "xml": "<outcome value='true'>\n",
\r
582 "z": "5c3e2071.30fcf",
\r
590 "id": "8d29ebb2.4924b",
\r
592 "name": "execute split tpId to get pnf-name",
\r
593 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`tmp.unis.uni[$vidx].tpId`'/>\n<parameter name=\"regex\" value=\"nodeId\"/>\n<parameter name=\"tmp.unis.uni[$vidx].pnf-name\" value=\"\"/>\n",
\r
598 "z": "5c3e2071.30fcf",
\r
607 "id": "5281d33f.6cf23c",
\r
610 "xml": "<outcome value='success'>\n",
\r
615 "z": "5c3e2071.30fcf",
\r
623 "id": "8df25e56.70ef2",
\r
626 "xml": "<outcome value='failure'>\n",
\r
631 "z": "5c3e2071.30fcf",
\r
639 "id": "98c7bac7.1f7b2",
\r
641 "name": "set ipAddress prefixLength",
\r
642 "xml": "<set>\n<parameter name='prop.lan.ip-address' value='`$ipandMask[0]`' />\n<parameter name='prop.lan.prefixLength' value='`$ipandMask[1]`' />",
\r
646 "z": "5c3e2071.30fcf",
\r
650 "id": "538dd561.19c994",
\r
651 "type": "returnFailure",
\r
652 "name": "return failure",
\r
653 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
\r
657 "z": "5c3e2071.30fcf",
\r
661 "id": "1b814ca6.da0c53",
\r
662 "type": "get-resource",
\r
663 "name": "get-resource pnf",
\r
664 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"'pnf.pnf-name = $tmp.unis.uni[$vidx].pnf-name'\n\t\tAND depth = '0'\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n\n<!--<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" -->\n<!--\t\tresource=\"generic-vnf\" -->\n<!--\t\tkey=\"'generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' -->\n<!--\t\tAND depth = '0'\"-->\n<!-- pfx='tmp.aai.generic-vnf' local-only='false' >-->",
\r
669 "z": "5c3e2071.30fcf",
\r
677 "id": "6d7469b.d065118",
\r
684 "x": 2168.88232421875,
\r
685 "y": 827.6556396484375,
\r
686 "z": "5c3e2071.30fcf",
\r
695 "id": "d8ebfcdc.d7e228",
\r
697 "name": "set node-id",
\r
698 "xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].node-id`' value=\"`$tmp.aai.pnf.pnf-id`\" />\n",
\r
702 "z": "5c3e2071.30fcf",
\r
706 "id": "e363b1ad.6cf518",
\r
708 "name": "for each relationship in pnf",
\r
709 "xml": "<for silentFailure='true' index='ridx' start='0' end='`$tmp.aai.pnf.relationship-list.relationship_length`' >\n",
\r
712 "x": 2360.882568359375,
\r
713 "y": 867.6597290039062,
\r
714 "z": "5c3e2071.30fcf",
\r
722 "id": "95c7940c.2b5948",
\r
723 "type": "switchNode",
\r
724 "name": "switch related-to",
\r
725 "xml": "<switch test='`$tmp.aai.src-pnf.relationship-list.relationship[$vidx].related-to`'>\n",
\r
728 "x": 2586.882568359375,
\r
729 "y": 867.6597290039062,
\r
730 "z": "5c3e2071.30fcf",
\r
739 "id": "af94fb8e.80dfb8",
\r
741 "name": "network-resource",
\r
742 "xml": "<outcome value='network-resource'>\n",
\r
747 "z": "5c3e2071.30fcf",
\r
755 "id": "127afd4b.34da43",
\r
757 "name": "block : atomic",
\r
758 "xml": "<block atomic=\"true\">",
\r
763 "z": "5c3e2071.30fcf",
\r
772 "id": "9a33ae38.4ad288",
\r
774 "name": "set network-id",
\r
775 "xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].network-id`' value=\"`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`\" />\n",
\r
779 "z": "5c3e2071.30fcf",
\r
783 "id": "b1e1b5aa.ff6b18",
\r
784 "type": "get-resource",
\r
785 "name": "get-resource network-resource",
\r
786 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"network-resource\" \n\t\tkey=\"'network-resource.network-id = $tmp.unis.uni[$vidx].network-id'\n\t\tAND depth = '0'\"\n pfx='tmp.aai.network-resource' local-only='false' >\n\n\n",
\r
791 "z": "5c3e2071.30fcf",
\r
799 "id": "7923986a.2dfdb",
\r
802 "xml": "<outcome value='success'>\n",
\r
807 "z": "5c3e2071.30fcf",
\r
815 "id": "e1de0e95.dce97",
\r
817 "name": "set network-id, topo-id, client-id, etc",
\r
818 "xml": "<set>\n<parameter name=\"`$tmp.unis.uni[$vidx].network-id`\" value=\"`$tmp.aai.network-resource.network-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].provider-id`\" value=\"`$tmp.aai.network-resource.provider-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].client-id`\" value=\"`$tmp.aai.network-resource.client-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].te-topo-id`\" value=\"`$tmp.aai.network-resource.te-topo-id`\" />\n<parameter name=\"`$tmp.unis.uni[$vidx].network-type`\" value=\"`$tmp.aai.network-resource.network-type`\" />\n\n\n",
\r
822 "z": "5c3e2071.30fcf",
\r
826 "id": "aeddedc2.f06158",
\r
828 "name": "call GENERIC-RESOURCE-API:sotn-get-otn-tunnel-path-from-oof",
\r
829 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-otn-tunnel-path-from-oof' mode='sync' >\n",
\r
834 "z": "5c3e2071.30fcf",
\r
840 "id": "a1776b53.b80d",
\r
842 "name": "thirdparty-controller",
\r
843 "xml": "<outcome value='thirdparty-controller'>\n",
\r
848 "z": "5c3e2071.30fcf",
\r
856 "id": "4c01f776.c87b7",
\r
858 "name": "block : atomic",
\r
859 "xml": "<block atomic=\"true\">",
\r
864 "z": "5c3e2071.30fcf",
\r
872 "id": "583e9b05.f6eef4",
\r
874 "name": "set thirdparty-sdnc-id",
\r
875 "xml": "<set>\n<parameter name='`$tmp.unis.uni[$vidx].thirdparty-sdnc-id`' value=\"`$tmp.aai.pnf.relationship-list.relationship[$ridx].relationship-data[0].relationship-value`\" />\n",
\r
879 "z": "5c3e2071.30fcf",
\r
883 "id": "d059a84d.8e506",
\r
885 "name": "when we reach here, we have 2 UNIs, so do ACTN operations",
\r
890 "z": "5c3e2071.30fcf",
\r
894 "id": "f2975c47.fb694",
\r
896 "name": "for vidx..unis.uni_length[]",
\r
897 "xml": "<for index='vidx' start='0' end='`$tmp.unis.uni_length`' >",
\r
902 "z": "5c3e2071.30fcf",
\r
910 "id": "3b0a5525.2ac102",
\r
912 "name": "set oof.vpn",
\r
913 "xml": "<set>\n<parameter name='oof.vpn.' value='`$tmp.unis.uni[$vidx].`' />",
\r
915 "x": 1089.0272216796875,
\r
916 "y": 1036.040771484375,
\r
917 "z": "5c3e2071.30fcf",
\r
921 "id": "29b92baa.41f5cc",
\r
923 "name": "set controller data",
\r
924 "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
926 "x": 1569.0272216796875,
\r
927 "y": 1149.0407409667969,
\r
928 "z": "5c3e2071.30fcf",
\r
932 "id": "82572a7a.757f1",
\r
935 "xml": "<outcome value='success'>\n",
\r
938 "x": 1399.0272216796875,
\r
939 "y": 1149.0407409667969,
\r
940 "z": "5c3e2071.30fcf",
\r
948 "id": "7ff0b8e4.d0edd",
\r
949 "type": "not-found",
\r
950 "name": "not-found",
\r
951 "xml": "<outcome value='not-found'>\n",
\r
954 "x": 1403.0272216796875,
\r
955 "y": 1189.0407409667969,
\r
956 "z": "5c3e2071.30fcf",
\r
964 "id": "bcaaab5e.f760b",
\r
967 "xml": "<outcome value='Other'>\n",
\r
970 "x": 1395.0272216796875,
\r
971 "y": 1229.0407409667969,
\r
972 "z": "5c3e2071.30fcf",
\r
980 "id": "d2605932.de72d8",
\r
981 "type": "returnFailure",
\r
982 "name": "return failure",
\r
983 "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
985 "x": 1553.0272216796875,
\r
986 "y": 1189.0407409667969,
\r
987 "z": "5c3e2071.30fcf",
\r
991 "id": "c5af9444.32cba8",
\r
992 "type": "returnFailure",
\r
993 "name": "return failure",
\r
994 "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
996 "x": 1553.0272216796875,
\r
997 "y": 1229.0407409667969,
\r
998 "z": "5c3e2071.30fcf",
\r
1002 "id": "dc15d354.485648",
\r
1003 "type": "success",
\r
1004 "name": "success",
\r
1005 "xml": "<outcome value='success'>\n",
\r
1008 "x": 1399.0272216796875,
\r
1009 "y": 1269.0407409667969,
\r
1010 "z": "5c3e2071.30fcf",
\r
1018 "id": "36cada17.d60606",
\r
1019 "type": "failure",
\r
1020 "name": "failure",
\r
1021 "xml": "<outcome value='failure'>\n",
\r
1024 "x": 1395.0272216796875,
\r
1025 "y": 1309.0407409667969,
\r
1026 "z": "5c3e2071.30fcf",
\r
1034 "id": "436f764c.14ed4",
\r
1035 "type": "returnFailure",
\r
1036 "name": "return failure",
\r
1037 "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
1039 "x": 1553.0272216796875,
\r
1040 "y": 1309.0407409667969,
\r
1041 "z": "5c3e2071.30fcf",
\r
1045 "id": "189365cc.5aa2da",
\r
1047 "name": "set token-id",
\r
1048 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
\r
1050 "x": 1549.5272216796875,
\r
1051 "y": 1269.0407409667969,
\r
1052 "z": "5c3e2071.30fcf",
\r
1056 "id": "bce6bff8.ae1f18",
\r
1057 "type": "comment",
\r
1058 "name": "Get controller info and send request",
\r
1061 "x": 1161.0272216796875,
\r
1062 "y": 1149.0407409667969,
\r
1063 "z": "5c3e2071.30fcf",
\r
1067 "id": "8c2f104c.2ab35",
\r
1068 "type": "get-resource",
\r
1069 "name": "get-resource esr-thirdparty-sdnc",
\r
1070 "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 = $oof.vpn.thirdparty-sdnc-id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
\r
1073 "x": 1153.0272216796875,
\r
1074 "y": 1189.0407409667969,
\r
1075 "z": "5c3e2071.30fcf",
\r
1085 "id": "e9d11d4a.ea432",
\r
1086 "type": "execute",
\r
1087 "name": "execute RestApiCallNode Get token",
\r
1088 "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
1091 "x": 1165.5272216796875,
\r
1092 "y": 1289.0407409667969,
\r
1093 "z": "5c3e2071.30fcf",
\r
1096 "dc15d354.485648",
\r
1102 "id": "81bac551.cc757",
\r
1103 "type": "comment",
\r
1104 "name": "call domain controller to create underlay OTN tunnel",
\r
1107 "x": 1214.5272216796875,
\r
1108 "y": 1374.49560546875,
\r
1109 "z": "5c3e2071.30fcf",
\r
1113 "id": "f9c270fa.7abd5",
\r
1115 "name": "call GENERIC-RESOURCE-API:sotn-create-otn-tunnel",
\r
1116 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-create-otn-tunnel' mode='sync' >\n",
\r
1119 "x": 1234.5272216796875,
\r
1120 "y": 1418.49560546875,
\r
1121 "z": "5c3e2071.30fcf",
\r
1127 "id": "de539d0a.26596",
\r
1129 "name": "block : atomic",
\r
1130 "xml": "<block atomic=\"true\">",
\r
1133 "x": 816.5272216796875,
\r
1134 "y": 1429.0407409667969,
\r
1135 "z": "5c3e2071.30fcf",
\r
1139 "3b0a5525.2ac102",
\r
1140 "2c3edd05.477cca",
\r
1141 "543dd31e.1a6c4c",
\r
1143 "ab256b41.e2d9b8",
\r
1149 "id": "641e0b16.a7aa44",
\r
1150 "type": "comment",
\r
1151 "name": "Loop through UNIs and configure domain controllers",
\r
1154 "x": 751.5003662109375,
\r
1155 "y": 1237.5003662109375,
\r
1156 "z": "5c3e2071.30fcf",
\r
1160 "id": "2c3edd05.477cca",
\r
1162 "name": "set sotn_value",
\r
1163 "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.globals.etht-svc-bandwidth-profiles[0].bandwidth-profile-type' value='ietf-eth-tran-types:mef-10-bwp' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-type' value='ietf-eth-tran-types:p2p-svc' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].admin-status' value='ietf-te-types:tunnel-state-up' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-port-id' value='0' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].service-classification-type' value='ietf-eth-tran-types:port-classification' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-port-id' value='1' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].service-classification-type' value='ietf-eth-tran-types:port-classification' />",
\r
1165 "x": 1080.52734375,
\r
1166 "y": 1497.040771484375,
\r
1167 "z": "5c3e2071.30fcf",
\r
1171 "id": "543dd31e.1a6c4c",
\r
1173 "name": "set attachment_param",
\r
1174 "xml": "<set>\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-provider-id' value='`$oof.vpn.access-provider-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-client-id' value='`$oof.vpn.access-client-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].access-topology-id' value='`$oof.vpn.access-topology-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[0].access-ltp-id' value='`$oof.vpn.src-access-ltp-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-node-id' value='`$oof.vpn.access-node-id`' />\n<parameter name='ietf-eth-tran-service_etht-svc.etht-svc-instances[0].etht-svc-access-ports[1].access-ltp-id' value='`$oof.vpn.dst-access-ltp-id`' />\n\n",
\r
1176 "x": 1105.02734375,
\r
1177 "y": 1537.040771484375,
\r
1178 "z": "5c3e2071.30fcf",
\r
1182 "id": "ab256b41.e2d9b8",
\r
1183 "type": "switchNode",
\r
1184 "name": "switch prop.sdncRestApi.token_id",
\r
1185 "xml": "<switch test=\"`$prop.sdncRestApi.token_id`\">\n\n",
\r
1188 "x": 1140.52734375,
\r
1189 "y": 1577.040771484375,
\r
1190 "z": "5c3e2071.30fcf",
\r
1193 "7aea425d.d2ac8c",
\r
1199 "id": "e7a0edea.212a28",
\r
1200 "type": "execute",
\r
1201 "name": "execute RestconfApiCallNode Create ethernet Service with token",
\r
1202 "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
1205 "x": 1657.52734375,
\r
1206 "y": 1597.040771484375,
\r
1207 "z": "5c3e2071.30fcf",
\r
1210 "dc79f422.6ffec8",
\r
1216 "id": "dc79f422.6ffec8",
\r
1217 "type": "success",
\r
1218 "name": "success",
\r
1219 "xml": "<outcome value='success'>\n",
\r
1222 "x": 2001.02734375,
\r
1223 "y": 1597.040771484375,
\r
1224 "z": "5c3e2071.30fcf",
\r
1232 "id": "e78610af.f485d",
\r
1234 "name": "block : atomic",
\r
1235 "xml": "<block atomic=\"true\">",
\r
1239 "x": 2158.52734375,
\r
1240 "y": 1597.040771484375,
\r
1241 "z": "5c3e2071.30fcf",
\r
1247 "id": "3c748274.94d126",
\r
1248 "type": "returnFailure",
\r
1249 "name": "return failure",
\r
1250 "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
1252 "x": 2155.02734375,
\r
1253 "y": 1557.040771484375,
\r
1254 "z": "5c3e2071.30fcf",
\r
1258 "id": "fce6e76c.ef0f5",
\r
1259 "type": "failure",
\r
1260 "name": "failure",
\r
1261 "xml": "<outcome value='failure'>\n",
\r
1264 "x": 1997.02734375,
\r
1265 "y": 1557.040771484375,
\r
1266 "z": "5c3e2071.30fcf",
\r
1274 "id": "7aea425d.d2ac8c",
\r
1277 "xml": "<outcome value=''>\n",
\r
1280 "x": 1353.3711738586426,
\r
1281 "y": 1557.162670135498,
\r
1282 "z": "5c3e2071.30fcf",
\r
1290 "id": "c6896fdc.d8f088",
\r
1293 "xml": "<outcome value='Other'>\n",
\r
1296 "x": 1357.02734375,
\r
1297 "y": 1597.040771484375,
\r
1298 "z": "5c3e2071.30fcf",
\r
1306 "id": "7a6c581b.b1ed5",
\r
1307 "type": "execute",
\r
1308 "name": "execute RestconfApiCallNode Create ethernet Service without token",
\r
1309 "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
1312 "x": 1667.52734375,
\r
1313 "y": 1557.040771484375,
\r
1314 "z": "5c3e2071.30fcf",
\r
1323 "id": "25602afb.1d9cfe",
\r
1324 "type": "success",
\r
1325 "name": "success",
\r
1326 "xml": "<outcome value='success'>\n",
\r
1331 "z": "5c3e2071.30fcf",
\r
1339 "id": "a9afb163.16d81",
\r
1340 "type": "failure",
\r
1341 "name": "success",
\r
1342 "xml": "<outcome value='success'>\n",
\r
1347 "z": "5c3e2071.30fcf",
\r