3 "id": "5b1da5a1.42a48c",
8 "y": 118.11099243164062,
9 "z": "cb78d918.7fc128",
17 "id": "93750cf9.1f2d78",
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": 296.00000381469727,
26 "y": 190.11100959777832,
27 "z": "cb78d918.7fc128",
35 "id": "86c0b848.b39ba",
37 "name": "method network-topology-operation-delete",
38 "xml": "<method rpc='network-topology-operation-delete' mode='sync'>\n",
41 "x": 284.0001220703125,
42 "y": 278.1109924316406,
43 "z": "cb78d918.7fc128",
51 "id": "77e3cc35.7d7cd4",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 560.0000305175781,
59 "y": 286.11100578308105,
60 "z": "cb78d918.7fc128",
76 "id": "be2e1456.227648",
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": 69.11099243164062,
84 "z": "cb78d918.7fc128",
90 "id": "a1897ab9.0fe448",
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": 514.1109619140625,
98 "z": "cb78d918.7fc128",
108 "id": "75e7b934.cb3dd8",
111 "xml": "<outcome value='success'>\n",
115 "y": 470.1109924316406,
116 "z": "cb78d918.7fc128",
124 "id": "796a59b1.8d0548",
127 "xml": "<outcome value='not-found'>\n",
130 "x": 1067.490966796875,
131 "y": 511.68505859375,
132 "z": "cb78d918.7fc128",
140 "id": "5c8d6866.b859a",
143 "xml": "<outcome value='Other'>\n",
146 "x": 1060.823974609375,
147 "y": 563.018310546875,
148 "z": "cb78d918.7fc128",
156 "id": "b91067cd.af8e68",
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": 1243.0623779296875,
162 "y": 509.97076416015625,
163 "z": "cb78d918.7fc128",
167 "id": "977f0d12.35997",
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": 1221.5965576171875,
173 "y": 561.45751953125,
174 "z": "cb78d918.7fc128",
178 "id": "b9226511.aff8f8",
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": 247.11099243164062,
186 "z": "cb78d918.7fc128",
194 "id": "1203f51d.6f9be3",
201 "x": 1124.8333740234375,
203 "z": "cb78d918.7fc128",
213 "id": "f23590e3.3d3e",
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": 186.11099243164062,
221 "z": "cb78d918.7fc128",
229 "id": "722e293e.27d6a8",
230 "type": "outcomeTrue",
232 "xml": "<outcome value='true'>\n",
236 "y": 186.11099243164062,
237 "z": "cb78d918.7fc128",
245 "id": "ed3016dc.763f5",
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": 186.71099853515625,
252 "z": "cb78d918.7fc128",
256 "id": "9c473946.08b4",
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": 240.71096801757812,
264 "z": "cb78d918.7fc128",
272 "id": "406e37de.0fb498",
273 "type": "outcomeTrue",
275 "xml": "<outcome value='true'>\n",
278 "x": 1521.9999389648438,
279 "y": 245.71096801757812,
280 "z": "cb78d918.7fc128",
288 "id": "3e9c73.d1f31b8e",
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": 1690.9999389648438,
294 "y": 243.71096801757812,
295 "z": "cb78d918.7fc128",
299 "id": "cf00d60e.b98ae8",
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": 467.1109619140625,
306 "z": "cb78d918.7fc128",
310 "id": "91ceb00c.aa0fd",
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\"/>",
317 "y": 600.1109924316406,
318 "z": "cb78d918.7fc128",
324 "id": "bac94eb6.f12e88",
325 "type": "switchNode",
326 "name": "switch service-type",
327 "xml": "<switch test=\"`$prop.l3vpn.service-type`\">\n",
331 "y": 618.1109924316406,
332 "z": "cb78d918.7fc128",
340 "id": "31607169.f993a6",
341 "type": "outcomeTrue",
342 "name": "l3vpn-ipwan",
343 "xml": "<outcome value='l3vpn-ipwan'>\n",
347 "y": 602.1109924316406,
348 "z": "cb78d918.7fc128",
356 "id": "d9cb698f.15b1f",
357 "type": "switchNode",
358 "name": "switch service-data.networks.network_length",
359 "xml": "<switch test='`$service-data.networks.network_length`'>\n",
363 "y": 142.11099243164062,
364 "z": "cb78d918.7fc128",
373 "id": "652472f9.d0128c",
375 "name": "outcome Null",
376 "xml": "<outcome value=''>\n",
380 "y": 68.11105346679688,
381 "z": "cb78d918.7fc128",
389 "id": "56dffac.74ce404",
390 "type": "returnFailure",
391 "name": "return failure",
392 "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",
394 "x": 1458.7774658203125,
396 "z": "cb78d918.7fc128",
400 "id": "2b9737f2.ff2e58",
403 "xml": "<outcome value='Other'>\n",
406 "x": 1152.0003662109375,
407 "y": 133.11106872558594,
408 "z": "cb78d918.7fc128",
416 "id": "5d39d6e3.de1a58",
418 "name": "block : atomic",
419 "xml": "<block atomic=\"true\">",
422 "x": 1323.2698974609375,
423 "y": 116.66560363769531,
424 "z": "cb78d918.7fc128",
433 "id": "2ac08a71.09b5de",
435 "name": "for nidx..service-data.networks.network[]",
436 "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
439 "x": 1621.285888671875,
440 "y": 97.53961181640625,
441 "z": "cb78d918.7fc128",
449 "id": "9c86a373.825778",
450 "type": "switchNode",
451 "name": "switch tmp.nidx ",
452 "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
455 "x": 1542.5872802734375,
456 "y": 140.52279663085938,
457 "z": "cb78d918.7fc128",
465 "id": "3d81dbd3.1a6114",
468 "xml": "<outcome value=''>\n",
471 "x": 1743.015869140625,
472 "y": 146.09420776367188,
473 "z": "cb78d918.7fc128",
481 "id": "5db8c267.915c24",
482 "type": "switchNode",
483 "name": "switch networkid found",
484 "xml": "<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
487 "x": 1931.7144775390625,
488 "y": 95.78970336914062,
489 "z": "cb78d918.7fc128",
497 "id": "75e88bb1.8a62cc",
498 "type": "returnFailure",
499 "name": "return failure",
500 "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",
502 "x": 1914.4443359375,
503 "y": 146.237060546875,
504 "z": "cb78d918.7fc128",
508 "id": "e928a560.5b1c7",
509 "type": "outcomeTrue",
511 "xml": "<outcome value='true'>\n",
514 "x": 2137.666748046875,
515 "y": 94.68243408203125,
516 "z": "cb78d918.7fc128",
524 "id": "4ba4d636.a30d6",
526 "name": "set tmp.nidx and ctx.network-data",
527 "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />\n",
529 "x": 2376.198486328125,
530 "y": 90.43243408203125,
531 "z": "cb78d918.7fc128",
535 "id": "4f7bc968.61f5a",
537 "name": "block : saveNetworkData",
538 "xml": "<block atomic=\"true\">",
543 "y": 708.1109924316406,
544 "z": "cb78d918.7fc128",
555 "id": "af92894.71fa378",
556 "type": "returnSuccess",
557 "name": "return success",
558 "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",
560 "x": 754.6665649414062,
561 "y": 926.4442749023438,
562 "z": "cb78d918.7fc128",
566 "id": "305a1978.b12f4e",
568 "name": "copy input to service-data",
569 "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",
571 "x": 1095.0000076293945,
572 "y": 688.4443044662476,
573 "z": "cb78d918.7fc128",
577 "id": "79d9aff3.77d7a8",
579 "name": "set networkId",
580 "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n",
582 "x": 1059.2895622253418,
583 "y": 732.1621513366699,
584 "z": "cb78d918.7fc128",
588 "id": "7c1ac8d9.cf4248",
590 "name": "set object-path",
591 "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",
593 "x": 1065.0039291381836,
594 "y": 769.30504322052,
595 "z": "cb78d918.7fc128",
599 "id": "93b679b.6a51508",
601 "name": "set network-level-oper-status",
602 "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",
604 "x": 1108.9999389648438,
605 "y": 816.4442625045776,
606 "z": "cb78d918.7fc128",
610 "id": "4a75daf.1521ba4",
611 "type": "get-resource",
612 "name": "get-resource pnf",
613 "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",
618 "z": "cb78d918.7fc128",
628 "id": "b89fb093.0489a8",
631 "xml": "<outcome value='success'>\n",
636 "z": "cb78d918.7fc128",
644 "id": "6b28b3fc.71f09c",
647 "xml": "<outcome value='not-found'>\n",
650 "x": 984.490966796875,
651 "y": 372.57403564453125,
652 "z": "cb78d918.7fc128",
660 "id": "6a884f6a.df82b8",
663 "xml": "<outcome value='Other'>\n",
666 "x": 977.823974609375,
667 "y": 420.9073486328125,
668 "z": "cb78d918.7fc128",
676 "id": "f8931666.61247",
677 "type": "returnFailure",
678 "name": "return failure",
679 "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",
681 "x": 1170.0623779296875,
682 "y": 373.8597717285156,
683 "z": "cb78d918.7fc128",
687 "id": "d28c6955.33e8f",
688 "type": "returnFailure",
689 "name": "return failure",
690 "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",
692 "x": 1166.5965576171875,
693 "y": 424.3465270996094,
694 "z": "cb78d918.7fc128",
698 "id": "af6e1f5.d3f8c6",
700 "name": "set tmp.thirdparty-sdnc-id",
701 "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
705 "z": "cb78d918.7fc128",
709 "id": "634e4197.82f778",
710 "type": "switchNode",
711 "name": "switch pe1_id",
712 "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'pe1_id'`\">\n",
717 "z": "cb78d918.7fc128",
725 "id": "5329ae02.4dab98",
726 "type": "outcomeTrue",
728 "xml": "<outcome value='true'>\n",
733 "z": "cb78d918.7fc128",
741 "id": "19f03810.34cf68",
743 "name": "set pe1_id",
744 "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",
748 "z": "cb78d918.7fc128",
752 "id": "70ae31cf.a526f",
754 "name": "delete underlay configuration in AAI",
755 "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",
760 "z": "cb78d918.7fc128",