diff options
Diffstat (limited to 'platform-logic/vnfapi/src/main/json/VNF-API_network-topology-assign.json')
-rw-r--r-- | platform-logic/vnfapi/src/main/json/VNF-API_network-topology-assign.json | 2248 |
1 files changed, 2244 insertions, 4 deletions
diff --git a/platform-logic/vnfapi/src/main/json/VNF-API_network-topology-assign.json b/platform-logic/vnfapi/src/main/json/VNF-API_network-topology-assign.json index 351376ec..850d9493 100644 --- a/platform-logic/vnfapi/src/main/json/VNF-API_network-topology-assign.json +++ b/platform-logic/vnfapi/src/main/json/VNF-API_network-topology-assign.json @@ -1,4 +1,2244 @@ - - - -[{"id":"761cf409.e7fe2c","type":"method","name":"method network-topology-assign","xml":"<method rpc=\"network-topology-assign\" mode=\"sync\">","comments":"","outputs":1,"x":220,"y":88.57142639160156,"z":"f9c6b4d6.c89d48","wires":[["f32f7d99.8e885"]]},{"id":"2cc42ce.d3a7dd4","type":"service-logic","name":"VNF-API 3.0.0","module":"VNF-API","version":"${project.version}","comments":"","xml":"<service-logic xmlns='http://www.att.com/sdnctl/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.att.com/sdnctl/svclogic ./svclogic.xsd' module='VNF-API' version='${project.version}'>","outputs":1,"x":295.4444351196289,"y":37.238101959228516,"z":"f9c6b4d6.c89d48","wires":[["761cf409.e7fe2c"]]},{"id":"d4150291.a47c7","type":"dgstart","name":"DGSTART","outputs":1,"x":131.33332061767578,"y":37.238101959228516,"z":"f9c6b4d6.c89d48","wires":[["2cc42ce.d3a7dd4"]]},{"id":"f32f7d99.8e885","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":185.76110458374023,"y":160.88003540039062,"z":"f9c6b4d6.c89d48","wires":[["e6608c59.2d82d","d54bce56.12186","7c655566.f8d98c","d18455b2.897038","9683e1d.b26132","fdec3d96.4fe6c","aec67243.3085b","b25a8a99.44e208","d1f10746.e56058","6a95cc4c.004c34","cced61c2.cb78b","d30ff142.3546e","eec55dc8.09816","d92a7574.cd1b58","f5d35022.8ff6","30dd8358.aaaadc","830f1b88.627bf8","d045d509.c8ec58","4330f5b6.e6251c"]]},{"id":"e6608c59.2d82d","type":"save","name":"save AnAI - l3-network","xml":"<save plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.return.generate-l3network-network-id.uuid`\" />\n<parameter name=\"network-name\" value=\"`$network-topology-operation-input.network-request-information.network-name`\" />\n<parameter name=\"network-type\" value=\"`$network-topology-operation-input.network-request-information.network-type`\" />\n<parameter name=\"network-role\" value=\"`$preload-data.network-topology-information.network-topology-identifier.network-role`\" />\n<parameter name=\"network-technology\" value=\"`$preload-data.network-topology-information.network-topology-identifier.network-technology`\" />\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-information.tenant`\" />\n<parameter name=\"network-role-instance\" value=\"0\" />\n<parameter name=\"orchestration-status\" value=\"pending-create\" />","comments":"","outputs":1,"x":436.1934051513672,"y":454.1977233886719,"z":"f9c6b4d6.c89d48","wires":[["9de98ca4.f462","8cf9ad87.65dd7"]]},{"id":"d54bce56.12186","type":"for","name":"for loop i - PRELOAD subnets","xml":"<for index=\"i\" start=\"0\" end=\"`$preload-data.network-topology-information.subnets_length`\">\n","comments":"","outputs":1,"x":457.9034957885742,"y":640.8798131942749,"z":"f9c6b4d6.c89d48","wires":[["4ae47500.3fa4ac"]]},{"id":"7c655566.f8d98c","type":"returnSuccess","name":"return success","xml":"<return status=\"success\">\n\t<parameter name=\"networkId\" value=\"`$tmp.return.generate-l3network-network-id.uuid`\" />\n\t<parameter name=\"error-code\" value=\"200\" />","comments":"","x":375.84381103515625,"y":2471.0271310806274,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"d18455b2.897038","type":"set","name":"Set final indicator to Y","xml":"<set>\n<parameter name=\"ack-final\" value=\"Y\"/>","comments":"","x":399.12740325927734,"y":2422.105136871338,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"9de98ca4.f462","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":628.4765625,"y":454.213041305542,"z":"f9c6b4d6.c89d48","wires":[["c0b37f94.55c04"]]},{"id":"4ae47500.3fa4ac","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":672.9021148681641,"y":640.8888244628906,"z":"f9c6b4d6.c89d48","wires":[["d2b530e1.e4e06","a4bddbdd.384ca8","b441c359.b1ed5","a461de0f.d6093","bbec29a5.4081f8","69434546.6b177c"]]},{"id":"c0b37f94.55c04","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-netework in AnAI with network-id = ' + $tmp.return.generate-l3network-network-id.uuid`\"/>","comments":"","x":829.254035949707,"y":453.9908256530762,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"bf4af859.d229c8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1152.2541790008545,"y":868.8520412445068,"z":"f9c6b4d6.c89d48","wires":[["78a54b4f.f2a264"]]},{"id":"c5f09568.abd408","type":"set","name":"set tmp.dhcpEnabled.boolean=false","xml":"<set>\n<parameter name=\"tmp.dhcpEnabled.boolean\" value=\"false\" />\n","comments":"","x":1419.9320831298828,"y":682.2393565177917,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"27c769b5.ca3316","type":"set","name":"set tmp.dhcpEnabled.boolean=true","xml":"<set>\n<parameter name=\"tmp.dhcpEnabled.boolean\" value=\"true\" />\n","comments":"","x":1418.2495880126953,"y":641.1758060455322,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"d2b530e1.e4e06","type":"switchNode","name":"switch: PRELOAD dhcp-enabled","xml":"<switch test=\"`$preload-data.network-topology-information.subnets[$i].dhcp-enabled`\">","comments":"","outputs":1,"x":944.2495880126953,"y":640.6820316314697,"z":"f9c6b4d6.c89d48","wires":[["1d57866b.dc0d9a","1656d8a4.c39f97"]]},{"id":"1d57866b.dc0d9a","type":"other","name":"Y","xml":"<outcome value='Y'>","comments":"","outputs":1,"x":1201.4719314575195,"y":640.9043521881104,"z":"f9c6b4d6.c89d48","wires":[["27c769b5.ca3316"]]},{"id":"1656d8a4.c39f97","type":"other","name":"N","xml":"<outcome value='N'>","comments":"","outputs":1,"x":1201.3766021728516,"y":682.7455735206604,"z":"f9c6b4d6.c89d48","wires":[["c5f09568.abd408"]]},{"id":"9683e1d.b26132","type":"for","name":"for loop i - PRELOAD vpn-bindings","xml":"<for index=\"i\" start=\"0\" end=\"`$preload-data.network-topology-information.vpn-bindings_length`\">\n","comments":"","outputs":1,"x":470.5514221191406,"y":1153.222297668457,"z":"f9c6b4d6.c89d48","wires":[["547d693b.b05e78"]]},{"id":"547d693b.b05e78","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":712.3292007446289,"y":1153.4722995758057,"z":"f9c6b4d6.c89d48","wires":[["26c6c645.1a9d3a","239555fc.bdbfaa","36380a8c.5dc166","300d9dbd.6d58a2"]]},{"id":"42bfa7b6.ab68a8","type":"save","name":"save relationship: vpn_bindings","xml":"<save plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" \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":1053.856918334961,"y":1378.4445276260376,"z":"f9c6b4d6.c89d48","wires":[["80139c48.11b38","cd3c019c.f3ce1","188bd49e.885fbb"]]},{"id":"d1f10746.e56058","type":"call","name":"call: generate-l3network-network-id","xml":"<call module=\"VNF-API\" rpc=\"generate-l3network-network-id\" mode=\"sync\" >\n","comments":"","outputs":1,"x":474.26195526123047,"y":407.761869430542,"z":"f9c6b4d6.c89d48","wires":[["d51eccf4.b117b"]]},{"id":"d51eccf4.b117b","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":697.0119400024414,"y":408.0118598937988,"z":"f9c6b4d6.c89d48","wires":[["8780710c.05f27"]]},{"id":"8780710c.05f27","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 in generating l3-network.network-id in SDNC'/>","comments":"","x":853.7894134521484,"y":407.789644241333,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"fdec3d96.4fe6c","type":"switchNode","name":"switch ... PRELOAD vpn-bindings[]","xml":"<switch test=\"`$preload-data.network-topology-information.vpn-bindings_length`\">","comments":"","outputs":1,"x":470.92886522081153,"y":1109.8036111195884,"z":"f9c6b4d6.c89d48","wires":[["33a85e7a.541aa2"]]},{"id":"33a85e7a.541aa2","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":691.3733155992295,"y":1109.5813468297324,"z":"f9c6b4d6.c89d48","wires":[["8f10e90b.9b56a8"]]},{"id":"8f10e90b.9b56a8","type":"set","name":"set vpn-bindings[] = 0","xml":"<set>\n<parameter name=\"preload-data.network-topology-information.vpn-bindings_length\" value=\"0\" />\n","comments":"","x":885.9289245605469,"y":1109.5813674926758,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"b25a8a99.44e208","type":"switchNode","name":"switch ... PRELOAD network-policy[]","xml":"<switch test=\"`$preload-data.network-topology-information.network-policy_length`\">","comments":"","outputs":1,"x":452.0991668701172,"y":1523.0717792510986,"z":"f9c6b4d6.c89d48","wires":[["b82095af.08bfb8"]]},{"id":"b82095af.08bfb8","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":681.5436172485352,"y":1522.8495149612427,"z":"f9c6b4d6.c89d48","wires":[["91c9b9db.ea94b8"]]},{"id":"91c9b9db.ea94b8","type":"set","name":"set network-policy[] = 0","xml":"<set>\n<parameter name='preload-data.network-topology-information.network-policy_length' value='0' />\n","comments":"","x":876.0992262098525,"y":1522.849535624186,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"a4bddbdd.384ca8","type":"switchNode","name":"switch test: PRELOAD gateway-address","xml":"<switch test=\"`$preload-data.network-topology-information.subnets[$i].gateway-address`\">","comments":"","outputs":1,"x":968.646915435791,"y":735.6547451019287,"z":"f9c6b4d6.c89d48","wires":[["919f40fc.c3bd9"]]},{"id":"919f40fc.c3bd9","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":1212.146915435791,"y":735.6547451019287,"z":"f9c6b4d6.c89d48","wires":[["82d44a1c.206d88"]]},{"id":"21deb593.226d7a","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.network-topology-information.subnets[$i].start-address`\" />\n\t<parameter name=\"ipVersion\" value=\"`$preload-data.network-topology-information.subnets[$i].ip-version`\" />\n\t<parameter name=\"subnet\" value=\"`$preload-data.network-topology-information.subnets[$i].cidr-mask`\" />\n\t<parameter name=\"ctxVariable\" value=\"tmp.return.generate.gateway-address\" />","comments":"","outputs":1,"x":1609.39693069458,"y":735.4047527313232,"z":"f9c6b4d6.c89d48","wires":[[]]},{"id":"82d44a1c.206d88","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1362.8969230651855,"y":735.6547555923462,"z":"f9c6b4d6.c89d48","wires":[["21deb593.226d7a","144c19a.8fa82e6"]]},{"id":"b441c359.b1ed5","type":"set","name":"set tmp.gateway-address","xml":"<set>\n<parameter name=\"tmp.gateway-address\" value=\"`$preload-data.network-topology-information.subnets[$i].gateway-address`\" />\n","comments":"","x":922.1469306945801,"y":688.9047517776489,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"144c19a.8fa82e6","type":"set","name":"set tmp.gateway-address","xml":"<set>\n<parameter name=\"tmp.gateway-address\" value=\"`$tmp.return.generate.gateway-address`\" />\n","comments":"","x":1575.89693069458,"y":777.4047546386719,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"26c6c645.1a9d3a","type":"switchNode","name":"switch: PRELOAD route-target != NULL","xml":"<switch test=\"`$preload-data.network-topology-information.vpn-bindings[$i].global-route-target != ''`\" >","comments":"","outputs":1,"x":975.5635833740234,"y":1244.8216018676758,"z":"f9c6b4d6.c89d48","wires":[["57a4fb2.f593104"]]},{"id":"57a4fb2.f593104","type":"other","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1212.0635833740234,"y":1245.0716018676758,"z":"f9c6b4d6.c89d48","wires":[["fc2001b2.ee9d2"]]},{"id":"fc2001b2.ee9d2","type":"save","name":"query AnAI - vpn-bindings","xml":"<get-resource plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"vpn-binding\" \n\t\tkey=\"vpn-binding.global-route-target = $preload-data.network-topology-information.vpn-bindings[$i].global-route-target\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.AnAI.vpn-binding\">","comments":"","outputs":1,"x":1411.5635795593262,"y":1244.82160282135,"z":"f9c6b4d6.c89d48","wires":[["9d2982aa.7ea2a","c4a0a4b9.d67758","67b5caf1.ddebd4"]]},{"id":"9d2982aa.7ea2a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1621.8135795593262,"y":1325.0716037750244,"z":"f9c6b4d6.c89d48","wires":[["55368e8d.0d27b"]]},{"id":"78a54b4f.f2a264","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1351.6470069885254,"y":868.4881591796875,"z":"f9c6b4d6.c89d48","wires":[["5157a0f1.40c66","7598ed5f.703d44"]]},{"id":"5157a0f1.40c66","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 l3-newtork.subnet in AnAI where subnet-id = ' + $tmp.return.generate-subnets-subnet-id.uuid`\"/>","comments":"","x":1553.7465476989746,"y":868.23805809021,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"e4f1cfec.80ca7","type":"delete","name":"delete l3-network","xml":"<delete plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\">","comments":"","outputs":1,"x":1525.530288696289,"y":2284.034454345703,"z":"f9c6b4d6.c89d48","wires":[[]]},{"id":"2b7509e.d0964f6","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":1512.4676208496094,"y":2327.230498313904,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"c4a0a4b9.d67758","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1627.3135833740234,"y":1284.57160282135,"z":"f9c6b4d6.c89d48","wires":[["55368e8d.0d27b"]]},{"id":"7598ed5f.703d44","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1335.7065505981445,"y":2284.2860431671143,"z":"f9c6b4d6.c89d48","wires":[["e4f1cfec.80ca7","2b7509e.d0964f6"]]},{"id":"55368e8d.0d27b","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1774.8135833740234,"y":1324.8216047286987,"z":"f9c6b4d6.c89d48","wires":[["7756b135.e6c4b","7598ed5f.703d44"]]},{"id":"7756b135.e6c4b","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 global-route-target = ' + $preload-data.network-topology-information.vpn-bindings[$i].global-route-target`\"/>","comments":"","x":1996.9131240844727,"y":1324.5715036392212,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"239555fc.bdbfaa","type":"switchNode","name":"switch: PRELOAD vpn-binding-id","xml":"<switch test=\"`$preload-data.network-topology-information.vpn-bindings[$i].vpn-binding-id`\">","comments":"","outputs":1,"x":955.8135871887207,"y":1200.3215417861938,"z":"f9c6b4d6.c89d48","wires":[["ea26c779.e30328"]]},{"id":"ea26c779.e30328","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1169.3135948181152,"y":1200.0715427398682,"z":"f9c6b4d6.c89d48","wires":[["d6658c61.93f25"]]},{"id":"d6658c61.93f25","type":"set","name":"set tmp.vpn-binding-id","xml":"<set>\n<parameter name=\"tmp.vpn-binding-id\" value=\"`$preload-data.network-topology-information.vpn-bindings[$i].vpn-binding-id`\" />\n","comments":"","x":1351.8135948181152,"y":1200.0715436935425,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"67b5caf1.ddebd4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1622.8135795593262,"y":1244.82160282135,"z":"f9c6b4d6.c89d48","wires":[["93380f51.982a9"]]},{"id":"6fc7931.d198c6c","type":"set","name":"set tmp.vpn-binding-id","xml":"<set>\n<parameter name=\"tmp.vpn-binding-id\" value=\"`$tmp.AnAI.vpn-binding.vpn-id`\" />\n","comments":"","x":2277.0636291503906,"y":1243.571678161621,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"80139c48.11b38","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1278.9297943115234,"y":1377.920114517212,"z":"f9c6b4d6.c89d48","wires":[["4dce9a6d.462e74"]]},{"id":"4dce9a6d.462e74","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1466.8226737976074,"y":1377.556221961975,"z":"f9c6b4d6.c89d48","wires":[["d7897aa2.314cd8","7598ed5f.703d44"]]},{"id":"d7897aa2.314cd8","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":1679.9222145080566,"y":1378.3061208724976,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"aec67243.3085b","type":"for","name":"for loop i - PRELOAD network-policy","xml":"<for index=\"i\" start=\"0\" end=\"`$preload-data.network-topology-information.network-policy_length`\">\n","comments":"","outputs":1,"x":451.45642852783203,"y":1568.6431703567505,"z":"f9c6b4d6.c89d48","wires":[["9591c346.1a1b4"]]},{"id":"efde88cf.9b8748","type":"save","name":"save relationship: network-policy","xml":"<save plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\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":2268.0121154785156,"y":1701.1154356002808,"z":"f9c6b4d6.c89d48","wires":[["61a477bc.3c1228","70ae584f.c14f98"]]},{"id":"9591c346.1a1b4","type":"switchNode","name":"switch: PRELOAD network-policy-fqdn != NULL","xml":"<switch test=\"`$preload-data.network-topology-information.network-policy[$i].network-policy-fqdn != ''`\">","comments":"","outputs":1,"x":807.7186872694228,"y":1568.9924284617105,"z":"f9c6b4d6.c89d48","wires":[["28c23efe.60d8c2"]]},{"id":"28c23efe.60d8c2","type":"other","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1073.4686872694228,"y":1569.2424284617105,"z":"f9c6b4d6.c89d48","wires":[["9a67180c.7e8c88"]]},{"id":"9a67180c.7e8c88","type":"save","name":"query AnAI - network-policy","xml":"<get-resource plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"network-policy\" \n\t\tkey=\"network-policy.network-policy-fqdn = $preload-data.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":1282.71869108412,"y":1569.2424284617105,"z":"f9c6b4d6.c89d48","wires":[["86e4182d.175af8","3ac39ea5.f66bf2","36636bd5.8e92b4"]]},{"id":"86e4182d.175af8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1490.71877500746,"y":1610.2424379984536,"z":"f9c6b4d6.c89d48","wires":[["19951b2e.af9645"]]},{"id":"3ac39ea5.f66bf2","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1496.2187788221572,"y":1568.7424370447793,"z":"f9c6b4d6.c89d48","wires":[["19951b2e.af9645"]]},{"id":"19951b2e.af9645","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1660.7187788221572,"y":1609.992438952128,"z":"f9c6b4d6.c89d48","wires":[["1be79b78.b46515","7598ed5f.703d44"]]},{"id":"1be79b78.b46515","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.network-topology-information.network-policy[$i].network-policy-fqdn`\"/>","comments":"","x":1869.8183195326064,"y":1609.7423378626504,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"61a477bc.3c1228","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2491.084991455078,"y":1700.591022491455,"z":"f9c6b4d6.c89d48","wires":[["905198df.a2e8e8"]]},{"id":"905198df.a2e8e8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2670.977870941162,"y":1700.2271299362183,"z":"f9c6b4d6.c89d48","wires":[["3c4f721c.b157ae","7598ed5f.703d44"]]},{"id":"3c4f721c.b157ae","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":2894.0774116516113,"y":1700.9770288467407,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"a461de0f.d6093","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":941.7618713378906,"y":822.5118942260742,"z":"f9c6b4d6.c89d48","wires":[["6a268e02.7bf99"]]},{"id":"6a268e02.7bf99","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1239.5118560791016,"y":822.761884689331,"z":"f9c6b4d6.c89d48","wires":[["7598ed5f.703d44"]]},{"id":"6a95cc4c.004c34","type":"save","name":"save relationship: tenant and cloud-region","xml":"<save plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" \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=\"att-aic\" />\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-information.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-information.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=\"att-aic\" />\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-information.aic-cloud-region`\" />","comments":"","outputs":1,"x":495.5635681152344,"y":953.7380905151367,"z":"f9c6b4d6.c89d48","wires":[["94d20436.9f5a98","5c4aab8f.7f8844"]]},{"id":"94d20436.9f5a98","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":743.5635681152344,"y":953.7380905151367,"z":"f9c6b4d6.c89d48","wires":[["9bdd4cad.3259a"]]},{"id":"9bdd4cad.3259a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":931.9563961029053,"y":953.3742084503174,"z":"f9c6b4d6.c89d48","wires":[["9e720f57.6429d","7598ed5f.703d44"]]},{"id":"9e720f57.6429d","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 clould-region relationship for l3-network in AnAI where network-id = ' + $tmp.return.generate-l3network-network-id.uuid`\"/>","comments":"","x":1136.0559368133545,"y":953.1241073608398,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"36380a8c.5dc166","type":"switchNode","name":"switch: tmp.vpn-binding-id != NULL","xml":"<switch test=\"`$tmp.vpn-binding-id != ''`\">","comments":"","outputs":1,"x":962.8135833740234,"y":1291.7381057739258,"z":"f9c6b4d6.c89d48","wires":[["2a156ae6.84e5a6"]]},{"id":"2a156ae6.84e5a6","type":"other","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1182.5635681152344,"y":1291.7380905151367,"z":"f9c6b4d6.c89d48","wires":[["42bfa7b6.ab68a8"]]},{"id":"bbec29a5.4081f8","type":"set","name":"set tmp.local.network-id","xml":"<set>\n<parameter name=\"tmp.local.network-id\" value=\"`$tmp.return.generate-l3network-network-id.uuid`\" />\n","comments":"","x":917.5714569091797,"y":778.9999885559082,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"69434546.6b177c","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid \n\t\t\tAND subnet.subnet-id = $tmp.return.generate-subnets-subnet-id.uuid\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.return.generate-l3network-network-id.uuid`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.return.generate-subnets-subnet-id.uuid`\" />\n<parameter name=\"subnet-name\" value=\"`$preload-data.network-topology-information.subnets[$i].subnet-name`\" />\n<parameter name=\"gateway-address\" value=\"`$tmp.gateway-address`\" />\n<parameter name=\"network-start-address\" value=\"`$preload-data.network-topology-information.subnets[$i].start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$preload-data.network-topology-information.subnets[$i].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$preload-data.network-topology-information.subnets[$i].ip-version`\" />\n<parameter name=\"dhcp-start\" value=\"`$preload-data.network-topology-information.subnets[$i].dhcp-start-address`\" />\n<parameter name=\"dhcp-end\" value=\"`$preload-data.network-topology-information.subnets[$i].dhcp-end-address`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.dhcpEnabled.boolean`\" />\n\t\t<parameter name=\"orchestration-status\" value=\"pending-create\" />","comments":"","outputs":1,"x":940.6379051208496,"y":868.5035381317139,"z":"f9c6b4d6.c89d48","wires":[["bf4af859.d229c8","91ca1bcf.ce5e18"]]},{"id":"cced61c2.cb78b","type":"save","name":"get AnAI - l3-network by name","xml":"<get-resource plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-name = $network-topology-operation-input.network-request-information.network-name\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.AnAI.l3network.existed\">\n\n","comments":"","outputs":1,"x":458,"y":254.42857360839844,"z":"f9c6b4d6.c89d48","wires":[["442f4dcc.0db234","b16ddddf.00d98"]]},{"id":"442f4dcc.0db234","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":684.25,"y":296.6786346435547,"z":"f9c6b4d6.c89d48","wires":[["6a2fcf8c.18eb8"]]},{"id":"202129b8.5c0ed6","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'An error occurred while querying whether l3-network with network-name = ' + $network-topology-operation-input.network-request-information.network-name + ' already exists in AnAI'`\"/>\n","comments":"","x":832.7457580566406,"y":254.89673042297363,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"b16ddddf.00d98","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":679.5235358344185,"y":254.89673042297363,"z":"f9c6b4d6.c89d48","wires":[["202129b8.5c0ed6"]]},{"id":"6a2fcf8c.18eb8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'A l3-network with network-name = ' + $network-topology-operation-input.network-request-information.network-name + ' already existed in AnAI with network-id = ' + $tmp.AnAI.l3network.existed.network-id`\" />\n","comments":"","x":835.4286193847656,"y":296.42857360839844,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"d30ff142.3546e","type":"set","name":"set: tmp.error-message to \"\"","xml":"<set>\n\t<parameter name=\"tmp.error-message\" value=\"\"/>","comments":"","x":451.5714111328125,"y":362.67857360839844,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"300d9dbd.6d58a2","type":"set","name":"unset tmp.vpn-binding-id","xml":"<set>\n<parameter name=\"tmp.vpn-binding-id\" value=\"\" />\n","comments":"","x":929.8888931274414,"y":1154.015875339508,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"36636bd5.8e92b4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1493.24998304579,"y":1654.5715109507241,"z":"f9c6b4d6.c89d48","wires":[["ce9859f8.9238e8"]]},{"id":"cd3c019c.f3ce1","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1282.5872650146484,"y":1464.777780532837,"z":"f9c6b4d6.c89d48","wires":[["b9331242.105a7"]]},{"id":"b9331242.105a7","type":"set","name":"set tmp.is-bound-to-vpn","xml":"<set>\n<parameter name=\"tmp.is-bound-to-vpn\" value=\"true\" />\n","comments":"","x":1473.0872650146484,"y":1464.777780532837,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"dfebf1ef.060d1","type":"save","name":"update AnAI - l3-network","xml":"<update plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\n<parameter name=\"is-bound-to-vpn\" value=\"true\" />","comments":"","outputs":1,"x":655.3016128540039,"y":1956.206524848938,"z":"f9c6b4d6.c89d48","wires":[["e1336583.4cd0d8","8f30eaa4.9bde48"]]},{"id":"e1336583.4cd0d8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":851.5847702026367,"y":1956.221842765808,"z":"f9c6b4d6.c89d48","wires":[["f55c1f6d.ea9aa"]]},{"id":"eec55dc8.09816","type":"switchNode","name":"switch ... tmp.is-bound-to-vpn","xml":"<switch test=\"`$tmp.is-bound-to-vpn`\">","comments":"","outputs":1,"x":424.44444274902344,"y":1891.3493671417236,"z":"f9c6b4d6.c89d48","wires":[["34d11c70.e8f384"]]},{"id":"34d11c70.e8f384","type":"outcome","name":"true","xml":"<outcome value=\"true\">","comments":"","outputs":1,"x":643.8888931274414,"y":1891.1271028518677,"z":"f9c6b4d6.c89d48","wires":[["dfebf1ef.060d1"]]},{"id":"f55c1f6d.ea9aa","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1063.694450378418,"y":1956.5993690490723,"z":"f9c6b4d6.c89d48","wires":[["36e75acf.f931c6","7598ed5f.703d44"]]},{"id":"36e75acf.f931c6","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":1282.194435119629,"y":1956.349347114563,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"8cf9ad87.65dd7","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":636.5714111328125,"y":497.57141304016113,"z":"f9c6b4d6.c89d48","wires":[["c0b37f94.55c04"]]},{"id":"91ca1bcf.ce5e18","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1160.5714111328125,"y":909.5714130401611,"z":"f9c6b4d6.c89d48","wires":[["78a54b4f.f2a264"]]},{"id":"5c4aab8f.7f8844","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":751.5714111328125,"y":995.5714130401611,"z":"f9c6b4d6.c89d48","wires":[["9bdd4cad.3259a"]]},{"id":"188bd49e.885fbb","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1287.0157318115234,"y":1420.5713863372803,"z":"f9c6b4d6.c89d48","wires":[["4dce9a6d.462e74"]]},{"id":"8f30eaa4.9bde48","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":859.071403503418,"y":1997.3214921951294,"z":"f9c6b4d6.c89d48","wires":[["f55c1f6d.ea9aa"]]},{"id":"70ae584f.c14f98","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2498.8214433458115,"y":1743.071546872457,"z":"f9c6b4d6.c89d48","wires":[["905198df.a2e8e8"]]},{"id":"93380f51.982a9","type":"switchNode","name":"switch: tmp.AnAI.vpn-binding.vpn-id","xml":"<switch test=\"`$tmp.AnAI.vpn-binding.vpn-id`\" >","comments":"","outputs":1,"x":1830.8214416503906,"y":1244.3214302062988,"z":"f9c6b4d6.c89d48","wires":[["eff41a9e.00afa8","5bc2956f.787c5c"]]},{"id":"b76ca92c.0ed578","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2253.5714416503906,"y":1283.3214302062988,"z":"f9c6b4d6.c89d48","wires":[["bb1b9631.658388","7598ed5f.703d44"]]},{"id":"5bc2956f.787c5c","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2088.5714416503906,"y":1283.8214302062988,"z":"f9c6b4d6.c89d48","wires":[["b76ca92c.0ed578"]]},{"id":"eff41a9e.00afa8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2088.5714111328125,"y":1243.8214130401611,"z":"f9c6b4d6.c89d48","wires":[["6fc7931.d198c6c"]]},{"id":"bb1b9631.658388","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 global-route-target = ' + $preload-data.network-topology-information.vpn-bindings[$i].global-route-target + '. It is likely that the same global-route-target points to more than one vpn-binding objects in AnAI.'`\"/>","comments":"","x":2469.0714111328125,"y":1283.3214130401611,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"ce9859f8.9238e8","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":1771.3292541503906,"y":1654.0713682174683,"z":"f9c6b4d6.c89d48","wires":[["3c3f8072.e88a9","d073d6e1.0db6e8"]]},{"id":"3c3f8072.e88a9","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2045.0792541503906,"y":1653.5713682174683,"z":"f9c6b4d6.c89d48","wires":[["78fb0dee.396224"]]},{"id":"78fb0dee.396224","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2210.0792541503906,"y":1653.0713682174683,"z":"f9c6b4d6.c89d48","wires":[["7598ed5f.703d44","c12525bf.5dfe18"]]},{"id":"b7a4e2fe.7602c","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.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":2636.912660386827,"y":1851.404614766439,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"d073d6e1.0db6e8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2044.5714111328125,"y":1700.8214664459229,"z":"f9c6b4d6.c89d48","wires":[["efde88cf.9b8748"]]},{"id":"d92a7574.cd1b58","type":"save","name":"update AnAI - l3-network.provider-network-information","xml":"<update plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\n<parameter name=\"physical-network-name\" value=\"`$preload-data.network-topology-information.provider-network-information.physical-network-name`\" />\n<parameter name=\"is-provider-network\" value=\"`$preload-data.network-topology-information.provider-network-information.is-provider-network`\" />\n<parameter name=\"is-shared-network\" value=\"`$preload-data.network-topology-information.provider-network-information.is-shared-network`\" />\n<parameter name=\"is-external-network\" value=\"`$preload-data.network-topology-information.provider-network-information.is-external-network`\" />","comments":"","outputs":1,"x":534.7499847412109,"y":541.3214206695557,"z":"f9c6b4d6.c89d48","wires":[["8d65ff4.75283","a6764a00.4418a8"]]},{"id":"8d65ff4.75283","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":848.2831344604492,"y":541.3367395401001,"z":"f9c6b4d6.c89d48","wires":[["19a0604d.6fffb"]]},{"id":"19a0604d.6fffb","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1060.3928146362305,"y":541.7142658233643,"z":"f9c6b4d6.c89d48","wires":[["bfc1c864.dda818","7598ed5f.703d44"]]},{"id":"bfc1c864.dda818","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 with provider-network-information in AnAI where network-id = ' + $tmp.return.generate-l3network-network-id.uuid`\"/>","comments":"","x":1278.8927993774414,"y":541.464243888855,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"a6764a00.4418a8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":855.7697677612305,"y":582.4363889694214,"z":"f9c6b4d6.c89d48","wires":[["19a0604d.6fffb"]]},{"id":"f5d35022.8ff6","type":"switchNode","name":"switch ... PRELOAD route-table-reference[]","xml":"<switch test=\"`$preload-data.network-topology-information.route-table-reference_length`\">","comments":"","outputs":1,"x":469.74998474121094,"y":1721.5714130401611,"z":"f9c6b4d6.c89d48","wires":[["4f951dff.ce2564"]]},{"id":"4f951dff.ce2564","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":725.1944351196289,"y":1721.3491487503052,"z":"f9c6b4d6.c89d48","wires":[["d46faf09.e831"]]},{"id":"d46faf09.e831","type":"set","name":"set route-table-reference[] = 0","xml":"<set>\n<parameter name='preload-data.network-topology-information.route-table-reference_length' value='0' />\n","comments":"","x":930.7500440809463,"y":1721.3491694132485,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"30dd8358.aaaadc","type":"for","name":"for loop i - PRELOAD route-table-reference","xml":"<for index=\"i\" start=\"0\" end=\"`$preload-data.network-topology-information.route-table-reference_length`\">\n","comments":"","outputs":1,"x":468.1072463989258,"y":1769.142804145813,"z":"f9c6b4d6.c89d48","wires":[["9bc7e123.4762e"]]},{"id":"75664f84.1ae09","type":"save","name":"save relationship: route-table-reference","xml":"<save plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\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":2454.9962632921006,"y":1900.9483931859336,"z":"f9c6b4d6.c89d48","wires":[["4d7f2cce.5452f4","5883ac21.585844"]]},{"id":"9bc7e123.4762e","type":"switchNode","name":"switch: PRELOAD network-policy-fqdn != NULL","xml":"<switch test=\"`$preload-data.network-topology-information.route-table-reference[$i].route-table-reference-fqdn != ''`\">","comments":"","outputs":1,"x":853.7028350830078,"y":1768.8253860473633,"z":"f9c6b4d6.c89d48","wires":[["209cfc0f.7ee064"]]},{"id":"209cfc0f.7ee064","type":"other","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1119.4528350830078,"y":1769.0753860473633,"z":"f9c6b4d6.c89d48","wires":[["4c6ed27c.d3899c"]]},{"id":"4c6ed27c.d3899c","type":"save","name":"query AnAI - route-table-reference","xml":"<get-resource plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"route-table-reference\" \n\t\tkey=\"route-table-reference.route-table-reference-fqdn = $preload-data.network-topology-information.route-table-reference[$i].route-table-reference-fqdn\" \n\t\tpfx=\"tmp.AnAI.route-table-reference\">","comments":"","outputs":1,"x":1348.702838897705,"y":1769.0753860473633,"z":"f9c6b4d6.c89d48","wires":[["32be05d4.ef453a","d31265a9.dd2a68","fc3f6dcc.3ffa5"]]},{"id":"32be05d4.ef453a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1574.702922821045,"y":1810.0753955841064,"z":"f9c6b4d6.c89d48","wires":[["c7025ab3.2465e8"]]},{"id":"d31265a9.dd2a68","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1580.2029266357422,"y":1768.5753946304321,"z":"f9c6b4d6.c89d48","wires":[["c7025ab3.2465e8"]]},{"id":"c7025ab3.2465e8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1744.7029266357422,"y":1809.8253965377808,"z":"f9c6b4d6.c89d48","wires":[["a84e07a3.02c778"]]},{"id":"a84e07a3.02c778","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.network-topology-information.network-policy[$i].network-policy-fqdn`\"/>","comments":"","x":1953.8024673461914,"y":1809.5752954483032,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"4d7f2cce.5452f4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2710.069139268663,"y":1900.423980077108,"z":"f9c6b4d6.c89d48","wires":[["7402c469.9e6bcc"]]},{"id":"7402c469.9e6bcc","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2889.962018754747,"y":1900.060087521871,"z":"f9c6b4d6.c89d48","wires":[["75091979.f14b18","7598ed5f.703d44"]]},{"id":"75091979.f14b18","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":3114.061586168077,"y":1899.8100102742515,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"fc3f6dcc.3ffa5","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1577.234130859375,"y":1854.404468536377,"z":"f9c6b4d6.c89d48","wires":[["b4dd51b0.f58dd"]]},{"id":"5883ac21.585844","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2717.8055911593965,"y":1942.9045044581098,"z":"f9c6b4d6.c89d48","wires":[["7402c469.9e6bcc"]]},{"id":"b4dd51b0.f58dd","type":"switchNode","name":"switch: tmp.AnAI.route-table-reference.route-table-reference-id","xml":"<switch test=\"`$tmp.AnAI.route-table-referencey.route-table-reference-id`\" >","comments":"","outputs":1,"x":1895.3134019639756,"y":1853.904325803121,"z":"f9c6b4d6.c89d48","wires":[["caa62ee1.0e628","70a311b7.2883a"]]},{"id":"caa62ee1.0e628","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2222.0634019639756,"y":1853.404325803121,"z":"f9c6b4d6.c89d48","wires":[["6ccdc09b.5108b"]]},{"id":"6ccdc09b.5108b","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2387.0634019639756,"y":1852.904325803121,"z":"f9c6b4d6.c89d48","wires":[["b7a4e2fe.7602c"]]},{"id":"c12525bf.5dfe18","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.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":2455.229965209961,"y":1652.5709247589111,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"70a311b7.2883a","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2221.5555589463975,"y":1900.6544240315757,"z":"f9c6b4d6.c89d48","wires":[["75664f84.1ae09"]]},{"id":"830f1b88.627bf8","type":"save","name":"save relationship: service-instance","xml":"<save plugin=\"com.att.sdnctl.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\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=\"`$network-topology-operation-input.service-information.subscriber-name`\" />\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=\"`$network-topology-operation-input.service-information.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=\"`$network-topology-operation-input.service-information.service-instance-id`\" />","comments":"","outputs":1,"x":449.74998474121094,"y":2092.571413040161,"z":"f9c6b4d6.c89d48","wires":[["862cdb1e.cf3978","29684e7c.4d3332"]]},{"id":"862cdb1e.cf3978","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":704.8228607177734,"y":2092.0469999313354,"z":"f9c6b4d6.c89d48","wires":[["a91510cb.75d29"]]},{"id":"a91510cb.75d29","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":884.7157402038574,"y":2091.6831073760986,"z":"f9c6b4d6.c89d48","wires":[["c6dc81e.9bba78","7598ed5f.703d44"]]},{"id":"c6dc81e.9bba78","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":1122.8153076171875,"y":2091.433030128479,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"29684e7c.4d3332","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":712.5593126085068,"y":2134.5275243123374,"z":"f9c6b4d6.c89d48","wires":[["a91510cb.75d29"]]},{"id":"4330f5b6.e6251c","type":"switchNode","name":"switch: INPUT service-type","xml":"<switch test=\"`$network-topology-operation-input.service-information.service-type`\">","comments":"","outputs":1,"x":447.75,"y":160.57142639160156,"z":"f9c6b4d6.c89d48","wires":[["a00be1d.7bd562"]]},{"id":"a00be1d.7bd562","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":653.75,"y":160.57142639160156,"z":"f9c6b4d6.c89d48","wires":[["84d2b076.55161"]]},{"id":"84d2b076.55161","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value='service-type, aka AnAI subscription-service-type, is required.'/>","comments":"","x":811.75,"y":160.57142639160156,"z":"f9c6b4d6.c89d48","wires":[]},{"id":"d045d509.c8ec58","type":"switchNode","name":"switch: INPUT subscriber-name","xml":"<switch test=\"`$network-topology-operation-input.service-information.subscriber-name`\">","comments":"","outputs":1,"x":461.75,"y":206.57142639160156,"z":"f9c6b4d6.c89d48","wires":[["5efbbb28.950c14"]]},{"id":"5efbbb28.950c14","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":683.75,"y":206.57142639160156,"z":"f9c6b4d6.c89d48","wires":[["d57a3c68.3825d"]]},{"id":"d57a3c68.3825d","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value='subscriber-name, aka AnAI global-customer-id, is required.'/>","comments":"","x":841.75,"y":206.57142639160156,"z":"f9c6b4d6.c89d48","wires":[]}] +[ + { + "id": "761cf409.e7fe2c", + "type": "method", + "name": "method network-topology-assign", + "xml": "<method rpc=\"network-topology-assign\" mode=\"sync\">", + "comments": "", + "outputs": 1, + "x": 220, + "y": 88.57142639160156, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "f32f7d99.8e885" + ] + ] + }, + { + "id": "2cc42ce.d3a7dd4", + "type": "service-logic", + "name": "VNF-API ${project.version}", + "module": "VNF-API", + "version": "${project.version}", + "comments": "", + "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='VNF-API' version='${project.version}'>", + "outputs": 1, + "x": 295.4444351196289, + "y": 37.238101959228516, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "761cf409.e7fe2c" + ] + ] + }, + { + "id": "d4150291.a47c7", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 131.33332061767578, + "y": 37.238101959228516, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "2cc42ce.d3a7dd4" + ] + ] + }, + { + "id": "f32f7d99.8e885", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic=\"true\">", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 185.76110458374023, + "y": 160.88003540039062, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "e6608c59.2d82d", + "d54bce56.12186", + "7c655566.f8d98c", + "d18455b2.897038", + "9683e1d.b26132", + "fdec3d96.4fe6c", + "aec67243.3085b", + "b25a8a99.44e208", + "d1f10746.e56058", + "6a95cc4c.004c34", + "cced61c2.cb78b", + "d30ff142.3546e", + "eec55dc8.09816", + "d92a7574.cd1b58", + "f5d35022.8ff6", + "30dd8358.aaaadc", + "830f1b88.627bf8", + "d045d509.c8ec58", + "4330f5b6.e6251c" + ] + ] + }, + { + "id": "e6608c59.2d82d", + "type": "save", + "name": "save AnAI - l3-network", + "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.return.generate-l3network-network-id.uuid`\" />\n<parameter name=\"network-name\" value=\"`$network-topology-operation-input.network-request-information.network-name`\" />\n<parameter name=\"network-type\" value=\"`$network-topology-operation-input.network-request-information.network-type`\" />\n<parameter name=\"network-role\" value=\"`$preload-data.network-topology-information.network-topology-identifier.network-role`\" />\n<parameter name=\"network-technology\" value=\"`$preload-data.network-topology-information.network-topology-identifier.network-technology`\" />\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-information.tenant`\" />\n<parameter name=\"network-role-instance\" value=\"0\" />\n<parameter name=\"orchestration-status\" value=\"pending-create\" />", + "comments": "", + "outputs": 1, + "x": 436.1934051513672, + "y": 454.1977233886719, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "9de98ca4.f462", + "8cf9ad87.65dd7" + ] + ] + }, + { + "id": "d54bce56.12186", + "type": "for", + "name": "for loop i - PRELOAD subnets", + "xml": "<for index=\"i\" start=\"0\" end=\"`$preload-data.network-topology-information.subnets_length`\">\n", + "comments": "", + "outputs": 1, + "x": 457.9034957885742, + "y": 640.8798131942749, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "4ae47500.3fa4ac" + ] + ] + }, + { + "id": "7c655566.f8d98c", + "type": "returnSuccess", + "name": "return success", + "xml": "<return status=\"success\">\n\t<parameter name=\"networkId\" value=\"`$tmp.return.generate-l3network-network-id.uuid`\" />\n\t<parameter name=\"error-code\" value=\"200\" />", + "comments": "", + "x": 375.84381103515625, + "y": 2471.0271310806274, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "d18455b2.897038", + "type": "set", + "name": "Set final indicator to Y", + "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>", + "comments": "", + "x": 399.12740325927734, + "y": 2422.105136871338, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "9de98ca4.f462", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 628.4765625, + "y": 454.213041305542, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "c0b37f94.55c04" + ] + ] + }, + { + "id": "4ae47500.3fa4ac", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 672.9021148681641, + "y": 640.8888244628906, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "d2b530e1.e4e06", + "a4bddbdd.384ca8", + "b441c359.b1ed5", + "a461de0f.d6093", + "bbec29a5.4081f8", + "69434546.6b177c" + ] + ] + }, + { + "id": "c0b37f94.55c04", + "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-netework in AnAI with network-id = ' + $tmp.return.generate-l3network-network-id.uuid`\"/>", + "comments": "", + "x": 829.254035949707, + "y": 453.9908256530762, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "bf4af859.d229c8", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1152.2541790008545, + "y": 868.8520412445068, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "78a54b4f.f2a264" + ] + ] + }, + { + "id": "c5f09568.abd408", + "type": "set", + "name": "set tmp.dhcpEnabled.boolean=false", + "xml": "<set>\n<parameter name=\"tmp.dhcpEnabled.boolean\" value=\"false\" />\n", + "comments": "", + "x": 1419.9320831298828, + "y": 682.2393565177917, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "27c769b5.ca3316", + "type": "set", + "name": "set tmp.dhcpEnabled.boolean=true", + "xml": "<set>\n<parameter name=\"tmp.dhcpEnabled.boolean\" value=\"true\" />\n", + "comments": "", + "x": 1418.2495880126953, + "y": 641.1758060455322, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "d2b530e1.e4e06", + "type": "switchNode", + "name": "switch: PRELOAD dhcp-enabled", + "xml": "<switch test=\"`$preload-data.network-topology-information.subnets[$i].dhcp-enabled`\">", + "comments": "", + "outputs": 1, + "x": 944.2495880126953, + "y": 640.6820316314697, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "1d57866b.dc0d9a", + "1656d8a4.c39f97" + ] + ] + }, + { + "id": "1d57866b.dc0d9a", + "type": "other", + "name": "Y", + "xml": "<outcome value='Y'>", + "comments": "", + "outputs": 1, + "x": 1201.4719314575195, + "y": 640.9043521881104, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "27c769b5.ca3316" + ] + ] + }, + { + "id": "1656d8a4.c39f97", + "type": "other", + "name": "N", + "xml": "<outcome value='N'>", + "comments": "", + "outputs": 1, + "x": 1201.3766021728516, + "y": 682.7455735206604, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "c5f09568.abd408" + ] + ] + }, + { + "id": "9683e1d.b26132", + "type": "for", + "name": "for loop i - PRELOAD vpn-bindings", + "xml": "<for index=\"i\" start=\"0\" end=\"`$preload-data.network-topology-information.vpn-bindings_length`\">\n", + "comments": "", + "outputs": 1, + "x": 470.5514221191406, + "y": 1153.222297668457, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "547d693b.b05e78" + ] + ] + }, + { + "id": "547d693b.b05e78", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 712.3292007446289, + "y": 1153.4722995758057, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "26c6c645.1a9d3a", + "239555fc.bdbfaa", + "36380a8c.5dc166", + "300d9dbd.6d58a2" + ] + ] + }, + { + "id": "42bfa7b6.ab68a8", + "type": "save", + "name": "save relationship: vpn_bindings", + "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" \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": 1053.856918334961, + "y": 1378.4445276260376, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "80139c48.11b38", + "cd3c019c.f3ce1", + "188bd49e.885fbb" + ] + ] + }, + { + "id": "d1f10746.e56058", + "type": "call", + "name": "call: generate-l3network-network-id", + "xml": "<call module=\"VNF-API\" rpc=\"generate-l3network-network-id\" mode=\"sync\" >\n", + "comments": "", + "outputs": 1, + "x": 474.26195526123047, + "y": 407.761869430542, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "d51eccf4.b117b" + ] + ] + }, + { + "id": "d51eccf4.b117b", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 697.0119400024414, + "y": 408.0118598937988, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "8780710c.05f27" + ] + ] + }, + { + "id": "8780710c.05f27", + "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 in generating l3-network.network-id in SDNC'/>", + "comments": "", + "x": 853.7894134521484, + "y": 407.789644241333, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "fdec3d96.4fe6c", + "type": "switchNode", + "name": "switch ... PRELOAD vpn-bindings[]", + "xml": "<switch test=\"`$preload-data.network-topology-information.vpn-bindings_length`\">", + "comments": "", + "outputs": 1, + "x": 470.92886522081153, + "y": 1109.8036111195884, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "33a85e7a.541aa2" + ] + ] + }, + { + "id": "33a85e7a.541aa2", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "outputs": 1, + "x": 691.3733155992295, + "y": 1109.5813468297324, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "8f10e90b.9b56a8" + ] + ] + }, + { + "id": "8f10e90b.9b56a8", + "type": "set", + "name": "set vpn-bindings[] = 0", + "xml": "<set>\n<parameter name=\"preload-data.network-topology-information.vpn-bindings_length\" value=\"0\" />\n", + "comments": "", + "x": 885.9289245605469, + "y": 1109.5813674926758, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "b25a8a99.44e208", + "type": "switchNode", + "name": "switch ... PRELOAD network-policy[]", + "xml": "<switch test=\"`$preload-data.network-topology-information.network-policy_length`\">", + "comments": "", + "outputs": 1, + "x": 452.0991668701172, + "y": 1523.0717792510986, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "b82095af.08bfb8" + ] + ] + }, + { + "id": "b82095af.08bfb8", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "outputs": 1, + "x": 681.5436172485352, + "y": 1522.8495149612427, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "91c9b9db.ea94b8" + ] + ] + }, + { + "id": "91c9b9db.ea94b8", + "type": "set", + "name": "set network-policy[] = 0", + "xml": "<set>\n<parameter name='preload-data.network-topology-information.network-policy_length' value='0' />\n", + "comments": "", + "x": 876.0992262098525, + "y": 1522.849535624186, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "a4bddbdd.384ca8", + "type": "switchNode", + "name": "switch test: PRELOAD gateway-address", + "xml": "<switch test=\"`$preload-data.network-topology-information.subnets[$i].gateway-address`\">", + "comments": "", + "outputs": 1, + "x": 968.646915435791, + "y": 735.6547451019287, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "919f40fc.c3bd9" + ] + ] + }, + { + "id": "919f40fc.c3bd9", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "outputs": 1, + "x": 1212.146915435791, + "y": 735.6547451019287, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "82d44a1c.206d88" + ] + ] + }, + { + "id": "21deb593.226d7a", + "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.network-topology-information.subnets[$i].start-address`\" />\n\t<parameter name=\"ipVersion\" value=\"`$preload-data.network-topology-information.subnets[$i].ip-version`\" />\n\t<parameter name=\"subnet\" value=\"`$preload-data.network-topology-information.subnets[$i].cidr-mask`\" />\n\t<parameter name=\"ctxVariable\" value=\"tmp.return.generate.gateway-address\" />", + "comments": "", + "outputs": 1, + "x": 1609.39693069458, + "y": 735.4047527313232, + "z": "f9c6b4d6.c89d48", + "wires": [ + [] + ] + }, + { + "id": "82d44a1c.206d88", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1362.8969230651855, + "y": 735.6547555923462, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "21deb593.226d7a", + "144c19a.8fa82e6" + ] + ] + }, + { + "id": "b441c359.b1ed5", + "type": "set", + "name": "set tmp.gateway-address", + "xml": "<set>\n<parameter name=\"tmp.gateway-address\" value=\"`$preload-data.network-topology-information.subnets[$i].gateway-address`\" />\n", + "comments": "", + "x": 922.1469306945801, + "y": 688.9047517776489, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "144c19a.8fa82e6", + "type": "set", + "name": "set tmp.gateway-address", + "xml": "<set>\n<parameter name=\"tmp.gateway-address\" value=\"`$tmp.return.generate.gateway-address`\" />\n", + "comments": "", + "x": 1575.89693069458, + "y": 777.4047546386719, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "26c6c645.1a9d3a", + "type": "switchNode", + "name": "switch: PRELOAD route-target != NULL", + "xml": "<switch test=\"`$preload-data.network-topology-information.vpn-bindings[$i].global-route-target != ''`\" >", + "comments": "", + "outputs": 1, + "x": 975.5635833740234, + "y": 1244.8216018676758, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "57a4fb2.f593104" + ] + ] + }, + { + "id": "57a4fb2.f593104", + "type": "other", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1212.0635833740234, + "y": 1245.0716018676758, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "fc2001b2.ee9d2" + ] + ] + }, + { + "id": "fc2001b2.ee9d2", + "type": "save", + "name": "query AnAI - vpn-bindings", + "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"vpn-binding\" \n\t\tkey=\"vpn-binding.global-route-target = $preload-data.network-topology-information.vpn-bindings[$i].global-route-target\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.AnAI.vpn-binding\">", + "comments": "", + "outputs": 1, + "x": 1411.5635795593262, + "y": 1244.82160282135, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "9d2982aa.7ea2a", + "c4a0a4b9.d67758", + "67b5caf1.ddebd4" + ] + ] + }, + { + "id": "9d2982aa.7ea2a", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1621.8135795593262, + "y": 1325.0716037750244, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "55368e8d.0d27b" + ] + ] + }, + { + "id": "78a54b4f.f2a264", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1351.6470069885254, + "y": 868.4881591796875, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "5157a0f1.40c66", + "7598ed5f.703d44" + ] + ] + }, + { + "id": "5157a0f1.40c66", + "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 l3-newtork.subnet in AnAI where subnet-id = ' + $tmp.return.generate-subnets-subnet-id.uuid`\"/>", + "comments": "", + "x": 1553.7465476989746, + "y": 868.23805809021, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "e4f1cfec.80ca7", + "type": "delete", + "name": "delete l3-network", + "xml": "<delete plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\">", + "comments": "", + "outputs": 1, + "x": 1525.530288696289, + "y": 2284.034454345703, + "z": "f9c6b4d6.c89d48", + "wires": [ + [] + ] + }, + { + "id": "2b7509e.d0964f6", + "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": 1512.4676208496094, + "y": 2327.230498313904, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "c4a0a4b9.d67758", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 1627.3135833740234, + "y": 1284.57160282135, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "55368e8d.0d27b" + ] + ] + }, + { + "id": "7598ed5f.703d44", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1335.7065505981445, + "y": 2284.2860431671143, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "e4f1cfec.80ca7", + "2b7509e.d0964f6" + ] + ] + }, + { + "id": "55368e8d.0d27b", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1774.8135833740234, + "y": 1324.8216047286987, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "7756b135.e6c4b", + "7598ed5f.703d44" + ] + ] + }, + { + "id": "7756b135.e6c4b", + "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 global-route-target = ' + $preload-data.network-topology-information.vpn-bindings[$i].global-route-target`\"/>", + "comments": "", + "x": 1996.9131240844727, + "y": 1324.5715036392212, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "239555fc.bdbfaa", + "type": "switchNode", + "name": "switch: PRELOAD vpn-binding-id", + "xml": "<switch test=\"`$preload-data.network-topology-information.vpn-bindings[$i].vpn-binding-id`\">", + "comments": "", + "outputs": 1, + "x": 955.8135871887207, + "y": 1200.3215417861938, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "ea26c779.e30328" + ] + ] + }, + { + "id": "ea26c779.e30328", + "type": "other", + "name": "other", + "xml": "<outcome value='Other'>\n", + "comments": "", + "outputs": 1, + "x": 1169.3135948181152, + "y": 1200.0715427398682, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "d6658c61.93f25" + ] + ] + }, + { + "id": "d6658c61.93f25", + "type": "set", + "name": "set tmp.vpn-binding-id", + "xml": "<set>\n<parameter name=\"tmp.vpn-binding-id\" value=\"`$preload-data.network-topology-information.vpn-bindings[$i].vpn-binding-id`\" />\n", + "comments": "", + "x": 1351.8135948181152, + "y": 1200.0715436935425, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "67b5caf1.ddebd4", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 1622.8135795593262, + "y": 1244.82160282135, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "93380f51.982a9" + ] + ] + }, + { + "id": "6fc7931.d198c6c", + "type": "set", + "name": "set tmp.vpn-binding-id", + "xml": "<set>\n<parameter name=\"tmp.vpn-binding-id\" value=\"`$tmp.AnAI.vpn-binding.vpn-id`\" />\n", + "comments": "", + "x": 2277.0636291503906, + "y": 1243.571678161621, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "80139c48.11b38", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1278.9297943115234, + "y": 1377.920114517212, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "4dce9a6d.462e74" + ] + ] + }, + { + "id": "4dce9a6d.462e74", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1466.8226737976074, + "y": 1377.556221961975, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "d7897aa2.314cd8", + "7598ed5f.703d44" + ] + ] + }, + { + "id": "d7897aa2.314cd8", + "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": 1679.9222145080566, + "y": 1378.3061208724976, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "aec67243.3085b", + "type": "for", + "name": "for loop i - PRELOAD network-policy", + "xml": "<for index=\"i\" start=\"0\" end=\"`$preload-data.network-topology-information.network-policy_length`\">\n", + "comments": "", + "outputs": 1, + "x": 451.45642852783203, + "y": 1568.6431703567505, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "9591c346.1a1b4" + ] + ] + }, + { + "id": "efde88cf.9b8748", + "type": "save", + "name": "save relationship: network-policy", + "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\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": 2268.0121154785156, + "y": 1701.1154356002808, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "61a477bc.3c1228", + "70ae584f.c14f98" + ] + ] + }, + { + "id": "9591c346.1a1b4", + "type": "switchNode", + "name": "switch: PRELOAD network-policy-fqdn != NULL", + "xml": "<switch test=\"`$preload-data.network-topology-information.network-policy[$i].network-policy-fqdn != ''`\">", + "comments": "", + "outputs": 1, + "x": 807.7186872694228, + "y": 1568.9924284617105, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "28c23efe.60d8c2" + ] + ] + }, + { + "id": "28c23efe.60d8c2", + "type": "other", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1073.4686872694228, + "y": 1569.2424284617105, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "9a67180c.7e8c88" + ] + ] + }, + { + "id": "9a67180c.7e8c88", + "type": "save", + "name": "query AnAI - network-policy", + "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"network-policy\" \n\t\tkey=\"network-policy.network-policy-fqdn = $preload-data.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": 1282.71869108412, + "y": 1569.2424284617105, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "86e4182d.175af8", + "3ac39ea5.f66bf2", + "36636bd5.8e92b4" + ] + ] + }, + { + "id": "86e4182d.175af8", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1490.71877500746, + "y": 1610.2424379984536, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "19951b2e.af9645" + ] + ] + }, + { + "id": "3ac39ea5.f66bf2", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 1496.2187788221572, + "y": 1568.7424370447793, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "19951b2e.af9645" + ] + ] + }, + { + "id": "19951b2e.af9645", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1660.7187788221572, + "y": 1609.992438952128, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "1be79b78.b46515", + "7598ed5f.703d44" + ] + ] + }, + { + "id": "1be79b78.b46515", + "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.network-topology-information.network-policy[$i].network-policy-fqdn`\"/>", + "comments": "", + "x": 1869.8183195326064, + "y": 1609.7423378626504, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "61a477bc.3c1228", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 2491.084991455078, + "y": 1700.591022491455, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "905198df.a2e8e8" + ] + ] + }, + { + "id": "905198df.a2e8e8", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2670.977870941162, + "y": 1700.2271299362183, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "3c4f721c.b157ae", + "7598ed5f.703d44" + ] + ] + }, + { + "id": "3c4f721c.b157ae", + "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": 2894.0774116516113, + "y": 1700.9770288467407, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "a461de0f.d6093", + "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": 941.7618713378906, + "y": 822.5118942260742, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "6a268e02.7bf99" + ] + ] + }, + { + "id": "6a268e02.7bf99", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1239.5118560791016, + "y": 822.761884689331, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "7598ed5f.703d44" + ] + ] + }, + { + "id": "6a95cc4c.004c34", + "type": "save", + "name": "save relationship: tenant and cloud-region", + "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" \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=\"att-aic\" />\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-information.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-information.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=\"att-aic\" />\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-information.aic-cloud-region`\" />", + "comments": "", + "outputs": 1, + "x": 495.5635681152344, + "y": 953.7380905151367, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "94d20436.9f5a98", + "5c4aab8f.7f8844" + ] + ] + }, + { + "id": "94d20436.9f5a98", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 743.5635681152344, + "y": 953.7380905151367, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "9bdd4cad.3259a" + ] + ] + }, + { + "id": "9bdd4cad.3259a", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 931.9563961029053, + "y": 953.3742084503174, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "9e720f57.6429d", + "7598ed5f.703d44" + ] + ] + }, + { + "id": "9e720f57.6429d", + "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 clould-region relationship for l3-network in AnAI where network-id = ' + $tmp.return.generate-l3network-network-id.uuid`\"/>", + "comments": "", + "x": 1136.0559368133545, + "y": 953.1241073608398, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "36380a8c.5dc166", + "type": "switchNode", + "name": "switch: tmp.vpn-binding-id != NULL", + "xml": "<switch test=\"`$tmp.vpn-binding-id != ''`\">", + "comments": "", + "outputs": 1, + "x": 962.8135833740234, + "y": 1291.7381057739258, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "2a156ae6.84e5a6" + ] + ] + }, + { + "id": "2a156ae6.84e5a6", + "type": "other", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1182.5635681152344, + "y": 1291.7380905151367, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "42bfa7b6.ab68a8" + ] + ] + }, + { + "id": "bbec29a5.4081f8", + "type": "set", + "name": "set tmp.local.network-id", + "xml": "<set>\n<parameter name=\"tmp.local.network-id\" value=\"`$tmp.return.generate-l3network-network-id.uuid`\" />\n", + "comments": "", + "x": 917.5714569091797, + "y": 778.9999885559082, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "69434546.6b177c", + "type": "save", + "name": "save AnAI - l3-network.subnets", + "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid \n\t\t\tAND subnet.subnet-id = $tmp.return.generate-subnets-subnet-id.uuid\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.return.generate-l3network-network-id.uuid`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.return.generate-subnets-subnet-id.uuid`\" />\n<parameter name=\"subnet-name\" value=\"`$preload-data.network-topology-information.subnets[$i].subnet-name`\" />\n<parameter name=\"gateway-address\" value=\"`$tmp.gateway-address`\" />\n<parameter name=\"network-start-address\" value=\"`$preload-data.network-topology-information.subnets[$i].start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$preload-data.network-topology-information.subnets[$i].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$preload-data.network-topology-information.subnets[$i].ip-version`\" />\n<parameter name=\"dhcp-start\" value=\"`$preload-data.network-topology-information.subnets[$i].dhcp-start-address`\" />\n<parameter name=\"dhcp-end\" value=\"`$preload-data.network-topology-information.subnets[$i].dhcp-end-address`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.dhcpEnabled.boolean`\" />\n\t\t<parameter name=\"orchestration-status\" value=\"pending-create\" />", + "comments": "", + "outputs": 1, + "x": 940.6379051208496, + "y": 868.5035381317139, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "bf4af859.d229c8", + "91ca1bcf.ce5e18" + ] + ] + }, + { + "id": "cced61c2.cb78b", + "type": "save", + "name": "get AnAI - l3-network by name", + "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-name = $network-topology-operation-input.network-request-information.network-name\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.AnAI.l3network.existed\">\n\n", + "comments": "", + "outputs": 1, + "x": 458, + "y": 254.42857360839844, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "442f4dcc.0db234", + "b16ddddf.00d98" + ] + ] + }, + { + "id": "442f4dcc.0db234", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 684.25, + "y": 296.6786346435547, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "6a2fcf8c.18eb8" + ] + ] + }, + { + "id": "202129b8.5c0ed6", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'An error occurred while querying whether l3-network with network-name = ' + $network-topology-operation-input.network-request-information.network-name + ' already exists in AnAI'`\"/>\n", + "comments": "", + "x": 832.7457580566406, + "y": 254.89673042297363, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "b16ddddf.00d98", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 679.5235358344185, + "y": 254.89673042297363, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "202129b8.5c0ed6" + ] + ] + }, + { + "id": "6a2fcf8c.18eb8", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'A l3-network with network-name = ' + $network-topology-operation-input.network-request-information.network-name + ' already existed in AnAI with network-id = ' + $tmp.AnAI.l3network.existed.network-id`\" />\n", + "comments": "", + "x": 835.4286193847656, + "y": 296.42857360839844, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "d30ff142.3546e", + "type": "set", + "name": "set: tmp.error-message to \"\"", + "xml": "<set>\n\t<parameter name=\"tmp.error-message\" value=\"\"/>", + "comments": "", + "x": 451.5714111328125, + "y": 362.67857360839844, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "300d9dbd.6d58a2", + "type": "set", + "name": "unset tmp.vpn-binding-id", + "xml": "<set>\n<parameter name=\"tmp.vpn-binding-id\" value=\"\" />\n", + "comments": "", + "x": 929.8888931274414, + "y": 1154.015875339508, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "36636bd5.8e92b4", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 1493.24998304579, + "y": 1654.5715109507241, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "ce9859f8.9238e8" + ] + ] + }, + { + "id": "cd3c019c.f3ce1", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 1282.5872650146484, + "y": 1464.777780532837, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "b9331242.105a7" + ] + ] + }, + { + "id": "b9331242.105a7", + "type": "set", + "name": "set tmp.is-bound-to-vpn", + "xml": "<set>\n<parameter name=\"tmp.is-bound-to-vpn\" value=\"true\" />\n", + "comments": "", + "x": 1473.0872650146484, + "y": 1464.777780532837, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "dfebf1ef.060d1", + "type": "save", + "name": "update AnAI - l3-network", + "xml": "<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\n<parameter name=\"is-bound-to-vpn\" value=\"true\" />", + "comments": "", + "outputs": 1, + "x": 655.3016128540039, + "y": 1956.206524848938, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "e1336583.4cd0d8", + "8f30eaa4.9bde48" + ] + ] + }, + { + "id": "e1336583.4cd0d8", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 851.5847702026367, + "y": 1956.221842765808, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "f55c1f6d.ea9aa" + ] + ] + }, + { + "id": "eec55dc8.09816", + "type": "switchNode", + "name": "switch ... tmp.is-bound-to-vpn", + "xml": "<switch test=\"`$tmp.is-bound-to-vpn`\">", + "comments": "", + "outputs": 1, + "x": 424.44444274902344, + "y": 1891.3493671417236, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "34d11c70.e8f384" + ] + ] + }, + { + "id": "34d11c70.e8f384", + "type": "outcome", + "name": "true", + "xml": "<outcome value=\"true\">", + "comments": "", + "outputs": 1, + "x": 643.8888931274414, + "y": 1891.1271028518677, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "dfebf1ef.060d1" + ] + ] + }, + { + "id": "f55c1f6d.ea9aa", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1063.694450378418, + "y": 1956.5993690490723, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "36e75acf.f931c6", + "7598ed5f.703d44" + ] + ] + }, + { + "id": "36e75acf.f931c6", + "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": 1282.194435119629, + "y": 1956.349347114563, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "8cf9ad87.65dd7", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 636.5714111328125, + "y": 497.57141304016113, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "c0b37f94.55c04" + ] + ] + }, + { + "id": "91ca1bcf.ce5e18", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 1160.5714111328125, + "y": 909.5714130401611, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "78a54b4f.f2a264" + ] + ] + }, + { + "id": "5c4aab8f.7f8844", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 751.5714111328125, + "y": 995.5714130401611, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "9bdd4cad.3259a" + ] + ] + }, + { + "id": "188bd49e.885fbb", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 1287.0157318115234, + "y": 1420.5713863372803, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "4dce9a6d.462e74" + ] + ] + }, + { + "id": "8f30eaa4.9bde48", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 859.071403503418, + "y": 1997.3214921951294, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "f55c1f6d.ea9aa" + ] + ] + }, + { + "id": "70ae584f.c14f98", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 2498.8214433458115, + "y": 1743.071546872457, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "905198df.a2e8e8" + ] + ] + }, + { + "id": "93380f51.982a9", + "type": "switchNode", + "name": "switch: tmp.AnAI.vpn-binding.vpn-id", + "xml": "<switch test=\"`$tmp.AnAI.vpn-binding.vpn-id`\" >", + "comments": "", + "outputs": 1, + "x": 1830.8214416503906, + "y": 1244.3214302062988, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "eff41a9e.00afa8", + "5bc2956f.787c5c" + ] + ] + }, + { + "id": "b76ca92c.0ed578", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2253.5714416503906, + "y": 1283.3214302062988, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "bb1b9631.658388", + "7598ed5f.703d44" + ] + ] + }, + { + "id": "5bc2956f.787c5c", + "type": "other", + "name": "NULL", + "xml": "<outcome value=''>\n", + "comments": "", + "outputs": 1, + "x": 2088.5714416503906, + "y": 1283.8214302062988, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "b76ca92c.0ed578" + ] + ] + }, + { + "id": "eff41a9e.00afa8", + "type": "other", + "name": "other", + "xml": "<outcome value='Other'>\n", + "comments": "", + "outputs": 1, + "x": 2088.5714111328125, + "y": 1243.8214130401611, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "6fc7931.d198c6c" + ] + ] + }, + { + "id": "bb1b9631.658388", + "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 global-route-target = ' + $preload-data.network-topology-information.vpn-bindings[$i].global-route-target + '. It is likely that the same global-route-target points to more than one vpn-binding objects in AnAI.'`\"/>", + "comments": "", + "x": 2469.0714111328125, + "y": 1283.3214130401611, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "ce9859f8.9238e8", + "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": 1771.3292541503906, + "y": 1654.0713682174683, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "3c3f8072.e88a9", + "d073d6e1.0db6e8" + ] + ] + }, + { + "id": "3c3f8072.e88a9", + "type": "other", + "name": "NULL", + "xml": "<outcome value=''>\n", + "comments": "", + "outputs": 1, + "x": 2045.0792541503906, + "y": 1653.5713682174683, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "78fb0dee.396224" + ] + ] + }, + { + "id": "78fb0dee.396224", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2210.0792541503906, + "y": 1653.0713682174683, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "7598ed5f.703d44", + "c12525bf.5dfe18" + ] + ] + }, + { + "id": "b7a4e2fe.7602c", + "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.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": 2636.912660386827, + "y": 1851.404614766439, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "d073d6e1.0db6e8", + "type": "other", + "name": "other", + "xml": "<outcome value='Other'>\n", + "comments": "", + "outputs": 1, + "x": 2044.5714111328125, + "y": 1700.8214664459229, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "efde88cf.9b8748" + ] + ] + }, + { + "id": "d92a7574.cd1b58", + "type": "save", + "name": "update AnAI - l3-network.provider-network-information", + "xml": "<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\n<parameter name=\"physical-network-name\" value=\"`$preload-data.network-topology-information.provider-network-information.physical-network-name`\" />\n<parameter name=\"is-provider-network\" value=\"`$preload-data.network-topology-information.provider-network-information.is-provider-network`\" />\n<parameter name=\"is-shared-network\" value=\"`$preload-data.network-topology-information.provider-network-information.is-shared-network`\" />\n<parameter name=\"is-external-network\" value=\"`$preload-data.network-topology-information.provider-network-information.is-external-network`\" />", + "comments": "", + "outputs": 1, + "x": 534.7499847412109, + "y": 541.3214206695557, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "8d65ff4.75283", + "a6764a00.4418a8" + ] + ] + }, + { + "id": "8d65ff4.75283", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 848.2831344604492, + "y": 541.3367395401001, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "19a0604d.6fffb" + ] + ] + }, + { + "id": "19a0604d.6fffb", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1060.3928146362305, + "y": 541.7142658233643, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "bfc1c864.dda818", + "7598ed5f.703d44" + ] + ] + }, + { + "id": "bfc1c864.dda818", + "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 with provider-network-information in AnAI where network-id = ' + $tmp.return.generate-l3network-network-id.uuid`\"/>", + "comments": "", + "x": 1278.8927993774414, + "y": 541.464243888855, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "a6764a00.4418a8", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 855.7697677612305, + "y": 582.4363889694214, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "19a0604d.6fffb" + ] + ] + }, + { + "id": "f5d35022.8ff6", + "type": "switchNode", + "name": "switch ... PRELOAD route-table-reference[]", + "xml": "<switch test=\"`$preload-data.network-topology-information.route-table-reference_length`\">", + "comments": "", + "outputs": 1, + "x": 469.74998474121094, + "y": 1721.5714130401611, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "4f951dff.ce2564" + ] + ] + }, + { + "id": "4f951dff.ce2564", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "outputs": 1, + "x": 725.1944351196289, + "y": 1721.3491487503052, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "d46faf09.e831" + ] + ] + }, + { + "id": "d46faf09.e831", + "type": "set", + "name": "set route-table-reference[] = 0", + "xml": "<set>\n<parameter name='preload-data.network-topology-information.route-table-reference_length' value='0' />\n", + "comments": "", + "x": 930.7500440809463, + "y": 1721.3491694132485, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "30dd8358.aaaadc", + "type": "for", + "name": "for loop i - PRELOAD route-table-reference", + "xml": "<for index=\"i\" start=\"0\" end=\"`$preload-data.network-topology-information.route-table-reference_length`\">\n", + "comments": "", + "outputs": 1, + "x": 468.1072463989258, + "y": 1769.142804145813, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "9bc7e123.4762e" + ] + ] + }, + { + "id": "75664f84.1ae09", + "type": "save", + "name": "save relationship: route-table-reference", + "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\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": 2454.9962632921006, + "y": 1900.9483931859336, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "4d7f2cce.5452f4", + "5883ac21.585844" + ] + ] + }, + { + "id": "9bc7e123.4762e", + "type": "switchNode", + "name": "switch: PRELOAD network-policy-fqdn != NULL", + "xml": "<switch test=\"`$preload-data.network-topology-information.route-table-reference[$i].route-table-reference-fqdn != ''`\">", + "comments": "", + "outputs": 1, + "x": 853.7028350830078, + "y": 1768.8253860473633, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "209cfc0f.7ee064" + ] + ] + }, + { + "id": "209cfc0f.7ee064", + "type": "other", + "name": "true", + "xml": "<outcome value='true'>\n", + "comments": "", + "outputs": 1, + "x": 1119.4528350830078, + "y": 1769.0753860473633, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "4c6ed27c.d3899c" + ] + ] + }, + { + "id": "4c6ed27c.d3899c", + "type": "save", + "name": "query AnAI - route-table-reference", + "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"route-table-reference\" \n\t\tkey=\"route-table-reference.route-table-reference-fqdn = $preload-data.network-topology-information.route-table-reference[$i].route-table-reference-fqdn\" \n\t\tpfx=\"tmp.AnAI.route-table-reference\">", + "comments": "", + "outputs": 1, + "x": 1348.702838897705, + "y": 1769.0753860473633, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "32be05d4.ef453a", + "d31265a9.dd2a68", + "fc3f6dcc.3ffa5" + ] + ] + }, + { + "id": "32be05d4.ef453a", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 1574.702922821045, + "y": 1810.0753955841064, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "c7025ab3.2465e8" + ] + ] + }, + { + "id": "d31265a9.dd2a68", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 1580.2029266357422, + "y": 1768.5753946304321, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "c7025ab3.2465e8" + ] + ] + }, + { + "id": "c7025ab3.2465e8", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1744.7029266357422, + "y": 1809.8253965377808, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "a84e07a3.02c778" + ] + ] + }, + { + "id": "a84e07a3.02c778", + "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.network-topology-information.network-policy[$i].network-policy-fqdn`\"/>", + "comments": "", + "x": 1953.8024673461914, + "y": 1809.5752954483032, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "4d7f2cce.5452f4", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 2710.069139268663, + "y": 1900.423980077108, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "7402c469.9e6bcc" + ] + ] + }, + { + "id": "7402c469.9e6bcc", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2889.962018754747, + "y": 1900.060087521871, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "75091979.f14b18", + "7598ed5f.703d44" + ] + ] + }, + { + "id": "75091979.f14b18", + "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": 3114.061586168077, + "y": 1899.8100102742515, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "fc3f6dcc.3ffa5", + "type": "success", + "name": "success", + "xml": "<outcome value='success'>\n", + "comments": "", + "outputs": 1, + "x": 1577.234130859375, + "y": 1854.404468536377, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "b4dd51b0.f58dd" + ] + ] + }, + { + "id": "5883ac21.585844", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 2717.8055911593965, + "y": 1942.9045044581098, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "7402c469.9e6bcc" + ] + ] + }, + { + "id": "b4dd51b0.f58dd", + "type": "switchNode", + "name": "switch: tmp.AnAI.route-table-reference.route-table-reference-id", + "xml": "<switch test=\"`$tmp.AnAI.route-table-referencey.route-table-reference-id`\" >", + "comments": "", + "outputs": 1, + "x": 1895.3134019639756, + "y": 1853.904325803121, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "caa62ee1.0e628", + "70a311b7.2883a" + ] + ] + }, + { + "id": "caa62ee1.0e628", + "type": "other", + "name": "NULL", + "xml": "<outcome value=''>\n", + "comments": "", + "outputs": 1, + "x": 2222.0634019639756, + "y": 1853.404325803121, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "6ccdc09b.5108b" + ] + ] + }, + { + "id": "6ccdc09b.5108b", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2387.0634019639756, + "y": 1852.904325803121, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "b7a4e2fe.7602c" + ] + ] + }, + { + "id": "c12525bf.5dfe18", + "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.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": 2455.229965209961, + "y": 1652.5709247589111, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "70a311b7.2883a", + "type": "other", + "name": "other", + "xml": "<outcome value='Other'>\n", + "comments": "", + "outputs": 1, + "x": 2221.5555589463975, + "y": 1900.6544240315757, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "75664f84.1ae09" + ] + ] + }, + { + "id": "830f1b88.627bf8", + "type": "save", + "name": "save relationship: service-instance", + "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.return.generate-l3network-network-id.uuid\" >\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=\"`$network-topology-operation-input.service-information.subscriber-name`\" />\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=\"`$network-topology-operation-input.service-information.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=\"`$network-topology-operation-input.service-information.service-instance-id`\" />", + "comments": "", + "outputs": 1, + "x": 449.74998474121094, + "y": 2092.571413040161, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "862cdb1e.cf3978", + "29684e7c.4d3332" + ] + ] + }, + { + "id": "862cdb1e.cf3978", + "type": "failure", + "name": "failure", + "xml": "<outcome value='failure'>\n", + "comments": "", + "outputs": 1, + "x": 704.8228607177734, + "y": 2092.0469999313354, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "a91510cb.75d29" + ] + ] + }, + { + "id": "a91510cb.75d29", + "type": "block", + "name": "block : atomic", + "xml": "<block atomic='true'>", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 884.7157402038574, + "y": 2091.6831073760986, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "c6dc81e.9bba78", + "7598ed5f.703d44" + ] + ] + }, + { + "id": "c6dc81e.9bba78", + "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": 1122.8153076171875, + "y": 2091.433030128479, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "29684e7c.4d3332", + "type": "not-found", + "name": "not-found", + "xml": "<outcome value='not-found'>\n", + "comments": "", + "outputs": 1, + "x": 712.5593126085068, + "y": 2134.5275243123374, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "a91510cb.75d29" + ] + ] + }, + { + "id": "4330f5b6.e6251c", + "type": "switchNode", + "name": "switch: INPUT service-type", + "xml": "<switch test=\"`$network-topology-operation-input.service-information.service-type`\">", + "comments": "", + "outputs": 1, + "x": 447.75, + "y": 160.57142639160156, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "a00be1d.7bd562" + ] + ] + }, + { + "id": "a00be1d.7bd562", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "outputs": 1, + "x": 653.75, + "y": 160.57142639160156, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "84d2b076.55161" + ] + ] + }, + { + "id": "84d2b076.55161", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value='service-type, aka AnAI subscription-service-type, is required.'/>", + "comments": "", + "x": 811.75, + "y": 160.57142639160156, + "z": "f9c6b4d6.c89d48", + "wires": [] + }, + { + "id": "d045d509.c8ec58", + "type": "switchNode", + "name": "switch: INPUT subscriber-name", + "xml": "<switch test=\"`$network-topology-operation-input.service-information.subscriber-name`\">", + "comments": "", + "outputs": 1, + "x": 461.75, + "y": 206.57142639160156, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "5efbbb28.950c14" + ] + ] + }, + { + "id": "5efbbb28.950c14", + "type": "outcome", + "name": "NULL", + "xml": "<outcome value=''>", + "outputs": 1, + "x": 683.75, + "y": 206.57142639160156, + "z": "f9c6b4d6.c89d48", + "wires": [ + [ + "d57a3c68.3825d" + ] + ] + }, + { + "id": "d57a3c68.3825d", + "type": "returnFailure", + "name": "return failure", + "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value='subscriber-name, aka AnAI global-customer-id, is required.'/>", + "comments": "", + "x": 841.75, + "y": 206.57142639160156, + "z": "f9c6b4d6.c89d48", + "wires": [] + } +]
\ No newline at end of file |