68a4f56d89d4bb1ab2023049829e70ce3305f60c
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_network-topology-operation.json
1 [{"id":"391bc566.d29f3a","type":"dgstart","name":"DGSTART","outputs":1,"x":139.03125,"y":137.03125,"z":"80a6e568.0e5da8","wires":[["151aa940.31d5f7"]]},{"id":"151aa940.31d5f7","type":"service-logic","name":"GENERIC-RESOURCE-API ${project.version}","module":"GENERIC-RESOURCE-API","version":"${project.version}","comments":"","xml":"<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>","outputs":1,"x":220.98361206054688,"y":177.269362449646,"z":"80a6e568.0e5da8","wires":[["f4ae722c.e2412"]]},{"id":"f4ae722c.e2412","type":"method","name":"network-topology-operation","xml":"<method rpc='network-topology-operation' mode='sync'>\n","comments":"","outputs":1,"x":200.4598846435547,"y":228.0312557220459,"z":"80a6e568.0e5da8","wires":[["7f69cde1.f6c754"]]},{"id":"8b361294.19af8","type":"comment","name":" NETWORK-TOPOLOGY-OPERATION ","info":"","comments":"","x":533.376106262207,"y":84.61759376525879,"z":"80a6e568.0e5da8","wires":[]},{"id":"7f69cde1.f6c754","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":253.03128051757812,"y":300.47473335266113,"z":"80a6e568.0e5da8","wires":[["6aa44b11.58fab4","8d8d873c.54e428","333480cd.13ba7","f822b7ee.48fd68"]]},{"id":"6aa44b11.58fab4","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n","comments":"","x":457.1146545410156,"y":1326.5673866271973,"z":"80a6e568.0e5da8","wires":[]},{"id":"8d8d873c.54e428","type":"switchNode","name":"switch svc-action","xml":"<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n","comments":"","outputs":1,"x":479.7455139160156,"y":530.888427734375,"z":"80a6e568.0e5da8","wires":[["67756f70.342c2","162571c6.e5670e","b72df775.b9cdc8","8253b32c.c2d2f","4e4cc120.29e85","a0a93ee4.1aaaa","fb2ea25a.4e1a3","94d29a5d.cac4b8","c5b5e6bf.f3e6a8"]]},{"id":"67756f70.342c2","type":"other","name":"assign","xml":"<outcome value='assign'>\n","comments":"","outputs":1,"x":694.221752166748,"y":303.1741065979004,"z":"80a6e568.0e5da8","wires":[["16fba10.24b975f"]]},{"id":"16fba10.24b975f","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":866.4599227905273,"y":301.1742353439331,"z":"80a6e568.0e5da8","wires":[["de2b7578.bda2c8"]]},{"id":"333480cd.13ba7","type":"call","name":"call GENERIC-RESOURCE-API:validate-network-input","xml":"<call module='GENERIC-RESOURCE-API' rpc='validate-network-input' mode='sync' >\n","comments":"","outputs":1,"x":590.0312385559082,"y":241.0312569141388,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"162571c6.e5670e","type":"other","name":"activate","xml":"<outcome value='activate'>\n","comments":"","outputs":1,"x":697.0312919616699,"y":393.0312442779541,"z":"80a6e568.0e5da8","wires":[["599829f5.fe5318"]]},{"id":"b2e4fea5.54444","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1152.2696075439453,"y":478.03149604797363,"z":"80a6e568.0e5da8","wires":[["3cc3ef6b.e25a2","15393ab6.d92225","be0e7f18.ecdee"]]},{"id":"2a13f2e9.95540e","type":"call","name":"call GENERIC-RESOURCE-API:network-topology-operation-activate","xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-activate' mode='sync' >\n","comments":"","outputs":1,"x":2344.091178894043,"y":981.6384925842285,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"b72df775.b9cdc8","type":"other","name":"deactivate","xml":"<outcome value='deactivate'>\n","comments":"","outputs":1,"x":691.0312843322754,"y":625.0312423706055,"z":"80a6e568.0e5da8","wires":[["f52c99d4.f263e8"]]},{"id":"7f2bbb62.bb09c4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1128.2695846557617,"y":865.0315561294556,"z":"80a6e568.0e5da8","wires":[["3cc3ef6b.e25a2","6bdb12be.1d8ddc","be0e7f18.ecdee"]]},{"id":"6bdb12be.1d8ddc","type":"call","name":"call GENERIC-RESOURCE-API:network-topology-operation-deactivate","xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-deactivate' mode='sync' >\n","comments":"","outputs":1,"x":1672.2577819824219,"y":1069.8885402679443,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"8253b32c.c2d2f","type":"other","name":"unassign","xml":"<outcome value='unassign'>\n","comments":"","outputs":1,"x":688.0313034057617,"y":877.0312919616699,"z":"80a6e568.0e5da8","wires":[["1761abfd.2588d4"]]},{"id":"1761abfd.2588d4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":869.2694625854492,"y":878.0314140319824,"z":"80a6e568.0e5da8","wires":[["3cc3ef6b.e25a2","de054913.fe8fc8","be0e7f18.ecdee"]]},{"id":"57f5a37b.0d4a2c","type":"call","name":"call GENERIC-RESOURCE-API:network-topology-operation-unassign","xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-unassign' mode='sync' >\n","comments":"","outputs":1,"x":2339.8410415649414,"y":1175.1384620666504,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"4e4cc120.29e85","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":672.0313034057617,"y":1132.0312886238098,"z":"80a6e568.0e5da8","wires":[["3d862971.ad4606"]]},{"id":"3d862971.ad4606","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"sdnc-request-header.svc-action is a required input\" />\n","comments":"","x":854.0312995910645,"y":1131.031298160553,"z":"80a6e568.0e5da8","wires":[]},{"id":"f822b7ee.48fd68","type":"set","name":"Set final indicator to Y","xml":"<set>\n<parameter name=\"ack-final\" value=\"Y\"/>","comments":"","x":476.14234924316406,"y":1285.7257251739502,"z":"80a6e568.0e5da8","wires":[]},{"id":"6045ad50.51ba74","type":"for","name":"for nidx..service-data.networks.network[]","xml":"<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n","comments":"","outputs":1,"x":2208.761707305908,"y":519.7932014465332,"z":"80a6e568.0e5da8","wires":[["1f170555.0595ab"]]},{"id":"3cc3ef6b.e25a2","type":"switchNode","name":"switch service-data.networks.network_length","xml":"<switch test='`$service-data.networks.network_length`'>\n","comments":"","outputs":1,"x":1486.2258644104004,"y":488.1145935058594,"z":"80a6e568.0e5da8","wires":[["29b38669.490c4a","abbf4986.a58c08"]]},{"id":"29b38669.490c4a","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1785.475742340088,"y":486.36459159851074,"z":"80a6e568.0e5da8","wires":[["6f6554d7.baa7ac"]]},{"id":"abbf4986.a58c08","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1739.475772857666,"y":519.3646125793457,"z":"80a6e568.0e5da8","wires":[["a19eec6c.430c"]]},{"id":"1f170555.0595ab","type":"switchNode","name":"switch networkid found","xml":"<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n","comments":"","outputs":1,"x":2499.190258026123,"y":519.043285369873,"z":"80a6e568.0e5da8","wires":[["ec8c2b12.6013c8"]]},{"id":"ec8c2b12.6013c8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2688.1426124572754,"y":519.9360237121582,"z":"80a6e568.0e5da8","wires":[["aec91c53.10e62"]]},{"id":"aec91c53.10e62","type":"set","name":"set tmp.nidx and network-data","xml":"<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='network-data.' value='`$service-data.networks.network[$nidx].`' />\n","comments":"","x":2921.6743812561035,"y":518.6860313415527,"z":"80a6e568.0e5da8","wires":[]},{"id":"6c384d6a.ebe564","type":"comment","name":"Find the index to service data for this network - save id in tmp.nidx, save service-data","info":"","comments":"","x":1636.587158203125,"y":453.36461353302,"z":"80a6e568.0e5da8","wires":[]},{"id":"72e80856.699538","type":"comment","name":"service-data  will not be stored until we have a network-id","info":"","comments":"","x":1204.6980438232422,"y":82.25350379943848,"z":"80a6e568.0e5da8","wires":[]},{"id":"6f6554d7.baa7ac","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n","comments":"","x":1977.2532997131348,"y":484.25358963012695,"z":"80a6e568.0e5da8","wires":[]},{"id":"a19eec6c.430c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1906.7457389831543,"y":518.919189453125,"z":"80a6e568.0e5da8","wires":[["6045ad50.51ba74","3d1de00e.e25c4"]]},{"id":"3d1de00e.e25c4","type":"switchNode","name":"switch tmp.nidx ","xml":"<switch test=\"`$tmp.nidx`\">\n\n","comments":"","outputs":1,"x":2135.8132514953613,"y":569.2764005661011,"z":"80a6e568.0e5da8","wires":[["53515622.6c69b8","fdbe7b54.ba6eb8"]]},{"id":"a299bde8.ff648","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n","comments":"","x":2488.670234680176,"y":564.9906425476074,"z":"80a6e568.0e5da8","wires":[]},{"id":"53515622.6c69b8","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2307.241786956787,"y":567.847785949707,"z":"80a6e568.0e5da8","wires":[["a299bde8.ff648"]]},{"id":"15393ab6.d92225","type":"switchNode","name":"switch network-level-oper-status","xml":"<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1557.0594100952148,"y":981.5898933410645,"z":"80a6e568.0e5da8","wires":[["2a32c0d1.5896c","54281db.616ade4"]]},{"id":"2a32c0d1.5896c","type":"outcome","name":"outcome PendingCreate","xml":"<outcome value='PendingCreate'>\n","comments":"","outputs":1,"x":1922.0593897501622,"y":981.5898780822754,"z":"80a6e568.0e5da8","wires":[["2a13f2e9.95540e"]]},{"id":"54281db.616ade4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1872.0594367980957,"y":1021.5899085998535,"z":"80a6e568.0e5da8","wires":[["d24675e4.4c5b58"]]},{"id":"d24675e4.4c5b58","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Network is not in appropriate state for activate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />","comments":"","x":2042.0594367980957,"y":1021.5899085998535,"z":"80a6e568.0e5da8","wires":[]},{"id":"de054913.fe8fc8","type":"switchNode","name":"switch network-level-oper-status","xml":"<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1546.6624221801758,"y":1176.7426643371582,"z":"80a6e568.0e5da8","wires":[["5f6ee0a9.99bfe","888e2bf1.4afcf8","a7b1a8bf.a1d8a8"]]},{"id":"5f6ee0a9.99bfe","type":"outcome","name":"outcome PendingCreate","xml":"<outcome value='PendingCreate'>\n","comments":"","outputs":1,"x":1906.6623916625977,"y":1176.7426948547363,"z":"80a6e568.0e5da8","wires":[["57f5a37b.0d4a2c"]]},{"id":"888e2bf1.4afcf8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1862.4123153686523,"y":1248.2427577972412,"z":"80a6e568.0e5da8","wires":[["90d3132f.bdcdb"]]},{"id":"90d3132f.bdcdb","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Network is not in appropriate state for unassign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />","comments":"","x":2053.745735168457,"y":1246.9093866348267,"z":"80a6e568.0e5da8","wires":[]},{"id":"a7b1a8bf.a1d8a8","type":"outcome","name":"outcome PendingDelete","xml":"<outcome value='PendingDelete'>\n","comments":"","outputs":1,"x":1909.8926162719727,"y":1214.5898628234863,"z":"80a6e568.0e5da8","wires":[["57f5a37b.0d4a2c"]]},{"id":"a0a93ee4.1aaaa","type":"other","name":"changeassign","xml":"<outcome value='changeassign'>","comments":"","outputs":1,"x":699.031322479248,"y":528.0312747955322,"z":"80a6e568.0e5da8","wires":[["9ab0692f.fbf8b8"]]},{"id":"9ab0692f.fbf8b8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1071.2812614440918,"y":525.0312662124634,"z":"80a6e568.0e5da8","wires":[["3cc3ef6b.e25a2","c59ebd.d987e14"]]},{"id":"c2f0516d.f9bc8","type":"call","name":"call GENERIC-RESOURCE-API:network-topology-operation-assign","xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-assign' mode='sync' >\n","comments":"","outputs":1,"x":1840.0314445495605,"y":223.0312671661377,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"de2b7578.bda2c8","type":"switchNode","name":"switch network-level-oper-status","xml":"<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1135.9995002746582,"y":160.98265838623047,"z":"80a6e568.0e5da8","wires":[["37fcd84a.130878","dfec6f14.31a8d","b70de925.54aa58","533f71f3.53aa2"]]},{"id":"37fcd84a.130878","type":"outcome","name":"outcome PendingCreate","xml":"<outcome value='PendingCreate'>\n","comments":"","outputs":1,"x":1521.9995460510254,"y":180.98264026641846,"z":"80a6e568.0e5da8","wires":[["35c8e15b.d70bce"]]},{"id":"dfec6f14.31a8d","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1469.9995422363281,"y":222.9826717376709,"z":"80a6e568.0e5da8","wires":[["c2f0516d.f9bc8"]]},{"id":"35c8e15b.d70bce","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Network is not in appropriate state for assign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />","comments":"","x":1796.9997673034668,"y":176.9826889038086,"z":"80a6e568.0e5da8","wires":[]},{"id":"533f71f3.53aa2","type":"outcome","name":"outcome PendingDelete","xml":"<outcome value='PendingDelete'>\n","comments":"","outputs":1,"x":1520.0312843322754,"y":146.0312557220459,"z":"80a6e568.0e5da8","wires":[["35c8e15b.d70bce"]]},{"id":"b70de925.54aa58","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":1500.031322479248,"y":111.03125762939453,"z":"80a6e568.0e5da8","wires":[["35c8e15b.d70bce"]]},{"id":"c59ebd.d987e14","type":"call","name":"call GENERIC-RESOURCE-API:network-topology-operation-changeassign","xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-changeassign' mode='sync' >\n","comments":"","outputs":1,"x":1649.2776565551758,"y":913.5273838043213,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"be0e7f18.ecdee","type":"switchNode","name":"switch network-information.network-instance-group-id","xml":"<switch test='`$network-topology-operation-input.network-information.network-instance-group-id`'>\n\n","comments":"","outputs":1,"x":1561.469898223877,"y":745.5322704315186,"z":"80a6e568.0e5da8","wires":[["85c6c572.a652a8","32dda312.6e155c"]]},{"id":"85c6c572.a652a8","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":1848.2197799682617,"y":783.6989374160767,"z":"80a6e568.0e5da8","wires":[["85badf2d.c6082"]]},{"id":"32dda312.6e155c","type":"other","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1845.88667678833,"y":750.6988115310669,"z":"80a6e568.0e5da8","wires":[["2c481307.70e77c"]]},{"id":"2c481307.70e77c","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":2006.2199058532715,"y":747.6988687515259,"z":"80a6e568.0e5da8","wires":[]},{"id":"f7730dfa.cb9da","type":"switchNode","name":"service-data.network-instance-groups.network-instance-group_length","xml":"<switch test='`$service-data.network-instance-groups.network-instance-group_length`'>\n","comments":"","outputs":1,"x":2341.2955207824707,"y":776.9646863937378,"z":"80a6e568.0e5da8","wires":[["f969191e.dc4358","9055645.3711898"]]},{"id":"f969191e.dc4358","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2700.545211791992,"y":733.9646892547607,"z":"80a6e568.0e5da8","wires":[["c7a778eb.d559b8"]]},{"id":"9055645.3711898","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2680.545211791992,"y":768.9646892547607,"z":"80a6e568.0e5da8","wires":[["b87cee4b.863b4"]]},{"id":"85badf2d.c6082","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1982.3310356140137,"y":784.1433420181274,"z":"80a6e568.0e5da8","wires":[["f7730dfa.cb9da"]]},{"id":"e03d2d36.5854c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":4104.539028167725,"y":712.17529296875,"z":"80a6e568.0e5da8","wires":[["ed256237.0c81b"]]},{"id":"a4fca569.f0ae58","type":"set","name":"set tmp.ngidx and ctx.network-instance-group-data","xml":"<set>\n<parameter name='tmp.ngidx' value='`$ngidx`' />\n<parameter name='ctx.network-instance-group-data.' value='`$service-data.network-instance-groups.network-instance-group[$ngidx].`' />\n","comments":"","x":4547.070995330811,"y":711.9253177642822,"z":"80a6e568.0e5da8","wires":[]},{"id":"ed256237.0c81b","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":4253.157466888428,"y":712.0324783325195,"z":"80a6e568.0e5da8","wires":[["a4fca569.f0ae58"]]},{"id":"9d4c2f6b.f4734","type":"for","name":"for ngidx..service-data.network-instance-groups.network-instance-group[]","xml":"<for index='ngidx' start='0' end='`$service-data.network-instance-groups.network-instance-_length`' >\n","comments":"","outputs":1,"x":3287.4074325561523,"y":772.282265663147,"z":"80a6e568.0e5da8","wires":[["ad2fb3f5.10ea7"]]},{"id":"ad2fb3f5.10ea7","type":"switchNode","name":"switch network-instance-group-id found","xml":"<switch test=\"`$service-data.network-instance-groups.network-instance-group[$nidx].network-instance-group-id == $network-topology-operation-input.network-information.network-instance-group-id`\">\n\n","comments":"","outputs":1,"x":3732.8360290527344,"y":772.032434463501,"z":"80a6e568.0e5da8","wires":[["e03d2d36.5854c"]]},{"id":"b87cee4b.863b4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2899.391311645508,"y":770.1581907272339,"z":"80a6e568.0e5da8","wires":[["9d4c2f6b.f4734"]]},{"id":"c7a778eb.d559b8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"network-topology-operation-input.network-request-input.network-instance-group-id not found in service-data\" />\n","comments":"","x":2892.0948638916016,"y":733.5322561264038,"z":"80a6e568.0e5da8","wires":[]},{"id":"fdbe7b54.ba6eb8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2306.7774391174316,"y":598.7773685455322,"z":"80a6e568.0e5da8","wires":[["56b4c83e.260768"]]},{"id":"56b4c83e.260768","type":"set","name":"set nidx","xml":"<set>\n<parameter name='nidx' value='`$tmp.nidx`' />\n","comments":"","x":2463.7774391174316,"y":599.7773685455322,"z":"80a6e568.0e5da8","wires":[]},{"id":"599829f5.fe5318","type":"switchNode","name":"switch request-action","xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":888.1424369812012,"y":385.48618030548096,"z":"80a6e568.0e5da8","wires":[["745e4395.07016c","b4b906ca.a76a98","6a8588b1.28c6f8","b74257e0.328b38"]]},{"id":"745e4395.07016c","type":"outcome","name":"ActivateDCINetworkInstance","xml":"<outcome value='ActivateDCINetworkInstance'>","comments":"","outputs":1,"x":1184.4756622314453,"y":330.4860095977783,"z":"80a6e568.0e5da8","wires":[["c3247484.e404b8"]]},{"id":"c3247484.e404b8","type":"call","name":"call GENERIC-RESOURCE-API:dci-connects-network-topology-operation-activate","xml":"<call module='GENERIC-RESOURCE-API' rpc='dci-connects-network-topology-operation-activate' mode='sync' >\n","comments":"","outputs":1,"x":1699.4757385253906,"y":330.15284156799316,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"b4b906ca.a76a98","type":"outcome","name":"ActivateNetworkInstance","xml":"<outcome value='ActivateNetworkInstance'>","comments":"","outputs":1,"x":925.4757690429688,"y":435.15276527404785,"z":"80a6e568.0e5da8","wires":[["2bd4ba80.e75566"]]},{"id":"f52c99d4.f263e8","type":"switchNode","name":"switch request-action","xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":892.6979866027832,"y":626.9305610656738,"z":"80a6e568.0e5da8","wires":[["a8816b1b.efa8b8","a0cb33ec.f6704","72a9f23d.3e6b3c","decaee83.88569"]]},{"id":"a8816b1b.efa8b8","type":"outcome","name":"DeactivateSOTNConnectivityInstance","xml":"<outcome value='DeactivateSOTNConnectivityInstance'>","comments":"","outputs":1,"x":1182.4758644104004,"y":571.1526985168457,"z":"80a6e568.0e5da8","wires":[["bd13c97c.012068"]]},{"id":"a0cb33ec.f6704","type":"other","name":"DeActivateNetworkInstance","xml":"<outcome value='DeActivateNetworkInstance'>\n","comments":"","outputs":1,"x":914.9209594726562,"y":717.8443241119385,"z":"80a6e568.0e5da8","wires":[["1a4544f3.56012b"]]},{"id":"bd13c97c.012068","type":"call","name":"call GENERIC-RESOURCE-API:sotn-network-topology-operation-deactivate","xml":"<call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-deactivate' mode='sync' >\n","comments":"","outputs":1,"x":1673.8331298828125,"y":569.436071395874,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"fb2ea25a.4e1a3","type":"other","name":"create","xml":"<outcome value='create'>\n","comments":"","outputs":1,"x":678.3647537231445,"y":966.2641000747681,"z":"80a6e568.0e5da8","wires":[["417a8018.fb8cd"]]},{"id":"417a8018.fb8cd","type":"switchNode","name":"switch request-action","xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":878.6785736083984,"y":966.0417728424072,"z":"80a6e568.0e5da8","wires":[["762f5d11.013634","d7a92705.b48688","666c86f3.535ea8"]]},{"id":"94d29a5d.cac4b8","type":"other","name":"delete","xml":"<outcome value='delete'>\n","comments":"","outputs":1,"x":676.3647575378418,"y":1043.2641038894653,"z":"80a6e568.0e5da8","wires":[["792737be.6931b8"]]},{"id":"792737be.6931b8","type":"switchNode","name":"switch request-action","xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":878.6530151367188,"y":1044.3249044418335,"z":"80a6e568.0e5da8","wires":[["78bf356f.14b20c","e79c5df9.4ad61","cfb392ce.3e4e3"]]},{"id":"6ddb84d.009f17c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1610.4761352539062,"y":1457.1529865264893,"z":"80a6e568.0e5da8","wires":[["20a3fee2.5b03c2"]]},{"id":"71b19a50.ac4be4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1576.9204330444336,"y":1752.708797454834,"z":"80a6e568.0e5da8","wires":[["2106370c.c67988"]]},{"id":"20a3fee2.5b03c2","type":"call","name":"call GENERIC-RESOURCE-API:network-topology-operation-create","xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-create' mode='sync' >\n","comments":"","outputs":1,"x":1976.142578125,"y":1453.5976390838623,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"2106370c.c67988","type":"call","name":"call GENERIC-RESOURCE-API:network-topology-operation-delete","xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-delete' mode='sync' >\n","comments":"","outputs":1,"x":1941.9203567504883,"y":1751.7087259292603,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"762f5d11.013634","type":"outcome","name":"CreateNetworkInstance","xml":"<outcome value='CreateNetworkInstance'>","comments":"","outputs":1,"x":1367.6785888671875,"y":1399.9305057525635,"z":"80a6e568.0e5da8","wires":[["c6a5cf80.707dd"]]},{"id":"d7a92705.b48688","type":"outcome","name":"CreateSOTNConnectivityInstance","xml":"<outcome value='CreateSOTNConnectivityInstance'>","comments":"","outputs":1,"x":1520.345287322998,"y":1303.7084070602432,"z":"80a6e568.0e5da8","wires":[["be1980c7.50887"]]},{"id":"be1980c7.50887","type":"call","name":"call GENERIC-RESOURCE-API:sotn-network-topology-operation-create","xml":"<call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-create' mode='sync' >\n","comments":"","outputs":1,"x":1999.2341041564941,"y":1305.930589334108,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"e79c5df9.4ad61","type":"outcome","name":"DeleteSOTNConnectivityInstance","xml":"<outcome value='DeleteSOTNConnectivityInstance'>","comments":"","outputs":1,"x":1513.7644500732422,"y":1560.88063621521,"z":"80a6e568.0e5da8","wires":[["a98f74f2.03d838"]]},{"id":"a98f74f2.03d838","type":"call","name":"call GENERIC-RESOURCE-API:sotn-network-topology-operation-delete","xml":"<call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-delete' mode='sync' >\n","comments":"","outputs":1,"x":1980.6532669067383,"y":1563.1028184890747,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"78bf356f.14b20c","type":"outcome","name":"DeleteNetworkInstance","xml":"<outcome value='DeleteNetworkInstance'>","comments":"","outputs":1,"x":1385.0975341796875,"y":1678.102746963501,"z":"80a6e568.0e5da8","wires":[["ea3c2545.c978f8"]]},{"id":"6a8588b1.28c6f8","type":"outcome","name":"ActivateSOTNConnectivityInstance","xml":"<outcome value='ActivateSOTNConnectivityInstance'>","comments":"","outputs":1,"x":1204.4757537841797,"y":281.26391792297363,"z":"80a6e568.0e5da8","wires":[["c9521032.0137f"]]},{"id":"c9521032.0137f","type":"call","name":"call GENERIC-RESOURCE-API:sotn-network-topology-operation-activate","xml":"<call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-activate' mode='sync' >\n","comments":"","outputs":1,"x":1658.6979675292969,"y":282.4984493255615,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"72a9f23d.3e6b3c","type":"outcome","name":"DeActivateDCINetworkInstance","xml":"<outcome value='DeActivateDCINetworkInstance'>","comments":"","outputs":1,"x":1162.5764045715332,"y":614.2534980773926,"z":"80a6e568.0e5da8","wires":[["5d9fc0a8.4e2c2"]]},{"id":"5d9fc0a8.4e2c2","type":"call","name":"call GENERIC-RESOURCE-API:dci-connects-network-topology-operation-deactivate","xml":"<call module='GENERIC-RESOURCE-API' rpc='dci-connects-network-topology-operation-deactivate' mode='sync' >\n","comments":"","outputs":1,"x":1702.5767822265625,"y":617.9203090667725,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"b74257e0.328b38","type":"outcome","name":"ActivateSDWANConnectivityInstance","xml":"<outcome value='ActivateSDWANConnectivityInstance'>","comments":"","outputs":1,"x":1206.0208892822266,"y":381.2535228729248,"z":"80a6e568.0e5da8","wires":[["499d4758.1bf988"]]},{"id":"499d4758.1bf988","type":"call","name":"call GENERIC-RESOURCE-API:sdwan-network-topology-operation-activate","xml":"<call module='GENERIC-RESOURCE-API' rpc='sdwan-network-topology-operation-activate' mode='sync' >\n","comments":"","outputs":1,"x":1726.0210876464844,"y":375.92037773132324,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"decaee83.88569","type":"outcome","name":"DeactivateSDWANConnectivityInstance","xml":"<outcome value='DeactivateSDWANConnectivityInstance'>","comments":"","outputs":1,"x":1180.0208435058594,"y":667.2535037994385,"z":"80a6e568.0e5da8","wires":[["ac5242b1.17137"]]},{"id":"ac5242b1.17137","type":"call","name":"call GENERIC-RESOURCE-API:sdwan-network-topology-operation-deactivate","xml":"<call module='GENERIC-RESOURCE-API' rpc='sdwan-network-topology-operation-deactivate' mode='sync' >\n","comments":"","outputs":1,"x":1694.0211181640625,"y":664.920355796814,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"666c86f3.535ea8","type":"outcome","name":"CreateSDWANConnectivityInstance","xml":"<outcome value='CreateSDWANConnectivityInstance'>","comments":"","outputs":1,"x":1526.0208435058594,"y":1352.2535037994385,"z":"80a6e568.0e5da8","wires":[["dd98cd42.78de7"]]},{"id":"dd98cd42.78de7","type":"call","name":"call GENERIC-RESOURCE-API:sdwan-network-topology-operation-create","xml":"<call module='GENERIC-RESOURCE-API' rpc='sdwan-network-topology-operation-create' mode='sync' >\n","comments":"","outputs":1,"x":1969.0210342407227,"y":1349.9203324317932,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"cfb392ce.3e4e3","type":"outcome","name":"DeleteSDWANConnectivityInstance","xml":"<outcome value='DeleteSDWANConnectivityInstance'>","comments":"","outputs":1,"x":1515.020908355713,"y":1611.2536835670471,"z":"80a6e568.0e5da8","wires":[["b90e9666.3ed138"]]},{"id":"b90e9666.3ed138","type":"call","name":"call GENERIC-RESOURCE-API:sdwan-network-topology-operation-delete","xml":"<call module='GENERIC-RESOURCE-API' rpc='sdwan-network-topology-operation-delete' mode='sync' >\n","comments":"","outputs":1,"x":1981.909725189209,"y":1613.4758658409119,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"2bd4ba80.e75566","type":"execute","name":"contains WanConnection","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains'  emitsOutcome='true'>\n    <parameter name=\"source\" value=\"`$network-topology-operation-input.service-information.onap-model-information.model-name`\"/>\n    <parameter name=\"target\" value=\"WanConnection\"/>\n","comments":"","outputs":1,"x":1211.9266891479492,"y":420.2600235939026,"z":"80a6e568.0e5da8","wires":[["7722100f.2b425","ac15ee15.d25c2"]]},{"id":"7722100f.2b425","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1417.926742553711,"y":415.37109565734863,"z":"80a6e568.0e5da8","wires":[["11615b89.4d70b4"]]},{"id":"11615b89.4d70b4","type":"call","name":"call GENERIC-RESOURCE-API:wan-connection-topology-operation-activate","xml":"<call module='GENERIC-RESOURCE-API' rpc='wan-connection-topology-operation-activate' mode='sync' >\n","comments":"","outputs":1,"x":1802.9268417358398,"y":417.37110900878906,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"ac15ee15.d25c2","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":990.1488647460938,"y":482.2599792480469,"z":"80a6e568.0e5da8","wires":[["b2e4fea5.54444"]]},{"id":"1a4544f3.56012b","type":"execute","name":"contains WanConnection","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n    <parameter name=\"source\" value=\"`$network-topology-operation-input.service-information.onap-model-information.model-name`\"/>\n    <parameter name=\"target\" value=\"WanConnection\"/>\n","comments":"","outputs":1,"x":1215.7044677734375,"y":709.4822635650635,"z":"80a6e568.0e5da8","wires":[["1dc12f1.9eafdd1","ef89eb4e.56cf48"]]},{"id":"1dc12f1.9eafdd1","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1428.7046089172363,"y":707.5932693481445,"z":"80a6e568.0e5da8","wires":[["6594f107.4cc8b"]]},{"id":"6594f107.4cc8b","type":"call","name":"call GENERIC-RESOURCE-API:wan-connection-topology-operation-deactivate","xml":"<call module='GENERIC-RESOURCE-API' rpc='wan-connection-topology-operation-deactivate' mode='sync' >\n","comments":"","outputs":1,"x":1794.704574584961,"y":704.5932846069336,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"ef89eb4e.56cf48","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1074.704502105713,"y":771.3711156845093,"z":"80a6e568.0e5da8","wires":[["7f2bbb62.bb09c4"]]},{"id":"c6a5cf80.707dd","type":"execute","name":"contains WanConnection","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n    <parameter name=\"source\" value=\"`$network-topology-operation-input.service-information.onap-model-information.model-name`\"/>\n    <parameter name=\"target\" value=\"WanConnection\"/>\n","comments":"","outputs":1,"x":1625.926742553711,"y":1408.926628112793,"z":"80a6e568.0e5da8","wires":[["1a2a234b.3f1efd","813a7956.407528"]]},{"id":"813a7956.407528","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1432.9266815185547,"y":1455.8156299591064,"z":"80a6e568.0e5da8","wires":[["6ddb84d.009f17c"]]},{"id":"1a2a234b.3f1efd","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1831.926815032959,"y":1401.037685394287,"z":"80a6e568.0e5da8","wires":[["95eed200.11e3f"]]},{"id":"95eed200.11e3f","type":"call","name":"call GENERIC-RESOURCE-API:wan-connection-topology-operation-create","xml":"<call module='GENERIC-RESOURCE-API' rpc='wan-connection-topology-operation-create' mode='sync' >\n","comments":"","outputs":1,"x":2190.926742553711,"y":1402.0377388000488,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"ea3c2545.c978f8","type":"execute","name":"contains WanConnection","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n    <parameter name=\"source\" value=\"`$network-topology-operation-input.service-information.onap-model-information.model-name`\"/>\n    <parameter name=\"target\" value=\"WanConnection\"/>\n","comments":"","outputs":1,"x":1638.59326171875,"y":1680.260009765625,"z":"80a6e568.0e5da8","wires":[["6c1de188.955fc","5eb66ddb.b7cb74"]]},{"id":"5eb66ddb.b7cb74","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1423.593276977539,"y":1756.1489334106445,"z":"80a6e568.0e5da8","wires":[["71b19a50.ac4be4"]]},{"id":"6c1de188.955fc","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1839.593418121338,"y":1679.371042251587,"z":"80a6e568.0e5da8","wires":[["c5bd454e.c33b68"]]},{"id":"c5bd454e.c33b68","type":"call","name":"call GENERIC-RESOURCE-API:wan-connection-topology-operation-deactivate","xml":"<call module='GENERIC-RESOURCE-API' rpc='wan-connection-topology-operation-deactivate' mode='sync' >\n","comments":"","outputs":1,"x":2205.5933837890625,"y":1676.371057510376,"z":"80a6e568.0e5da8","wires":[[]]},{"id":"b33cf1f5.4fe56","type":"set","name":"set network-level-oper-status","xml":"<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />\n","comments":"","x":527.8179206848145,"y":1237.2106924057007,"z":"80a6e568.0e5da8","wires":[]},{"id":"ec24c30a.06547","type":"set","name":"set object-path","xml":"<set>\n<parameter name='network-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/networks/network/'\n + $networkId\n + '/network-data/network-topology/'` \" />\n \n","comments":"","x":485.5322265625,"y":1191.7822189331055,"z":"80a6e568.0e5da8","wires":[]},{"id":"d385fea9.0c9ab","type":"set","name":"set networkId","xml":"<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n","comments":"","x":479.8178596496582,"y":1154.6393270492554,"z":"80a6e568.0e5da8","wires":[]},{"id":"c5b5e6bf.f3e6a8","type":"other","name":"reoptimize","xml":"<outcome value='reoptimize'>\n","comments":"","outputs":1,"x":675.03125,"y":1085.2535037994385,"z":"80a6e568.0e5da8","wires":[["dfda020b.e5eb3"]]},{"id":"dfda020b.e5eb3","type":"switchNode","name":"switch request-action","xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":876.03125,"y":1089.2535037994385,"z":"80a6e568.0e5da8","wires":[["7d1fceb4.2115"]]},{"id":"7d1fceb4.2115","type":"outcome","name":"ReoptimizeSOTNInstance","xml":"<outcome value='ReoptimizeSOTNInstance'>","comments":"","outputs":1,"x":1518.03125,"y":1838.2535037994385,"z":"80a6e568.0e5da8","wires":[["f749fb3c.07f078"]]},{"id":"f749fb3c.07f078","type":"call","name":"call GENERIC-RESOURCE-API:sotn-network-topology-operation-reoptimize","xml":"<call module='GENERIC-RESOURCE-API' rpc='sotn-network-topology-operation-reoptimize' mode='sync' >\n","comments":"","outputs":1,"x":1966.03125,"y":1830.2535037994385,"z":"80a6e568.0e5da8","wires":[[]]}]