3 "id": "22cb0f8b.7a936",
\r
9 "z": "ecded786.86d6f8",
\r
17 "id": "899fe88f.8b0f18",
\r
18 "type": "service-logic",
\r
19 "name": "optical-service ${project.version}",
\r
20 "module": "optical-service",
\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='optical-service' version='${project.version}'>",
\r
27 "z": "ecded786.86d6f8",
\r
35 "id": "8c11d44e.febba8",
\r
37 "name": "method service-delete-tapi",
\r
38 "xml": "<method rpc='service-delete-tapi' mode='sync'>\n",
\r
43 "z": "ecded786.86d6f8",
\r
51 "id": "4251fc90.7d3354",
\r
53 "name": "block : atomic",
\r
54 "xml": "<block atomic=\"true\">\n",
\r
60 "z": "ecded786.86d6f8",
\r
70 "id": "fa22a868.cbac88",
\r
73 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-create-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside optical service delete tapi\"/>\n\n\n\n\n\n",
\r
78 "z": "ecded786.86d6f8",
\r
84 "id": "61c8204a.2cec1",
\r
87 "xml": "<set>\n<parameter name='request-id' value='`$optical-service-delete-input.request-id`' />\n",
\r
91 "z": "ecded786.86d6f8",
\r
95 "id": "613af82c.220508",
\r
98 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"` $controller-ip + $prop.tapi.get.services.url + $optical-service-delete-input.payload.service-name`\" />\n<parameter name=\"restapiUser\" value=\"admin\"/> \n<parameter name=\"restapiPassword\" value=\"admin\"/> \n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"services-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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
101 "x": 759.9999351501465,
\r
102 "y": 378.8888759613037,
\r
103 "z": "ecded786.86d6f8",
\r
112 "id": "ddeadbca.081d98",
\r
115 "xml": "<set>\n<parameter name='aend-nep' value=\"`$services-response.service[0].end-point[0].connection-end-point[0].node-edge-point-uuid`\" />\n<parameter name='zend-nep' value=\"`$services-response.service[0].end-point[1].connection-end-point[0].node-edge-point-uuid`\" />\n<parameter name='aend-cep' value=\"`$services-response.service[0].end-point[0].connection-end-point[0].connection-end-point-uuid`\" />\n<parameter name='zend-cep' value=\"`$services-response.service[0].end-point[1].connection-end-point[0].connection-end-point-uuid`\" />\n",
\r
117 "x": 1492.2221755981445,
\r
118 "y": 305.555513381958,
\r
119 "z": "ecded786.86d6f8",
\r
123 "id": "6682edb5.3e9d24",
\r
126 "xml": "<outcome value='failure'>\n",
\r
129 "x": 963.3332595825195,
\r
130 "y": 353.33330249786377,
\r
131 "z": "ecded786.86d6f8",
\r
137 "id": "894f9664.c6abc8",
\r
140 "xml": "<outcome value='success'>\n",
\r
143 "x": 939.999885559082,
\r
144 "y": 435.55552768707275,
\r
145 "z": "ecded786.86d6f8",
\r
153 "id": "dafe166a.8b36d8",
\r
155 "name": "block : atomic",
\r
156 "xml": "<block atomic='true'>",
\r
160 "x": 1135.5554733276367,
\r
161 "y": 446.6666831970215,
\r
162 "z": "ecded786.86d6f8",
\r
173 "id": "2801b4f8.38386c",
\r
174 "type": "get-resource",
\r
175 "name": "get-resource",
\r
176 "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT *\nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\nWHERE interface_name = $aend-nep'\npfx='db-aend'>",
\r
179 "x": 1545.5556449890137,
\r
180 "y": 367.77777004241943,
\r
181 "z": "ecded786.86d6f8",
\r
187 "id": "3cf51d10.896032",
\r
188 "type": "get-resource",
\r
189 "name": "get-resource",
\r
190 "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT *\nfrom TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE\nWHERE interface_name = $zend-nep'\npfx='db-zend'>",
\r
193 "x": 1545.555549621582,
\r
194 "y": 422.2222137451172,
\r
195 "z": "ecded786.86d6f8",
\r
201 "id": "852e3fe3.e39dd",
\r
204 "xml": "<set>\n<parameter name='aend-new' value='`$aend-cep`' />\n",
\r
206 "x": 1931.221923828125,
\r
207 "y": 647.22216796875,
\r
208 "z": "ecded786.86d6f8",
\r
212 "id": "4644be9d.89b97",
\r
213 "type": "get-resource",
\r
214 "name": "find if aend is uni or nni or enni",
\r
215 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"p-interface\"\n key=\"pnf.pnf-name = $db-aend.pnf-name AND\n p-interface.interface-name = $aend-nep\"\npfx='aend' local-only='false'>\n\n",
\r
218 "x": 1719.1107177734375,
\r
219 "y": 562.8888549804688,
\r
220 "z": "ecded786.86d6f8",
\r
226 "id": "a44318ce.afad08",
\r
229 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"` $controller-ip + $prop.tapi.delete.service.url + $optical-service-delete-input.payload.service-name`\" />\n<parameter name=\"restapiUser\" value=\"admin\"/> \n<parameter name=\"restapiPassword\" value=\"admin\"/> \n<parameter name=\"httpMethod\" value=\"DELETE\"/>\n<parameter name=\"responsePrefix\" value=\"tapi-service-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.tapi.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
232 "x": 1283.3331146240234,
\r
233 "y": 514.4444074630737,
\r
234 "z": "ecded786.86d6f8",
\r
243 "id": "58946d75.cedfa4",
\r
246 "xml": "<outcome value='success'>\n",
\r
249 "x": 1252.3331146240234,
\r
250 "y": 656.4444074630737,
\r
251 "z": "ecded786.86d6f8",
\r
259 "id": "1e4a35c6.1c31ca",
\r
261 "name": "block : atomic",
\r
262 "xml": "<block atomic='true'>",
\r
266 "x": 1406.5553512573242,
\r
267 "y": 610.666627407074,
\r
268 "z": "ecded786.86d6f8",
\r
285 "id": "e7cecf42.399a6",
\r
288 "xml": "<outcome value='failure'>\n",
\r
291 "x": 1409.9998016357422,
\r
292 "y": 498.88880443573,
\r
293 "z": "ecded786.86d6f8",
\r
301 "id": "ea3eca27.8a59e8",
\r
303 "name": "block : atomic",
\r
304 "xml": "<block atomic='true'>",
\r
308 "x": 1576.9998016357422,
\r
309 "y": 497.88880443573,
\r
310 "z": "ecded786.86d6f8",
\r
318 "id": "e7be8bd4.b55258",
\r
319 "type": "returnFailure",
\r
320 "name": "return failure",
\r
321 "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Service Deletion failed' />\n<parameter name='ack-final-indicator' value=\"Y\" />",
\r
323 "x": 1744.8886985778809,
\r
324 "y": 496.66657543182373,
\r
325 "z": "ecded786.86d6f8",
\r
329 "id": "652250d1.df0d6",
\r
330 "type": "returnSuccess",
\r
331 "name": "return success",
\r
332 "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value='Service deleted successfully' />\n<parameter name='ack-final-indicator' value=\"Y\" />\n",
\r
334 "x": 1297.7775955200195,
\r
335 "y": 1231.1110696792603,
\r
336 "z": "ecded786.86d6f8",
\r
340 "id": "29655b58.ca1ca4",
\r
341 "type": "switchNode",
\r
343 "xml": "<switch test='`$aend.network-interface-type`'>\n",
\r
346 "x": 1641.1108856201172,
\r
347 "y": 665.5554914474487,
\r
348 "z": "ecded786.86d6f8",
\r
357 "id": "aea6fbc6.1505d8",
\r
360 "xml": "<outcome value='UNI'>\n",
\r
363 "x": 1805.888671875,
\r
364 "y": 647.22216796875,
\r
365 "z": "ecded786.86d6f8",
\r
373 "id": "2d663d56.1e55d2",
\r
376 "xml": "<outcome value='Other'>\n",
\r
379 "x": 1808.1108779907227,
\r
380 "y": 720.5555419921875,
\r
381 "z": "ecded786.86d6f8",
\r
389 "id": "aad55652.80ccf8",
\r
391 "name": "update pinterface cep DB Aend",
\r
392 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $aend-new WHERE interface_name = $aend-nep'\nforce='true' pfx='save-result'>",
\r
395 "x": 1671.1108856201172,
\r
396 "y": 763.3332624435425,
\r
397 "z": "ecded786.86d6f8",
\r
403 "id": "82da300b.4f57c",
\r
404 "type": "get-resource",
\r
405 "name": "find if zend is uni or nni or enni",
\r
406 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"p-interface\"\n key=\"pnf.pnf-name = $db-zend.pnf-name AND\n p-interface.interface-name = $zend-nep\"\npfx='zend' local-only='false'>\n\n",
\r
409 "x": 1647.7772598266602,
\r
410 "y": 846.6665992736816,
\r
411 "z": "ecded786.86d6f8",
\r
417 "id": "2082255.0c982da",
\r
418 "type": "switchNode",
\r
420 "xml": "<switch test='`$zend.network-interface-type`'>\n",
\r
423 "x": 1549.9998149871826,
\r
424 "y": 915.55544090271,
\r
425 "z": "ecded786.86d6f8",
\r
434 "id": "3a6cd376.4295ac",
\r
437 "xml": "<outcome value='UNI'>\n",
\r
440 "x": 1740.3330764770508,
\r
441 "y": 903.2221584320068,
\r
442 "z": "ecded786.86d6f8",
\r
450 "id": "86c6217d.bed2a",
\r
453 "xml": "<outcome value='Other'>\n",
\r
456 "x": 1742.5553359985352,
\r
457 "y": 970.5555419921875,
\r
458 "z": "ecded786.86d6f8",
\r
466 "id": "9f9c7a46.ce0ff8",
\r
468 "name": "update pinterface cep DB Zend",
\r
469 "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE TOPOLOGY_LOGICAL_RELATION_TO_PINTERFACE SET connection_point = $zend-new WHERE interface_name = $zend-nep'\nforce='true' pfx='save-result'>",
\r
472 "x": 1571.1112060546875,
\r
473 "y": 1009.9999141693115,
\r
474 "z": "ecded786.86d6f8",
\r
480 "id": "74642edb.088ea",
\r
483 "xml": "<set>\n<parameter name='zend-new' value=\"`$zend-cep`\" />\n",
\r
485 "x": 2139.999885559082,
\r
486 "y": 972.2221412658691,
\r
487 "z": "ecded786.86d6f8",
\r
491 "id": "b35b94b1.940ff8",
\r
494 "xml": "<set>\n<parameter name='zend-new' value='`$zend-cep`' />\n",
\r
496 "x": 1866.6664352416992,
\r
497 "y": 902.2221622467041,
\r
498 "z": "ecded786.86d6f8",
\r
502 "id": "33fa91ea.5695ce",
\r
504 "name": "delete service instance AAI",
\r
505 "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"service-instance\"\nkey='customer.global-customer-id = $output.global-customer-id AND\nservice-subscription.service-type = $output.service-type AND\nservice-instance.service-instance-id = $output.service-instance-id'>\n",
\r
508 "x": 1466.6664199829102,
\r
509 "y": 1124.4443254470825,
\r
510 "z": "ecded786.86d6f8",
\r
516 "id": "70a0ebe0.92bcd4",
\r
517 "type": "get-resource",
\r
518 "name": "get service db",
\r
519 "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' \nkey='SELECT * from REQUEST_DETAILS WHERE request_id = $request-id '\npfx='output'>\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n",
\r
522 "x": 1487.7775344848633,
\r
523 "y": 1067.7777080535889,
\r
524 "z": "ecded786.86d6f8",
\r
530 "id": "e1b5d596.201438",
\r
531 "type": "switchNode",
\r
533 "xml": "<switch test='`$db-zend.connection-point`'>\n",
\r
536 "x": 1884.4444444444443,
\r
537 "y": 973.3333333333333,
\r
538 "z": "ecded786.86d6f8",
\r
547 "id": "1ff79f49.8fba61",
\r
550 "xml": "<outcome value=''>\n",
\r
553 "x": 2012.2222061157227,
\r
554 "y": 974.4444217681885,
\r
555 "z": "ecded786.86d6f8",
\r
563 "id": "f9bfc410.022418",
\r
566 "xml": "<set>\n<parameter name='zend-new' value=\"`$db-zend.connection-point + ',' + $zend-cep`\" />\n",
\r
568 "x": 2142.221981048584,
\r
569 "y": 1038.8887939453125,
\r
570 "z": "ecded786.86d6f8",
\r
574 "id": "54376f65.aa57",
\r
577 "xml": "<outcome value='Other'>\n",
\r
580 "x": 2024.4444444444443,
\r
581 "y": 1037.7777777777778,
\r
582 "z": "ecded786.86d6f8",
\r
590 "id": "af008805.61eae8",
\r
591 "type": "switchNode",
\r
593 "xml": "<switch test='`$db-aend.connection-point`'>\n",
\r
596 "x": 1935.5554428100586,
\r
597 "y": 723.3333148956299,
\r
598 "z": "ecded786.86d6f8",
\r
607 "id": "6ca90d2f.d086e4",
\r
610 "xml": "<set>\n<parameter name='aend-new' value=\"`$aend-cep`\" />\n",
\r
613 "y": 712.22216796875,
\r
614 "z": "ecded786.86d6f8",
\r
618 "id": "fdc21e7c.da331",
\r
621 "xml": "<outcome value=''>\n",
\r
624 "x": 2082.2223205566406,
\r
625 "y": 714.4444484710693,
\r
626 "z": "ecded786.86d6f8",
\r
634 "id": "f35c33d.adfbfd",
\r
637 "xml": "<set>\n<parameter name='aend-new' value=\"`$db-aend.connection-point + ',' + $aend-cep`\" />\n",
\r
639 "x": 2212.222095489502,
\r
640 "y": 778.8888206481934,
\r
641 "z": "ecded786.86d6f8",
\r
645 "id": "ede7f03e.32c01",
\r
648 "xml": "<outcome value='Other'>\n",
\r
651 "x": 2094.4445588853623,
\r
652 "y": 777.7778044806587,
\r
653 "z": "ecded786.86d6f8",
\r
661 "id": "425e8f1f.07ad6",
\r
663 "name": "delete from db",
\r
664 "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n resource=\"SQL\"\n key=\"DELETE FROM REQUEST_DETAILS WHERE request_id = $request-id\">",
\r
667 "x": 1377.7776336669922,
\r
668 "y": 1185.5554809570312,
\r
669 "z": "ecded786.86d6f8",
\r