diff options
Diffstat (limited to 'platform-logic/vnfapi/src/main/json/VNF-API_network-topology-rollback.json')
-rw-r--r-- | platform-logic/vnfapi/src/main/json/VNF-API_network-topology-rollback.json | 579 |
1 files changed, 575 insertions, 4 deletions
diff --git a/platform-logic/vnfapi/src/main/json/VNF-API_network-topology-rollback.json b/platform-logic/vnfapi/src/main/json/VNF-API_network-topology-rollback.json index 6ba2b668..19259515 100644 --- a/platform-logic/vnfapi/src/main/json/VNF-API_network-topology-rollback.json +++ b/platform-logic/vnfapi/src/main/json/VNF-API_network-topology-rollback.json @@ -1,4 +1,575 @@ - - - -[{"id":"ed874a4d.fd8fa8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":205.71429443359375,"y":164.2857208251953,"z":"16a5084d.6904d8","wires":[["24d7124b.287cae","6f5f0903.600f88","56187c49.06fa54","34867ac.18cfc86"]]},{"id":"be439a72.253938","type":"not-found","name":"not found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":688.7422180175781,"y":164.44003295898438,"z":"16a5084d.6904d8","wires":[["b0ac9e35.109ef"]]},{"id":"b0ac9e35.109ef","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name=\"error-code\" value=\"404\" />\n\t<parameter name=\"error-message\" value=\"`'l3-network not found in AnAI with network-id = ' + $network-topology-operation-input.network-request-information.network-id`\" />","comments":"","x":851.9366149902344,"y":164.55125427246094,"z":"16a5084d.6904d8","wires":[]},{"id":"24d7124b.287cae","type":"switchNode","name":"switch: l3-network.orchestration_status","xml":"<switch test=\"`$tmp.AnAI.l3network.orchestration-status`\">","comments":"","outputs":1,"x":463.72552490234375,"y":272.89379501342773,"z":"16a5084d.6904d8","wires":[["2c75bd76.80f6d2","4c028d7d.749944","ba62e3d9.12a4"]]},{"id":"2c75bd76.80f6d2","type":"other","name":"pending-create","xml":"<outcome value='pending-create'>\n","comments":"","outputs":1,"x":747.4795608520508,"y":273.5526599884033,"z":"16a5084d.6904d8","wires":[["d89faa07.866668"]]},{"id":"ba62e3d9.12a4","type":"other","name":"pending-update","xml":"<outcome value='pending-update'>\n","comments":"","outputs":1,"x":750.0867538452148,"y":383.1594228744507,"z":"16a5084d.6904d8","wires":[["924236c2.8eb018"]]},{"id":"4c028d7d.749944","type":"other","name":"pending-delete","xml":"<outcome value='pending-delete'>\n","comments":"","outputs":1,"x":747.2295074462891,"y":328.2672004699707,"z":"16a5084d.6904d8","wires":[["d63de22c.d6ac3"]]},{"id":"d63de22c.d6ac3","type":"save","name":"update AnAI: l3-network.orchestration-status","xml":"<update plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id\" >\n<parameter name=\"orchestration-status\" value=\"active\" />","comments":"","outputs":1,"x":1029.535385131836,"y":328.9064884185791,"z":"16a5084d.6904d8","wires":[["30ace356.607a3c"]]},{"id":"30ace356.607a3c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1282.0407447814941,"y":328.19105052948,"z":"16a5084d.6904d8","wires":[["65d58e38.14597"]]},{"id":"65d58e38.14597","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Failed to update l3-netework orchestration-status in AnAI for network-id = ' + $network-topology-operation-input.network-request-information.network-id`\"/>","comments":"","x":1440.5405006408691,"y":327.69105052948,"z":"16a5084d.6904d8","wires":[]},{"id":"56187c49.06fa54","type":"returnSuccess","name":"return success","xml":"<return status=\"success\">\n\t<parameter name=\"networkId\" value=\"`$network-topology-operation-input.network-request-information.network-id`\" />\n\t<parameter name=\"error-code\" value=\"200\" />","comments":"","x":387.8685607910156,"y":810.4369297027588,"z":"16a5084d.6904d8","wires":[]},{"id":"6f5f0903.600f88","type":"set","name":"Set final indicator to Y","xml":"<set>\n<parameter name=\"ack-final\" value=\"Y\"/>","comments":"","outputs":1,"x":411.8686218261719,"y":763.4369297027588,"z":"16a5084d.6904d8","wires":[[]]},{"id":"924236c2.8eb018","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"true","comments":"","outputs":1,"x":934.9215087890625,"y":383.1720905303955,"z":"16a5084d.6904d8","wires":[["ddbaf6a3.157138","b17a76ed.0f85b8","601ab575.5ab91c"]]},{"id":"ddbaf6a3.157138","type":"for","name":"for loop i - tmp.AnAI.l3network.subnets.subnet[]","xml":"<for index=\"i\" start=\"0\" end=\"`$tmp.AnAI.l3network.subnets.subnet_length`\">\n","comments":"","outputs":1,"x":1257.5074462890625,"y":437.3375072479248,"z":"16a5084d.6904d8","wires":[["3a9492ae.aa26ae"]]},{"id":"3a9492ae.aa26ae","type":"switchNode","name":"switch : l3subnet.orchestration-status","xml":"<switch test=\"`$tmp.AnAI.l3network.subnets.subnet[$i].orchestration-status`\">","comments":"","outputs":1,"x":1308.7061004638672,"y":534.154951095581,"z":"16a5084d.6904d8","wires":[["dcb0b0f5.3edc8","3c0ecb2f.7fa144"]]},{"id":"dcb0b0f5.3edc8","type":"other","name":"pending-create","xml":"<outcome value='pending-create'>\n","comments":"","outputs":1,"x":1579.3409118652344,"y":533.6986665725708,"z":"16a5084d.6904d8","wires":[["4b483612.3e69e8"]]},{"id":"3c0ecb2f.7fa144","type":"other","name":"pending-delete","xml":"<outcome value='pending-delete'>\n","comments":"","outputs":1,"x":1581.5910339355469,"y":580.4486694335938,"z":"16a5084d.6904d8","wires":[["262c9783.799c48"]]},{"id":"ce707857.7d5938","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1483.0867156982422,"y":644.0207948684692,"z":"16a5084d.6904d8","wires":[["105e0afc.2b75f5"]]},{"id":"105e0afc.2b75f5","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Failed to rollback l3-netework orchestration-status in AnAI for network-id = ' + $network-topology-operation-input.network-request-information.network-id`\"/>","comments":"","x":1648.9435691833496,"y":644.0206813812256,"z":"16a5084d.6904d8","wires":[]},{"id":"7560895d.bec338","type":"method","name":"method network-topology-rollback","xml":"<method rpc=\"network-topology-rollback\" mode=\"sync\">","comments":"","outputs":1,"x":254.35324096679688,"y":104.81352615356445,"z":"16a5084d.6904d8","wires":[["ed874a4d.fd8fa8"]]},{"id":"22f704b1.4b00ac","type":"service-logic","name":"VNF-API 2.0.0","module":"VNF-API","version":"${project.version}","comments":"","xml":"<service-logic xmlns='http://www.att.com/sdnctl/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.att.com/sdnctl/svclogic ./svclogic.xsd' module='VNF-API' version='${project.version}'>","outputs":1,"x":308.79766845703125,"y":48.480201721191406,"z":"16a5084d.6904d8","wires":[["7560895d.bec338"]]},{"id":"14e828b3.f5f857","type":"dgstart","name":"DGSTART","outputs":1,"x":144.68655395507812,"y":48.480201721191406,"z":"16a5084d.6904d8","wires":[["22f704b1.4b00ac"]]},{"id":"34867ac.18cfc86","type":"get-resource","name":"get AnAI - l3-network by network-id","xml":"<get-resource plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id\" \n\t\tpfx=\"tmp.AnAI.l3network\">\n","comments":"","outputs":1,"x":453.4643249511719,"y":164.9246368408203,"z":"16a5084d.6904d8","wires":[["be439a72.253938","d84ea22f.e407c"]]},{"id":"d84ea22f.e407c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":681.4643249511719,"y":207.9246368408203,"z":"16a5084d.6904d8","wires":[["42ccb0c4.44987"]]},{"id":"42ccb0c4.44987","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`'An error occurred while querying l3-network from AnAI with network-id = ' + $network-topology-operation-input.network-request-information.network-id`\" />","comments":"","x":833.5754089355469,"y":208.14686584472656,"z":"16a5084d.6904d8","wires":[]},{"id":"262c9783.799c48","type":"save","name":"update AnAI - subnet.orchestration-status","xml":"<update plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id \n\t\t\tAND subnet.subnet-id = $tmp.AnAI.l3network.subnets.subnet[$i].subnet-id\" >\n\t<parameter name=\"orchestration-status\" value=\"active\" />\n\t\t","comments":"","outputs":1,"x":1862.6230087280273,"y":580.6667499542236,"z":"16a5084d.6904d8","wires":[["c9eebef.d2d794"]]},{"id":"d89faa07.866668","type":"delete","name":"delete AnAI - l3-network","xml":"<delete plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id\" >","comments":"","outputs":1,"x":968.1071929931641,"y":273.78178787231445,"z":"16a5084d.6904d8","wires":[["9ce56dcb.c4e3b"]]},{"id":"9ce56dcb.c4e3b","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1159.857177734375,"y":273.5317840576172,"z":"16a5084d.6904d8","wires":[["119f926b.f22d8e"]]},{"id":"119f926b.f22d8e","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Failed to delete l3-network from AAI with network-id = ' + $network-topology-operation-input.network-request-information.network-id`\"/>","comments":"","x":1318.3570355589,"y":273.0320094249846,"z":"16a5084d.6904d8","wires":[]},{"id":"4b483612.3e69e8","type":"delete","name":"delete l3-network.subnet","xml":"<delete plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id \n\t\t\tAND subnet.subnet-id = $tmp.AnAI.l3network.subnets.subnet[$i].subnet-id\" >","comments":"","outputs":1,"x":1808.6865310668945,"y":533.5754108428955,"z":"16a5084d.6904d8","wires":[["88c83fbb.cfade"]]},{"id":"b17a76ed.0f85b8","type":"save","name":"update AnAI - l3-network.orchestration-status","xml":"<update plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id\" >\n<parameter name=\"orchestration-status\" value=\"active\" />","comments":"","outputs":1,"x":1219.020034790039,"y":644.4007987976074,"z":"16a5084d.6904d8","wires":[["ce707857.7d5938"]]},{"id":"88c83fbb.cfade","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2002.8293075561523,"y":533.5754375457764,"z":"16a5084d.6904d8","wires":[["ad6689b7.9adf18"]]},{"id":"ad6689b7.9adf18","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`'Failed to rollback to delete subnet from AnAI with subnet-id = ' + $tmp.AnAI.l3network.subnets.subnet[$i].subnet-id + ' and network-id = ' + $network-topology-operation-input.network-request-information.network-id`\" />","comments":"","x":2150.9403915405273,"y":533.7976665496826,"z":"16a5084d.6904d8","wires":[]},{"id":"c9eebef.d2d794","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2115.6864852905273,"y":580.4325847625732,"z":"16a5084d.6904d8","wires":[["b2f04093.c9348"]]},{"id":"b2f04093.c9348","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`'Failed to rollback subnet orchestration-status from AnAI with subnet-id = ' + $tmp.AnAI.l3network.subnets.subnet[$i].subnet-id + ' and network-id = ' + $network-topology-operation-input.network-request-information.network-id`\" />","comments":"","x":2263.7975692749023,"y":580.6548137664795,"z":"16a5084d.6904d8","wires":[]},{"id":"601ab575.5ab91c","type":"switchNode","name":"switch ... tmp.AnAI.l3network.subnets.subnet_length[]","xml":"<switch test=\"`$tmp.AnAI.l3network.subnets.subnet_length`\">","comments":"","outputs":1,"x":1275.1428833007812,"y":383.2857360839844,"z":"16a5084d.6904d8","wires":[["fc8ffad6.e42698"]]},{"id":"fc8ffad6.e42698","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":1556.5873336791992,"y":383.0634717941284,"z":"16a5084d.6904d8","wires":[["188c2712.ad31f9"]]},{"id":"188c2712.ad31f9","type":"set","name":"set tmp.AnAI.l3network.subnets.subnet_length = 0","xml":"<set>\n<parameter name=\"tmp.AnAI.l3network.subnets.subnet_length\" value=\"0\" />\n","comments":"","outputs":1,"x":1831.1429426405166,"y":383.0634924570718,"z":"16a5084d.6904d8","wires":[[]]}] +[ + { + "id": "ed874a4d.fd8fa8", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "outputs": 1, + "x": 205.71429443359375, + "y": 164.2857208251953, + "z": "16a5084d.6904d8", + "wires": [ + [ + "24d7124b.287cae", + "6f5f0903.600f88", + "56187c49.06fa54", + "34867ac.18cfc86" + ] + ] + }, + { + "id": "be439a72.253938", + "type": "not-found", + "name": "not found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 688.7422180175781, + "y": 164.44003295898438, + "z": "16a5084d.6904d8", + "wires": [ + [ + "b0ac9e35.109ef" + ] + ] + }, + { + "id": "b0ac9e35.109ef", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"404\" />\n\t<parameter name=\"error-message\" value=\"`'l3-network not found in AnAI with network-id = ' + $network-topology-operation-input.network-request-information.network-id`\" />", + "comments": "", + "x": 851.9366149902344, + "y": 164.55125427246094, + "z": "16a5084d.6904d8", + "wires": [] + }, + { + "id": "24d7124b.287cae", + "type": "switchNode", + "name": "switch: l3-network.orchestration_status", + "xml": "<switch test=\"`$tmp.AnAI.l3network.orchestration-status`\">", + "comments": "", + "outputs": 1, + "x": 463.72552490234375, + "y": 272.89379501342773, + "z": "16a5084d.6904d8", + "wires": [ + [ + "2c75bd76.80f6d2", + "4c028d7d.749944", + "ba62e3d9.12a4" + ] + ] + }, + { + "id": "2c75bd76.80f6d2", + "type": "other", + "name": "pending-create", + "xml": "<outcome value='pending-create'>\n", + "comments": "", + "outputs": 1, + "x": 747.4795608520508, + "y": 273.5526599884033, + "z": "16a5084d.6904d8", + "wires": [ + [ + "d89faa07.866668" + ] + ] + }, + { + "id": "ba62e3d9.12a4", + "type": "other", + "name": "pending-update", + "xml": "<outcome value='pending-update'>\n", + "comments": "", + "outputs": 1, + "x": 750.0867538452148, + "y": 383.1594228744507, + "z": "16a5084d.6904d8", + "wires": [ + [ + "924236c2.8eb018" + ] + ] + }, + { + "id": "4c028d7d.749944", + "type": "other", + "name": "pending-delete", + "xml": "<outcome value='pending-delete'>\n", + "comments": "", + "outputs": 1, + "x": 747.2295074462891, + "y": 328.2672004699707, + "z": "16a5084d.6904d8", + "wires": [ + [ + "d63de22c.d6ac3" + ] + ] + }, + { + "id": "d63de22c.d6ac3", + "type": "save", + "name": "update AnAI: l3-network.orchestration-status", + "xml": "<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id\" >\n<parameter name=\"orchestration-status\" value=\"active\" />", + "comments": "", + "outputs": 1, + "x": 1029.535385131836, + "y": 328.9064884185791, + "z": "16a5084d.6904d8", + "wires": [ + [ + "30ace356.607a3c" + ] + ] + }, + { + "id": "30ace356.607a3c", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1282.0407447814941, + "y": 328.19105052948, + "z": "16a5084d.6904d8", + "wires": [ + [ + "65d58e38.14597" + ] + ] + }, + { + "id": "65d58e38.14597", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Failed to update l3-netework orchestration-status in AnAI for network-id = ' + $network-topology-operation-input.network-request-information.network-id`\"/>", + "comments": "", + "x": 1440.5405006408691, + "y": 327.69105052948, + "z": "16a5084d.6904d8", + "wires": [] + }, + { + "id": "56187c49.06fa54", + "type": "returnSuccess", + "name": "return success", + "xml": "<return status=\"success\">\n\t<parameter name=\"networkId\" value=\"`$network-topology-operation-input.network-request-information.network-id`\" />\n\t<parameter name=\"error-code\" value=\"200\" />", + "comments": "", + "x": 387.8685607910156, + "y": 810.4369297027588, + "z": "16a5084d.6904d8", + "wires": [] + }, + { + "id": "6f5f0903.600f88", + "type": "set", + "name": "Set final indicator to Y", + "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>", + "comments": "", + "outputs": 1, + "x": 411.8686218261719, + "y": 763.4369297027588, + "z": "16a5084d.6904d8", + "wires": [ + [] + ] + }, + { + "id": "924236c2.8eb018", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">\n", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 934.9215087890625, + "y": 383.1720905303955, + "z": "16a5084d.6904d8", + "wires": [ + [ + "ddbaf6a3.157138", + "b17a76ed.0f85b8", + "601ab575.5ab91c" + ] + ] + }, + { + "id": "ddbaf6a3.157138", + "type": "for", + "name": "for loop i - tmp.AnAI.l3network.subnets.subnet[]", + "xml": "<for index=\"i\" start=\"0\" end=\"`$tmp.AnAI.l3network.subnets.subnet_length`\">\n", + "comments": "", + "outputs": 1, + "x": 1257.5074462890625, + "y": 437.3375072479248, + "z": "16a5084d.6904d8", + "wires": [ + [ + "3a9492ae.aa26ae" + ] + ] + }, + { + "id": "3a9492ae.aa26ae", + "type": "switchNode", + "name": "switch : l3subnet.orchestration-status", + "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet[$i].orchestration-status`\">", + "comments": "", + "outputs": 1, + "x": 1308.7061004638672, + "y": 534.154951095581, + "z": "16a5084d.6904d8", + "wires": [ + [ + "dcb0b0f5.3edc8", + "3c0ecb2f.7fa144" + ] + ] + }, + { + "id": "dcb0b0f5.3edc8", + "type": "other", + "name": "pending-create", + "xml": "<outcome value='pending-create'>\n", + "comments": "", + "outputs": 1, + "x": 1579.3409118652344, + "y": 533.6986665725708, + "z": "16a5084d.6904d8", + "wires": [ + [ + "4b483612.3e69e8" + ] + ] + }, + { + "id": "3c0ecb2f.7fa144", + "type": "other", + "name": "pending-delete", + "xml": "<outcome value='pending-delete'>\n", + "comments": "", + "outputs": 1, + "x": 1581.5910339355469, + "y": 580.4486694335938, + "z": "16a5084d.6904d8", + "wires": [ + [ + "262c9783.799c48" + ] + ] + }, + { + "id": "ce707857.7d5938", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1483.0867156982422, + "y": 644.0207948684692, + "z": "16a5084d.6904d8", + "wires": [ + [ + "105e0afc.2b75f5" + ] + ] + }, + { + "id": "105e0afc.2b75f5", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Failed to rollback l3-netework orchestration-status in AnAI for network-id = ' + $network-topology-operation-input.network-request-information.network-id`\"/>", + "comments": "", + "x": 1648.9435691833496, + "y": 644.0206813812256, + "z": "16a5084d.6904d8", + "wires": [] + }, + { + "id": "7560895d.bec338", + "type": "method", + "name": "method network-topology-rollback", + "xml": "<method rpc=\"network-topology-rollback\" mode=\"sync\">", + "comments": "", + "outputs": 1, + "x": 254.35324096679688, + "y": 104.81352615356445, + "z": "16a5084d.6904d8", + "wires": [ + [ + "ed874a4d.fd8fa8" + ] + ] + }, + { + "id": "22f704b1.4b00ac", + "type": "service-logic", + "name": "VNF-API ${project.version}", + "module": "VNF-API", + "version": "${project.version}", + "comments": "", + "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='${project.version}'>", + "outputs": 1, + "x": 308.79766845703125, + "y": 48.480201721191406, + "z": "16a5084d.6904d8", + "wires": [ + [ + "7560895d.bec338" + ] + ] + }, + { + "id": "14e828b3.f5f857", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 144.68655395507812, + "y": 48.480201721191406, + "z": "16a5084d.6904d8", + "wires": [ + [ + "22f704b1.4b00ac" + ] + ] + }, + { + "id": "34867ac.18cfc86", + "type": "get-resource", + "name": "get AnAI - l3-network by network-id", + "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id\" \n\t\tpfx=\"tmp.AnAI.l3network\">\n", + "comments": "", + "outputs": 1, + "x": 453.4643249511719, + "y": 164.9246368408203, + "z": "16a5084d.6904d8", + "wires": [ + [ + "be439a72.253938", + "d84ea22f.e407c" + ] + ] + }, + { + "id": "d84ea22f.e407c", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 681.4643249511719, + "y": 207.9246368408203, + "z": "16a5084d.6904d8", + "wires": [ + [ + "42ccb0c4.44987" + ] + ] + }, + { + "id": "42ccb0c4.44987", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`'An error occurred while querying l3-network from AnAI with network-id = ' + $network-topology-operation-input.network-request-information.network-id`\" />", + "comments": "", + "x": 833.5754089355469, + "y": 208.14686584472656, + "z": "16a5084d.6904d8", + "wires": [] + }, + { + "id": "262c9783.799c48", + "type": "save", + "name": "update AnAI - subnet.orchestration-status", + "xml": "<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id \n\t\t\tAND subnet.subnet-id = $tmp.AnAI.l3network.subnets.subnet[$i].subnet-id\" >\n\t<parameter name=\"orchestration-status\" value=\"active\" />\n\t\t", + "comments": "", + "outputs": 1, + "x": 1862.6230087280273, + "y": 580.6667499542236, + "z": "16a5084d.6904d8", + "wires": [ + [ + "c9eebef.d2d794" + ] + ] + }, + { + "id": "d89faa07.866668", + "type": "delete", + "name": "delete AnAI - l3-network", + "xml": "<delete plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id\" >", + "comments": "", + "outputs": 1, + "x": 968.1071929931641, + "y": 273.78178787231445, + "z": "16a5084d.6904d8", + "wires": [ + [ + "9ce56dcb.c4e3b" + ] + ] + }, + { + "id": "9ce56dcb.c4e3b", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1159.857177734375, + "y": 273.5317840576172, + "z": "16a5084d.6904d8", + "wires": [ + [ + "119f926b.f22d8e" + ] + ] + }, + { + "id": "119f926b.f22d8e", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Failed to delete l3-network from AAI with network-id = ' + $network-topology-operation-input.network-request-information.network-id`\"/>", + "comments": "", + "x": 1318.3570355589, + "y": 273.0320094249846, + "z": "16a5084d.6904d8", + "wires": [] + }, + { + "id": "4b483612.3e69e8", + "type": "delete", + "name": "delete l3-network.subnet", + "xml": "<delete plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id \n\t\t\tAND subnet.subnet-id = $tmp.AnAI.l3network.subnets.subnet[$i].subnet-id\" >", + "comments": "", + "outputs": 1, + "x": 1808.6865310668945, + "y": 533.5754108428955, + "z": "16a5084d.6904d8", + "wires": [ + [ + "88c83fbb.cfade" + ] + ] + }, + { + "id": "b17a76ed.0f85b8", + "type": "save", + "name": "update AnAI - l3-network.orchestration-status", + "xml": "<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-request-information.network-id\" >\n<parameter name=\"orchestration-status\" value=\"active\" />", + "comments": "", + "outputs": 1, + "x": 1219.020034790039, + "y": 644.4007987976074, + "z": "16a5084d.6904d8", + "wires": [ + [ + "ce707857.7d5938" + ] + ] + }, + { + "id": "88c83fbb.cfade", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 2002.8293075561523, + "y": 533.5754375457764, + "z": "16a5084d.6904d8", + "wires": [ + [ + "ad6689b7.9adf18" + ] + ] + }, + { + "id": "ad6689b7.9adf18", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`'Failed to rollback to delete subnet from AnAI with subnet-id = ' + $tmp.AnAI.l3network.subnets.subnet[$i].subnet-id + ' and network-id = ' + $network-topology-operation-input.network-request-information.network-id`\" />", + "comments": "", + "x": 2150.9403915405273, + "y": 533.7976665496826, + "z": "16a5084d.6904d8", + "wires": [] + }, + { + "id": "c9eebef.d2d794", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 2115.6864852905273, + "y": 580.4325847625732, + "z": "16a5084d.6904d8", + "wires": [ + [ + "b2f04093.c9348" + ] + ] + }, + { + "id": "b2f04093.c9348", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"`'Failed to rollback subnet orchestration-status from AnAI with subnet-id = ' + $tmp.AnAI.l3network.subnets.subnet[$i].subnet-id + ' and network-id = ' + $network-topology-operation-input.network-request-information.network-id`\" />", + "comments": "", + "x": 2263.7975692749023, + "y": 580.6548137664795, + "z": "16a5084d.6904d8", + "wires": [] + }, + { + "id": "601ab575.5ab91c", + "type": "switchNode", + "name": "switch ... tmp.AnAI.l3network.subnets.subnet_length[]", + "xml": "<switch test=\"`$tmp.AnAI.l3network.subnets.subnet_length`\">", + "comments": "", + "outputs": 1, + "x": 1275.1428833007812, + "y": 383.2857360839844, + "z": "16a5084d.6904d8", + "wires": [ + [ + "fc8ffad6.e42698" + ] + ] + }, + { + "id": "fc8ffad6.e42698", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "outputs": 1, + "x": 1556.5873336791992, + "y": 383.0634717941284, + "z": "16a5084d.6904d8", + "wires": [ + [ + "188c2712.ad31f9" + ] + ] + }, + { + "id": "188c2712.ad31f9", + "type": "set", + "name": "set tmp.AnAI.l3network.subnets.subnet_length = 0", + "xml": "<set>\n<parameter name=\"tmp.AnAI.l3network.subnets.subnet_length\" value=\"0\" />\n", + "comments": "", + "outputs": 1, + "x": 1831.1429426405166, + "y": 383.0634924570718, + "z": "16a5084d.6904d8", + "wires": [ + [] + ] + } +]
\ No newline at end of file |