3 "id": "595effb3.4be3e",
4 "type": "returnSuccess",
5 "name": "return success",
6 "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
9 "y": 1399.2500133514404,
10 "z": "15418301.fff86d",
14 "id": "60b23844.7c8178",
16 "name": "block : atomic",
17 "xml": "<block atomic=\"true\">",
20 "x": 162.99996185302734,
22 "z": "15418301.fff86d",
37 "id": "13383666.4d6eda",
39 "name": "set: order-status = Deleted",
40 "xml": "<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"Deleted\"/>",
43 "y": 1226.2500133514404,
44 "z": "15418301.fff86d",
48 "id": "18bfbdce.8e72c2",
50 "name": "method vnf-topology-delete",
51 "xml": "<method rpc='vnf-topology-delete' mode='sync'>\n",
54 "x": 194.6666488647461,
55 "y": 121.16666412353516,
56 "z": "15418301.fff86d",
64 "id": "13fd8823.be8278",
65 "type": "service-logic",
66 "name": "VNF-API 1.0.0-DEMO",
68 "version": "1.0.0-DEMO",
70 "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='VNF-API' version='1.0.0-DEMO'>",
72 "x": 264.66661834716797,
73 "y": 69.16667175292969,
74 "z": "15418301.fff86d",
82 "id": "b1e4565e.0c0fd8",
86 "x": 101.49996185302734,
88 "z": "15418301.fff86d",
96 "id": "6f25ff2c.14f19",
99 "xml": "<outcome value='false'>",
102 "x": 1089.9242897033691,
103 "y": 253.46213626861572,
104 "z": "15418301.fff86d",
112 "id": "814b3a84.e1a2e8",
113 "type": "returnFailure",
114 "name": "return failure",
115 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid order-status'/>",
117 "x": 1242.2574195861816,
118 "y": 253.46219730377197,
119 "z": "15418301.fff86d",
123 "id": "19d0fbea.e2bed4",
125 "name": "set: last-action ",
126 "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-action\" value=\"`$service-data.request-information.request-action`\"/>",
128 "x": 414.5075988769531,
129 "y": 1269.7956066131592,
130 "z": "15418301.fff86d",
134 "id": "97bd4dfc.622ea",
135 "type": "switchNode",
136 "name": "switch:vnf-id config == input",
137 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-information.vnf-id == $service-data.vnf-id`\">",
140 "x": 432.14385986328125,
141 "y": 171.48754501342773,
142 "z": "15418301.fff86d",
150 "id": "47a7c48e.5c7f3c",
151 "type": "outcomeFalse",
153 "xml": "<outcome value='false'>\n",
156 "x": 633.5984191894531,
157 "y": 171.66937255859375,
158 "z": "15418301.fff86d",
166 "id": "d69c35cb.81ce48",
167 "type": "returnFailure",
168 "name": "return failure",
169 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='vnf-id not found'/>",
171 "x": 797.189338684082,
172 "y": 171.8284730911255,
173 "z": "15418301.fff86d",
177 "id": "3e8f0960.85a326",
179 "name": "set: last-order-status = order-status",
180 "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-order-status\" value=\"`$service-data.oper-status.order-status`\"/>",
182 "x": 479.6439514160156,
183 "y": 1184.9875621795654,
184 "z": "15418301.fff86d",
188 "id": "e4baed03.d5511",
190 "name": "Clear vnf topology",
191 "xml": "<set>\n\t<parameter name=\"service-data.vnf-topology-information.\" value=\"\" /> \n",
193 "x": 423.6439514160156,
194 "y": 1309.9875621795654,
195 "z": "15418301.fff86d",
199 "id": "3a240134.7a0d2e",
200 "type": "switchNode",
201 "name": "switch: order-status = Active",
202 "xml": "<switch test=\"`$service-data.oper-status.order-status == Active`\">",
205 "x": 888.1071891784668,
206 "y": 253.76193714141846,
207 "z": "15418301.fff86d",
216 "id": "a957e353.7b783",
218 "name": "Set final indicator to Y",
219 "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
221 "x": 434.96431732177734,
222 "y": 1355.190486907959,
223 "z": "15418301.fff86d",
227 "id": "76887d6.f23f984",
228 "type": "switchNode",
229 "name": "switch: INPUT aic-cloud-region",
230 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-information.aic-cloud-region`\">",
233 "x": 441.00001525878906,
234 "y": 254.0833387374878,
235 "z": "15418301.fff86d",
244 "id": "b1ad7cbb.8bd5e",
247 "xml": "<outcome value=''>",
249 "x": 677.035816192627,
250 "y": 376.01194190979004,
251 "z": "15418301.fff86d",
259 "id": "598ec56f.052bfc",
260 "type": "switchNode",
261 "name": "switch: INPUT aic-clli",
262 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-information.aic-clli`\">",
265 "x": 874.0358581542969,
266 "y": 376.1191101074219,
267 "z": "15418301.fff86d",
276 "id": "61687779.17c318",
279 "xml": "<outcome value='Other'>\n",
282 "x": 672.250072479248,
283 "y": 253.83335304260254,
284 "z": "15418301.fff86d",
292 "id": "e42ccbc9.72b2e8",
295 "xml": "<outcome value=''>",
297 "x": 1069.0358047485352,
298 "y": 376.869083404541,
299 "z": "15418301.fff86d",
307 "id": "ed5eb2d5.d3fec",
308 "type": "returnFailure",
309 "name": "return failure",
310 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Either aic-cloud-region or aic-clli must be present'/>",
312 "x": 1241.5358047485352,
313 "y": 377.369083404541,
314 "z": "15418301.fff86d",
318 "id": "76f5dae3.ecbec4",
321 "xml": "<outcome value='Other'>\n",
324 "x": 1070.2858047485352,
325 "y": 419.369083404541,
326 "z": "15418301.fff86d",
334 "id": "efd3d8ce.305bb8",
336 "name": "delete generic-vnf-l3-network",
337 "xml": "<delete plugin=\"org.openecomp.sdnc.sli.resource.sql.SqlResource\" \n\tresource=\"generic-vnf-l3-network\" \n\tkey=\"DELETE FROM GENERIC_VNF_L3_NETWORK WHERE vnf_id = $service-data.vnf-id\" \n\tforce=\"true\" >\n\n",
340 "x": 1184.6786499023438,
341 "y": 1095.1190481185913,
342 "z": "15418301.fff86d",
350 "id": "81a6b5e3.b1c5c8",
352 "name": "delete GammaResource: generic-vnf",
353 "xml": "<delete plugin=\"org.openecomp.sdnc.sli.resource.sql.SqlResource\" \n\tresource=\"generic-vnf\" \n\tkey=\"DELETE FROM GENERIC_VNF where vnf_id = $service-data.vnf-id\" \n\tlocal-only=\"true\" \n\tforce=\"true\" >\n\n",
356 "x": 1208.3378143310547,
357 "y": 1181.490309715271,
358 "z": "15418301.fff86d",
366 "id": "fc48092d.d0a688",
368 "name": "delete generic-vnf-vserver",
369 "xml": "<delete plugin=\"org.openecomp.sdnc.sli.resource.sql.SqlResource\" \n\tresource=\"generic-vnf-vserver\" \n\tkey=\"DELETE FROM GENERIC_VNF_VSERVER where vnf_id = $service-data.vnf-id\" \n\tforce=\"true\" >\n\n",
372 "x": 1176.0878143310547,
373 "y": 1136.5735921859741,
374 "z": "15418301.fff86d",
382 "id": "bd19a37e.1e6f",
383 "type": "switchNode",
384 "name": "switch: order-status = PendingDelete",
385 "xml": "<switch test=\"'$service-data.oper-status.order-status == PendingDelete'\">\n\n<!--\nleaf order-status {\n\ttype enumeration {\n\t\tenum \"Active\";\n\t\tenum \"PendingAssignment\";\n\t\tenum \"PendingCreate\";\n\t\tenum \"PendingUpdate\";\n\t\tenum \"Deleted\";\n\t}\n}\n-->",
388 "x": 1213.1786499023438,
389 "y": 560.1190662384033,
390 "z": "15418301.fff86d",
398 "id": "75cce353.79957c",
401 "xml": "<outcome value='false'>",
404 "x": 1442.5120239257812,
405 "y": 560.4523792266846,
406 "z": "15418301.fff86d",
414 "id": "52ef3c8d.244ee4",
415 "type": "returnFailure",
416 "name": "return failure",
417 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid order-status'/>",
419 "x": 1594.8451538085938,
420 "y": 560.4524402618408,
421 "z": "15418301.fff86d",
425 "id": "3270e69c.b01c1a",
432 "x": 959.9286346435547,
433 "y": 560.3690586090088,
434 "z": "15418301.fff86d",
446 "id": "d2debfd0.9228e",
449 "xml": "<outcome value='failure'>\n",
452 "x": 1470.9286193847656,
453 "y": 1136.1190252304077,
454 "z": "15418301.fff86d",
462 "id": "5b41e042.1bf1",
464 "name": "set: error-message",
465 "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occurred while deleting generic-vnf, generic-vnf-l3-netweork or generic-vnf-vserver from GammaResource\"/>",
467 "x": 1653.4286422729492,
468 "y": 1136.1190338134766,
469 "z": "15418301.fff86d",
473 "id": "d3a92289.9fdd8",
475 "name": "delete AnAI: generic-vnf",
476 "xml": "<delete plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\tkey=\"generic-vnf.vnf-id = $service-data.vnf-id\" \n\tlocal-only=\"false\" \n\tforce=\"true\" >\n\n",
479 "x": 1166.6786193847656,
480 "y": 1225.8690252304077,
481 "z": "15418301.fff86d",
489 "id": "8a560d1f.dba1",
492 "xml": "<outcome value='failure'>\n",
495 "x": 1359.7694244384766,
496 "y": 1225.9977407455444,
497 "z": "15418301.fff86d",
505 "id": "cc527c20.53c39",
506 "type": "returnFailure",
507 "name": "return failure",
508 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Failed to delete generic-vnf from AnAI with vnf-id = '+ $service-data.vnf-id`\"/>",
510 "x": 1517.9359512329102,
511 "y": 1226.0811214447021,
512 "z": "15418301.fff86d",
516 "id": "c31526f9.780638",
518 "name": "NOT checking order-status intentionally",
521 "x": 1317.4286499023438,
522 "y": 524.3690643310547,
523 "z": "15418301.fff86d",
527 "id": "fdff8c1.4f2387",
530 "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/sdnc_appc_netconf.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-action`\"/>\n<parameter name=\"field3\" value=\"`$vnf-topology-operation-input.vnf-request-information.vnf-name`\"/>\n<parameter name=\"field4\" value=\"`$vnf-topology-operation-input.vnf-request-information.vnf-type`\"/>\n<parameter name=\"field5\" value=\"`$vnf-topology-operation-input.vnf-request-information.vnf-id`\"/>\n<parameter name=\"field6\" value=\"`$vnf-topology-operation-input.vnf-request-information.generic-vnf-name`\"/>\n<parameter name=\"field7\" value=\"`$vnf-topology-operation-input.vnf-request-information.generic-vnf-type`\"/>\n<parameter name=\"field8\" value=\"`$vnf-topology-operation-input.vnf-request-information.generic-vnf-id`\"/>\n<parameter name=\"field9\" value=\"`$preload-data.vnf-topology-information.vnf-topology-identifier.vnf-name`\"/>\n<parameter name=\"field10\" value=\"`$preload-data.vnf-topology-information.vnf-topology-identifier.vnf-type`\"/>\n",
533 "x": 1755.1786346435547,
534 "y": 739.2857246398926,
535 "z": "15418301.fff86d",
541 "id": "68d3c7c3.2c0538",
542 "type": "switchNode",
543 "name": "switch vnf type ",
544 "xml": "<switch test='`substr($preload-data.vnf-topology-information.vnf-topology-identifier.vnf-type,22,30)`'>\n<!-- Aa27262bF2d040799b5c..base_vfw..module-0 -->",
547 "x": 1154.9786834716797,
548 "y": 630.8023910522461,
549 "z": "15418301.fff86d",
557 "id": "fd273532.ed4fc8",
559 "name": "outcome base_vfw",
560 "xml": "<outcome value='base_vfw'>\n",
563 "x": 1380.9786529541016,
564 "y": 660.8023910522461,
565 "z": "15418301.fff86d",
573 "id": "5aca11d.fbb82f",
580 "x": 1594.9786529541016,
581 "y": 700.8023910522461,
582 "z": "15418301.fff86d",
593 "id": "8eaec4f0.033068",
595 "name": "excute DELETE REST NETCONF MOUNT ",
596 "xml": "<execute plugin='org.openecomp.sdnc.restapicall.RestapiCallNode' method='sendRequest' >\n\t<!--\n\t<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/netconf-mount-template.xml'`\"/>\n\t-->\n\t<parameter name=\"restapiUrl\" value=\"`$prop.appcRestApi.url+'/restconf/config/network-topology:network-topology/topology/topology-netconf/node/'+$prop.vpg_hostname`\"/>\n\t<parameter name=\"restapiUser\" value=\"`$prop.appcRestApi.sdncOdl.user`\"/>\n\t<parameter name=\"restapiPassword\" value=\"`$prop.appcRestApi.sdncOdl.password`\"/>\n\t<parameter name=\"format\" value=\"xml\" />\n\t<parameter name=\"httpMethod\" value=\"delete\" />\n\t<!-- \n\t<parameter name=\"responsePrefix\" value=\"restapi-result\" />\n\t-->\n\t\n\t",
599 "x": 1866.7285919189453,
600 "y": 1043.052339553833,
601 "z": "15418301.fff86d",
607 "id": "664d246a.65c41c",
609 "name": "set appc data",
610 "xml": "<set>\n<parameter name='prop.appcRestApi.url' value='http://appc.api.simpledemo.openecomp.org:8282' />\n<!-- 8181 when doing localhost -->\n<parameter name=\"prop.restapi.templateDir\" value=\"/opt/openecomp/sdnc/data\"/>\n<parameter name=\"prop.appcRestApi.sdncOdl.user\" value=\"admin\"/>\n<parameter name=\"prop.appcRestApi.sdncOdl.password\" value=\"Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U\"/>\n",
612 "x": 1776.4787063598633,
613 "y": 971.5523386001587,
614 "z": "15418301.fff86d",
618 "id": "40d9cc0a.1c2c64",
620 "name": "Get Hostname",
623 "x": 1821.6731414794922,
624 "y": 784.8356513977051,
625 "z": "15418301.fff86d",
629 "id": "afad195e.f3a248",
631 "name": "for vnf-parameters",
632 "xml": "<for index='k' start='0' end=\"`$preload-data.vnf-topology-information.vnf-parameters_length`\" >\n",
635 "x": 1791.673110961914,
636 "y": 829.8357696533203,
637 "z": "15418301.fff86d",
645 "id": "ad66fbd9.16e548",
646 "type": "switchNode",
647 "name": "switch vpg_name_0",
648 "xml": "<switch test=\"`$preload-data.vnf-topology-information.vnf-parameters[$k].vnf-parameter-name == 'vpg_name_0'`\">\n",
651 "x": 2154.6732330322266,
652 "y": 935.8358001708984,
653 "z": "15418301.fff86d",
661 "id": "40677ad9.8916e4",
662 "type": "outcomeTrue",
664 "xml": "<outcome value='true'>\n",
667 "x": 2341.6732330322266,
668 "y": 935.8358001708984,
669 "z": "15418301.fff86d",
677 "id": "c8def15.5dbbc1",
679 "name": "set vpg_ hostname ",
680 "xml": "<set>\n<parameter name='prop.vpg_hostname' value='`$preload-data.vnf-topology-information.vnf-parameters[$k].vnf-parameter-value`' />\n",
682 "x": 2509.6732330322266,
683 "y": 936.4358062744141,
684 "z": "15418301.fff86d",
688 "id": "1027e282.a44d6d",
695 "x": 1964.6732330322266,
696 "y": 873.8357696533203,
697 "z": "15418301.fff86d",
705 "id": "28fe83fd.b5a2ec",
708 "xml": "<outcome value='true'>",
711 "x": 1088.571533203125,
712 "y": 305.71429443359375,
713 "z": "15418301.fff86d",