3 "id": "d563afb0.056168",
8 "y": 121.33333587646484,
17 "id": "f7c87a2f.fb9cf",
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": 304.00000381469727,
26 "y": 193.33335304260254,
27 "z": "89eca582.be817",
35 "id": "37f24cdb.d75cb4",
37 "name": "method network-topology-operation-delete",
38 "xml": "<method rpc='network-topology-operation-delete' mode='sync'>\n",
41 "x": 292.0001220703125,
42 "y": 281.33333587646484,
43 "z": "89eca582.be817",
51 "id": "968f84c1.36e27",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 568.0000305175781,
59 "y": 289.3333492279053,
60 "z": "89eca582.be817",
76 "id": "ae3d965a.4a7378",
78 "name": "call GENERIC-RESOURCE-API:validate-network-input-parameters",
79 "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n",
83 "y": 72.33333587646484,
84 "z": "89eca582.be817",
90 "id": "b83c4e05.5eb538",
91 "type": "get-resource",
92 "name": "get-resource esr-thirdparty-sdnc",
93 "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",
97 "y": 517.3333053588867,
98 "z": "89eca582.be817",
108 "id": "3ddcae6d.d600c2",
111 "xml": "<outcome value='success'>\n",
115 "y": 473.33333587646484,
116 "z": "89eca582.be817",
124 "id": "8879d867.b4938",
127 "xml": "<outcome value='not-found'>\n",
130 "x": 1075.490966796875,
131 "y": 514.9074020385742,
132 "z": "89eca582.be817",
140 "id": "24d0dda7.8f860a",
143 "xml": "<outcome value='Other'>\n",
146 "x": 1068.823974609375,
147 "y": 566.2406539916992,
148 "z": "89eca582.be817",
156 "id": "2fdf1df8.d37b9a",
157 "type": "returnFailure",
158 "name": "return failure",
159 "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",
161 "x": 1251.0623779296875,
162 "y": 513.1931076049805,
163 "z": "89eca582.be817",
167 "id": "d6d9101d.068098",
168 "type": "returnFailure",
169 "name": "return failure",
170 "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",
172 "x": 1229.5965576171875,
173 "y": 564.6798629760742,
174 "z": "89eca582.be817",
178 "id": "fc04e5a4.52eb5",
180 "name": "for each network-input-parameters",
181 "xml": "<for index='idx' start='0' end='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length`' >\n",
185 "y": 250.33333587646484,
186 "z": "89eca582.be817",
194 "id": "21f32325.9d7694",
201 "x": 1132.8333740234375,
202 "y": 228.66667938232422,
203 "z": "89eca582.be817",
213 "id": "15f7b5bc.24b652",
214 "type": "switchNode",
215 "name": "switch name",
216 "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
220 "y": 189.33333587646484,
221 "z": "89eca582.be817",
229 "id": "57533497.32b74c",
230 "type": "outcomeTrue",
232 "xml": "<outcome value='true'>\n",
236 "y": 189.33333587646484,
237 "z": "89eca582.be817",
245 "id": "636e0cba.4ad824",
248 "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",
251 "y": 189.93334197998047,
252 "z": "89eca582.be817",
256 "id": "58a03af6.4686fc",
257 "type": "switchNode",
258 "name": "switch service-type",
259 "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'service-type'`\">\n",
263 "y": 243.93331146240234,
264 "z": "89eca582.be817",
272 "id": "49b85e52.02df98",
273 "type": "outcomeTrue",
275 "xml": "<outcome value='true'>\n",
278 "x": 1529.9999389648438,
279 "y": 248.93331146240234,
280 "z": "89eca582.be817",
288 "id": "8bbe0d91.97e45",
290 "name": "set service-type",
291 "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",
293 "x": 1698.9999389648438,
294 "y": 246.93331146240234,
295 "z": "89eca582.be817",
299 "id": "2875c9d1.a679ce",
301 "name": "set controller data",
302 "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.templateDir' value='/opt/onap/sdnc/data' />\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",
305 "y": 470.3333053588867,
306 "z": "89eca582.be817",
310 "id": "e7464274.0f82b8",
312 "name": "execute REST DELETE VPN",
313 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.sdncRestApi.tempDir +'/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`\" />",
317 "y": 685.3333129882812,
318 "z": "89eca582.be817",
327 "id": "a964f2cc.8cf37",
328 "type": "switchNode",
329 "name": "switch service-type",
330 "xml": "<switch test=\"`$prop.l3vpn.service-type`\">\n",
334 "y": 621.3333358764648,
335 "z": "89eca582.be817",
343 "id": "93ec2320.02d11",
344 "type": "outcomeTrue",
345 "name": "l3vpn-ipwan",
346 "xml": "<outcome value='l3vpn-ipwan'>\n",
350 "y": 622.3333129882812,
351 "z": "89eca582.be817",
359 "id": "92a504dc.ec13d8",
360 "type": "switchNode",
361 "name": "switch service-data.networks.network_length",
362 "xml": "<switch test='`$service-data.networks.network_length`'>\n",
366 "y": 145.33333587646484,
367 "z": "89eca582.be817",
376 "id": "8e028d38.9057d",
378 "name": "outcome Null",
379 "xml": "<outcome value=''>\n",
383 "y": 71.3333969116211,
384 "z": "89eca582.be817",
392 "id": "ac7b7cef.c3a35",
393 "type": "returnFailure",
394 "name": "return failure",
395 "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",
397 "x": 1466.7774658203125,
398 "y": 58.22234344482422,
399 "z": "89eca582.be817",
403 "id": "c340ac4a.71f85",
406 "xml": "<outcome value='Other'>\n",
409 "x": 1160.0003662109375,
410 "y": 136.33341217041016,
411 "z": "89eca582.be817",
419 "id": "8cbfe4b9.2a2368",
421 "name": "block : atomic",
422 "xml": "<block atomic=\"true\">",
425 "x": 1331.2698974609375,
426 "y": 119.88794708251953,
427 "z": "89eca582.be817",
436 "id": "7a7f5cb9.3ef364",
438 "name": "for nidx..service-data.networks.network[]",
439 "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
442 "x": 1629.285888671875,
443 "y": 100.76195526123047,
444 "z": "89eca582.be817",
452 "id": "89dd7f04.eed92",
453 "type": "switchNode",
454 "name": "switch tmp.nidx ",
455 "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
458 "x": 1550.5872802734375,
459 "y": 143.7451400756836,
460 "z": "89eca582.be817",
468 "id": "ab419b0d.e9521",
471 "xml": "<outcome value=''>\n",
474 "x": 1751.015869140625,
475 "y": 149.3165512084961,
476 "z": "89eca582.be817",
484 "id": "b49be6d2.09dbc8",
485 "type": "switchNode",
486 "name": "switch networkid found",
487 "xml": "<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
490 "x": 1939.7144775390625,
491 "y": 99.01204681396484,
492 "z": "89eca582.be817",
500 "id": "8e89ca22.c1f468",
501 "type": "returnFailure",
502 "name": "return failure",
503 "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",
505 "x": 1922.4443359375,
506 "y": 149.45940399169922,
507 "z": "89eca582.be817",
511 "id": "92fa60c6.e61928",
512 "type": "outcomeTrue",
514 "xml": "<outcome value='true'>\n",
517 "x": 2145.666748046875,
518 "y": 97.90477752685547,
519 "z": "89eca582.be817",
527 "id": "13e93e78.dc98f2",
529 "name": "set tmp.nidx and ctx.network-data",
530 "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />\n",
532 "x": 2384.198486328125,
533 "y": 93.65477752685547,
534 "z": "89eca582.be817",
538 "id": "229c0a0d.36236e",
540 "name": "block : saveNetworkData",
541 "xml": "<block atomic=\"true\">",
546 "y": 711.3333358764648,
547 "z": "89eca582.be817",
558 "id": "5b36b323.b34d7c",
559 "type": "returnSuccess",
560 "name": "return success",
561 "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",
563 "x": 762.6665649414062,
564 "y": 929.666618347168,
565 "z": "89eca582.be817",
569 "id": "3a891d55.fcf27a",
571 "name": "copy input to service-data",
572 "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",
574 "x": 1103.0000076293945,
575 "y": 691.6666479110718,
576 "z": "89eca582.be817",
580 "id": "2f2a571f.f701d8",
582 "name": "set networkId",
583 "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n",
585 "x": 1067.2895622253418,
586 "y": 735.3844947814941,
587 "z": "89eca582.be817",
591 "id": "ad0ac3a3.801d88",
593 "name": "set object-path",
594 "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",
596 "x": 1073.0039291381836,
597 "y": 772.5273866653442,
598 "z": "89eca582.be817",
602 "id": "4dbcadac.7cacd4",
604 "name": "set network-level-oper-status",
605 "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",
607 "x": 1116.9999389648438,
608 "y": 819.6666059494019,
609 "z": "89eca582.be817",
613 "id": "6331818b.c6bfc",
614 "type": "get-resource",
615 "name": "get-resource pnf",
616 "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",
620 "y": 395.2223434448242,
621 "z": "89eca582.be817",
631 "id": "2c36397a.e13af6",
634 "xml": "<outcome value='success'>\n",
638 "y": 333.2223434448242,
639 "z": "89eca582.be817",
647 "id": "81511490.7b5318",
650 "xml": "<outcome value='not-found'>\n",
653 "x": 992.490966796875,
654 "y": 375.79637908935547,
655 "z": "89eca582.be817",
663 "id": "8ef29169.d30308",
666 "xml": "<outcome value='Other'>\n",
669 "x": 985.823974609375,
670 "y": 424.1296920776367,
671 "z": "89eca582.be817",
679 "id": "a2279b64.597d58",
680 "type": "returnFailure",
681 "name": "return failure",
682 "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",
684 "x": 1178.0623779296875,
685 "y": 377.08211517333984,
686 "z": "89eca582.be817",
690 "id": "48d06926.05169",
691 "type": "returnFailure",
692 "name": "return failure",
693 "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",
695 "x": 1174.5965576171875,
696 "y": 427.5688705444336,
697 "z": "89eca582.be817",
701 "id": "69eaa950.7e3dd",
703 "name": "set tmp.thirdparty-sdnc-id",
704 "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
707 "y": 329.2223434448242,
708 "z": "89eca582.be817",
712 "id": "83edb691.4ecc08",
713 "type": "switchNode",
714 "name": "switch pe1_id",
715 "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'pe1_id'`\">\n",
719 "y": 290.2223434448242,
720 "z": "89eca582.be817",
728 "id": "6271005d.f22478",
729 "type": "outcomeTrue",
731 "xml": "<outcome value='true'>\n",
735 "y": 299.2223434448242,
736 "z": "89eca582.be817",
744 "id": "170629d3.536056",
746 "name": "set pe1_id",
747 "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",
750 "y": 303.2223434448242,
751 "z": "89eca582.be817",
755 "id": "e6735147.08a6d8",
757 "name": "delete underlay configuration in AAI",
758 "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",
762 "y": 857.2223434448242,
763 "z": "89eca582.be817",
769 "id": "390c3473.62cfd4",
771 "name": "execute RestApiCallNode Get token",
772 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.sdncRestApi.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 "z": "89eca582.be817",
786 "id": "114e384f.cecfb8",
789 "xml": "<outcome value='success'>\n",
794 "z": "89eca582.be817",
802 "id": "a016d52e.8ce4a8",
805 "xml": "<outcome value='failure'>\n",
809 "y": 642.6428833007812,
810 "z": "89eca582.be817",
818 "id": "e5ef3b3f.f1e878",
819 "type": "returnFailure",
820 "name": "return failure",
821 "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",
824 "y": 641.3929443359375,
825 "z": "89eca582.be817",
829 "id": "600363c2.6867f4",
831 "name": "set token-id",
832 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='$token-result.token_id' />\n",
836 "z": "89eca582.be817",
840 "id": "9b0fa013.788a28",
843 "xml": "<outcome value='success'>\n",
848 "z": "89eca582.be817",
854 "id": "19c42608.424b9a",
857 "xml": "<outcome value='failure'>\n",
861 "y": 761.642822265625,
862 "z": "89eca582.be817",
870 "id": "6961c23b.26892c",
871 "type": "returnFailure",
872 "name": "return failure",
873 "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",
876 "y": 764.3929443359375,
877 "z": "89eca582.be817",
881 "id": "4e922d10.8ba70c",
883 "name": "block : atomic",
884 "xml": "<block atomic=\"true\">\n",
890 "z": "89eca582.be817",