X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=platform-logic%2Fgeneric-resource-api%2Fsrc%2Fmain%2Fjson%2FGENERIC-RESOURCE-API_contrail-route-topology-operation-deactivate.json;h=2143d865e80cd4457f396dd0329406e5f72896d8;hb=ceb230e77fe7b3c32d60772687d9955e14721214;hp=597505ccefbe6b88ce7e8d875b152047e41509c0;hpb=ee1e879e47048dd21477d6992fff3694b99631f7;p=sdnc%2Foam.git diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-deactivate.json index 597505cc..2143d865 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-deactivate.json @@ -1 +1,1454 @@ -[{"id":"6f42193e.7fcb18","type":"dgstart","name":"DGSTART","outputs":1,"x":182,"y":96,"z":"9d85256.794bfd8","wires":[["3a9d923a.4687de"]]},{"id":"3a9d923a.4687de","type":"service-logic","name":"GENERIC-RESOURCE-API ${project.version}","module":"GENERIC-RESOURCE-API","version":"${project.version}","comments":"","xml":"","outputs":1,"x":328.2380828857422,"y":170.95239353179932,"z":"9d85256.794bfd8","wires":[["1dd7e766.22b889"]]},{"id":"1dd7e766.22b889","type":"method","name":"contrail-route-topology-operation-deactivate","xml":"\n","comments":"","outputs":1,"x":408.1548500061035,"y":240.1904420852661,"z":"9d85256.794bfd8","wires":[["5b6f8915.4550d8"]]},{"id":"5b6f8915.4550d8","type":"block","name":"block : atomic","xml":"","atomic":"true","comments":"","outputs":1,"x":316.4761848449707,"y":383.523784160614,"z":"9d85256.794bfd8","wires":[["38d86f0b.67968","122583d8.1d260c","feae2ef.c5154d","cc085949.e3c218","9d38854d.1bb8b8","2829196a.eaaa76","8d33f3ff.44af3","c5fcedfe.366e1","a2b2b115.328ef","6975ce5b.c1d44","dca3aceb.03885","6578d3d4.5476dc","9376585b.91de78","98d3d9af.b219d8","b42adb13.7a13e8","d0cfc654.944c28","cbccf77c.4013d8","e468068e.f8fd78","3eceb01b.795e6","4fb1ccbe.de9264","8edbb4f5.1da278","4619cd3d.096d04"]]},{"id":"122583d8.1d260c","type":"returnSuccess","name":"return success","xml":"\n\n\n\n","comments":"","x":579.000072479248,"y":2309.548008918762,"z":"9d85256.794bfd8","wires":[]},{"id":"38d86f0b.67968","type":"set","name":"set output to api handler","xml":"\n\n\n\n \n","comments":"","x":607.753978729248,"y":2272.0038022994995,"z":"9d85256.794bfd8","wires":[]},{"id":"6975ce5b.c1d44","type":"set","name":"set allotted-resource-oper-status","xml":"\n\n\n\n\n\n","comments":"","x":642.7541427612305,"y":2132.7179613113403,"z":"9d85256.794bfd8","wires":[]},{"id":"cc085949.e3c218","type":"set","name":"set tmp.ar.self-link","xml":"\n\n\n","comments":"","x":578.7380561828613,"y":357.3333215713501,"z":"9d85256.794bfd8","wires":[]},{"id":"feae2ef.c5154d","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"\n\n\n\n\n\n","comments":"","x":625.9973182678223,"y":323.5925874710083,"z":"9d85256.794bfd8","wires":[]},{"id":"9d38854d.1bb8b8","type":"execute","name":"execute Properties - pull properties file","xml":"\n \n \n","comments":"","outputs":1,"x":648.9934158325195,"y":393.2315502166748,"z":"9d85256.794bfd8","wires":[[]]},{"id":"8d33f3ff.44af3","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"\n \n \n \n \n \n \n\n","comments":"","outputs":1,"x":655.5187454223633,"y":561.459508895874,"z":"9d85256.794bfd8","wires":[["ef8e221b.d195c","c49c58ea.301828"]]},{"id":"2829196a.eaaa76","type":"execute","name":"generate allotted-resource url","xml":"\n \n \n \n \n","comments":"","outputs":1,"x":613.0648460388184,"y":453.01722526550293,"z":"9d85256.794bfd8","wires":[[]]},{"id":"ef8e221b.d195c","type":"success","name":"success","xml":"\n","comments":"","outputs":1,"x":900.8148498535156,"y":562.2673225402832,"z":"9d85256.794bfd8","wires":[["70fd0b18.96fdf4"]]},{"id":"c5fcedfe.366e1","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"\n \n \n \n \n \n \n \n\n","comments":"","outputs":1,"x":670.8626098632812,"y":2206.7674808502197,"z":"9d85256.794bfd8","wires":[["4700a122.f4dac","36986bb9.23cbc4","460b74b4.c2c05c"]]},{"id":"4700a122.f4dac","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":941.1706275939941,"y":2259.7656816467643,"z":"9d85256.794bfd8","wires":[["36e7add1.93abd2"]]},{"id":"36986bb9.23cbc4","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":932.1706771850586,"y":2228.265707395971,"z":"9d85256.794bfd8","wires":[["36e7add1.93abd2"]]},{"id":"460b74b4.c2c05c","type":"success","name":"success","xml":"\n","comments":"","outputs":1,"x":935.9207153320312,"y":2198.622812271118,"z":"9d85256.794bfd8","wires":[["5404b4c7.e2032c"]]},{"id":"36e7add1.93abd2","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":1101.9207153320312,"y":2229.0157312378287,"z":"9d85256.794bfd8","wires":[]},{"id":"70fd0b18.96fdf4","type":"block","name":"block: atomic","xml":"\n","atomic":"false","comments":"","outputs":1,"x":1069.814853668213,"y":560.7672233581543,"z":"9d85256.794bfd8","wires":[["b8f11906.dba3b8"]]},{"id":"b8f11906.dba3b8","type":"switchNode","name":"switch cr length","xml":"\n","comments":"","outputs":1,"x":1280.6720962524414,"y":560.3863525390625,"z":"9d85256.794bfd8","wires":[["9b410254.194e9","33e90ef6.f223c2"]]},{"id":"9b410254.194e9","type":"other","name":"outcome 1","xml":"\n","comments":"","outputs":1,"x":1470.0054016113281,"y":560.3863105773926,"z":"9d85256.794bfd8","wires":[["15bf006b.a87d5"]]},{"id":"f9f3fdcd.0ab34","type":"set","name":"set ar from get","xml":"\n\n","comments":"","x":1943.1962203979492,"y":523.6245260238647,"z":"9d85256.794bfd8","wires":[]},{"id":"15bf006b.a87d5","type":"block","name":"block: atomic","xml":"\n","atomic":"false","comments":"","outputs":1,"x":1654.529291152954,"y":557.2911443710327,"z":"9d85256.794bfd8","wires":[["f9f3fdcd.0ab34","e7cd0298.e8dcc","bba9d10e.349f9"]]},{"id":"e7cd0298.e8dcc","type":"set","name":"set oper-status","xml":"\n\n\n\n\n","comments":"","x":1951.1961479187012,"y":587.719669342041,"z":"9d85256.794bfd8","wires":[]},{"id":"2bf64ead.e3bc32","type":"comment","name":"GET security-zone-allotted-resource from mdsal","info":"","comments":"","x":668.8147926330566,"y":528.7672119140625,"z":"9d85256.794bfd8","wires":[]},{"id":"93e5a3ab.9544a","type":"switchNode","name":"switch order-status","xml":"\n","comments":"","outputs":1,"x":1959.196002960205,"y":554.6244812011719,"z":"9d85256.794bfd8","wires":[["9b9adb79.d81988","d559dc4.b4c922"]]},{"id":"9b9adb79.d81988","type":"outcome","name":"outcome Other","xml":"\n","comments":"","outputs":1,"x":2194.8436737060547,"y":569.0531902313232,"z":"9d85256.794bfd8","wires":[["d622bf5.875044"]]},{"id":"d622bf5.875044","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":2435.462423324585,"y":571.9577798843384,"z":"9d85256.794bfd8","wires":[]},{"id":"6578d3d4.5476dc","type":"set","name":"unset ar-assignments.vlan-tag","xml":"\n\n\n\n\n","comments":"","x":616.862419128418,"y":1670.0531845092773,"z":"9d85256.794bfd8","wires":[]},{"id":"bba9d10e.349f9","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"\n\n","comments":"","x":2031.0532722473145,"y":490.4340181350708,"z":"9d85256.794bfd8","wires":[]},{"id":"7d4ef2a7.fd27ec","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":583.9576530456543,"y":422.62435245513916,"z":"9d85256.794bfd8","wires":[]},{"id":"5404b4c7.e2032c","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":1077.5766830444336,"y":2194.8149814605713,"z":"9d85256.794bfd8","wires":[[]]},{"id":"a2b2b115.328ef","type":"execute","name":"execute getTime","xml":"\n \n\n","comments":"","outputs":1,"x":593.5767288208008,"y":2099.1481199264526,"z":"9d85256.794bfd8","wires":[[]]},{"id":"ba60bed0.88369","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n \n","comments":"","x":1653.666997909546,"y":673.3333854675293,"z":"9d85256.794bfd8","wires":[]},{"id":"c49c58ea.301828","type":"other","name":"other","xml":"\n","comments":"","outputs":1,"x":892.6666526794434,"y":597.3334074020386,"z":"9d85256.794bfd8","wires":[["25ba4dc1.5132b2"]]},{"id":"25ba4dc1.5132b2","type":"block","name":"block: atomic","xml":"\n","atomic":"false","comments":"","outputs":1,"x":1072.666603088379,"y":597.9999580383301,"z":"9d85256.794bfd8","wires":[["ba60bed0.88369"]]},{"id":"dca3aceb.03885","type":"set","name":"set ar data","xml":"\n\n\n\n\n\n\n\n\n\n","comments":"","x":564.666618347168,"y":593.6666221618652,"z":"9d85256.794bfd8","wires":[]},{"id":"33e90ef6.f223c2","type":"other","name":"other","xml":"\n","comments":"","outputs":1,"x":1458.3333549499512,"y":597.6666707992554,"z":"9d85256.794bfd8","wires":[["ba60bed0.88369"]]},{"id":"41d0055a.f5d40c","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":2419.333469390869,"y":537.6666975021362,"z":"9d85256.794bfd8","wires":[[]]},{"id":"1e0333e0.bb844c","type":"comment","name":"Call contrail api here","info":"","comments":"","x":594.8571243286133,"y":660.2857151031494,"z":"9d85256.794bfd8","wires":[]},{"id":"5db846ef.38ec08","type":"comment","name":"Need to rollback aai here","info":"","comments":"","x":1327.9999771118164,"y":2228.3333263397217,"z":"9d85256.794bfd8","wires":[]},{"id":"48ad7bf5.74a014","type":"comment","name":"Create network policy in AAI","info":"","comments":"","x":627.333251953125,"y":2048.3332138061523,"z":"9d85256.794bfd8","wires":[]},{"id":"d559dc4.b4c922","type":"outcome","name":"outcome Active","xml":"\n","comments":"","outputs":1,"x":2209.6053161621094,"y":537.2912015914917,"z":"9d85256.794bfd8","wires":[["41d0055a.f5d40c"]]},{"id":"9376585b.91de78","type":"update","name":"update AAI allotted-resource","xml":"\n\t\n","comments":"","outputs":1,"x":615.3333129882812,"y":1826.6666622161865,"z":"9d85256.794bfd8","wires":[["5f9fa013.45a14","1dfd3b63.382635"]]},{"id":"5f9fa013.45a14","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":871.0952453613281,"y":1803.904836654663,"z":"9d85256.794bfd8","wires":[["e7c07e31.eaec"]]},{"id":"1dfd3b63.382635","type":"failure","name":"not-found","xml":"\n","comments":"","outputs":1,"x":876.4046745300293,"y":1839.4762544631958,"z":"9d85256.794bfd8","wires":[["e7c07e31.eaec"]]},{"id":"e7c07e31.eaec","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":1086.1904602050781,"y":1805.5238809585571,"z":"9d85256.794bfd8","wires":[]},{"id":"a91079be.620158","type":"comment","name":"Update AAI AR","info":"","comments":"","x":578.6761703491211,"y":1790.095106124878,"z":"9d85256.794bfd8","wires":[]},{"id":"98d3d9af.b219d8","type":"set","name":"set ar-assignments","xml":"\n\n\n\n\n","comments":"","x":593,"y":626,"z":"9d85256.794bfd8","wires":[]},{"id":"d67ce795.d438a8","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n \n","comments":"","x":1639.571683883667,"y":772.6666259765625,"z":"9d85256.794bfd8","wires":[]},{"id":"95b2d8a8.b95fe8","type":"not-found","name":"not found","xml":"\n","comments":"","outputs":1,"x":893.1903457641602,"y":926.0476361513138,"z":"9d85256.794bfd8","wires":[["587d3201.9d2dec"]]},{"id":"d0cfc654.944c28","type":"get-resource","name":"get AnAI - l3-network by network-id","xml":"\n","comments":"","outputs":1,"x":616.3886871337891,"y":937.294153213501,"z":"9d85256.794bfd8","wires":[["27df97d8.1b3568","95b2d8a8.b95fe8","ff40702c.ccb5a"]]},{"id":"27df97d8.1b3568","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":885.9124526977539,"y":960.5322400331497,"z":"9d85256.794bfd8","wires":[["587d3201.9d2dec"]]},{"id":"587d3201.9d2dec","type":"returnFailure","name":"return failure","xml":"\n\t\n\t","comments":"","x":1038.0234146118164,"y":956.754469037056,"z":"9d85256.794bfd8","wires":[]},{"id":"ff40702c.ccb5a","type":"success","name":"success","xml":"\n","comments":"","outputs":1,"x":891.1904067993164,"y":992.0476361513138,"z":"9d85256.794bfd8","wires":[["71fad46f.afcc4c"]]},{"id":"71fad46f.afcc4c","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1043.8569717407227,"y":990.3809643983841,"z":"9d85256.794bfd8","wires":[[]]},{"id":"5c5f3058.c0223","type":"comment","name":"GET source network from AAI","info":"","comments":"","x":594.6189041137695,"y":906.0476303100586,"z":"9d85256.794bfd8","wires":[]},{"id":"4cfc272e.3ba048","type":"not-found","name":"not found","xml":"\n","comments":"","outputs":1,"x":910.9046859741211,"y":1189.7619500160217,"z":"9d85256.794bfd8","wires":[["a32dd432.848348"]]},{"id":"4fb1ccbe.de9264","type":"get-resource","name":"get AnAI - l3-network by network-id","xml":"\n","comments":"","outputs":1,"x":639.531608581543,"y":1197.2942109107971,"z":"9d85256.794bfd8","wires":[["dc427390.11d98","4cfc272e.3ba048","3deff125.68148e"]]},{"id":"dc427390.11d98","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":903.6267929077148,"y":1224.2465538978577,"z":"9d85256.794bfd8","wires":[["a32dd432.848348"]]},{"id":"a32dd432.848348","type":"returnFailure","name":"return failure","xml":"\n\t\n\t","comments":"","x":1055.7377548217773,"y":1220.468782901764,"z":"9d85256.794bfd8","wires":[]},{"id":"3deff125.68148e","type":"success","name":"success","xml":"\n","comments":"","outputs":1,"x":913.4761962890625,"y":1258.6190185546875,"z":"9d85256.794bfd8","wires":[["9214480a.91e1e8"]]},{"id":"9214480a.91e1e8","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1066.1427612304688,"y":1256.9523468017578,"z":"9d85256.794bfd8","wires":[[]]},{"id":"2a49204d.cef83","type":"comment","name":"GET dest network from AAI","info":"","comments":"","x":612.3332290649414,"y":1165.4762029647827,"z":"9d85256.794bfd8","wires":[]},{"id":"cbccf77c.4013d8","type":"set","name":"set policy fq-name","xml":"\n\n","comments":"","x":565.3333129882812,"y":983.1903915405273,"z":"9d85256.794bfd8","wires":[]},{"id":"e468068e.f8fd78","type":"set","name":"set cloud-region-id for input to contrail","xml":"\n\n","comments":"","x":627.327995300293,"y":1017.2802391052246,"z":"9d85256.794bfd8","wires":[]},{"id":"3eceb01b.795e6","type":"execute","name":"execute Contrail API apply network policy to source network","xml":"\n\n\n\n\n\n\n\n\n","comments":"","outputs":1,"x":703.5185165405273,"y":1090.2804369926453,"z":"9d85256.794bfd8","wires":[["701abbd2.7e3b54","94120abf.4d0b08"]]},{"id":"701abbd2.7e3b54","type":"success","name":"success","xml":"\n","comments":"","outputs":1,"x":1059.1850128173828,"y":1090.7086639404297,"z":"9d85256.794bfd8","wires":[["dcb9ff58.45886"]]},{"id":"94120abf.4d0b08","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":1057.2803344726562,"y":1123.7086037062109,"z":"9d85256.794bfd8","wires":[["a24bc0fc.7cfa4"]]},{"id":"a24bc0fc.7cfa4","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":1217.1851043701172,"y":1123.0419702529907,"z":"9d85256.794bfd8","wires":[]},{"id":"dcb9ff58.45886","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":1211.3754959106445,"y":1091.3753889463842,"z":"9d85256.794bfd8","wires":[[]]},{"id":"b42adb13.7a13e8","type":"switchNode","name":"switch source-network.network-id","xml":"\n\n","comments":"","outputs":1,"x":619.9046859741211,"y":862.3332405090332,"z":"9d85256.794bfd8","wires":[["5424210d.1c802","971927f5.16bf58"]]},{"id":"5424210d.1c802","type":"other","name":"Other","xml":"","comments":"","outputs":1,"x":975.9049034118652,"y":860.9996199607849,"z":"9d85256.794bfd8","wires":[["e39e1e1a.7ac94"]]},{"id":"971927f5.16bf58","type":"other","name":"NULL","xml":"","comments":"","outputs":1,"x":971.571720123291,"y":823.9994201660156,"z":"9d85256.794bfd8","wires":[["4f4a92a0.e38f1c"]]},{"id":"b98ee4e8.38eb78","type":"switchNode","name":"switch service-data.networks.network_length","xml":"\n","comments":"","outputs":1,"x":1367.730339050293,"y":861.01544713974,"z":"9d85256.794bfd8","wires":[["f9657d22.1dd65","c9ebc8c2.c7d948"]]},{"id":"f9657d22.1dd65","type":"other","name":"outcome Null","xml":"\n","comments":"","outputs":1,"x":1656.730339050293,"y":863.0155081748962,"z":"9d85256.794bfd8","wires":[["839cc49f.136208"]]},{"id":"c9ebc8c2.c7d948","type":"other","name":"other","xml":"\n","comments":"","outputs":1,"x":1636.730339050293,"y":898.0155081748962,"z":"9d85256.794bfd8","wires":[["16bca9c2.7dc4c6"]]},{"id":"e39e1e1a.7ac94","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":1110.0161590576172,"y":861.4440245628357,"z":"9d85256.794bfd8","wires":[["b98ee4e8.38eb78"]]},{"id":"4f4a92a0.e38f1c","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":1125.7051849365234,"y":824.6663227081299,"z":"9d85256.794bfd8","wires":[]},{"id":"95f9228a.7f106","type":"comment","name":"Find tenant id/cloud region from source network","info":"","comments":"","x":657.3050079345703,"y":828.9995565414429,"z":"9d85256.794bfd8","wires":[]},{"id":"c66b5efd.1ec84","type":"for","name":"for nidx..service-data.networks.network[]","xml":"\n","comments":"","outputs":1,"x":2099.9047470092773,"y":898.3332633972168,"z":"9d85256.794bfd8","wires":[["f15b62ec.d4784"]]},{"id":"16bca9c2.7dc4c6","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1825.888786315918,"y":898.4592633247375,"z":"9d85256.794bfd8","wires":[["c66b5efd.1ec84"]]},{"id":"839cc49f.136208","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":1838.3934860229492,"y":862.8888339996338,"z":"9d85256.794bfd8","wires":[]},{"id":"f15b62ec.d4784","type":"switchNode","name":"switch networkid found","xml":"\n\n","comments":"","outputs":1,"x":2392.45955657959,"y":895.2223901748657,"z":"9d85256.794bfd8","wires":[["20466326.cc228c","e3af7381.016dd"]]},{"id":"ca02674e.84b438","type":"set","name":"set tenantid and cloud region id","xml":"\n\n\n\n\n","comments":"","x":2980.1261596679688,"y":885.2223739624023,"z":"9d85256.794bfd8","wires":[]},{"id":"8017154b.206ea8","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":2742.1926708221436,"y":898.2223787307739,"z":"9d85256.794bfd8","wires":[["ca02674e.84b438","b9dd247f.268ab8"]]},{"id":"20466326.cc228c","type":"outcomeTrue","name":"true","xml":"\n","comments":"","outputs":1,"x":2586.726047515869,"y":898.2222414016724,"z":"9d85256.794bfd8","wires":[["8017154b.206ea8"]]},{"id":"e3af7381.016dd","type":"other","name":"other","xml":"\n","comments":"","outputs":1,"x":2587.5256576538086,"y":936.2222442626953,"z":"9d85256.794bfd8","wires":[["5a94e0ce.bbd29"]]},{"id":"5a94e0ce.bbd29","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":2765.5258140563965,"y":936.2223100662231,"z":"9d85256.794bfd8","wires":[]},{"id":"b9dd247f.268ab8","type":"get-resource","name":"get-resource tenant","xml":"\n\n","comments":"","outputs":1,"x":2954.5927734375,"y":921.2220630645752,"z":"9d85256.794bfd8","wires":[["dd7ba10c.161b9","cbf42233.390d7","866c3c16.228b3"]]},{"id":"dd7ba10c.161b9","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":3191.4541015625,"y":935.8331546783447,"z":"9d85256.794bfd8","wires":[["6068b4e5.0f7b2c"]]},{"id":"cbf42233.390d7","type":"other","name":"other","xml":"\n","comments":"","outputs":1,"x":3186.7871284484863,"y":969.1664686203003,"z":"9d85256.794bfd8","wires":[["6068b4e5.0f7b2c"]]},{"id":"6068b4e5.0f7b2c","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n\n","comments":"","x":3360.963050842285,"y":957.2220277786255,"z":"9d85256.794bfd8","wires":[]},{"id":"866c3c16.228b3","type":"success","name":"success","xml":"\n","comments":"","outputs":1,"x":3186.963134765625,"y":904.2591190338135,"z":"9d85256.794bfd8","wires":[["f29d601d.cb81d"]]},{"id":"f29d601d.cb81d","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":3366.963134765625,"y":902.2591190338135,"z":"9d85256.794bfd8","wires":[["2300be73.7c54a2"]]},{"id":"2300be73.7c54a2","type":"set","name":"set tenant name","xml":"\n\n\n\n","comments":"","x":3553.926239013672,"y":899.8888607025146,"z":"9d85256.794bfd8","wires":[]},{"id":"4c6f65c8.0d26bc","type":"comment","name":"Apply the policy to source network","info":"","comments":"","x":621.9047012329102,"y":1058.3332691192627,"z":"9d85256.794bfd8","wires":[]},{"id":"8edbb4f5.1da278","type":"execute","name":"execute Contrail API apply network policy to destination network","xml":"\n\n\n\n\n\n\n\n\n","comments":"","outputs":1,"x":727.9047470092773,"y":1342.3332767486572,"z":"9d85256.794bfd8","wires":[["40503601.fe4738","90fb633f.f3b86"]]},{"id":"40503601.fe4738","type":"success","name":"success","xml":"\n","comments":"","outputs":1,"x":1063.5711822509766,"y":1342.7614674568176,"z":"9d85256.794bfd8","wires":[["a824091b.d45238"]]},{"id":"90fb633f.f3b86","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":1061.66650390625,"y":1375.7614072225988,"z":"9d85256.794bfd8","wires":[["a6d7eb4e.7a67a8"]]},{"id":"a6d7eb4e.7a67a8","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":1221.571273803711,"y":1375.0947737693787,"z":"9d85256.794bfd8","wires":[]},{"id":"a824091b.d45238","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":1215.7616653442383,"y":1343.4281924627721,"z":"9d85256.794bfd8","wires":[[]]},{"id":"53b61fa1.1416d","type":"comment","name":"Apply the policy to dest network","info":"","comments":"","x":626.2908706665039,"y":1310.3860726356506,"z":"9d85256.794bfd8","wires":[]},{"id":"f68288a2.a88758","type":"comment","name":"Update network policy in AAI - relationship to networks","info":"","comments":"","x":689.9047546386719,"y":1452.3332481384277,"z":"9d85256.794bfd8","wires":[]},{"id":"4619cd3d.096d04","type":"save","name":"delete AnAI - network-policy relationship to source/dest network","xml":"\n\n\n\n","comments":"","outputs":1,"x":727.2816619873047,"y":1485.4009227752686,"z":"9d85256.794bfd8","wires":[["c2ba7845.aba188","9531a4a4.802f48"]]},{"id":"d37f50f9.c5788","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":1275.6271018981934,"y":1479.6824353933334,"z":"9d85256.794bfd8","wires":[]},{"id":"c2ba7845.aba188","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":1047.0557098388672,"y":1482.6981729269028,"z":"9d85256.794bfd8","wires":[["d37f50f9.c5788"]]},{"id":"9531a4a4.802f48","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":1050.8652076721191,"y":1512.1745895147324,"z":"9d85256.794bfd8","wires":[["d37f50f9.c5788"]]}] +[ + { + "id": "b815bf6b.f806", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 149.00390625, + "y": 66.99999904632568, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "e3536c87.13bbe" + ] + ] + }, + { + "id": "e3536c87.13bbe", + "type": "service-logic", + "name": "GENERIC-RESOURCE-API ${project.version}", + "module": "GENERIC-RESOURCE-API", + "version": "${project.version}", + "comments": "", + "xml": "", + "outputs": 1, + "x": 295.2419891357422, + "y": 141.952392578125, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "32e23dff.190972" + ] + ] + }, + { + "id": "32e23dff.190972", + "type": "method", + "name": "contrail-route-topology-operation-deactivate", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 375.1587562561035, + "y": 211.1904411315918, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "c4f5eee9.6967e" + ] + ] + }, + { + "id": "c4f5eee9.6967e", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 283.4800910949707, + "y": 354.5237832069397, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "a3036c42.f5314", + "86e70516.39d8f8", + "600fb8be.00cd98", + "e41af924.acac48", + "ec5ab69c.960248", + "a3185364.e3557", + "c2196657.5c5568", + "c89d538f.9aa9d", + "485d44b.3f22bbc", + "df7e9878.bf2438", + "cadfd5a3.bfaee8", + "58da4328.00307c", + "7b764332.cfbc8c", + "e7206768.0e4798", + "bcbcae69.e41a6", + "ac156492.2e6298", + "a041f2a.fea5e1", + "25a06dee.1913e2", + "316bd14d.1e3f7e", + "7f032d3b.5762a4", + "735dd19a.3e195", + "61e59930.9891c8" + ] + ] + }, + { + "id": "86e70516.39d8f8", + "type": "returnSuccess", + "name": "return success", + "xml": "\n\n\n\n", + "comments": "", + "x": 546.003978729248, + "y": 2280.548007965088, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "a3036c42.f5314", + "type": "set", + "name": "set output to api handler", + "xml": "\n\n\n\n \n", + "comments": "", + "x": 574.757884979248, + "y": 2243.003801345825, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "df7e9878.bf2438", + "type": "set", + "name": "set allotted-resource-oper-status", + "xml": "\n\n\n\n\n\n", + "comments": "", + "x": 609.7580490112305, + "y": 2103.717960357666, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "e41af924.acac48", + "type": "set", + "name": "set tmp.ar.self-link", + "xml": "\n\n\n", + "comments": "", + "x": 545.7419624328613, + "y": 328.3333206176758, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "600fb8be.00cd98", + "type": "set", + "name": "set tmp.ar.allotted-resource-id,etc", + "xml": "\n\n\n\n\n\n", + "comments": "", + "x": 593.0012245178223, + "y": 294.592586517334, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "ec5ab69c.960248", + "type": "execute", + "name": "execute Properties - pull properties file", + "xml": "\n \n \n", + "comments": "", + "outputs": 1, + "x": 615.9973220825195, + "y": 364.2315492630005, + "z": "1907a3e8.ef01ec", + "wires": [ + [] + ] + }, + { + "id": "c2196657.5c5568", + "type": "execute", + "name": "execute RestApiCallNode - Get AR by id", + "xml": "\n \n \n \n \n \n \n\n", + "comments": "", + "outputs": 1, + "x": 622.5226516723633, + "y": 532.4595079421997, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "c4a17fbb.5689e", + "18d8cd61.df5a73" + ] + ] + }, + { + "id": "a3185364.e3557", + "type": "execute", + "name": "generate allotted-resource url", + "xml": "\n \n \n \n \n", + "comments": "", + "outputs": 1, + "x": 580.0687522888184, + "y": 424.0172243118286, + "z": "1907a3e8.ef01ec", + "wires": [ + [] + ] + }, + { + "id": "c4a17fbb.5689e", + "type": "success", + "name": "success", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 867.8187561035156, + "y": 533.2673215866089, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "cac5050.acefef8" + ] + ] + }, + { + "id": "c89d538f.9aa9d", + "type": "execute", + "name": "execute RestApiCallNode - PUT AR by id", + "xml": "\n \n \n \n \n \n \n \n\n", + "comments": "", + "outputs": 1, + "x": 637.8665161132812, + "y": 2177.7674798965454, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "143ba41d.04eb0c", + "b003cfcf.73519", + "cffa818d.e26b9" + ] + ] + }, + { + "id": "143ba41d.04eb0c", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 908.1745338439941, + "y": 2230.76568069309, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "f851a353.e9aa2" + ] + ] + }, + { + "id": "b003cfcf.73519", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 899.1745834350586, + "y": 2199.2657064422965, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "f851a353.e9aa2" + ] + ] + }, + { + "id": "cffa818d.e26b9", + "type": "success", + "name": "success", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 902.9246215820312, + "y": 2169.622811317444, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "94b3659a.a43058" + ] + ] + }, + { + "id": "f851a353.e9aa2", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 1068.9246215820312, + "y": 2200.0157302841544, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "cac5050.acefef8", + "type": "block", + "name": "block: atomic", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1036.818759918213, + "y": 531.76722240448, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "4b3e1791.ede978" + ] + ] + }, + { + "id": "4b3e1791.ede978", + "type": "switchNode", + "name": "switch cr length", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1247.6760025024414, + "y": 531.3863515853882, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "308a03ed.e1727c", + "47b8a1d5.c5ec" + ] + ] + }, + { + "id": "308a03ed.e1727c", + "type": "other", + "name": "outcome 1", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1437.0093078613281, + "y": 531.3863096237183, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "c91abe4f.2358d" + ] + ] + }, + { + "id": "e2e2a405.0fa288", + "type": "set", + "name": "set ar from get", + "xml": "\n\n", + "comments": "", + "x": 1910.2001266479492, + "y": 494.62452507019043, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "c91abe4f.2358d", + "type": "block", + "name": "block: atomic", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1621.533197402954, + "y": 528.2911434173584, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "e2e2a405.0fa288", + "e450a5fc.4f5528", + "a38edad2.503f08" + ] + ] + }, + { + "id": "e450a5fc.4f5528", + "type": "set", + "name": "set oper-status", + "xml": "\n\n\n\n\n", + "comments": "", + "x": 1918.2000541687012, + "y": 558.7196683883667, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "e509658b.31b9c8", + "type": "comment", + "name": "GET security-zone-allotted-resource from mdsal", + "info": "", + "comments": "", + "x": 635.8186988830566, + "y": 499.7672109603882, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "63c12cc3.289684", + "type": "switchNode", + "name": "switch order-status", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1926.199909210205, + "y": 525.6244802474976, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "9249324b.98c72", + "34ad81d1.e734ae" + ] + ] + }, + { + "id": "9249324b.98c72", + "type": "outcome", + "name": "outcome Other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2161.8475799560547, + "y": 540.0531892776489, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "7a2c59b1.1ae928" + ] + ] + }, + { + "id": "7a2c59b1.1ae928", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 2402.466329574585, + "y": 542.9577789306641, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "58da4328.00307c", + "type": "set", + "name": "unset ar-assignments.vlan-tag", + "xml": "\n\n\n\n\n", + "comments": "", + "x": 583.866325378418, + "y": 1641.053183555603, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "a38edad2.503f08", + "type": "set", + "name": "save backup copy of mdsal-ar for rollback", + "xml": "\n\n", + "comments": "", + "x": 1998.0571784973145, + "y": 461.4340171813965, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "a821712b.17818", + "type": "comment", + "name": "Create urls for restapi", + "info": "", + "comments": "", + "x": 550.9615592956543, + "y": 393.62435150146484, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "94b3659a.a43058", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1044.5805892944336, + "y": 2165.814980506897, + "z": "1907a3e8.ef01ec", + "wires": [ + [] + ] + }, + { + "id": "485d44b.3f22bbc", + "type": "execute", + "name": "execute getTime", + "xml": "\n \n\n", + "comments": "", + "outputs": 1, + "x": 560.5806350708008, + "y": 2070.1481189727783, + "z": "1907a3e8.ef01ec", + "wires": [ + [] + ] + }, + { + "id": "67e85008.65268", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n \n", + "comments": "", + "x": 1620.670904159546, + "y": 644.333384513855, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "18d8cd61.df5a73", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 859.6705589294434, + "y": 568.3334064483643, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "91ff2ac7.39d1e8" + ] + ] + }, + { + "id": "91ff2ac7.39d1e8", + "type": "block", + "name": "block: atomic", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1039.670509338379, + "y": 568.9999570846558, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "67e85008.65268" + ] + ] + }, + { + "id": "cadfd5a3.bfaee8", + "type": "set", + "name": "set ar data", + "xml": "\n\n\n\n\n\n\n\n\n\n", + "comments": "", + "x": 531.670524597168, + "y": 564.6666212081909, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "47b8a1d5.c5ec", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1425.3372611999512, + "y": 568.666669845581, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "67e85008.65268" + ] + ] + }, + { + "id": "54b8535a.8e269c", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2386.337375640869, + "y": 508.6666965484619, + "z": "1907a3e8.ef01ec", + "wires": [ + [] + ] + }, + { + "id": "616e5aa8.bace14", + "type": "comment", + "name": "Call contrail api here", + "info": "", + "comments": "", + "x": 561.8610305786133, + "y": 631.2857141494751, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "2c80a456.b1f4cc", + "type": "comment", + "name": "Need to rollback aai here", + "info": "", + "comments": "", + "x": 1295.0038833618164, + "y": 2199.3333253860474, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "46f742ec.a9b84c", + "type": "comment", + "name": "Create network policy in AAI", + "info": "", + "comments": "", + "x": 594.337158203125, + "y": 2019.333212852478, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "34ad81d1.e734ae", + "type": "outcome", + "name": "outcome Active", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2176.6092224121094, + "y": 508.2912006378174, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "54b8535a.8e269c" + ] + ] + }, + { + "id": "7b764332.cfbc8c", + "type": "update", + "name": "update AAI allotted-resource", + "xml": "\n\t\n", + "comments": "", + "outputs": 1, + "x": 582.3372192382812, + "y": 1797.6666612625122, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "90496b8f.cd3e48", + "17738c07.d91474" + ] + ] + }, + { + "id": "90496b8f.cd3e48", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 838.0991516113281, + "y": 1774.9048357009888, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "61ddf82d.16ddf8" + ] + ] + }, + { + "id": "17738c07.d91474", + "type": "failure", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 843.4085807800293, + "y": 1810.4762535095215, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "61ddf82d.16ddf8" + ] + ] + }, + { + "id": "61ddf82d.16ddf8", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 1053.1943664550781, + "y": 1776.5238800048828, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "f9c0d920.6a3758", + "type": "comment", + "name": "Update AAI AR", + "info": "", + "comments": "", + "x": 545.6800765991211, + "y": 1761.0951051712036, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "e7206768.0e4798", + "type": "set", + "name": "set ar-assignments", + "xml": "\n\n\n\n\n", + "comments": "", + "x": 560.00390625, + "y": 596.9999990463257, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "2ef8c27b.c719fe", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n \n", + "comments": "", + "x": 1606.575590133667, + "y": 743.6666250228882, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "895fb59c.cb29c8", + "type": "not-found", + "name": "not found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 860.1942520141602, + "y": 897.0476351976395, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "8e996274.f6a77" + ] + ] + }, + { + "id": "ac156492.2e6298", + "type": "get-resource", + "name": "get AnAI - l3-network by network-id", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 583.3925933837891, + "y": 908.2941522598267, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "c50e7042.f8b7", + "895fb59c.cb29c8", + "8bf1acb1.85f35" + ] + ] + }, + { + "id": "c50e7042.f8b7", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 852.9163589477539, + "y": 931.5322390794754, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "8e996274.f6a77" + ] + ] + }, + { + "id": "8e996274.f6a77", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t", + "comments": "", + "x": 1005.0273208618164, + "y": 927.7544680833817, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "8bf1acb1.85f35", + "type": "success", + "name": "success", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 858.1943130493164, + "y": 963.0476351976395, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "6b62a765.1e4e88" + ] + ] + }, + { + "id": "6b62a765.1e4e88", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 1010.8608779907227, + "y": 961.3809634447098, + "z": "1907a3e8.ef01ec", + "wires": [ + [] + ] + }, + { + "id": "b5253c8d.7010d", + "type": "comment", + "name": "GET source network from AAI", + "info": "", + "comments": "", + "x": 561.6228103637695, + "y": 877.0476293563843, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "d8c05d1d.86ab3", + "type": "not-found", + "name": "not found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 877.9085922241211, + "y": 1160.7619490623474, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "b6770bb6.5606e8" + ] + ] + }, + { + "id": "7f032d3b.5762a4", + "type": "get-resource", + "name": "get AnAI - l3-network by network-id", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 606.535514831543, + "y": 1168.2942099571228, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "ceac0fa8.21cc", + "d8c05d1d.86ab3", + "db0f5df8.46428" + ] + ] + }, + { + "id": "ceac0fa8.21cc", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 870.6306991577148, + "y": 1195.2465529441833, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "b6770bb6.5606e8" + ] + ] + }, + { + "id": "b6770bb6.5606e8", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t", + "comments": "", + "x": 1022.7416610717773, + "y": 1191.4687819480896, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "db0f5df8.46428", + "type": "success", + "name": "success", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 880.4801025390625, + "y": 1229.6190176010132, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "7a8602cf.c3ed2c" + ] + ] + }, + { + "id": "7a8602cf.c3ed2c", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 1033.1466674804688, + "y": 1227.9523458480835, + "z": "1907a3e8.ef01ec", + "wires": [ + [] + ] + }, + { + "id": "dc7abd78.211da", + "type": "comment", + "name": "GET dest network from AAI", + "info": "", + "comments": "", + "x": 579.3371353149414, + "y": 1136.4762020111084, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "a041f2a.fea5e1", + "type": "set", + "name": "set policy fq-name", + "xml": "\n\n", + "comments": "", + "x": 532.3372192382812, + "y": 954.190390586853, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "25a06dee.1913e2", + "type": "set", + "name": "set cloud-region-id for input to contrail", + "xml": "\n\n", + "comments": "", + "x": 594.331901550293, + "y": 988.2802381515503, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "316bd14d.1e3f7e", + "type": "execute", + "name": "execute Contrail API apply network policy to source network", + "xml": "\n\n\n\n\n\n\n\n\n", + "comments": "", + "outputs": 1, + "x": 670.5224227905273, + "y": 1061.280436038971, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "c0fb54dc.a8e1a8", + "4b7ba790.40c118" + ] + ] + }, + { + "id": "c0fb54dc.a8e1a8", + "type": "success", + "name": "success", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1026.1889190673828, + "y": 1061.7086629867554, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "130dd766.3e4979" + ] + ] + }, + { + "id": "4b7ba790.40c118", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1024.2842407226562, + "y": 1094.7086027525365, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "b56db03.6e1275" + ] + ] + }, + { + "id": "b56db03.6e1275", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 1184.1890106201172, + "y": 1094.0419692993164, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "130dd766.3e4979", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1178.3794021606445, + "y": 1062.3753879927099, + "z": "1907a3e8.ef01ec", + "wires": [ + [] + ] + }, + { + "id": "bcbcae69.e41a6", + "type": "switchNode", + "name": "switch source-network.network-id", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 586.9085922241211, + "y": 833.3332395553589, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "a8cf0dfe.c0676", + "b0bcf579.d52d48" + ] + ] + }, + { + "id": "a8cf0dfe.c0676", + "type": "other", + "name": "Other", + "xml": "", + "comments": "", + "outputs": 1, + "x": 942.9088096618652, + "y": 831.9996190071106, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "e4489b27.0ab3d8" + ] + ] + }, + { + "id": "b0bcf579.d52d48", + "type": "other", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 938.575626373291, + "y": 794.9994192123413, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "e8402b5f.bacaf8" + ] + ] + }, + { + "id": "4a3cc27f.d1207c", + "type": "switchNode", + "name": "switch service-data.networks.network_length", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1334.734245300293, + "y": 832.0154461860657, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "ced5ea6e.50d148", + "4e2e2769.bc7988" + ] + ] + }, + { + "id": "ced5ea6e.50d148", + "type": "other", + "name": "outcome Null", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1623.734245300293, + "y": 834.0155072212219, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "7df1b688.54eb98" + ] + ] + }, + { + "id": "4e2e2769.bc7988", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1603.734245300293, + "y": 869.0155072212219, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "7f100db9.54a9d4" + ] + ] + }, + { + "id": "e4489b27.0ab3d8", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1077.0200653076172, + "y": 832.4440236091614, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "4a3cc27f.d1207c" + ] + ] + }, + { + "id": "e8402b5f.bacaf8", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 1092.7090911865234, + "y": 795.6663217544556, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "ea7023cf.b9d96", + "type": "comment", + "name": "Find tenant id/cloud region from source network", + "info": "", + "comments": "", + "x": 624.3089141845703, + "y": 799.9995555877686, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "c37f3483.2bbfa8", + "type": "for", + "name": "for nidx..service-data.networks.network[]", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2066.9086532592773, + "y": 869.3332624435425, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "64560a.8f1f79f8" + ] + ] + }, + { + "id": "7f100db9.54a9d4", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 1792.892692565918, + "y": 869.4592623710632, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "c37f3483.2bbfa8" + ] + ] + }, + { + "id": "7df1b688.54eb98", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 1805.3973922729492, + "y": 833.8888330459595, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "64560a.8f1f79f8", + "type": "switchNode", + "name": "switch networkid found", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 2359.46346282959, + "y": 866.2223892211914, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "7342e4d1.67d22c", + "a2517fec.05268" + ] + ] + }, + { + "id": "6f43e020.46433", + "type": "set", + "name": "set cloud region id", + "xml": "\n\n\n\n", + "comments": "", + "x": 2946.130142211914, + "y": 868.2223949432373, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "ba9643b0.6b37d", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2709.1965770721436, + "y": 869.2223777770996, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "6f43e020.46433" + ] + ] + }, + { + "id": "7342e4d1.67d22c", + "type": "outcomeTrue", + "name": "true", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2553.729953765869, + "y": 869.222240447998, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "ba9643b0.6b37d" + ] + ] + }, + { + "id": "a2517fec.05268", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2554.5295639038086, + "y": 907.222243309021, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "b1867f01.f4838" + ] + ] + }, + { + "id": "b1867f01.f4838", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 2732.5297203063965, + "y": 907.2223091125488, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "b3a00b12.59bf18", + "type": "comment", + "name": "Apply the policy to source network", + "info": "", + "comments": "", + "x": 588.9086074829102, + "y": 1029.3332681655884, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "735dd19a.3e195", + "type": "execute", + "name": "execute Contrail API apply network policy to destination network", + "xml": "\n\n\n\n\n\n\n\n\n", + "comments": "", + "outputs": 1, + "x": 694.9086532592773, + "y": 1313.333275794983, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "b28c1bec.d5a608", + "7421f45.064d50c" + ] + ] + }, + { + "id": "b28c1bec.d5a608", + "type": "success", + "name": "success", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1030.5750885009766, + "y": 1313.7614665031433, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "f586735b.d7b1f" + ] + ] + }, + { + "id": "7421f45.064d50c", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1028.67041015625, + "y": 1346.7614062689245, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "3ac5d5d2.c2451a" + ] + ] + }, + { + "id": "3ac5d5d2.c2451a", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 1188.575180053711, + "y": 1346.0947728157043, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "f586735b.d7b1f", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1182.7655715942383, + "y": 1314.4281915090978, + "z": "1907a3e8.ef01ec", + "wires": [ + [] + ] + }, + { + "id": "ad4f0026.b8dda", + "type": "comment", + "name": "Apply the policy to dest network", + "info": "", + "comments": "", + "x": 593.2947769165039, + "y": 1281.3860716819763, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "7882567f.5f5408", + "type": "comment", + "name": "Update network policy in AAI - relationship to networks", + "info": "", + "comments": "", + "x": 656.9086608886719, + "y": 1423.3332471847534, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "61e59930.9891c8", + "type": "save", + "name": "delete AnAI - network-policy relationship to source/dest network", + "xml": "\n\n\n\n", + "comments": "", + "outputs": 1, + "x": 694.2855682373047, + "y": 1456.4009218215942, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "bef2cc41.3ba14", + "82796ef8.27467" + ] + ] + }, + { + "id": "c3e7254d.3fafa8", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 1242.6310081481934, + "y": 1450.6824344396591, + "z": "1907a3e8.ef01ec", + "wires": [] + }, + { + "id": "bef2cc41.3ba14", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1014.0596160888672, + "y": 1453.6981719732285, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "c3e7254d.3fafa8" + ] + ] + }, + { + "id": "82796ef8.27467", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1017.8691139221191, + "y": 1483.174588561058, + "z": "1907a3e8.ef01ec", + "wires": [ + [ + "c3e7254d.3fafa8" + ] + ] + } +] \ No newline at end of file