aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generate-host-routes-host-route-id.json
blob: 9068ce6826f2e696d2c6730018a2d73d68be6087 (plain)
1
[{"id":"b46c7669.faf458","type":"execute","name":"execute: generateUUID","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n\t<parameter name=\"ctx-destination\" value=\"tmp.return.generate-host-routes-host-route-id.uuid\" />","comments":"","outputs":1,"x":535.0039138793945,"y":420.83342695236206,"z":"6a6a71ad.8750d","wires":[["ccd2b56.c05d548"]]},{"id":"ccd2b56.c05d548","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":735.7539138793945,"y":420.50007820129395,"z":"6a6a71ad.8750d","wires":[["edbf364.8ce48c8"]]},{"id":"edbf364.8ce48c8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<!-- Used to work around execute node bug -->\n\t<parameter name=\"execute_failure\" value=\"false\" />\n\n\t<!-- return parameters -->\n\t<parameter name=\"error-message.generate-l3network-network-id\" value=\"An error occured while generating a UUID for L3-NETWORK.\" />","comments":"","x":900.7539138793945,"y":420.750075340271,"z":"6a6a71ad.8750d","wires":[]},{"id":"bc391592.12cd58","type":"get-resource","name":"Query AnAI -  host-route","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"subnet\"\n\t\tkey=\"l3-network.network-id = $tmp.local.network-id \n\t\t\tAND subnet.subnet-id = $tmp.return.generate-subnets-subnet-id.uuid \n\t\t\tAND host-route.host-route-id = $tmp.return.generate-host-routes-host-route-id.uuid\" \n\t\tlocal-only=\"false\"\n\t\tpfx=\"tmp.local-variables.generate-host-routes-host-route-id.HOST_ROUTE\" >","comments":"","outputs":1,"x":665.2539138793945,"y":511.750075340271,"z":"6a6a71ad.8750d","wires":[["73d58c11.7a5074","1b298f59.abe1a1","a74019fb.6b7638","888b565f.7cd9e8"]]},{"id":"a6e69c08.b975","type":"for","name":"for s: true","xml":"<for atomic=\"true\" index=\"s\" start=\"0\" end=\"1\" >","comments":"","outputs":1,"x":489.25391387939453,"y":511.750075340271,"z":"6a6a71ad.8750d","wires":[["bc391592.12cd58"]]},{"id":"73d58c11.7a5074","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":869.7539138793945,"y":511.750075340271,"z":"6a6a71ad.8750d","wires":[["82631946.34ce68"]]},{"id":"1b298f59.abe1a1","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":865.7539138793945,"y":591.750075340271,"z":"6a6a71ad.8750d","wires":[["8e99ea56.3c3f98"]]},{"id":"a74019fb.6b7638","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":874.7539138793945,"y":551.750075340271,"z":"6a6a71ad.8750d","wires":[["f99aabd0.438828"]]},{"id":"8e99ea56.3c3f98","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<!-- return parameters -->\n\t<parameter name=\"error-message.generate-host-routes-host-route-id\" value=\"`'An error occured while checking if a generated host-routes-host-route-id was unique. host-route-id = ' + $tmp.local-variables.generate-host-routes-host-route-id.uuid`\" />","comments":"","x":1032.253921508789,"y":616.7500810623169,"z":"6a6a71ad.8750d","wires":[]},{"id":"82631946.34ce68","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1027.7539138793945,"y":511.750075340271,"z":"6a6a71ad.8750d","wires":[["65b722dd.cc3b2c","b429d230.cec2"]]},{"id":"65b722dd.cc3b2c","type":"set","name":"set: ...local...is-unique = 0","xml":"<set>\n\t<parameter name=\"tmp.local-variables.generate-host-routes-host-route-id.is-unique\" value=\"0\" />","comments":"","x":1245.2539672851562,"y":511.7500810623169,"z":"6a6a71ad.8750d","wires":[]},{"id":"b429d230.cec2","type":"execute","name":"execute: generateUUID","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n\t<parameter name=\"ctx-destination\" value=\"tmp.return.generate-host-routes-host-route-id.uuid\" />","comments":"","outputs":1,"x":1238.7539138793945,"y":551.750075340271,"z":"6a6a71ad.8750d","wires":[["1988b05c.8294a"]]},{"id":"1988b05c.8294a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1425.7539138793945,"y":551.750075340271,"z":"6a6a71ad.8750d","wires":[["fb704f42.47d16"]]},{"id":"fb704f42.47d16","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<!-- return parameters -->\n\t<parameter name=\"error-message.generate-host-routes-host-route-id\" value=\"An error occured while generating a UUID for HOST_ROUTE.\" />","comments":"","x":1578.0873336791992,"y":553.4167652130127,"z":"6a6a71ad.8750d","wires":[]},{"id":"f99aabd0.438828","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":1005.7539138793945,"y":551.750075340271,"z":"6a6a71ad.8750d","wires":[[]]},{"id":"3061b9b4.8398a6","type":"dgstart","name":"DGSTART","outputs":1,"x":246.25391006469727,"y":108.00007438659668,"z":"6a6a71ad.8750d","wires":[["3d685829.268188"]]},{"id":"3d685829.268188","type":"service-logic","name":"GENERIC-RESOURCE-API ${project.version}","module":"GENERIC-RESOURCE-API","version":"${project.version}","comments":"","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}'>","outputs":1,"x":270.25390625,"y":154.25007438659668,"z":"6a6a71ad.8750d","wires":[["a93ee3ca.ee07b"]]},{"id":"a93ee3ca.ee07b","type":"method","name":"method generate-host-routes-host-route-id","xml":"<method rpc=\"generate-host-routes-host-route-id\" mode=\"sync\">","comments":"","outputs":1,"x":356.00390625,"y":206.75007438659668,"z":"6a6a71ad.8750d","wires":[["d7498ee5.c88ba"]]},{"id":"d7498ee5.c88ba","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":307.75391387939453,"y":331.750075340271,"z":"6a6a71ad.8750d","wires":[["b46c7669.faf458","cfe8a10b.dbcb8","137705c6.07742a","a6e69c08.b975"]]},{"id":"75e8d152.6f8c4","type":"comment","name":"LOOP UNTIL GENERATED HOST_ROUTE-ID ISN'T FOUND IN A&AI","info":"","comments":"","x":709.00390625,"y":468.00007915496826,"z":"6a6a71ad.8750d","wires":[]},{"id":"d11c9793.21a9d8","type":"comment","name":"GENERATE A HOST-ROUTE-ID","info":"","comments":"","x":572.75390625,"y":378.00007724761963,"z":"6a6a71ad.8750d","wires":[]},{"id":"cfe8a10b.dbcb8","type":"set","name":"unset: local-variables & return","xml":"<set>\n\t<parameter name=\"tmp.local-variables.generate-host-routes-host-route-id.\" value=\"\" />\n\t<parameter name=\"tmp.return.generate-host-routes-host-route-id.\" value=\"\" />","comments":"","x":558.7539138793945,"y":331.750075340271,"z":"6a6a71ad.8750d","wires":[]},{"id":"559b5a57.4342e4","type":"comment","name":"CLEANUP LOCAL VARIABLES TO BE USED","info":"","comments":"","x":643.00390625,"y":288.0000762939453,"z":"6a6a71ad.8750d","wires":[]},{"id":"7626b04.8cb7f5","type":"comment","name":"GLOBAL VARIABLES USED","info":"// RETURN VALUES\nerror-message.generate-host-routes-host-route-id\ntmp.return.generate-host-routes-host-route-id.uuid\n\n// LOCAL VARIABLES (erased at beginning & end of DG)\ntmp.local-variables.generate-host-routes-host-route-id.*\ntmp.local-variables.generate-host-routes-host-route.HOST_ROUTE.*","comments":"","x":784.2539367675781,"y":154.25007247924805,"z":"6a6a71ad.8750d","wires":[]},{"id":"137705c6.07742a","type":"set","name":"unset: local-variables & return","xml":"<set>\n\t<parameter name=\"tmp.local-variables.generate-host-routes-host-route-id.\" value=\"\" />","comments":"","x":558.7539138793945,"y":611.750075340271,"z":"6a6a71ad.8750d","wires":[]},{"id":"490d997f.134258","type":"comment","name":"CLEANUP LOCAL VARIABLES","info":"","comments":"","x":600.25390625,"y":569.2500801086426,"z":"6a6a71ad.8750d","wires":[]},{"id":"888b565f.7cd9e8","type":"other","name":"Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":865.7539138793945,"y":631.750075340271,"z":"6a6a71ad.8750d","wires":[["8e99ea56.3c3f98"]]}]