3 "id": "1bc16ce.3c28013",
8 "y": 114.11099243164062,
17 "id": "97da490c.021388",
18 "type": "service-logic",
19 "name": "GENERIC-RESOURCE-API ${project.version}",
20 "module": "GENERIC-RESOURCE-API",
21 "version": "${project.version}",
23 "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
25 "x": 299.00000381469727,
26 "y": 186.11100959777832,
27 "z": "e87b72fe.07c73",
35 "id": "3dca7f57.a19ca8",
37 "name": "method network-topology-operation-delete",
38 "xml": "<method rpc='network-topology-operation-delete' mode='sync'>\n",
41 "x": 287.0001220703125,
42 "y": 274.1109924316406,
43 "z": "e87b72fe.07c73",
51 "id": "2917b139.6003be",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 563.0000305175781,
59 "y": 282.11100578308105,
60 "z": "e87b72fe.07c73",
77 "id": "93de9a8e.85cd28",
79 "name": "call GENERIC-RESOURCE-API:validate-network-input-parameters",
80 "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n",
84 "y": 65.11099243164062,
85 "z": "e87b72fe.07c73",
91 "id": "8a99a44.0aea6d8",
92 "type": "get-resource",
93 "name": "get-resource esr-thirdparty-sdnc",
94 "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",
98 "y": 510.1109619140625,
99 "z": "e87b72fe.07c73",
109 "id": "3ab5ee96.e1d5ea",
112 "xml": "<outcome value='success'>\n",
116 "y": 466.1109924316406,
117 "z": "e87b72fe.07c73",
125 "id": "5289c8c7.4bcd4",
128 "xml": "<outcome value='not-found'>\n",
131 "x": 1070.490966796875,
132 "y": 507.68505859375,
133 "z": "e87b72fe.07c73",
141 "id": "756a44de.032acc",
144 "xml": "<outcome value='Other'>\n",
147 "x": 1063.823974609375,
148 "y": 559.018310546875,
149 "z": "e87b72fe.07c73",
157 "id": "84a50f20.350108",
158 "type": "returnFailure",
159 "name": "return failure",
160 "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=\"Network model is_bound_to_vpn=true but no vpn_binding is present\" />\n\n",
162 "x": 1246.0623779296875,
163 "y": 505.97076416015625,
164 "z": "e87b72fe.07c73",
168 "id": "ad52005e.b9cf1",
169 "type": "returnFailure",
170 "name": "return failure",
171 "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 retrieving vpn binding\" />\n\n",
173 "x": 1224.5965576171875,
174 "y": 557.45751953125,
175 "z": "e87b72fe.07c73",
179 "id": "b9e067fb.af43c8",
181 "name": "for each network-input-parameters",
182 "xml": "<for index='idx' start='0' end='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length`' >\n",
186 "y": 243.11099243164062,
187 "z": "e87b72fe.07c73",
195 "id": "dba902b2.65b6e",
202 "x": 1127.8333740234375,
204 "z": "e87b72fe.07c73",
214 "id": "6dbc1962.e67808",
215 "type": "switchNode",
216 "name": "switch name",
217 "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
221 "y": 182.11099243164062,
222 "z": "e87b72fe.07c73",
230 "id": "5945c6d2.51585",
231 "type": "outcomeTrue",
233 "xml": "<outcome value='true'>\n",
237 "y": 182.11099243164062,
238 "z": "e87b72fe.07c73",
246 "id": "7ba84df2.2f3aec",
249 "xml": "<set>\n<parameter name='prop.l3vpn.name' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
252 "y": 182.71099853515625,
253 "z": "e87b72fe.07c73",
257 "id": "a7f93024.722988",
258 "type": "switchNode",
259 "name": "switch service-type",
260 "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'service-type'`\">\n",
264 "y": 236.71096801757812,
265 "z": "e87b72fe.07c73",
273 "id": "24243087.264e7",
274 "type": "outcomeTrue",
276 "xml": "<outcome value='true'>\n",
279 "x": 1524.9999389648438,
280 "y": 241.71096801757812,
281 "z": "e87b72fe.07c73",
289 "id": "4b08822f.ede664",
291 "name": "set service-type",
292 "xml": "<set>\n<parameter name='prop.l3vpn.service-type' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
294 "x": 1693.9999389648438,
295 "y": 239.71096801757812,
296 "z": "e87b72fe.07c73",
300 "id": "e5229a2a.d65d6",
302 "name": "set controller data",
303 "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].serviceUrl`\" />\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",
306 "y": 463.1109619140625,
307 "z": "e87b72fe.07c73",
311 "id": "8892b470.2ab318",
313 "name": "execute REST DELETE VPN",
314 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir +'/l3smvpntemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/vpn-services/vpnservice=' + $prop.l3vpn.name`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\"/>\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\"/>\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
318 "y": 678.110969543457,
319 "z": "e87b72fe.07c73",
328 "id": "8f63fe5a.ce23c",
329 "type": "switchNode",
330 "name": "switch service-type",
331 "xml": "<switch test=\"`$prop.l3vpn.service-type`\">\n",
335 "y": 614.1109924316406,
336 "z": "e87b72fe.07c73",
344 "id": "cf2b0eea.34d2e",
345 "type": "outcomeTrue",
346 "name": "l3vpn-ipwan",
347 "xml": "<outcome value='l3vpn-ipwan'>\n",
351 "y": 615.110969543457,
352 "z": "e87b72fe.07c73",
360 "id": "6e9a7fc8.6e80c8",
361 "type": "switchNode",
362 "name": "switch service-data.networks.network_length",
363 "xml": "<switch test='`$service-data.networks.network_length`'>\n",
367 "y": 138.11099243164062,
368 "z": "e87b72fe.07c73",
377 "id": "53ed314.a330f5",
379 "name": "outcome Null",
380 "xml": "<outcome value=''>\n",
384 "y": 64.11105346679688,
385 "z": "e87b72fe.07c73",
393 "id": "7b50ad9a.577e8c",
394 "type": "returnFailure",
395 "name": "return failure",
396 "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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
398 "x": 1461.7774658203125,
400 "z": "e87b72fe.07c73",
404 "id": "eeed55fd.c22298",
407 "xml": "<outcome value='Other'>\n",
410 "x": 1155.0003662109375,
411 "y": 129.11106872558594,
412 "z": "e87b72fe.07c73",
420 "id": "29041a71.02b546",
422 "name": "block : atomic",
423 "xml": "<block atomic=\"true\">",
426 "x": 1326.2698974609375,
427 "y": 112.66560363769531,
428 "z": "e87b72fe.07c73",
437 "id": "3af5398b.f7aa0e",
439 "name": "for nidx..service-data.networks.network[]",
440 "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
443 "x": 1624.285888671875,
444 "y": 93.53961181640625,
445 "z": "e87b72fe.07c73",
453 "id": "4821e95f.09e458",
454 "type": "switchNode",
455 "name": "switch tmp.nidx ",
456 "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
459 "x": 1545.5872802734375,
460 "y": 136.52279663085938,
461 "z": "e87b72fe.07c73",
469 "id": "4af90ffc.0818b",
472 "xml": "<outcome value=''>\n",
475 "x": 1746.015869140625,
476 "y": 142.09420776367188,
477 "z": "e87b72fe.07c73",
485 "id": "21827fa6.3c3c7",
486 "type": "switchNode",
487 "name": "switch networkid found",
488 "xml": "<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
491 "x": 1934.7144775390625,
492 "y": 91.78970336914062,
493 "z": "e87b72fe.07c73",
501 "id": "98ba5173.0d34e",
502 "type": "returnFailure",
503 "name": "return failure",
504 "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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
506 "x": 1917.4443359375,
507 "y": 142.237060546875,
508 "z": "e87b72fe.07c73",
512 "id": "22099867.c65e3",
513 "type": "outcomeTrue",
515 "xml": "<outcome value='true'>\n",
518 "x": 2140.666748046875,
519 "y": 90.68243408203125,
520 "z": "e87b72fe.07c73",
528 "id": "44687f12.3eae5",
530 "name": "set tmp.nidx and ctx.network-data",
531 "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />\n",
533 "x": 2379.198486328125,
534 "y": 86.43243408203125,
535 "z": "e87b72fe.07c73",
539 "id": "4f853de5.1d70d4",
541 "name": "block : saveNetworkData",
542 "xml": "<block atomic=\"true\">",
547 "y": 704.1109924316406,
548 "z": "e87b72fe.07c73",
559 "id": "80aa2c3b.44b74",
560 "type": "returnSuccess",
561 "name": "return success",
562 "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",
564 "x": 757.6665649414062,
565 "y": 922.4442749023438,
566 "z": "e87b72fe.07c73",
570 "id": "3a334836.fa7ed",
572 "name": "copy input to service-data",
573 "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n",
575 "x": 1098.0000076293945,
576 "y": 684.4443044662476,
577 "z": "e87b72fe.07c73",
581 "id": "191edb15.f0a32d",
583 "name": "set networkId",
584 "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n",
586 "x": 1062.2895622253418,
587 "y": 728.1621513366699,
588 "z": "e87b72fe.07c73",
592 "id": "7bfb16ed.b031d8",
594 "name": "set object-path",
595 "xml": "<set>\n<parameter name='network-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/networks/network/'\n + $networkId\n + '/network-data/'` \" />\n \n",
597 "x": 1068.0039291381836,
598 "y": 765.30504322052,
599 "z": "e87b72fe.07c73",
603 "id": "cc07591b.5791f",
605 "name": "set network-level-oper-status",
606 "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Deleted' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />\n",
608 "x": 1111.9999389648438,
609 "y": 812.4442625045776,
610 "z": "e87b72fe.07c73",
614 "id": "c6199aa8.b4cf08",
615 "type": "get-resource",
616 "name": "get-resource pnf",
617 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $prop.l3vpn.pe1_id AND \n\t\t depth = '0'\"\n pfx='tmp.aai.pnf' local-only='false' >\n\n",
622 "z": "e87b72fe.07c73",
632 "id": "eb78427.8aeffc",
635 "xml": "<outcome value='success'>\n",
640 "z": "e87b72fe.07c73",
648 "id": "9468b1f6.acd4a8",
651 "xml": "<outcome value='not-found'>\n",
654 "x": 987.490966796875,
655 "y": 368.57403564453125,
656 "z": "e87b72fe.07c73",
664 "id": "8869b2de.4cd318",
667 "xml": "<outcome value='Other'>\n",
670 "x": 980.823974609375,
671 "y": 416.9073486328125,
672 "z": "e87b72fe.07c73",
680 "id": "f68a2741.7b13e",
681 "type": "returnFailure",
682 "name": "return failure",
683 "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",
685 "x": 1173.0623779296875,
686 "y": 369.8597717285156,
687 "z": "e87b72fe.07c73",
691 "id": "ff173828.c81cc",
692 "type": "returnFailure",
693 "name": "return failure",
694 "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",
696 "x": 1169.5965576171875,
697 "y": 420.3465270996094,
698 "z": "e87b72fe.07c73",
702 "id": "68cda5fa.8580d4",
704 "name": "set tmp.thirdparty-sdnc-id",
705 "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
709 "z": "e87b72fe.07c73",
713 "id": "84a77140.b8364",
714 "type": "switchNode",
715 "name": "switch pe1_id",
716 "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'pe1_id'`\">\n",
721 "z": "e87b72fe.07c73",
729 "id": "16fa329d.f3dce5",
730 "type": "outcomeTrue",
732 "xml": "<outcome value='true'>\n",
737 "z": "e87b72fe.07c73",
745 "id": "b53db17c.0ef078",
747 "name": "set pe1_id",
748 "xml": "<set>\n<parameter name='prop.l3vpn.pe1_id' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
752 "z": "e87b72fe.07c73",
756 "id": "cd746090.90a5a",
758 "name": "delete underlay configuration in AAI",
759 "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",
764 "z": "e87b72fe.07c73",
770 "id": "599b3e84.010d1",
772 "name": "execute RestApiCallNode Get token",
773 "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\"/>",
777 "y": 605.7776565551758,
778 "z": "e87b72fe.07c73",
787 "id": "d3f6644d.349f88",
790 "xml": "<outcome value='success'>\n",
794 "y": 568.7776565551758,
795 "z": "e87b72fe.07c73",
803 "id": "3ae81ceb.b03874",
806 "xml": "<outcome value='failure'>\n",
810 "y": 635.420539855957,
811 "z": "e87b72fe.07c73",
819 "id": "50b8cd7f.3d5c64",
820 "type": "returnFailure",
821 "name": "return failure",
822 "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",
825 "y": 634.1706008911133,
826 "z": "e87b72fe.07c73",
830 "id": "7b5e645e.7d6674",
832 "name": "set token-id",
833 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='$token-result.token_id' />\n",
836 "y": 565.7776565551758,
837 "z": "e87b72fe.07c73",
841 "id": "6ace128e.38bbf4",
844 "xml": "<outcome value='success'>\n",
848 "y": 690.7776565551758,
849 "z": "e87b72fe.07c73",
855 "id": "e03ea1f6.8ae24",
858 "xml": "<outcome value='failure'>\n",
862 "y": 754.4204788208008,
863 "z": "e87b72fe.07c73",
871 "id": "2b054857.56f558",
872 "type": "returnFailure",
873 "name": "return failure",
874 "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 3rd party controller rest api\" />\n",
877 "y": 757.1706008911133,
878 "z": "e87b72fe.07c73",
882 "id": "46db16ed.796608",
884 "name": "block : atomic",
885 "xml": "<block atomic=\"true\">\n",
890 "y": 616.7776565551758,
891 "z": "e87b72fe.07c73",
900 "id": "e9b167f.6457618",
902 "name": "execute Properties",
903 "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",
908 "z": "e87b72fe.07c73",