3 "id": "8b0d413c.615c5",
8 "y": 89.33332824707031,
9 "z": "eea4a4fd.28e7f8",
17 "id": "a7a5e7f9.cbcdd8",
18 "type": "service-logic",
19 "name": "SUBNET-API ${project.version}",
20 "module": "SUBNET-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='SUBNET-API' version='${project.version}'>",
25 "x": 409.83335876464844,
26 "y": 90.33332824707031,
27 "z": "eea4a4fd.28e7f8",
35 "id": "6c165aea.75e544",
37 "name": "execute EIPAM activatesubnet",
38 "xml": "<execute plugin=\"com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin\" method=\"activateSubnet\">\n\n",
40 "x": 653.6905975341797,
41 "y": 328.7619323730469,
42 "z": "eea4a4fd.28e7f8",
51 "id": "d3c99160.64233",
53 "name": "outcome: success",
54 "xml": "<outcome value=\"success\">",
57 "x": 931.2143096923828,
58 "y": 206.4285888671875,
59 "z": "eea4a4fd.28e7f8",
67 "id": "a9c66f76.4dc69",
69 "name": "outcome Other ",
70 "xml": "<outcome value=\"Other\"> \n\n",
72 "x": 915.3096466064453,
73 "y": 457.8094787597656,
74 "z": "eea4a4fd.28e7f8",
82 "id": "c794a1de.6c9f5",
83 "type": "returnFailure",
84 "name": "return failure",
85 "xml": " <return status=\"failure\">\n <parameter name=\"error-code\" value=\"3000\" />\n <parameter name=\"error-message\" value=\"ActivateSubnet failure, need to manually activate in EIPAM\" />\n",
87 "x": 1423.4044036865234,
88 "y": 614.6665649414062,
89 "z": "eea4a4fd.28e7f8",
93 "id": "9f29750b.da2bd8",
95 "name": "save: EIPAM IP Subnets Active",
96 "xml": "<save plugin=\"com.att.sdnctl.sli.resource.gamma.GammaResource\" resource=\"eipam-ip-subnets\"\n\tkey=\"entity-id = $eipam-ip-block.entity-id\" force=\"true\">\n <parameter name=\"status\" value=\"ACTIVE\" />\n \n",
98 "x": 1780.1310005187988,
99 "y": 71.17860412597656,
100 "z": "eea4a4fd.28e7f8",
106 "id": "9990bab.31cc148",
108 "name": "MANAGED-NETWORK-NOTIFICATION",
109 "info": "12/15/17: update AAI VPE to GENERIC-VNF for ADIod\n\t\tUS 518510 - 291247b-F24748: SDN-CP to update SUBNET-SERVICE DG for vPE orchestration on AIC 3.X",
111 "x": 475.6999969482422,
113 "z": "eea4a4fd.28e7f8",
117 "id": "513fc617.f719c8",
119 "name": "managed-network-notification",
120 "xml": "<method rpc='managed-network-notification' mode='sync'>\n",
122 "x": 775.7000427246094,
123 "y": 89.19999694824219,
124 "z": "eea4a4fd.28e7f8",
132 "id": "aec047af.aaab78",
138 "x": 154.69998168945312,
139 "y": 154.1999969482422,
140 "z": "eea4a4fd.28e7f8",
149 "id": "9cc7c475.fb9c08",
152 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"managed-network-notification\"/>\n<parameter name=\"field3\" value=\"`$managed-network-notification-input.request-id`\"/>\n<parameter name=\"field4\" value=\"`$managed-network-notification-input.managed-network-status.status.code`\"/>\n<parameter name=\"field5\" value=\"`$managed-network-notification-input.managed-network-status.status.description`\"/>\n<parameter name=\"field6\" value=\"`$managed-network-notification-input.managed-network-status.final-notification-indicator`\"/>\n\n",
155 "x": 355.2714614868164,
156 "y": 155.06147956848145,
157 "z": "eea4a4fd.28e7f8",
163 "id": "f7ea696e.95b708",
164 "type": "returnSuccess",
165 "name": "return success",
166 "xml": " <return status=\"success\">\n \n",
167 "x": 1430.2142333984375,
168 "y": 298.7618827819824,
169 "z": "eea4a4fd.28e7f8",
173 "id": "7c5909c0.2172c8",
175 "name": "set: status = Active",
176 "xml": "<set>\n\t<parameter name=\"eipam-ip-block.status\" value=\"ACTIVE\" />",
178 "x": 1435.5145721435547,
179 "y": 106.79519653320312,
180 "z": "eea4a4fd.28e7f8",
184 "id": "b4874196.8ae3d",
186 "name": "save: status = Active",
187 "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource\" resource=\"eipam-ip-block\">\n\t<parameter name=\"eipam-ip-block.status\" value=\"ACTIVE\" />",
189 "x": 1443.1810760498047,
190 "y": 155.1285400390625,
191 "z": "eea4a4fd.28e7f8",
197 "id": "e804c854.2cc4b8",
203 "x": 1132.5475311279297,
204 "y": 206.09521484375,
205 "z": "eea4a4fd.28e7f8",
218 "id": "d4043b3c.76b5d8",
225 "x": 1130.3094940185547,
226 "y": 457.8095397949219,
227 "z": "eea4a4fd.28e7f8",
238 "id": "4264e89c.40bd78",
239 "type": "switchNode",
240 "name": "switch: status Successful",
241 "xml": "<switch test=\"`$managed-network-notification-input.managed-network-status.status.code`\">\n\n",
243 "x": 152.69998168945312,
244 "y": 274.2000274658203,
245 "z": "eea4a4fd.28e7f8",
254 "id": "9ab4229a.74392",
256 "name": "outcome: Success",
257 "xml": "<outcome value=\"Success\">",
259 "x": 413.69996643066406,
260 "y": 274.20001220703125,
261 "z": "eea4a4fd.28e7f8",
269 "id": "c3d16d19.cc9aa",
271 "name": "outcome: Other",
272 "xml": "<outcome value=\"Other\">",
274 "x": 330.699951171875,
275 "y": 477.1999969482422,
276 "z": "eea4a4fd.28e7f8",
284 "id": "93fdf0c8.f0ae4",
286 "name": "execute EIPAM deallocateSubnet",
287 "xml": "<execute plugin=\"com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin\" method=\"deallocateSubnet\">\n\n",
288 "comments": "subnet and subnet_keys are deleted in the EIPAMPlugin",
290 "x": 318.184814453125,
291 "y": 702.8561706542969,
292 "z": "eea4a4fd.28e7f8",
301 "id": "a50ab9b4.106068",
303 "name": "save: EIPAM IP Subnets DEALLOCATED",
304 "xml": "<save plugin=\"com.att.sdnctl.sli.resource.gamma.GammaResource\" resource=\"eipam-ip-subnets\"\n\tkey=\"entity-id = $eipam-ip-block.entity-id\" force=\"true\">\n <parameter name=\"status\" value=\"DEALLOCATED\" />\n \n",
307 "x": 2083.8927307128906,
308 "y": 824.5342540740967,
309 "z": "eea4a4fd.28e7f8",
315 "id": "d96ce594.90a0c8",
317 "name": "set: status = ERROR",
318 "xml": "<set>\n\t<parameter name=\"eipam-ip-block.status\" value=\"ERROR\" />",
319 "x": 1711.3316497802734,
320 "y": 919.9341735839844,
321 "z": "eea4a4fd.28e7f8",
325 "id": "cd7d1838.d5cf78",
327 "name": "save: status = SDN_C_BACKOUT_ERROR",
328 "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource\" resource=\"eipam-ip-block\">\n\t<parameter name=\"eipam-ip-block.status\" value=\"SDN_C_BACKOUT_ERROR\" />",
331 "x": 1783.3318099975586,
332 "y": 970.2121124267578,
333 "z": "eea4a4fd.28e7f8",
339 "id": "25a6ed6d.53b122",
346 "x": 1477.9100799560547,
347 "y": 870.9460144042969,
348 "z": "eea4a4fd.28e7f8",
359 "id": "e0730d75.098b2",
360 "type": "returnFailure",
361 "name": "return failure ",
362 "xml": " <return status=\"failure\">\n <parameter name=\"error-code\" value=\"1000\" />\n <parameter name=\"error-message\" value=\"Failure from NCS and deletePool failed in EIPAM, need to manually delete.\" />\n",
364 "x": 1687.9100189208984,
365 "y": 1109.5015563964844,
366 "z": "eea4a4fd.28e7f8",
370 "id": "6b63ef5.73de51",
372 "name": "save: EIPAM IP Subnets ERROR",
373 "xml": "<save plugin=\"com.att.sdnctl.sli.resource.gamma.GammaResource\" resource=\"eipam-ip-subnets\"\n\tkey=\"entity-id = $eipam-ip-block.entity-id\" force=\"true\">\n <parameter name=\"status\" value=\"EIPAM_ACTIVATESUBNET_ERROR\" />\n \n",
376 "x": 1850.2252464294434,
377 "y": 379.9229793548584,
378 "z": "eea4a4fd.28e7f8",
384 "id": "710f2497.34503c",
386 "name": "set: status = ERROR",
387 "xml": "<set>\n\t<parameter name=\"eipam-ip-block.status\" value=\"ERROR\" />",
389 "x": 1448.0254974365234,
390 "y": 426.48956298828125,
391 "z": "eea4a4fd.28e7f8",
395 "id": "44e6903c.a5e7d",
397 "name": "save: status = ERROR",
398 "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource\" resource=\"eipam-ip-block\">\n\t<parameter name=\"eipam-ip-block.status\" value=\"EIPAM_ACTIVATESUBNET_ERROR\" />",
401 "x": 1453.0255584716797,
402 "y": 475.48956298828125,
403 "z": "eea4a4fd.28e7f8",
409 "id": "4f8b34e6.5bdd4c",
411 "name": "outcome: success",
412 "xml": "<outcome value=\"success\">",
415 "x": 632.0690155029297,
416 "y": 708.2610778808594,
417 "z": "eea4a4fd.28e7f8",
425 "id": "ebe5df37.bfb75",
427 "name": "Update AAI: SDN_C_BACKOUT_ERROR, PREPROV",
428 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $tmp.vpe-pool-row.vpe-id\" pfx=\"vpe-after\">\n\t<parameter name=\"orchestration-state\" value=\"SDN_C_BACKOUT_ERROR\" />\n\t<parameter name=\"prov-status\" value=\"PREPROV\" />\n\t",
431 "x": 1814.999984741211,
432 "y": 1064.8334655761719,
433 "z": "eea4a4fd.28e7f8",
439 "id": "59402378.f1791c",
441 "name": "Update AAI: EIPAM_ERROR, PREPROV",
442 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $tmp.vpe-pool-row.vpe-id\" pfx=\"vpe-after\">\n\t<parameter name=\"operational-state\" value=\"EIPAM_ERROR\" />\n\t<parameter name=\"summary-status\" value=\"`$aai-summary-status-message`\" />\n\t<parameter name=\"prov-status\" value=\"PREPROV\" />\n\t",
445 "x": 1511.1666717529297,
446 "y": 566.0832214355469,
447 "z": "eea4a4fd.28e7f8",
453 "id": "51c1d9c0.103e68",
455 "name": "Update AAI: SDNC_COMPLETED",
456 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"generic-vnf\" key=\"generic-vnf.vnf-id = $tmp.vpe-pool-row.vpe-id\" pfx=\"vpe-after\">\n\t<parameter name=\"orchestration-status\" value=\"Activated\" />\n\t<parameter name=\"prov-status\" value=\"NVTPROV\" />\n",
459 "x": 1486.166648864746,
460 "y": 252.50001907348633,
461 "z": "eea4a4fd.28e7f8",
467 "id": "32cfc32.f7b6f3c",
469 "name": "execute: set aai-summary-status-message",
470 "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' method='setStatusMethod' >\n<parameter name=\"key1\" value=\"Failure from NCS and deletePool failed in EIPAM, need to manually delete.\"/>",
473 "x": 1781.999984741211,
474 "y": 1015.0834655761719,
475 "z": "eea4a4fd.28e7f8",
481 "id": "2faf2d05.28d832",
483 "name": "execute: set aai-summary-status-message",
484 "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' method='setStatusMethod' >\n<parameter name=\"key1\" value=\"ActivateSubnet failure, need to manually activate in EIPAM.\"/>",
487 "x": 1515.0001068115234,
488 "y": 520.5832824707031,
489 "z": "eea4a4fd.28e7f8",
495 "id": "67b3d858.1a81b8",
497 "name": "execute: set aai-summary-status-message with timestamp",
498 "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' method='setStatusMethod' >\n<parameter name=\"key1\" value=\"SUCCESS: eipam-ip-block.status is ACTIVE.\"/>",
501 "x": 1559.0001068115234,
502 "y": 204.08334350585938,
503 "z": "eea4a4fd.28e7f8",
509 "id": "3cf915d5.0d1d9a",
511 "name": "outcome Other ",
512 "xml": "<outcome value=\"Other\"> \n\n",
514 "x": 605.6485595703125,
515 "y": 1139.633544921875,
516 "z": "eea4a4fd.28e7f8",
524 "id": "1502967b.43db7a",
526 "name": "execute EIPAM deletePool",
527 "xml": "<execute plugin=\"com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin\" method=\"deletePool\">\n\n",
528 "comments": "subnet and subnet_keys are deleted in the EIPAMPlugin",
530 "x": 916.648681640625,
531 "y": 717.6335601806641,
532 "z": "eea4a4fd.28e7f8",
541 "id": "8c247aa0.adb508",
542 "type": "returnFailure",
543 "name": "return failure",
544 "xml": " <return status=\"failure\">\n <parameter name=\"error-code\" value=\"2000\" />\n <parameter name=\"error-message\" value=\"Failure from NCS and deleted pool/subnet in EIPAM\"/>\n \n",
546 "x": 1527.918930053711,
547 "y": 811.6335754394531,
548 "z": "eea4a4fd.28e7f8",
552 "id": "3d115298.a6390e",
554 "name": "set: status = Deleted",
555 "xml": "<set>\n\t<parameter name=\"eipam-ip-block.status\" value=\"DELETED\" />",
557 "x": 1552.9595794677734,
558 "y": 672.0675354003906,
559 "z": "eea4a4fd.28e7f8",
563 "id": "bd7da7e7.2442a8",
565 "name": "outcome: success",
566 "xml": "<outcome value=\"success\">",
569 "x": 1168.5102996826172,
570 "y": 719.0281066894531,
571 "z": "eea4a4fd.28e7f8",
579 "id": "b202ceaa.bfcf8",
585 "x": 1366.0545501708984,
586 "y": 719.9361267089844,
587 "z": "eea4a4fd.28e7f8",
596 "id": "fe96d80e.1742e8",
598 "name": "Update AAI: SDN_C_BACKOUT_ERROR, PREPROV",
599 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"generic-vnf\" key=\"generic-vnf.vnf-id = $tmp.vpe-pool-row.vpe-id\" pfx=\"vpe-after\">\n\t<parameter name=\"orchestration-state\" value=\"SDN_C_BACKOUT_ERROR\" />\n\t<parameter name=\"summary-status\" value=\"`$aai-summary-status-message`\" />\n\t<parameter name=\"prov-status\" value=\"PREPROV\" />\n",
602 "x": 1654.441390991211,
603 "y": 766.8501892089844,
604 "z": "eea4a4fd.28e7f8",
610 "id": "930f275.bbe09d8",
612 "name": "execute: set aai-summary-status-message",
613 "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' method='setStatusMethod' >\n<parameter name=\"key1\" value=\"Failure from NCS and deleted pool/subnet in EIPAM.\"/>",
616 "x": 1622.441390991211,
617 "y": 719.3502807617188,
618 "z": "eea4a4fd.28e7f8",
624 "id": "9e882eaf.4bab9",
626 "name": "outcome Other ",
627 "xml": "<outcome value=\"Other\"> \n\n",
629 "x": 1158.231201171875,
630 "y": 873.6335601806641,
631 "z": "eea4a4fd.28e7f8",
639 "id": "c607d852.38d518",
641 "name": "set: status = ERROR",
642 "xml": "<set>\n\t<parameter name=\"eipam-ip-block.status\" value=\"ERROR\" />",
643 "x": 1081.0957946777344,
644 "y": 1190.0476684570312,
645 "z": "eea4a4fd.28e7f8",
649 "id": "7d1e8b06.0568c4",
651 "name": "save: status = SDN_C_BACKOUT_ERROR",
652 "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource\" resource=\"eipam-ip-block\">\n\t<parameter name=\"eipam-ip-block.status\" value=\"SDN_C_BACKOUT_ERROR\" />",
655 "x": 1158.095962524414,
656 "y": 1237.825579881668,
657 "z": "eea4a4fd.28e7f8",
663 "id": "805eca59.0831f8",
670 "x": 847.6742248535156,
671 "y": 1138.0594177246094,
672 "z": "eea4a4fd.28e7f8",
683 "id": "61415345.f8ff0c",
684 "type": "returnFailure",
685 "name": "return failure ",
686 "xml": " <return status=\"failure\">\n <parameter name=\"error-code\" value=\"1000\" />\n <parameter name=\"error-message\" value=\"Failure from NCS and deletePool failed in EIPAM, need to manually delete.\" />\n",
688 "x": 1057.6741638183594,
689 "y": 1379.6150512695312,
690 "z": "eea4a4fd.28e7f8",
694 "id": "c854babb.1edeb8",
696 "name": "Update AAI: SDN_C_BACKOUT_ERROR, PREPROV",
697 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $tmp.vpe-pool-row.vpe-id\" pfx=\"vpe-after\">\n\t<parameter name=\"orchestration-state\" value=\"SDN_C_BACKOUT_ERROR\" />\n\t<parameter name=\"summary-status\" value=\"`$aai-summary-status-message`\" />\n\t<parameter name=\"prov-status\" value=\"PREPROV\" />\n\t",
700 "x": 1184.7641296386719,
701 "y": 1334.9469604492188,
702 "z": "eea4a4fd.28e7f8",
708 "id": "fd307a6e.e37228",
710 "name": "execute: set aai-summary-status-message",
711 "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' method='setStatusMethod' >\n<parameter name=\"key1\" value=\"Failure from NCS and deletePool failed in EIPAM, need to manually delete.\"/>",
714 "x": 1151.7641296386719,
715 "y": 1285.1969604492188,
716 "z": "eea4a4fd.28e7f8",
722 "id": "e09b4f51.fe4d2",
723 "type": "get-resource",
724 "name": "get-resource - vpe_pool",
725 "xml": "<get-resource\n plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n resource='SQL'\n key=\"SELECT * FROM VPE_POOL where vpe_name = $eipam-ip-block.ptnii-name ;\"\n pfx='tmp.vpe-pool-row'>\n\n",
728 "x": 1453.7500076293945,
729 "y": 23.750003814697266,
730 "z": "eea4a4fd.28e7f8",
736 "id": "fc3f0e2.234e7f",
738 "name": "Update subnet to ACTIVE in DB",
739 "xml": "<save \n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"UPDATE EIPAM_IP_SUBNETS\n SET status = 'ACTIVE' \n WHERE entity_id = $eipam-ip-block.entity-id ; \"\n force='true'\n pfx='pfx.eipam-subnet-row'>\n",
742 "x": 1475.0000228881836,
744 "z": "eea4a4fd.28e7f8",
750 "id": "b0f18382.a3db3",
752 "name": "Update subnet to ERROR in DB",
753 "xml": "<save \n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"UPDATE EIPAM_IP_SUBNETS\n SET status = 'ACTIVATE_ERROR' \n WHERE entity_id = $eipam-ip-block.entity-id ; \"\n force='true'\n pfx='pfx.eipam-subnet-row'>\n",
756 "x": 1482.5000228881836,
757 "y": 381.2500047683716,
758 "z": "eea4a4fd.28e7f8",
764 "id": "137b82df.54fe1d",
766 "name": "Update subnet to DEALLOCATED in DB",
767 "xml": "<save \n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"UPDATE EIPAM_IP_SUBNETS\n SET status = 'DEALLOCATED' \n WHERE entity_id = $eipam-ip-block.entity-id ; \"\n force='true'\n pfx='pfx.eipam-subnet-row'>\n",
770 "x": 1738.7500228881836,
771 "y": 870.0000123977661,
772 "z": "eea4a4fd.28e7f8",
778 "id": "65667bfd.a151d4",
780 "name": "Update subnet to ERROR in DB",
781 "xml": "<save \n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"UPDATE EIPAM_IP_SUBNETS\n SET status = 'DEALLOCSUBNET_ERROR' \n WHERE entity_id = $eipam-ip-block.entity-id ; \"\n force='true'\n pfx='pfx.eipam-subnet-row'>\n",
784 "x": 1113.750015258789,
785 "y": 1146.2500162124634,
786 "z": "eea4a4fd.28e7f8",
792 "id": "628344a0.b07cfc",
793 "type": "get-resource",
794 "name": "get-resource - vpe_pool",
795 "xml": "<get-resource\n plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n resource='SQL'\n key=\"SELECT * FROM VPE_POOL where vpe_name = $eipam-ip-block.ptnii-name ;\"\n pfx='tmp.vpe-pool-row'>\n\n",
798 "x": 1090.000015258789,
799 "y": 1081.250015258789,
800 "z": "eea4a4fd.28e7f8",