3 "id": "afc82ce2.121c78",
9 "z": "5a5462f8.9bc3ac",
17 "id": "db617858.b4ddb",
18 "type": "service-logic",
19 "name": "GENERIC-RESOURCE-API ${project.version}",
20 "module": "GENERIC-RESOURCE-API",
21 "version": "${project.version}",
23 "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
27 "z": "5a5462f8.9bc3ac",
35 "id": "bb132476.9ca4e",
37 "name": "method dci-connects-network-topology-operation-deactivate",
38 "xml": "<method rpc='dci-connects-network-topology-operation-deactivate' mode='sync'>\n",
43 "z": "5a5462f8.9bc3ac",
51 "id": "2a9be4c6.eb14b4",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
57 "x": 565.0000152587891,
58 "y": 233.00000953674316,
59 "z": "5a5462f8.9bc3ac",
73 "id": "ab306509.d7099",
75 "name": "call GENERIC-RESOURCE-API:validate-network-input-parameters",
76 "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n",
81 "z": "5a5462f8.9bc3ac",
87 "id": "d2dfa358.504c58",
88 "type": "returnSuccess",
89 "name": "return success",
90 "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",
94 "z": "5a5462f8.9bc3ac",
98 "id": "ae004639.5a1a9",
100 "name": "block : sendRequest",
101 "xml": "<block atomic=\"true\">",
105 "x": 961.5000305175781,
106 "y": 576.5156650543213,
107 "z": "5a5462f8.9bc3ac",
118 "id": "4509fe22.e5801",
121 "xml": "<outcome value='success'>\n",
124 "x": 1493.999927520752,
125 "y": 373.51519107818604,
126 "z": "5a5462f8.9bc3ac",
134 "id": "72b32ace.1dce64",
137 "xml": "<outcome value='not-found'>\n",
140 "x": 1500.999927520752,
141 "y": 411.51519107818604,
142 "z": "5a5462f8.9bc3ac",
150 "id": "3dd8b536.d8d3e2",
153 "xml": "<outcome value='Other'>\n",
156 "x": 1492.999927520752,
157 "y": 453.51519107818604,
158 "z": "5a5462f8.9bc3ac",
166 "id": "6310ff1e.a9757",
167 "type": "returnFailure",
168 "name": "return failure",
169 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
171 "x": 1657.999927520752,
172 "y": 415.51519107818604,
173 "z": "5a5462f8.9bc3ac",
177 "id": "bf2176dd.c8fbf8",
178 "type": "returnFailure",
179 "name": "return failure",
180 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
182 "x": 1650.999927520752,
183 "y": 462.51519107818604,
184 "z": "5a5462f8.9bc3ac",
188 "id": "ca9f4012.a368f",
189 "type": "get-resource",
190 "name": "get-resource esr-thirdparty-sdnc",
191 "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 = $prop.dci-connects.id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n",
194 "x": 1270.000015258789,
195 "y": 420.51519799232483,
196 "z": "5a5462f8.9bc3ac",
206 "id": "fd4a0bd2.51c28",
208 "name": "set controller data",
209 "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<parameter name='prop.sdncRestApi.thirdpartySdnc.vendor' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].vendor`\" />\n\n",
211 "x": 1673.4998779296875,
212 "y": 366.01513671875,
213 "z": "5a5462f8.9bc3ac",
217 "id": "270eaaaf.6d8a76",
219 "name": "execute RestApiCallNode De-Activate Vxlan Tunnel",
220 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/v2.0/l3-dci-connects/' + $prop.dci-connects.id`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\"/>\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\"/>\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>\n",
223 "x": 2097.500289916992,
224 "y": 566.5156259536743,
225 "z": "5a5462f8.9bc3ac",
231 "id": "108e039c.2a2694",
232 "type": "switchNode",
233 "name": "switch tunnelType",
234 "xml": "<switch test=\"`$prop.dci-connects.tunnelType`\">\n",
237 "x": 1560.4997482299805,
238 "y": 591.01513671875,
239 "z": "5a5462f8.9bc3ac",
248 "id": "b27ecfa7.2e204",
249 "type": "outcomeTrue",
251 "xml": "<outcome value='L3-DCI'>\n",
254 "x": 1773.4998779296875,
255 "y": 571.01513671875,
256 "z": "5a5462f8.9bc3ac",
264 "id": "70cba102.5a4918",
265 "type": "outcomeTrue",
267 "xml": "<outcome value='L2-DCI'>\n",
270 "x": 1771.499698638916,
271 "y": 643.01513671875,
272 "z": "5a5462f8.9bc3ac",
280 "id": "a70a8740.35415",
282 "name": "execute RestApiCallNode De-Activate Vxlan Tunnel",
283 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/v2.0/l2-dci-connects/' + $prop.dci-connects.id`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\"/>\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\"/>\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>",
286 "x": 2091.500244140625,
287 "y": 643.5155620574951,
288 "z": "5a5462f8.9bc3ac",
294 "id": "b6e2380b.22053",
296 "name": "for each network-input-parameters",
297 "xml": "<for index='idx' start='0' end='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length`' >\n\n",
300 "x": 1023.9999847412109,
301 "y": 177.51563167572021,
302 "z": "5a5462f8.9bc3ac",
310 "id": "6f0aecce.06e20c",
313 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"dci-network-topology-operation-deactivate\"/>\n<parameter name=\"field3\" value=\"dci-connects.id\" />\n<parameter name=\"field4\" value=\"`$prop.dci-connects.id`\"/>\n<parameter name=\"field5\" value=\"dci-connects.tunnelType\" />\n<parameter name=\"field6\" value=\"`$prop.dci-connects.tunnelType`\"/>\n<parameter name=\"field7\" value=\"dci-connects.tunnelType\" />\n<parameter name=\"field8\" value=\"`$prop.dci-connects.tunnelType`\"/>\n<parameter name=\"field9\" value=\"sdncRestApi.thirdpartySdnc.url\"/>\n<parameter name=\"field10\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url`\"/>",
316 "x": 1207.3333740234375,
318 "z": "5a5462f8.9bc3ac",
324 "id": "93278f1f.6117c",
331 "x": 1257.3334274291992,
332 "y": 177.00000762939453,
333 "z": "5a5462f8.9bc3ac",
342 "id": "98a85984.08bf9",
343 "type": "switchNode",
344 "name": "switch site1_id",
345 "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'site1_id'`\">\n",
348 "x": 1463.6666374206543,
349 "y": 146.00000381469727,
350 "z": "5a5462f8.9bc3ac",
358 "id": "931a8fd9.57dc4",
359 "type": "outcomeTrue",
361 "xml": "<outcome value='true'>\n",
364 "x": 1664.666732788086,
365 "y": 145.00000286102295,
366 "z": "5a5462f8.9bc3ac",
374 "id": "bf8602b7.a89dd",
377 "xml": "<set>\n<parameter name='prop.dci-connects.id' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
379 "x": 1838.3330841064453,
380 "y": 144.66654777526855,
381 "z": "5a5462f8.9bc3ac",
385 "id": "c01c858f.6535f",
386 "type": "switchNode",
387 "name": "switch tunnelType",
388 "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'tunnelType'`\">\n",
391 "x": 1473.6667175292969,
392 "y": 199.00000977516174,
393 "z": "5a5462f8.9bc3ac",
401 "id": "21e6cd01.99ffda",
402 "type": "outcomeTrue",
404 "xml": "<outcome value='true'>\n",
407 "x": 1679.6667175292969,
408 "y": 199.00000977516174,
409 "z": "5a5462f8.9bc3ac",
417 "id": "4b7be50f.b4ead4",
419 "name": "set tunnelType",
420 "xml": "<set>\n<parameter name='prop.dci-connects.tunnelType' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
422 "x": 1848.6668167114258,
423 "y": 199.0000250339508,
424 "z": "5a5462f8.9bc3ac",
428 "id": "a8a63952.1bc7f8",
430 "name": "block : executeSite1",
431 "xml": "<block atomic=\"true\">",
435 "x": 753.3333358764648,
436 "y": 178.66666412353516,
437 "z": "5a5462f8.9bc3ac",
446 "id": "e321a5f2.fe2e3",
448 "name": "for each network-input-parameters",
449 "xml": "<for index='idx' start='0' end='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length`' >\n\n",
452 "x": 1029.0000686645508,
453 "y": 283.66663551330566,
454 "z": "5a5462f8.9bc3ac",
462 "id": "d37e272b.ea0298",
469 "x": 1257.3334350585938,
470 "y": 286.15101146698,
471 "z": "5a5462f8.9bc3ac",
479 "id": "d847cda0.0460f",
480 "type": "switchNode",
481 "name": "switch site2_id",
482 "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'site2_id'`\">\n",
485 "x": 1458.3333854675293,
486 "y": 286.15099716186523,
487 "z": "5a5462f8.9bc3ac",
495 "id": "7ed96e02.76a578",
496 "type": "outcomeTrue",
498 "xml": "<outcome value='true'>\n",
501 "x": 1659.333480834961,
502 "y": 285.1509962081909,
503 "z": "5a5462f8.9bc3ac",
511 "id": "d7f24acd.dc28e",
514 "xml": "<set>\n<parameter name='prop.dci-connects.id' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
516 "x": 1832.9998321533203,
517 "y": 284.8175411224365,
518 "z": "5a5462f8.9bc3ac",
522 "id": "57931680.a91588",
524 "name": "block : executeSite1",
525 "xml": "<block atomic=\"true\">",
529 "x": 753.3333435058594,
530 "y": 287.8176679611206,
531 "z": "5a5462f8.9bc3ac",
540 "id": "85aea54b.a8d68",
543 "info": "Currently deactivate does deletion too, later divide in two phases.",
545 "x": 687.3333358764648,
547 "z": "5a5462f8.9bc3ac",
551 "id": "4204819e.38435",
553 "name": "delete underlay configuration in AAI",
554 "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='configuration' \n key='configuration.configuration-id = $network-topology-operation-input.network-information.network-id'>\n",
559 "z": "5a5462f8.9bc3ac",
565 "id": "29bbe40.27fea1c",
567 "name": "execute Properties",
568 "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",
573 "z": "5a5462f8.9bc3ac",
579 "id": "1ce08181.681226",
580 "type": "switchNode",
581 "name": "switch vendor",
582 "xml": "<switch test=\"`$prop.sdncRestApi.thirdpartySdnc.vendor`\">\n",
587 "z": "5a5462f8.9bc3ac",
595 "id": "d96f0afb.72174",
596 "type": "outcomeTrue",
598 "xml": "<outcome value='SPTN'>\n",
603 "z": "5a5462f8.9bc3ac",
611 "id": "b44d2822.3215d8",
613 "name": "Remove network from service data",
616 "x": 863.0000610351562,
617 "y": 696.9999389648438,
618 "z": "5a5462f8.9bc3ac",
622 "id": "82e8e8d7.c3425",
623 "type": "switchNode",
624 "name": "switch $service-data.networks.network_length",
625 "xml": "<switch test='`$service-data.networks.network_length`'>\n",
628 "x": 878.7658081054688,
629 "y": 740.0079956054688,
630 "z": "5a5462f8.9bc3ac",
639 "id": "c09f45a3.c220d8",
641 "name": "set output to api handler",
642 "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />\n \n",
644 "x": 814.7658081054688,
645 "y": 886.0079956054688,
646 "z": "5a5462f8.9bc3ac",
650 "id": "500bd365.2cd4bc",
652 "name": "If only one remove all networks",
655 "x": 1253.1837692260742,
656 "y": 701.267255783081,
657 "z": "5a5462f8.9bc3ac",
661 "id": "dba62b53.9a3ec",
664 "xml": "<outcome value='1'>\n",
667 "x": 1181.8134078979492,
668 "y": 736.674482345581,
669 "z": "5a5462f8.9bc3ac",
677 "id": "9f9202f3.6e105",
679 "name": "block : atomic",
680 "xml": "<block atomic=\"true\">",
683 "x": 1361.1467208862305,
684 "y": 737.3782787322998,
685 "z": "5a5462f8.9bc3ac",
694 "id": "57166c95.83901c",
697 "xml": "<outcome value='Other'>\n",
700 "x": 1148.1943588256836,
701 "y": 889.0078001022339,
702 "z": "5a5462f8.9bc3ac",
710 "id": "3d590d9a.bcff9a",
712 "name": "block : atomic",
713 "xml": "<block atomic=\"true\">",
716 "x": 1370.194236755371,
717 "y": 889.0078001022339,
718 "z": "5a5462f8.9bc3ac",
729 "id": "f066bd89.a6c2e8",
731 "name": "Remove networks",
732 "xml": "<set>\n\t<parameter name=\"service-data.networks.\" value=\"\"/>\n\n",
734 "x": 1611.432273864746,
735 "y": 740.3413572311401,
736 "z": "5a5462f8.9bc3ac",
740 "id": "c6b689fd.992278",
742 "name": "set new network length",
743 "xml": "<set>\n\t<parameter name=\"service-data.networks.network_length\" value=\"0\"/>\n\n\t\n",
745 "x": 1627.7656478881836,
746 "y": 775.045015335083,
747 "z": "5a5462f8.9bc3ac",
751 "id": "227d053b.c1572a",
753 "name": "Set new network length",
754 "xml": "<set>\n\t<parameter name=\"tmp.new_length\" value=\"`$service-data.networks.network_length - 1`\"/>\n\t\n\t\n",
756 "x": 1633.8979721069336,
757 "y": 826.2671995162964,
758 "z": "5a5462f8.9bc3ac",
762 "id": "5a71292a.6b8408",
764 "name": "for snidx..service-data.networks.network[]",
765 "xml": "<for silentFailure='true' index='snidx' start='`$tmp.nidx + 1`' end='`$service-data.networks.network_length`' >\n",
768 "x": 1682.603172302246,
769 "y": 878.5711545944214,
770 "z": "5a5462f8.9bc3ac",
778 "id": "963a7919.b37fb8",
780 "name": "set new network length",
781 "xml": "<set>\n\t<parameter name=\"service-data.networks.network_length\" value=\"`$service-data.networks.network_length - 1`\"/>\n\n\t\n",
783 "x": 1641.0620422363281,
784 "y": 922.3414134979248,
785 "z": "5a5462f8.9bc3ac",
789 "id": "d3de161f.966088",
791 "name": "Remove networks",
792 "xml": "<set>\n\t<parameter name=\"service-data.networks.network[$tmp.new_length].\" value=\"\"/>\n\n",
794 "x": 1620.9085083007812,
795 "y": 960.3093585968018,
796 "z": "5a5462f8.9bc3ac",
800 "id": "ccdd9c9d.183f1",
802 "name": "block : atomic",
803 "xml": "<block atomic=\"true\">",
807 "x": 1971.1941833496094,
808 "y": 888.007833480835,
809 "z": "5a5462f8.9bc3ac",