aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xplatform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.json2791
-rwxr-xr-xplatform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.xml87
2 files changed, 2795 insertions, 83 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.json
index 5c7f93d8..970dabc2 100755
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.json
@@ -1 +1,2790 @@
-[{"id":"7d592922.381a98","type":"dgstart","name":"DGSTART","outputs":1,"x":234.75,"y":114,"z":"904f855.2f5e8f8","wires":[["2231b9ae.40730e"]]},{"id":"2231b9ae.40730e","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":371.0356903076172,"y":181.09526014328003,"z":"904f855.2f5e8f8","wires":[["5597044c.d58a04"]]},{"id":"5597044c.d58a04","type":"method","name":"network-topology-operation-assign-from-preload","xml":"<method rpc='network-topology-operation-assign-from-preload' mode='sync'>\n","comments":"","outputs":1,"x":373.71439361572266,"y":248.89284801483154,"z":"904f855.2f5e8f8","wires":[["eeff1f58.674cb"]]},{"id":"275965de.197eca","type":"comment","name":"Called from assign when network name passed in from mso","info":"","comments":"","x":571.6071395874023,"y":142.00000476837158,"z":"904f855.2f5e8f8","wires":[]},{"id":"eeff1f58.674cb","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":353.74999237060547,"y":380.9999933242798,"z":"904f855.2f5e8f8","wires":[["9c2238aa.67ea08","8255a2a9.5c5808","f9dafdce.3c8a3","685cc7cd.396018","899c4fe3.7f9af8","a4c0d0b4.fb2228","e3f5293b.03dee","cc0b4bd9.424d18","d792a084.fab23","fbeedbdb.9915b","9af57339.b5c73","cae6b67f.073328","1fa70774.12d5c1","ad534b95.44473","6fca91a9.21355","27110277.784596","e618d649.0c64a8","1375dc08.d1881c","98f1afcd.7f17e","31fdd3c0.8004c4","ae3f6cc0.f931c","c33e48fe.f40f2","1edbf6d.7460609","d7a7e7e8.a8b248","6820b570.d2fcf4","2475aec8.3301ca","9d88f2e8.48f3e","75c470c.1b64c1","d03a4655.11876","250c1ed0.7ac68a"]]},{"id":"9c2238aa.67ea08","type":"get-resource","name":"get AnAI - l3-network by network-name","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-name = $tmp.network-instance-name\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.l3-network\">\n","comments":"","outputs":1,"x":739.3293075561523,"y":694.7704095840454,"z":"904f855.2f5e8f8","wires":[["47b81159.539aa","88c61ad0.d333f"]]},{"id":"47b81159.539aa","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1006.3293495178223,"y":694.7703790664673,"z":"904f855.2f5e8f8","wires":[["849fecc5.099258"]]},{"id":"849fecc5.099258","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"'Error searching for l3-network with network-name =' + $tmp.network-instance-name + 'from AnAI'\" />","comments":"","x":1158.4404335021973,"y":694.9926080703735,"z":"904f855.2f5e8f8","wires":[]},{"id":"88c61ad0.d333f","type":"other","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1008.6072845458984,"y":732.2858028411865,"z":"904f855.2f5e8f8","wires":[["a3a611b6.7e9f98"]]},{"id":"a3a611b6.7e9f98","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"'Error l3-network with network-name =' + $tmp.network-instance-name + ' already exists in AnAI'\" />","comments":"","x":1159.6072425842285,"y":731.2857751846313,"z":"904f855.2f5e8f8","wires":[]},{"id":"8255a2a9.5c5808","type":"execute","name":"generate preload network url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.preload-network`\"/>\n <parameter name=\"outputPath\" value=\"tmp.pn-url\"/>\n <parameter name=\"target\" value=\"{network-name}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.network-instance-name`\"/>\n","comments":"","outputs":1,"x":700.6071548461914,"y":534.2857880592346,"z":"904f855.2f5e8f8","wires":[[]]},{"id":"f9dafdce.3c8a3","type":"execute","name":"execute RestApiCallNode - Get preload-network by network-name","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.pn-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"preload-data\" />\n\n","comments":"","outputs":1,"x":815.6072158813477,"y":569.5358800888062,"z":"904f855.2f5e8f8","wires":[["1a8fb816.080118","de38a578.c54d28"]]},{"id":"1a8fb816.080118","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1181.6072273254395,"y":574.2858438491821,"z":"904f855.2f5e8f8","wires":[["f2b3d346.87f28"]]},{"id":"f2b3d346.87f28","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1351.6071815490723,"y":573.7857294082642,"z":"904f855.2f5e8f8","wires":[[]]},{"id":"de38a578.c54d28","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1177.4589881896973,"y":606.3519020080566,"z":"904f855.2f5e8f8","wires":[["86b0c28f.440d28"]]},{"id":"86b0c28f.440d28","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"'Error: No preload-network found with network-name =' + $tmp.network-instance-name + ' in md-sal'\" />","comments":"","x":1355.6071853637695,"y":606.2858171463013,"z":"904f855.2f5e8f8","wires":[]},{"id":"d97278fc.3053e","type":"comment","name":"preload found in md-sal, aai network doesn't exist. Proceed to create.","info":"","comments":"","x":834.6071243286133,"y":629.2859487533569,"z":"904f855.2f5e8f8","wires":[]},{"id":"16662914.1e81f7","type":"save","name":"save AnAI - l3-network","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"network-name\" value=\"`$tmp.network-instance-name`\" />\n<parameter name='network-type' value=\"`$network-model.network-type`\" />\n<parameter name='network-role' value=\"`$network-model.network-role`\" />\n<parameter name='network-technology' value=\"`$network-model.network-technology`\" />\n<parameter name='is-bound-to-vpn' value=\"`$network-model.is-bound-to-vpn`\" />\n<parameter name=\"service-id\" value=\"`$network-topology-operation-input.service-information.service-id`\" />\n<parameter name=\"tenant-id\" value=\"`$network-topology-operation-input.network-request-input.tenant`\" />\n<parameter name=\"network-role-instance\" value=\"0\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />\n<parameter name=\"physical-network-name\" value=\"`$preload-data.preload-network-topology-information.physical-network-name`\" />\n<parameter name=\"is-provider-network\" value=\"`$preload-data.preload-network-topology-information.is-provider-network`\" />\n<parameter name=\"is-shared-network\" value=\"`$preload-data.preload-network-topology-information.is-shared-network`\" />\n<parameter name=\"is-external-network\" value=\"`$preload-data.preload-network-topology-information.is-external-network`\" />\n<parameter name=\"selflink\" value=\"`$tmp.l3-network.self-link`\" />\n","comments":"","outputs":1,"x":1087.6789321899414,"y":862.4647035598755,"z":"904f855.2f5e8f8","wires":[["ae985daf.cc194","4833e133.eaab"]]},{"id":"ae985daf.cc194","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1291.4620971679688,"y":825.9800109863281,"z":"904f855.2f5e8f8","wires":[["f037d2da.e2da78"]]},{"id":"f037d2da.e2da78","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 save l3-network in AnAI with network-id = ' + $tmp.return.generate-l3network-network-id.uuid`\"/>","comments":"","x":1484.239646911621,"y":846.7577819824219,"z":"904f855.2f5e8f8","wires":[]},{"id":"685cc7cd.396018","type":"set","name":"set: tmp.error-message to \"\"","xml":"<set>\n\t<parameter name=\"tmp.error-message\" value=\"\"/>","comments":"","x":704.9851989746094,"y":658.7666625976562,"z":"904f855.2f5e8f8","wires":[]},{"id":"4833e133.eaab","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1301.5569381713867,"y":867.3384561538696,"z":"904f855.2f5e8f8","wires":[["f037d2da.e2da78"]]},{"id":"899c4fe3.7f9af8","type":"switchNode","name":"switch ... PRELOAD subnets_length","xml":"<switch test=\"`$preload-data.preload-network-topology-information.subnets_length`\">","comments":"","outputs":1,"x":733.3571853637695,"y":995.4285650253296,"z":"904f855.2f5e8f8","wires":[["b535960c.037"]]},{"id":"b535960c.037","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":994.8016357421875,"y":995.2063007354736,"z":"904f855.2f5e8f8","wires":[["20af37fa.7e239"]]},{"id":"20af37fa.7e239","type":"set","name":"set PRELOAD subnets[] = 0","xml":"<set>\n<parameter name=\"preload-data.preload-network-topology-information.subnets_length\" value=\"0\" />\n","comments":"","x":1228.3572447035049,"y":995.206321398417,"z":"904f855.2f5e8f8","wires":[]},{"id":"a4c0d0b4.fb2228","type":"for","name":"for loop i - PRELOAD subnets","xml":"<for index=\"i\" start=\"0\" end=\"`$preload-data.preload-network-topology-information.subnets_length`\">\n","comments":"","outputs":1,"x":714.1072463989258,"y":1087.4287095069885,"z":"904f855.2f5e8f8","wires":[["8602f731.72b7c8"]]},{"id":"8602f731.72b7c8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":971.1058654785156,"y":1087.4377207756042,"z":"904f855.2f5e8f8","wires":[["c7ed8c75.f11108","e7ad3a60.ccf05","75e2306b.a71d6","ca97996a.85c7f","3239fd87.45740a","fe762cff.ee4918","45e19eff.8708","18e3cafb.f22a2d","2d9b4f3.65a3a3"]]},{"id":"8bb52697.fd8018","type":"set","name":"set tmp.dhcpEnabled.boolean=false","xml":"<set>\n<parameter name=\"tmp.dhcpEnabled.boolean\" value=\"false\" />\n","comments":"","x":1745.1072463989258,"y":1127.4287095069885,"z":"904f855.2f5e8f8","wires":[]},{"id":"9dd6b81f.8e0e5","type":"set","name":"set tmp.dhcpEnabled.boolean=true","xml":"<set>\n<parameter name=\"tmp.dhcpEnabled.boolean\" value=\"true\" />\n","comments":"","x":1743.4247512817383,"y":1085.365159034729,"z":"904f855.2f5e8f8","wires":[]},{"id":"c7ed8c75.f11108","type":"switchNode","name":"switch: PRELOAD dhcp-enabled","xml":"<switch test=\"`$preload-data.preload-network-topology-information.subnets[$i].dhcp-enabled`\">","comments":"","outputs":1,"x":1235.4247512817383,"y":1084.8713846206665,"z":"904f855.2f5e8f8","wires":[["19d4b935.0a36c7","854d9609.d675e"]]},{"id":"19d4b935.0a36c7","type":"other","name":"Y","xml":"<outcome value='Y'>","comments":"","outputs":1,"x":1492.6470947265625,"y":1085.0937051773071,"z":"904f855.2f5e8f8","wires":[["9dd6b81f.8e0e5"]]},{"id":"854d9609.d675e","type":"other","name":"N","xml":"<outcome value='N'>","comments":"","outputs":1,"x":1492.5517654418945,"y":1126.9349265098572,"z":"904f855.2f5e8f8","wires":[["8bb52697.fd8018"]]},{"id":"e7ad3a60.ccf05","type":"switchNode","name":"switch: PRELOAD addr-from-start","xml":"<switch test=\"`$preload-data.preload-network-topology-information.subnets[$i].addr-from-start`\">","comments":"","outputs":1,"x":1241.675163269043,"y":1241.6893377304077,"z":"904f855.2f5e8f8","wires":[["5ececd95.cb981c","c803a7a5.ad9e38","4d4043ed.bbe3f4"]]},{"id":"5ececd95.cb981c","type":"other","name":"Y","xml":"<outcome value='Y'>","comments":"","outputs":1,"x":1495.8974914550781,"y":1199.6259698867798,"z":"904f855.2f5e8f8","wires":[["c8aeb545.ec2978"]]},{"id":"c803a7a5.ad9e38","type":"other","name":"N","xml":"<outcome value='N'>","comments":"","outputs":1,"x":1495.8021545410156,"y":1284.181456565857,"z":"904f855.2f5e8f8","wires":[["7c696201.cb9d54"]]},{"id":"7c696201.cb9d54","type":"set","name":"set tmp.addrFromStart.boolean=false","xml":"<set>\n<parameter name=\"tmp.addrFromStart.boolean\" value=\"false\" />\n","comments":"","x":1741.5004806518555,"y":1284.6751956939697,"z":"904f855.2f5e8f8","wires":[]},{"id":"c8aeb545.ec2978","type":"set","name":"set tmp.addrFromStart.boolean=true","xml":"<set>\n<parameter name=\"tmp.addrFromStart.boolean\" value=\"true\" />\n","comments":"","x":1746.675148010254,"y":1199.8974237442017,"z":"904f855.2f5e8f8","wires":[]},{"id":"4d4043ed.bbe3f4","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":1494.9608612060547,"y":1241.260908126831,"z":"904f855.2f5e8f8","wires":[["c8aeb545.ec2978"]]},{"id":"24c96fdf.aba0e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1479.1072463989258,"y":1550.4287095069885,"z":"904f855.2f5e8f8","wires":[["393be07f.91e3"]]},{"id":"ca97996a.85c7f","type":"switchNode","name":"switch test: PRELOAD gateway-address","xml":"<switch test=\"`$preload-data.preload-network-topology-information.subnets[$i].gateway-address`\">","comments":"","outputs":1,"x":1255.5000762939453,"y":1398.231457233429,"z":"904f855.2f5e8f8","wires":[["95fd72a7.7afd08"]]},{"id":"95fd72a7.7afd08","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":1495.9999828338623,"y":1398.2314133644104,"z":"904f855.2f5e8f8","wires":[["6e1d3211.0bee04"]]},{"id":"a1773e6f.77a1e","type":"GenericXML","name":"Execute: generate gateway-address","xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.ipAddressTools.IpAddressTool\" method=\"getGatewayAddress\">\n\t<parameter name=\"ipAddress\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].start-address`\" />\n\t<parameter name=\"ipVersion\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].ip-version`\" />\n\t<parameter name=\"subnet\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].cidr-mask`\" />\n\t<parameter name=\"ctxVariable\" value=\"tmp.return.generate.gateway-address\" />","comments":"","outputs":1,"x":1921.2499980926514,"y":1397.981420993805,"z":"904f855.2f5e8f8","wires":[["cbbe4a5f.1e968"]]},{"id":"6e1d3211.0bee04","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1646.7499904632568,"y":1398.2314238548279,"z":"904f855.2f5e8f8","wires":[["a1773e6f.77a1e","bd82e01.b8a6ea"]]},{"id":"75e2306b.a71d6","type":"set","name":"set tmp.gateway-address","xml":"<set>\n<parameter name=\"tmp.gateway-address\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].gateway-address`\" />\n","comments":"","x":1205.9999980926514,"y":1343.4814200401306,"z":"904f855.2f5e8f8","wires":[]},{"id":"bd82e01.b8a6ea","type":"set","name":"set tmp.gateway-address","xml":"<set>\n<parameter name=\"tmp.gateway-address\" value=\"`$tmp.return.generate.gateway-address`\" />\n","comments":"","x":1892.7499980926514,"y":1458.9814229011536,"z":"904f855.2f5e8f8","wires":[]},{"id":"393be07f.91e3","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":1678.5000743865967,"y":1550.0648274421692,"z":"904f855.2f5e8f8","wires":[["2e1587e6.6e5ca","10c680f7.aeae4f"]]},{"id":"2e1587e6.6e5ca","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving subnet in AnAI where subnet-id = ' + $tmp.return.generate-subnets-subnet-id.uuid`\"/>","comments":"","x":1917.599615097046,"y":1549.8147263526917,"z":"904f855.2f5e8f8","wires":[]},{"id":"3239fd87.45740a","type":"call","name":"call: generate-subnets-subnet-id","xml":"<call module=\"VNF-API\" rpc=\"generate-subnets-subnet-id\" mode=\"sync\" >\n","comments":"","outputs":1,"x":1230.614938735962,"y":1498.088562488556,"z":"904f855.2f5e8f8","wires":[["e7942995.6198b8"]]},{"id":"e7942995.6198b8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1480.3649234771729,"y":1498.3385529518127,"z":"904f855.2f5e8f8","wires":[["10c680f7.aeae4f"]]},{"id":"fe762cff.ee4918","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.return.generate-subnets-subnet-id.uuid\" >\n<!-- Create subnet object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.return.generate-subnets-subnet-id.uuid`\" />\n<parameter name=\"subnet-name\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].subnet-name`\" />\n<parameter name=\"subnet-role\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].subnet-role`\" />\n<parameter name=\"gateway-address\" value=\"`$tmp.gateway-address`\" />\n<parameter name=\"network-start-address\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].ip-version`\" />\n<parameter name=\"dhcp-start\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].dhcp-start-address`\" />\n<parameter name=\"dhcp-end\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].dhcp-end-address`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.dhcpEnabled.boolean`\" />\n<parameter name=\"ip-assignment-direction\" value=\"`$tmp.addrFromStart.boolean`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />","comments":"","outputs":1,"x":1229.490972518921,"y":1550.0802063941956,"z":"904f855.2f5e8f8","wires":[["24c96fdf.aba0e","49a6098a.a5c0b"]]},{"id":"49a6098a.a5c0b","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1486.4244785308838,"y":1597.1480813026428,"z":"904f855.2f5e8f8","wires":[["393be07f.91e3"]]},{"id":"cbbe4a5f.1e968","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2167.5434856414795,"y":1398.5052399635315,"z":"904f855.2f5e8f8","wires":[["10c680f7.aeae4f"]]},{"id":"45e19eff.8708","type":"switchNode","name":"switch host-routes_length","xml":"<switch test='`$preload-data.preload-network-topology-information.host-routes_length`'>\n","comments":"","outputs":1,"x":1224.107276916504,"y":1643.4287152290344,"z":"904f855.2f5e8f8","wires":[["c81c1b79.1b13c"]]},{"id":"c81c1b79.1b13c","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1464.678695678711,"y":1643.0001244544983,"z":"904f855.2f5e8f8","wires":[["b6cc66.b6850b98"]]},{"id":"b6cc66.b6850b98","type":"set","name":"set host-routes_length to 0","xml":"<set>\n<parameter name='preload-data.preload-network-topology-information.host-routes_length' value='0' />\n","comments":"","x":1691.821662902832,"y":1643.4285683631897,"z":"904f855.2f5e8f8","wires":[]},{"id":"77358c60.78d16c","type":"call","name":"call: generate-host-routes-host-route-id","xml":"<call module=\"GENERIC-RESOURCE-API\" rpc=\"generate-host-routes-host-route-id\" mode=\"sync\" >\n","comments":"","outputs":1,"x":1810.0160446166992,"y":1766.4289870262146,"z":"904f855.2f5e8f8","wires":[["413368b1.e1c6c"]]},{"id":"413368b1.e1c6c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2074.76602935791,"y":1766.6789774894714,"z":"904f855.2f5e8f8","wires":[["10c680f7.aeae4f"]]},{"id":"18e3cafb.f22a2d","type":"for","name":"for loop h - PRELOAD host-routes","xml":"<for index=\"h\" start=\"0\" end=\"`$preload-data.preload-network-topology-information.host-routes_length`\">\n","comments":"","outputs":1,"x":1229.7225723266602,"y":1769.5429739952087,"z":"904f855.2f5e8f8","wires":[["6f86d096.5b7ca"]]},{"id":"6f86d096.5b7ca","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1509.9606628417969,"y":1765.9713797569275,"z":"904f855.2f5e8f8","wires":[["77358c60.78d16c","d816e769.eaa37","f9fba56f.8a299"]]},{"id":"d816e769.eaa37","type":"set","name":"set tmp.local.subnet-id","xml":"<set>\n<parameter name=\"tmp.local.subnet-id\" value=\"`$tmp.return.generate-subnets-subnet-id.uuid`\" />\n","comments":"","x":1759.960563659668,"y":1702.971405506134,"z":"904f855.2f5e8f8","wires":[]},{"id":"dd067dea.d7e48","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2079.1073322296143,"y":1824.4288630485535,"z":"904f855.2f5e8f8","wires":[["b769acb0.ddfd88"]]},{"id":"b769acb0.ddfd88","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":2278.500160217285,"y":1824.0649809837341,"z":"904f855.2f5e8f8","wires":[["d96697d3.24a928","10c680f7.aeae4f"]]},{"id":"d96697d3.24a928","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving host-route in AnAI where host-route-id = ' + $tmp.return.generate-host-routes-host-route-id.uuid`\"/>","comments":"","x":2487.099769592285,"y":1823.8146152496338,"z":"904f855.2f5e8f8","wires":[]},{"id":"f9fba56f.8a299","type":"save","name":"save AnAI - host-routes.host-route","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"host-route\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.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<!-- Create host-route object -->\n<parameter name=\"host-route-id\" value=\"`$tmp.return.generate-host-routes-host-route-id.uuid`\" />\n<parameter name=\"route-prefix\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].host-routes[$h].route-prefix`\" />\n<parameter name=\"next-hop\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].host-routes[$h].next-hop`\" />","comments":"","outputs":1,"x":1803.4910583496094,"y":1824.0803599357605,"z":"904f855.2f5e8f8","wires":[["dd067dea.d7e48","25e6c104.427846"]]},{"id":"25e6c104.427846","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2087.6744651794434,"y":1872.3981447219849,"z":"904f855.2f5e8f8","wires":[["b769acb0.ddfd88"]]},{"id":"e3f5293b.03dee","type":"switchNode","name":"switch service-id","xml":"<switch test='`$tmp.l3-network.service-id`'>\n","comments":"","outputs":1,"x":680.9287490844727,"y":848.4644546508789,"z":"904f855.2f5e8f8","wires":[["3e11851a.61719a","be4f6ec9.f5675"]]},{"id":"3e11851a.61719a","type":"outcome","name":"outcome NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":869.9287490844727,"y":827.4644546508789,"z":"904f855.2f5e8f8","wires":[["f1b4df9f.d8d0e"]]},{"id":"be4f6ec9.f5675","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":844.9287490844727,"y":862.4644546508789,"z":"904f855.2f5e8f8","wires":[["16662914.1e81f7"]]},{"id":"f1b4df9f.d8d0e","type":"save","name":"save AnAI - l3-network","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"network-name\" value=\"`$tmp.network-instance-name`\" />\n<parameter name='network-type' value=\"`$tmp.l3-network.network-type`\" />\n<parameter name='network-role' value=\"`$tmp.l3-network.network-role`\" />\n<parameter name='network-technology' value=\"`$network-model.network-technology`\" />\n<parameter name=\"is-bound-to-vpn\" value=\"`$tmp.l3-network.is-bound-to-vpn-boolean`\" />\n<parameter name=\"tenant-id\" value=\"`$network-topology-operation-input.network-request-input.tenant`\" />\n<parameter name=\"network-role-instance\" value=\"0\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />\n<parameter name=\"physical-network-name\" value=\"`$preload-data.preload-network-topology-information.physical-network-name`\" />\n<parameter name=\"is-provider-network\" value=\"`$preload-data.preload-network-topology-information.is-provider-network`\" />\n<parameter name=\"is-shared-network\" value=\"`$preload-data.preload-network-topology-information.is-shared-network`\" />\n<parameter name=\"is-external-network\" value=\"`$preload-data.preload-network-topology-information.is-external-network`\" />\n<parameter name=\"selflink\" value=\"`$tmp.l3-network.self-link`\" />\n","comments":"","outputs":1,"x":1089.6786575317383,"y":829.9645071029663,"z":"904f855.2f5e8f8","wires":[["ae985daf.cc194","4833e133.eaab"]]},{"id":"d792a084.fab23","type":"save","name":"save relationship: tenant and cloud-region","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" \n\tforce=\"true\" \n\tlocal-only=\"false\">\n\t<!-- create relationship-list -->\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"tenant\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"cloud-region.cloud-owner\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.cloud-region.cloud-owner`\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$network-topology-operation-input.network-request-input.aic-cloud-region`\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"tenant.tenant-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$network-topology-operation-input.network-request-input.tenant`\" />\n\t<parameter name=\"relationship-list.relationship[1].related-to\" value=\"cloud-region\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"cloud-region.cloud-owner\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$prop.cloud-region.cloud-owner`\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[1].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[1].relationship-value\" value=\"`$network-topology-operation-input.network-request-input.aic-cloud-region`\" />\n\t\n\t","comments":"","outputs":1,"x":741.3571853637695,"y":2109.179002761841,"z":"904f855.2f5e8f8","wires":[["16175e24.e2a11a","34c93d4a.ebf89a"]]},{"id":"16175e24.e2a11a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":989.3571891784668,"y":2109.1789932250977,"z":"904f855.2f5e8f8","wires":[["71f7c6e5.f11fd"]]},{"id":"71f7c6e5.f11fd","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1177.7500171661377,"y":2108.8151111602783,"z":"904f855.2f5e8f8","wires":[["28674d86.03d222","10c680f7.aeae4f"]]},{"id":"28674d86.03d222","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving tenant and cloud-region relationship for l3-network in AnAI where network-id = ' + $tmp.l3-network.network-id`\"/>","comments":"","x":1387.7381744384766,"y":2106.628755569458,"z":"904f855.2f5e8f8","wires":[]},{"id":"34c93d4a.ebf89a","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":997.3650321960449,"y":2151.012315750122,"z":"904f855.2f5e8f8","wires":[["71f7c6e5.f11fd"]]},{"id":"cc0b4bd9.424d18","type":"set","name":"set l3-network","xml":"<set>\n<parameter name='tmp.l3-network.network-name' value=\"`$tmp.network-instance-name`\" />\n<parameter name='tmp.l3-network.network-type' value=\"`$preload-data.preload-network-topology-information.network-topology-identifier-structure.network-type`\" />\n<parameter name=\"tmp.l3-network.physical-network-name\" value=\"`$preload-data.preload-network-topology-information.physical-network-name`\" />\n<parameter name=\"tmp.l3-network.is-provider-network\" value=\"`$preload-data.preload-network-topology-information.is-provider-network`\" />\n<parameter name=\"tmp.l3-network.is-shared-network\" value=\"`$preload-data.preload-network-topology-information.is-shared-network`\" />\n<parameter name=\"tmp.l3-network.is-external-network\" value=\"`$preload-data.preload-network-topology-information.network-topology-identifier-structure.network-type`\" />\n<parameter name='tmp.l3-network.network-role' value=\"`$preload-data.preload-network-topology-information.network-topology-identifier-structure.network-role`\" />\n<parameter name='tmp.l3-network.network-technology' value=\"`$preload-data.preload-network-topology-information.network-topology-identifier-structure.network-technology`\" />\n<parameter name='tmp.l3-network.is-bound-to-vpn' value=\"`$network-model.is-bound-to-vpn`\" />\n<parameter name=\"tmp.l3-network.tenant-id\" value=\"`$network-topology-operation-input.network-request-input.tenant`\" />\n<parameter name=\"tmp.l3-network.network-role-instance\" value=\"0\" />\n<parameter name='tmp.l3-network.orchestration-status' value=\"PendingCreate\" />\n<parameter name='tmp.l3-network.model-invariant-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\" />\n<parameter name='tmp.l3-network.model-version-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-version`\" />\n<parameter name='tmp.l3-network.model-customization-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\" />\n<parameter name='tmp.l3-network.eipam-v6-address-plan' value=\"`$network-model.eipam-v6-address-plan`\" />\n<parameter name='tmp.l3-network.eipam-v4-address-plan' value=\"`$network-model.eipam-v4-address-plan`\" />\n<parameter name='tmp.l3-network.service-id' value=\"`$service-data.service-information.service-id`\" />\n<parameter name='tmp.l3-network.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $service-data.service-information.service-instance-id\n + '/service-data/networks/network/'\n + $tmp.l3-network.network-id\n + '/network-data/network-topology/'` \" />\n","comments":"","x":677.9287719726562,"y":758.2145385742188,"z":"904f855.2f5e8f8","wires":[]},{"id":"fbeedbdb.9915b","type":"set","name":"copy input to service-data","xml":"<set>\n<parameter name='service-data.networks.network[$nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-request-input.' value='`$network-topology-operation-input.network-request-input.`' />\n","comments":"","x":691.4642944335938,"y":390.00001096725464,"z":"904f855.2f5e8f8","wires":[]},{"id":"9af57339.b5c73","type":"set","name":"set onap-model-info","xml":"<set>\n<parameter name='tmp.l3-network.model-invariant-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\" />\n<parameter name='tmp.l3-network.model-version-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-version`\" />\n<parameter name='tmp.l3-network.model-customization-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\" />\n<parameter name='s-onap-model-information.model-invariant-uuid' value='`$service-model.invariant-uuid`' />\n<parameter name='s-onap-model-information.model-version' value='`$service-model.version`' />\n<parameter name='s-onap-model-information.model-uuid' value='`$service-model.service-uuid`' />\n<parameter name='s-onap-model-information.model-name' value='`$service-model.name`' />\n<parameter name='n-onap-model-information.model-invariant-uuid' value='`$network-model.invariant-uuid`' />\n<parameter name='n-onap-model-information.model-version' value='`$network-model.version`' />\n<parameter name='n-onap-model-information.model-uuid' value='`$network-model.uuid`' />\n<parameter name='n-onap-model-information.model-name' value='`$network-model.name`' />","comments":"","x":675.6347427368164,"y":420.0634126663208,"z":"904f855.2f5e8f8","wires":[]},{"id":"cae6b67f.073328","type":"set","name":"set onap-model-info with mysql data","xml":"<set>\n<parameter name='service-data.networks.network[$nidx].network-data.service-information.ecomp-model-information.' value=\"`$s-onap-model-information.`\" />\n<parameter name='service-data.networks.network[$nidx].network-data.network-information.ecomp-model-information.' value=\"`$n-onap-model-information.`\" />\n","comments":"","x":724.8847312927246,"y":450.563410282135,"z":"904f855.2f5e8f8","wires":[]},{"id":"ad534b95.44473","type":"set","name":"set object-path","xml":"<set>\n<parameter name='network-object-path'\n value=\"`$tmp.l3-network.self-link`\"/>\n \n","comments":"","x":660.0010604858398,"y":3678.7512464523315,"z":"904f855.2f5e8f8","wires":[]},{"id":"1fa70774.12d5c1","type":"set","name":"set networkId","xml":"<set>\n<parameter name='networkId' value='`$tmp.l3-network.network-id`' />\n","comments":"","x":656.429557800293,"y":3635.036647796631,"z":"904f855.2f5e8f8","wires":[]},{"id":"27110277.784596","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name='' value='' />\n","comments":"","x":656.0010375976562,"y":3809.7509765625,"z":"904f855.2f5e8f8","wires":[]},{"id":"cd67760d.3b296","type":"delete","name":"delete l3-network","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\">","comments":"","outputs":1,"x":2557.2512741088867,"y":3742.7511587142944,"z":"904f855.2f5e8f8","wires":[[]]},{"id":"e1d80a1a.7969e8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Error writing to l3-netework - ' + $tmp.error-message`\"/>","comments":"","x":2544.188606262207,"y":3785.947202682495,"z":"904f855.2f5e8f8","wires":[]},{"id":"10c680f7.aeae4f","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2367.427536010742,"y":3743.0027475357056,"z":"904f855.2f5e8f8","wires":[["cd67760d.3b296","e1d80a1a.7969e8"]]},{"id":"2d9b4f3.65a3a3","type":"set","name":"set tmp.local.network-id","xml":"<set>\n<parameter name=\"tmp.local.network-id\" value=\"`$tmp.l3-network.network-id`\" />\n","comments":"","x":1204.2101726531982,"y":1448.8384919166565,"z":"904f855.2f5e8f8","wires":[]},{"id":"6fca91a9.21355","type":"set","name":"set network-level-oper-status","xml":"<set>\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />\n","comments":"","x":701.2500610351562,"y":3725.2502098083496,"z":"904f855.2f5e8f8","wires":[]},{"id":"1375dc08.d1881c","type":"for","name":"for loop i - PRELOAD vpn-bindings","xml":"<for index=\"i\" start=\"0\" end=\"`$preload-data.preload-network-topology-information.vpn-bindings_length`\">\n","comments":"","outputs":1,"x":731.001091003418,"y":2297.751326560974,"z":"904f855.2f5e8f8","wires":[["574d1c0a.691b24"]]},{"id":"574d1c0a.691b24","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":972.7788696289062,"y":2298.0013284683228,"z":"904f855.2f5e8f8","wires":[["fa2bbaf6.dd3228","200741d1.dc8a7e","a65f567d.8acfe8"]]},{"id":"41a8cddd.36fdfc","type":"save","name":"save relationship: vpn_bindings","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" \n\tforce=\"true\" \n\tlocal-only=\"false\">\n\t\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"vpn-binding\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"vpn-binding.vpn-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.vpn-binding-id`\" />","comments":"","outputs":1,"x":1677.1637802124023,"y":2575.8306770324707,"z":"904f855.2f5e8f8","wires":[["8d07f24a.1fe3a8","4a84f29d.fed7ac","ea15ac27.f9401"]]},{"id":"e618d649.0c64a8","type":"switchNode","name":"switch ... PRELOAD vpn-bindings[]","xml":"<switch test=\"`$preload-data.preload-network-topology-information.vpn-bindings_length`\">","comments":"","outputs":1,"x":731.3785341050889,"y":2246.3326400121055,"z":"904f855.2f5e8f8","wires":[["74b70b65.70671c"]]},{"id":"74b70b65.70671c","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":951.8229844835068,"y":2246.1103757222495,"z":"904f855.2f5e8f8","wires":[["73ec0d7b.d3f2a4"]]},{"id":"73ec0d7b.d3f2a4","type":"set","name":"set vpn-bindings[] = 0","xml":"<set>\n<parameter name=\"preload-data.preload-network-topology-information.vpn-bindings_length\" value=\"0\" />\n","comments":"","x":1146.3785934448242,"y":2246.110396385193,"z":"904f855.2f5e8f8","wires":[]},{"id":"ac65277d.2e0e68","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1915.2632484436035,"y":2481.6006326675415,"z":"904f855.2f5e8f8","wires":[["69a18f95.bb6bb"]]},{"id":"d2cfe57b.a35e58","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1922.7632522583008,"y":2434.100631713867,"z":"904f855.2f5e8f8","wires":[["69a18f95.bb6bb"]]},{"id":"69a18f95.bb6bb","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2098.263252258301,"y":2481.350633621216,"z":"904f855.2f5e8f8","wires":[["d6496602.bf5e48","10c680f7.aeae4f"]]},{"id":"d6496602.bf5e48","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query vpn-bindings from AnAI where vpn-binding-id = ' + $preload-data.preload-network-topology-information.vpn-bindings[$i].vpn-binding-id`\"/>","comments":"","x":2320.36279296875,"y":2481.1005325317383,"z":"904f855.2f5e8f8","wires":[]},{"id":"fa2bbaf6.dd3228","type":"switchNode","name":"switch: PRELOAD vpn-binding-id","xml":"<switch test=\"`$preload-data.preload-network-topology-information.vpn-bindings[$i].vpn-binding-id`\">","comments":"","outputs":1,"x":1251.263256072998,"y":2344.850570678711,"z":"904f855.2f5e8f8","wires":[["30879991.8d2a86"]]},{"id":"30879991.8d2a86","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1464.7632637023926,"y":2344.6005716323853,"z":"904f855.2f5e8f8","wires":[["bcd7dc4e.537ee8"]]},{"id":"bcd7dc4e.537ee8","type":"set","name":"set tmp.vpn-binding-id","xml":"<set>\n<parameter name=\"tmp.vpn-binding-id\" value=\"`$preload-data.preload-network-topology-information.vpn-bindings[$i].vpn-binding-id`\" />\n","comments":"","x":1647.2632637023926,"y":2344.6005725860596,"z":"904f855.2f5e8f8","wires":[]},{"id":"14075edf.8f17f1","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1918.2632484436035,"y":2389.350631713867,"z":"904f855.2f5e8f8","wires":[["411a0ec1.9a0e68"]]},{"id":"8d07f24a.1fe3a8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1902.2366561889648,"y":2575.306263923645,"z":"904f855.2f5e8f8","wires":[["ec08a067.d71d18"]]},{"id":"ec08a067.d71d18","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2090.129535675049,"y":2574.942371368408,"z":"904f855.2f5e8f8","wires":[["417f4c1f.354f84","10c680f7.aeae4f"]]},{"id":"417f4c1f.354f84","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving vpn-binding relationship for l3-network in AnAI where vpn-id = ' + $tmp.vpn-binding-id`\"/>","comments":"","x":2303.229076385498,"y":2575.6922702789307,"z":"904f855.2f5e8f8","wires":[]},{"id":"200741d1.dc8a7e","type":"switchNode","name":"switch: tmp.vpn-binding-id != NULL","xml":"<switch test=\"`$tmp.vpn-binding-id != ''`\">","comments":"","outputs":1,"x":1000.2633056640625,"y":2403.26708984375,"z":"904f855.2f5e8f8","wires":[["ce353cf6.29839"]]},{"id":"ce353cf6.29839","type":"other","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1234.01318359375,"y":2403.26708984375,"z":"904f855.2f5e8f8","wires":[["d5c07d00.bbbf9"]]},{"id":"a65f567d.8acfe8","type":"set","name":"unset tmp.vpn-binding-id","xml":"<set>\n<parameter name=\"tmp.vpn-binding-id\" value=\"\" />\n","comments":"","x":1225.3385620117188,"y":2298.544904232025,"z":"904f855.2f5e8f8","wires":[]},{"id":"4a84f29d.fed7ac","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1905.8941268920898,"y":2662.16392993927,"z":"904f855.2f5e8f8","wires":[["e2bb2c87.3d244"]]},{"id":"e2bb2c87.3d244","type":"set","name":"set tmp.is-bound-to-vpn","xml":"<set>\n<parameter name=\"tmp.is-bound-to-vpn\" value=\"true\" />\n","comments":"","x":2096.39412689209,"y":2662.16392993927,"z":"904f855.2f5e8f8","wires":[]},{"id":"ea15ac27.f9401","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1910.3225936889648,"y":2617.9575357437134,"z":"904f855.2f5e8f8","wires":[["ec08a067.d71d18"]]},{"id":"411a0ec1.9a0e68","type":"switchNode","name":"switch: tmp.AnAI.vpn-binding.vpn-id","xml":"<switch test=\"`$tmp.AnAI.vpn-binding.vpn-id`\" >","comments":"","outputs":1,"x":2134.2711181640625,"y":2388.850341796875,"z":"904f855.2f5e8f8","wires":[["c1c55f5c.7e6848"]]},{"id":"c1c55f5c.7e6848","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2376.0211181640625,"y":2389.3504695892334,"z":"904f855.2f5e8f8","wires":[["9a952383.71055"]]},{"id":"9a952383.71055","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2555.1337890625,"y":2389.750732421875,"z":"904f855.2f5e8f8","wires":[["6f76fb55.547514","10c680f7.aeae4f"]]},{"id":"6f76fb55.547514","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query vpn-bindings from AnAI where vpn-binding-id = ' + $tmp.vpn-binding-id + '.'`\"/>","comments":"","x":2770.633758544922,"y":2389.7507152557373,"z":"904f855.2f5e8f8","wires":[]},{"id":"98f1afcd.7f17e","type":"switchNode","name":"switch ... PRELOAD network-policy[]","xml":"<switch test=\"`$preload-data.preload-network-topology-information.network-policy_length`\">","comments":"","outputs":1,"x":739.7509689331055,"y":2681.50096988678,"z":"904f855.2f5e8f8","wires":[["fe947295.cc353"]]},{"id":"fe947295.cc353","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":969.1954193115234,"y":2681.278705596924,"z":"904f855.2f5e8f8","wires":[["7d31c197.0306e8"]]},{"id":"7d31c197.0306e8","type":"set","name":"set network-policy[] = 0","xml":"<set>\n<parameter name='preload-data.preload-network-topology-information.network-policy_length' value='0' />\n","comments":"","x":1163.7510282728408,"y":2681.278726259867,"z":"904f855.2f5e8f8","wires":[]},{"id":"31fdd3c0.8004c4","type":"for","name":"for loop i - PRELOAD network-policy","xml":"<for index=\"i\" start=\"0\" end=\"`$preload-data.preload-network-topology-information.network-policy_length`\">\n","comments":"","outputs":1,"x":739.1082305908203,"y":2727.0723609924316,"z":"904f855.2f5e8f8","wires":[["816cabff.5b8288"]]},{"id":"816cabff.5b8288","type":"switchNode","name":"switch: PRELOAD network-policy-fqdn != NULL","xml":"<switch test=\"`$preload-data.preload-network-topology-information.network-policy[$i].network-policy-fqdn != ''`\">","comments":"","outputs":1,"x":1095.3704893324111,"y":2727.4216190973916,"z":"904f855.2f5e8f8","wires":[["6c21593a.79f8c8"]]},{"id":"6c21593a.79f8c8","type":"other","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1361.1204893324111,"y":2727.6716190973916,"z":"904f855.2f5e8f8","wires":[["ebc6ee05.37034"]]},{"id":"ebc6ee05.37034","type":"save","name":"query AnAI - network-policy","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\" \n\t\tkey=\"network-policy.network-policy-fqdn = $preload-data.preload-network-topology-information.network-policy[$i].network-policy-fqdn\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.AnAI.network-policy\">","comments":"","outputs":1,"x":1570.3704931471084,"y":2727.6716190973916,"z":"904f855.2f5e8f8","wires":[["fd584772.5251c8","107c735d.16382d","6dd4ddb8.3db9bc"]]},{"id":"fd584772.5251c8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1778.3705770704482,"y":2768.671628634135,"z":"904f855.2f5e8f8","wires":[["5a78ea1e.a9aff4"]]},{"id":"107c735d.16382d","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1783.8705808851455,"y":2727.1716276804605,"z":"904f855.2f5e8f8","wires":[["5a78ea1e.a9aff4"]]},{"id":"5a78ea1e.a9aff4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1948.3705808851455,"y":2768.421629587809,"z":"904f855.2f5e8f8","wires":[["e4f69cc5.48bbb","10c680f7.aeae4f"]]},{"id":"e4f69cc5.48bbb","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query network-policy n AnAI where network-policy-fqdn = ' + $preload-data.preload-network-topology-information.network-policy[$i].network-policy-fqdn`\"/>","comments":"","x":2157.4701215955947,"y":2768.1715284983316,"z":"904f855.2f5e8f8","wires":[]},{"id":"6dd4ddb8.3db9bc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1780.9017851087783,"y":2813.0007015864053,"z":"904f855.2f5e8f8","wires":[["2573614f.5ccd5e"]]},{"id":"2573614f.5ccd5e","type":"switchNode","name":"switch: tmp.AnAI.network-policy.network-policy-id","xml":"<switch test=\"`$tmp.AnAI.network-policy.network-policy-id`\" >","comments":"","outputs":1,"x":2058.981056213379,"y":2812.5005588531494,"z":"904f855.2f5e8f8","wires":[["d95b3655.f3c99","3bf15b8c.2b4dec"]]},{"id":"d95b3655.f3c99","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2332.731056213379,"y":2812.0005588531494,"z":"904f855.2f5e8f8","wires":[["a6733916.0987f"]]},{"id":"3bf15b8c.2b4dec","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2332.223213195801,"y":2859.250657081604,"z":"904f855.2f5e8f8","wires":[["c4ba6c4d.50611"]]},{"id":"ae3f6cc0.f931c","type":"switchNode","name":"switch ... PRELOAD route-table-reference[]","xml":"<switch test=\"`$preload-data.preload-network-topology-information.route-table-reference_length`\">","comments":"","outputs":1,"x":757.4017868041992,"y":2880.0006036758423,"z":"904f855.2f5e8f8","wires":[["39c5aea5.9800ea"]]},{"id":"39c5aea5.9800ea","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":1012.8462371826172,"y":2879.7783393859863,"z":"904f855.2f5e8f8","wires":[["ac917dd3.d158b"]]},{"id":"ac917dd3.d158b","type":"set","name":"set route-table-reference[] = 0","xml":"<set>\n<parameter name='preload-data.preload-network-topology-information.route-table-reference_length' value='0' />\n","comments":"","x":1217.1519088745117,"y":2878.528371810913,"z":"904f855.2f5e8f8","wires":[]},{"id":"c33e48fe.f40f2","type":"for","name":"for loop i - PRELOAD route-table-reference","xml":"<for index=\"i\" start=\"0\" end=\"`$preload-data.preload-network-topology-information.route-table-reference_length`\">\n","comments":"","outputs":1,"x":755.7590484619141,"y":2927.571994781494,"z":"904f855.2f5e8f8","wires":[["1d90a206.a94ee6"]]},{"id":"1d90a206.a94ee6","type":"switchNode","name":"switch: PRELOAD route-table-reference-fqdn != NULL","xml":"<switch test=\"`$preload-data.preload-network-topology-information.route-table-reference[$i].route-table-reference-fqdn != ''`\">","comments":"","outputs":1,"x":1141.354637145996,"y":2927.2545766830444,"z":"904f855.2f5e8f8","wires":[["d931b196.bb13c8"]]},{"id":"d931b196.bb13c8","type":"other","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1407.104637145996,"y":2927.5045766830444,"z":"904f855.2f5e8f8","wires":[["c0151afe.ccf7d"]]},{"id":"c0151afe.ccf7d","type":"save","name":"query AnAI - route-table-reference","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"route-table-reference\" \n\t\tkey=\"route-table-reference.route-table-reference-fqdn = $preload-data.preload-network-topology-information.route-table-reference[$i].route-table-reference-fqdn\" \n\t\tpfx=\"tmp.AnAI.route-table-reference\">","comments":"","outputs":1,"x":1636.3546409606934,"y":2927.5045766830444,"z":"904f855.2f5e8f8","wires":[["1b0d4ab1.0fe45d","da9c4c3f.55e8f8","173ff66c.769472"]]},{"id":"1b0d4ab1.0fe45d","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1862.3547248840332,"y":2968.5045862197876,"z":"904f855.2f5e8f8","wires":[["1a466fe2.b5678"]]},{"id":"da9c4c3f.55e8f8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1867.8547286987305,"y":2927.0045852661133,"z":"904f855.2f5e8f8","wires":[["1a466fe2.b5678"]]},{"id":"1a466fe2.b5678","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2032.3547286987305,"y":2968.254587173462,"z":"904f855.2f5e8f8","wires":[["20cd2a36.de0a3e","10c680f7.aeae4f"]]},{"id":"20cd2a36.de0a3e","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query network-policy n AnAI where network-policy-fqdn = ' + $preload-data.preload-network-topology-information.network-policy[$i].network-policy-fqdn`\"/>","comments":"","x":2241.4542694091797,"y":2968.0044860839844,"z":"904f855.2f5e8f8","wires":[]},{"id":"173ff66c.769472","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1864.8859329223633,"y":3012.833659172058,"z":"904f855.2f5e8f8","wires":[["2f54d5ed.3e6bf2"]]},{"id":"2f54d5ed.3e6bf2","type":"switchNode","name":"switch: tmp.AnAI.route-table-reference.route-table-reference-id","xml":"<switch test=\"`$tmp.AnAI.route-table-reference.route-table-reference-id`\" >","comments":"","outputs":1,"x":2182.965204026964,"y":3012.3335164388022,"z":"904f855.2f5e8f8","wires":[["a030e283.5654b8","bcbd20c4.9a6c98"]]},{"id":"c4ba6c4d.50611","type":"save","name":"save relationship: network-policy","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"network-policy\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"network-policy.network-policy-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.AnAI.network-policy.network-policy-id`\" />","comments":"","outputs":1,"x":2562.2509689331055,"y":2859.00096988678,"z":"904f855.2f5e8f8","wires":[["a7e93fe1.c4cfa","e5d2edf9.e5817"]]},{"id":"a7e93fe1.c4cfa","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2785.323844909668,"y":2858.476556777954,"z":"904f855.2f5e8f8","wires":[["fe22bb02.ebcb9"]]},{"id":"fe22bb02.ebcb9","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2965.216724395752,"y":2858.1126642227173,"z":"904f855.2f5e8f8","wires":[["66d9ed51.cfd7e4","10c680f7.aeae4f"]]},{"id":"66d9ed51.cfd7e4","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving network-policy relationship for l3-network in AnAI where network-policy-id = ' + $tmp.AnAI.network-policy.network-policy-id`\"/>","comments":"","x":3188.316265106201,"y":2858.8625631332397,"z":"904f855.2f5e8f8","wires":[]},{"id":"e5d2edf9.e5817","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2793.0602968004014,"y":2900.957081158956,"z":"904f855.2f5e8f8","wires":[["fe22bb02.ebcb9"]]},{"id":"a6733916.0987f","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2504.3181076049805,"y":2810.9569025039673,"z":"904f855.2f5e8f8","wires":[["c4ae766a.d2c618","10c680f7.aeae4f"]]},{"id":"c4ae766a.d2c618","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query newtork-policy from AnAI where network-policy-fqdn = ' + $preload-data.preload-network-topology-information.network-policy[$i].network-policy-fqdn + '. It is likely that the same network-policy-fqdn points to more than one network-policy objects in AnAI.'`\"/>","comments":"","x":2749.468818664551,"y":2810.45645904541,"z":"904f855.2f5e8f8","wires":[]},{"id":"94618525.84434","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query route-table-reference from AnAI where route-table-reference-fqdn = ' + $preload-data.preload-network-topology-information.route-table-reference[$i].route-table-reference-fqdn + '. It is likely that the same route-table-reference-fqdn points to more than one route-table-reference objects in AnAI.'`\"/>","comments":"","x":2934.7509689331055,"y":3001.500725746155,"z":"904f855.2f5e8f8","wires":[]},{"id":"857a389b.9483f","type":"save","name":"save relationship: route-table-reference","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"route-table-reference\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"route-table-reference.route-table-reference-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.AnAI.route-table-reference.route-table-reference-id`\" />","comments":"","outputs":1,"x":2752.834571838379,"y":3051.0445041656494,"z":"904f855.2f5e8f8","wires":[["640cf074.779e4","f83c3398.a3e3c8"]]},{"id":"640cf074.779e4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3007.9074478149414,"y":3050.5200910568237,"z":"904f855.2f5e8f8","wires":[["4f94a64b.a935a8"]]},{"id":"4f94a64b.a935a8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3187.8003273010254,"y":3050.156198501587,"z":"904f855.2f5e8f8","wires":[["320aaa6d.7cc736","10c680f7.aeae4f"]]},{"id":"320aaa6d.7cc736","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving route-table-reference relationship for l3-network in AnAI where route-table-reference-id = ' + $tmp.AnAI.route-table-reference.route-table-reference-id`\"/>","comments":"","x":3411.8998947143555,"y":3049.9061212539673,"z":"904f855.2f5e8f8","wires":[]},{"id":"f83c3398.a3e3c8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":3015.643899705675,"y":3093.0006154378257,"z":"904f855.2f5e8f8","wires":[["4f94a64b.a935a8"]]},{"id":"a030e283.5654b8","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2519.901710510254,"y":3003.500436782837,"z":"904f855.2f5e8f8","wires":[["9c548e59.9b55e"]]},{"id":"9c548e59.9b55e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2684.901710510254,"y":3003.000436782837,"z":"904f855.2f5e8f8","wires":[["94618525.84434","10c680f7.aeae4f"]]},{"id":"bcbd20c4.9a6c98","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2519.393867492676,"y":3050.7505350112915,"z":"904f855.2f5e8f8","wires":[["857a389b.9483f"]]},{"id":"4ed44f0b.2faec8","type":"save","name":"update AnAI - l3-network","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<parameter name=\"is-bound-to-vpn\" value=\"true\" />","comments":"","outputs":1,"x":1147.8759689331055,"y":3049.000725746155,"z":"904f855.2f5e8f8","wires":[["b5e3d12a.6f35a8","fcaa4883.a338b8"]]},{"id":"b5e3d12a.6f35a8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1344.1591262817383,"y":3049.016043663025,"z":"904f855.2f5e8f8","wires":[["f4cb6f65.8fc2b"]]},{"id":"1edbf6d.7460609","type":"switchNode","name":"switch ... tmp.is-bound-to-vpn","xml":"<switch test=\"`$tmp.is-bound-to-vpn`\">","comments":"","outputs":1,"x":710.0188674926758,"y":3049.1436138153076,"z":"904f855.2f5e8f8","wires":[["b8c162bf.bfffb8"]]},{"id":"b8c162bf.bfffb8","type":"outcome","name":"true","xml":"<outcome value=\"true\">","comments":"","outputs":1,"x":929.4633178710938,"y":3048.9213495254517,"z":"904f855.2f5e8f8","wires":[["4ed44f0b.2faec8"]]},{"id":"f4cb6f65.8fc2b","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1556.2688064575195,"y":3049.393569946289,"z":"904f855.2f5e8f8","wires":[["9f9ea316.b821c8","10c680f7.aeae4f"]]},{"id":"9f9ea316.b821c8","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while updating l3-network is-bound-to-vpn in AnAI where network-id = ' + $tmp.return.generate-l3network-network-id.uuid`\"/>","comments":"","x":1774.7687911987305,"y":3049.14354801178,"z":"904f855.2f5e8f8","wires":[]},{"id":"fcaa4883.a338b8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1351.6457595825195,"y":3090.115693092346,"z":"904f855.2f5e8f8","wires":[["f4cb6f65.8fc2b"]]},{"id":"c9e16987.b4c4a8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":990.3972854614258,"y":3199.8412466049194,"z":"904f855.2f5e8f8","wires":[["e48c4af.29ae6b8"]]},{"id":"e48c4af.29ae6b8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1170.2901649475098,"y":3199.4773540496826,"z":"904f855.2f5e8f8","wires":[["815fdd3b.9aa418","10c680f7.aeae4f"]]},{"id":"815fdd3b.9aa418","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving service-instance relationship for l3-network in AnAI where service-instance-id = ' + $network-topology-operation-input.service-information.service-instance-id`\"/>","comments":"","x":1408.3897323608398,"y":3199.227276802063,"z":"904f855.2f5e8f8","wires":[]},{"id":"27c04aed.76d49e","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":998.1337373521592,"y":3242.321770985922,"z":"904f855.2f5e8f8","wires":[["e48c4af.29ae6b8"]]},{"id":"d7a7e7e8.a8b248","type":"save","name":"save relationship: service-instance","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"service-instance\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"customer.global-customer-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$service-data.service-information.global-customer-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"service-subscription.service-type\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$service-data.service-information.subscription-service-type`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"service-instance.service-instance-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$service-data.service-information.service-instance-id`\" />","comments":"","outputs":1,"x":733.3760604858398,"y":3198.250744819641,"z":"904f855.2f5e8f8","wires":[["c9e16987.b4c4a8","27c04aed.76d49e"]]},{"id":"2475aec8.3301ca","type":"set","name":"set network in service-data","xml":"<set>\n<parameter name=\"service-data.networks.network[$nidx].network-id\" value='`$tmp.l3-network.network-id`' />\n<parameter name=\"service-data.networks.network[$nidx].network-data.network-information.from-preload\" value='true' />\n<parameter name=\"service-data.networks.network[$nidx].network-data.network-topology.\" value='$network-topology.' />\n<parameter name=\"service-data.networks.network_length\" value='`$nidx_len`' />\n\n","comments":"","x":719.7509689331055,"y":3486.500725746155,"z":"904f855.2f5e8f8","wires":[]},{"id":"6820b570.d2fcf4","type":"set","name":"set network-topology-identifier-structure in service-data","xml":"<set>\n<parameter name='network-topology.network-topology-identifier-structure.' value='`$tmp.l3-network.`' />\n<parameter name='network-topology.tenant' value='`$network-topology-operation-input.network-request-input.tenant`' />\n<parameter name='network-topology.onap-model-information.' value='`$network-topology-operation-input.network-information.onap-model-information.`' />\n<parameter name='network-topology.network-parameters.' value='`$network-topology-operation-input.network-request-input.network-parameters.`' />\n<parameter name='network-topology.aic-cloud-region' value='`$network-topology-operation-input.network-request-input.aic-cloud-region`' />","comments":"","x":803.5009498596191,"y":3379.358116298914,"z":"904f855.2f5e8f8","wires":[]},{"id":"9d88f2e8.48f3e","type":"switchNode","name":"switch tmp.nidx ","xml":"<switch test=\"`$tmp.nidx`\">\n\n","comments":"","outputs":1,"x":672.6088180541992,"y":319.00167179107666,"z":"904f855.2f5e8f8","wires":[["fc452003.28b968","f6026195.195f2"]]},{"id":"fc452003.28b968","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":861.1802024841309,"y":317.573055267334,"z":"904f855.2f5e8f8","wires":[["e37c065b.540c88"]]},{"id":"e37c065b.540c88","type":"switchNode","name":"switch service-data.networks_length","xml":"<switch test='`$service-data.networks.network_length`'>\n","comments":"","outputs":1,"x":1110.4062957763672,"y":318.76397228240967,"z":"904f855.2f5e8f8","wires":[["e663db13.5a4698","c5159555.fdb15"]]},{"id":"e663db13.5a4698","type":"other","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1403.501618385315,"y":317.5732808113098,"z":"904f855.2f5e8f8","wires":[["25d54d17.2b7a32"]]},{"id":"25d54d17.2b7a32","type":"set","name":"set nidx","xml":"<set>\n<parameter name='nidx' value='0' />\n<parameter name='nidx_len' value='1'/>\n","comments":"","x":1583.5016603469849,"y":315.1446967124939,"z":"904f855.2f5e8f8","wires":[]},{"id":"c5159555.fdb15","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1406.3587808609009,"y":343.2875533103943,"z":"904f855.2f5e8f8","wires":[["92920675.a1a7e"]]},{"id":"92920675.a1a7e","type":"set","name":"set nidx","xml":"<set>\n<parameter name='nidx' value='`$service-data.networks.network_length`' />\n<parameter name='nidx_len' value='`$service-data.networks.network_length + 1`' />\n","comments":"","x":1584.9302110671997,"y":352.1447539329529,"z":"904f855.2f5e8f8","wires":[]},{"id":"f6026195.195f2","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":862.6088371276855,"y":356.14452743530273,"z":"904f855.2f5e8f8","wires":[["27be96dc.4200d2"]]},{"id":"27be96dc.4200d2","type":"set","name":"set nidx","xml":"<set>\n<parameter name='nidx' value='`$tmp.nidx`' />\n<parameter name='nidx_len' value='`$service-data.networks.network_length`' />\n","comments":"","x":1025.4659614562988,"y":356.1445531845093,"z":"904f855.2f5e8f8","wires":[]},{"id":"75c470c.1b64c1","type":"execute","name":"execute printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/lmr-nto.log' />","comments":"","outputs":1,"x":676.75,"y":605,"z":"904f855.2f5e8f8","wires":[[]]},{"id":"d03a4655.11876","type":"execute","name":"execute printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/lmr-nto2.log' />","comments":"","outputs":1,"x":694.75,"y":3528.5,"z":"904f855.2f5e8f8","wires":[[]]},{"id":"250c1ed0.7ac68a","type":"set","name":"set network-information in service-data","xml":"<set>\n<parameter name=\"service-data.networks.network[$nidx].network-data.network-information.network-id\" value='`$tmp.l3-network.network-id`' />\n<parameter name=\"service-data.networks.network[$nidx].network-data.network-information.from-preload\" value='true' />\n<parameter name=\"service-data.networks.network[$nidx].network-data.network-information.network-type\" value='`$tmp.l3-network.network-type`' />\n\n","comments":"","x":751,"y":806.25,"z":"904f855.2f5e8f8","wires":[]},{"id":"7d4ea1ca.77ea4","type":"save","name":"query AnAI - vpn-bindings","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\" \n\t\tkey=\"vpn-binding.vpn-id = $tmp.vpn-binding-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.AnAI.vpn-binding\">","comments":"","outputs":1,"x":1706,"y":2403.25,"z":"904f855.2f5e8f8","wires":[["14075edf.8f17f1","d2cfe57b.a35e58","ac65277d.2e0e68"]]},{"id":"d5c07d00.bbbf9","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1463.5,"y":2403.5,"z":"904f855.2f5e8f8","wires":[["7d4ea1ca.77ea4","41a8cddd.36fdfc"]]}] \ No newline at end of file
+[
+ {
+ "id": "4bd9cd96.80bbac",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 89.08332824707031,
+ "y": 66,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "896b29b1.6fe72"
+ ]
+ ]
+ },
+ {
+ "id": "896b29b1.6fe72",
+ "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": 225.3690185546875,
+ "y": 133.09526014328003,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "73c37410.17c764"
+ ]
+ ]
+ },
+ {
+ "id": "73c37410.17c764",
+ "type": "method",
+ "name": "network-topology-operation-assign-from-preload",
+ "xml": "<method rpc='network-topology-operation-assign-from-preload' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 228.04772186279297,
+ "y": 200.89284801483154,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "63c86037.e38708"
+ ]
+ ]
+ },
+ {
+ "id": "cdcdb87e.75d9d8",
+ "type": "comment",
+ "name": "Called from assign when network name passed in from mso",
+ "info": "",
+ "comments": "",
+ "x": 425.94046783447266,
+ "y": 94.00000476837158,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "63c86037.e38708",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 208.08332061767578,
+ "y": 332.9999933242798,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "628b6d40.c008c4",
+ "e28ea7a7.3a8d6",
+ "cca09e5a.c22168",
+ "b469c0a8.2a3a58",
+ "99f3d61b.2b5a7",
+ "b1448ddd.9928d",
+ "d3dacaf2.3cffd8",
+ "a610bead.5c9dc",
+ "30f10d35.c1a86a",
+ "c304da6f.bf12e8",
+ "ec5946fb.1709e8",
+ "7ed3e744.31f89",
+ "f140f753.a20ad8",
+ "ba5f0720.959198",
+ "de2012dc.c2ba",
+ "7a2b10dd.d308",
+ "6d2485d7.ac3864",
+ "562afe85.c468e",
+ "dfb0aef.73e6f5",
+ "37e8c638.8b203a",
+ "69388f.faef4f7",
+ "d7831095.d9bc78",
+ "b4074df8.ed1058",
+ "e47e109d.a0ff58",
+ "7c6df7c7.54a1b8",
+ "cc6598a9.87c2b",
+ "2c9a3a4.e93b0c6",
+ "c0752540.c5d33",
+ "6a834ee1.1f5b58"
+ ]
+ ]
+ },
+ {
+ "id": "628b6d40.c008c4",
+ "type": "get-resource",
+ "name": "get AnAI - l3-network by network-name",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-name = $tmp.network-instance-name\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.l3-network\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 595.6626281738281,
+ "y": 652.7703552246094,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "a57587bb.f9a9d"
+ ]
+ ]
+ },
+ {
+ "id": "a57587bb.f9a9d",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 862.6626586914062,
+ "y": 625.7703552246094,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "e2a60a24.a1ae7"
+ ]
+ ]
+ },
+ {
+ "id": "e2a60a24.a1ae7",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"'Error searching for l3-network with network-name =' + $tmp.network-instance-name + 'from AnAI'\" />",
+ "comments": "",
+ "x": 1012.7737426757812,
+ "y": 616.9925842285156,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "1af23829.9775d",
+ "type": "other",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 862.9406127929688,
+ "y": 684.2858028411865,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "5b370f91.64ff78"
+ ]
+ ]
+ },
+ {
+ "id": "5b370f91.64ff78",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"'Error l3-network with network-name =' + $tmp.network-instance-name + ' already exists in AnAI'\" />",
+ "comments": "",
+ "x": 1013.9405708312988,
+ "y": 683.2857751846313,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "e28ea7a7.3a8d6",
+ "type": "execute",
+ "name": "generate preload network url",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.preload-network`\"/>\n <parameter name=\"outputPath\" value=\"tmp.pn-url\"/>\n <parameter name=\"target\" value=\"{network-name}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.network-instance-name`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 553.9405212402344,
+ "y": 454.2857971191406,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cca09e5a.c22168",
+ "type": "execute",
+ "name": "execute RestApiCallNode - Get preload-network by network-name",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.pn-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"preload-data\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 670.9405822753906,
+ "y": 500.535888671875,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "b75e94f1.d6a67",
+ "5bfa5816.332048"
+ ]
+ ]
+ },
+ {
+ "id": "b75e94f1.d6a67",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1035.9405555725098,
+ "y": 526.2858438491821,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "8bab781c.da91"
+ ]
+ ]
+ },
+ {
+ "id": "8bab781c.da91",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1205.9405097961426,
+ "y": 525.7857294082642,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5bfa5816.332048",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1031.7923164367676,
+ "y": 558.3519020080566,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "fd7f8d90.5979a"
+ ]
+ ]
+ },
+ {
+ "id": "fd7f8d90.5979a",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"'Error: No preload-network found with network-name =' + $tmp.network-instance-name + ' in md-sal'\" />",
+ "comments": "",
+ "x": 1209.9405136108398,
+ "y": 558.2858171463013,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "9612bfa1.d6b7c8",
+ "type": "comment",
+ "name": "preload found in md-sal, aai network doesn't exist. Proceed to create.",
+ "info": "",
+ "comments": "",
+ "x": 688.9404525756836,
+ "y": 581.2859487533569,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "e3f79dd4.abd388",
+ "type": "save",
+ "name": "save AnAI - l3-network",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"network-name\" value=\"`$tmp.network-instance-name`\" />\n<parameter name='network-type' value=\"`$network-model.network-type`\" />\n<parameter name='network-role' value=\"`$network-model.network-role`\" />\n<parameter name='network-technology' value=\"`$network-model.network-technology`\" />\n<parameter name='is-bound-to-vpn' value=\"`$network-model.is-bound-to-vpn`\" />\n<parameter name=\"service-id\" value=\"`$network-topology-operation-input.service-information.service-id`\" />\n<parameter name=\"tenant-id\" value=\"`$network-topology-operation-input.network-request-input.tenant`\" />\n<parameter name=\"network-role-instance\" value=\"0\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />\n<parameter name=\"physical-network-name\" value=\"`$preload-data.preload-network-topology-information.physical-network-name`\" />\n<parameter name=\"is-provider-network\" value=\"`$preload-data.preload-network-topology-information.is-provider-network`\" />\n<parameter name=\"is-shared-network\" value=\"`$preload-data.preload-network-topology-information.is-shared-network`\" />\n<parameter name=\"is-external-network\" value=\"`$preload-data.preload-network-topology-information.is-external-network`\" />\n<parameter name=\"selflink\" value=\"`$tmp.l3-network.self-link`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 942.0122604370117,
+ "y": 814.4647035598755,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "3d2362a2.d0be4e",
+ "4a2d95d5.277794"
+ ]
+ ]
+ },
+ {
+ "id": "3d2362a2.d0be4e",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1145.795425415039,
+ "y": 777.9800109863281,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "410ca771.346e8"
+ ]
+ ]
+ },
+ {
+ "id": "410ca771.346e8",
+ "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 save l3-network in AnAI with network-id = ' + $tmp.return.generate-l3network-network-id.uuid`\"/>",
+ "comments": "",
+ "x": 1338.5729751586914,
+ "y": 798.7577819824219,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "b469c0a8.2a3a58",
+ "type": "set",
+ "name": "set: tmp.error-message to \"\"",
+ "xml": "<set>\n\t<parameter name=\"tmp.error-message\" value=\"\"/>",
+ "comments": "",
+ "x": 559.3185272216797,
+ "y": 610.7666625976562,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "4a2d95d5.277794",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1155.890266418457,
+ "y": 819.3384561538696,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "410ca771.346e8"
+ ]
+ ]
+ },
+ {
+ "id": "99f3d61b.2b5a7",
+ "type": "switchNode",
+ "name": "switch ... PRELOAD subnets_length",
+ "xml": "<switch test=\"`$preload-data.preload-network-topology-information.subnets_length`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 587.6905136108398,
+ "y": 947.4285650253296,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "5b47ba46.8b4fe4"
+ ]
+ ]
+ },
+ {
+ "id": "5b47ba46.8b4fe4",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "outputs": 1,
+ "x": 849.1349639892578,
+ "y": 947.2063007354736,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "7217efa1.b7e4b8"
+ ]
+ ]
+ },
+ {
+ "id": "7217efa1.b7e4b8",
+ "type": "set",
+ "name": "set PRELOAD subnets[] = 0",
+ "xml": "<set>\n<parameter name=\"preload-data.preload-network-topology-information.subnets_length\" value=\"0\" />\n",
+ "comments": "",
+ "x": 1082.6905729505752,
+ "y": 947.206321398417,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "b1448ddd.9928d",
+ "type": "for",
+ "name": "for loop i - PRELOAD subnets",
+ "xml": "<for index=\"i\" start=\"0\" end=\"`$preload-data.preload-network-topology-information.subnets_length`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 568.4405746459961,
+ "y": 1039.4287095069885,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "ed31706.23c5c1"
+ ]
+ ]
+ },
+ {
+ "id": "ed31706.23c5c1",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 825.4391937255859,
+ "y": 1039.4377207756042,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "c8e0fb72.914f",
+ "22ab42dd.e88c8e",
+ "8c87a60a.8c874",
+ "1685728d.213165",
+ "c7d3a41e.fd0c1",
+ "7c1d8d44.72ecf4",
+ "35e2813c.1eac66",
+ "d0192f25.c43848",
+ "98d1317a.2593b"
+ ]
+ ]
+ },
+ {
+ "id": "91778f5b.a219",
+ "type": "set",
+ "name": "set tmp.dhcpEnabled.boolean=false",
+ "xml": "<set>\n<parameter name=\"tmp.dhcpEnabled.boolean\" value=\"false\" />\n",
+ "comments": "",
+ "x": 1599.440574645996,
+ "y": 1079.4287095069885,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "edb4d0.373d1b3",
+ "type": "set",
+ "name": "set tmp.dhcpEnabled.boolean=true",
+ "xml": "<set>\n<parameter name=\"tmp.dhcpEnabled.boolean\" value=\"true\" />\n",
+ "comments": "",
+ "x": 1597.7580795288086,
+ "y": 1037.365159034729,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "c8e0fb72.914f",
+ "type": "switchNode",
+ "name": "switch: PRELOAD dhcp-enabled",
+ "xml": "<switch test=\"`$preload-data.preload-network-topology-information.subnets[$i].dhcp-enabled`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1089.7580795288086,
+ "y": 1036.8713846206665,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "2d1a0c86.64edc4",
+ "2654b92f.6c4abe"
+ ]
+ ]
+ },
+ {
+ "id": "2d1a0c86.64edc4",
+ "type": "other",
+ "name": "Y",
+ "xml": "<outcome value='Y'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1346.9804229736328,
+ "y": 1037.0937051773071,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "edb4d0.373d1b3"
+ ]
+ ]
+ },
+ {
+ "id": "2654b92f.6c4abe",
+ "type": "other",
+ "name": "N",
+ "xml": "<outcome value='N'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1346.8850936889648,
+ "y": 1078.9349265098572,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "91778f5b.a219"
+ ]
+ ]
+ },
+ {
+ "id": "22ab42dd.e88c8e",
+ "type": "switchNode",
+ "name": "switch: PRELOAD addr-from-start",
+ "xml": "<switch test=\"`$preload-data.preload-network-topology-information.subnets[$i].addr-from-start`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1096.0084915161133,
+ "y": 1193.6893377304077,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "a37d09fa.6442e",
+ "11ca0d89.f665da",
+ "98617c9.0b46d"
+ ]
+ ]
+ },
+ {
+ "id": "a37d09fa.6442e",
+ "type": "other",
+ "name": "Y",
+ "xml": "<outcome value='Y'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1350.2308197021484,
+ "y": 1151.6259698867798,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "3ac077d8.35fde8"
+ ]
+ ]
+ },
+ {
+ "id": "11ca0d89.f665da",
+ "type": "other",
+ "name": "N",
+ "xml": "<outcome value='N'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1350.135482788086,
+ "y": 1236.181456565857,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "705b717c.378f78"
+ ]
+ ]
+ },
+ {
+ "id": "705b717c.378f78",
+ "type": "set",
+ "name": "set tmp.addrFromStart.boolean=false",
+ "xml": "<set>\n<parameter name=\"tmp.addrFromStart.boolean\" value=\"false\" />\n",
+ "comments": "",
+ "x": 1595.8338088989258,
+ "y": 1236.6751956939697,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "3ac077d8.35fde8",
+ "type": "set",
+ "name": "set tmp.addrFromStart.boolean=true",
+ "xml": "<set>\n<parameter name=\"tmp.addrFromStart.boolean\" value=\"true\" />\n",
+ "comments": "",
+ "x": 1601.0084762573242,
+ "y": 1151.8974237442017,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "98617c9.0b46d",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "outputs": 1,
+ "x": 1349.294189453125,
+ "y": 1193.260908126831,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "3ac077d8.35fde8"
+ ]
+ ]
+ },
+ {
+ "id": "fb1f811b.6aa36",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1333.440574645996,
+ "y": 1502.4287095069885,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "4881204f.93b2d"
+ ]
+ ]
+ },
+ {
+ "id": "1685728d.213165",
+ "type": "switchNode",
+ "name": "switch test: PRELOAD gateway-address",
+ "xml": "<switch test=\"`$preload-data.preload-network-topology-information.subnets[$i].gateway-address`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1109.8334045410156,
+ "y": 1350.231457233429,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "2a608ab4.ba0f8e"
+ ]
+ ]
+ },
+ {
+ "id": "2a608ab4.ba0f8e",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "outputs": 1,
+ "x": 1350.3333110809326,
+ "y": 1350.2314133644104,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "e1439f3e.cda81"
+ ]
+ ]
+ },
+ {
+ "id": "5d1d976f.0cfce8",
+ "type": "GenericXML",
+ "name": "Execute: generate gateway-address",
+ "xml": "<execute plugin=\"com.att.sdnctl.sli.plugin.ipAddressTools.IpAddressTool\" method=\"getGatewayAddress\">\n\t<parameter name=\"ipAddress\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].start-address`\" />\n\t<parameter name=\"ipVersion\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].ip-version`\" />\n\t<parameter name=\"subnet\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].cidr-mask`\" />\n\t<parameter name=\"ctxVariable\" value=\"tmp.return.generate.gateway-address\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1775.5833263397217,
+ "y": 1349.981420993805,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "56d55b58.e9abc4"
+ ]
+ ]
+ },
+ {
+ "id": "e1439f3e.cda81",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1501.0833187103271,
+ "y": 1350.2314238548279,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "5d1d976f.0cfce8",
+ "4d116b60.9a1d6c"
+ ]
+ ]
+ },
+ {
+ "id": "8c87a60a.8c874",
+ "type": "set",
+ "name": "set tmp.gateway-address",
+ "xml": "<set>\n<parameter name=\"tmp.gateway-address\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].gateway-address`\" />\n",
+ "comments": "",
+ "x": 1060.3333263397217,
+ "y": 1295.4814200401306,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "4d116b60.9a1d6c",
+ "type": "set",
+ "name": "set tmp.gateway-address",
+ "xml": "<set>\n<parameter name=\"tmp.gateway-address\" value=\"`$tmp.return.generate.gateway-address`\" />\n",
+ "comments": "",
+ "x": 1747.0833263397217,
+ "y": 1410.9814229011536,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "4881204f.93b2d",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1532.833402633667,
+ "y": 1502.0648274421692,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "2a8795c0.73cda2",
+ "22a385a.5a8d0fa"
+ ]
+ ]
+ },
+ {
+ "id": "2a8795c0.73cda2",
+ "type": "set",
+ "name": "set: tmp.error-message",
+ "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving subnet in AnAI where subnet-id = ' + $tmp.return.generate-subnets-subnet-id.uuid`\"/>",
+ "comments": "",
+ "x": 1771.9329433441162,
+ "y": 1501.8147263526917,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "c7d3a41e.fd0c1",
+ "type": "call",
+ "name": "call: generate-subnets-subnet-id",
+ "xml": "<call module=\"VNF-API\" rpc=\"generate-subnets-subnet-id\" mode=\"sync\" >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1084.9482669830322,
+ "y": 1450.088562488556,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "2fbe65b8.c2a342"
+ ]
+ ]
+ },
+ {
+ "id": "2fbe65b8.c2a342",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1334.6982517242432,
+ "y": 1450.3385529518127,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "22a385a.5a8d0fa"
+ ]
+ ]
+ },
+ {
+ "id": "7c1d8d44.72ecf4",
+ "type": "save",
+ "name": "save AnAI - l3-network.subnets",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.return.generate-subnets-subnet-id.uuid\" >\n<!-- Create subnet object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.return.generate-subnets-subnet-id.uuid`\" />\n<parameter name=\"subnet-name\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].subnet-name`\" />\n<parameter name=\"subnet-role\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].subnet-role`\" />\n<parameter name=\"gateway-address\" value=\"`$tmp.gateway-address`\" />\n<parameter name=\"network-start-address\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].ip-version`\" />\n<parameter name=\"dhcp-start\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].dhcp-start-address`\" />\n<parameter name=\"dhcp-end\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].dhcp-end-address`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.dhcpEnabled.boolean`\" />\n<parameter name=\"ip-assignment-direction\" value=\"`$tmp.addrFromStart.boolean`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1083.8243007659912,
+ "y": 1502.0802063941956,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "fb1f811b.6aa36",
+ "770e03bb.32feec"
+ ]
+ ]
+ },
+ {
+ "id": "770e03bb.32feec",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1340.757806777954,
+ "y": 1549.1480813026428,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "4881204f.93b2d"
+ ]
+ ]
+ },
+ {
+ "id": "56d55b58.e9abc4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2021.8768138885498,
+ "y": 1350.5052399635315,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "22a385a.5a8d0fa"
+ ]
+ ]
+ },
+ {
+ "id": "35e2813c.1eac66",
+ "type": "switchNode",
+ "name": "switch host-routes_length",
+ "xml": "<switch test='`$preload-data.preload-network-topology-information.host-routes_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1078.4406051635742,
+ "y": 1595.4287152290344,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "47cf055f.b6a934"
+ ]
+ ]
+ },
+ {
+ "id": "47cf055f.b6a934",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1319.0120239257812,
+ "y": 1595.0001244544983,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "740c5882.ddff78"
+ ]
+ ]
+ },
+ {
+ "id": "740c5882.ddff78",
+ "type": "set",
+ "name": "set host-routes_length to 0",
+ "xml": "<set>\n<parameter name='preload-data.preload-network-topology-information.host-routes_length' value='0' />\n",
+ "comments": "",
+ "x": 1546.1549911499023,
+ "y": 1595.4285683631897,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "5ec688fe.20b38",
+ "type": "call",
+ "name": "call: generate-host-routes-host-route-id",
+ "xml": "<call module=\"GENERIC-RESOURCE-API\" rpc=\"generate-host-routes-host-route-id\" mode=\"sync\" >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1664.3493728637695,
+ "y": 1718.4289870262146,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "a9fa9d4e.7b91b"
+ ]
+ ]
+ },
+ {
+ "id": "a9fa9d4e.7b91b",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1929.0993576049805,
+ "y": 1718.6789774894714,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "22a385a.5a8d0fa"
+ ]
+ ]
+ },
+ {
+ "id": "d0192f25.c43848",
+ "type": "for",
+ "name": "for loop h - PRELOAD host-routes",
+ "xml": "<for index=\"h\" start=\"0\" end=\"`$preload-data.preload-network-topology-information.host-routes_length`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1084.0559005737305,
+ "y": 1721.5429739952087,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "c3f2a5b4.bc85e"
+ ]
+ ]
+ },
+ {
+ "id": "c3f2a5b4.bc85e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1364.2939910888672,
+ "y": 1717.9713797569275,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "5ec688fe.20b38",
+ "64b302a8.96fb7c",
+ "41e656c5.4ec8e8"
+ ]
+ ]
+ },
+ {
+ "id": "64b302a8.96fb7c",
+ "type": "set",
+ "name": "set tmp.local.subnet-id",
+ "xml": "<set>\n<parameter name=\"tmp.local.subnet-id\" value=\"`$tmp.return.generate-subnets-subnet-id.uuid`\" />\n",
+ "comments": "",
+ "x": 1614.2938919067383,
+ "y": 1654.971405506134,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "7978217.f4e4a6",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1933.4406604766846,
+ "y": 1776.4288630485535,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "40866eab.16b4d8"
+ ]
+ ]
+ },
+ {
+ "id": "40866eab.16b4d8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2132.8334884643555,
+ "y": 1776.0649809837341,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "2e085811.2d3988",
+ "22a385a.5a8d0fa"
+ ]
+ ]
+ },
+ {
+ "id": "2e085811.2d3988",
+ "type": "set",
+ "name": "set: tmp.error-message",
+ "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving host-route in AnAI where host-route-id = ' + $tmp.return.generate-host-routes-host-route-id.uuid`\"/>",
+ "comments": "",
+ "x": 2341.4330978393555,
+ "y": 1775.8146152496338,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "41e656c5.4ec8e8",
+ "type": "save",
+ "name": "save AnAI - host-routes.host-route",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"host-route\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.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<!-- Create host-route object -->\n<parameter name=\"host-route-id\" value=\"`$tmp.return.generate-host-routes-host-route-id.uuid`\" />\n<parameter name=\"route-prefix\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].host-routes[$h].route-prefix`\" />\n<parameter name=\"next-hop\" value=\"`$preload-data.preload-network-topology-information.subnets[$i].host-routes[$h].next-hop`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1657.8243865966797,
+ "y": 1776.0803599357605,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "7978217.f4e4a6",
+ "d6aa619.bdfc2a"
+ ]
+ ]
+ },
+ {
+ "id": "d6aa619.bdfc2a",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1942.0077934265137,
+ "y": 1824.3981447219849,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "40866eab.16b4d8"
+ ]
+ ]
+ },
+ {
+ "id": "70ddd691.4ea298",
+ "type": "switchNode",
+ "name": "switch service-id",
+ "xml": "<switch test='`$tmp.l3-network.service-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 535.262077331543,
+ "y": 800.4644546508789,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "77a28f95.4bae98",
+ "4de0e291.fa5f1c"
+ ]
+ ]
+ },
+ {
+ "id": "77a28f95.4bae98",
+ "type": "outcome",
+ "name": "outcome NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 724.262077331543,
+ "y": 779.4644546508789,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "ab60dc3b.7557c8"
+ ]
+ ]
+ },
+ {
+ "id": "4de0e291.fa5f1c",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 699.262077331543,
+ "y": 814.4644546508789,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "e3f79dd4.abd388"
+ ]
+ ]
+ },
+ {
+ "id": "ab60dc3b.7557c8",
+ "type": "save",
+ "name": "save AnAI - l3-network",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"network-name\" value=\"`$tmp.network-instance-name`\" />\n<parameter name='network-type' value=\"`$tmp.l3-network.network-type`\" />\n<parameter name='network-role' value=\"`$tmp.l3-network.network-role`\" />\n<parameter name='network-technology' value=\"`$network-model.network-technology`\" />\n<parameter name=\"is-bound-to-vpn\" value=\"`$tmp.l3-network.is-bound-to-vpn-boolean`\" />\n<parameter name=\"tenant-id\" value=\"`$network-topology-operation-input.network-request-input.tenant`\" />\n<parameter name=\"network-role-instance\" value=\"0\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />\n<parameter name=\"physical-network-name\" value=\"`$preload-data.preload-network-topology-information.physical-network-name`\" />\n<parameter name=\"is-provider-network\" value=\"`$preload-data.preload-network-topology-information.is-provider-network`\" />\n<parameter name=\"is-shared-network\" value=\"`$preload-data.preload-network-topology-information.is-shared-network`\" />\n<parameter name=\"is-external-network\" value=\"`$preload-data.preload-network-topology-information.is-external-network`\" />\n<parameter name=\"selflink\" value=\"`$tmp.l3-network.self-link`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 944.0119857788086,
+ "y": 781.9645071029663,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "3d2362a2.d0be4e",
+ "4a2d95d5.277794"
+ ]
+ ]
+ },
+ {
+ "id": "a610bead.5c9dc",
+ "type": "save",
+ "name": "save relationship: tenant and cloud-region",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" \n\tforce=\"true\" \n\tlocal-only=\"false\">\n\t<!-- create relationship-list -->\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"tenant\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"cloud-region.cloud-owner\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.cloud-region.cloud-owner`\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$network-topology-operation-input.network-request-input.aic-cloud-region`\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"tenant.tenant-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$network-topology-operation-input.network-request-input.tenant`\" />\n\t<parameter name=\"relationship-list.relationship[1].related-to\" value=\"cloud-region\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"cloud-region.cloud-owner\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$prop.cloud-region.cloud-owner`\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[1].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[1].relationship-value\" value=\"`$network-topology-operation-input.network-request-input.aic-cloud-region`\" />\n\t\n\t",
+ "comments": "",
+ "outputs": 1,
+ "x": 595.6905136108398,
+ "y": 2061.179002761841,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "246c2646.ee10ba",
+ "9fb535b9.d7485"
+ ]
+ ]
+ },
+ {
+ "id": "246c2646.ee10ba",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 843.6905174255371,
+ "y": 2061.1789932250977,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "e693fb4f.10fd28"
+ ]
+ ]
+ },
+ {
+ "id": "e693fb4f.10fd28",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1032.083345413208,
+ "y": 2060.8151111602783,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "6f2fad35.cd14fc",
+ "22a385a.5a8d0fa"
+ ]
+ ]
+ },
+ {
+ "id": "6f2fad35.cd14fc",
+ "type": "set",
+ "name": "set: tmp.error-message",
+ "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving tenant and cloud-region relationship for l3-network in AnAI where network-id = ' + $tmp.l3-network.network-id`\"/>",
+ "comments": "",
+ "x": 1242.0715026855469,
+ "y": 2058.628755569458,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "9fb535b9.d7485",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 851.6983604431152,
+ "y": 2103.012315750122,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "e693fb4f.10fd28"
+ ]
+ ]
+ },
+ {
+ "id": "d3dacaf2.3cffd8",
+ "type": "set",
+ "name": "set l3-network",
+ "xml": "<set>\n<parameter name='tmp.l3-network.network-name' value=\"`$tmp.network-instance-name`\" />\n<parameter name='tmp.l3-network.network-type' value=\"`$preload-data.preload-network-topology-information.network-topology-identifier-structure.network-type`\" />\n<parameter name=\"tmp.l3-network.physical-network-name\" value=\"`$preload-data.preload-network-topology-information.physical-network-name`\" />\n<parameter name=\"tmp.l3-network.is-provider-network\" value=\"`$preload-data.preload-network-topology-information.is-provider-network`\" />\n<parameter name=\"tmp.l3-network.is-shared-network\" value=\"`$preload-data.preload-network-topology-information.is-shared-network`\" />\n<parameter name=\"tmp.l3-network.is-external-network\" value=\"`$preload-data.preload-network-topology-information.network-topology-identifier-structure.network-type`\" />\n<parameter name='tmp.l3-network.network-role' value=\"`$preload-data.preload-network-topology-information.network-topology-identifier-structure.network-role`\" />\n<parameter name='tmp.l3-network.network-technology' value=\"`$preload-data.preload-network-topology-information.network-topology-identifier-structure.network-technology`\" />\n<parameter name='tmp.l3-network.is-bound-to-vpn' value=\"`$network-model.is-bound-to-vpn`\" />\n<parameter name=\"tmp.l3-network.tenant-id\" value=\"`$network-topology-operation-input.network-request-input.tenant`\" />\n<parameter name=\"tmp.l3-network.network-role-instance\" value=\"0\" />\n<parameter name='tmp.l3-network.orchestration-status' value=\"PendingCreate\" />\n<parameter name='tmp.l3-network.model-invariant-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\" />\n<parameter name='tmp.l3-network.model-version-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-version`\" />\n<parameter name='tmp.l3-network.model-customization-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\" />\n<parameter name='tmp.l3-network.eipam-v6-address-plan' value=\"`$network-model.eipam-v6-address-plan`\" />\n<parameter name='tmp.l3-network.eipam-v4-address-plan' value=\"`$network-model.eipam-v4-address-plan`\" />\n<parameter name='tmp.l3-network.service-id' value=\"`$service-data.service-information.service-id`\" />\n<parameter name='tmp.l3-network.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $service-data.service-information.service-instance-id\n + '/service-data/networks/network/'\n + $tmp.l3-network.network-id\n + '/network-data/network-topology/'` \" />\n",
+ "comments": "",
+ "x": 534.2620544433594,
+ "y": 687.2145385742188,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "30f10d35.c1a86a",
+ "type": "set",
+ "name": "copy input to service-data",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-request-input.' value='`$network-topology-operation-input.network-request-input.`' />\n",
+ "comments": "",
+ "x": 545.7976226806641,
+ "y": 342.00001096725464,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "c304da6f.bf12e8",
+ "type": "set",
+ "name": "set onap-model-info",
+ "xml": "<set>\n<parameter name='tmp.l3-network.model-invariant-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\" />\n<parameter name='tmp.l3-network.model-version-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-version`\" />\n<parameter name='tmp.l3-network.model-customization-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\" />\n<parameter name='s-onap-model-information.model-invariant-uuid' value='`$service-model.invariant-uuid`' />\n<parameter name='s-onap-model-information.model-version' value='`$service-model.version`' />\n<parameter name='s-onap-model-information.model-uuid' value='`$service-model.service-uuid`' />\n<parameter name='s-onap-model-information.model-name' value='`$service-model.name`' />\n<parameter name='n-onap-model-information.model-invariant-uuid' value='`$network-model.invariant-uuid`' />\n<parameter name='n-onap-model-information.model-version' value='`$network-model.version`' />\n<parameter name='n-onap-model-information.model-uuid' value='`$network-model.uuid`' />\n<parameter name='n-onap-model-information.model-name' value='`$network-model.name`' />",
+ "comments": "",
+ "x": 529.9680709838867,
+ "y": 372.0634126663208,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "ec5946fb.1709e8",
+ "type": "set",
+ "name": "set onap-model-info with mysql data",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$nidx].network-data.service-information.ecomp-model-information.' value=\"`$s-onap-model-information.`\" />\n<parameter name='service-data.networks.network[$nidx].network-data.network-information.ecomp-model-information.' value=\"`$n-onap-model-information.`\" />\n",
+ "comments": "",
+ "x": 579.2180595397949,
+ "y": 402.563410282135,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "f140f753.a20ad8",
+ "type": "set",
+ "name": "set object-path",
+ "xml": "<set>\n<parameter name='network-object-path'\n value=\"`$tmp.l3-network.self-link`\"/>\n \n",
+ "comments": "",
+ "x": 514.3343887329102,
+ "y": 3630.7512464523315,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "7ed3e744.31f89",
+ "type": "set",
+ "name": "set networkId",
+ "xml": "<set>\n<parameter name='networkId' value='`$tmp.l3-network.network-id`' />\n",
+ "comments": "",
+ "x": 510.7628860473633,
+ "y": 3587.036647796631,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "de2012dc.c2ba",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success' >",
+ "comments": "",
+ "x": 510.33436584472656,
+ "y": 3761.7509765625,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "fbe1329e.55ffe8",
+ "type": "delete",
+ "name": "delete l3-network",
+ "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 2411.584602355957,
+ "y": 3694.7511587142944,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "aeb3517b.3f194",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Error writing to l3-netework - ' + $tmp.error-message`\"/>",
+ "comments": "",
+ "x": 2398.5219345092773,
+ "y": 3737.947202682495,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "22a385a.5a8d0fa",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2221.7608642578125,
+ "y": 3695.0027475357056,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "fbe1329e.55ffe8",
+ "aeb3517b.3f194"
+ ]
+ ]
+ },
+ {
+ "id": "98d1317a.2593b",
+ "type": "set",
+ "name": "set tmp.local.network-id",
+ "xml": "<set>\n<parameter name=\"tmp.local.network-id\" value=\"`$tmp.l3-network.network-id`\" />\n",
+ "comments": "",
+ "x": 1058.5435009002686,
+ "y": 1400.8384919166565,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "ba5f0720.959198",
+ "type": "set",
+ "name": "set network-level-oper-status",
+ "xml": "<set>\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />\n",
+ "comments": "",
+ "x": 555.5833892822266,
+ "y": 3677.2502098083496,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "6d2485d7.ac3864",
+ "type": "for",
+ "name": "for loop i - PRELOAD vpn-bindings",
+ "xml": "<for index=\"i\" start=\"0\" end=\"`$preload-data.preload-network-topology-information.vpn-bindings_length`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 585.3344192504883,
+ "y": 2249.751326560974,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "434415be.c27274"
+ ]
+ ]
+ },
+ {
+ "id": "434415be.c27274",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 827.1121978759766,
+ "y": 2250.0013284683228,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "2db00e91.3863ca",
+ "385bb14a.51d6a6",
+ "8481889b.8ecf1"
+ ]
+ ]
+ },
+ {
+ "id": "def7a073.250e98",
+ "type": "save",
+ "name": "save relationship: vpn_bindings",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" \n\tforce=\"true\" \n\tlocal-only=\"false\">\n\t\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"vpn-binding\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"vpn-binding.vpn-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.vpn-binding-id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1531.4971084594727,
+ "y": 2527.8306770324707,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "dd085f5e.480408",
+ "50ee45f6.e2f324",
+ "680d3e0.4c583c4"
+ ]
+ ]
+ },
+ {
+ "id": "7a2b10dd.d308",
+ "type": "switchNode",
+ "name": "switch ... PRELOAD vpn-bindings[]",
+ "xml": "<switch test=\"`$preload-data.preload-network-topology-information.vpn-bindings_length`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 585.7118623521592,
+ "y": 2198.3326400121055,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "69123649.280c98"
+ ]
+ ]
+ },
+ {
+ "id": "69123649.280c98",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "outputs": 1,
+ "x": 806.1563127305772,
+ "y": 2198.1103757222495,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "bd9b9f4d.1fa498"
+ ]
+ ]
+ },
+ {
+ "id": "bd9b9f4d.1fa498",
+ "type": "set",
+ "name": "set vpn-bindings[] = 0",
+ "xml": "<set>\n<parameter name=\"preload-data.preload-network-topology-information.vpn-bindings_length\" value=\"0\" />\n",
+ "comments": "",
+ "x": 1000.7119216918945,
+ "y": 2198.110396385193,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "39514786.0a7eb8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1769.5965766906738,
+ "y": 2433.6006326675415,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "f03a5c24.7e345"
+ ]
+ ]
+ },
+ {
+ "id": "ea20daae.300c58",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1777.096580505371,
+ "y": 2386.100631713867,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "f03a5c24.7e345"
+ ]
+ ]
+ },
+ {
+ "id": "f03a5c24.7e345",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1952.596580505371,
+ "y": 2433.350633621216,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "70e9c0ea.13569",
+ "22a385a.5a8d0fa"
+ ]
+ ]
+ },
+ {
+ "id": "70e9c0ea.13569",
+ "type": "set",
+ "name": "set: tmp.error-message",
+ "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query vpn-bindings from AnAI where vpn-binding-id = ' + $preload-data.preload-network-topology-information.vpn-bindings[$i].vpn-binding-id`\"/>",
+ "comments": "",
+ "x": 2174.6961212158203,
+ "y": 2433.1005325317383,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "2db00e91.3863ca",
+ "type": "switchNode",
+ "name": "switch: PRELOAD vpn-binding-id",
+ "xml": "<switch test=\"`$preload-data.preload-network-topology-information.vpn-bindings[$i].vpn-binding-id`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1105.5965843200684,
+ "y": 2296.850570678711,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "30d54fd5.518f8"
+ ]
+ ]
+ },
+ {
+ "id": "30d54fd5.518f8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1319.096591949463,
+ "y": 2296.6005716323853,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "5c40b99c.11a4e8"
+ ]
+ ]
+ },
+ {
+ "id": "5c40b99c.11a4e8",
+ "type": "set",
+ "name": "set tmp.vpn-binding-id",
+ "xml": "<set>\n<parameter name=\"tmp.vpn-binding-id\" value=\"`$preload-data.preload-network-topology-information.vpn-bindings[$i].vpn-binding-id`\" />\n",
+ "comments": "",
+ "x": 1501.596591949463,
+ "y": 2296.6005725860596,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "8213e5c.c630398",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1772.5965766906738,
+ "y": 2341.350631713867,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "95f82022.ac0b6"
+ ]
+ ]
+ },
+ {
+ "id": "dd085f5e.480408",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1756.5699844360352,
+ "y": 2527.306263923645,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "5448e76.5acd018"
+ ]
+ ]
+ },
+ {
+ "id": "5448e76.5acd018",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1944.4628639221191,
+ "y": 2526.942371368408,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "7a899940.1ef1b",
+ "22a385a.5a8d0fa"
+ ]
+ ]
+ },
+ {
+ "id": "7a899940.1ef1b",
+ "type": "set",
+ "name": "set: tmp.error-message",
+ "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving vpn-binding relationship for l3-network in AnAI where vpn-id = ' + $tmp.vpn-binding-id`\"/>",
+ "comments": "",
+ "x": 2157.5624046325684,
+ "y": 2527.6922702789307,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "385bb14a.51d6a6",
+ "type": "switchNode",
+ "name": "switch: tmp.vpn-binding-id != NULL",
+ "xml": "<switch test=\"`$tmp.vpn-binding-id != ''`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 854.5966339111328,
+ "y": 2355.26708984375,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "9e084b15.06d768"
+ ]
+ ]
+ },
+ {
+ "id": "9e084b15.06d768",
+ "type": "other",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1088.3465118408203,
+ "y": 2355.26708984375,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "fb6c215.a6cb56"
+ ]
+ ]
+ },
+ {
+ "id": "8481889b.8ecf1",
+ "type": "set",
+ "name": "unset tmp.vpn-binding-id",
+ "xml": "<set>\n<parameter name=\"tmp.vpn-binding-id\" value=\"\" />\n",
+ "comments": "",
+ "x": 1079.671890258789,
+ "y": 2250.544904232025,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "50ee45f6.e2f324",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1760.2274551391602,
+ "y": 2614.16392993927,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "5b4ffeca.70092"
+ ]
+ ]
+ },
+ {
+ "id": "5b4ffeca.70092",
+ "type": "set",
+ "name": "set tmp.is-bound-to-vpn",
+ "xml": "<set>\n<parameter name=\"tmp.is-bound-to-vpn\" value=\"true\" />\n",
+ "comments": "",
+ "x": 1950.7274551391602,
+ "y": 2614.16392993927,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "680d3e0.4c583c4",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1764.6559219360352,
+ "y": 2569.9575357437134,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "5448e76.5acd018"
+ ]
+ ]
+ },
+ {
+ "id": "95f82022.ac0b6",
+ "type": "switchNode",
+ "name": "switch: tmp.AnAI.vpn-binding.vpn-id",
+ "xml": "<switch test=\"`$tmp.AnAI.vpn-binding.vpn-id`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1988.6044464111328,
+ "y": 2340.850341796875,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "e01fca78.865848"
+ ]
+ ]
+ },
+ {
+ "id": "e01fca78.865848",
+ "type": "other",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2230.354446411133,
+ "y": 2341.3504695892334,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "365045d3.85b1ea"
+ ]
+ ]
+ },
+ {
+ "id": "365045d3.85b1ea",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2409.4671173095703,
+ "y": 2341.750732421875,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "9268a964.877d3",
+ "22a385a.5a8d0fa"
+ ]
+ ]
+ },
+ {
+ "id": "9268a964.877d3",
+ "type": "set",
+ "name": "set: tmp.error-message",
+ "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query vpn-bindings from AnAI where vpn-binding-id = ' + $tmp.vpn-binding-id + '.'`\"/>",
+ "comments": "",
+ "x": 2624.967086791992,
+ "y": 2341.7507152557373,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "562afe85.c468e",
+ "type": "switchNode",
+ "name": "switch ... PRELOAD network-policy[]",
+ "xml": "<switch test=\"`$preload-data.preload-network-topology-information.network-policy_length`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 594.0842971801758,
+ "y": 2633.50096988678,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "ac1ed94.597eda8"
+ ]
+ ]
+ },
+ {
+ "id": "ac1ed94.597eda8",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "outputs": 1,
+ "x": 823.5287475585938,
+ "y": 2633.278705596924,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "60e529b6.a2fe3"
+ ]
+ ]
+ },
+ {
+ "id": "60e529b6.a2fe3",
+ "type": "set",
+ "name": "set network-policy[] = 0",
+ "xml": "<set>\n<parameter name='preload-data.preload-network-topology-information.network-policy_length' value='0' />\n",
+ "comments": "",
+ "x": 1018.0843565199111,
+ "y": 2633.278726259867,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "dfb0aef.73e6f5",
+ "type": "for",
+ "name": "for loop i - PRELOAD network-policy",
+ "xml": "<for index=\"i\" start=\"0\" end=\"`$preload-data.preload-network-topology-information.network-policy_length`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 593.4415588378906,
+ "y": 2679.0723609924316,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "18122817.526ce"
+ ]
+ ]
+ },
+ {
+ "id": "18122817.526ce",
+ "type": "switchNode",
+ "name": "switch: PRELOAD network-policy-fqdn != NULL",
+ "xml": "<switch test=\"`$preload-data.preload-network-topology-information.network-policy[$i].network-policy-fqdn != ''`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 949.7038175794814,
+ "y": 2679.4216190973916,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "80d30a5b.6858c8"
+ ]
+ ]
+ },
+ {
+ "id": "80d30a5b.6858c8",
+ "type": "other",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1215.4538175794814,
+ "y": 2679.6716190973916,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "5c0ced67.783c7c"
+ ]
+ ]
+ },
+ {
+ "id": "5c0ced67.783c7c",
+ "type": "save",
+ "name": "query AnAI - network-policy",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\" \n\t\tkey=\"network-policy.network-policy-fqdn = $preload-data.preload-network-topology-information.network-policy[$i].network-policy-fqdn\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.AnAI.network-policy\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1424.7038213941787,
+ "y": 2679.6716190973916,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "f7066fa2.b4e778",
+ "77c538a.6a33048",
+ "73d45ba6.a92e9c"
+ ]
+ ]
+ },
+ {
+ "id": "f7066fa2.b4e778",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1632.7039053175185,
+ "y": 2720.671628634135,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "3d3dee63.5d9bc2"
+ ]
+ ]
+ },
+ {
+ "id": "77c538a.6a33048",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1638.2039091322158,
+ "y": 2679.1716276804605,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "3d3dee63.5d9bc2"
+ ]
+ ]
+ },
+ {
+ "id": "3d3dee63.5d9bc2",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1802.7039091322158,
+ "y": 2720.421629587809,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "ec54ab56.ae9ec8",
+ "22a385a.5a8d0fa"
+ ]
+ ]
+ },
+ {
+ "id": "ec54ab56.ae9ec8",
+ "type": "set",
+ "name": "set: tmp.error-message",
+ "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query network-policy n AnAI where network-policy-fqdn = ' + $preload-data.preload-network-topology-information.network-policy[$i].network-policy-fqdn`\"/>",
+ "comments": "",
+ "x": 2011.803449842665,
+ "y": 2720.1715284983316,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "73d45ba6.a92e9c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1635.2351133558486,
+ "y": 2765.0007015864053,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "b48008b7.a744c8"
+ ]
+ ]
+ },
+ {
+ "id": "b48008b7.a744c8",
+ "type": "switchNode",
+ "name": "switch: tmp.AnAI.network-policy.network-policy-id",
+ "xml": "<switch test=\"`$tmp.AnAI.network-policy.network-policy-id`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1913.3143844604492,
+ "y": 2764.5005588531494,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "d44b95e3.97ff9",
+ "fc51e84f.766cb8"
+ ]
+ ]
+ },
+ {
+ "id": "d44b95e3.97ff9",
+ "type": "other",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2187.064384460449,
+ "y": 2764.0005588531494,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "eb638b46.9c2fc8"
+ ]
+ ]
+ },
+ {
+ "id": "fc51e84f.766cb8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2186.556541442871,
+ "y": 2811.250657081604,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "b6e67f27.9a592"
+ ]
+ ]
+ },
+ {
+ "id": "37e8c638.8b203a",
+ "type": "switchNode",
+ "name": "switch ... PRELOAD route-table-reference[]",
+ "xml": "<switch test=\"`$preload-data.preload-network-topology-information.route-table-reference_length`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 611.7351150512695,
+ "y": 2832.0006036758423,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "24db93c3.0d5fd4"
+ ]
+ ]
+ },
+ {
+ "id": "24db93c3.0d5fd4",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "outputs": 1,
+ "x": 867.1795654296875,
+ "y": 2831.7783393859863,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "7d7728e.139a958"
+ ]
+ ]
+ },
+ {
+ "id": "7d7728e.139a958",
+ "type": "set",
+ "name": "set route-table-reference[] = 0",
+ "xml": "<set>\n<parameter name='preload-data.preload-network-topology-information.route-table-reference_length' value='0' />\n",
+ "comments": "",
+ "x": 1071.485237121582,
+ "y": 2830.528371810913,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "69388f.faef4f7",
+ "type": "for",
+ "name": "for loop i - PRELOAD route-table-reference",
+ "xml": "<for index=\"i\" start=\"0\" end=\"`$preload-data.preload-network-topology-information.route-table-reference_length`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 610.0923767089844,
+ "y": 2879.571994781494,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "c0dddeec.d99ed8"
+ ]
+ ]
+ },
+ {
+ "id": "c0dddeec.d99ed8",
+ "type": "switchNode",
+ "name": "switch: PRELOAD route-table-reference-fqdn != NULL",
+ "xml": "<switch test=\"`$preload-data.preload-network-topology-information.route-table-reference[$i].route-table-reference-fqdn != ''`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 995.6879653930664,
+ "y": 2879.2545766830444,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "84f2a72.dbe8358"
+ ]
+ ]
+ },
+ {
+ "id": "84f2a72.dbe8358",
+ "type": "other",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1261.4379653930664,
+ "y": 2879.5045766830444,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "d03ea2fa.b68ee"
+ ]
+ ]
+ },
+ {
+ "id": "d03ea2fa.b68ee",
+ "type": "save",
+ "name": "query AnAI - route-table-reference",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"route-table-reference\" \n\t\tkey=\"route-table-reference.route-table-reference-fqdn = $preload-data.preload-network-topology-information.route-table-reference[$i].route-table-reference-fqdn\" \n\t\tpfx=\"tmp.AnAI.route-table-reference\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1490.6879692077637,
+ "y": 2879.5045766830444,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "e09e0c3.a3a4df",
+ "c3d6a552.e664f",
+ "db1337ab.ee84e8"
+ ]
+ ]
+ },
+ {
+ "id": "e09e0c3.a3a4df",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1716.6880531311035,
+ "y": 2920.5045862197876,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "55e16a16.445184"
+ ]
+ ]
+ },
+ {
+ "id": "c3d6a552.e664f",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1722.1880569458008,
+ "y": 2879.0045852661133,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "55e16a16.445184"
+ ]
+ ]
+ },
+ {
+ "id": "55e16a16.445184",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1886.6880569458008,
+ "y": 2920.254587173462,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "47bbaacf.efc1fc",
+ "22a385a.5a8d0fa"
+ ]
+ ]
+ },
+ {
+ "id": "47bbaacf.efc1fc",
+ "type": "set",
+ "name": "set: tmp.error-message",
+ "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query network-policy n AnAI where network-policy-fqdn = ' + $preload-data.preload-network-topology-information.network-policy[$i].network-policy-fqdn`\"/>",
+ "comments": "",
+ "x": 2095.78759765625,
+ "y": 2920.0044860839844,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "db1337ab.ee84e8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1719.2192611694336,
+ "y": 2964.833659172058,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "6debe36c.5c04e4"
+ ]
+ ]
+ },
+ {
+ "id": "6debe36c.5c04e4",
+ "type": "switchNode",
+ "name": "switch: tmp.AnAI.route-table-reference.route-table-reference-id",
+ "xml": "<switch test=\"`$tmp.AnAI.route-table-reference.route-table-reference-id`\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 2037.2985322740342,
+ "y": 2964.3335164388022,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "36e48e22.c97c92",
+ "ad580c4c.80d87"
+ ]
+ ]
+ },
+ {
+ "id": "b6e67f27.9a592",
+ "type": "save",
+ "name": "save relationship: network-policy",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"network-policy\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"network-policy.network-policy-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.AnAI.network-policy.network-policy-id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2416.584297180176,
+ "y": 2811.00096988678,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "32ed4cf.4fbbeb4",
+ "d21c906a.782808"
+ ]
+ ]
+ },
+ {
+ "id": "32ed4cf.4fbbeb4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2639.6571731567383,
+ "y": 2810.476556777954,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "af6dd3b7.35efe"
+ ]
+ ]
+ },
+ {
+ "id": "af6dd3b7.35efe",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2819.5500526428223,
+ "y": 2810.1126642227173,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "26a23084.1263a8",
+ "22a385a.5a8d0fa"
+ ]
+ ]
+ },
+ {
+ "id": "26a23084.1263a8",
+ "type": "set",
+ "name": "set: tmp.error-message",
+ "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving network-policy relationship for l3-network in AnAI where network-policy-id = ' + $tmp.AnAI.network-policy.network-policy-id`\"/>",
+ "comments": "",
+ "x": 3042.6495933532715,
+ "y": 2810.8625631332397,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "d21c906a.782808",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2647.3936250474717,
+ "y": 2852.957081158956,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "af6dd3b7.35efe"
+ ]
+ ]
+ },
+ {
+ "id": "eb638b46.9c2fc8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2358.651435852051,
+ "y": 2762.9569025039673,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "d3b26677.34f89",
+ "22a385a.5a8d0fa"
+ ]
+ ]
+ },
+ {
+ "id": "d3b26677.34f89",
+ "type": "set",
+ "name": "set: tmp.error-message",
+ "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query newtork-policy from AnAI where network-policy-fqdn = ' + $preload-data.preload-network-topology-information.network-policy[$i].network-policy-fqdn + '. It is likely that the same network-policy-fqdn points to more than one network-policy objects in AnAI.'`\"/>",
+ "comments": "",
+ "x": 2603.802146911621,
+ "y": 2762.45645904541,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "88b07621.46413",
+ "type": "set",
+ "name": "set: tmp.error-message",
+ "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'Failed to query route-table-reference from AnAI where route-table-reference-fqdn = ' + $preload-data.preload-network-topology-information.route-table-reference[$i].route-table-reference-fqdn + '. It is likely that the same route-table-reference-fqdn points to more than one route-table-reference objects in AnAI.'`\"/>",
+ "comments": "",
+ "x": 2789.084297180176,
+ "y": 2953.500725746155,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "6d75a07c.74e9c8",
+ "type": "save",
+ "name": "save relationship: route-table-reference",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"route-table-reference\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"route-table-reference.route-table-reference-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.AnAI.route-table-reference.route-table-reference-id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2607.167900085449,
+ "y": 3003.0445041656494,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "f1461036.7ed288",
+ "2920269e.e33682"
+ ]
+ ]
+ },
+ {
+ "id": "f1461036.7ed288",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2862.2407760620117,
+ "y": 3002.5200910568237,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "40ada801.d3226"
+ ]
+ ]
+ },
+ {
+ "id": "40ada801.d3226",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 3042.1336555480957,
+ "y": 3002.156198501587,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "6a77e90c.cbaeb",
+ "22a385a.5a8d0fa"
+ ]
+ ]
+ },
+ {
+ "id": "6a77e90c.cbaeb",
+ "type": "set",
+ "name": "set: tmp.error-message",
+ "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving route-table-reference relationship for l3-network in AnAI where route-table-reference-id = ' + $tmp.AnAI.route-table-reference.route-table-reference-id`\"/>",
+ "comments": "",
+ "x": 3266.233222961426,
+ "y": 3001.9061212539673,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "2920269e.e33682",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2869.977227952745,
+ "y": 3045.0006154378257,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "40ada801.d3226"
+ ]
+ ]
+ },
+ {
+ "id": "36e48e22.c97c92",
+ "type": "other",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2374.235038757324,
+ "y": 2955.500436782837,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "d394daa3.666f8"
+ ]
+ ]
+ },
+ {
+ "id": "d394daa3.666f8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2539.235038757324,
+ "y": 2955.000436782837,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "88b07621.46413",
+ "22a385a.5a8d0fa"
+ ]
+ ]
+ },
+ {
+ "id": "ad580c4c.80d87",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2373.727195739746,
+ "y": 3002.7505350112915,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "6d75a07c.74e9c8"
+ ]
+ ]
+ },
+ {
+ "id": "28486893.0dfea",
+ "type": "save",
+ "name": "update AnAI - l3-network",
+ "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<parameter name=\"is-bound-to-vpn\" value=\"true\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1002.2092971801758,
+ "y": 3001.000725746155,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "96f54cc4.f8e658",
+ "901faee1.a661a8"
+ ]
+ ]
+ },
+ {
+ "id": "96f54cc4.f8e658",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1198.4924545288086,
+ "y": 3001.016043663025,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "fe31453e.ab6908"
+ ]
+ ]
+ },
+ {
+ "id": "d7831095.d9bc78",
+ "type": "switchNode",
+ "name": "switch ... tmp.is-bound-to-vpn",
+ "xml": "<switch test=\"`$tmp.is-bound-to-vpn`\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 564.3521957397461,
+ "y": 3001.1436138153076,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "9f4b88e3.02d2e"
+ ]
+ ]
+ },
+ {
+ "id": "9f4b88e3.02d2e",
+ "type": "outcome",
+ "name": "true",
+ "xml": "<outcome value=\"true\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 783.7966461181641,
+ "y": 3000.9213495254517,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "28486893.0dfea"
+ ]
+ ]
+ },
+ {
+ "id": "fe31453e.ab6908",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1410.6021347045898,
+ "y": 3001.393569946289,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "ef840965.d71e1",
+ "22a385a.5a8d0fa"
+ ]
+ ]
+ },
+ {
+ "id": "ef840965.d71e1",
+ "type": "set",
+ "name": "set: tmp.error-message",
+ "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while updating l3-network is-bound-to-vpn in AnAI where network-id = ' + $tmp.return.generate-l3network-network-id.uuid`\"/>",
+ "comments": "",
+ "x": 1629.1021194458008,
+ "y": 3001.14354801178,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "901faee1.a661a8",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1205.9790878295898,
+ "y": 3042.115693092346,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "fe31453e.ab6908"
+ ]
+ ]
+ },
+ {
+ "id": "ae04c24.176bd4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 844.7306137084961,
+ "y": 3151.8412466049194,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "2b62dc59.a192f4"
+ ]
+ ]
+ },
+ {
+ "id": "2b62dc59.a192f4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1024.62349319458,
+ "y": 3151.4773540496826,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "31612b4c.5ef26c",
+ "22a385a.5a8d0fa"
+ ]
+ ]
+ },
+ {
+ "id": "31612b4c.5ef26c",
+ "type": "set",
+ "name": "set: tmp.error-message",
+ "xml": "<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving service-instance relationship for l3-network in AnAI where service-instance-id = ' + $network-topology-operation-input.service-information.service-instance-id`\"/>",
+ "comments": "",
+ "x": 1262.7230606079102,
+ "y": 3151.227276802063,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "38617205.be7ed6",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 852.4670655992295,
+ "y": 3194.321770985922,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "2b62dc59.a192f4"
+ ]
+ ]
+ },
+ {
+ "id": "b4074df8.ed1058",
+ "type": "save",
+ "name": "save relationship: service-instance",
+ "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"service-instance\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"customer.global-customer-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$service-data.service-information.global-customer-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"service-subscription.service-type\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$service-data.service-information.subscription-service-type`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"service-instance.service-instance-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$service-data.service-information.service-instance-id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 587.7093887329102,
+ "y": 3150.250744819641,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "ae04c24.176bd4",
+ "38617205.be7ed6"
+ ]
+ ]
+ },
+ {
+ "id": "7c6df7c7.54a1b8",
+ "type": "set",
+ "name": "set network in service-data",
+ "xml": "<set>\n<parameter name=\"service-data.networks.network[$nidx].network-id\" value='`$tmp.l3-network.network-id`' />\n<parameter name=\"service-data.networks.network[$nidx].network-data.network-information.from-preload\" value='true' />\n<parameter name=\"service-data.networks.network[$nidx].network-data.network-topology.\" value='$network-topology.' />\n<parameter name=\"service-data.networks.network_length\" value='`$nidx_len`' />\n\n",
+ "comments": "",
+ "x": 574.0842971801758,
+ "y": 3438.500725746155,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "e47e109d.a0ff58",
+ "type": "set",
+ "name": "set network-topology-identifier-structure in service-data",
+ "xml": "<set>\n<parameter name='network-topology.network-topology-identifier-structure.' value='`$tmp.l3-network.`' />\n<parameter name='network-topology.tenant' value='`$network-topology-operation-input.network-request-input.tenant`' />\n<parameter name='network-topology.onap-model-information.' value='`$network-topology-operation-input.network-information.onap-model-information.`' />\n<parameter name='network-topology.network-parameters.' value='`$network-topology-operation-input.network-request-input.network-parameters.`' />\n<parameter name='network-topology.aic-cloud-region' value='`$network-topology-operation-input.network-request-input.aic-cloud-region`' />",
+ "comments": "",
+ "x": 657.8342781066895,
+ "y": 3331.358116298914,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "cc6598a9.87c2b",
+ "type": "switchNode",
+ "name": "switch tmp.nidx ",
+ "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 526.9421463012695,
+ "y": 271.00167179107666,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "1a232eae.01d1d9",
+ "f965bd6.4d2f3c"
+ ]
+ ]
+ },
+ {
+ "id": "1a232eae.01d1d9",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 715.5135307312012,
+ "y": 269.573055267334,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "28959dc0.4eb232"
+ ]
+ ]
+ },
+ {
+ "id": "28959dc0.4eb232",
+ "type": "switchNode",
+ "name": "switch service-data.networks_length",
+ "xml": "<switch test='`$service-data.networks.network_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 964.7396240234375,
+ "y": 270.76397228240967,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "cbc80b09.ba82d",
+ "7c34b262.275f74"
+ ]
+ ]
+ },
+ {
+ "id": "cbc80b09.ba82d",
+ "type": "other",
+ "name": "Null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1257.8349466323853,
+ "y": 269.5732808113098,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "c6793106.bd6658"
+ ]
+ ]
+ },
+ {
+ "id": "c6793106.bd6658",
+ "type": "set",
+ "name": "set nidx",
+ "xml": "<set>\n<parameter name='nidx' value='0' />\n<parameter name='nidx_len' value='1'/>\n",
+ "comments": "",
+ "x": 1437.8349885940552,
+ "y": 267.1446967124939,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "7c34b262.275f74",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1260.6921091079712,
+ "y": 295.2875533103943,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "388fb15f.45d1d6"
+ ]
+ ]
+ },
+ {
+ "id": "388fb15f.45d1d6",
+ "type": "set",
+ "name": "set nidx",
+ "xml": "<set>\n<parameter name='nidx' value='`$service-data.networks.network_length`' />\n<parameter name='nidx_len' value='`$service-data.networks.network_length + 1`' />\n",
+ "comments": "",
+ "x": 1439.26353931427,
+ "y": 304.1447539329529,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "f965bd6.4d2f3c",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 716.9421653747559,
+ "y": 308.14452743530273,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "405b67e.cee6e18"
+ ]
+ ]
+ },
+ {
+ "id": "405b67e.cee6e18",
+ "type": "set",
+ "name": "set nidx",
+ "xml": "<set>\n<parameter name='nidx' value='`$tmp.nidx`' />\n<parameter name='nidx_len' value='`$service-data.networks.network_length`' />\n",
+ "comments": "",
+ "x": 879.7992897033691,
+ "y": 308.1445531845093,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "2c9a3a4.e93b0c6",
+ "type": "execute",
+ "name": "execute printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/lmr-nto.log' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 551.0832824707031,
+ "y": 760,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c0752540.c5d33",
+ "type": "execute",
+ "name": "execute printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/lmr-nto2.log' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 549.0833282470703,
+ "y": 3480.5,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6a834ee1.1f5b58",
+ "type": "set",
+ "name": "set network-information in service-data",
+ "xml": "<set>\n<parameter name=\"service-data.networks.network[$nidx].network-data.network-information.network-id\" value='`$tmp.l3-network.network-id`' />\n<parameter name=\"service-data.networks.network[$nidx].network-data.network-information.from-preload\" value='true' />\n<parameter name=\"service-data.networks.network[$nidx].network-data.network-information.network-type\" value='`$tmp.l3-network.network-type`' />\n\n",
+ "comments": "",
+ "x": 603.3332824707031,
+ "y": 718.25,
+ "z": "82833d80.f4cf48",
+ "wires": []
+ },
+ {
+ "id": "9f83df4.bd32ba",
+ "type": "save",
+ "name": "query AnAI - vpn-bindings",
+ "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vpn-binding\" \n\t\tkey=\"vpn-binding.vpn-id = $tmp.vpn-binding-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.AnAI.vpn-binding\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1560.3333282470703,
+ "y": 2355.25,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "8213e5c.c630398",
+ "ea20daae.300c58",
+ "39514786.0a7eb8"
+ ]
+ ]
+ },
+ {
+ "id": "fb6c215.a6cb56",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1317.8333282470703,
+ "y": 2355.5,
+ "z": "82833d80.f4cf48",
+ "wires": [
+ [
+ "9f83df4.bd32ba",
+ "def7a073.250e98"
+ ]
+ ]
+ }
+]
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.xml
index 013219dd..b0eb3f63 100755
--- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.xml
@@ -74,9 +74,6 @@
</return>
</outcome>
</execute>
- <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
- <parameter name='filename' value='/var/tmp/lmr-nto.log' />
- </execute>
<set>
<parameter name="tmp.error-message" value=""/>
</set>
@@ -91,12 +88,6 @@
<parameter name="error-message" value="'Error searching for l3-network with network-name =' + $tmp.network-instance-name + 'from AnAI'" />
</return>
</outcome>
- <outcome value='success'>
- <return status='failure'>
- <parameter name="error-code" value="500" />
- <parameter name="error-message" value="'Error l3-network with network-name =' + $tmp.network-instance-name + ' already exists in AnAI'" />
- </return>
- </outcome>
</get-resource>
<set>
<parameter name='tmp.l3-network.network-name' value="`$tmp.network-instance-name`" />
@@ -128,75 +119,9 @@
<parameter name="service-data.networks.network[$nidx].network-data.network-information.from-preload" value='true' />
<parameter name="service-data.networks.network[$nidx].network-data.network-information.network-type" value='`$tmp.l3-network.network-type`' />
</set>
- <switch test='`$tmp.l3-network.service-id`'>
- <outcome value=''>
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="l3-network"
- key="l3-network.network-id = $tmp.l3-network.network-id" >
- <!-- Create l3-network object -->
- <parameter name="network-id" value="`$tmp.l3-network.network-id`" />
- <parameter name="network-name" value="`$tmp.network-instance-name`" />
- <parameter name='network-type' value="`$tmp.l3-network.network-type`" />
- <parameter name='network-role' value="`$tmp.l3-network.network-role`" />
- <parameter name='network-technology' value="`$network-model.network-technology`" />
- <parameter name="is-bound-to-vpn" value="`$tmp.l3-network.is-bound-to-vpn-boolean`" />
- <parameter name="tenant-id" value="`$network-topology-operation-input.network-request-input.tenant`" />
- <parameter name="network-role-instance" value="0" />
- <parameter name="orchestration-status" value="PendingCreate" />
- <parameter name="physical-network-name" value="`$preload-data.preload-network-topology-information.physical-network-name`" />
- <parameter name="is-provider-network" value="`$preload-data.preload-network-topology-information.is-provider-network`" />
- <parameter name="is-shared-network" value="`$preload-data.preload-network-topology-information.is-shared-network`" />
- <parameter name="is-external-network" value="`$preload-data.preload-network-topology-information.is-external-network`" />
- <parameter name="selflink" value="`$tmp.l3-network.self-link`" />
- <outcome value='failure'>
- <return status='failure'>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value="`'Failed to save l3-network in AnAI with network-id = ' + $tmp.return.generate-l3network-network-id.uuid`"/>
- </return>
- </outcome>
- <outcome value='not-found'>
- <return status='failure'>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value="`'Failed to save l3-network in AnAI with network-id = ' + $tmp.return.generate-l3network-network-id.uuid`"/>
- </return>
- </outcome>
- </save>
- </outcome>
- <outcome value='Other'>
- <save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
- resource="l3-network"
- key="l3-network.network-id = $tmp.l3-network.network-id" >
- <!-- Create l3-network object -->
- <parameter name="network-id" value="`$tmp.l3-network.network-id`" />
- <parameter name="network-name" value="`$tmp.network-instance-name`" />
- <parameter name='network-type' value="`$network-model.network-type`" />
- <parameter name='network-role' value="`$network-model.network-role`" />
- <parameter name='network-technology' value="`$network-model.network-technology`" />
- <parameter name='is-bound-to-vpn' value="`$network-model.is-bound-to-vpn`" />
- <parameter name="service-id" value="`$network-topology-operation-input.service-information.service-id`" />
- <parameter name="tenant-id" value="`$network-topology-operation-input.network-request-input.tenant`" />
- <parameter name="network-role-instance" value="0" />
- <parameter name="orchestration-status" value="PendingCreate" />
- <parameter name="physical-network-name" value="`$preload-data.preload-network-topology-information.physical-network-name`" />
- <parameter name="is-provider-network" value="`$preload-data.preload-network-topology-information.is-provider-network`" />
- <parameter name="is-shared-network" value="`$preload-data.preload-network-topology-information.is-shared-network`" />
- <parameter name="is-external-network" value="`$preload-data.preload-network-topology-information.is-external-network`" />
- <parameter name="selflink" value="`$tmp.l3-network.self-link`" />
- <outcome value='failure'>
- <return status='failure'>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value="`'Failed to save l3-network in AnAI with network-id = ' + $tmp.return.generate-l3network-network-id.uuid`"/>
- </return>
- </outcome>
- <outcome value='not-found'>
- <return status='failure'>
- <parameter name='error-code' value='500'/>
- <parameter name='error-message' value="`'Failed to save l3-network in AnAI with network-id = ' + $tmp.return.generate-l3network-network-id.uuid`"/>
- </return>
- </outcome>
- </save>
- </outcome>
- </switch>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
+ <parameter name='filename' value='/var/tmp/lmr-nto.log' />
+ </execute>
<switch test="`$preload-data.preload-network-topology-information.subnets_length`">
<outcome value=''>
<set>
@@ -944,9 +869,7 @@
<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />
<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />
</set>
- <return status='success'>
- <parameter name='' value='' />
- </return>
+ <return status='success' ></return>
</block>
</method>
-</service-logic> \ No newline at end of file
+</service-logic>