diff options
author | Dan Timoney <dt5972@att.com> | 2024-09-19 16:11:05 -0400 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2024-09-19 16:14:36 -0400 |
commit | 885b4e6f6caba1d6db67cb378ecfabd56b6da5be (patch) | |
tree | 70b7407deb16273f284d5f633e208e7de3f8d269 /platform-logic/generic-resource-api/src/main | |
parent | 05a58c8d2f4f9c738938375e6bc521b9679598b0 (diff) |
RFC-8040 migration
Updates to migrate from Biermann draft version of RESTCONF
to RFC 8040 version
Issue-ID: SDNC-1847
Change-Id: I1837fc3613274aa0725f2d170e9346d402189f57
Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'platform-logic/generic-resource-api/src/main')
253 files changed, 711 insertions, 711 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-activate.json index 826a62b6..3fd04704 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-activate.json @@ -95,7 +95,7 @@ "id": "71348154.08357", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology?content=config'` \" />\n\n", "comments": "", "x": 532.9920654296875, "y": 554.3372249603271, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-create.json index d26c5be5..42bc5fab 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-create.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-create.json @@ -1 +1 @@ -[{"id":"73e0c5c4.0e65fc","type":"dgstart","name":"DGSTART","outputs":1,"x":194.75,"y":111.75,"z":"fd8223be.2936e","wires":[["7f1aae85.46fc5"]]},{"id":"7f1aae85.46fc5","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":300.98807525634766,"y":190.45239543914795,"z":"fd8223be.2936e","wires":[["2dca365b.8949fa"]]},{"id":"2dca365b.8949fa","type":"method","name":"api-contrail-route-topology-operation-create","xml":"<method rpc='api-contrail-route-topology-operation-create' mode='sync'>\n","comments":"","outputs":1,"x":279.23817443847656,"y":287.60711765289307,"z":"fd8223be.2936e","wires":[["71de5a8a.06d68c"]]},{"id":"71de5a8a.06d68c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":329.2261848449707,"y":399.273784160614,"z":"fd8223be.2936e","wires":[["37d1d007.e441d","7599d396.fab11c","5487e8c6.2ce188","90603bb4.644bf","bcff5d22.739c18","973bba6f.6e0248","7a30a7f9.6e1ae8","6e678b74.303c34","84c0d39e.e63c5","c015b9b7.736d8","b57c7a1.51b0008","88bf8b92.12a5e","64edc8a3.a7d48","e60b2fce.554fe","e2f5e253.1b2318","6d7d1582.92029c","59f0019d.e27e5","8a4f8bfb.56fa78","416a3007.88306","803a97d9.066c3","724e650c.59b494","7f28e1e1.db86f8","b09a986c.221fa8","5172899d.b7464","e9d9ba39.43f818","3d247334.a1372c","f255c05d.7948a","7213d545.2b0f9c","37ded934.68fab6","4c419af6.dc942c","2e387eee.1a638a","c5de323f.f81938","7cae277d.772588","c3814cf0.0b0738","6c53e4ce.fecfe4","4a08ade2.d13b7c","910ed547.3ffca","948c94af.a879","dfa7d0a5.73fd4","326513f8.a01924","82250dcd.64764","2ed539df.fbd8ce","17c62791.e0bba","1e7787ad.0d68a8","778c350c.8dd8e4","672a2172.2f5058"]]},{"id":"7599d396.fab11c","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":582.0835952758789,"y":4812.631404876709,"z":"fd8223be.2936e","wires":[]},{"id":"37d1d007.e441d","type":"set","name":"set output to caller","xml":"<set>\n<parameter name='cto-api.contrail-route-allotted-instance-id' value='`$tmp.ar.allotted-resource-id`' />\n\n \n","comments":"","x":595.8374938964844,"y":4717.801609992981,"z":"fd8223be.2936e","wires":[]},{"id":"88bf8b92.12a5e","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":711.1708831787109,"y":3266.468216896057,"z":"fd8223be.2936e","wires":[]},{"id":"5487e8c6.2ce188","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology/'` \" />\n\n","comments":"","x":750.0121307373047,"y":1818.3691606521606,"z":"fd8223be.2936e","wires":[]},{"id":"90603bb4.644bf","type":"execute","name":"execute Properties - pull properties file","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":818.9341888427734,"y":1861.9338998794556,"z":"fd8223be.2936e","wires":[[]]},{"id":"973bba6f.6e0248","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":802.1262435913086,"y":2133.828694343567,"z":"fd8223be.2936e","wires":[["ed128194.abfb6","db13b017.ab15b"]]},{"id":"bcff5d22.739c18","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cr-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":792.6722106933594,"y":1905.7197103500366,"z":"fd8223be.2936e","wires":[[]]},{"id":"ed128194.abfb6","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1191.0890617370605,"y":2131.9697785377502,"z":"fd8223be.2936e","wires":[["b5310c26.f565d8"]]},{"id":"c015b9b7.736d8","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cr.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":676.0415382385254,"y":4578.041424751282,"z":"fd8223be.2936e","wires":[["852d43ca.478d68","dc3e6244.b22628","51fd5b3b.c2a0dc"]]},{"id":"852d43ca.478d68","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":943.0162200927734,"y":4609.373085021973,"z":"fd8223be.2936e","wires":[["c445da3e.4e161"]]},{"id":"dc3e6244.b22628","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":937.349609375,"y":4577.87292098999,"z":"fd8223be.2936e","wires":[["c445da3e.4e161"]]},{"id":"b87f121d.e891","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=\"Error updating md-sal for contrail-route-allotted-resource. Parent provided resource rolled back\" />\n","comments":"","x":1279.4329414367676,"y":4623.956533432007,"z":"fd8223be.2936e","wires":[]},{"id":"b5310c26.f565d8","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1320.0890464782715,"y":2128.8030405044556,"z":"fd8223be.2936e","wires":[["efb8d6d3.a0fa4"]]},{"id":"efb8d6d3.a0fa4","type":"switchNode","name":"switch cr length","xml":"<switch test='`$mdsal-ar.contrail-route-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1530.9462890625,"y":2128.4221696853638,"z":"fd8223be.2936e","wires":[["47489607.a87a28"]]},{"id":"47489607.a87a28","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1720.2795944213867,"y":2128.422127723694,"z":"fd8223be.2936e","wires":[["b6498b3f.f4a89"]]},{"id":"e07680f5.890c28","type":"comment","name":"Save consumed-allotted-resources to mdsal","info":"","comments":"","x":693.9935455322266,"y":3937.4700117111206,"z":"fd8223be.2936e","wires":[]},{"id":"d60bc376.6aa18","type":"comment","name":"GET contrail-route-allotted-resource from mdsal","info":"","comments":"","x":823.0888977050781,"y":2081.1362199783325,"z":"fd8223be.2936e","wires":[]},{"id":"7a30a7f9.6e1ae8","type":"set","name":"set ar-request-information","xml":"<set>\n<parameter name='ar-request-information.source' value=\"SDNC\" />\n\n\n","comments":"","x":775.9936828613281,"y":1644.3269243240356,"z":"fd8223be.2936e","wires":[]},{"id":"dd0f18a6.2957a8","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":766.6127777099609,"y":2243.0409364700317,"z":"fd8223be.2936e","wires":[]},{"id":"64edc8a3.a7d48","type":"set","name":"set identifiers in overal structure","xml":"<set>\n<parameter name='ar.allotted-resource-data.contrail-route-topology.allotted-resource-identifiers.' \nvalue=\"`$ar-identifiers.`\" />\n\n\n","comments":"","x":730.3745155334473,"y":2838.7555561065674,"z":"fd8223be.2936e","wires":[]},{"id":"644ccc60.4a1004","type":"set","name":"set ar_name","xml":"<set>\n<parameter name='tmp.ar-name' value='$source-network-name_$cloud-region-id_$source-network-role_$collector-network-role _policy_' />\n","comments":"","x":978.3746719360352,"y":2449.1364755630493,"z":"fd8223be.2936e","wires":[]},{"id":"207be70c.805438","type":"execute","name":"execute SliStringUtils - replace $source-network-name","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$source-network-name\"/>\n <parameter name=\"replacement\" value=\"`$ctotmp.s-l3-network.network-name`\"/>\n\n","comments":"","outputs":1,"x":1103.5179138183594,"y":2489.326988220215,"z":"fd8223be.2936e","wires":[[]]},{"id":"ca12d338.3af09","type":"execute","name":"execute SliStringUtils - replace collector-network-role","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$collector-network-role\"/>\n <parameter name=\"replacement\" value=\"`$cto-api.collector-network-role`\"/>\n\n","comments":"","outputs":1,"x":1091.8511505126953,"y":2588.4696521759033,"z":"fd8223be.2936e","wires":[[]]},{"id":"2ed539df.fbd8ce","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":708.0414085388184,"y":2449.8029142320156,"z":"fd8223be.2936e","wires":[["644ccc60.4a1004","207be70c.805438","ca12d338.3af09","264ea65f.c1daa2","43ac428a.dc5c34","3d9c9398.344a14","9e2a16a6.a13cb8","3f03ddb7.9a84f2","ce6205d7.9406b8"]]},{"id":"264ea65f.c1daa2","type":"set","name":"set identifiers.allotted-resource-name","xml":"<set>\n<parameter name='ar-identifiers.allotted-resource-name' value='`$tmp.ar-name`' />\n","comments":"","x":1043.0412788391113,"y":2736.7553153932095,"z":"fd8223be.2936e","wires":[]},{"id":"e60b2fce.554fe","type":"set","name":"set assignments in overal structure","xml":"<set>\n<parameter name='ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.' \nvalue=\"`$ar-assignments.`\" />\n\n\n","comments":"","x":705.9459533691406,"y":3481.0422582626343,"z":"fd8223be.2936e","wires":[]},{"id":"6d7d1582.92029c","type":"set","name":"set ar-assignments","xml":"<set>\n<parameter name='ar-assignments.source-network.network-id' value=\"`$ctotmp.s-l3-network.network-id` \" />\n<parameter name='ar-assignments.source-network.network-role' value=\"`$cto-api.source-network-role` \" />\n<parameter name='ar-assignments.dest-network.network-id' value=\"`$ctotmp.c-l3-network.network-id` \" />\n<parameter name='ar-assignments.dest-network.network-role' value=\"`$cto-api.collector-network-role` \" />\n\n\n","comments":"","x":686.755500793457,"y":2873.8030004501343,"z":"fd8223be.2936e","wires":[]},{"id":"9e272ec7.04769","type":"for","name":"for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]","xml":"<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n","comments":"","outputs":1,"x":1573.5654296875,"y":4012.374701499939,"z":"fd8223be.2936e","wires":[["2a65ff.8d7fda02"]]},{"id":"6e678b74.303c34","type":"switchNode","name":"switch service-data.consumed-allotted-resources_length","xml":"<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n","comments":"","outputs":1,"x":741.5648803710938,"y":3970.0887699127197,"z":"fd8223be.2936e","wires":[["2ca2838e.661a44","674d770a.b887e"]]},{"id":"2ca2838e.661a44","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1053.707763671875,"y":3972.9461851119995,"z":"fd8223be.2936e","wires":[["5e15905d.5fd038"]]},{"id":"674d770a.b887e","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1041.7077674865723,"y":4015.946186542511,"z":"fd8223be.2936e","wires":[["106d14da.f2f283"]]},{"id":"2a65ff.8d7fda02","type":"switchNode","name":"switch allotted-resource-id","xml":"<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n","comments":"","outputs":1,"x":2003.660629272461,"y":4014.43434381485,"z":"fd8223be.2936e","wires":[["f00c83a.815be"]]},{"id":"f00c83a.815be","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2208.4706268310547,"y":4014.898920059204,"z":"fd8223be.2936e","wires":[["23dd8766.297268"]]},{"id":"106d14da.f2f283","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1201.8348579406738,"y":4014.072163105011,"z":"fd8223be.2936e","wires":[["9e272ec7.04769","b4720284.921fa"]]},{"id":"23dd8766.297268","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2399.2314453125,"y":4014.7560930252075,"z":"fd8223be.2936e","wires":[["48b3fee5.6ccd8","d4e53b54.a15808"]]},{"id":"5e15905d.5fd038","type":"set","name":"set cidx","xml":"<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n","comments":"","x":1212.5647354125977,"y":3972.6602478027344,"z":"fd8223be.2936e","wires":[]},{"id":"48b3fee5.6ccd8","type":"set","name":"set tmp.cidx and ctx.consumed-ar","xml":"<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n<parameter name='ctx.consumed-ar.' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].`' />\n<parameter name='tmp.found-cidx' value='true' />","comments":"","x":2645.088876724243,"y":3971.994129180908,"z":"fd8223be.2936e","wires":[]},{"id":"84c0d39e.e63c5","type":"set","name":"set consumed allotted resources","xml":"<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$tmp.ar.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n","comments":"","x":665.4222869873047,"y":4010.6603050231934,"z":"fd8223be.2936e","wires":[]},{"id":"abf7f200.f83fc8","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":753.5650177001953,"y":1961.9933624267578,"z":"fd8223be.2936e","wires":[]},{"id":"b09a986c.221fa8","type":"set","name":"set ar-assignments","xml":"<set>\n<parameter name='ar-assignments.fq-name' value=\"`$tmp.fq-name` \" />\n\n\n\n","comments":"","x":680.0888290405273,"y":3091.9469709396362,"z":"fd8223be.2936e","wires":[]},{"id":"35bec61.b93bbba","type":"comment","name":"Add AR to md-sal","info":"","comments":"","x":597.3270835876465,"y":4550.89836025238,"z":"fd8223be.2936e","wires":[]},{"id":"b57c7a1.51b0008","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":666.6600646972656,"y":3227.2319765090942,"z":"fd8223be.2936e","wires":[[]]},{"id":"b6498b3f.f4a89","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=\"Error: Existing contrail route allotted resource\" />\n \n","comments":"","x":1900.6075477600098,"y":2126.369183063507,"z":"fd8223be.2936e","wires":[]},{"id":"db13b017.ab15b","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1187.940845489502,"y":2165.3692865371704,"z":"fd8223be.2936e","wires":[["c478d043.0bfbb"]]},{"id":"c478d043.0bfbb","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1322.9407958984375,"y":2166.0357751846313,"z":"fd8223be.2936e","wires":[[]]},{"id":"e2f5e253.1b2318","type":"set","name":"set ar data","xml":"<set>\n<parameter name='ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<!--\n<parameter name='ar.allotted-resource-status.action' value=\"`$contrail-route-topology-operation-input.request-information.request-action` \" />\n<parameter name='ar.allotted-resource-status.rpc-name' value=\"contrail-route-topology-operation\" />\n<parameter name='ar.allotted-resource-status.rpc-action' value=\"`$contrail-route-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$contrail-route-topology-operation-input.request-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$contrail-route-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$contrail-route-topology-operation-input.service-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$contrail-route-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.contrail-route-request-input.' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.` \" />\n-->","comments":"","x":718.2740936279297,"y":2189.702548980713,"z":"fd8223be.2936e","wires":[]},{"id":"43ac428a.dc5c34","type":"execute","name":"execute SliStringUtils - replace $cloud-region-id","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$cloud-region-id\"/>\n <parameter name=\"replacement\" value=\"`$cto-api.cloud-region-id`\"/>\n\n","comments":"","outputs":1,"x":1081.8927841186523,"y":2521.7025747299194,"z":"fd8223be.2936e","wires":[[]]},{"id":"3d9c9398.344a14","type":"execute","name":"execute SliStringUtils - replace $source-network-role","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$source-network-role\"/>\n <parameter name=\"replacement\" value=\"`$cto-api.source-network-role`\"/>\n\n","comments":"","outputs":1,"x":1085.2736053466797,"y":2549.035895347595,"z":"fd8223be.2936e","wires":[[]]},{"id":"3f03ddb7.9a84f2","type":"call","name":"call GENERIC-RESOURCE-API:generate-unique-name","xml":"<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n","comments":"","outputs":1,"x":1101.6071472167969,"y":2696.3691416978836,"z":"fd8223be.2936e","wires":[["b548b1f6.a326a","2e1da622.231e42"]]},{"id":"b548b1f6.a326a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1436.321792602539,"y":2694.2263759970665,"z":"fd8223be.2936e","wires":[["ed374845.ee4bb"]]},{"id":"2e1da622.231e42","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1441.6550369262695,"y":2725.8930765092373,"z":"fd8223be.2936e","wires":[["5f3684b9.b9797c"]]},{"id":"9e2a16a6.a13cb8","type":"set","name":"set variables for generating unique name","xml":"<set>\n<parameter name='generate-unique-name-input.index-table-name' value='CONTRAIL_ROUTE_NAME_INDEX' />\n<parameter name='generate-unique-name-input.index-table-prefix-column' value='contrail_route_name_prefix' />\n<parameter name='generate-unique-name-input.name-table-type' value='CONTRAIL_ROUTE_INSTANCE' />\n<parameter name='generate-unique-name-input.prefix' value=\"`$tmp.ar-name`\" />\n<parameter name='generate-unique-name-input.index-length' value='2' />\n","comments":"","x":1063.2741470336914,"y":2626.035841912031,"z":"fd8223be.2936e","wires":[]},{"id":"5f3684b9.b9797c","type":"set","name":"set tmp.ar-name to generated name","xml":"<set>\n<parameter name='tmp.ar-name' value='`$generate-unique-name-output.generated-name`' />\n","comments":"","x":1688.845199584961,"y":2726.3691568374634,"z":"fd8223be.2936e","wires":[]},{"id":"ed374845.ee4bb","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=\"`$generate-unique-name-output.error-message`\" />\n","comments":"","x":1610.1787147521973,"y":2693.6548896729946,"z":"fd8223be.2936e","wires":[]},{"id":"59f0019d.e27e5","type":"set","name":"set fq_name","xml":"<set>\n<parameter name='tmp.fq-name' value='$defaultDomain.$defaultProject.$sdncNetworkPolicy' />\n","comments":"","x":668.4166259765625,"y":2958.083620071411,"z":"fd8223be.2936e","wires":[]},{"id":"8a4f8bfb.56fa78","type":"execute","name":"execute SliStringUtils - replace $defaultDomain","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.fq-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.fq-name\"/>\n <parameter name=\"target\" value=\"$defaultDomain\"/>\n <parameter name=\"replacement\" value=\"`$cto-api.default-domain`\"/>\n\n","comments":"","outputs":1,"x":775.7500152587891,"y":2988.0835410654545,"z":"fd8223be.2936e","wires":[[]]},{"id":"416a3007.88306","type":"execute","name":"execute SliStringUtils - replace $defaultProject","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.fq-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.fq-name\"/>\n <parameter name=\"target\" value=\"$defaultProject\"/>\n <parameter name=\"replacement\" value=\"`$cto-api.default-project`\"/>\n\n","comments":"","outputs":1,"x":775.7500076293945,"y":3021.417103767395,"z":"fd8223be.2936e","wires":[[]]},{"id":"bd3fa69c.30dc4","type":"comment","name":"generate fqname","info":"","comments":"","x":677.4166717529297,"y":2931.416926383972,"z":"fd8223be.2936e","wires":[]},{"id":"803a97d9.066c3","type":"execute","name":"execute SliStringUtils - replace $sdncNetworkPolicy","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.fq-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.fq-name\"/>\n <parameter name=\"target\" value=\"$sdncNetworkPolicy\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar-name`\"/>\n\n","comments":"","outputs":1,"x":786.7499618530273,"y":3054.749886661768,"z":"fd8223be.2936e","wires":[[]]},{"id":"724e650c.59b494","type":"update","name":"save AAI allotted-resource","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $cto-api.service-type AND\n\t\t\tservice-instance.service-instance-id = $cto-api.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n <parameter name=\"id\" value=\"`$tmp.ar.allotted-resource-id`\" />\n\t<parameter name=\"description\" value=\"`$tmp.ar.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"operational-status\" value=\"out-of-service-path\" />\n\t<parameter name=\"order-status\" value=\"Created\" />","comments":"","outputs":1,"x":658.3690795898438,"y":3697.9887590408325,"z":"fd8223be.2936e","wires":[["1ded98d5.9cb767","26bf7392.67e7a4","e80c53f2.a704a"]]},{"id":"1ded98d5.9cb767","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":907.0357131958008,"y":3670.226936817169,"z":"fd8223be.2936e","wires":[["3b1f3b10.705a0c"]]},{"id":"26bf7392.67e7a4","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":912.345142364502,"y":3705.798354625702,"z":"fd8223be.2936e","wires":[["3b1f3b10.705a0c"]]},{"id":"ce6205d7.9406b8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"tmp.ar-name=\"/>\n<parameter name=\"field3\" value=\"`$tmp.ar-name`\"/>\n<parameter name=\"field4\" value=\"generate-unique-name-input.prefix\" />\n<parameter name=\"field5\" value=\"`$generate-unique-name-input.prefix`\" />","comments":"","outputs":1,"x":954.4739456176758,"y":2661.0359387099743,"z":"fd8223be.2936e","wires":[[]]},{"id":"7f28e1e1.db86f8","type":"execute","name":"generate parent-network url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.network`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-parentnetwork-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$cto-api.parent-service-instance-id`\"/>\n","comments":"","outputs":1,"x":768.2741546630859,"y":2034.7022666931152,"z":"fd8223be.2936e","wires":[[]]},{"id":"c3a420b2.5783a","type":"comment","name":"Update AAI AR","info":"","comments":"","x":614.6166381835938,"y":3656.417206287384,"z":"fd8223be.2936e","wires":[]},{"id":"5172899d.b7464","type":"execute","name":"execute RestApiCallNode - Update parent provided service AR","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n","comments":"","outputs":1,"x":745.6167144775391,"y":4148.750764369965,"z":"fd8223be.2936e","wires":[["e59c42d5.79faf8","422ff4ec.a8a394","e613335b.7c4aa8"]]},{"id":"e59c42d5.79faf8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1066.2580795288086,"y":4197.08226108551,"z":"fd8223be.2936e","wires":[["10882401.6b38ec"]]},{"id":"422ff4ec.a8a394","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1058.9247817993164,"y":4162.249007701874,"z":"fd8223be.2936e","wires":[["10882401.6b38ec"]]},{"id":"e613335b.7c4aa8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1062.674819946289,"y":4132.606112577021,"z":"fd8223be.2936e","wires":[["60a1a7d3.34c4b8"]]},{"id":"60a1a7d3.34c4b8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1204.3307876586914,"y":4128.798281766474,"z":"fd8223be.2936e","wires":[[]]},{"id":"f83ef61.b139408","type":"comment","name":"Put the parent allotted resource in mdsal","info":"","comments":"","x":672.6166801452637,"y":4116.750589847565,"z":"fd8223be.2936e","wires":[]},{"id":"b4720284.921fa","type":"switchNode","name":"switch tmp.found-cidx","xml":"<switch test='`$tmp.found-cidx`'>\n","comments":"","outputs":1,"x":1390.9499244689941,"y":4077.7504601478577,"z":"fd8223be.2936e","wires":[["970f80eb.52fe4"]]},{"id":"970f80eb.52fe4","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1580.949878692627,"y":4077.750397205353,"z":"fd8223be.2936e","wires":[["b15e15ed.cb123"]]},{"id":"b15e15ed.cb123","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1746.949878692627,"y":4077.750397205353,"z":"fd8223be.2936e","wires":[["7f6380dc.838d4"]]},{"id":"7f6380dc.838d4","type":"set","name":"set tmp.cidx ","xml":"<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n","comments":"","x":1992.807207107544,"y":4078.32187128067,"z":"fd8223be.2936e","wires":[]},{"id":"d4e53b54.a15808","type":"break","name":"break","xml":"<break>\n","comments":"","x":2561.9498291015625,"y":4000.7501294612885,"z":"fd8223be.2936e","wires":[]},{"id":"e9d9ba39.43f818","type":"execute","name":"generate parent-ar url - replace service-instance-id","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.parent-provided-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$cto-api.parent-service-instance-id`\"/>\n","comments":"","outputs":1,"x":841.140869140625,"y":1993.369249343872,"z":"fd8223be.2936e","wires":[[]]},{"id":"3d247334.a1372c","type":"execute","name":"generate parent-ar url - replace allotted-resource-id","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.parent-ar-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":829.4740142822266,"y":2278.369143486023,"z":"fd8223be.2936e","wires":[[]]},{"id":"2f969250.766e46","type":"execute","name":"execute RestApiCallNode - Update parent provided service AR","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n","comments":"","outputs":1,"x":1436.4169578552246,"y":4589.750328063965,"z":"fd8223be.2936e","wires":[["cacefbda.c09118","a4a8e124.abfb98","a90079c7.306d8"]]},{"id":"48cc2493.a0fe6c","type":"comment","name":"Rollback parent","info":"","comments":"","x":1280.4168853759766,"y":4559.41695857048,"z":"fd8223be.2936e","wires":[]},{"id":"c445da3e.4e161","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1089.0834884643555,"y":4589.083631515503,"z":"fd8223be.2936e","wires":[["2f969250.766e46","76e9e56c.5f957c"]]},{"id":"cacefbda.c09118","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1807.7250061035156,"y":4650.415294408798,"z":"fd8223be.2936e","wires":[["772f3e20.3729e8"]]},{"id":"a4a8e124.abfb98","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1798.72505569458,"y":4618.915320158005,"z":"fd8223be.2936e","wires":[["772f3e20.3729e8"]]},{"id":"a90079c7.306d8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1802.4750938415527,"y":4589.272425033152,"z":"fd8223be.2936e","wires":[["772f3e20.3729e8"]]},{"id":"772f3e20.3729e8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1944.131061553955,"y":4585.464594222605,"z":"fd8223be.2936e","wires":[[]]},{"id":"f255c05d.7948a","type":"execute","name":"generate network-ar url - replace service-instance-id","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.network-provided-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.network-ar-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n","comments":"","outputs":1,"x":831.2739562988281,"y":2318.368896484375,"z":"fd8223be.2936e","wires":[[]]},{"id":"4bc63892.dc826","type":"comment","name":"allotted resource already exists- no op","info":"","comments":"","x":2516.7498817443848,"y":3931.4163995981216,"z":"fd8223be.2936e","wires":[]},{"id":"80af03e.6ba0e8","type":"comment","name":"Other Rollbacks? ","info":"","comments":"","x":1286.0832328796387,"y":4651.416703224182,"z":"fd8223be.2936e","wires":[]},{"id":"358b2d3.80d5a52","type":"comment","name":"MDSal adaptor only saves consuming service so parent service and AR are done by Rest api calls","info":"","comments":"","x":678.7499389648438,"y":69.74998950958252,"z":"fd8223be.2936e","wires":[]},{"id":"1b0fea44.83ef26","type":"comment","name":"Parameter names","info":"INPUT:\ncto-api.parent-service-instance-id\ncto-api.port-mirror-configuration-instance-id\ncto-api.source-network-role\ncto-api.collector-network-role\ncto-api.default-domain\ncto-api.default-project\ncto-api.cloud-region-id\ncto-api.service-type\nOUTPUT:\ncto-api.contrail-route-allotted-resource-id\n","comments":"","x":425.75,"y":102.75000476837158,"z":"fd8223be.2936e","wires":[]},{"id":"7213d545.2b0f9c","type":"save","name":"Get network from AAI for source network","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"ctotmp.aai.source-network\">\n <parameter name=\"start[0]\" value=\"`'/cloud-infrastructure/cloud-regions/cloud-region/' + $cto-api.cloud-owner + '/' + $cto-api.cloud-region-id`\" />\n <parameter name=\"start_length\" value=\"1\" /> \n <parameter name=\"query\" value=\"`'/query/network-name-fromNetwork-role?networkRole=' + $cto-api.source-network-role`\" /> \n","comments":"","outputs":1,"x":835.4283599853516,"y":476.65470790863037,"z":"fd8223be.2936e","wires":[["f489a184.f63528","90317c35.5ed19"]]},{"id":"f489a184.f63528","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1107.5712089538574,"y":446.6548328399658,"z":"fd8223be.2936e","wires":[["b7191164.dbdd18"]]},{"id":"b7191164.dbdd18","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1276.8093223571777,"y":437.13086891174316,"z":"fd8223be.2936e","wires":[["4e660df0.8c2e1c"]]},{"id":"90317c35.5ed19","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1109.3568572998047,"y":476.71428298950195,"z":"fd8223be.2936e","wires":[["23eddc08.e69244"]]},{"id":"23eddc08.e69244","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1273.6425666809082,"y":475.28576469421387,"z":"fd8223be.2936e","wires":[["7fc789ae.200978"]]},{"id":"2e387eee.1a638a","type":"configure","name":"set default values","xml":"<set>\n<parameter name=\"ctotmp.s-l3-network\" value=\"\" />\n<parameter name=\"ctotmp.num-s-network\" value=\"0\" />\n<parameter name=\"ctotmp.s-network-policy\" value=\"\" />\n<parameter name=\"ctotmp.num-s-np\" value=\"0\" />\n<parameter name=\"ctotmp.c-l3-network\" value=\"\" />\n<parameter name=\"ctotmp.num-c-network\" value=\"0\" />\n<parameter name=\"ctotmp.c-network-policy\" value=\"\" />\n<parameter name=\"ctotmp.num-c-np\" value=\"0\" />\n<parameter name=\"ctotmp.s-network-policy-list_length\" value=\"0\" />\n<parameter name=\"ctotmp.c-network-policy-list_length\" value=\"0\" />\n<parameter name=\"ctotmp.network-policy-id\" value=\"\" />\n<parameter name=\"ctotmp.action\" value=\"create\" />\n","comments":"","outputs":1,"x":774.4165954589844,"y":314.2737703323364,"z":"fd8223be.2936e","wires":[[]]},{"id":"527138b.89bd148","type":"comment","name":"Get l3-network/policy for source network role","info":"","comments":"","x":837.5117034912109,"y":446.65477657318115,"z":"fd8223be.2936e","wires":[]},{"id":"4e660df0.8c2e1c","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=\"API-contrail-route-topology-operation-create: Failed to get source network from aai\" />\n","comments":"","x":1449.4166374206543,"y":439.2737159729004,"z":"fd8223be.2936e","wires":[]},{"id":"7fc789ae.200978","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=\"API-contrail-route-topology-operation-create: Source network not found in AAI\" />\n","comments":"","x":1447.9878578186035,"y":473.5594291687012,"z":"fd8223be.2936e","wires":[]},{"id":"37ded934.68fab6","type":"for","name":"for each src network","xml":"<for index='ctotmp.sidx' start='0' end='`$ctotmp.aai.source-network.results_length`' >\n","comments":"","outputs":1,"x":772.7499237060547,"y":551.416615486145,"z":"fd8223be.2936e","wires":[["b901219f.362c48"]]},{"id":"62ec4e1c.4e5e1","type":"switchNode","name":"check for network-policy","xml":"<switch test='`$ctotmp.aai.source-network.results[$ctotmp.sidx].network-policy.network-policy-id`'>\n","comments":"","outputs":1,"x":1189.4167175292969,"y":551.0831060409546,"z":"fd8223be.2936e","wires":[["82e974a5.880ec","ab575fe2.1a7378"]]},{"id":"82e974a5.880ec","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1379.4165573120117,"y":533.0831651687622,"z":"fd8223be.2936e","wires":[["b8c1cb2a.2baaa"]]},{"id":"ab575fe2.1a7378","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1382.7498397827148,"y":569.5118780136108,"z":"fd8223be.2936e","wires":[["fdc0d899.f8967"]]},{"id":"b8c1cb2a.2baaa","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1541.0832214355469,"y":533.797441482544,"z":"fd8223be.2936e","wires":[[]]},{"id":"fdc0d899.f8967","type":"switchNode","name":"switch network-policy-id","xml":"<switch test='`$ctotmp.aai.source-network.results[$ctotmp.sidx].network-policy.network-policy-id`'>\n","comments":"","outputs":1,"x":1569.416763305664,"y":568.0834722518921,"z":"fd8223be.2936e","wires":[["9a0326c9.066d","f2d265f2.4447a8"]]},{"id":"9a0326c9.066d","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1794.4165344238281,"y":541.4164571762085,"z":"fd8223be.2936e","wires":[["924c99f0.70c"]]},{"id":"f2d265f2.4447a8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1792.7497596740723,"y":569.5117740631104,"z":"fd8223be.2936e","wires":[["d577bcf4.265fc8"]]},{"id":"d577bcf4.265fc8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1957.749843597412,"y":578.0831642150879,"z":"fd8223be.2936e","wires":[["ecf1fa5d.04cc2","cbfccf94.e608c8","400312fa.149e74"]]},{"id":"ecf1fa5d.04cc2","type":"configure","name":"set ctotmp.num-s-np","xml":"<set>\n<parameter name=\"ctotmp.num-s-np\" value=\"`$ctotmp.num-s-np+1`\" />\n","comments":"","outputs":1,"x":2189.9881744384766,"y":569.4641437530518,"z":"fd8223be.2936e","wires":[[]]},{"id":"924c99f0.70c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1962.7498626708984,"y":543.083291053772,"z":"fd8223be.2936e","wires":[[]]},{"id":"5abec00b.b100b","type":"switchNode","name":"check for l3-network","xml":"<switch test='`$ctotmp.aai.source-network.results[$ctotmp.sidx].l3-network.network-id`'>\n","comments":"","outputs":1,"x":1179.416648864746,"y":629.7497749328613,"z":"fd8223be.2936e","wires":[["e1486c36.e9aba8","7fb419d1.9615e8"]]},{"id":"e1486c36.e9aba8","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1386.0831832885742,"y":614.7498550415039,"z":"fd8223be.2936e","wires":[["83b5f616.98f4c"]]},{"id":"7fb419d1.9615e8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1389.4164657592773,"y":652.8451910018921,"z":"fd8223be.2936e","wires":[["1db68be1.b1d39c"]]},{"id":"83b5f616.98f4c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1547.749813079834,"y":615.1308164596558,"z":"fd8223be.2936e","wires":[[]]},{"id":"1db68be1.b1d39c","type":"switchNode","name":"switch network-id","xml":"<switch test='`$ctotmp.aai.source-network.results[$ctotmp.sidx].l3-network.network-id`'>\n","comments":"","outputs":1,"x":1561.083351135254,"y":653.0834550857544,"z":"fd8223be.2936e","wires":[["63feb3f3.840974","5823b7ec.89fb68"]]},{"id":"63feb3f3.840974","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1799.4164924621582,"y":631.4164018630981,"z":"fd8223be.2936e","wires":[["a870e259.8f814"]]},{"id":"5823b7ec.89fb68","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1801.0830917358398,"y":676.1784429550171,"z":"fd8223be.2936e","wires":[["d04fa4d.65ff158"]]},{"id":"d04fa4d.65ff158","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1959.4165344238281,"y":674.7497701644897,"z":"fd8223be.2936e","wires":[["f43dcd75.cd43d8"]]},{"id":"a870e259.8f814","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1969.4164562225342,"y":631.4166040420532,"z":"fd8223be.2936e","wires":[[]]},{"id":"b901219f.362c48","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":977.7498626708984,"y":551.4166040420532,"z":"fd8223be.2936e","wires":[["62ec4e1c.4e5e1","5abec00b.b100b"]]},{"id":"f43dcd75.cd43d8","type":"configure","name":"set s-l3-network and num-s-network","xml":"<set>\n<parameter name=\"ctotmp.s-l3-network.\" value=\"`$ctotmp.aai.source-network.results[$ctotmp.sidx].l3-network.`\" />\n<parameter name=\"ctotmp.num-s-network\" value=\"`$ctotmp.num-s-network+1`\" />\n\n","comments":"","outputs":1,"x":2214.0830078125,"y":673.0832681655884,"z":"fd8223be.2936e","wires":[[]]},{"id":"4c419af6.dc942c","type":"configure","name":"clear internal data","xml":"<set>\n<parameter name=\"ctotmp.\" value=\"\" />\n<parameter name=\"ar-request-information.\" value=\"\" />\n<parameter name=\"ar-created\" value=\"\" />\n<parameter name=\"ar-aai-created\" value=\"\" />\n<parameter name=\"np-aai-created\" value=\"\" />\n<parameter name=\"contrail-created\" value=\"\" />\n","comments":"","outputs":1,"x":771.0833129882812,"y":279.7499985694885,"z":"fd8223be.2936e","wires":[[]]},{"id":"948c94af.a879","type":"set","name":"set ar-contrail-route=request-input","xml":"<set>\n<parameter name='ar-contrail-route-request-input.source-network.network-role' value=\"`$cto-api.source-network-role`\" />\n<parameter name='ar-contrail-route-request-input.source-network.network-id' value=\"`$ctotmp.source-network.network-id`\" />\n<parameter name='ar-contrail-route-request-input.dest-network.network-role' value=\"`$cto-api.collector-network-role`\" />\n<parameter name='ar-contrail-route-request-input.dest-network.network-id' value=\"`$ctotmp.dest-network.network-id`\" />\n\n","comments":"","x":799.4167327880859,"y":1686.7498121261597,"z":"fd8223be.2936e","wires":[]},{"id":"c5de323f.f81938","type":"switchNode","name":"switch num-s-network","xml":"<switch test='`$ctotmp.num-s-network`'>\n","comments":"","outputs":1,"x":774.4166107177734,"y":723.0831327438354,"z":"fd8223be.2936e","wires":[["64a3201b.dafe8","48b7d85e.afa768","ec81d452.09a2b8"]]},{"id":"48b7d85e.afa768","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":971.0833282470703,"y":761.4166269302368,"z":"fd8223be.2936e","wires":[["8202168f.6d8d48"]]},{"id":"64a3201b.dafe8","type":"other","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":971.0832405090332,"y":692.7498483657837,"z":"fd8223be.2936e","wires":[["3828f995.1688fe"]]},{"id":"ec81d452.09a2b8","type":"other","name":"1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":969.4166107177734,"y":728.0831747055054,"z":"fd8223be.2936e","wires":[["7c1e2f87.932f5"]]},{"id":"3828f995.1688fe","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=\"API-contrail-route-topology-operation-create: Source network not found from aai\" />\n","comments":"","x":1134.4165534973145,"y":692.7498826980591,"z":"fd8223be.2936e","wires":[]},{"id":"8202168f.6d8d48","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=\"API-contrail-route-topology-operation-create: Too many networks returned for source network from aai\" />\n","comments":"","x":1130.7498970031738,"y":761.7498617172241,"z":"fd8223be.2936e","wires":[]},{"id":"7c1e2f87.932f5","type":"configure","name":"set source network-id","xml":"<set>\n<parameter name=\"ctotmp.source-network.network-id\" value=\"`$ctotmp.s-l3-network.network-id`\" />\n\n\n","comments":"","outputs":1,"x":1157.75,"y":731.0833024978638,"z":"fd8223be.2936e","wires":[[]]},{"id":"c3814cf0.0b0738","type":"save","name":"Get network from AAI for collector network","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"ctotmp.aai.collector-network\">\n <parameter name=\"start[0]\" value=\"`'/cloud-infrastructure/cloud-regions/cloud-region/' + $cto-api.cloud-owner + '/' + $cto-api.cloud-region-id`\" />\n <parameter name=\"start_length\" value=\"1\" /> \n <parameter name=\"query\" value=\"`'/query/network-name-fromNetwork-role?networkRole=' + $cto-api.collector-network-role`\" /> \n","comments":"","outputs":1,"x":844.4166564941406,"y":864.7499113082886,"z":"fd8223be.2936e","wires":[["bb88165.d1937e8","7f15d0fc.069948"]]},{"id":"bb88165.d1937e8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1116.5595054626465,"y":834.750036239624,"z":"fd8223be.2936e","wires":[["bde8dca0.2e98d"]]},{"id":"bde8dca0.2e98d","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1285.7976188659668,"y":825.2260723114014,"z":"fd8223be.2936e","wires":[["f2f89124.07b14"]]},{"id":"7f15d0fc.069948","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1118.3451538085938,"y":864.8094863891602,"z":"fd8223be.2936e","wires":[["716be41c.d6d394"]]},{"id":"716be41c.d6d394","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1282.6308631896973,"y":863.3809680938721,"z":"fd8223be.2936e","wires":[["ffe76153.cabf68"]]},{"id":"56ea117c.705cb8","type":"comment","name":"Get l3-network/policy for collector network role","info":"","comments":"","x":846.5,"y":834.7499799728394,"z":"fd8223be.2936e","wires":[]},{"id":"f2f89124.07b14","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=\"API-contrail-route-topology-operation-create: Failed to get collector network from aai\" />\n","comments":"","x":1458.4049339294434,"y":827.3689193725586,"z":"fd8223be.2936e","wires":[]},{"id":"ffe76153.cabf68","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=\"API-contrail-route-topology-operation-create: Collector network not found in AAI\" />\n","comments":"","x":1456.9761543273926,"y":861.6546325683594,"z":"fd8223be.2936e","wires":[]},{"id":"7cae277d.772588","type":"for","name":"for each collector network","xml":"<for index='ctotmp.cidx' start='0' end='`$ctotmp.aai.collector-network.results_length`' >\n","comments":"","outputs":1,"x":771.4049072265625,"y":952.5117797851562,"z":"fd8223be.2936e","wires":[["f0662510.4e8fb8"]]},{"id":"230f1cfd.35f71c","type":"switchNode","name":"check for l3-network","xml":"<switch test='`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.network-id`'>\n","comments":"","outputs":1,"x":1208.0716552734375,"y":954.1781616210938,"z":"fd8223be.2936e","wires":[["fbe44b80.49bb3","578fb4d0.480724"]]},{"id":"fbe44b80.49bb3","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1415.0714111328125,"y":953.1783447265625,"z":"fd8223be.2936e","wires":[["b5d85abf.060458"]]},{"id":"578fb4d0.480724","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1418.4046936035156,"y":991.2736806869507,"z":"fd8223be.2936e","wires":[["9d0af548.8c9958"]]},{"id":"9d0af548.8c9958","type":"switchNode","name":"switch network-id","xml":"<switch test='`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.network-id`'>\n","comments":"","outputs":1,"x":1590.0715789794922,"y":991.511944770813,"z":"fd8223be.2936e","wires":[["643bc785.a07d5","a9f3513.8d7ddb"]]},{"id":"643bc785.a07d5","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1777.7381591796875,"y":992.511474609375,"z":"fd8223be.2936e","wires":[["26d45d59.14ab12"]]},{"id":"a9f3513.8d7ddb","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1779.4047584533691,"y":1037.273515701294,"z":"fd8223be.2936e","wires":[["ba7314d9.3de7b8"]]},{"id":"ba7314d9.3de7b8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1937.7382011413574,"y":1035.8448429107666,"z":"fd8223be.2936e","wires":[["fbe27f49.91dd28","94eb59a2.0945b"]]},{"id":"26d45d59.14ab12","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1947.7381229400635,"y":992.5116767883301,"z":"fd8223be.2936e","wires":[[]]},{"id":"f0662510.4e8fb8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":996.7381973266602,"y":952.8450679779053,"z":"fd8223be.2936e","wires":[["230f1cfd.35f71c"]]},{"id":"fbe27f49.91dd28","type":"configure","name":"set c-l3-network and num-c-network","xml":"<set>\n<parameter name=\"ctotmp.c-l3-network.\" value=\"`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.`\" />\n<parameter name=\"ctotmp.num-c-network\" value=\"`$ctotmp.num-c-network+1`\" />\n\n","comments":"","outputs":1,"x":2215.40478515625,"y":999.1783447265625,"z":"fd8223be.2936e","wires":[[]]},{"id":"810fdfd4.2afd5","type":"comment","name":"Do we need to check for > 1","info":"","comments":"","x":791.0833168029785,"y":678.0833911895752,"z":"fd8223be.2936e","wires":[]},{"id":"cbfccf94.e608c8","type":"configure","name":"add s-network-policy-id to list","xml":"<set>\n<parameter name=\"ctotmp.s-network-policy-list[$ctotmp.num-s-np].network-policy-id\" value=\"`$ctotmp.aai.source-network.results[$ctotmp.sidx].network-policy.network-policy-id`\" />\n\n","comments":"","outputs":1,"x":2212.749931335449,"y":543.0833034515381,"z":"fd8223be.2936e","wires":[[]]},{"id":"400312fa.149e74","type":"configure","name":"set s-network-policy-list_length","xml":"<set>\n<parameter name=\"ctotmp.s-network-policy-list_length\" value=\"`$ctotmp.num-s-np`\" />\n","comments":"","outputs":1,"x":2214.4168434143066,"y":604.7499723434448,"z":"fd8223be.2936e","wires":[[]]},{"id":"4a08ade2.d13b7c","type":"for","name":"for each source-network-policy","xml":"<for index='ctotmp.spidx' start='0' end='`$ctotmp.s-network-policy-list_length`' >\n","comments":"","outputs":1,"x":783.0833384394646,"y":1349.749788761139,"z":"fd8223be.2936e","wires":[["6b08e08e.3836b"]]},{"id":"6b08e08e.3836b","type":"for","name":"for each collector-network-policy","xml":"<for index='ctotmp.cpidx' start='0' end='`$ctotmp.c-network-policy-list_length`' >\n","comments":"","outputs":1,"x":1089.7500101923943,"y":1348.0831761360168,"z":"fd8223be.2936e","wires":[["3578a521.ca3c32"]]},{"id":"3578a521.ca3c32","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1348.0832774043083,"y":1348.0831627845764,"z":"fd8223be.2936e","wires":[["3948c7e7.d3adb8"]]},{"id":"1433c949.6a3ddf","type":"comment","name":"Check if the source and collector network tied to same network policy","info":"","comments":"","x":903.0833231806755,"y":1313.083164691925,"z":"fd8223be.2936e","wires":[]},{"id":"6c53e4ce.fecfe4","type":"switchNode","name":"switch num-c-network","xml":"<switch test='`$ctotmp.num-c-network`'>\n","comments":"","outputs":1,"x":768.083273589611,"y":1201.4165048599243,"z":"fd8223be.2936e","wires":[["57594924.deefc8","9e18ade.cd92a5","fdd09fb3.c645a"]]},{"id":"9e18ade.cd92a5","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":964.7499694824219,"y":1239.749945640564,"z":"fd8223be.2936e","wires":[["9edabcd2.3b55a8"]]},{"id":"57594924.deefc8","type":"other","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":966.4165954589844,"y":1176.083170890808,"z":"fd8223be.2936e","wires":[["388cf1b9.8ef3a6"]]},{"id":"fdd09fb3.c645a","type":"other","name":"1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":963.083251953125,"y":1206.4164934158325,"z":"fd8223be.2936e","wires":[["cad12ae1.434178"]]},{"id":"388cf1b9.8ef3a6","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=\"API-contrail-route-topology-operation-create: Collector network not found from aai\" />\n","comments":"","x":1121.7498779296875,"y":1177.083251953125,"z":"fd8223be.2936e","wires":[]},{"id":"9edabcd2.3b55a8","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=\"API-contrail-route-topology-operation-create: Too many networks returned for collector network from aai\" />\n","comments":"","x":1124.4165382385254,"y":1240.0831804275513,"z":"fd8223be.2936e","wires":[]},{"id":"cad12ae1.434178","type":"configure","name":"set collector network-id","xml":"<set>\n<parameter name=\"ctotmp.dest-network.network-id\" value=\"`$ctotmp.c-l3-network.network-id`\" />\n\n\n","comments":"","outputs":1,"x":1151.4166412353516,"y":1208.4166345596313,"z":"fd8223be.2936e","wires":[[]]},{"id":"928568b8.42cae","type":"comment","name":"Do we need to check for > 1","info":"","comments":"","x":786.4167391657829,"y":1163.0834650993347,"z":"fd8223be.2936e","wires":[]},{"id":"3948c7e7.d3adb8","type":"switchNode","name":"switch source policy = collector policy","xml":"<switch test='`$ctotmp.s-network-policy-list[$ctotmp.spidx].network-policy-id == $ctotmp.c-network-policy-list[$ctotmp.cpidx].network-policy-id`'>\n","comments":"","outputs":1,"x":1622.4166259765625,"y":1350.08336353302,"z":"fd8223be.2936e","wires":[["d30cdd30.d5a818"]]},{"id":"4a42aa8b.83e934","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2055.7499771118164,"y":1348.4166588783264,"z":"fd8223be.2936e","wires":[["2e7bff75.08d278","a90dd523.58d14"]]},{"id":"2e7bff75.08d278","type":"configure","name":"set ctotmp.network-policy-id","xml":"<set>\n<parameter name=\"ctotmp.network-policy-id\" value=\"`$ctotmp.s-network-policy-list[$ctotmp.spidx].network-policy-id`\" />\n<parameter name=\"ctotmp.existing-network-policy-found\" value=\"true\" />","comments":"","outputs":1,"x":2310.7499771118164,"y":1348.4166588783264,"z":"fd8223be.2936e","wires":[[]]},{"id":"a90dd523.58d14","type":"break","name":"break","xml":"<break>\n","comments":"","x":2249.083236694336,"y":1425.08340549469,"z":"fd8223be.2936e","wires":[]},{"id":"d30cdd30.d5a818","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1870.7499732971191,"y":1348.4166555404663,"z":"fd8223be.2936e","wires":[["4a42aa8b.83e934"]]},{"id":"fd2ab770.01bd18","type":"comment","name":"if network policy found, get AR and return to calling method","info":"","comments":"","x":876.4166628718376,"y":1458.4165740013123,"z":"fd8223be.2936e","wires":[]},{"id":"910ed547.3ffca","type":"switchNode","name":"switch network-policy-id","xml":"<switch test='`$ctotmp.network-policy-id`'>\n","comments":"","outputs":1,"x":773.0833498835564,"y":1493.0831999778748,"z":"fd8223be.2936e","wires":[["dc9f60fd.a57cb","ef776953.3d7ee8"]]},{"id":"dc9f60fd.a57cb","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":979.7500101923943,"y":1491.4167160987854,"z":"fd8223be.2936e","wires":[["931d7263.438eb"]]},{"id":"ef776953.3d7ee8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":983.0833422541618,"y":1524.7500100135803,"z":"fd8223be.2936e","wires":[["4fb26c91.499a04"]]},{"id":"931d7263.438eb","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1144.7499606013298,"y":1491.4165968894958,"z":"fd8223be.2936e","wires":[[]]},{"id":"4fb26c91.499a04","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1154.749912917614,"y":1524.749927997589,"z":"fd8223be.2936e","wires":[["e80a0448.c77ed"]]},{"id":"e80a0448.c77ed","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=\"existing policy - error\" />\n","comments":"","x":1388.0832964777946,"y":1524.7498869895935,"z":"fd8223be.2936e","wires":[]},{"id":"218546c.191c6ba","type":"comment","name":"Flow to create the allotted resource","info":"","comments":"","x":791.0833129882812,"y":1557.4167375564575,"z":"fd8223be.2936e","wires":[]},{"id":"f542c02a.d7178","type":"comment","name":"Flow to use the existing allotted resource - TBD","info":"","comments":"","x":1467.7498779296875,"y":1409.749927520752,"z":"fd8223be.2936e","wires":[]},{"id":"bbda49e2.2a06b8","type":"comment","name":"Begin setup of new Allotted Resource","info":"","comments":"","x":802.7500457763672,"y":1591.416841506958,"z":"fd8223be.2936e","wires":[]},{"id":"dfa7d0a5.73fd4","type":"set","name":"set ar-identifiers","xml":"<set>\n<parameter name='ar-identifiers.allotted-resource-id' value=\"`$tmp.return.generate-allottedresource-id.id`\" />\n<parameter name='ar-identifiers.allotted-resource-type' value=\"contrail-route\" />\n<parameter name='ar-identifiers.parent-service-instance-id' value=\"`$cto-api.parent-service-instance-id`\" />\n<parameter name='ar-identifiers.consuming-service-instance-id' value=\"`$cto-api.service-instance-id` \" />\n<parameter name=\"tmp.ar.allotted-resource-id\" value=\"`$tmp.return.generate-allottedresource-id.id`\" />\n<parameter name='tmp.ar.allotted-resource-type' value=\"contrail-route\" />\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$cto-api.parent-service-instance-id`\" />\n<!-- <parameter name='tmp.ar.contrail-applied-service-instance-id' value='' /> -->\n","comments":"","x":742.4166717529297,"y":1771.4163599014282,"z":"fd8223be.2936e","wires":[]},{"id":"326513f8.a01924","type":"call","name":"call generate-allottedresource-id","xml":"<call module='GENERIC-RESOURCE-API' rpc='generate-allottedresource-id' mode='sync' >\n","comments":"","outputs":1,"x":793.2258377075195,"y":1723.8451147079468,"z":"fd8223be.2936e","wires":[[]]},{"id":"82250dcd.64764","type":"call","name":"call validate-api-contrail-route-input","xml":"<call module='GENERIC-RESOURCE-API' rpc='validate-api-contrail-route-input' mode='sync' >\n","comments":"","outputs":1,"x":831.0832824707031,"y":346.41666889190674,"z":"fd8223be.2936e","wires":[[]]},{"id":"4b4507fd.641f08","type":"comment","name":"Generate contrail-route-allotted-resource-name","info":"","comments":"","x":806.0833129882812,"y":2394.7499895095825,"z":"fd8223be.2936e","wires":[]},{"id":"dfce0d66.98785","type":"execute","name":"execute Contrail API create network policy","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='network-policy' />\n<parameter name='api-action' value='create' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='default-domain' value='`$cto-api.default-domain`' />\n<parameter name='policy-name' value='`$tmp.fq-name`' />\n<parameter name='default-project' value='`$cto-api.default-project`' /> \n<!-- <parameter name='vipr-service-instance' value='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.contrail-applied-service.contrail-fqdn`' /> -->\n<parameter name='dst-virtual-network' value='`$ctotmp.c-l3-network.contrail-network-fqdn`' />\n<parameter name='src-virtual-network' value='`$ctotmp.s-l3-network.contrail-network-fqdn`' />\n<parameter name='direction' value='<>' />\n<parameter name='cloud-region-id' value='`$cto-api.cloud-region-id`' />\n\n","comments":"","outputs":1,"x":1486.0832824707031,"y":3370.1665449142456,"z":"fd8223be.2936e","wires":[["92f7cb34.8d741","f883d241.386fa8"]]},{"id":"92f7cb34.8d741","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1767.464126586914,"y":3339.5587922669947,"z":"fd8223be.2936e","wires":[["76c29cb0.6bee94"]]},{"id":"f883d241.386fa8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1765.5594482421875,"y":3372.558732032776,"z":"fd8223be.2936e","wires":[["bc08711f.026b2"]]},{"id":"bc08711f.026b2","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=\"`'Failed to create policy in Contrail. '+ $contrailResp.resp-code + ':' +$contrailResp.resp-message `\" />\n","comments":"","x":1925.464256286621,"y":3371.8921794891357,"z":"fd8223be.2936e","wires":[]},{"id":"22859f1a.190d08","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.api-contrail-route-topology-operation-create\"/>\n<parameter name='field3' value='network-policy' />\n<parameter name='field4' value='create' />\n<parameter name='field5' value='contrailResp' />\n<parameter name='field6' value='`$cto-api.default-domain`' />\n<parameter name='field7' value='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.fq-name`' />\n<parameter name='field8' value='`$cto-api.default-project`' />\n<parameter name='field9' value='`$ctotmp.c-l3-network.contrail-network-fqdn`' />\n<parameter name='field10' value='`$ctotmp.s-l3-network.contrail-network-fqdn`' />\n<parameter name='field11' value='<>' />\n<parameter name='field12' value='`$cto-api.cloud-region-id`' />\n\n\n\n","comments":"","outputs":1,"x":1374.1784362792969,"y":3341.177879333496,"z":"fd8223be.2936e","wires":[[]]},{"id":"76c29cb0.6bee94","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1919.6546096801758,"y":3340.225517272949,"z":"fd8223be.2936e","wires":[["ec5e5cc0.84dc"]]},{"id":"b797c1f1.3a6cd","type":"comment","name":"Create contrail network policy","info":"","comments":"","x":1439.416618347168,"y":3303.083293914795,"z":"fd8223be.2936e","wires":[]},{"id":"d9ba8a84.a48ee8","type":"set","name":"set ar-assignments.contrail-id","xml":"<set>\n<parameter name='ar-assignments.contrail-id' value=\"`$contrailResp.network-policy.uuid`\" />\n\n\n\n","comments":"","x":1444.7498779296875,"y":3401.7499895095825,"z":"fd8223be.2936e","wires":[]},{"id":"17c62791.e0bba","type":"switchNode","name":"switch cto-api.isTest","xml":"<switch test='`$cto-api.isTest`'>\n","comments":"","outputs":1,"x":682.7500076293945,"y":3339.749550819397,"z":"fd8223be.2936e","wires":[["7f3a60.3bfda5a","21cedbd5.f69f9c","71aa4797.6d83f8"]]},{"id":"7f3a60.3bfda5a","type":"outcome","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":882.7500534057617,"y":3343.083215713501,"z":"fd8223be.2936e","wires":[["4847b370.9b6efc"]]},{"id":"21cedbd5.f69f9c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":881.0833435058594,"y":3379.7496404647827,"z":"fd8223be.2936e","wires":[["cea0da6e.4187f8"]]},{"id":"71aa4797.6d83f8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":887.7500343322754,"y":3418.08305644989,"z":"fd8223be.2936e","wires":[["4847b370.9b6efc"]]},{"id":"4847b370.9b6efc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1101.083251953125,"y":3343.0832414627075,"z":"fd8223be.2936e","wires":[["22859f1a.190d08","dfce0d66.98785","d9ba8a84.a48ee8"]]},{"id":"7fc0fc65.5a5e64","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.api-contrail-route-topology-operation-create\"/>\n<parameter name='field3' value='network-policy' />\n<parameter name='field4' value='TESTcreate' />\n<parameter name='field5' value='contrailResp' />\n<parameter name='field6' value='`$cto-api.default-domain`' />\n<parameter name='field7' value='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.fq-name`' />\n<parameter name='field8' value='`$cto-api.default-project`' />\n<parameter name='field10' value='`$ctotmp.c-l3-network.contrail-network-fqdn`' />\n<parameter name='field11' value='`$ctotmp.s-l3-network.contrail-network-fqdn`' />\n<parameter name='field12' value='<>' />\n<parameter name='field13' value='`$cto-api.cloud-region-id`' />\n\n\n\n","comments":"","outputs":1,"x":1380.5117874145508,"y":3441.8444213867188,"z":"fd8223be.2936e","wires":[[]]},{"id":"81e3b72c.ed4c2","type":"set","name":"set ar-assignments.contrail-id","xml":"<set>\n<parameter name='ar-assignments.contrail-id' value=\"dummy12345\" />\n\n\n\n","comments":"","x":1447.7498779296875,"y":3476.7497453689575,"z":"fd8223be.2936e","wires":[]},{"id":"cea0da6e.4187f8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1100.083251953125,"y":3439.0832414627075,"z":"fd8223be.2936e","wires":[["7fc0fc65.5a5e64","81e3b72c.ed4c2"]]},{"id":"e040148a.f082c","type":"comment","name":"Create network policy in AAI","info":"","comments":"","x":662.7499747872353,"y":3536.4164934158325,"z":"fd8223be.2936e","wires":[]},{"id":"1e7787ad.0d68a8","type":"save","name":"save AnAI - network-policy","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\" \n\t\tkey=\"network-policy.network-policy-id = $ar-assignments.contrail-id\" >\n<!-- Create network-policy object -->\n<parameter name=\"network-policy-id\" value=\"`$ar-assignments.contrail-id`\" />\n<parameter name=\"network-policy-fqdn\" value=\"`$ar-assignments.fq-name`\" />\n\n\n","comments":"","outputs":1,"x":669.7935333251953,"y":3571.817353248596,"z":"fd8223be.2936e","wires":[["fcabb970.d046e","fb253b0.c7b5ec8","ec0a2bbf.24a89"]]},{"id":"fcabb970.d046e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":921.9009757637978,"y":3562.781409263611,"z":"fd8223be.2936e","wires":[["2e92d1d0.b575ce"]]},{"id":"fb253b0.c7b5ec8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":925.7104735970497,"y":3592.2578258514404,"z":"fd8223be.2936e","wires":[["2e92d1d0.b575ce"]]},{"id":"3b1f3b10.705a0c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1117.4166259765625,"y":3677.4164934158325,"z":"fd8223be.2936e","wires":[["975d575f.5bd068","76e9e56c.5f957c"]]},{"id":"e4cbef08.1b2cb8","type":"comment","name":"DESCOPED: CR177011 - network policy - set relationship to collector service instance -id","info":"","comments":"","x":830.75,"y":3773.749755859375,"z":"fd8223be.2936e","wires":[]},{"id":"1efde37a.eba0f5","type":"save","name":"save AnAI - network-policy relationship to service instances","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy:relationship-list\" \n\tkey=\"network-policy.network-policy-id = $ar-assignments.contrail-id\" >\n\t\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"service-instance\" />\n\t\t<parameter name=\"relationship-list.relationship[0].related-link\"\n\t\t\tvalue=\"`'/aai/v$/business/customers/customer/' + $service-data.service-information.global-customer-id + '/service-subscriptions/service-subscription/' + $cto-api.service-type + '/service-instances/service-instance/' + $collector-service-instance-id`\" />\n \n \n\n","comments":"","outputs":1,"x":762.1268920898438,"y":3814.8171281814575,"z":"fd8223be.2936e","wires":[["b76203a8.07925","5b1ac74f.e6a31"]]},{"id":"b76203a8.07925","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1214.9010009765625,"y":3814.1149797439575,"z":"fd8223be.2936e","wires":[["76ce4e27.d59ec8"]]},{"id":"5b1ac74f.e6a31","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1218.7104988098145,"y":3842.591396331787,"z":"fd8223be.2936e","wires":[["76ce4e27.d59ec8"]]},{"id":"778c350c.8dd8e4","type":"set","name":"Clear tmp data","xml":"<set>\n<parameter name='ctotmp.' value='' />\n\n \n","comments":"","x":591.0833129882812,"y":4748.083022117615,"z":"fd8223be.2936e","wires":[]},{"id":"672a2172.2f5058","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.api-contrail-route-topology-operation-create\"/>\n<parameter name='field3' value='cto-api.parent-service-instance-id' />\n<parameter name='field4' value='`$cto-api.parent-service-instance-id`' />\n<parameter name='field5' value='cto-api.default-domain' />\n<parameter name='field6' value='`$cto-api.default-domain`' />\n<parameter name='field7' value='cto-api.port-mirror-configuration-instance-id' />\n<parameter name='field8' value='`$cto-api.port-mirror-configuration-instance-id`' />\n<parameter name='field9' value='cto-api.service-type' />\n<parameter name='field10' value='`$cto-api.service-type`' />\n<parameter name='field11' value='cto-api.source-network-role' />\n<parameter name='field12' value='`$cto-api.source-network-fole`' />\n<parameter name='field13' value='cto-api.collector-network-role' />\n<parameter name='field14' value='`$cto-api.collector-network-4ole`' />\n<parameter name='field15' value='cto-api.default-project' />\n<parameter name='field16' value='`$cto-api.default-project`' />\n<parameter name='field17' value='cto-api.cloud-region-id' />\n<parameter name='field18' value='`$cto-api.cloud-region-id`' />\n<parameter name='field19' value='cto-api.cloud-owner' />\n<parameter name='field20' value='`$cto-api.cloud-owner`' />\n<parameter name='field21' value='cto-api.isTest' />\n<parameter name='field22' value='`$cto-api.isTest`' />\n<parameter name='field23' value='cto-api.owning-entity' />\n<parameter name='field24' value='`$cto-api.owning-entity`' />\n","comments":"","outputs":1,"x":738.1785659790039,"y":249.4642686843872,"z":"fd8223be.2936e","wires":[[]]},{"id":"76ce4e27.d59ec8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1412.75,"y":3818.7499895095825,"z":"fd8223be.2936e","wires":[["890d32.ed09ead","76e9e56c.5f957c"]]},{"id":"4d7901ed.ca6fb8","type":"update","name":"delete AAI allotted-resource","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $cto-api.contrail-route-allotted-resource-id\">\n\n","comments":"","outputs":1,"x":1799.5,"y":5123.9999895095825,"z":"fd8223be.2936e","wires":[["dc1a9d38.d97ca","531a6c1a.e19374"]]},{"id":"dc1a9d38.d97ca","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2053.1508026123047,"y":5102.460497379303,"z":"fd8223be.2936e","wires":[[]]},{"id":"531a6c1a.e19374","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2058.460231781006,"y":5138.031915187836,"z":"fd8223be.2936e","wires":[[]]},{"id":"139d91c1.e6a6be","type":"comment","name":"Update AAI AR","info":"","comments":"","x":1760.7317276000977,"y":5088.650766849518,"z":"fd8223be.2936e","wires":[]},{"id":"ec5f0e07.a1f8c8","type":"save","name":"delete AnAI - network-policy","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\" \n\t\tkey=\"network-policy.network-policy-id = $ar-assignments.contrail-id\" >\n\n\n\n","comments":"","outputs":1,"x":1793.5,"y":4924.2499895095825,"z":"fd8223be.2936e","wires":[["b7a00272.5b5f","c5732bd5.d065d"]]},{"id":"b7a00272.5b5f","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2040.750072479248,"y":4894.750135421753,"z":"fd8223be.2936e","wires":[[]]},{"id":"c5732bd5.d065d","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2044.5595703125,"y":4924.2265520095825,"z":"fd8223be.2936e","wires":[[]]},{"id":"651e0a3a.ba13e4","type":"comment","name":"Call contrail api here","info":"","comments":"","x":1771.2500228881836,"y":4980.7500931322575,"z":"fd8223be.2936e","wires":[]},{"id":"b22dc036.227bf8","type":"execute","name":"execute Contrail API delete network policy","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='network-policy' />\n<parameter name='api-action' value='delete' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='cloud-region-id' value='`$cto-api.cloud-region-id`' />\n<parameter name='default-project' value='`$cto-api.default-project`' />\n<parameter name='default-domain' value='`$cto-api.default-domain`' />\n<parameter name='contrail-network-policy-id' value='`$ar-assignments.contrail-id`' />\n\n","comments":"","outputs":1,"x":1843.2579345703125,"y":5012.7265520095825,"z":"fd8223be.2936e","wires":[["6ac63408.baa50c","d216f91d.6fa1a8","6b2140a3.641028"]]},{"id":"6ac63408.baa50c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2144.638885498047,"y":4978.7577374614775,"z":"fd8223be.2936e","wires":[[]]},{"id":"d216f91d.6fa1a8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2146.067543029785,"y":5049.535438209772,"z":"fd8223be.2936e","wires":[[]]},{"id":"6b2140a3.641028","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2147.3531646728516,"y":5011.639142662287,"z":"fd8223be.2936e","wires":[[]]},{"id":"48bf8bcb.6c23b4","type":"comment","name":"Consilidate the rollback","info":"","comments":"","x":1194.75,"y":4811.4999895095825,"z":"fd8223be.2936e","wires":[]},{"id":"975d575f.5bd068","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 save allotted resource in AAI\"/>","comments":"","x":1338.75,"y":3677.7499895095825,"z":"fd8223be.2936e","wires":[]},{"id":"76e9e56c.5f957c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":870.75,"y":4972.2499895095825,"z":"fd8223be.2936e","wires":[["908cdbbc.fcfad","f0f708f9.48ace8","be261c82.caf37","ea1c5d0f.4a65f8","fcc7ec18.4965b","8e7b341.ec30848"]]},{"id":"908cdbbc.fcfad","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 creating contrail route - ' + $tmp.error-message`\"/>","comments":"","x":1170.75,"y":5294.7499895095825,"z":"fd8223be.2936e","wires":[]},{"id":"6506a4f5.c15bac","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 save network-policy in AAI\"/>","comments":"","x":1346.75,"y":3566.2499895095825,"z":"fd8223be.2936e","wires":[]},{"id":"2e92d1d0.b575ce","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1106.75,"y":3565.2499895095825,"z":"fd8223be.2936e","wires":[["6506a4f5.c15bac","76e9e56c.5f957c"]]},{"id":"f0f708f9.48ace8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"ROLLING BACK the create due to error\"/>\n","comments":"","outputs":1,"x":1157.75,"y":4845.4999895095825,"z":"fd8223be.2936e","wires":[[]]},{"id":"ec5e5cc0.84dc","type":"set","name":"set contrail-created - true","xml":"<set>\n<parameter name=\"contrail-created\" value=\"true\" />","comments":"","x":2124,"y":3339.4999895095825,"z":"fd8223be.2936e","wires":[]},{"id":"7803f431.03b724","type":"set","name":"set np-aai-created - true","xml":"<set>\n<parameter name=\"np-aai-created\" value=\"\" />\n","comments":"","x":1289,"y":3529.4999895095825,"z":"fd8223be.2936e","wires":[]},{"id":"ec0a2bbf.24a89","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":927,"y":3528.4999895095825,"z":"fd8223be.2936e","wires":[["2f05fc17.424bb4"]]},{"id":"2f05fc17.424bb4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1086,"y":3529.4999895095825,"z":"fd8223be.2936e","wires":[["7803f431.03b724"]]},{"id":"1fca8b85.38bd4c","type":"set","name":"set ar-aai-created - true","xml":"<set>\n<parameter name=\"ar-aai-created\" value=\"\" />","comments":"","x":1277,"y":3636.4999895095825,"z":"fd8223be.2936e","wires":[]},{"id":"e80c53f2.a704a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":915,"y":3635.4999895095825,"z":"fd8223be.2936e","wires":[["146837ae.85637"]]},{"id":"146837ae.85637","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1074,"y":3636.4999895095825,"z":"fd8223be.2936e","wires":[["1fca8b85.38bd4c"]]},{"id":"116fe1e8.80164e","type":"set","name":"set ar-created - true","xml":"<set>\n<parameter name=\"ar-created\" value=\"true\" />","comments":"","x":1306,"y":4539.4999895095825,"z":"fd8223be.2936e","wires":[]},{"id":"51fd5b3b.c2a0dc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":944,"y":4538.4999895095825,"z":"fd8223be.2936e","wires":[["322e5dfb.34bfe2"]]},{"id":"322e5dfb.34bfe2","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1103,"y":4539.4999895095825,"z":"fd8223be.2936e","wires":[["116fe1e8.80164e"]]},{"id":"be261c82.caf37","type":"switchNode","name":"switch np-aai-created","xml":"<switch test='`$np-aai-created`'>\n","comments":"","outputs":1,"x":1204.75,"y":4888.4999895095825,"z":"fd8223be.2936e","wires":[["8c52ad11.a1c0e","9040dc3c.a5a528"]]},{"id":"8c52ad11.a1c0e","type":"outcome","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1404.7500457763672,"y":4891.8336544036865,"z":"fd8223be.2936e","wires":[[]]},{"id":"9040dc3c.a5a528","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1407.0833740234375,"y":4926.4999895095825,"z":"fd8223be.2936e","wires":[["9c1b45b6.b3144"]]},{"id":"9c1b45b6.b3144","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1573.083251953125,"y":4924.8334856033325,"z":"fd8223be.2936e","wires":[["ec5f0e07.a1f8c8"]]},{"id":"ea1c5d0f.4a65f8","type":"switchNode","name":"switch contrail-created","xml":"<switch test='`$contrail-created`'>\n","comments":"","outputs":1,"x":1200.25,"y":4977.9999895095825,"z":"fd8223be.2936e","wires":[["b2997208.7a8af","607d5a5a.f07054"]]},{"id":"b2997208.7a8af","type":"outcome","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1400.2500457763672,"y":4981.3336544036865,"z":"fd8223be.2936e","wires":[[]]},{"id":"607d5a5a.f07054","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1402.5833740234375,"y":5015.9999895095825,"z":"fd8223be.2936e","wires":[["acea7ab2.ddb138"]]},{"id":"acea7ab2.ddb138","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1568.583251953125,"y":5014.3334856033325,"z":"fd8223be.2936e","wires":[["b22dc036.227bf8"]]},{"id":"fcc7ec18.4965b","type":"switchNode","name":"switch ar-aai-created","xml":"<switch test='`$ar-aai-created`'>\n","comments":"","outputs":1,"x":1198,"y":5087.7499895095825,"z":"fd8223be.2936e","wires":[["eada59bc.798f18","fb9f19d2.609ec8"]]},{"id":"eada59bc.798f18","type":"outcome","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1398.0000457763672,"y":5091.0836544036865,"z":"fd8223be.2936e","wires":[[]]},{"id":"fb9f19d2.609ec8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1400.3333740234375,"y":5125.7499895095825,"z":"fd8223be.2936e","wires":[["2cd682e1.7c396e"]]},{"id":"2cd682e1.7c396e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1566.333251953125,"y":5124.0834856033325,"z":"fd8223be.2936e","wires":[["4d7901ed.ca6fb8"]]},{"id":"8e7b341.ec30848","type":"switchNode","name":"switch ar-created","xml":"<switch test='`$ar-created`'>\n","comments":"","outputs":1,"x":1201.25,"y":5203.4999895095825,"z":"fd8223be.2936e","wires":[["8b1db97b.6e8948","e4b97998.57d95"]]},{"id":"8b1db97b.6e8948","type":"outcome","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1401.2500457763672,"y":5206.8336544036865,"z":"fd8223be.2936e","wires":[[]]},{"id":"e4b97998.57d95","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1403.5833740234375,"y":5241.4999895095825,"z":"fd8223be.2936e","wires":[["a6a522a1.9de19"]]},{"id":"a6a522a1.9de19","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1569.583251953125,"y":5239.8334856033325,"z":"fd8223be.2936e","wires":[["7c35b738.cd6098"]]},{"id":"7c35b738.cd6098","type":"execute","name":"execute RestApiCallNode - DELETE AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cr.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":1839.5,"y":5236.2499895095825,"z":"fd8223be.2936e","wires":[["86fb884b.0720f","31a6b86d.d51c48"]]},{"id":"86fb884b.0720f","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2116.5,"y":5235.2499895095825,"z":"fd8223be.2936e","wires":[[]]},{"id":"31a6b86d.d51c48","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2121.809429168701,"y":5270.821407318115,"z":"fd8223be.2936e","wires":[[]]},{"id":"890d32.ed09ead","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 save network policy relationship to port mirror service and parent service in AAI\"/>","comments":"","x":1638,"y":3818.2499895095825,"z":"fd8223be.2936e","wires":[]},{"id":"9703e7ab.bcf26","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=\"Error updating md-sal for contrail-route-allotted-resource\"/>","comments":"","x":1410,"y":4176.7499895095825,"z":"fd8223be.2936e","wires":[]},{"id":"10882401.6b38ec","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1210,"y":4178.7499895095825,"z":"fd8223be.2936e","wires":[["9703e7ab.bcf26","76e9e56c.5f957c"]]},{"id":"b5d85abf.060458","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=\"API-contrail-route-topology-operation-create: Collector network not found from aai\" />\n","comments":"","x":1583.75,"y":952.75,"z":"fd8223be.2936e","wires":[]},{"id":"94eb59a2.0945b","type":"for","name":"for each relationship","xml":"<for index='ridx' start='0' end='`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.relationship-list.relationship_length`' >\n","comments":"","outputs":1,"x":2166.5,"y":1038.75,"z":"fd8223be.2936e","wires":[["9b2fcf60.76ea18"]]},{"id":"9b2fcf60.76ea18","type":"switchNode","name":"switch related-to","xml":"<switch test='`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.relationship-list.relationship[$ridx].related-to`'>\n","comments":"","outputs":1,"x":2381.178466796875,"y":1038.4998779296875,"z":"fd8223be.2936e","wires":[["347998a7.5c8ed","cb6fc427.9ea1d8"]]},{"id":"347998a7.5c8ed","type":"outcome","name":"service-instance","xml":"<outcome value='service-instance'>\n","comments":"","outputs":1,"x":2574.642822265625,"y":1037.8927612304688,"z":"fd8223be.2936e","wires":[["fee79290.82309"]]},{"id":"fee79290.82309","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2753.40478515625,"y":1038.9880981445312,"z":"fd8223be.2936e","wires":[["e5e787d0.c4657"]]},{"id":"4f621b29.09adec","type":"configure","name":"set collector service instance id","xml":"<set>\n<parameter name=\"collector-service-instance-id\" value=\"`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-value`\" />\n\n","comments":"","outputs":1,"x":3965.25,"y":1037.7499389648438,"z":"fd8223be.2936e","wires":[[]]},{"id":"e5e787d0.c4657","type":"for","name":"for each relationship data","xml":"<for index='rdidx' start='0' end='`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.relationship-list.relationship[$ridx].relationship-data_length`' >\n","comments":"","outputs":1,"x":2969.75,"y":1038,"z":"fd8223be.2936e","wires":[["393822bb.644d6e"]]},{"id":"393822bb.644d6e","type":"switchNode","name":"switch relationship-key","xml":"<switch test='`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-key`'>\n","comments":"","outputs":1,"x":3205.428466796875,"y":1037.7498779296875,"z":"fd8223be.2936e","wires":[["7c9ef3ae.b747f4"]]},{"id":"7c9ef3ae.b747f4","type":"outcome","name":"service-instance.service-instance-id","xml":"<outcome value='service-instance.service-instance-id'>\n","comments":"","outputs":1,"x":3484.892822265625,"y":1037.142822265625,"z":"fd8223be.2936e","wires":[["f1dcb03d.c2cd4"]]},{"id":"f1dcb03d.c2cd4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3727.65478515625,"y":1038.238037109375,"z":"fd8223be.2936e","wires":[["4f621b29.09adec"]]},{"id":"cb6fc427.9ea1d8","type":"outcome","name":"network-policy","xml":"<outcome value='network-policy'>\n","comments":"","outputs":1,"x":2580.5,"y":1101.25,"z":"fd8223be.2936e","wires":[["48d9f017.24fff8"]]},{"id":"48d9f017.24fff8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2759.261962890625,"y":1102.3453369140625,"z":"fd8223be.2936e","wires":[["40c1b7bc.2f5e88"]]},{"id":"40c1b7bc.2f5e88","type":"for","name":"for each relationship data","xml":"<for index='rdidx' start='0' end='`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.relationship-list.relationship[$ridx].relationship-data_length`' >\n","comments":"","outputs":1,"x":2975.607177734375,"y":1101.3572387695312,"z":"fd8223be.2936e","wires":[["163ead0a.7302ab"]]},{"id":"163ead0a.7302ab","type":"switchNode","name":"switch relationship-key","xml":"<switch test='`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-key`'>\n","comments":"","outputs":1,"x":3211.28564453125,"y":1101.1071166992188,"z":"fd8223be.2936e","wires":[["b60cc617.96d9f"]]},{"id":"b60cc617.96d9f","type":"outcome","name":"network-policy.network-policy-id","xml":"<outcome value='network-policy.network-policy-id'>\n","comments":"","outputs":1,"x":3490.75,"y":1100.5000610351562,"z":"fd8223be.2936e","wires":[["a3b2831.7275e"]]},{"id":"a3b2831.7275e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3733.511962890625,"y":1101.5952758789062,"z":"fd8223be.2936e","wires":[["902a0d6f.7b879","504ee0c3.1648b8","205a6ec0.806dea"]]},{"id":"504ee0c3.1648b8","type":"configure","name":"set ctotmp.num-c-np","xml":"<set>\n<parameter name=\"ctotmp.num-c-np\" value=\"`$ctotmp.num-c-np+1`\" />\n","comments":"","outputs":1,"x":3966.5,"y":1127.25,"z":"fd8223be.2936e","wires":[[]]},{"id":"902a0d6f.7b879","type":"configure","name":"add c-network-policy-id to list","xml":"<set>\n<parameter name=\"ctotmp.c-network-policy-list[$ctotmp.num-c-np].network-policy-id\" value=\"`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-value`\" />\n\n","comments":"","outputs":1,"x":3989.2617568969727,"y":1100.8691596984863,"z":"fd8223be.2936e","wires":[[]]},{"id":"205a6ec0.806dea","type":"configure","name":"set c-network-policy-list_length","xml":"<set>\n<parameter name=\"ctotmp.c-network-policy-list_length\" value=\"`$ctotmp.num-c-np`\" />\n","comments":"","outputs":1,"x":3991.9286403656006,"y":1164.5358610153198,"z":"fd8223be.2936e","wires":[[]]}]
\ No newline at end of file +[{"id":"73e0c5c4.0e65fc","type":"dgstart","name":"DGSTART","outputs":1,"x":194.75,"y":111.75,"z":"fd8223be.2936e","wires":[["7f1aae85.46fc5"]]},{"id":"7f1aae85.46fc5","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":300.98807525634766,"y":190.45239543914795,"z":"fd8223be.2936e","wires":[["2dca365b.8949fa"]]},{"id":"2dca365b.8949fa","type":"method","name":"api-contrail-route-topology-operation-create","xml":"<method rpc='api-contrail-route-topology-operation-create' mode='sync'>\n","comments":"","outputs":1,"x":279.23817443847656,"y":287.60711765289307,"z":"fd8223be.2936e","wires":[["71de5a8a.06d68c"]]},{"id":"71de5a8a.06d68c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":329.2261848449707,"y":399.273784160614,"z":"fd8223be.2936e","wires":[["37d1d007.e441d","7599d396.fab11c","5487e8c6.2ce188","90603bb4.644bf","bcff5d22.739c18","973bba6f.6e0248","7a30a7f9.6e1ae8","6e678b74.303c34","84c0d39e.e63c5","c015b9b7.736d8","b57c7a1.51b0008","88bf8b92.12a5e","64edc8a3.a7d48","e60b2fce.554fe","e2f5e253.1b2318","6d7d1582.92029c","59f0019d.e27e5","8a4f8bfb.56fa78","416a3007.88306","803a97d9.066c3","724e650c.59b494","7f28e1e1.db86f8","b09a986c.221fa8","5172899d.b7464","e9d9ba39.43f818","3d247334.a1372c","f255c05d.7948a","7213d545.2b0f9c","37ded934.68fab6","4c419af6.dc942c","2e387eee.1a638a","c5de323f.f81938","7cae277d.772588","c3814cf0.0b0738","6c53e4ce.fecfe4","4a08ade2.d13b7c","910ed547.3ffca","948c94af.a879","dfa7d0a5.73fd4","326513f8.a01924","82250dcd.64764","2ed539df.fbd8ce","17c62791.e0bba","1e7787ad.0d68a8","778c350c.8dd8e4","672a2172.2f5058"]]},{"id":"7599d396.fab11c","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":582.0835952758789,"y":4812.631404876709,"z":"fd8223be.2936e","wires":[]},{"id":"37d1d007.e441d","type":"set","name":"set output to caller","xml":"<set>\n<parameter name='cto-api.contrail-route-allotted-instance-id' value='`$tmp.ar.allotted-resource-id`' />\n\n \n","comments":"","x":595.8374938964844,"y":4717.801609992981,"z":"fd8223be.2936e","wires":[]},{"id":"88bf8b92.12a5e","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":711.1708831787109,"y":3266.468216896057,"z":"fd8223be.2936e","wires":[]},{"id":"5487e8c6.2ce188","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology?content=config'` \" />\n\n","comments":"","x":750.0121307373047,"y":1818.3691606521606,"z":"fd8223be.2936e","wires":[]},{"id":"90603bb4.644bf","type":"execute","name":"execute Properties - pull properties file","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":818.9341888427734,"y":1861.9338998794556,"z":"fd8223be.2936e","wires":[[]]},{"id":"973bba6f.6e0248","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":802.1262435913086,"y":2133.828694343567,"z":"fd8223be.2936e","wires":[["ed128194.abfb6","db13b017.ab15b"]]},{"id":"bcff5d22.739c18","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cr-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":792.6722106933594,"y":1905.7197103500366,"z":"fd8223be.2936e","wires":[[]]},{"id":"ed128194.abfb6","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1191.0890617370605,"y":2131.9697785377502,"z":"fd8223be.2936e","wires":[["b5310c26.f565d8"]]},{"id":"c015b9b7.736d8","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cr.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":676.0415382385254,"y":4578.041424751282,"z":"fd8223be.2936e","wires":[["852d43ca.478d68","dc3e6244.b22628","51fd5b3b.c2a0dc"]]},{"id":"852d43ca.478d68","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":943.0162200927734,"y":4609.373085021973,"z":"fd8223be.2936e","wires":[["c445da3e.4e161"]]},{"id":"dc3e6244.b22628","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":937.349609375,"y":4577.87292098999,"z":"fd8223be.2936e","wires":[["c445da3e.4e161"]]},{"id":"b87f121d.e891","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=\"Error updating md-sal for contrail-route-allotted-resource. Parent provided resource rolled back\" />\n","comments":"","x":1279.4329414367676,"y":4623.956533432007,"z":"fd8223be.2936e","wires":[]},{"id":"b5310c26.f565d8","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1320.0890464782715,"y":2128.8030405044556,"z":"fd8223be.2936e","wires":[["efb8d6d3.a0fa4"]]},{"id":"efb8d6d3.a0fa4","type":"switchNode","name":"switch cr length","xml":"<switch test='`$mdsal-ar.contrail-route-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1530.9462890625,"y":2128.4221696853638,"z":"fd8223be.2936e","wires":[["47489607.a87a28"]]},{"id":"47489607.a87a28","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1720.2795944213867,"y":2128.422127723694,"z":"fd8223be.2936e","wires":[["b6498b3f.f4a89"]]},{"id":"e07680f5.890c28","type":"comment","name":"Save consumed-allotted-resources to mdsal","info":"","comments":"","x":693.9935455322266,"y":3937.4700117111206,"z":"fd8223be.2936e","wires":[]},{"id":"d60bc376.6aa18","type":"comment","name":"GET contrail-route-allotted-resource from mdsal","info":"","comments":"","x":823.0888977050781,"y":2081.1362199783325,"z":"fd8223be.2936e","wires":[]},{"id":"7a30a7f9.6e1ae8","type":"set","name":"set ar-request-information","xml":"<set>\n<parameter name='ar-request-information.source' value=\"SDNC\" />\n\n\n","comments":"","x":775.9936828613281,"y":1644.3269243240356,"z":"fd8223be.2936e","wires":[]},{"id":"dd0f18a6.2957a8","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":766.6127777099609,"y":2243.0409364700317,"z":"fd8223be.2936e","wires":[]},{"id":"64edc8a3.a7d48","type":"set","name":"set identifiers in overal structure","xml":"<set>\n<parameter name='ar.allotted-resource-data.contrail-route-topology.allotted-resource-identifiers.' \nvalue=\"`$ar-identifiers.`\" />\n\n\n","comments":"","x":730.3745155334473,"y":2838.7555561065674,"z":"fd8223be.2936e","wires":[]},{"id":"644ccc60.4a1004","type":"set","name":"set ar_name","xml":"<set>\n<parameter name='tmp.ar-name' value='$source-network-name_$cloud-region-id_$source-network-role_$collector-network-role _policy_' />\n","comments":"","x":978.3746719360352,"y":2449.1364755630493,"z":"fd8223be.2936e","wires":[]},{"id":"207be70c.805438","type":"execute","name":"execute SliStringUtils - replace $source-network-name","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$source-network-name\"/>\n <parameter name=\"replacement\" value=\"`$ctotmp.s-l3-network.network-name`\"/>\n\n","comments":"","outputs":1,"x":1103.5179138183594,"y":2489.326988220215,"z":"fd8223be.2936e","wires":[[]]},{"id":"ca12d338.3af09","type":"execute","name":"execute SliStringUtils - replace collector-network-role","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$collector-network-role\"/>\n <parameter name=\"replacement\" value=\"`$cto-api.collector-network-role`\"/>\n\n","comments":"","outputs":1,"x":1091.8511505126953,"y":2588.4696521759033,"z":"fd8223be.2936e","wires":[[]]},{"id":"2ed539df.fbd8ce","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":708.0414085388184,"y":2449.8029142320156,"z":"fd8223be.2936e","wires":[["644ccc60.4a1004","207be70c.805438","ca12d338.3af09","264ea65f.c1daa2","43ac428a.dc5c34","3d9c9398.344a14","9e2a16a6.a13cb8","3f03ddb7.9a84f2","ce6205d7.9406b8"]]},{"id":"264ea65f.c1daa2","type":"set","name":"set identifiers.allotted-resource-name","xml":"<set>\n<parameter name='ar-identifiers.allotted-resource-name' value='`$tmp.ar-name`' />\n","comments":"","x":1043.0412788391113,"y":2736.7553153932095,"z":"fd8223be.2936e","wires":[]},{"id":"e60b2fce.554fe","type":"set","name":"set assignments in overal structure","xml":"<set>\n<parameter name='ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.' \nvalue=\"`$ar-assignments.`\" />\n\n\n","comments":"","x":705.9459533691406,"y":3481.0422582626343,"z":"fd8223be.2936e","wires":[]},{"id":"6d7d1582.92029c","type":"set","name":"set ar-assignments","xml":"<set>\n<parameter name='ar-assignments.source-network.network-id' value=\"`$ctotmp.s-l3-network.network-id` \" />\n<parameter name='ar-assignments.source-network.network-role' value=\"`$cto-api.source-network-role` \" />\n<parameter name='ar-assignments.dest-network.network-id' value=\"`$ctotmp.c-l3-network.network-id` \" />\n<parameter name='ar-assignments.dest-network.network-role' value=\"`$cto-api.collector-network-role` \" />\n\n\n","comments":"","x":686.755500793457,"y":2873.8030004501343,"z":"fd8223be.2936e","wires":[]},{"id":"9e272ec7.04769","type":"for","name":"for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]","xml":"<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n","comments":"","outputs":1,"x":1573.5654296875,"y":4012.374701499939,"z":"fd8223be.2936e","wires":[["2a65ff.8d7fda02"]]},{"id":"6e678b74.303c34","type":"switchNode","name":"switch service-data.consumed-allotted-resources_length","xml":"<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n","comments":"","outputs":1,"x":741.5648803710938,"y":3970.0887699127197,"z":"fd8223be.2936e","wires":[["2ca2838e.661a44","674d770a.b887e"]]},{"id":"2ca2838e.661a44","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1053.707763671875,"y":3972.9461851119995,"z":"fd8223be.2936e","wires":[["5e15905d.5fd038"]]},{"id":"674d770a.b887e","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1041.7077674865723,"y":4015.946186542511,"z":"fd8223be.2936e","wires":[["106d14da.f2f283"]]},{"id":"2a65ff.8d7fda02","type":"switchNode","name":"switch allotted-resource-id","xml":"<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n","comments":"","outputs":1,"x":2003.660629272461,"y":4014.43434381485,"z":"fd8223be.2936e","wires":[["f00c83a.815be"]]},{"id":"f00c83a.815be","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2208.4706268310547,"y":4014.898920059204,"z":"fd8223be.2936e","wires":[["23dd8766.297268"]]},{"id":"106d14da.f2f283","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1201.8348579406738,"y":4014.072163105011,"z":"fd8223be.2936e","wires":[["9e272ec7.04769","b4720284.921fa"]]},{"id":"23dd8766.297268","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2399.2314453125,"y":4014.7560930252075,"z":"fd8223be.2936e","wires":[["48b3fee5.6ccd8","d4e53b54.a15808"]]},{"id":"5e15905d.5fd038","type":"set","name":"set cidx","xml":"<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n","comments":"","x":1212.5647354125977,"y":3972.6602478027344,"z":"fd8223be.2936e","wires":[]},{"id":"48b3fee5.6ccd8","type":"set","name":"set tmp.cidx and ctx.consumed-ar","xml":"<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n<parameter name='ctx.consumed-ar.' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].`' />\n<parameter name='tmp.found-cidx' value='true' />","comments":"","x":2645.088876724243,"y":3971.994129180908,"z":"fd8223be.2936e","wires":[]},{"id":"84c0d39e.e63c5","type":"set","name":"set consumed allotted resources","xml":"<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$tmp.ar.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n","comments":"","x":665.4222869873047,"y":4010.6603050231934,"z":"fd8223be.2936e","wires":[]},{"id":"abf7f200.f83fc8","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":753.5650177001953,"y":1961.9933624267578,"z":"fd8223be.2936e","wires":[]},{"id":"b09a986c.221fa8","type":"set","name":"set ar-assignments","xml":"<set>\n<parameter name='ar-assignments.fq-name' value=\"`$tmp.fq-name` \" />\n\n\n\n","comments":"","x":680.0888290405273,"y":3091.9469709396362,"z":"fd8223be.2936e","wires":[]},{"id":"35bec61.b93bbba","type":"comment","name":"Add AR to md-sal","info":"","comments":"","x":597.3270835876465,"y":4550.89836025238,"z":"fd8223be.2936e","wires":[]},{"id":"b57c7a1.51b0008","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":666.6600646972656,"y":3227.2319765090942,"z":"fd8223be.2936e","wires":[[]]},{"id":"b6498b3f.f4a89","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=\"Error: Existing contrail route allotted resource\" />\n \n","comments":"","x":1900.6075477600098,"y":2126.369183063507,"z":"fd8223be.2936e","wires":[]},{"id":"db13b017.ab15b","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1187.940845489502,"y":2165.3692865371704,"z":"fd8223be.2936e","wires":[["c478d043.0bfbb"]]},{"id":"c478d043.0bfbb","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1322.9407958984375,"y":2166.0357751846313,"z":"fd8223be.2936e","wires":[[]]},{"id":"e2f5e253.1b2318","type":"set","name":"set ar data","xml":"<set>\n<parameter name='ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<!--\n<parameter name='ar.allotted-resource-status.action' value=\"`$contrail-route-topology-operation-input.request-information.request-action` \" />\n<parameter name='ar.allotted-resource-status.rpc-name' value=\"contrail-route-topology-operation\" />\n<parameter name='ar.allotted-resource-status.rpc-action' value=\"`$contrail-route-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$contrail-route-topology-operation-input.request-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$contrail-route-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$contrail-route-topology-operation-input.service-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$contrail-route-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.contrail-route-request-input.' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.` \" />\n-->","comments":"","x":718.2740936279297,"y":2189.702548980713,"z":"fd8223be.2936e","wires":[]},{"id":"43ac428a.dc5c34","type":"execute","name":"execute SliStringUtils - replace $cloud-region-id","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$cloud-region-id\"/>\n <parameter name=\"replacement\" value=\"`$cto-api.cloud-region-id`\"/>\n\n","comments":"","outputs":1,"x":1081.8927841186523,"y":2521.7025747299194,"z":"fd8223be.2936e","wires":[[]]},{"id":"3d9c9398.344a14","type":"execute","name":"execute SliStringUtils - replace $source-network-role","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$source-network-role\"/>\n <parameter name=\"replacement\" value=\"`$cto-api.source-network-role`\"/>\n\n","comments":"","outputs":1,"x":1085.2736053466797,"y":2549.035895347595,"z":"fd8223be.2936e","wires":[[]]},{"id":"3f03ddb7.9a84f2","type":"call","name":"call GENERIC-RESOURCE-API:generate-unique-name","xml":"<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n","comments":"","outputs":1,"x":1101.6071472167969,"y":2696.3691416978836,"z":"fd8223be.2936e","wires":[["b548b1f6.a326a","2e1da622.231e42"]]},{"id":"b548b1f6.a326a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1436.321792602539,"y":2694.2263759970665,"z":"fd8223be.2936e","wires":[["ed374845.ee4bb"]]},{"id":"2e1da622.231e42","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1441.6550369262695,"y":2725.8930765092373,"z":"fd8223be.2936e","wires":[["5f3684b9.b9797c"]]},{"id":"9e2a16a6.a13cb8","type":"set","name":"set variables for generating unique name","xml":"<set>\n<parameter name='generate-unique-name-input.index-table-name' value='CONTRAIL_ROUTE_NAME_INDEX' />\n<parameter name='generate-unique-name-input.index-table-prefix-column' value='contrail_route_name_prefix' />\n<parameter name='generate-unique-name-input.name-table-type' value='CONTRAIL_ROUTE_INSTANCE' />\n<parameter name='generate-unique-name-input.prefix' value=\"`$tmp.ar-name`\" />\n<parameter name='generate-unique-name-input.index-length' value='2' />\n","comments":"","x":1063.2741470336914,"y":2626.035841912031,"z":"fd8223be.2936e","wires":[]},{"id":"5f3684b9.b9797c","type":"set","name":"set tmp.ar-name to generated name","xml":"<set>\n<parameter name='tmp.ar-name' value='`$generate-unique-name-output.generated-name`' />\n","comments":"","x":1688.845199584961,"y":2726.3691568374634,"z":"fd8223be.2936e","wires":[]},{"id":"ed374845.ee4bb","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=\"`$generate-unique-name-output.error-message`\" />\n","comments":"","x":1610.1787147521973,"y":2693.6548896729946,"z":"fd8223be.2936e","wires":[]},{"id":"59f0019d.e27e5","type":"set","name":"set fq_name","xml":"<set>\n<parameter name='tmp.fq-name' value='$defaultDomain.$defaultProject.$sdncNetworkPolicy' />\n","comments":"","x":668.4166259765625,"y":2958.083620071411,"z":"fd8223be.2936e","wires":[]},{"id":"8a4f8bfb.56fa78","type":"execute","name":"execute SliStringUtils - replace $defaultDomain","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.fq-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.fq-name\"/>\n <parameter name=\"target\" value=\"$defaultDomain\"/>\n <parameter name=\"replacement\" value=\"`$cto-api.default-domain`\"/>\n\n","comments":"","outputs":1,"x":775.7500152587891,"y":2988.0835410654545,"z":"fd8223be.2936e","wires":[[]]},{"id":"416a3007.88306","type":"execute","name":"execute SliStringUtils - replace $defaultProject","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.fq-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.fq-name\"/>\n <parameter name=\"target\" value=\"$defaultProject\"/>\n <parameter name=\"replacement\" value=\"`$cto-api.default-project`\"/>\n\n","comments":"","outputs":1,"x":775.7500076293945,"y":3021.417103767395,"z":"fd8223be.2936e","wires":[[]]},{"id":"bd3fa69c.30dc4","type":"comment","name":"generate fqname","info":"","comments":"","x":677.4166717529297,"y":2931.416926383972,"z":"fd8223be.2936e","wires":[]},{"id":"803a97d9.066c3","type":"execute","name":"execute SliStringUtils - replace $sdncNetworkPolicy","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.fq-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.fq-name\"/>\n <parameter name=\"target\" value=\"$sdncNetworkPolicy\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar-name`\"/>\n\n","comments":"","outputs":1,"x":786.7499618530273,"y":3054.749886661768,"z":"fd8223be.2936e","wires":[[]]},{"id":"724e650c.59b494","type":"update","name":"save AAI allotted-resource","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $cto-api.service-type AND\n\t\t\tservice-instance.service-instance-id = $cto-api.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n <parameter name=\"id\" value=\"`$tmp.ar.allotted-resource-id`\" />\n\t<parameter name=\"description\" value=\"`$tmp.ar.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"operational-status\" value=\"out-of-service-path\" />\n\t<parameter name=\"order-status\" value=\"Created\" />","comments":"","outputs":1,"x":658.3690795898438,"y":3697.9887590408325,"z":"fd8223be.2936e","wires":[["1ded98d5.9cb767","26bf7392.67e7a4","e80c53f2.a704a"]]},{"id":"1ded98d5.9cb767","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":907.0357131958008,"y":3670.226936817169,"z":"fd8223be.2936e","wires":[["3b1f3b10.705a0c"]]},{"id":"26bf7392.67e7a4","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":912.345142364502,"y":3705.798354625702,"z":"fd8223be.2936e","wires":[["3b1f3b10.705a0c"]]},{"id":"ce6205d7.9406b8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"tmp.ar-name=\"/>\n<parameter name=\"field3\" value=\"`$tmp.ar-name`\"/>\n<parameter name=\"field4\" value=\"generate-unique-name-input.prefix\" />\n<parameter name=\"field5\" value=\"`$generate-unique-name-input.prefix`\" />","comments":"","outputs":1,"x":954.4739456176758,"y":2661.0359387099743,"z":"fd8223be.2936e","wires":[[]]},{"id":"7f28e1e1.db86f8","type":"execute","name":"generate parent-network url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.network`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-parentnetwork-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$cto-api.parent-service-instance-id`\"/>\n","comments":"","outputs":1,"x":768.2741546630859,"y":2034.7022666931152,"z":"fd8223be.2936e","wires":[[]]},{"id":"c3a420b2.5783a","type":"comment","name":"Update AAI AR","info":"","comments":"","x":614.6166381835938,"y":3656.417206287384,"z":"fd8223be.2936e","wires":[]},{"id":"5172899d.b7464","type":"execute","name":"execute RestApiCallNode - Update parent provided service AR","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n","comments":"","outputs":1,"x":745.6167144775391,"y":4148.750764369965,"z":"fd8223be.2936e","wires":[["e59c42d5.79faf8","422ff4ec.a8a394","e613335b.7c4aa8"]]},{"id":"e59c42d5.79faf8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1066.2580795288086,"y":4197.08226108551,"z":"fd8223be.2936e","wires":[["10882401.6b38ec"]]},{"id":"422ff4ec.a8a394","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1058.9247817993164,"y":4162.249007701874,"z":"fd8223be.2936e","wires":[["10882401.6b38ec"]]},{"id":"e613335b.7c4aa8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1062.674819946289,"y":4132.606112577021,"z":"fd8223be.2936e","wires":[["60a1a7d3.34c4b8"]]},{"id":"60a1a7d3.34c4b8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1204.3307876586914,"y":4128.798281766474,"z":"fd8223be.2936e","wires":[[]]},{"id":"f83ef61.b139408","type":"comment","name":"Put the parent allotted resource in mdsal","info":"","comments":"","x":672.6166801452637,"y":4116.750589847565,"z":"fd8223be.2936e","wires":[]},{"id":"b4720284.921fa","type":"switchNode","name":"switch tmp.found-cidx","xml":"<switch test='`$tmp.found-cidx`'>\n","comments":"","outputs":1,"x":1390.9499244689941,"y":4077.7504601478577,"z":"fd8223be.2936e","wires":[["970f80eb.52fe4"]]},{"id":"970f80eb.52fe4","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1580.949878692627,"y":4077.750397205353,"z":"fd8223be.2936e","wires":[["b15e15ed.cb123"]]},{"id":"b15e15ed.cb123","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1746.949878692627,"y":4077.750397205353,"z":"fd8223be.2936e","wires":[["7f6380dc.838d4"]]},{"id":"7f6380dc.838d4","type":"set","name":"set tmp.cidx ","xml":"<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n","comments":"","x":1992.807207107544,"y":4078.32187128067,"z":"fd8223be.2936e","wires":[]},{"id":"d4e53b54.a15808","type":"break","name":"break","xml":"<break>\n","comments":"","x":2561.9498291015625,"y":4000.7501294612885,"z":"fd8223be.2936e","wires":[]},{"id":"e9d9ba39.43f818","type":"execute","name":"generate parent-ar url - replace service-instance-id","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.parent-provided-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$cto-api.parent-service-instance-id`\"/>\n","comments":"","outputs":1,"x":841.140869140625,"y":1993.369249343872,"z":"fd8223be.2936e","wires":[[]]},{"id":"3d247334.a1372c","type":"execute","name":"generate parent-ar url - replace allotted-resource-id","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.parent-ar-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":829.4740142822266,"y":2278.369143486023,"z":"fd8223be.2936e","wires":[[]]},{"id":"2f969250.766e46","type":"execute","name":"execute RestApiCallNode - Update parent provided service AR","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n","comments":"","outputs":1,"x":1436.4169578552246,"y":4589.750328063965,"z":"fd8223be.2936e","wires":[["cacefbda.c09118","a4a8e124.abfb98","a90079c7.306d8"]]},{"id":"48cc2493.a0fe6c","type":"comment","name":"Rollback parent","info":"","comments":"","x":1280.4168853759766,"y":4559.41695857048,"z":"fd8223be.2936e","wires":[]},{"id":"c445da3e.4e161","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1089.0834884643555,"y":4589.083631515503,"z":"fd8223be.2936e","wires":[["2f969250.766e46","76e9e56c.5f957c"]]},{"id":"cacefbda.c09118","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1807.7250061035156,"y":4650.415294408798,"z":"fd8223be.2936e","wires":[["772f3e20.3729e8"]]},{"id":"a4a8e124.abfb98","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1798.72505569458,"y":4618.915320158005,"z":"fd8223be.2936e","wires":[["772f3e20.3729e8"]]},{"id":"a90079c7.306d8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1802.4750938415527,"y":4589.272425033152,"z":"fd8223be.2936e","wires":[["772f3e20.3729e8"]]},{"id":"772f3e20.3729e8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1944.131061553955,"y":4585.464594222605,"z":"fd8223be.2936e","wires":[[]]},{"id":"f255c05d.7948a","type":"execute","name":"generate network-ar url - replace service-instance-id","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.network-provided-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.network-ar-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n","comments":"","outputs":1,"x":831.2739562988281,"y":2318.368896484375,"z":"fd8223be.2936e","wires":[[]]},{"id":"4bc63892.dc826","type":"comment","name":"allotted resource already exists- no op","info":"","comments":"","x":2516.7498817443848,"y":3931.4163995981216,"z":"fd8223be.2936e","wires":[]},{"id":"80af03e.6ba0e8","type":"comment","name":"Other Rollbacks? ","info":"","comments":"","x":1286.0832328796387,"y":4651.416703224182,"z":"fd8223be.2936e","wires":[]},{"id":"358b2d3.80d5a52","type":"comment","name":"MDSal adaptor only saves consuming service so parent service and AR are done by Rest api calls","info":"","comments":"","x":678.7499389648438,"y":69.74998950958252,"z":"fd8223be.2936e","wires":[]},{"id":"1b0fea44.83ef26","type":"comment","name":"Parameter names","info":"INPUT:\ncto-api.parent-service-instance-id\ncto-api.port-mirror-configuration-instance-id\ncto-api.source-network-role\ncto-api.collector-network-role\ncto-api.default-domain\ncto-api.default-project\ncto-api.cloud-region-id\ncto-api.service-type\nOUTPUT:\ncto-api.contrail-route-allotted-resource-id\n","comments":"","x":425.75,"y":102.75000476837158,"z":"fd8223be.2936e","wires":[]},{"id":"7213d545.2b0f9c","type":"save","name":"Get network from AAI for source network","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"ctotmp.aai.source-network\">\n <parameter name=\"start[0]\" value=\"`'/cloud-infrastructure/cloud-regions/cloud-region/' + $cto-api.cloud-owner + '/' + $cto-api.cloud-region-id`\" />\n <parameter name=\"start_length\" value=\"1\" /> \n <parameter name=\"query\" value=\"`'/query/network-name-fromNetwork-role?networkRole=' + $cto-api.source-network-role`\" /> \n","comments":"","outputs":1,"x":835.4283599853516,"y":476.65470790863037,"z":"fd8223be.2936e","wires":[["f489a184.f63528","90317c35.5ed19"]]},{"id":"f489a184.f63528","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1107.5712089538574,"y":446.6548328399658,"z":"fd8223be.2936e","wires":[["b7191164.dbdd18"]]},{"id":"b7191164.dbdd18","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1276.8093223571777,"y":437.13086891174316,"z":"fd8223be.2936e","wires":[["4e660df0.8c2e1c"]]},{"id":"90317c35.5ed19","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1109.3568572998047,"y":476.71428298950195,"z":"fd8223be.2936e","wires":[["23eddc08.e69244"]]},{"id":"23eddc08.e69244","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1273.6425666809082,"y":475.28576469421387,"z":"fd8223be.2936e","wires":[["7fc789ae.200978"]]},{"id":"2e387eee.1a638a","type":"configure","name":"set default values","xml":"<set>\n<parameter name=\"ctotmp.s-l3-network\" value=\"\" />\n<parameter name=\"ctotmp.num-s-network\" value=\"0\" />\n<parameter name=\"ctotmp.s-network-policy\" value=\"\" />\n<parameter name=\"ctotmp.num-s-np\" value=\"0\" />\n<parameter name=\"ctotmp.c-l3-network\" value=\"\" />\n<parameter name=\"ctotmp.num-c-network\" value=\"0\" />\n<parameter name=\"ctotmp.c-network-policy\" value=\"\" />\n<parameter name=\"ctotmp.num-c-np\" value=\"0\" />\n<parameter name=\"ctotmp.s-network-policy-list_length\" value=\"0\" />\n<parameter name=\"ctotmp.c-network-policy-list_length\" value=\"0\" />\n<parameter name=\"ctotmp.network-policy-id\" value=\"\" />\n<parameter name=\"ctotmp.action\" value=\"create\" />\n","comments":"","outputs":1,"x":774.4165954589844,"y":314.2737703323364,"z":"fd8223be.2936e","wires":[[]]},{"id":"527138b.89bd148","type":"comment","name":"Get l3-network/policy for source network role","info":"","comments":"","x":837.5117034912109,"y":446.65477657318115,"z":"fd8223be.2936e","wires":[]},{"id":"4e660df0.8c2e1c","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=\"API-contrail-route-topology-operation-create: Failed to get source network from aai\" />\n","comments":"","x":1449.4166374206543,"y":439.2737159729004,"z":"fd8223be.2936e","wires":[]},{"id":"7fc789ae.200978","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=\"API-contrail-route-topology-operation-create: Source network not found in AAI\" />\n","comments":"","x":1447.9878578186035,"y":473.5594291687012,"z":"fd8223be.2936e","wires":[]},{"id":"37ded934.68fab6","type":"for","name":"for each src network","xml":"<for index='ctotmp.sidx' start='0' end='`$ctotmp.aai.source-network.results_length`' >\n","comments":"","outputs":1,"x":772.7499237060547,"y":551.416615486145,"z":"fd8223be.2936e","wires":[["b901219f.362c48"]]},{"id":"62ec4e1c.4e5e1","type":"switchNode","name":"check for network-policy","xml":"<switch test='`$ctotmp.aai.source-network.results[$ctotmp.sidx].network-policy.network-policy-id`'>\n","comments":"","outputs":1,"x":1189.4167175292969,"y":551.0831060409546,"z":"fd8223be.2936e","wires":[["82e974a5.880ec","ab575fe2.1a7378"]]},{"id":"82e974a5.880ec","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1379.4165573120117,"y":533.0831651687622,"z":"fd8223be.2936e","wires":[["b8c1cb2a.2baaa"]]},{"id":"ab575fe2.1a7378","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1382.7498397827148,"y":569.5118780136108,"z":"fd8223be.2936e","wires":[["fdc0d899.f8967"]]},{"id":"b8c1cb2a.2baaa","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1541.0832214355469,"y":533.797441482544,"z":"fd8223be.2936e","wires":[[]]},{"id":"fdc0d899.f8967","type":"switchNode","name":"switch network-policy-id","xml":"<switch test='`$ctotmp.aai.source-network.results[$ctotmp.sidx].network-policy.network-policy-id`'>\n","comments":"","outputs":1,"x":1569.416763305664,"y":568.0834722518921,"z":"fd8223be.2936e","wires":[["9a0326c9.066d","f2d265f2.4447a8"]]},{"id":"9a0326c9.066d","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1794.4165344238281,"y":541.4164571762085,"z":"fd8223be.2936e","wires":[["924c99f0.70c"]]},{"id":"f2d265f2.4447a8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1792.7497596740723,"y":569.5117740631104,"z":"fd8223be.2936e","wires":[["d577bcf4.265fc8"]]},{"id":"d577bcf4.265fc8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1957.749843597412,"y":578.0831642150879,"z":"fd8223be.2936e","wires":[["ecf1fa5d.04cc2","cbfccf94.e608c8","400312fa.149e74"]]},{"id":"ecf1fa5d.04cc2","type":"configure","name":"set ctotmp.num-s-np","xml":"<set>\n<parameter name=\"ctotmp.num-s-np\" value=\"`$ctotmp.num-s-np+1`\" />\n","comments":"","outputs":1,"x":2189.9881744384766,"y":569.4641437530518,"z":"fd8223be.2936e","wires":[[]]},{"id":"924c99f0.70c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1962.7498626708984,"y":543.083291053772,"z":"fd8223be.2936e","wires":[[]]},{"id":"5abec00b.b100b","type":"switchNode","name":"check for l3-network","xml":"<switch test='`$ctotmp.aai.source-network.results[$ctotmp.sidx].l3-network.network-id`'>\n","comments":"","outputs":1,"x":1179.416648864746,"y":629.7497749328613,"z":"fd8223be.2936e","wires":[["e1486c36.e9aba8","7fb419d1.9615e8"]]},{"id":"e1486c36.e9aba8","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1386.0831832885742,"y":614.7498550415039,"z":"fd8223be.2936e","wires":[["83b5f616.98f4c"]]},{"id":"7fb419d1.9615e8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1389.4164657592773,"y":652.8451910018921,"z":"fd8223be.2936e","wires":[["1db68be1.b1d39c"]]},{"id":"83b5f616.98f4c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1547.749813079834,"y":615.1308164596558,"z":"fd8223be.2936e","wires":[[]]},{"id":"1db68be1.b1d39c","type":"switchNode","name":"switch network-id","xml":"<switch test='`$ctotmp.aai.source-network.results[$ctotmp.sidx].l3-network.network-id`'>\n","comments":"","outputs":1,"x":1561.083351135254,"y":653.0834550857544,"z":"fd8223be.2936e","wires":[["63feb3f3.840974","5823b7ec.89fb68"]]},{"id":"63feb3f3.840974","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1799.4164924621582,"y":631.4164018630981,"z":"fd8223be.2936e","wires":[["a870e259.8f814"]]},{"id":"5823b7ec.89fb68","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1801.0830917358398,"y":676.1784429550171,"z":"fd8223be.2936e","wires":[["d04fa4d.65ff158"]]},{"id":"d04fa4d.65ff158","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1959.4165344238281,"y":674.7497701644897,"z":"fd8223be.2936e","wires":[["f43dcd75.cd43d8"]]},{"id":"a870e259.8f814","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1969.4164562225342,"y":631.4166040420532,"z":"fd8223be.2936e","wires":[[]]},{"id":"b901219f.362c48","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":977.7498626708984,"y":551.4166040420532,"z":"fd8223be.2936e","wires":[["62ec4e1c.4e5e1","5abec00b.b100b"]]},{"id":"f43dcd75.cd43d8","type":"configure","name":"set s-l3-network and num-s-network","xml":"<set>\n<parameter name=\"ctotmp.s-l3-network.\" value=\"`$ctotmp.aai.source-network.results[$ctotmp.sidx].l3-network.`\" />\n<parameter name=\"ctotmp.num-s-network\" value=\"`$ctotmp.num-s-network+1`\" />\n\n","comments":"","outputs":1,"x":2214.0830078125,"y":673.0832681655884,"z":"fd8223be.2936e","wires":[[]]},{"id":"4c419af6.dc942c","type":"configure","name":"clear internal data","xml":"<set>\n<parameter name=\"ctotmp.\" value=\"\" />\n<parameter name=\"ar-request-information.\" value=\"\" />\n<parameter name=\"ar-created\" value=\"\" />\n<parameter name=\"ar-aai-created\" value=\"\" />\n<parameter name=\"np-aai-created\" value=\"\" />\n<parameter name=\"contrail-created\" value=\"\" />\n","comments":"","outputs":1,"x":771.0833129882812,"y":279.7499985694885,"z":"fd8223be.2936e","wires":[[]]},{"id":"948c94af.a879","type":"set","name":"set ar-contrail-route=request-input","xml":"<set>\n<parameter name='ar-contrail-route-request-input.source-network.network-role' value=\"`$cto-api.source-network-role`\" />\n<parameter name='ar-contrail-route-request-input.source-network.network-id' value=\"`$ctotmp.source-network.network-id`\" />\n<parameter name='ar-contrail-route-request-input.dest-network.network-role' value=\"`$cto-api.collector-network-role`\" />\n<parameter name='ar-contrail-route-request-input.dest-network.network-id' value=\"`$ctotmp.dest-network.network-id`\" />\n\n","comments":"","x":799.4167327880859,"y":1686.7498121261597,"z":"fd8223be.2936e","wires":[]},{"id":"c5de323f.f81938","type":"switchNode","name":"switch num-s-network","xml":"<switch test='`$ctotmp.num-s-network`'>\n","comments":"","outputs":1,"x":774.4166107177734,"y":723.0831327438354,"z":"fd8223be.2936e","wires":[["64a3201b.dafe8","48b7d85e.afa768","ec81d452.09a2b8"]]},{"id":"48b7d85e.afa768","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":971.0833282470703,"y":761.4166269302368,"z":"fd8223be.2936e","wires":[["8202168f.6d8d48"]]},{"id":"64a3201b.dafe8","type":"other","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":971.0832405090332,"y":692.7498483657837,"z":"fd8223be.2936e","wires":[["3828f995.1688fe"]]},{"id":"ec81d452.09a2b8","type":"other","name":"1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":969.4166107177734,"y":728.0831747055054,"z":"fd8223be.2936e","wires":[["7c1e2f87.932f5"]]},{"id":"3828f995.1688fe","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=\"API-contrail-route-topology-operation-create: Source network not found from aai\" />\n","comments":"","x":1134.4165534973145,"y":692.7498826980591,"z":"fd8223be.2936e","wires":[]},{"id":"8202168f.6d8d48","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=\"API-contrail-route-topology-operation-create: Too many networks returned for source network from aai\" />\n","comments":"","x":1130.7498970031738,"y":761.7498617172241,"z":"fd8223be.2936e","wires":[]},{"id":"7c1e2f87.932f5","type":"configure","name":"set source network-id","xml":"<set>\n<parameter name=\"ctotmp.source-network.network-id\" value=\"`$ctotmp.s-l3-network.network-id`\" />\n\n\n","comments":"","outputs":1,"x":1157.75,"y":731.0833024978638,"z":"fd8223be.2936e","wires":[[]]},{"id":"c3814cf0.0b0738","type":"save","name":"Get network from AAI for collector network","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"ctotmp.aai.collector-network\">\n <parameter name=\"start[0]\" value=\"`'/cloud-infrastructure/cloud-regions/cloud-region/' + $cto-api.cloud-owner + '/' + $cto-api.cloud-region-id`\" />\n <parameter name=\"start_length\" value=\"1\" /> \n <parameter name=\"query\" value=\"`'/query/network-name-fromNetwork-role?networkRole=' + $cto-api.collector-network-role`\" /> \n","comments":"","outputs":1,"x":844.4166564941406,"y":864.7499113082886,"z":"fd8223be.2936e","wires":[["bb88165.d1937e8","7f15d0fc.069948"]]},{"id":"bb88165.d1937e8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1116.5595054626465,"y":834.750036239624,"z":"fd8223be.2936e","wires":[["bde8dca0.2e98d"]]},{"id":"bde8dca0.2e98d","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1285.7976188659668,"y":825.2260723114014,"z":"fd8223be.2936e","wires":[["f2f89124.07b14"]]},{"id":"7f15d0fc.069948","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1118.3451538085938,"y":864.8094863891602,"z":"fd8223be.2936e","wires":[["716be41c.d6d394"]]},{"id":"716be41c.d6d394","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1282.6308631896973,"y":863.3809680938721,"z":"fd8223be.2936e","wires":[["ffe76153.cabf68"]]},{"id":"56ea117c.705cb8","type":"comment","name":"Get l3-network/policy for collector network role","info":"","comments":"","x":846.5,"y":834.7499799728394,"z":"fd8223be.2936e","wires":[]},{"id":"f2f89124.07b14","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=\"API-contrail-route-topology-operation-create: Failed to get collector network from aai\" />\n","comments":"","x":1458.4049339294434,"y":827.3689193725586,"z":"fd8223be.2936e","wires":[]},{"id":"ffe76153.cabf68","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=\"API-contrail-route-topology-operation-create: Collector network not found in AAI\" />\n","comments":"","x":1456.9761543273926,"y":861.6546325683594,"z":"fd8223be.2936e","wires":[]},{"id":"7cae277d.772588","type":"for","name":"for each collector network","xml":"<for index='ctotmp.cidx' start='0' end='`$ctotmp.aai.collector-network.results_length`' >\n","comments":"","outputs":1,"x":771.4049072265625,"y":952.5117797851562,"z":"fd8223be.2936e","wires":[["f0662510.4e8fb8"]]},{"id":"230f1cfd.35f71c","type":"switchNode","name":"check for l3-network","xml":"<switch test='`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.network-id`'>\n","comments":"","outputs":1,"x":1208.0716552734375,"y":954.1781616210938,"z":"fd8223be.2936e","wires":[["fbe44b80.49bb3","578fb4d0.480724"]]},{"id":"fbe44b80.49bb3","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1415.0714111328125,"y":953.1783447265625,"z":"fd8223be.2936e","wires":[["b5d85abf.060458"]]},{"id":"578fb4d0.480724","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1418.4046936035156,"y":991.2736806869507,"z":"fd8223be.2936e","wires":[["9d0af548.8c9958"]]},{"id":"9d0af548.8c9958","type":"switchNode","name":"switch network-id","xml":"<switch test='`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.network-id`'>\n","comments":"","outputs":1,"x":1590.0715789794922,"y":991.511944770813,"z":"fd8223be.2936e","wires":[["643bc785.a07d5","a9f3513.8d7ddb"]]},{"id":"643bc785.a07d5","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1777.7381591796875,"y":992.511474609375,"z":"fd8223be.2936e","wires":[["26d45d59.14ab12"]]},{"id":"a9f3513.8d7ddb","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1779.4047584533691,"y":1037.273515701294,"z":"fd8223be.2936e","wires":[["ba7314d9.3de7b8"]]},{"id":"ba7314d9.3de7b8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1937.7382011413574,"y":1035.8448429107666,"z":"fd8223be.2936e","wires":[["fbe27f49.91dd28","94eb59a2.0945b"]]},{"id":"26d45d59.14ab12","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1947.7381229400635,"y":992.5116767883301,"z":"fd8223be.2936e","wires":[[]]},{"id":"f0662510.4e8fb8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":996.7381973266602,"y":952.8450679779053,"z":"fd8223be.2936e","wires":[["230f1cfd.35f71c"]]},{"id":"fbe27f49.91dd28","type":"configure","name":"set c-l3-network and num-c-network","xml":"<set>\n<parameter name=\"ctotmp.c-l3-network.\" value=\"`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.`\" />\n<parameter name=\"ctotmp.num-c-network\" value=\"`$ctotmp.num-c-network+1`\" />\n\n","comments":"","outputs":1,"x":2215.40478515625,"y":999.1783447265625,"z":"fd8223be.2936e","wires":[[]]},{"id":"810fdfd4.2afd5","type":"comment","name":"Do we need to check for > 1","info":"","comments":"","x":791.0833168029785,"y":678.0833911895752,"z":"fd8223be.2936e","wires":[]},{"id":"cbfccf94.e608c8","type":"configure","name":"add s-network-policy-id to list","xml":"<set>\n<parameter name=\"ctotmp.s-network-policy-list[$ctotmp.num-s-np].network-policy-id\" value=\"`$ctotmp.aai.source-network.results[$ctotmp.sidx].network-policy.network-policy-id`\" />\n\n","comments":"","outputs":1,"x":2212.749931335449,"y":543.0833034515381,"z":"fd8223be.2936e","wires":[[]]},{"id":"400312fa.149e74","type":"configure","name":"set s-network-policy-list_length","xml":"<set>\n<parameter name=\"ctotmp.s-network-policy-list_length\" value=\"`$ctotmp.num-s-np`\" />\n","comments":"","outputs":1,"x":2214.4168434143066,"y":604.7499723434448,"z":"fd8223be.2936e","wires":[[]]},{"id":"4a08ade2.d13b7c","type":"for","name":"for each source-network-policy","xml":"<for index='ctotmp.spidx' start='0' end='`$ctotmp.s-network-policy-list_length`' >\n","comments":"","outputs":1,"x":783.0833384394646,"y":1349.749788761139,"z":"fd8223be.2936e","wires":[["6b08e08e.3836b"]]},{"id":"6b08e08e.3836b","type":"for","name":"for each collector-network-policy","xml":"<for index='ctotmp.cpidx' start='0' end='`$ctotmp.c-network-policy-list_length`' >\n","comments":"","outputs":1,"x":1089.7500101923943,"y":1348.0831761360168,"z":"fd8223be.2936e","wires":[["3578a521.ca3c32"]]},{"id":"3578a521.ca3c32","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1348.0832774043083,"y":1348.0831627845764,"z":"fd8223be.2936e","wires":[["3948c7e7.d3adb8"]]},{"id":"1433c949.6a3ddf","type":"comment","name":"Check if the source and collector network tied to same network policy","info":"","comments":"","x":903.0833231806755,"y":1313.083164691925,"z":"fd8223be.2936e","wires":[]},{"id":"6c53e4ce.fecfe4","type":"switchNode","name":"switch num-c-network","xml":"<switch test='`$ctotmp.num-c-network`'>\n","comments":"","outputs":1,"x":768.083273589611,"y":1201.4165048599243,"z":"fd8223be.2936e","wires":[["57594924.deefc8","9e18ade.cd92a5","fdd09fb3.c645a"]]},{"id":"9e18ade.cd92a5","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":964.7499694824219,"y":1239.749945640564,"z":"fd8223be.2936e","wires":[["9edabcd2.3b55a8"]]},{"id":"57594924.deefc8","type":"other","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":966.4165954589844,"y":1176.083170890808,"z":"fd8223be.2936e","wires":[["388cf1b9.8ef3a6"]]},{"id":"fdd09fb3.c645a","type":"other","name":"1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":963.083251953125,"y":1206.4164934158325,"z":"fd8223be.2936e","wires":[["cad12ae1.434178"]]},{"id":"388cf1b9.8ef3a6","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=\"API-contrail-route-topology-operation-create: Collector network not found from aai\" />\n","comments":"","x":1121.7498779296875,"y":1177.083251953125,"z":"fd8223be.2936e","wires":[]},{"id":"9edabcd2.3b55a8","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=\"API-contrail-route-topology-operation-create: Too many networks returned for collector network from aai\" />\n","comments":"","x":1124.4165382385254,"y":1240.0831804275513,"z":"fd8223be.2936e","wires":[]},{"id":"cad12ae1.434178","type":"configure","name":"set collector network-id","xml":"<set>\n<parameter name=\"ctotmp.dest-network.network-id\" value=\"`$ctotmp.c-l3-network.network-id`\" />\n\n\n","comments":"","outputs":1,"x":1151.4166412353516,"y":1208.4166345596313,"z":"fd8223be.2936e","wires":[[]]},{"id":"928568b8.42cae","type":"comment","name":"Do we need to check for > 1","info":"","comments":"","x":786.4167391657829,"y":1163.0834650993347,"z":"fd8223be.2936e","wires":[]},{"id":"3948c7e7.d3adb8","type":"switchNode","name":"switch source policy = collector policy","xml":"<switch test='`$ctotmp.s-network-policy-list[$ctotmp.spidx].network-policy-id == $ctotmp.c-network-policy-list[$ctotmp.cpidx].network-policy-id`'>\n","comments":"","outputs":1,"x":1622.4166259765625,"y":1350.08336353302,"z":"fd8223be.2936e","wires":[["d30cdd30.d5a818"]]},{"id":"4a42aa8b.83e934","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2055.7499771118164,"y":1348.4166588783264,"z":"fd8223be.2936e","wires":[["2e7bff75.08d278","a90dd523.58d14"]]},{"id":"2e7bff75.08d278","type":"configure","name":"set ctotmp.network-policy-id","xml":"<set>\n<parameter name=\"ctotmp.network-policy-id\" value=\"`$ctotmp.s-network-policy-list[$ctotmp.spidx].network-policy-id`\" />\n<parameter name=\"ctotmp.existing-network-policy-found\" value=\"true\" />","comments":"","outputs":1,"x":2310.7499771118164,"y":1348.4166588783264,"z":"fd8223be.2936e","wires":[[]]},{"id":"a90dd523.58d14","type":"break","name":"break","xml":"<break>\n","comments":"","x":2249.083236694336,"y":1425.08340549469,"z":"fd8223be.2936e","wires":[]},{"id":"d30cdd30.d5a818","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1870.7499732971191,"y":1348.4166555404663,"z":"fd8223be.2936e","wires":[["4a42aa8b.83e934"]]},{"id":"fd2ab770.01bd18","type":"comment","name":"if network policy found, get AR and return to calling method","info":"","comments":"","x":876.4166628718376,"y":1458.4165740013123,"z":"fd8223be.2936e","wires":[]},{"id":"910ed547.3ffca","type":"switchNode","name":"switch network-policy-id","xml":"<switch test='`$ctotmp.network-policy-id`'>\n","comments":"","outputs":1,"x":773.0833498835564,"y":1493.0831999778748,"z":"fd8223be.2936e","wires":[["dc9f60fd.a57cb","ef776953.3d7ee8"]]},{"id":"dc9f60fd.a57cb","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":979.7500101923943,"y":1491.4167160987854,"z":"fd8223be.2936e","wires":[["931d7263.438eb"]]},{"id":"ef776953.3d7ee8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":983.0833422541618,"y":1524.7500100135803,"z":"fd8223be.2936e","wires":[["4fb26c91.499a04"]]},{"id":"931d7263.438eb","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1144.7499606013298,"y":1491.4165968894958,"z":"fd8223be.2936e","wires":[[]]},{"id":"4fb26c91.499a04","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1154.749912917614,"y":1524.749927997589,"z":"fd8223be.2936e","wires":[["e80a0448.c77ed"]]},{"id":"e80a0448.c77ed","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=\"existing policy - error\" />\n","comments":"","x":1388.0832964777946,"y":1524.7498869895935,"z":"fd8223be.2936e","wires":[]},{"id":"218546c.191c6ba","type":"comment","name":"Flow to create the allotted resource","info":"","comments":"","x":791.0833129882812,"y":1557.4167375564575,"z":"fd8223be.2936e","wires":[]},{"id":"f542c02a.d7178","type":"comment","name":"Flow to use the existing allotted resource - TBD","info":"","comments":"","x":1467.7498779296875,"y":1409.749927520752,"z":"fd8223be.2936e","wires":[]},{"id":"bbda49e2.2a06b8","type":"comment","name":"Begin setup of new Allotted Resource","info":"","comments":"","x":802.7500457763672,"y":1591.416841506958,"z":"fd8223be.2936e","wires":[]},{"id":"dfa7d0a5.73fd4","type":"set","name":"set ar-identifiers","xml":"<set>\n<parameter name='ar-identifiers.allotted-resource-id' value=\"`$tmp.return.generate-allottedresource-id.id`\" />\n<parameter name='ar-identifiers.allotted-resource-type' value=\"contrail-route\" />\n<parameter name='ar-identifiers.parent-service-instance-id' value=\"`$cto-api.parent-service-instance-id`\" />\n<parameter name='ar-identifiers.consuming-service-instance-id' value=\"`$cto-api.service-instance-id` \" />\n<parameter name=\"tmp.ar.allotted-resource-id\" value=\"`$tmp.return.generate-allottedresource-id.id`\" />\n<parameter name='tmp.ar.allotted-resource-type' value=\"contrail-route\" />\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$cto-api.parent-service-instance-id`\" />\n<!-- <parameter name='tmp.ar.contrail-applied-service-instance-id' value='' /> -->\n","comments":"","x":742.4166717529297,"y":1771.4163599014282,"z":"fd8223be.2936e","wires":[]},{"id":"326513f8.a01924","type":"call","name":"call generate-allottedresource-id","xml":"<call module='GENERIC-RESOURCE-API' rpc='generate-allottedresource-id' mode='sync' >\n","comments":"","outputs":1,"x":793.2258377075195,"y":1723.8451147079468,"z":"fd8223be.2936e","wires":[[]]},{"id":"82250dcd.64764","type":"call","name":"call validate-api-contrail-route-input","xml":"<call module='GENERIC-RESOURCE-API' rpc='validate-api-contrail-route-input' mode='sync' >\n","comments":"","outputs":1,"x":831.0832824707031,"y":346.41666889190674,"z":"fd8223be.2936e","wires":[[]]},{"id":"4b4507fd.641f08","type":"comment","name":"Generate contrail-route-allotted-resource-name","info":"","comments":"","x":806.0833129882812,"y":2394.7499895095825,"z":"fd8223be.2936e","wires":[]},{"id":"dfce0d66.98785","type":"execute","name":"execute Contrail API create network policy","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='network-policy' />\n<parameter name='api-action' value='create' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='default-domain' value='`$cto-api.default-domain`' />\n<parameter name='policy-name' value='`$tmp.fq-name`' />\n<parameter name='default-project' value='`$cto-api.default-project`' /> \n<!-- <parameter name='vipr-service-instance' value='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.contrail-applied-service.contrail-fqdn`' /> -->\n<parameter name='dst-virtual-network' value='`$ctotmp.c-l3-network.contrail-network-fqdn`' />\n<parameter name='src-virtual-network' value='`$ctotmp.s-l3-network.contrail-network-fqdn`' />\n<parameter name='direction' value='<>' />\n<parameter name='cloud-region-id' value='`$cto-api.cloud-region-id`' />\n\n","comments":"","outputs":1,"x":1486.0832824707031,"y":3370.1665449142456,"z":"fd8223be.2936e","wires":[["92f7cb34.8d741","f883d241.386fa8"]]},{"id":"92f7cb34.8d741","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1767.464126586914,"y":3339.5587922669947,"z":"fd8223be.2936e","wires":[["76c29cb0.6bee94"]]},{"id":"f883d241.386fa8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1765.5594482421875,"y":3372.558732032776,"z":"fd8223be.2936e","wires":[["bc08711f.026b2"]]},{"id":"bc08711f.026b2","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=\"`'Failed to create policy in Contrail. '+ $contrailResp.resp-code + ':' +$contrailResp.resp-message `\" />\n","comments":"","x":1925.464256286621,"y":3371.8921794891357,"z":"fd8223be.2936e","wires":[]},{"id":"22859f1a.190d08","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.api-contrail-route-topology-operation-create\"/>\n<parameter name='field3' value='network-policy' />\n<parameter name='field4' value='create' />\n<parameter name='field5' value='contrailResp' />\n<parameter name='field6' value='`$cto-api.default-domain`' />\n<parameter name='field7' value='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.fq-name`' />\n<parameter name='field8' value='`$cto-api.default-project`' />\n<parameter name='field9' value='`$ctotmp.c-l3-network.contrail-network-fqdn`' />\n<parameter name='field10' value='`$ctotmp.s-l3-network.contrail-network-fqdn`' />\n<parameter name='field11' value='<>' />\n<parameter name='field12' value='`$cto-api.cloud-region-id`' />\n\n\n\n","comments":"","outputs":1,"x":1374.1784362792969,"y":3341.177879333496,"z":"fd8223be.2936e","wires":[[]]},{"id":"76c29cb0.6bee94","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1919.6546096801758,"y":3340.225517272949,"z":"fd8223be.2936e","wires":[["ec5e5cc0.84dc"]]},{"id":"b797c1f1.3a6cd","type":"comment","name":"Create contrail network policy","info":"","comments":"","x":1439.416618347168,"y":3303.083293914795,"z":"fd8223be.2936e","wires":[]},{"id":"d9ba8a84.a48ee8","type":"set","name":"set ar-assignments.contrail-id","xml":"<set>\n<parameter name='ar-assignments.contrail-id' value=\"`$contrailResp.network-policy.uuid`\" />\n\n\n\n","comments":"","x":1444.7498779296875,"y":3401.7499895095825,"z":"fd8223be.2936e","wires":[]},{"id":"17c62791.e0bba","type":"switchNode","name":"switch cto-api.isTest","xml":"<switch test='`$cto-api.isTest`'>\n","comments":"","outputs":1,"x":682.7500076293945,"y":3339.749550819397,"z":"fd8223be.2936e","wires":[["7f3a60.3bfda5a","21cedbd5.f69f9c","71aa4797.6d83f8"]]},{"id":"7f3a60.3bfda5a","type":"outcome","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":882.7500534057617,"y":3343.083215713501,"z":"fd8223be.2936e","wires":[["4847b370.9b6efc"]]},{"id":"21cedbd5.f69f9c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":881.0833435058594,"y":3379.7496404647827,"z":"fd8223be.2936e","wires":[["cea0da6e.4187f8"]]},{"id":"71aa4797.6d83f8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":887.7500343322754,"y":3418.08305644989,"z":"fd8223be.2936e","wires":[["4847b370.9b6efc"]]},{"id":"4847b370.9b6efc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1101.083251953125,"y":3343.0832414627075,"z":"fd8223be.2936e","wires":[["22859f1a.190d08","dfce0d66.98785","d9ba8a84.a48ee8"]]},{"id":"7fc0fc65.5a5e64","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.api-contrail-route-topology-operation-create\"/>\n<parameter name='field3' value='network-policy' />\n<parameter name='field4' value='TESTcreate' />\n<parameter name='field5' value='contrailResp' />\n<parameter name='field6' value='`$cto-api.default-domain`' />\n<parameter name='field7' value='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.fq-name`' />\n<parameter name='field8' value='`$cto-api.default-project`' />\n<parameter name='field10' value='`$ctotmp.c-l3-network.contrail-network-fqdn`' />\n<parameter name='field11' value='`$ctotmp.s-l3-network.contrail-network-fqdn`' />\n<parameter name='field12' value='<>' />\n<parameter name='field13' value='`$cto-api.cloud-region-id`' />\n\n\n\n","comments":"","outputs":1,"x":1380.5117874145508,"y":3441.8444213867188,"z":"fd8223be.2936e","wires":[[]]},{"id":"81e3b72c.ed4c2","type":"set","name":"set ar-assignments.contrail-id","xml":"<set>\n<parameter name='ar-assignments.contrail-id' value=\"dummy12345\" />\n\n\n\n","comments":"","x":1447.7498779296875,"y":3476.7497453689575,"z":"fd8223be.2936e","wires":[]},{"id":"cea0da6e.4187f8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1100.083251953125,"y":3439.0832414627075,"z":"fd8223be.2936e","wires":[["7fc0fc65.5a5e64","81e3b72c.ed4c2"]]},{"id":"e040148a.f082c","type":"comment","name":"Create network policy in AAI","info":"","comments":"","x":662.7499747872353,"y":3536.4164934158325,"z":"fd8223be.2936e","wires":[]},{"id":"1e7787ad.0d68a8","type":"save","name":"save AnAI - network-policy","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\" \n\t\tkey=\"network-policy.network-policy-id = $ar-assignments.contrail-id\" >\n<!-- Create network-policy object -->\n<parameter name=\"network-policy-id\" value=\"`$ar-assignments.contrail-id`\" />\n<parameter name=\"network-policy-fqdn\" value=\"`$ar-assignments.fq-name`\" />\n\n\n","comments":"","outputs":1,"x":669.7935333251953,"y":3571.817353248596,"z":"fd8223be.2936e","wires":[["fcabb970.d046e","fb253b0.c7b5ec8","ec0a2bbf.24a89"]]},{"id":"fcabb970.d046e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":921.9009757637978,"y":3562.781409263611,"z":"fd8223be.2936e","wires":[["2e92d1d0.b575ce"]]},{"id":"fb253b0.c7b5ec8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":925.7104735970497,"y":3592.2578258514404,"z":"fd8223be.2936e","wires":[["2e92d1d0.b575ce"]]},{"id":"3b1f3b10.705a0c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1117.4166259765625,"y":3677.4164934158325,"z":"fd8223be.2936e","wires":[["975d575f.5bd068","76e9e56c.5f957c"]]},{"id":"e4cbef08.1b2cb8","type":"comment","name":"DESCOPED: CR177011 - network policy - set relationship to collector service instance -id","info":"","comments":"","x":830.75,"y":3773.749755859375,"z":"fd8223be.2936e","wires":[]},{"id":"1efde37a.eba0f5","type":"save","name":"save AnAI - network-policy relationship to service instances","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy:relationship-list\" \n\tkey=\"network-policy.network-policy-id = $ar-assignments.contrail-id\" >\n\t\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"service-instance\" />\n\t\t<parameter name=\"relationship-list.relationship[0].related-link\"\n\t\t\tvalue=\"`'/aai/v$/business/customers/customer/' + $service-data.service-information.global-customer-id + '/service-subscriptions/service-subscription/' + $cto-api.service-type + '/service-instances/service-instance/' + $collector-service-instance-id`\" />\n \n \n\n","comments":"","outputs":1,"x":762.1268920898438,"y":3814.8171281814575,"z":"fd8223be.2936e","wires":[["b76203a8.07925","5b1ac74f.e6a31"]]},{"id":"b76203a8.07925","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1214.9010009765625,"y":3814.1149797439575,"z":"fd8223be.2936e","wires":[["76ce4e27.d59ec8"]]},{"id":"5b1ac74f.e6a31","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1218.7104988098145,"y":3842.591396331787,"z":"fd8223be.2936e","wires":[["76ce4e27.d59ec8"]]},{"id":"778c350c.8dd8e4","type":"set","name":"Clear tmp data","xml":"<set>\n<parameter name='ctotmp.' value='' />\n\n \n","comments":"","x":591.0833129882812,"y":4748.083022117615,"z":"fd8223be.2936e","wires":[]},{"id":"672a2172.2f5058","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.api-contrail-route-topology-operation-create\"/>\n<parameter name='field3' value='cto-api.parent-service-instance-id' />\n<parameter name='field4' value='`$cto-api.parent-service-instance-id`' />\n<parameter name='field5' value='cto-api.default-domain' />\n<parameter name='field6' value='`$cto-api.default-domain`' />\n<parameter name='field7' value='cto-api.port-mirror-configuration-instance-id' />\n<parameter name='field8' value='`$cto-api.port-mirror-configuration-instance-id`' />\n<parameter name='field9' value='cto-api.service-type' />\n<parameter name='field10' value='`$cto-api.service-type`' />\n<parameter name='field11' value='cto-api.source-network-role' />\n<parameter name='field12' value='`$cto-api.source-network-fole`' />\n<parameter name='field13' value='cto-api.collector-network-role' />\n<parameter name='field14' value='`$cto-api.collector-network-4ole`' />\n<parameter name='field15' value='cto-api.default-project' />\n<parameter name='field16' value='`$cto-api.default-project`' />\n<parameter name='field17' value='cto-api.cloud-region-id' />\n<parameter name='field18' value='`$cto-api.cloud-region-id`' />\n<parameter name='field19' value='cto-api.cloud-owner' />\n<parameter name='field20' value='`$cto-api.cloud-owner`' />\n<parameter name='field21' value='cto-api.isTest' />\n<parameter name='field22' value='`$cto-api.isTest`' />\n<parameter name='field23' value='cto-api.owning-entity' />\n<parameter name='field24' value='`$cto-api.owning-entity`' />\n","comments":"","outputs":1,"x":738.1785659790039,"y":249.4642686843872,"z":"fd8223be.2936e","wires":[[]]},{"id":"76ce4e27.d59ec8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1412.75,"y":3818.7499895095825,"z":"fd8223be.2936e","wires":[["890d32.ed09ead","76e9e56c.5f957c"]]},{"id":"4d7901ed.ca6fb8","type":"update","name":"delete AAI allotted-resource","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $cto-api.contrail-route-allotted-resource-id\">\n\n","comments":"","outputs":1,"x":1799.5,"y":5123.9999895095825,"z":"fd8223be.2936e","wires":[["dc1a9d38.d97ca","531a6c1a.e19374"]]},{"id":"dc1a9d38.d97ca","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2053.1508026123047,"y":5102.460497379303,"z":"fd8223be.2936e","wires":[[]]},{"id":"531a6c1a.e19374","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2058.460231781006,"y":5138.031915187836,"z":"fd8223be.2936e","wires":[[]]},{"id":"139d91c1.e6a6be","type":"comment","name":"Update AAI AR","info":"","comments":"","x":1760.7317276000977,"y":5088.650766849518,"z":"fd8223be.2936e","wires":[]},{"id":"ec5f0e07.a1f8c8","type":"save","name":"delete AnAI - network-policy","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\" \n\t\tkey=\"network-policy.network-policy-id = $ar-assignments.contrail-id\" >\n\n\n\n","comments":"","outputs":1,"x":1793.5,"y":4924.2499895095825,"z":"fd8223be.2936e","wires":[["b7a00272.5b5f","c5732bd5.d065d"]]},{"id":"b7a00272.5b5f","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2040.750072479248,"y":4894.750135421753,"z":"fd8223be.2936e","wires":[[]]},{"id":"c5732bd5.d065d","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2044.5595703125,"y":4924.2265520095825,"z":"fd8223be.2936e","wires":[[]]},{"id":"651e0a3a.ba13e4","type":"comment","name":"Call contrail api here","info":"","comments":"","x":1771.2500228881836,"y":4980.7500931322575,"z":"fd8223be.2936e","wires":[]},{"id":"b22dc036.227bf8","type":"execute","name":"execute Contrail API delete network policy","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='network-policy' />\n<parameter name='api-action' value='delete' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='cloud-region-id' value='`$cto-api.cloud-region-id`' />\n<parameter name='default-project' value='`$cto-api.default-project`' />\n<parameter name='default-domain' value='`$cto-api.default-domain`' />\n<parameter name='contrail-network-policy-id' value='`$ar-assignments.contrail-id`' />\n\n","comments":"","outputs":1,"x":1843.2579345703125,"y":5012.7265520095825,"z":"fd8223be.2936e","wires":[["6ac63408.baa50c","d216f91d.6fa1a8","6b2140a3.641028"]]},{"id":"6ac63408.baa50c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2144.638885498047,"y":4978.7577374614775,"z":"fd8223be.2936e","wires":[[]]},{"id":"d216f91d.6fa1a8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2146.067543029785,"y":5049.535438209772,"z":"fd8223be.2936e","wires":[[]]},{"id":"6b2140a3.641028","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2147.3531646728516,"y":5011.639142662287,"z":"fd8223be.2936e","wires":[[]]},{"id":"48bf8bcb.6c23b4","type":"comment","name":"Consilidate the rollback","info":"","comments":"","x":1194.75,"y":4811.4999895095825,"z":"fd8223be.2936e","wires":[]},{"id":"975d575f.5bd068","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 save allotted resource in AAI\"/>","comments":"","x":1338.75,"y":3677.7499895095825,"z":"fd8223be.2936e","wires":[]},{"id":"76e9e56c.5f957c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":870.75,"y":4972.2499895095825,"z":"fd8223be.2936e","wires":[["908cdbbc.fcfad","f0f708f9.48ace8","be261c82.caf37","ea1c5d0f.4a65f8","fcc7ec18.4965b","8e7b341.ec30848"]]},{"id":"908cdbbc.fcfad","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 creating contrail route - ' + $tmp.error-message`\"/>","comments":"","x":1170.75,"y":5294.7499895095825,"z":"fd8223be.2936e","wires":[]},{"id":"6506a4f5.c15bac","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 save network-policy in AAI\"/>","comments":"","x":1346.75,"y":3566.2499895095825,"z":"fd8223be.2936e","wires":[]},{"id":"2e92d1d0.b575ce","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1106.75,"y":3565.2499895095825,"z":"fd8223be.2936e","wires":[["6506a4f5.c15bac","76e9e56c.5f957c"]]},{"id":"f0f708f9.48ace8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"ROLLING BACK the create due to error\"/>\n","comments":"","outputs":1,"x":1157.75,"y":4845.4999895095825,"z":"fd8223be.2936e","wires":[[]]},{"id":"ec5e5cc0.84dc","type":"set","name":"set contrail-created - true","xml":"<set>\n<parameter name=\"contrail-created\" value=\"true\" />","comments":"","x":2124,"y":3339.4999895095825,"z":"fd8223be.2936e","wires":[]},{"id":"7803f431.03b724","type":"set","name":"set np-aai-created - true","xml":"<set>\n<parameter name=\"np-aai-created\" value=\"\" />\n","comments":"","x":1289,"y":3529.4999895095825,"z":"fd8223be.2936e","wires":[]},{"id":"ec0a2bbf.24a89","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":927,"y":3528.4999895095825,"z":"fd8223be.2936e","wires":[["2f05fc17.424bb4"]]},{"id":"2f05fc17.424bb4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1086,"y":3529.4999895095825,"z":"fd8223be.2936e","wires":[["7803f431.03b724"]]},{"id":"1fca8b85.38bd4c","type":"set","name":"set ar-aai-created - true","xml":"<set>\n<parameter name=\"ar-aai-created\" value=\"\" />","comments":"","x":1277,"y":3636.4999895095825,"z":"fd8223be.2936e","wires":[]},{"id":"e80c53f2.a704a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":915,"y":3635.4999895095825,"z":"fd8223be.2936e","wires":[["146837ae.85637"]]},{"id":"146837ae.85637","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1074,"y":3636.4999895095825,"z":"fd8223be.2936e","wires":[["1fca8b85.38bd4c"]]},{"id":"116fe1e8.80164e","type":"set","name":"set ar-created - true","xml":"<set>\n<parameter name=\"ar-created\" value=\"true\" />","comments":"","x":1306,"y":4539.4999895095825,"z":"fd8223be.2936e","wires":[]},{"id":"51fd5b3b.c2a0dc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":944,"y":4538.4999895095825,"z":"fd8223be.2936e","wires":[["322e5dfb.34bfe2"]]},{"id":"322e5dfb.34bfe2","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1103,"y":4539.4999895095825,"z":"fd8223be.2936e","wires":[["116fe1e8.80164e"]]},{"id":"be261c82.caf37","type":"switchNode","name":"switch np-aai-created","xml":"<switch test='`$np-aai-created`'>\n","comments":"","outputs":1,"x":1204.75,"y":4888.4999895095825,"z":"fd8223be.2936e","wires":[["8c52ad11.a1c0e","9040dc3c.a5a528"]]},{"id":"8c52ad11.a1c0e","type":"outcome","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1404.7500457763672,"y":4891.8336544036865,"z":"fd8223be.2936e","wires":[[]]},{"id":"9040dc3c.a5a528","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1407.0833740234375,"y":4926.4999895095825,"z":"fd8223be.2936e","wires":[["9c1b45b6.b3144"]]},{"id":"9c1b45b6.b3144","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1573.083251953125,"y":4924.8334856033325,"z":"fd8223be.2936e","wires":[["ec5f0e07.a1f8c8"]]},{"id":"ea1c5d0f.4a65f8","type":"switchNode","name":"switch contrail-created","xml":"<switch test='`$contrail-created`'>\n","comments":"","outputs":1,"x":1200.25,"y":4977.9999895095825,"z":"fd8223be.2936e","wires":[["b2997208.7a8af","607d5a5a.f07054"]]},{"id":"b2997208.7a8af","type":"outcome","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1400.2500457763672,"y":4981.3336544036865,"z":"fd8223be.2936e","wires":[[]]},{"id":"607d5a5a.f07054","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1402.5833740234375,"y":5015.9999895095825,"z":"fd8223be.2936e","wires":[["acea7ab2.ddb138"]]},{"id":"acea7ab2.ddb138","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1568.583251953125,"y":5014.3334856033325,"z":"fd8223be.2936e","wires":[["b22dc036.227bf8"]]},{"id":"fcc7ec18.4965b","type":"switchNode","name":"switch ar-aai-created","xml":"<switch test='`$ar-aai-created`'>\n","comments":"","outputs":1,"x":1198,"y":5087.7499895095825,"z":"fd8223be.2936e","wires":[["eada59bc.798f18","fb9f19d2.609ec8"]]},{"id":"eada59bc.798f18","type":"outcome","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1398.0000457763672,"y":5091.0836544036865,"z":"fd8223be.2936e","wires":[[]]},{"id":"fb9f19d2.609ec8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1400.3333740234375,"y":5125.7499895095825,"z":"fd8223be.2936e","wires":[["2cd682e1.7c396e"]]},{"id":"2cd682e1.7c396e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1566.333251953125,"y":5124.0834856033325,"z":"fd8223be.2936e","wires":[["4d7901ed.ca6fb8"]]},{"id":"8e7b341.ec30848","type":"switchNode","name":"switch ar-created","xml":"<switch test='`$ar-created`'>\n","comments":"","outputs":1,"x":1201.25,"y":5203.4999895095825,"z":"fd8223be.2936e","wires":[["8b1db97b.6e8948","e4b97998.57d95"]]},{"id":"8b1db97b.6e8948","type":"outcome","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1401.2500457763672,"y":5206.8336544036865,"z":"fd8223be.2936e","wires":[[]]},{"id":"e4b97998.57d95","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1403.5833740234375,"y":5241.4999895095825,"z":"fd8223be.2936e","wires":[["a6a522a1.9de19"]]},{"id":"a6a522a1.9de19","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1569.583251953125,"y":5239.8334856033325,"z":"fd8223be.2936e","wires":[["7c35b738.cd6098"]]},{"id":"7c35b738.cd6098","type":"execute","name":"execute RestApiCallNode - DELETE AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cr.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":1839.5,"y":5236.2499895095825,"z":"fd8223be.2936e","wires":[["86fb884b.0720f","31a6b86d.d51c48"]]},{"id":"86fb884b.0720f","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2116.5,"y":5235.2499895095825,"z":"fd8223be.2936e","wires":[[]]},{"id":"31a6b86d.d51c48","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2121.809429168701,"y":5270.821407318115,"z":"fd8223be.2936e","wires":[[]]},{"id":"890d32.ed09ead","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 save network policy relationship to port mirror service and parent service in AAI\"/>","comments":"","x":1638,"y":3818.2499895095825,"z":"fd8223be.2936e","wires":[]},{"id":"9703e7ab.bcf26","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=\"Error updating md-sal for contrail-route-allotted-resource\"/>","comments":"","x":1410,"y":4176.7499895095825,"z":"fd8223be.2936e","wires":[]},{"id":"10882401.6b38ec","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1210,"y":4178.7499895095825,"z":"fd8223be.2936e","wires":[["9703e7ab.bcf26","76e9e56c.5f957c"]]},{"id":"b5d85abf.060458","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=\"API-contrail-route-topology-operation-create: Collector network not found from aai\" />\n","comments":"","x":1583.75,"y":952.75,"z":"fd8223be.2936e","wires":[]},{"id":"94eb59a2.0945b","type":"for","name":"for each relationship","xml":"<for index='ridx' start='0' end='`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.relationship-list.relationship_length`' >\n","comments":"","outputs":1,"x":2166.5,"y":1038.75,"z":"fd8223be.2936e","wires":[["9b2fcf60.76ea18"]]},{"id":"9b2fcf60.76ea18","type":"switchNode","name":"switch related-to","xml":"<switch test='`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.relationship-list.relationship[$ridx].related-to`'>\n","comments":"","outputs":1,"x":2381.178466796875,"y":1038.4998779296875,"z":"fd8223be.2936e","wires":[["347998a7.5c8ed","cb6fc427.9ea1d8"]]},{"id":"347998a7.5c8ed","type":"outcome","name":"service-instance","xml":"<outcome value='service-instance'>\n","comments":"","outputs":1,"x":2574.642822265625,"y":1037.8927612304688,"z":"fd8223be.2936e","wires":[["fee79290.82309"]]},{"id":"fee79290.82309","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2753.40478515625,"y":1038.9880981445312,"z":"fd8223be.2936e","wires":[["e5e787d0.c4657"]]},{"id":"4f621b29.09adec","type":"configure","name":"set collector service instance id","xml":"<set>\n<parameter name=\"collector-service-instance-id\" value=\"`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-value`\" />\n\n","comments":"","outputs":1,"x":3965.25,"y":1037.7499389648438,"z":"fd8223be.2936e","wires":[[]]},{"id":"e5e787d0.c4657","type":"for","name":"for each relationship data","xml":"<for index='rdidx' start='0' end='`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.relationship-list.relationship[$ridx].relationship-data_length`' >\n","comments":"","outputs":1,"x":2969.75,"y":1038,"z":"fd8223be.2936e","wires":[["393822bb.644d6e"]]},{"id":"393822bb.644d6e","type":"switchNode","name":"switch relationship-key","xml":"<switch test='`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-key`'>\n","comments":"","outputs":1,"x":3205.428466796875,"y":1037.7498779296875,"z":"fd8223be.2936e","wires":[["7c9ef3ae.b747f4"]]},{"id":"7c9ef3ae.b747f4","type":"outcome","name":"service-instance.service-instance-id","xml":"<outcome value='service-instance.service-instance-id'>\n","comments":"","outputs":1,"x":3484.892822265625,"y":1037.142822265625,"z":"fd8223be.2936e","wires":[["f1dcb03d.c2cd4"]]},{"id":"f1dcb03d.c2cd4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3727.65478515625,"y":1038.238037109375,"z":"fd8223be.2936e","wires":[["4f621b29.09adec"]]},{"id":"cb6fc427.9ea1d8","type":"outcome","name":"network-policy","xml":"<outcome value='network-policy'>\n","comments":"","outputs":1,"x":2580.5,"y":1101.25,"z":"fd8223be.2936e","wires":[["48d9f017.24fff8"]]},{"id":"48d9f017.24fff8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2759.261962890625,"y":1102.3453369140625,"z":"fd8223be.2936e","wires":[["40c1b7bc.2f5e88"]]},{"id":"40c1b7bc.2f5e88","type":"for","name":"for each relationship data","xml":"<for index='rdidx' start='0' end='`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.relationship-list.relationship[$ridx].relationship-data_length`' >\n","comments":"","outputs":1,"x":2975.607177734375,"y":1101.3572387695312,"z":"fd8223be.2936e","wires":[["163ead0a.7302ab"]]},{"id":"163ead0a.7302ab","type":"switchNode","name":"switch relationship-key","xml":"<switch test='`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-key`'>\n","comments":"","outputs":1,"x":3211.28564453125,"y":1101.1071166992188,"z":"fd8223be.2936e","wires":[["b60cc617.96d9f"]]},{"id":"b60cc617.96d9f","type":"outcome","name":"network-policy.network-policy-id","xml":"<outcome value='network-policy.network-policy-id'>\n","comments":"","outputs":1,"x":3490.75,"y":1100.5000610351562,"z":"fd8223be.2936e","wires":[["a3b2831.7275e"]]},{"id":"a3b2831.7275e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3733.511962890625,"y":1101.5952758789062,"z":"fd8223be.2936e","wires":[["902a0d6f.7b879","504ee0c3.1648b8","205a6ec0.806dea"]]},{"id":"504ee0c3.1648b8","type":"configure","name":"set ctotmp.num-c-np","xml":"<set>\n<parameter name=\"ctotmp.num-c-np\" value=\"`$ctotmp.num-c-np+1`\" />\n","comments":"","outputs":1,"x":3966.5,"y":1127.25,"z":"fd8223be.2936e","wires":[[]]},{"id":"902a0d6f.7b879","type":"configure","name":"add c-network-policy-id to list","xml":"<set>\n<parameter name=\"ctotmp.c-network-policy-list[$ctotmp.num-c-np].network-policy-id\" value=\"`$ctotmp.aai.collector-network.results[$ctotmp.cidx].l3-network.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-value`\" />\n\n","comments":"","outputs":1,"x":3989.2617568969727,"y":1100.8691596984863,"z":"fd8223be.2936e","wires":[[]]},{"id":"205a6ec0.806dea","type":"configure","name":"set c-network-policy-list_length","xml":"<set>\n<parameter name=\"ctotmp.c-network-policy-list_length\" value=\"`$ctotmp.num-c-np`\" />\n","comments":"","outputs":1,"x":3991.9286403656006,"y":1164.5358610153198,"z":"fd8223be.2936e","wires":[[]]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-deactivate.json index 8334c78b..d605c620 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-deactivate.json @@ -117,7 +117,7 @@ "id": "cdda444b.68b9e8", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology?content=config'` \" />\n\n", "comments": "", "x": 582.9920043945312, "y": 517.0000739097595, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-delete.json index 2567185d..ee5a9622 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-delete.json @@ -1 +1 @@ -[{"id":"df974283.904838","type":"dgstart","name":"DGSTART","outputs":1,"x":311.75,"y":158.66666412353516,"z":"a04d05aa.96dde8","wires":[["3acfd36b.0baa74"]]},{"id":"3acfd36b.0baa74","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":457.9880828857422,"y":233.61905765533447,"z":"a04d05aa.96dde8","wires":[["9a66d8b7.be1fe8"]]},{"id":"9a66d8b7.be1fe8","type":"method","name":"api-contrail-route-topology-operation-delete","xml":"<method rpc='api-contrail-route-topology-operation-delete' mode='sync'>\n","comments":"","outputs":1,"x":540.9048461914062,"y":304.8571090698242,"z":"a04d05aa.96dde8","wires":[["73856450.29c29c"]]},{"id":"73856450.29c29c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":446.2261848449707,"y":446.19044828414917,"z":"a04d05aa.96dde8","wires":[["48e06f2b.f80d9","a42cbd9b.c72d78","390840cf.ea062","fdec1e33.2d584","4e7df2db.c66804","24e1937a.d92304","a5491397.e63d","b0e2fb65.4d72a8","5ff8263f.c34fe","37d8e562.438482","5cd931aa.cf1c9","f4ad5e9.3b0dd2","7eeb9c2a.4b203c","30ba6f49.d097d8","7bd3eb16.82f6d4","68d3b550.c2328c","a48b96ce.6aa88","bdea225f.6f7fc8","e717d7fd.25afe8","25bfe2f3.42be26"]]},{"id":"a42cbd9b.c72d78","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":688.1866493225098,"y":2109.881513595581,"z":"a04d05aa.96dde8","wires":[]},{"id":"48e06f2b.f80d9","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='contrail-route-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $contrail-route-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n","comments":"","x":724.7183570861816,"y":1995.6706681251526,"z":"a04d05aa.96dde8","wires":[]},{"id":"390840cf.ea062","type":"execute","name":"execute Properties - pull properties file","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":795.9656982421875,"y":931.1759785413742,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"4e7df2db.c66804","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":798.60205078125,"y":1070.2372941970825,"z":"a04d05aa.96dde8","wires":[["3e55c079.a5837","6436bb5b.c26b3c"]]},{"id":"fdec1e33.2d584","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cr-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$cto-api.contrail-route-allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":767.8148956298828,"y":963.1839027404785,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"3e55c079.a5837","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1050.564842224121,"y":1069.9340190887451,"z":"a04d05aa.96dde8","wires":[["a646265f.47ea7"]]},{"id":"24e1937a.d92304","type":"execute","name":"execute RestApiCallNode - DELETE AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cr.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":787.8269882202148,"y":1948.767650127411,"z":"a04d05aa.96dde8","wires":[["29da9919.d1d6b6","bdfa5346.70b88","6479a17.ea4a8e"]]},{"id":"29da9919.d1d6b6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1058.1350059509277,"y":2001.7658509239554,"z":"a04d05aa.96dde8","wires":[["a652f709.2d7f38"]]},{"id":"bdfa5346.70b88","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1049.1350555419922,"y":1970.265876673162,"z":"a04d05aa.96dde8","wires":[["a652f709.2d7f38"]]},{"id":"6479a17.ea4a8e","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1052.8850936889648,"y":1940.6229815483093,"z":"a04d05aa.96dde8","wires":[["d4a11274.e8fd"]]},{"id":"a652f709.2d7f38","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=\"Error updating md-sal for contrail-route-allotted-resource\" />\n","comments":"","x":1218.8850936889648,"y":1971.01590051502,"z":"a04d05aa.96dde8","wires":[]},{"id":"a646265f.47ea7","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1219.5648460388184,"y":1070.4339199066162,"z":"a04d05aa.96dde8","wires":[["8d7eabfa.167cc8"]]},{"id":"8d7eabfa.167cc8","type":"switchNode","name":"switch cr length","xml":"<switch test='`$mdsal-ar.contrail-route-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1431.533187866211,"y":1069.8308267593384,"z":"a04d05aa.96dde8","wires":[["d5a911b3.ffec88","cfb45605.4899b8"]]},{"id":"d5a911b3.ffec88","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1619.7553939819336,"y":1069.0530071258545,"z":"a04d05aa.96dde8","wires":[["6816e818.3220d"]]},{"id":"f2f09ff7.0045a","type":"set","name":"set ar from get","xml":"<set>\n<parameter name='ar.' value='$mdsal-ar.contrail-route-allotted-resource[0].' />\n","comments":"","x":2024.0572929382324,"y":1102.6245155334473,"z":"a04d05aa.96dde8","wires":[]},{"id":"6816e818.3220d","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1804.2792835235596,"y":1068.9578409194946,"z":"a04d05aa.96dde8","wires":[["f2f09ff7.0045a","2304cd9.2986e32"]]},{"id":"6e1274a3.dd6cac","type":"comment","name":"GET allotted-resource from mdsal","info":"","comments":"","x":779.6758880615234,"y":1035.3228569030762,"z":"a04d05aa.96dde8","wires":[]},{"id":"2304cd9.2986e32","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-cr-ar' value='$mdsal-ar.' />\n","comments":"","x":2111.9143447875977,"y":1069.4340076446533,"z":"a04d05aa.96dde8","wires":[]},{"id":"426e51cf.16c37","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":740.9299468994141,"y":896.1243171691895,"z":"a04d05aa.96dde8","wires":[]},{"id":"d4a11274.e8fd","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1194.5410614013672,"y":1936.8151507377625,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"79d75df3.055734","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Contrail Route not found in md-sal\" />\n \n","comments":"","x":1794.4169921875,"y":1170.3334121704102,"z":"a04d05aa.96dde8","wires":[]},{"id":"6436bb5b.c26b3c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1042.4166450500488,"y":1115.0001039505005,"z":"a04d05aa.96dde8","wires":[["2087473c.3ecd6"]]},{"id":"2087473c.3ecd6","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1222.4165954589844,"y":1115.666654586792,"z":"a04d05aa.96dde8","wires":[["79d75df3.055734"]]},{"id":"cfb45605.4899b8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1608.0833473205566,"y":1115.3333673477173,"z":"a04d05aa.96dde8","wires":[["79d75df3.055734"]]},{"id":"7531096a.c15c5","type":"comment","name":"Need to rollback aai here","info":"","comments":"","x":1444.96435546875,"y":1970.3334956169128,"z":"a04d05aa.96dde8","wires":[]},{"id":"a5491397.e63d","type":"update","name":"delete AAI allotted-resource","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $cto-api.contrail-route-allotted-resource-id\">\n\n","comments":"","outputs":1,"x":752.0754089355469,"y":1479.1111221313477,"z":"a04d05aa.96dde8","wires":[["e4bc276b.df95e","4d6316f5.70cf88"]]},{"id":"e4bc276b.df95e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1005.7262115478516,"y":1457.5716300010681,"z":"a04d05aa.96dde8","wires":[["1207feb3.ce5da1"]]},{"id":"4d6316f5.70cf88","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1011.0356407165527,"y":1493.1430478096008,"z":"a04d05aa.96dde8","wires":[["1207feb3.ce5da1"]]},{"id":"1207feb3.ce5da1","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=\"AAI failed\" />\n","comments":"","x":1220.8214263916016,"y":1459.1906743049622,"z":"a04d05aa.96dde8","wires":[]},{"id":"27d3b51a.5b1dc2","type":"comment","name":"Update AAI AR","info":"","comments":"","x":713.3071365356445,"y":1443.761899471283,"z":"a04d05aa.96dde8","wires":[]},{"id":"b0e2fb65.4d72a8","type":"set","name":"set ar-assignments","xml":"<set>\n<parameter name='ar-assignments.' value=\"`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.`\" />\n\n\n\n","comments":"","x":734.5595550537109,"y":1118.4604206085205,"z":"a04d05aa.96dde8","wires":[]},{"id":"5e880cbf.42aa6c","type":"comment","name":"Call contrail api here","info":"","comments":"","x":735.7579727172852,"y":1198.111089706421,"z":"a04d05aa.96dde8","wires":[]},{"id":"5ff8263f.c34fe","type":"execute","name":"execute Contrail API delete network policy","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='network-policy' />\n<parameter name='api-action' value='delete' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='cloud-region-id' value='`$cto-api.cloud-region-id`' />\n<parameter name='default-project' value='`$cto-api.default-project`' />\n<parameter name='default-domain' value='`$cto-api.default-domain`' />\n<parameter name='contrail-network-policy-id' value='`$ar-assignments.contrail-id`' />\n\n","comments":"","outputs":1,"x":807.7658843994141,"y":1230.087548583746,"z":"a04d05aa.96dde8","wires":[["6114ce41.1008","212d8de4.467eaa","98d5c18b.8e5f8"]]},{"id":"6114ce41.1008","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1109.1468353271484,"y":1196.118734035641,"z":"a04d05aa.96dde8","wires":[["cc339bb2.32dc08"]]},{"id":"212d8de4.467eaa","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1110.5754928588867,"y":1266.8964347839355,"z":"a04d05aa.96dde8","wires":[["df1fe041.e9c678"]]},{"id":"df1fe041.e9c678","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=\"Failed to delete policy in Contrail\" />\n","comments":"","x":1258.257968902588,"y":1265.118709564209,"z":"a04d05aa.96dde8","wires":[]},{"id":"cc339bb2.32dc08","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1261.3373184204102,"y":1196.7854590415955,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"4a34e05d.2fb3d","type":"comment","name":"Delete network policy in AAI","info":"","comments":"","x":752.305549621582,"y":1312.6667261123657,"z":"a04d05aa.96dde8","wires":[]},{"id":"37d8e562.438482","type":"save","name":"delete AnAI - network-policy","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\" \n\t\tkey=\"network-policy.network-policy-id = $ar-assignments.contrail-id\" >\n\n\n\n","comments":"","outputs":1,"x":767.6824340820312,"y":1348.7342910766602,"z":"a04d05aa.96dde8","wires":[["3a904ac8.8fe2f6","a8f8b714.3c2278"]]},{"id":"e3549d5e.09f13","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=\"Failed to delete network policy in AAI\" />\n","comments":"","x":1240.0279426574707,"y":1340.0159044265747,"z":"a04d05aa.96dde8","wires":[]},{"id":"3a904ac8.8fe2f6","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1011.4565505981445,"y":1339.031641960144,"z":"a04d05aa.96dde8","wires":[["e3549d5e.09f13"]]},{"id":"a8f8b714.3c2278","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1015.2660484313965,"y":1368.5080585479736,"z":"a04d05aa.96dde8","wires":[["e3549d5e.09f13"]]},{"id":"9b7b36e7.031118","type":"comment","name":"Parameters","info":"INPUT:\ncto-api.default-domain\ncto-api.default-project\ncto-api.cloud-region-id\ncto-api.contrail-route-allotted-resource-id\ncto-api.rollback-flag\ncto-api.configuration-id\n","comments":"","x":576.0833435058594,"y":155,"z":"a04d05aa.96dde8","wires":[]},{"id":"5cd931aa.cf1c9","type":"configure","name":"set default values","xml":"<set>\n<parameter name=\"ctotmp.action\" value=\"delete\" />\n<parameter name=\"ctotmp.config-count\" value=\"0\" />\n<parameter name=\"ctotmp.config-found\" value=\"true\" />","comments":"","outputs":1,"x":752.6388168334961,"y":444.6666660308838,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"f4ad5e9.3b0dd2","type":"call","name":"call validate-api-contrail-route-input","xml":"<call module='GENERIC-RESOURCE-API' rpc='validate-api-contrail-route-input' mode='sync' >\n","comments":"","outputs":1,"x":804.8611145019531,"y":478.5555839538574,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"7eeb9c2a.4b203c","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.api-contrail-route-topology-operation-delete\"/>\n<parameter name='field3' value='cto-api.parent-service-instance-id' />\n<parameter name='field4' value='`$cto-api.parent-service-instance-id`' />\n<parameter name='field5' value='cto-api.default-domain' />\n<parameter name='field6' value='`$cto-api.default-domain`' />\n<parameter name='field7' value='cto-api.port-mirror-configuration-instance-id' />\n<parameter name='field8' value='`$cto-api.port-mirror-configuration-instance-id`' />\n<parameter name='field9' value='cto-api.service-type' />\n<parameter name='field10' value='`$cto-api.service-type`' />\n<parameter name='field11' value='cto-api.source-network-role' />\n<parameter name='field12' value='`$cto-api.source-network-fole`' />\n<parameter name='field13' value='cto-api.collector-network-role' />\n<parameter name='field14' value='`$cto-api.collector-network-4ole`' />\n<parameter name='field15' value='cto-api.default-project' />\n<parameter name='field16' value='`$cto-api.default-project`' />\n<parameter name='field17' value='cto-api.cloud-region-id' />\n<parameter name='field18' value='`$cto-api.cloud-region-id`' />\n<parameter name='field19' value='cto-api.cloud-owner' />\n<parameter name='field20' value='`$cto-api.cloud-owner`' />\n<parameter name='field21' value='cto-api.isTest' />\n<parameter name='field22' value='`$cto-api.isTest`' />\n<parameter name='field23' value='service-data.service-information.global-customer-id' />\n<parameter name='field24' value='`$service-data.service-information.global-customer-id`' />\n","comments":"","outputs":1,"x":721.8611068725586,"y":377.73014736175537,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"7bd3eb16.82f6d4","type":"update","name":"get AAI allotted-resource","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $cto-api.contrail-route-allotted-resource-id\"\n pfx='aai.ar' local-only='false' >\n\n","comments":"","outputs":1,"x":778.0515594482422,"y":552.174599647522,"z":"a04d05aa.96dde8","wires":[["ee1b625f.50a488","56af5df.ef970a4","e2a7caea.66427"]]},{"id":"ee1b625f.50a488","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1006.5119018554688,"y":554.0160541534424,"z":"a04d05aa.96dde8","wires":[["e58a245b.cdd508"]]},{"id":"56af5df.ef970a4","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1017.3768005371094,"y":587.3652114868164,"z":"a04d05aa.96dde8","wires":[["65e4a356.63e61c"]]},{"id":"e58a245b.cdd508","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=\"AAI failed\" />\n","comments":"","x":1943.8293380737305,"y":550.0795211791992,"z":"a04d05aa.96dde8","wires":[]},{"id":"30ba6f49.d097d8","type":"configure","name":"clear internal data","xml":"<set>\n<parameter name=\"ctotmp.\" value=\"\" />\n","comments":"","outputs":1,"x":754.0833358764648,"y":408.4444885253906,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"39e90493.8f2e8c","type":"switchNode","name":"switch rollback-flag","xml":"<switch test='`$cto-api.rollback-flag`'>\n","comments":"","outputs":1,"x":1392.972267150879,"y":587.111083984375,"z":"a04d05aa.96dde8","wires":[["f5f6cee5.3320b","6b2175e6.b048a4"]]},{"id":"65e4a356.63e61c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":1189.6388931274414,"y":588.1111278533936,"z":"a04d05aa.96dde8","wires":[["39e90493.8f2e8c"]]},{"id":"f5f6cee5.3320b","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1578.5278053283691,"y":586.7777576446533,"z":"a04d05aa.96dde8","wires":[["79da048c.853c24"]]},{"id":"dd4149ba.e84128","type":"comment","name":"check if AR exists in AAI","info":"","comments":"","x":772.9722213745117,"y":514.5555629730225,"z":"a04d05aa.96dde8","wires":[]},{"id":"6b2175e6.b048a4","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1582.9721145629883,"y":618.9999198913574,"z":"a04d05aa.96dde8","wires":[["e58a245b.cdd508"]]},{"id":"68d3b550.c2328c","type":"for","name":"for relationship list","xml":"<for silentFailure='true' index='ridx' start='0' end=\"`$aai.ar.relationship-list.relationship_length`\" >\n","comments":"","outputs":1,"x":739.0833129882812,"y":747.4523906707764,"z":"a04d05aa.96dde8","wires":[["1b43e690.d53209"]]},{"id":"ed5ea8c8.d68408","type":"switchNode","name":"switch","xml":"<switch test='`$aai.ar.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-key`'>\n","comments":"","outputs":1,"x":1140.138469696045,"y":750.0553770065308,"z":"a04d05aa.96dde8","wires":[["11abf495.9e996b"]]},{"id":"1b43e690.d53209","type":"for","name":"for relationship data","xml":"<for silentFailure='false' index='rdidx' start='0' end=\"`$aai.ar.relationship-list.relationship[$ridx].relationship-data_length`\" >\n","comments":"","outputs":1,"x":955.3330612182617,"y":748.4166250228882,"z":"a04d05aa.96dde8","wires":[["ed5ea8c8.d68408"]]},{"id":"11abf495.9e996b","type":"other","name":"configuration.configuration-id","xml":"<outcome value='configuration.configuration-id'>\n","comments":"","outputs":1,"x":1364.860725402832,"y":750.6942253112793,"z":"a04d05aa.96dde8","wires":[["aef97856.ce1b6"]]},{"id":"aef97856.ce1b6","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1588.7216720581055,"y":750.6665563583374,"z":"a04d05aa.96dde8","wires":[["da49b6ab.8f85f8","5294fcec.e89854"]]},{"id":"da49b6ab.8f85f8","type":"switchNode","name":"switch relationship_value","xml":"<switch test='`$aai.ar.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-value == $cto-api.configuration-id`'>\n","comments":"","outputs":1,"x":1816.3056945800781,"y":787.6666469573975,"z":"a04d05aa.96dde8","wires":[["83c2d256.3c16d"]]},{"id":"5294fcec.e89854","type":"set","name":"increment config count","xml":"<set>\n<parameter name='ctotmp.config-count' value='`$ctotmp.config-count+1`' />\n","comments":"","x":1810.7500305175781,"y":752.3332982063293,"z":"a04d05aa.96dde8","wires":[]},{"id":"83c2d256.3c16d","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2039.52783203125,"y":787.1111221313477,"z":"a04d05aa.96dde8","wires":[["9dbab233.06c6f"]]},{"id":"ba821080.6d606","type":"set","name":"set config found","xml":"<set>\n<parameter name='ctotmp.config-found' value='true' />\n","comments":"","x":2398.4168434143066,"y":786.8889141082764,"z":"a04d05aa.96dde8","wires":[]},{"id":"9dbab233.06c6f","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":2200.638843536377,"y":786.8889055252075,"z":"a04d05aa.96dde8","wires":[["ba821080.6d606"]]},{"id":"a48b96ce.6aa88","type":"switchNode","name":"switch config count is 1 and found is true","xml":"<switch test=\"`$ctotmp.config-count == 1 and $ctotmp.config-found == 'true'`\">\n","comments":"","outputs":1,"x":801.0356597900391,"y":850.031702041626,"z":"a04d05aa.96dde8","wires":[["5497da6e.a8ab04","1eef5d93.dd9e2a"]]},{"id":"1eef5d93.dd9e2a","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1054.527783711751,"y":873.5555087195502,"z":"a04d05aa.96dde8","wires":[["31e92ab.8dfafd6"]]},{"id":"5497da6e.a8ab04","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1052.3056030273438,"y":843.5555191040039,"z":"a04d05aa.96dde8","wires":[["29500ab5.fd810e"]]},{"id":"31e92ab.8dfafd6","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1217.8610534667969,"y":872.4443607330322,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"75ecc999.38973","type":"comment","name":"check if there is > 1 relationship to configuration id for this AR","info":"","comments":"","x":861.8611297607422,"y":710.1110916137695,"z":"a04d05aa.96dde8","wires":[]},{"id":"29500ab5.fd810e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1216.7499313354492,"y":840.2222023010254,"z":"a04d05aa.96dde8","wires":[["7a507900.94fec"]]},{"id":"79da048c.853c24","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1741.861089706421,"y":587.888858795166,"z":"a04d05aa.96dde8","wires":[["49e138a7.52ab1"]]},{"id":"e2a7caea.66427","type":"failure","name":"Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1014.083345413208,"y":617.8888931274414,"z":"a04d05aa.96dde8","wires":[["b2354214.a5c4e"]]},{"id":"b2354214.a5c4e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1195.1943969726562,"y":616.7777481079102,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"49e138a7.52ab1","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":1948.5277099609375,"y":584.5555191040039,"z":"a04d05aa.96dde8","wires":[]},{"id":"98d5c18b.8e5f8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1111.8611145019531,"y":1229.0001392364502,"z":"a04d05aa.96dde8","wires":[["cc339bb2.32dc08"]]},{"id":"7a507900.94fec","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=\"AAI Allotted resource is not tied to configuration object\" />\n","comments":"","x":1407.7500076293945,"y":839.6666507720947,"z":"a04d05aa.96dde8","wires":[]},{"id":"25bfe2f3.42be26","type":"switchNode","name":"switch config count is > 1","xml":"<switch test=\"`$ctotmp.config-count > 1`\">\n","comments":"","outputs":1,"x":754.75,"y":808.6666641235352,"z":"a04d05aa.96dde8","wires":[["2bb9b7c5.0d3e3"]]},{"id":"2bb9b7c5.0d3e3","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":966.75,"y":808.6666641235352,"z":"a04d05aa.96dde8","wires":[["80e48cb9.af064"]]},{"id":"80e48cb9.af064","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1121.083251953125,"y":808.5555191040039,"z":"a04d05aa.96dde8","wires":[["6dd3a580.5e0194"]]},{"id":"6dd3a580.5e0194","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=\"AAI Allotted Resource is tied to more than one configuration object\" />\n","comments":"","x":1312.97216796875,"y":808.7778091430664,"z":"a04d05aa.96dde8","wires":[]},{"id":"d245ce9c.91bbd","type":"for","name":"for snidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]","xml":"<for silentFailure='true' index='snidx' start='`$tmp.sdidx + 1`' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n","comments":"","outputs":1,"x":1802.4800338745117,"y":1845.6665649414062,"z":"a04d05aa.96dde8","wires":[["b65abe87.5e08f"]]},{"id":"23c9b219.960fee","type":"comment","name":"Remove CAR from service data","info":"","comments":"","x":761.4642715454102,"y":1697.3336191177368,"z":"a04d05aa.96dde8","wires":[]},{"id":"bdea225f.6f7fc8","type":"switchNode","name":"switch $service-data.consumed-allotted-resource.length","xml":"<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n","comments":"","outputs":1,"x":838.2300415039062,"y":1729.7861623764038,"z":"a04d05aa.96dde8","wires":[["efda1bb.752dae8","dd386d7.e7be41"]]},{"id":"efda1bb.752dae8","type":"outcome","name":"1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1194.6108779907227,"y":1736.4525785446167,"z":"a04d05aa.96dde8","wires":[["49c4422a.edb67c"]]},{"id":"ffcf9253.ba3f3","type":"set","name":"Remove AR","xml":"<set>\n\t<parameter name=\"service-data.consumed-allotted-resources.\" value=\"\"/>\n\n","comments":"","x":1582.785255432129,"y":1739.0083026885986,"z":"a04d05aa.96dde8","wires":[]},{"id":"dd386d7.e7be41","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1200.1981830596924,"y":1800.3731260299683,"z":"a04d05aa.96dde8","wires":[["8a9e3de7.2f9478"]]},{"id":"447a0de1.41832c","type":"set","name":"set new CAR length","xml":"<set>\n\t<parameter name=\"service-data.consumed-allotted-resources.consumed-allotted-resource_length\" value=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource_length - 1`\"/>\n\n\t\n","comments":"","x":1608.6055297851562,"y":1874.6590523719788,"z":"a04d05aa.96dde8","wires":[]},{"id":"42362158.38f3c","type":"set","name":"Remove CAR","xml":"<set>\n\t<parameter name=\"service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.new_length].\" value=\"\"/>\n\n","comments":"","x":1590.6741905212402,"y":1905.9602828025818,"z":"a04d05aa.96dde8","wires":[]},{"id":"8a9e3de7.2f9478","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1380.134651184082,"y":1801.6904907226562,"z":"a04d05aa.96dde8","wires":[["d245ce9c.91bbd","42362158.38f3c","447a0de1.41832c","927787fb.eeccc8"]]},{"id":"e6e786d6.769ce","type":"set","name":"set new consumed allotted resource length","xml":"<set>\n\t<parameter name=\"service-data.consumed-allotted-resources.consumed-allotted-resource_length\" value=\"0\"/>\n\n\t\n","comments":"","x":1679.1187591552734,"y":1770.3786115646362,"z":"a04d05aa.96dde8","wires":[]},{"id":"49c4422a.edb67c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1373.944190979004,"y":1737.1563749313354,"z":"a04d05aa.96dde8","wires":[["ffcf9253.ba3f3","e6e786d6.769ce"]]},{"id":"c682491d.909558","type":"comment","name":"If only one remove all networks","info":"","comments":"","x":1265.9812393188477,"y":1701.0453519821167,"z":"a04d05aa.96dde8","wires":[]},{"id":"927787fb.eeccc8","type":"set","name":"Set new length","xml":"<set>\n\t<parameter name=\"tmp.new_length\" value=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource_length - 1`\"/>\n\t\n\t\n","comments":"","x":1592.5525665283203,"y":1813.1403861045837,"z":"a04d05aa.96dde8","wires":[]},{"id":"414c2157.1c39e","type":"set","name":"move CAR to remove one","xml":"<set>\n\t<parameter name=\"service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.newidx].\" value=\"$service-data.consumed-allotted-resources.consumed-allotted-resource[$snidx].\" />\n\t\n","comments":"","x":2469.3214797973633,"y":1871.380958557129,"z":"a04d05aa.96dde8","wires":[]},{"id":"b65abe87.5e08f","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2229.8772354125977,"y":1848.1586666107178,"z":"a04d05aa.96dde8","wires":[["414c2157.1c39e","62a4a718.204748"]]},{"id":"62a4a718.204748","type":"set","name":"Set new index","xml":"<set>\n\t<parameter name=\"tmp.newidx\" value=\"`$snidx - 1`\"/>\n\t\n\t\n","comments":"","x":2433.469711303711,"y":1840.9736213684082,"z":"a04d05aa.96dde8","wires":[]},{"id":"e717d7fd.25afe8","type":"for","name":"for snidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]","xml":"<for silentFailure='true' index='snidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n","comments":"","outputs":1,"x":906.46435546875,"y":1601.3808364868164,"z":"a04d05aa.96dde8","wires":[["e99eb00f.4b885"]]},{"id":"e99eb00f.4b885","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1342.432991027832,"y":1599.5871868133545,"z":"a04d05aa.96dde8","wires":[["4b1a33f.3d9384c"]]},{"id":"4b1a33f.3d9384c","type":"switchNode","name":"switch AR found","xml":"<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$sdix].allotted-resource-id == $cto-api.contrail-route-allotted-resource-id`'>\n","comments":"","outputs":1,"x":1545.0357093811035,"y":1599.9522647857666,"z":"a04d05aa.96dde8","wires":[["e25770d3.30d32"]]},{"id":"22e3c0f3.c27ec8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1922.178611755371,"y":1598.5238161087036,"z":"a04d05aa.96dde8","wires":[["befee4f2.430c08","176989d0.1d21ee"]]},{"id":"befee4f2.430c08","type":"set","name":"Set sdidx","xml":"<set>\n\t<parameter name=\"tmp.sdidx\" value=\"`$snidx`\"/>\n\t\n\t\n","comments":"","x":2136.4643211364746,"y":1562.8095998764038,"z":"a04d05aa.96dde8","wires":[]},{"id":"176989d0.1d21ee","type":"break","name":"break","xml":"<break>\n","comments":"","x":2127.8928413391113,"y":1597.095314025879,"z":"a04d05aa.96dde8","wires":[]},{"id":"dfe3ed02.58c5c","type":"comment","name":"Find AR idx in consumed allotted resource list","info":"","comments":"","x":823.6071166992188,"y":1567.0952281951904,"z":"a04d05aa.96dde8","wires":[]},{"id":"e25770d3.30d32","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1733.607063293457,"y":1598.5238337516785,"z":"a04d05aa.96dde8","wires":[["22e3c0f3.c27ec8"]]}]
\ No newline at end of file +[{"id":"df974283.904838","type":"dgstart","name":"DGSTART","outputs":1,"x":311.75,"y":158.66666412353516,"z":"a04d05aa.96dde8","wires":[["3acfd36b.0baa74"]]},{"id":"3acfd36b.0baa74","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":457.9880828857422,"y":233.61905765533447,"z":"a04d05aa.96dde8","wires":[["9a66d8b7.be1fe8"]]},{"id":"9a66d8b7.be1fe8","type":"method","name":"api-contrail-route-topology-operation-delete","xml":"<method rpc='api-contrail-route-topology-operation-delete' mode='sync'>\n","comments":"","outputs":1,"x":540.9048461914062,"y":304.8571090698242,"z":"a04d05aa.96dde8","wires":[["73856450.29c29c"]]},{"id":"73856450.29c29c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":446.2261848449707,"y":446.19044828414917,"z":"a04d05aa.96dde8","wires":[["48e06f2b.f80d9","a42cbd9b.c72d78","390840cf.ea062","fdec1e33.2d584","4e7df2db.c66804","24e1937a.d92304","a5491397.e63d","b0e2fb65.4d72a8","5ff8263f.c34fe","37d8e562.438482","5cd931aa.cf1c9","f4ad5e9.3b0dd2","7eeb9c2a.4b203c","30ba6f49.d097d8","7bd3eb16.82f6d4","68d3b550.c2328c","a48b96ce.6aa88","bdea225f.6f7fc8","e717d7fd.25afe8","25bfe2f3.42be26"]]},{"id":"a42cbd9b.c72d78","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":688.1866493225098,"y":2109.881513595581,"z":"a04d05aa.96dde8","wires":[]},{"id":"48e06f2b.f80d9","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='contrail-route-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $contrail-route-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n","comments":"","x":724.7183570861816,"y":1995.6706681251526,"z":"a04d05aa.96dde8","wires":[]},{"id":"390840cf.ea062","type":"execute","name":"execute Properties - pull properties file","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":795.9656982421875,"y":931.1759785413742,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"4e7df2db.c66804","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":798.60205078125,"y":1070.2372941970825,"z":"a04d05aa.96dde8","wires":[["3e55c079.a5837","6436bb5b.c26b3c"]]},{"id":"fdec1e33.2d584","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cr-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$cto-api.contrail-route-allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":767.8148956298828,"y":963.1839027404785,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"3e55c079.a5837","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1050.564842224121,"y":1069.9340190887451,"z":"a04d05aa.96dde8","wires":[["a646265f.47ea7"]]},{"id":"24e1937a.d92304","type":"execute","name":"execute RestApiCallNode - DELETE AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cr.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":787.8269882202148,"y":1948.767650127411,"z":"a04d05aa.96dde8","wires":[["29da9919.d1d6b6","bdfa5346.70b88","6479a17.ea4a8e"]]},{"id":"29da9919.d1d6b6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1058.1350059509277,"y":2001.7658509239554,"z":"a04d05aa.96dde8","wires":[["a652f709.2d7f38"]]},{"id":"bdfa5346.70b88","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1049.1350555419922,"y":1970.265876673162,"z":"a04d05aa.96dde8","wires":[["a652f709.2d7f38"]]},{"id":"6479a17.ea4a8e","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1052.8850936889648,"y":1940.6229815483093,"z":"a04d05aa.96dde8","wires":[["d4a11274.e8fd"]]},{"id":"a652f709.2d7f38","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=\"Error updating md-sal for contrail-route-allotted-resource\" />\n","comments":"","x":1218.8850936889648,"y":1971.01590051502,"z":"a04d05aa.96dde8","wires":[]},{"id":"a646265f.47ea7","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1219.5648460388184,"y":1070.4339199066162,"z":"a04d05aa.96dde8","wires":[["8d7eabfa.167cc8"]]},{"id":"8d7eabfa.167cc8","type":"switchNode","name":"switch cr length","xml":"<switch test='`$mdsal-ar.contrail-route-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1431.533187866211,"y":1069.8308267593384,"z":"a04d05aa.96dde8","wires":[["d5a911b3.ffec88","cfb45605.4899b8"]]},{"id":"d5a911b3.ffec88","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1619.7553939819336,"y":1069.0530071258545,"z":"a04d05aa.96dde8","wires":[["6816e818.3220d"]]},{"id":"f2f09ff7.0045a","type":"set","name":"set ar from get","xml":"<set>\n<parameter name='ar.' value='$mdsal-ar.contrail-route-allotted-resource[0].' />\n","comments":"","x":2024.0572929382324,"y":1102.6245155334473,"z":"a04d05aa.96dde8","wires":[]},{"id":"6816e818.3220d","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1804.2792835235596,"y":1068.9578409194946,"z":"a04d05aa.96dde8","wires":[["f2f09ff7.0045a","2304cd9.2986e32"]]},{"id":"6e1274a3.dd6cac","type":"comment","name":"GET allotted-resource from mdsal","info":"","comments":"","x":779.6758880615234,"y":1035.3228569030762,"z":"a04d05aa.96dde8","wires":[]},{"id":"2304cd9.2986e32","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-cr-ar' value='$mdsal-ar.' />\n","comments":"","x":2111.9143447875977,"y":1069.4340076446533,"z":"a04d05aa.96dde8","wires":[]},{"id":"426e51cf.16c37","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":740.9299468994141,"y":896.1243171691895,"z":"a04d05aa.96dde8","wires":[]},{"id":"d4a11274.e8fd","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1194.5410614013672,"y":1936.8151507377625,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"79d75df3.055734","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Contrail Route not found in md-sal\" />\n \n","comments":"","x":1794.4169921875,"y":1170.3334121704102,"z":"a04d05aa.96dde8","wires":[]},{"id":"6436bb5b.c26b3c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1042.4166450500488,"y":1115.0001039505005,"z":"a04d05aa.96dde8","wires":[["2087473c.3ecd6"]]},{"id":"2087473c.3ecd6","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1222.4165954589844,"y":1115.666654586792,"z":"a04d05aa.96dde8","wires":[["79d75df3.055734"]]},{"id":"cfb45605.4899b8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1608.0833473205566,"y":1115.3333673477173,"z":"a04d05aa.96dde8","wires":[["79d75df3.055734"]]},{"id":"7531096a.c15c5","type":"comment","name":"Need to rollback aai here","info":"","comments":"","x":1444.96435546875,"y":1970.3334956169128,"z":"a04d05aa.96dde8","wires":[]},{"id":"a5491397.e63d","type":"update","name":"delete AAI allotted-resource","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $cto-api.contrail-route-allotted-resource-id\">\n\n","comments":"","outputs":1,"x":752.0754089355469,"y":1479.1111221313477,"z":"a04d05aa.96dde8","wires":[["e4bc276b.df95e","4d6316f5.70cf88"]]},{"id":"e4bc276b.df95e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1005.7262115478516,"y":1457.5716300010681,"z":"a04d05aa.96dde8","wires":[["1207feb3.ce5da1"]]},{"id":"4d6316f5.70cf88","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1011.0356407165527,"y":1493.1430478096008,"z":"a04d05aa.96dde8","wires":[["1207feb3.ce5da1"]]},{"id":"1207feb3.ce5da1","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=\"AAI failed\" />\n","comments":"","x":1220.8214263916016,"y":1459.1906743049622,"z":"a04d05aa.96dde8","wires":[]},{"id":"27d3b51a.5b1dc2","type":"comment","name":"Update AAI AR","info":"","comments":"","x":713.3071365356445,"y":1443.761899471283,"z":"a04d05aa.96dde8","wires":[]},{"id":"b0e2fb65.4d72a8","type":"set","name":"set ar-assignments","xml":"<set>\n<parameter name='ar-assignments.' value=\"`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.`\" />\n\n\n\n","comments":"","x":734.5595550537109,"y":1118.4604206085205,"z":"a04d05aa.96dde8","wires":[]},{"id":"5e880cbf.42aa6c","type":"comment","name":"Call contrail api here","info":"","comments":"","x":735.7579727172852,"y":1198.111089706421,"z":"a04d05aa.96dde8","wires":[]},{"id":"5ff8263f.c34fe","type":"execute","name":"execute Contrail API delete network policy","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='network-policy' />\n<parameter name='api-action' value='delete' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='cloud-region-id' value='`$cto-api.cloud-region-id`' />\n<parameter name='default-project' value='`$cto-api.default-project`' />\n<parameter name='default-domain' value='`$cto-api.default-domain`' />\n<parameter name='contrail-network-policy-id' value='`$ar-assignments.contrail-id`' />\n\n","comments":"","outputs":1,"x":807.7658843994141,"y":1230.087548583746,"z":"a04d05aa.96dde8","wires":[["6114ce41.1008","212d8de4.467eaa","98d5c18b.8e5f8"]]},{"id":"6114ce41.1008","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1109.1468353271484,"y":1196.118734035641,"z":"a04d05aa.96dde8","wires":[["cc339bb2.32dc08"]]},{"id":"212d8de4.467eaa","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1110.5754928588867,"y":1266.8964347839355,"z":"a04d05aa.96dde8","wires":[["df1fe041.e9c678"]]},{"id":"df1fe041.e9c678","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=\"Failed to delete policy in Contrail\" />\n","comments":"","x":1258.257968902588,"y":1265.118709564209,"z":"a04d05aa.96dde8","wires":[]},{"id":"cc339bb2.32dc08","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1261.3373184204102,"y":1196.7854590415955,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"4a34e05d.2fb3d","type":"comment","name":"Delete network policy in AAI","info":"","comments":"","x":752.305549621582,"y":1312.6667261123657,"z":"a04d05aa.96dde8","wires":[]},{"id":"37d8e562.438482","type":"save","name":"delete AnAI - network-policy","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy\" \n\t\tkey=\"network-policy.network-policy-id = $ar-assignments.contrail-id\" >\n\n\n\n","comments":"","outputs":1,"x":767.6824340820312,"y":1348.7342910766602,"z":"a04d05aa.96dde8","wires":[["3a904ac8.8fe2f6","a8f8b714.3c2278"]]},{"id":"e3549d5e.09f13","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=\"Failed to delete network policy in AAI\" />\n","comments":"","x":1240.0279426574707,"y":1340.0159044265747,"z":"a04d05aa.96dde8","wires":[]},{"id":"3a904ac8.8fe2f6","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1011.4565505981445,"y":1339.031641960144,"z":"a04d05aa.96dde8","wires":[["e3549d5e.09f13"]]},{"id":"a8f8b714.3c2278","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1015.2660484313965,"y":1368.5080585479736,"z":"a04d05aa.96dde8","wires":[["e3549d5e.09f13"]]},{"id":"9b7b36e7.031118","type":"comment","name":"Parameters","info":"INPUT:\ncto-api.default-domain\ncto-api.default-project\ncto-api.cloud-region-id\ncto-api.contrail-route-allotted-resource-id\ncto-api.rollback-flag\ncto-api.configuration-id\n","comments":"","x":576.0833435058594,"y":155,"z":"a04d05aa.96dde8","wires":[]},{"id":"5cd931aa.cf1c9","type":"configure","name":"set default values","xml":"<set>\n<parameter name=\"ctotmp.action\" value=\"delete\" />\n<parameter name=\"ctotmp.config-count\" value=\"0\" />\n<parameter name=\"ctotmp.config-found\" value=\"true\" />","comments":"","outputs":1,"x":752.6388168334961,"y":444.6666660308838,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"f4ad5e9.3b0dd2","type":"call","name":"call validate-api-contrail-route-input","xml":"<call module='GENERIC-RESOURCE-API' rpc='validate-api-contrail-route-input' mode='sync' >\n","comments":"","outputs":1,"x":804.8611145019531,"y":478.5555839538574,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"7eeb9c2a.4b203c","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.api-contrail-route-topology-operation-delete\"/>\n<parameter name='field3' value='cto-api.parent-service-instance-id' />\n<parameter name='field4' value='`$cto-api.parent-service-instance-id`' />\n<parameter name='field5' value='cto-api.default-domain' />\n<parameter name='field6' value='`$cto-api.default-domain`' />\n<parameter name='field7' value='cto-api.port-mirror-configuration-instance-id' />\n<parameter name='field8' value='`$cto-api.port-mirror-configuration-instance-id`' />\n<parameter name='field9' value='cto-api.service-type' />\n<parameter name='field10' value='`$cto-api.service-type`' />\n<parameter name='field11' value='cto-api.source-network-role' />\n<parameter name='field12' value='`$cto-api.source-network-fole`' />\n<parameter name='field13' value='cto-api.collector-network-role' />\n<parameter name='field14' value='`$cto-api.collector-network-4ole`' />\n<parameter name='field15' value='cto-api.default-project' />\n<parameter name='field16' value='`$cto-api.default-project`' />\n<parameter name='field17' value='cto-api.cloud-region-id' />\n<parameter name='field18' value='`$cto-api.cloud-region-id`' />\n<parameter name='field19' value='cto-api.cloud-owner' />\n<parameter name='field20' value='`$cto-api.cloud-owner`' />\n<parameter name='field21' value='cto-api.isTest' />\n<parameter name='field22' value='`$cto-api.isTest`' />\n<parameter name='field23' value='service-data.service-information.global-customer-id' />\n<parameter name='field24' value='`$service-data.service-information.global-customer-id`' />\n","comments":"","outputs":1,"x":721.8611068725586,"y":377.73014736175537,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"7bd3eb16.82f6d4","type":"update","name":"get AAI allotted-resource","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $cto-api.contrail-route-allotted-resource-id\"\n pfx='aai.ar' local-only='false' >\n\n","comments":"","outputs":1,"x":778.0515594482422,"y":552.174599647522,"z":"a04d05aa.96dde8","wires":[["ee1b625f.50a488","56af5df.ef970a4","e2a7caea.66427"]]},{"id":"ee1b625f.50a488","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1006.5119018554688,"y":554.0160541534424,"z":"a04d05aa.96dde8","wires":[["e58a245b.cdd508"]]},{"id":"56af5df.ef970a4","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1017.3768005371094,"y":587.3652114868164,"z":"a04d05aa.96dde8","wires":[["65e4a356.63e61c"]]},{"id":"e58a245b.cdd508","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=\"AAI failed\" />\n","comments":"","x":1943.8293380737305,"y":550.0795211791992,"z":"a04d05aa.96dde8","wires":[]},{"id":"30ba6f49.d097d8","type":"configure","name":"clear internal data","xml":"<set>\n<parameter name=\"ctotmp.\" value=\"\" />\n","comments":"","outputs":1,"x":754.0833358764648,"y":408.4444885253906,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"39e90493.8f2e8c","type":"switchNode","name":"switch rollback-flag","xml":"<switch test='`$cto-api.rollback-flag`'>\n","comments":"","outputs":1,"x":1392.972267150879,"y":587.111083984375,"z":"a04d05aa.96dde8","wires":[["f5f6cee5.3320b","6b2175e6.b048a4"]]},{"id":"65e4a356.63e61c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":1189.6388931274414,"y":588.1111278533936,"z":"a04d05aa.96dde8","wires":[["39e90493.8f2e8c"]]},{"id":"f5f6cee5.3320b","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1578.5278053283691,"y":586.7777576446533,"z":"a04d05aa.96dde8","wires":[["79da048c.853c24"]]},{"id":"dd4149ba.e84128","type":"comment","name":"check if AR exists in AAI","info":"","comments":"","x":772.9722213745117,"y":514.5555629730225,"z":"a04d05aa.96dde8","wires":[]},{"id":"6b2175e6.b048a4","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1582.9721145629883,"y":618.9999198913574,"z":"a04d05aa.96dde8","wires":[["e58a245b.cdd508"]]},{"id":"68d3b550.c2328c","type":"for","name":"for relationship list","xml":"<for silentFailure='true' index='ridx' start='0' end=\"`$aai.ar.relationship-list.relationship_length`\" >\n","comments":"","outputs":1,"x":739.0833129882812,"y":747.4523906707764,"z":"a04d05aa.96dde8","wires":[["1b43e690.d53209"]]},{"id":"ed5ea8c8.d68408","type":"switchNode","name":"switch","xml":"<switch test='`$aai.ar.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-key`'>\n","comments":"","outputs":1,"x":1140.138469696045,"y":750.0553770065308,"z":"a04d05aa.96dde8","wires":[["11abf495.9e996b"]]},{"id":"1b43e690.d53209","type":"for","name":"for relationship data","xml":"<for silentFailure='false' index='rdidx' start='0' end=\"`$aai.ar.relationship-list.relationship[$ridx].relationship-data_length`\" >\n","comments":"","outputs":1,"x":955.3330612182617,"y":748.4166250228882,"z":"a04d05aa.96dde8","wires":[["ed5ea8c8.d68408"]]},{"id":"11abf495.9e996b","type":"other","name":"configuration.configuration-id","xml":"<outcome value='configuration.configuration-id'>\n","comments":"","outputs":1,"x":1364.860725402832,"y":750.6942253112793,"z":"a04d05aa.96dde8","wires":[["aef97856.ce1b6"]]},{"id":"aef97856.ce1b6","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1588.7216720581055,"y":750.6665563583374,"z":"a04d05aa.96dde8","wires":[["da49b6ab.8f85f8","5294fcec.e89854"]]},{"id":"da49b6ab.8f85f8","type":"switchNode","name":"switch relationship_value","xml":"<switch test='`$aai.ar.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-value == $cto-api.configuration-id`'>\n","comments":"","outputs":1,"x":1816.3056945800781,"y":787.6666469573975,"z":"a04d05aa.96dde8","wires":[["83c2d256.3c16d"]]},{"id":"5294fcec.e89854","type":"set","name":"increment config count","xml":"<set>\n<parameter name='ctotmp.config-count' value='`$ctotmp.config-count+1`' />\n","comments":"","x":1810.7500305175781,"y":752.3332982063293,"z":"a04d05aa.96dde8","wires":[]},{"id":"83c2d256.3c16d","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2039.52783203125,"y":787.1111221313477,"z":"a04d05aa.96dde8","wires":[["9dbab233.06c6f"]]},{"id":"ba821080.6d606","type":"set","name":"set config found","xml":"<set>\n<parameter name='ctotmp.config-found' value='true' />\n","comments":"","x":2398.4168434143066,"y":786.8889141082764,"z":"a04d05aa.96dde8","wires":[]},{"id":"9dbab233.06c6f","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":2200.638843536377,"y":786.8889055252075,"z":"a04d05aa.96dde8","wires":[["ba821080.6d606"]]},{"id":"a48b96ce.6aa88","type":"switchNode","name":"switch config count is 1 and found is true","xml":"<switch test=\"`$ctotmp.config-count == 1 and $ctotmp.config-found == 'true'`\">\n","comments":"","outputs":1,"x":801.0356597900391,"y":850.031702041626,"z":"a04d05aa.96dde8","wires":[["5497da6e.a8ab04","1eef5d93.dd9e2a"]]},{"id":"1eef5d93.dd9e2a","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1054.527783711751,"y":873.5555087195502,"z":"a04d05aa.96dde8","wires":[["31e92ab.8dfafd6"]]},{"id":"5497da6e.a8ab04","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1052.3056030273438,"y":843.5555191040039,"z":"a04d05aa.96dde8","wires":[["29500ab5.fd810e"]]},{"id":"31e92ab.8dfafd6","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1217.8610534667969,"y":872.4443607330322,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"75ecc999.38973","type":"comment","name":"check if there is > 1 relationship to configuration id for this AR","info":"","comments":"","x":861.8611297607422,"y":710.1110916137695,"z":"a04d05aa.96dde8","wires":[]},{"id":"29500ab5.fd810e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1216.7499313354492,"y":840.2222023010254,"z":"a04d05aa.96dde8","wires":[["7a507900.94fec"]]},{"id":"79da048c.853c24","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1741.861089706421,"y":587.888858795166,"z":"a04d05aa.96dde8","wires":[["49e138a7.52ab1"]]},{"id":"e2a7caea.66427","type":"failure","name":"Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1014.083345413208,"y":617.8888931274414,"z":"a04d05aa.96dde8","wires":[["b2354214.a5c4e"]]},{"id":"b2354214.a5c4e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1195.1943969726562,"y":616.7777481079102,"z":"a04d05aa.96dde8","wires":[[]]},{"id":"49e138a7.52ab1","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":1948.5277099609375,"y":584.5555191040039,"z":"a04d05aa.96dde8","wires":[]},{"id":"98d5c18b.8e5f8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1111.8611145019531,"y":1229.0001392364502,"z":"a04d05aa.96dde8","wires":[["cc339bb2.32dc08"]]},{"id":"7a507900.94fec","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=\"AAI Allotted resource is not tied to configuration object\" />\n","comments":"","x":1407.7500076293945,"y":839.6666507720947,"z":"a04d05aa.96dde8","wires":[]},{"id":"25bfe2f3.42be26","type":"switchNode","name":"switch config count is > 1","xml":"<switch test=\"`$ctotmp.config-count > 1`\">\n","comments":"","outputs":1,"x":754.75,"y":808.6666641235352,"z":"a04d05aa.96dde8","wires":[["2bb9b7c5.0d3e3"]]},{"id":"2bb9b7c5.0d3e3","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":966.75,"y":808.6666641235352,"z":"a04d05aa.96dde8","wires":[["80e48cb9.af064"]]},{"id":"80e48cb9.af064","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1121.083251953125,"y":808.5555191040039,"z":"a04d05aa.96dde8","wires":[["6dd3a580.5e0194"]]},{"id":"6dd3a580.5e0194","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=\"AAI Allotted Resource is tied to more than one configuration object\" />\n","comments":"","x":1312.97216796875,"y":808.7778091430664,"z":"a04d05aa.96dde8","wires":[]},{"id":"d245ce9c.91bbd","type":"for","name":"for snidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]","xml":"<for silentFailure='true' index='snidx' start='`$tmp.sdidx + 1`' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n","comments":"","outputs":1,"x":1802.4800338745117,"y":1845.6665649414062,"z":"a04d05aa.96dde8","wires":[["b65abe87.5e08f"]]},{"id":"23c9b219.960fee","type":"comment","name":"Remove CAR from service data","info":"","comments":"","x":761.4642715454102,"y":1697.3336191177368,"z":"a04d05aa.96dde8","wires":[]},{"id":"bdea225f.6f7fc8","type":"switchNode","name":"switch $service-data.consumed-allotted-resource.length","xml":"<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n","comments":"","outputs":1,"x":838.2300415039062,"y":1729.7861623764038,"z":"a04d05aa.96dde8","wires":[["efda1bb.752dae8","dd386d7.e7be41"]]},{"id":"efda1bb.752dae8","type":"outcome","name":"1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1194.6108779907227,"y":1736.4525785446167,"z":"a04d05aa.96dde8","wires":[["49c4422a.edb67c"]]},{"id":"ffcf9253.ba3f3","type":"set","name":"Remove AR","xml":"<set>\n\t<parameter name=\"service-data.consumed-allotted-resources.\" value=\"\"/>\n\n","comments":"","x":1582.785255432129,"y":1739.0083026885986,"z":"a04d05aa.96dde8","wires":[]},{"id":"dd386d7.e7be41","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1200.1981830596924,"y":1800.3731260299683,"z":"a04d05aa.96dde8","wires":[["8a9e3de7.2f9478"]]},{"id":"447a0de1.41832c","type":"set","name":"set new CAR length","xml":"<set>\n\t<parameter name=\"service-data.consumed-allotted-resources.consumed-allotted-resource_length\" value=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource_length - 1`\"/>\n\n\t\n","comments":"","x":1608.6055297851562,"y":1874.6590523719788,"z":"a04d05aa.96dde8","wires":[]},{"id":"42362158.38f3c","type":"set","name":"Remove CAR","xml":"<set>\n\t<parameter name=\"service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.new_length].\" value=\"\"/>\n\n","comments":"","x":1590.6741905212402,"y":1905.9602828025818,"z":"a04d05aa.96dde8","wires":[]},{"id":"8a9e3de7.2f9478","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1380.134651184082,"y":1801.6904907226562,"z":"a04d05aa.96dde8","wires":[["d245ce9c.91bbd","42362158.38f3c","447a0de1.41832c","927787fb.eeccc8"]]},{"id":"e6e786d6.769ce","type":"set","name":"set new consumed allotted resource length","xml":"<set>\n\t<parameter name=\"service-data.consumed-allotted-resources.consumed-allotted-resource_length\" value=\"0\"/>\n\n\t\n","comments":"","x":1679.1187591552734,"y":1770.3786115646362,"z":"a04d05aa.96dde8","wires":[]},{"id":"49c4422a.edb67c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1373.944190979004,"y":1737.1563749313354,"z":"a04d05aa.96dde8","wires":[["ffcf9253.ba3f3","e6e786d6.769ce"]]},{"id":"c682491d.909558","type":"comment","name":"If only one remove all networks","info":"","comments":"","x":1265.9812393188477,"y":1701.0453519821167,"z":"a04d05aa.96dde8","wires":[]},{"id":"927787fb.eeccc8","type":"set","name":"Set new length","xml":"<set>\n\t<parameter name=\"tmp.new_length\" value=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource_length - 1`\"/>\n\t\n\t\n","comments":"","x":1592.5525665283203,"y":1813.1403861045837,"z":"a04d05aa.96dde8","wires":[]},{"id":"414c2157.1c39e","type":"set","name":"move CAR to remove one","xml":"<set>\n\t<parameter name=\"service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.newidx].\" value=\"$service-data.consumed-allotted-resources.consumed-allotted-resource[$snidx].\" />\n\t\n","comments":"","x":2469.3214797973633,"y":1871.380958557129,"z":"a04d05aa.96dde8","wires":[]},{"id":"b65abe87.5e08f","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2229.8772354125977,"y":1848.1586666107178,"z":"a04d05aa.96dde8","wires":[["414c2157.1c39e","62a4a718.204748"]]},{"id":"62a4a718.204748","type":"set","name":"Set new index","xml":"<set>\n\t<parameter name=\"tmp.newidx\" value=\"`$snidx - 1`\"/>\n\t\n\t\n","comments":"","x":2433.469711303711,"y":1840.9736213684082,"z":"a04d05aa.96dde8","wires":[]},{"id":"e717d7fd.25afe8","type":"for","name":"for snidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]","xml":"<for silentFailure='true' index='snidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n","comments":"","outputs":1,"x":906.46435546875,"y":1601.3808364868164,"z":"a04d05aa.96dde8","wires":[["e99eb00f.4b885"]]},{"id":"e99eb00f.4b885","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1342.432991027832,"y":1599.5871868133545,"z":"a04d05aa.96dde8","wires":[["4b1a33f.3d9384c"]]},{"id":"4b1a33f.3d9384c","type":"switchNode","name":"switch AR found","xml":"<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$sdix].allotted-resource-id == $cto-api.contrail-route-allotted-resource-id`'>\n","comments":"","outputs":1,"x":1545.0357093811035,"y":1599.9522647857666,"z":"a04d05aa.96dde8","wires":[["e25770d3.30d32"]]},{"id":"22e3c0f3.c27ec8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1922.178611755371,"y":1598.5238161087036,"z":"a04d05aa.96dde8","wires":[["befee4f2.430c08","176989d0.1d21ee"]]},{"id":"befee4f2.430c08","type":"set","name":"Set sdidx","xml":"<set>\n\t<parameter name=\"tmp.sdidx\" value=\"`$snidx`\"/>\n\t\n\t\n","comments":"","x":2136.4643211364746,"y":1562.8095998764038,"z":"a04d05aa.96dde8","wires":[]},{"id":"176989d0.1d21ee","type":"break","name":"break","xml":"<break>\n","comments":"","x":2127.8928413391113,"y":1597.095314025879,"z":"a04d05aa.96dde8","wires":[]},{"id":"dfe3ed02.58c5c","type":"comment","name":"Find AR idx in consumed allotted resource list","info":"","comments":"","x":823.6071166992188,"y":1567.0952281951904,"z":"a04d05aa.96dde8","wires":[]},{"id":"e25770d3.30d32","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1733.607063293457,"y":1598.5238337516785,"z":"a04d05aa.96dde8","wires":[["22e3c0f3.c27ec8"]]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-activate.json index 68f46e6b..34c8081b 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-activate.json @@ -1 +1 @@ -[{"id":"aa32063c.93243","type":"dgstart","name":"DGSTART","outputs":1,"x":236,"y":109,"z":"6c1fa692.a38a58","wires":[["833978dd.304958"]]},{"id":"833978dd.304958","type":"service-logic","name":"GENERIC-RESOURCE-API","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":332.2380790710449,"y":169.95239067077637,"z":"6c1fa692.a38a58","wires":[["b96884bf.17b1d8"]]},{"id":"b96884bf.17b1d8","type":"method","name":"brg-topology-operation-activate","xml":"<method rpc='brg-topology-operation-activate' mode='sync'>\n","comments":"","outputs":1,"x":378.15485763549805,"y":205.19044589996338,"z":"6c1fa692.a38a58","wires":[["c66eed15.187018"]]},{"id":"c66eed15.187018","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":245.9761962890625,"y":2112.02392578125,"z":"6c1fa692.a38a58","wires":[["50cb6b9d.38fa3c","ad1d1588.d76d","1afb7e82.eefe39","62d81f8c.21d7e8","7b6d22c9.e07ccc","1e99334.059e24d","1fbb479c.9b3e88","bb9bf99c.661c18","a41547ad.552528","7f6e2b92.2edeec","6a1a8118.ef901","761cfa6d.4a86bc","26582af.1a68ed6","e30e637f.d69ce8","536b348f.d4cf9c","d5288677.a2085","4cafc9eb.8872b","b8b17236.7bf06","7946e793.89f08","2e22cf41.82e978","a173f61c.f54af","25449935.bf4046","534527cb.5330b","fbbea4d5.1f17","bcd27cb7.187a6","574f0bbd.60c3ec","3451b716.87d158","52a794a3.717be4","4fe4fbe1.fdb434","803aa305.29b728","fcd41611.21ace","66b07f90.f3cf2","fe0cd6c.e5be028","e51d221e.ee2ab8","1879320e.a502ce","2e1dc18a.e0a76e"]]},{"id":"ad1d1588.d76d","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":550.5002098083496,"y":2665.381863594055,"z":"6c1fa692.a38a58","wires":[]},{"id":"50cb6b9d.38fa3c","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='brg-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $tmp.service-data.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n <!--\nbrg-topology-operation-input.allotted-resource-information.parent-service-instance-id\n \n brg-topology-operation-input.service-information.service-instance-id\n -->\n","comments":"","x":576.2541198730469,"y":2622.504550933838,"z":"6c1fa692.a38a58","wires":[]},{"id":"7f6e2b92.2edeec","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Active' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-topology-operation-input.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":592.7542190551758,"y":729.0514001846313,"z":"6c1fa692.a38a58","wires":[]},{"id":"62d81f8c.21d7e8","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/brg-topology/'` \" />\n\n","comments":"","x":546.738037109375,"y":341.33331298828125,"z":"6c1fa692.a38a58","wires":[]},{"id":"1afb7e82.eefe39","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$brg-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$brg-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<!--\n<parameter name='tmp.ar.brg-vnf-id' value='`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`' />\n-->\n\n","comments":"","x":586.997314453125,"y":256.59259033203125,"z":"6c1fa692.a38a58","wires":[]},{"id":"7b6d22c9.e07ccc","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":552.9934196472168,"y":379.23152446746826,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"1fbb479c.9b3e88","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":617.5187530517578,"y":519.4594917297363,"z":"6c1fa692.a38a58","wires":[["158f0da2.87450a","5d6d055b.455bac"]]},{"id":"1e99334.059e24d","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.brg-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":581.0648536682129,"y":439.0172290802002,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"158f0da2.87450a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":874.8148918151855,"y":518.2672522068024,"z":"6c1fa692.a38a58","wires":[["39c8028b.d1ebd6"]]},{"id":"bb9bf99c.661c18","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.brg.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":625.5293121337891,"y":872.4341316223145,"z":"6c1fa692.a38a58","wires":[["38d0e910.62fe16","b331edc.274599","6a7f51cd.da458"]]},{"id":"38d0e910.62fe16","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1149.8373832702637,"y":897.4324235916138,"z":"6c1fa692.a38a58","wires":[["cc616362.9090e8"]]},{"id":"b331edc.274599","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1140.8374328613281,"y":865.9324493408203,"z":"6c1fa692.a38a58","wires":[["cc616362.9090e8"]]},{"id":"6a7f51cd.da458","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1144.5874710083008,"y":836.2895542159677,"z":"6c1fa692.a38a58","wires":[["d1c749b9.48fe3"]]},{"id":"cc616362.9090e8","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=\"Error updating md-sal for brg-allotted-resource\" />\n","comments":"","x":1310.5874710083008,"y":866.6824731826782,"z":"6c1fa692.a38a58","wires":[]},{"id":"39c8028b.d1ebd6","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1055.8148460388184,"y":518.7672016620636,"z":"6c1fa692.a38a58","wires":[["38b40fc9.d62398","9b187214.4c99c"]]},{"id":"38b40fc9.d62398","type":"switchNode","name":"switch brg length","xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1301.6720924377441,"y":553.052964925766,"z":"6c1fa692.a38a58","wires":[["253116a2.13449a"]]},{"id":"253116a2.13449a","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1492.6720962524414,"y":553.0529625415802,"z":"6c1fa692.a38a58","wires":[["a60326b3.15b8b"]]},{"id":"9c10ae24.f65718","type":"set","name":"set brg-ar from get","xml":"<set>\n<parameter name='brg-ar.' value='$mdsal-ar.brg-allotted-resource[0].' />\n","comments":"","x":1892.5292320251465,"y":553.6243867874146,"z":"6c1fa692.a38a58","wires":[]},{"id":"a60326b3.15b8b","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1663.5290794372559,"y":553.6244316101074,"z":"6c1fa692.a38a58","wires":[["9c10ae24.f65718","fd36fe44.f9fcd8","d42701c6.15bc"]]},{"id":"fd36fe44.f9fcd8","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-ar.allotted-resource-status.rpc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1890.5294761657715,"y":621.0529508590698,"z":"6c1fa692.a38a58","wires":[]},{"id":"f1b9b26c.17f35","type":"comment","name":"GET brg-allotted-resource from mdsal","info":"","comments":"","x":642.8148155212402,"y":482.7671926021576,"z":"6c1fa692.a38a58","wires":[]},{"id":"d42701c6.15bc","type":"switchNode","name":"switch order-status","xml":"<switch test='`$brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1900.52925491333,"y":586.6243848800659,"z":"6c1fa692.a38a58","wires":[["f5a846c5.f6614","4162652a.0eb31c"]]},{"id":"f5a846c5.f6614","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2112.1292114257812,"y":547.6243848800659,"z":"6c1fa692.a38a58","wires":[["54f38743.c68978"]]},{"id":"4162652a.0eb31c","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2137.8435859680176,"y":583.052975654602,"z":"6c1fa692.a38a58","wires":[["54f38743.c68978"]]},{"id":"69655148.a35838","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":598.3386383056641,"y":573.3386459350586,"z":"6c1fa692.a38a58","wires":[]},{"id":"9b187214.4c99c","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-brg-ar' value='$mdsal-ar.' />\n","comments":"","x":1381.3864250183105,"y":518.7672936916351,"z":"6c1fa692.a38a58","wires":[]},{"id":"d5a3d619.6f2c1","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":551.9576606750488,"y":408.6243562698364,"z":"6c1fa692.a38a58","wires":[]},{"id":"d1c749b9.48fe3","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1286.2434387207031,"y":832.4817234054208,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"911da86f.77f9d","type":"comment","name":"TO DO: vnf/put parent","info":"","comments":"","x":556.2433776855469,"y":761.1481952667236,"z":"6c1fa692.a38a58","wires":[]},{"id":"a41547ad.552528","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":540.2433815002441,"y":690.4815549850464,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"5d6d055b.455bac","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":874.5766868591309,"y":554.4814250469208,"z":"6c1fa692.a38a58","wires":[["51999669.382ec"]]},{"id":"51999669.382ec","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1054.5766372680664,"y":555.1479756832123,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"6a1a8118.ef901","type":"set","name":"set id","xml":"<set>\n<parameter name='brg-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='brg-ar.allotted-resource-status.action' value=\"`$brg-topology-operation-input.request-information.request-action` \" />\n<parameter name='brg-ar.allotted-resource-status.rpc-name' value=\"brg-topology-operation\" />\n<parameter name='brg-ar.allotted-resource-status.rpc-action' value=\"`$brg-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$brg-topology-operation-input.request-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$brg-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$brg-topology-operation-input.service-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$brg-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.' value=\"`$brg-topology-operation-input.brg-request-input.` \" />","comments":"","x":523.2434234619141,"y":610.1481666564941,"z":"6c1fa692.a38a58","wires":[]},{"id":"54f38743.c68978","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2326.5997276306152,"y":549.0000190734863,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"761cfa6d.4a86bc","type":"update","name":"update AAI allotted-resource","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $brg-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $brg-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $brg-topology-operation-input.allotted-resource-information.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"operational-status\" value=\"in-service-path\" />\n","comments":"","outputs":1,"x":583.8571624755859,"y":794.2380628585815,"z":"6c1fa692.a38a58","wires":[["c14221c9.4904f8","c8137cf1.86be"]]},{"id":"c14221c9.4904f8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":839.6190567016602,"y":777.1905598640442,"z":"6c1fa692.a38a58","wires":[["a1949e47.9f4ee"]]},{"id":"a1949e47.9f4ee","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=\"AAI failed\" />\n","comments":"","x":1006.142936706543,"y":788.8096308708191,"z":"6c1fa692.a38a58","wires":[]},{"id":"c8137cf1.86be","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":846.7143440246582,"y":809.9525275230408,"z":"6c1fa692.a38a58","wires":[["a1949e47.9f4ee"]]},{"id":"26582af.1a68ed6","type":"execute","name":"execute RestApiCallNode - setup BRG to vgMux vxlan tunnel port","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vpp.vxlan-tunnel.templatefile`\" />\n <parameter name='restapiUrl' value='`$tmp.honeycomb.url + $tmp.vpp-honeycomb-url`' />\n <parameter name='restapiUser' value='`$prop.honeycomb.user`' />\n <parameter name='restapiPassword' value='`$prop.honeycomb.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n","comments":"","outputs":1,"x":696.0000610351562,"y":1363.6668300628662,"z":"6c1fa692.a38a58","wires":[["c35188aa.9d267","6b7f71c4.2210e","15e48478.12fb44"]]},{"id":"c35188aa.9d267","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1029.9748497009277,"y":1422.9984420761466,"z":"6c1fa692.a38a58","wires":[["cc0c8074.979a3"]]},{"id":"6b7f71c4.2210e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1020.9748992919922,"y":1391.4984678253531,"z":"6c1fa692.a38a58","wires":[["cc0c8074.979a3"]]},{"id":"15e48478.12fb44","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1024.7249374389648,"y":1361.8555727005005,"z":"6c1fa692.a38a58","wires":[["f47ec3c3.abb0f"]]},{"id":"cc0c8074.979a3","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=\"Error setting up vxlan tunnel\" />\n","comments":"","x":1190.7249374389648,"y":1392.248491667211,"z":"6c1fa692.a38a58","wires":[]},{"id":"f47ec3c3.abb0f","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1166.3809051513672,"y":1358.0477418899536,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"e30e637f.d69ce8","type":"execute","name":"execute RestApiCallNode - setup BRG vxlan bridge domain","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vpp.bridge-domain.templatefile`\" />\n <parameter name='restapiUrl' value=\"`$tmp.honeycomb.url + $tmp.vpp-honeycomb-url + '/v3po:l2' `\" />\n <parameter name='restapiUser' value='`$prop.honeycomb.user`' />\n <parameter name='restapiPassword' value='`$prop.honeycomb.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n","comments":"","outputs":1,"x":677.6668243408203,"y":1510.3336246013641,"z":"6c1fa692.a38a58","wires":[["121ea1b0.ea0a96","71341c4e.7c87ac","27bd0ccf.487614"]]},{"id":"121ea1b0.ea0a96","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1098.9747314453125,"y":1565.9985536560416,"z":"6c1fa692.a38a58","wires":[["cdacc825.c32108"]]},{"id":"71341c4e.7c87ac","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1089.974781036377,"y":1534.4985794052482,"z":"6c1fa692.a38a58","wires":[["cdacc825.c32108"]]},{"id":"27bd0ccf.487614","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1093.7248191833496,"y":1504.8556842803955,"z":"6c1fa692.a38a58","wires":[["dd14f52.3d66b08"]]},{"id":"cdacc825.c32108","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=\"Error setting up bridge domain\" />\n","comments":"","x":1259.7248191833496,"y":1535.248603247106,"z":"6c1fa692.a38a58","wires":[]},{"id":"dd14f52.3d66b08","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1235.380786895752,"y":1501.0478534698486,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"4cafc9eb.8872b","type":"set","name":"set BRG to vgMUX VXLAN Tunnel Port Props","xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`'vxlanTun' + $brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-lan-ip` \" />\n<parameter name='tmp.tunnel-dest-ip' value=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-lan-ip` \" />\n<parameter name='tmp.tunnel-src-ip' value=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip` \" />\n<parameter name='tmp.tunnel-vni' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vni` \" />","comments":"","x":632.1112060546875,"y":1228.6670894622803,"z":"6c1fa692.a38a58","wires":[]},{"id":"d5288677.a2085","type":"execute","name":"generate full brg-vpp-honeycomb url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.vpp-honeycomb`\"/>\n <parameter name=\"outputPath\" value=\"tmp.vpp-honeycomb-url\"/>\n <parameter name=\"target\" value=\"{tunnel-name}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.tunnel-name`\"/>\n","comments":"","outputs":1,"x":603.7778472900391,"y":1283.6668682098389,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"536b348f.d4cf9c","type":"execute","name":"generate honeycomb-url to vBRG","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.honeycomb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.honeycomb.url\"/>\n <parameter name=\"target\" value=\"{honeycomb-instance-ip}\"/>\n <parameter name=\"replacement\" value=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip`\"/>\n","comments":"","outputs":1,"x":594.7778778076172,"y":1172.3333940505981,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"b8b17236.7bf06","type":"set","name":"set BRG Bridge Domain Props","xml":"<set>\n<parameter name='tmp.bridge-domain' value=\"bridge-domain-10\" />\n<parameter name='tmp.split-horizon-group' value=\"2\" />","comments":"","x":587.1111602783203,"y":1435.3334999084473,"z":"6c1fa692.a38a58","wires":[]},{"id":"ba483f5.d1e594","type":"comment","name":"save service data for BRG to md-sal for SO to do GET ","info":"http://c1.vm1.sdnc.simpledemo.openecomp.org:8282/restconf/config/GENERIC-RESOURCE-API:services/service/e565bb6b-de14-4a5c-a992-65a681771a7a/service-data/service-topology/\n\n\nservice-instance-id is of the vBRG (in VNF-API data)","comments":"","x":329.79503631591797,"y":2213.7715578079224,"z":"6c1fa692.a38a58","wires":[]},{"id":"2e22cf41.82e978","type":"execute","name":"execute RestApiCallNode - Get service-data by vnf-id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.vnf-api-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"service-data\" />\n\n","comments":"","outputs":1,"x":662.0015068054199,"y":2340.8350467681885,"z":"6c1fa692.a38a58","wires":[["27e1f386.d18d9c","98885b52.6aac4"]]},{"id":"27e1f386.d18d9c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":950.8214263916016,"y":2338.2143902778625,"z":"6c1fa692.a38a58","wires":[["9811fdce.4362f"]]},{"id":"9811fdce.4362f","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1131.8213806152344,"y":2338.714339733124,"z":"6c1fa692.a38a58","wires":[["ae238cfd.99a978","ff84fda2.c98b9"]]},{"id":"ae238cfd.99a978","type":"switchNode","name":"switch brg length","xml":"<switch test='`$service-data.service-data_length`'>\n","comments":"","outputs":1,"x":1377.6786270141602,"y":2373.000102996826,"z":"6c1fa692.a38a58","wires":[["1239e54c.ee9663"]]},{"id":"1239e54c.ee9663","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1568.6786308288574,"y":2373.0001006126404,"z":"6c1fa692.a38a58","wires":[["ea02cbd2.3046e"]]},{"id":"df56b573.34663","type":"set","name":"set service-data from get","xml":"<set>\n<parameter name='tmp.service-data.' value='$service-data.service-data[0].' />\n","comments":"","x":1968.5357666015625,"y":2373.5715248584747,"z":"6c1fa692.a38a58","wires":[]},{"id":"ea02cbd2.3046e","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1739.5356140136719,"y":2373.5715696811676,"z":"6c1fa692.a38a58","wires":[["df56b573.34663","f04b4bc1.0daf68"]]},{"id":"3fbbcb04.80fcec","type":"comment","name":"GET vnf-api service info","info":"","comments":"","x":567.3927612304688,"y":2304.1427431106567,"z":"6c1fa692.a38a58","wires":[]},{"id":"f04b4bc1.0daf68","type":"switchNode","name":"switch order-status","xml":"<switch test='`$tmp.service-data.order-status`'>\n","comments":"","outputs":1,"x":1952.249984741211,"y":2425.1429500579834,"z":"6c1fa692.a38a58","wires":[["2ed09998.304e0e","5efce4f3.9488fc"]]},{"id":"2ed09998.304e0e","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2192.1355476379395,"y":2389.5714988708496,"z":"6c1fa692.a38a58","wires":[["d8bdded8.a9409"]]},{"id":"5efce4f3.9488fc","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2217.849922180176,"y":2425.0000896453857,"z":"6c1fa692.a38a58","wires":[["d8bdded8.a9409"]]},{"id":"e60d88ff.eaefb","type":"comment","name":"Set service-data","info":"","comments":"","x":543.4880065917969,"y":2439.0004692077637,"z":"6c1fa692.a38a58","wires":[]},{"id":"ff84fda2.c98b9","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-service-data' value='$service-data.' />\n","comments":"","x":1457.3929595947266,"y":2338.7144317626953,"z":"6c1fa692.a38a58","wires":[]},{"id":"98885b52.6aac4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":950.5832214355469,"y":2374.428563117981,"z":"6c1fa692.a38a58","wires":[["4824800d.76fea"]]},{"id":"4824800d.76fea","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1130.5831718444824,"y":2375.0951137542725,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"d8bdded8.a9409","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2406.6060638427734,"y":2390.94713306427,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"7946e793.89f08","type":"execute","name":"generate vnf service-info url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.vnf-api.service-information`\"/>\n <parameter name=\"outputPath\" value=\"tmp.vnf-api-url\"/>\n <parameter name=\"target\" value=\"{vnf-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.brg-vnf-id`\"/>\n\n <!-- \n <parameter name=\"replacement\" value=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`\"/>\n -->\n <!--\n <parameter name=\"replacement\" value=\"`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`\"/>\n-->\n<!--\nbrg-ar.allotted-resource-data.brg-topology.brg-assignments\n-->","comments":"","outputs":1,"x":583.8109130859375,"y":2259.263671875,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"25449935.bf4046","type":"execute","name":"execute RestApiCallNode - PUT service into service","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.services.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.services-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":662.0966911315918,"y":2517.502098083496,"z":"6c1fa692.a38a58","wires":[["75076c77.fcddbc","ab0e0ff6.dbacd8","f2aab5bd.10be8"]]},{"id":"75076c77.fcddbc","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1168.3095474243164,"y":2512.0241107940674,"z":"6c1fa692.a38a58","wires":[["3d728759.355018"]]},{"id":"ab0e0ff6.dbacd8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1159.3095970153809,"y":2480.524136543274,"z":"6c1fa692.a38a58","wires":[["3d728759.355018"]]},{"id":"f2aab5bd.10be8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1163.0596351623535,"y":2450.8812414184213,"z":"6c1fa692.a38a58","wires":[["6c725f42.e545c"]]},{"id":"3d728759.355018","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=\"Error updating md-sal for brg-allotted-resource\" />\n","comments":"","x":1329.0596351623535,"y":2481.274160385132,"z":"6c1fa692.a38a58","wires":[]},{"id":"6c725f42.e545c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1304.7156028747559,"y":2447.0734106078744,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"a173f61c.f54af","type":"execute","name":"generate services url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.services`\"/>\n <parameter name=\"outputPath\" value=\"tmp.services-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.service-data.service-information.service-instance-id`\"/>\n<!-- tmp.service-data.service-information.service-instance-id\nbrg-topology-operation-input.allotted-resource-information.parent-service-instance-id\nbrg-topology-operation-input.service-information.service-instance-id\n\n-->","comments":"","outputs":1,"x":561.4300231933594,"y":2469.02618598938,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"534527cb.5330b","type":"get-resource","name":"get-resource IPADDR from dmaap DHCP_MAP ","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='IPADDR' key=\"SELECT min(ip_addr) ip from DHCP_MAP where mac_addr = $brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.brg-wan-mac-address\" pfx=\"tmp.brg-wan-ip\" >\n","comments":"","outputs":1,"x":640.8571624755859,"y":920.7501087188721,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"fbbea4d5.1f17","type":"set","name":"set brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip' value='`$tmp.brg-wan-ip.ip`' />\n","comments":"","x":727.0000305175781,"y":970.0000267028809,"z":"6c1fa692.a38a58","wires":[]},{"id":"bcd27cb7.187a6","type":"set","name":"set tmp.ar.consuming-service-instance-id to find vgmux-lan-ip","xml":"<set>\n<parameter name='tmp.ar.consuming-service-instance-id' value='`$brg-ar.allotted-resource-data.brg-topology.allotted-resource-identifiers.consuming-service-instance-id`' />\n","comments":"","x":687.9999694824219,"y":1017.9998550415039,"z":"6c1fa692.a38a58","wires":[]},{"id":"574f0bbd.60c3ec","type":"call","name":"call GENERIC-RESOURCE-API:get-tunnelxconn-ar","xml":"<call module='GENERIC-RESOURCE-API' rpc='get-tunnelxconn-ar' mode='sync' >\n","comments":"","outputs":1,"x":648.0000152587891,"y":1066.333191871643,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"3451b716.87d158","type":"set","name":"set brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-lan-ip","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-lan-ip' value='`$tmp.tunnelxconn-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vgmux-lan-ip`' />\n","comments":"","x":726.3332672119141,"y":1119.6665697097778,"z":"6c1fa692.a38a58","wires":[]},{"id":"b7fc9e2e.d326a8","type":"comment","name":"Change to POST and just update service?","info":"","comments":"","x":841.357177734375,"y":2544.9287109375,"z":"6c1fa692.a38a58","wires":[]},{"id":"77c9e988.0d476","type":"execute","name":"execute RestApiCallNode - setup vG to vgMux vxlan tunnel port","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vpp.vxlan-tunnel.templatefile`\" />\n <parameter name='restapiUrl' value='`$tmp.honeycomb.url + $tmp.vpp-honeycomb-url`' />\n <parameter name='restapiUser' value='`$prop.honeycomb.user`' />\n <parameter name='restapiPassword' value='`$prop.honeycomb.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n","comments":"","outputs":1,"x":842.166748046875,"y":2035.166748046875,"z":"6c1fa692.a38a58","wires":[["98e1d7c2.e9e0a","5ccf5413.99e35c","a81a84bb.2cc498"]]},{"id":"98e1d7c2.e9e0a","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1181.141513824463,"y":2074.49837436527,"z":"6c1fa692.a38a58","wires":[["2fbb5268.c289be"]]},{"id":"5ccf5413.99e35c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1172.1415634155273,"y":2042.9984001144767,"z":"6c1fa692.a38a58","wires":[["2fbb5268.c289be"]]},{"id":"a81a84bb.2cc498","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1175.8916015625,"y":2013.355504989624,"z":"6c1fa692.a38a58","wires":[["28394b93.ce2d9c"]]},{"id":"2fbb5268.c289be","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=\"Error setting up vxlan tunnel\" />\n","comments":"","x":1341.8916015625,"y":2043.7484239563346,"z":"6c1fa692.a38a58","wires":[]},{"id":"28394b93.ce2d9c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1317.5475692749023,"y":2009.5476741790771,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"33cc3b7e.7713e4","type":"execute","name":"execute RestApiCallNode - setup BRG vxlan bridge domain","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vpp.bridge-domain.templatefile`\" />\n <parameter name='restapiUrl' value=\"`$tmp.honeycomb.url + $tmp.vpp-honeycomb-url + '/v3po:l2' `\" />\n <parameter name='restapiUser' value='`$prop.honeycomb.user`' />\n <parameter name='restapiPassword' value='`$prop.honeycomb.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n","comments":"","outputs":1,"x":827.1668548583984,"y":2121.8336877822876,"z":"6c1fa692.a38a58","wires":[["c3b25db3.17a52","4db3ba34.59a5fc","2dc69fdd.e1aed8"]]},{"id":"c3b25db3.17a52","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1171.808193206787,"y":2202.4984325394034,"z":"6c1fa692.a38a58","wires":[["277d259.8e3b45a"]]},{"id":"4db3ba34.59a5fc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1162.8082427978516,"y":2170.99845828861,"z":"6c1fa692.a38a58","wires":[["277d259.8e3b45a"]]},{"id":"2dc69fdd.e1aed8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1166.5582809448242,"y":2141.3555631637573,"z":"6c1fa692.a38a58","wires":[["e418255e.942ff8"]]},{"id":"277d259.8e3b45a","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=\"Error setting up bridge domain\" />\n","comments":"","x":1332.5582809448242,"y":2171.748482130468,"z":"6c1fa692.a38a58","wires":[]},{"id":"e418255e.942ff8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1308.2142486572266,"y":2137.5477323532104,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"fcd41611.21ace","type":"set","name":"set vG to vgMUX VXLAN Tunnel Port Props","xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`'vxlanTun' + $brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-bearer-ip` \" />\n<parameter name='tmp.tunnel-dest-ip' value=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-bearer-ip` \" />\n<parameter name='tmp.tunnel-src-ip' value=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.vg-ip` \" />\n<parameter name='tmp.tunnel-vni' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vni` \" />","comments":"","x":631.9445724487305,"y":1917.1669521331787,"z":"6c1fa692.a38a58","wires":[]},{"id":"66b07f90.f3cf2","type":"execute","name":"generate full vg-vpp-honeycomb url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.vpp-honeycomb`\"/>\n <parameter name=\"outputPath\" value=\"tmp.vpp-honeycomb-url\"/>\n <parameter name=\"target\" value=\"{tunnel-name}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.tunnel-name`\"/>\n","comments":"","outputs":1,"x":611.611213684082,"y":1972.1667308807373,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"803aa305.29b728","type":"execute","name":"generate honeycomb-url to vG","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.honeycomb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.honeycomb.url\"/>\n <parameter name=\"target\" value=\"{honeycomb-instance-ip}\"/>\n <parameter name=\"replacement\" value=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.vg-mgmt-ip`\"/>\n","comments":"","outputs":1,"x":590.9446029663086,"y":1857.4999265670776,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"52a794a3.717be4","type":"set","name":"set brg-ar.allotted-resource-data.brg-topology.brg-assignments.vg-ip","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.vg-ip' value='`$tmp.tunnelxconn-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vg-ip`' />\n","comments":"","x":703.0000457763672,"y":1569.666633605957,"z":"6c1fa692.a38a58","wires":[]},{"id":"4fe4fbe1.fdb434","type":"set","name":"set brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-bearer-ip","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-bearer-ip' value='`$tmp.tunnelxconn-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vgmux-bearer-ip`' />\n","comments":"","x":741.3333435058594,"y":1619.6665630340576,"z":"6c1fa692.a38a58","wires":[]},{"id":"4d6b8902.f37ba8","type":"comment","name":"Setup VXLAN Tunnel - vG to vgMUX","info":"","comments":"","x":288,"y":1572.999852180481,"z":"6c1fa692.a38a58","wires":[]},{"id":"2f2d9dc0.026be2","type":"comment","name":"Setup VXLAN Tunnel - vBRG to vgMUX","info":"","comments":"","x":290.1666717529297,"y":923.0001373291016,"z":"6c1fa692.a38a58","wires":[]},{"id":"613dc927.a7cb98","type":"comment","name":"Get vg-mgmt-ip","info":"brg tunnelxconnn consuming-service-instance-id\nfound in services as service-instance-id","comments":"","x":286.00001525878906,"y":1767.333607673645,"z":"6c1fa692.a38a58","wires":[]},{"id":"fe0cd6c.e5be028","type":"set","name":"set tmp.search.consuming-service-instance-id to find vg-mgmt-ip","xml":"<set>\n<parameter name='tmp.search.consuming-service-instance-id' value='`$brg-ar.allotted-resource-data.brg-topology.allotted-resource-identifiers.consuming-service-instance-id`' />\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t","comments":"","x":689.1666030883789,"y":1691.3329668045044,"z":"6c1fa692.a38a58","wires":[]},{"id":"5bee91fe.fa9cd8","type":"for","name":"for tmp.preloadvnfdata","xml":"<for index='vnfidx' start='0' end='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list_length`' >\n \n\n\n","comments":"","outputs":1,"x":1548.333251953125,"y":1685.9998779296875,"z":"6c1fa692.a38a58","wires":[["e8013be2.d085f"]]},{"id":"5cb532.32ef0ad","type":"get-resource","name":"get-resource generic-resource-api:services ","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='services' pfx='tmp.servicedata' >\n","comments":"","outputs":1,"x":625.6667175292969,"y":1753.6663818359375,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"a465b112.0d40a8","type":"switchNode","name":"switch parent-service-instance-id matches","xml":"<switch test='`$tmp.preloadvnfdata.vnfs.vnf[$vnfidx].service-instance-id == $tmp.search.consuming-service-instance-id`'>\n\n\n","comments":"","outputs":1,"x":1777,"y":2033.6666259765625,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"4088be7a.cae2","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2003.9999923706055,"y":1744.3332052230835,"z":"6c1fa692.a38a58","wires":[["8594640f.24b708"]]},{"id":"1045f43d.d6afdc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1223.3332977294922,"y":1670.6664695739746,"z":"6c1fa692.a38a58","wires":[["209d4769.e6146"]]},{"id":"9090d90e.a8f0a","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1201.6666564941406,"y":1737.3331623077393,"z":"6c1fa692.a38a58","wires":[["87fe04e9.24d5f8"]]},{"id":"a0e306ed.820868","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1192.666706085205,"y":1705.8331880569458,"z":"6c1fa692.a38a58","wires":[["87fe04e9.24d5f8"]]},{"id":"87fe04e9.24d5f8","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=\"Error getting GENERIC-RESOURCE-API:services\" />\n","comments":"","x":1362.4167442321777,"y":1706.5832118988037,"z":"6c1fa692.a38a58","wires":[]},{"id":"5f63ed00.e4509c","type":"switchNode","name":"switch vnf-parameter-name matches vgw_private_ip","xml":"<switch test=\"`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].preload-data.vnf-topology-information.vnf-parameters[$paramidx].vnf-parameter-name == 'vgw_private_ip_1'`\" >\n\n\n","comments":"","outputs":1,"x":2492.3331451416016,"y":1637.3332786560059,"z":"6c1fa692.a38a58","wires":[["659ac035.31b17"]]},{"id":"659ac035.31b17","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2771.333251953125,"y":1649,"z":"6c1fa692.a38a58","wires":[["faad5ed5.79e448"]]},{"id":"8594640f.24b708","type":"for","name":"for service vnfs vf-modules parameters","xml":"<for index='paramidx' start='0' end='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].preload-data.vnf-topology-information.vnf-parameters_length`' >\n\n\n","comments":"","outputs":1,"x":2268.333251953125,"y":1727.66650390625,"z":"6c1fa692.a38a58","wires":[["5f63ed00.e4509c"]]},{"id":"faad5ed5.79e448","type":"set","name":"set vg-mgmt-ip","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.vg-mgmt-ip'\n value=\"`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].preload-data.vnf-topology-information.vnf-parameters[$paramidx].vnf-parameter-value`\" />\n\n","comments":"","x":2920.999755859375,"y":1687.6666259765625,"z":"6c1fa692.a38a58","wires":[]},{"id":"6e158dbc.a9be7c","type":"execute","name":"execute print context","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/brg-topo-op-activate.log' />\n","comments":"","outputs":1,"x":568,"y":2576,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"e8013be2.d085f","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1561,"y":1799,"z":"6c1fa692.a38a58","wires":[["f34f3c76.64d458"]]},{"id":"591802ea.8c09bc","type":"set","name":"set debug","xml":"<set>\n<parameter name='tmp.debug.service-instance-id' value='`$tmp.servicedata.services.service[$serviceidx].service-instance-id`' />\n<parameter name='tmp.debug.consuming-service-instance-id' value='`$tmp.search.consuming-service-instance-id`' />\n\n\n\n","comments":"","x":1712,"y":1874,"z":"6c1fa692.a38a58","wires":[]},{"id":"60caa157.4e6378","type":"execute","name":"execute print context","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/brg-topo-op-activate.log' />\n","comments":"","outputs":1,"x":1541,"y":1618,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"543f9252.6eb754","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1544,"y":1511,"z":"6c1fa692.a38a58","wires":[]},{"id":"209d4769.e6146","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1339,"y":1623,"z":"6c1fa692.a38a58","wires":[["5bee91fe.fa9cd8","6ba037e8.63ddd8"]]},{"id":"e51d221e.ee2ab8","type":"get-resource","name":"get-resource vnf-api:vnfs","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='preload-vnfs' pfx='tmp.preloadvnfdata' >\n<!--\ntmp.preloadvnfdata.preload-vnfs.vnf-preload-list[1].preload-data[0].vnf-topology-information.vnf-parameters[16].vnf-parameter-value = 10.0.101.30\n-->","comments":"","outputs":1,"x":661,"y":1801,"z":"6c1fa692.a38a58","wires":[["9090d90e.a8f0a","a0e306ed.820868","1045f43d.d6afdc"]]},{"id":"c7a11d7f.fb8c38","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":399,"y":1802,"z":"6c1fa692.a38a58","wires":[]},{"id":"f34f3c76.64d458","type":"switchNode","name":"switch parent-service-instance-id matches","xml":"<switch test='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].vnf-name == $tmp.brg-match-vnf-name`'>\n\n\n","comments":"","outputs":1,"x":1776,"y":1949,"z":"6c1fa692.a38a58","wires":[["4088be7a.cae2"]]},{"id":"6ba037e8.63ddd8","type":"set","name":"set tmp.brgmatch-vnf-name","xml":"<set>\n<parameter name='tmp.brg-match-vnf-name' value=\"`'VGW2BRG-'+ $brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.brg-wan-mac-address`\" />\n\n","comments":"","x":1562,"y":1574,"z":"6c1fa692.a38a58","wires":[]},{"id":"b292149a.348d68","type":"comment","name":"Disable updates to vGW becuase of race condition","info":"vGW has to reboot to apply its config and sdnc tries to connect soon. \nBeijing will have the sleep utilities to handle this. Use heat.env parameters with vni to resolve","comments":"","x":826,"y":2076,"z":"6c1fa692.a38a58","wires":[]},{"id":"3be7e02c.f2a31","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":526,"y":2043,"z":"6c1fa692.a38a58","wires":[]},{"id":"35706264.5e767e","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":520,"y":2125,"z":"6c1fa692.a38a58","wires":[]},{"id":"6c257595.e9d49c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":746,"y":2246,"z":"6c1fa692.a38a58","wires":[]},{"id":"65a5973d.076518","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":340,"y":312,"z":"6c1fa692.a38a58","wires":[]},{"id":"dce18120.0cf858","type":"for","name":"for tmp.vnfs","xml":"<for index='vnfidx' start='0' end='`$tmp.vnfdata.vnfs.vnf-list_length`' >\n\n\n","comments":"","outputs":1,"x":883,"y":339,"z":"6c1fa692.a38a58","wires":[["988fd8fd.e7e43"]]},{"id":"1879320e.a502ce","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":530.1429443359375,"y":299.1904296875,"z":"6c1fa692.a38a58","wires":[["a9df8e17.d4273","dce18120.0cf858"]]},{"id":"a9df8e17.d4273","type":"get-resource","name":"get-resource vnf-api vnfs","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='vnfs' pfx='tmp.vnfdata' >\n","comments":"","outputs":1,"x":962,"y":281.6666259765625,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"988fd8fd.e7e43","type":"switchNode","name":"switch parent-service-instance-id matches","xml":"<switch test='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.service-information.service-instance-id == $tmp.ar.parent-service-instance-id`'>\n\n\n","comments":"","outputs":1,"x":1151,"y":362.33331298828125,"z":"6c1fa692.a38a58","wires":[["e2df1feb.345a88"]]},{"id":"e2df1feb.345a88","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1449.0001220703125,"y":372.33331298828125,"z":"6c1fa692.a38a58","wires":[["c6e47000.d7b71"]]},{"id":"c6e47000.d7b71","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1664.0001220703125,"y":382.3333435058594,"z":"6c1fa692.a38a58","wires":[["e1ea2cb0.bcfd08"]]},{"id":"e1ea2cb0.bcfd08","type":"set","name":"set tmp.ar.brg-vnf-id","xml":"<set>\n<parameter name='tmp.ar.brg-vnf-id' \n value='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].vnf-id`' />\n\n\n\n","comments":"","x":1892,"y":399,"z":"6c1fa692.a38a58","wires":[]},{"id":"1934ef1e.f9add1","type":"comment","name":"Need to use parent service instance id","info":"service-instance id : {\n \"service-status\": {\n \"rpc-action\": \"activate\",\n \"response-code\": \"200\",\n \"action\": \"CreateVfModuleInstance\",\n \"request-status\": \"synccomplete\",\n \"rpc-name\": \"vf-module-topology-operation\",\n \"response-timestamp\": \"2017-11-16T21:31:31.697Z\",\n \"final-indicator\": \"Y\",\n \"response-message\": \"\"\n }\n}","comments":"","x":290,"y":2606,"z":"6c1fa692.a38a58","wires":[]},{"id":"2e1dc18a.e0a76e","type":"set","name":"set service-instance-id ","xml":"<set>\n<parameter name='tmp.service-data.service-information.service-instance-id' value='`$brg-topology-operation-input.service-information.service-instance-id`' />\n","comments":"","x":568.5,"y":2391,"z":"6c1fa692.a38a58","wires":[]}] +[{"id":"aa32063c.93243","type":"dgstart","name":"DGSTART","outputs":1,"x":236,"y":109,"z":"6c1fa692.a38a58","wires":[["833978dd.304958"]]},{"id":"833978dd.304958","type":"service-logic","name":"GENERIC-RESOURCE-API","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":332.2380790710449,"y":169.95239067077637,"z":"6c1fa692.a38a58","wires":[["b96884bf.17b1d8"]]},{"id":"b96884bf.17b1d8","type":"method","name":"brg-topology-operation-activate","xml":"<method rpc='brg-topology-operation-activate' mode='sync'>\n","comments":"","outputs":1,"x":378.15485763549805,"y":205.19044589996338,"z":"6c1fa692.a38a58","wires":[["c66eed15.187018"]]},{"id":"c66eed15.187018","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":245.9761962890625,"y":2112.02392578125,"z":"6c1fa692.a38a58","wires":[["50cb6b9d.38fa3c","ad1d1588.d76d","1afb7e82.eefe39","62d81f8c.21d7e8","7b6d22c9.e07ccc","1e99334.059e24d","1fbb479c.9b3e88","bb9bf99c.661c18","a41547ad.552528","7f6e2b92.2edeec","6a1a8118.ef901","761cfa6d.4a86bc","26582af.1a68ed6","e30e637f.d69ce8","536b348f.d4cf9c","d5288677.a2085","4cafc9eb.8872b","b8b17236.7bf06","7946e793.89f08","2e22cf41.82e978","a173f61c.f54af","25449935.bf4046","534527cb.5330b","fbbea4d5.1f17","bcd27cb7.187a6","574f0bbd.60c3ec","3451b716.87d158","52a794a3.717be4","4fe4fbe1.fdb434","803aa305.29b728","fcd41611.21ace","66b07f90.f3cf2","fe0cd6c.e5be028","e51d221e.ee2ab8","1879320e.a502ce","2e1dc18a.e0a76e"]]},{"id":"ad1d1588.d76d","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":550.5002098083496,"y":2665.381863594055,"z":"6c1fa692.a38a58","wires":[]},{"id":"50cb6b9d.38fa3c","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='brg-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $tmp.service-data.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n <!--\nbrg-topology-operation-input.allotted-resource-information.parent-service-instance-id\n \n brg-topology-operation-input.service-information.service-instance-id\n -->\n","comments":"","x":576.2541198730469,"y":2622.504550933838,"z":"6c1fa692.a38a58","wires":[]},{"id":"7f6e2b92.2edeec","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Active' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-topology-operation-input.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":592.7542190551758,"y":729.0514001846313,"z":"6c1fa692.a38a58","wires":[]},{"id":"62d81f8c.21d7e8","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/brg-topology?content=config'` \" />\n\n","comments":"","x":546.738037109375,"y":341.33331298828125,"z":"6c1fa692.a38a58","wires":[]},{"id":"1afb7e82.eefe39","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$brg-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$brg-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<!--\n<parameter name='tmp.ar.brg-vnf-id' value='`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`' />\n-->\n\n","comments":"","x":586.997314453125,"y":256.59259033203125,"z":"6c1fa692.a38a58","wires":[]},{"id":"7b6d22c9.e07ccc","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":552.9934196472168,"y":379.23152446746826,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"1fbb479c.9b3e88","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":617.5187530517578,"y":519.4594917297363,"z":"6c1fa692.a38a58","wires":[["158f0da2.87450a","5d6d055b.455bac"]]},{"id":"1e99334.059e24d","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.brg-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":581.0648536682129,"y":439.0172290802002,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"158f0da2.87450a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":874.8148918151855,"y":518.2672522068024,"z":"6c1fa692.a38a58","wires":[["39c8028b.d1ebd6"]]},{"id":"bb9bf99c.661c18","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.brg.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":625.5293121337891,"y":872.4341316223145,"z":"6c1fa692.a38a58","wires":[["38d0e910.62fe16","b331edc.274599","6a7f51cd.da458"]]},{"id":"38d0e910.62fe16","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1149.8373832702637,"y":897.4324235916138,"z":"6c1fa692.a38a58","wires":[["cc616362.9090e8"]]},{"id":"b331edc.274599","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1140.8374328613281,"y":865.9324493408203,"z":"6c1fa692.a38a58","wires":[["cc616362.9090e8"]]},{"id":"6a7f51cd.da458","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1144.5874710083008,"y":836.2895542159677,"z":"6c1fa692.a38a58","wires":[["d1c749b9.48fe3"]]},{"id":"cc616362.9090e8","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=\"Error updating md-sal for brg-allotted-resource\" />\n","comments":"","x":1310.5874710083008,"y":866.6824731826782,"z":"6c1fa692.a38a58","wires":[]},{"id":"39c8028b.d1ebd6","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1055.8148460388184,"y":518.7672016620636,"z":"6c1fa692.a38a58","wires":[["38b40fc9.d62398","9b187214.4c99c"]]},{"id":"38b40fc9.d62398","type":"switchNode","name":"switch brg length","xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1301.6720924377441,"y":553.052964925766,"z":"6c1fa692.a38a58","wires":[["253116a2.13449a"]]},{"id":"253116a2.13449a","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1492.6720962524414,"y":553.0529625415802,"z":"6c1fa692.a38a58","wires":[["a60326b3.15b8b"]]},{"id":"9c10ae24.f65718","type":"set","name":"set brg-ar from get","xml":"<set>\n<parameter name='brg-ar.' value='$mdsal-ar.brg-allotted-resource[0].' />\n","comments":"","x":1892.5292320251465,"y":553.6243867874146,"z":"6c1fa692.a38a58","wires":[]},{"id":"a60326b3.15b8b","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1663.5290794372559,"y":553.6244316101074,"z":"6c1fa692.a38a58","wires":[["9c10ae24.f65718","fd36fe44.f9fcd8","d42701c6.15bc"]]},{"id":"fd36fe44.f9fcd8","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-ar.allotted-resource-status.rpc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1890.5294761657715,"y":621.0529508590698,"z":"6c1fa692.a38a58","wires":[]},{"id":"f1b9b26c.17f35","type":"comment","name":"GET brg-allotted-resource from mdsal","info":"","comments":"","x":642.8148155212402,"y":482.7671926021576,"z":"6c1fa692.a38a58","wires":[]},{"id":"d42701c6.15bc","type":"switchNode","name":"switch order-status","xml":"<switch test='`$brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1900.52925491333,"y":586.6243848800659,"z":"6c1fa692.a38a58","wires":[["f5a846c5.f6614","4162652a.0eb31c"]]},{"id":"f5a846c5.f6614","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2112.1292114257812,"y":547.6243848800659,"z":"6c1fa692.a38a58","wires":[["54f38743.c68978"]]},{"id":"4162652a.0eb31c","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2137.8435859680176,"y":583.052975654602,"z":"6c1fa692.a38a58","wires":[["54f38743.c68978"]]},{"id":"69655148.a35838","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":598.3386383056641,"y":573.3386459350586,"z":"6c1fa692.a38a58","wires":[]},{"id":"9b187214.4c99c","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-brg-ar' value='$mdsal-ar.' />\n","comments":"","x":1381.3864250183105,"y":518.7672936916351,"z":"6c1fa692.a38a58","wires":[]},{"id":"d5a3d619.6f2c1","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":551.9576606750488,"y":408.6243562698364,"z":"6c1fa692.a38a58","wires":[]},{"id":"d1c749b9.48fe3","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1286.2434387207031,"y":832.4817234054208,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"911da86f.77f9d","type":"comment","name":"TO DO: vnf/put parent","info":"","comments":"","x":556.2433776855469,"y":761.1481952667236,"z":"6c1fa692.a38a58","wires":[]},{"id":"a41547ad.552528","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":540.2433815002441,"y":690.4815549850464,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"5d6d055b.455bac","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":874.5766868591309,"y":554.4814250469208,"z":"6c1fa692.a38a58","wires":[["51999669.382ec"]]},{"id":"51999669.382ec","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1054.5766372680664,"y":555.1479756832123,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"6a1a8118.ef901","type":"set","name":"set id","xml":"<set>\n<parameter name='brg-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='brg-ar.allotted-resource-status.action' value=\"`$brg-topology-operation-input.request-information.request-action` \" />\n<parameter name='brg-ar.allotted-resource-status.rpc-name' value=\"brg-topology-operation\" />\n<parameter name='brg-ar.allotted-resource-status.rpc-action' value=\"`$brg-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$brg-topology-operation-input.request-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$brg-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$brg-topology-operation-input.service-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$brg-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.' value=\"`$brg-topology-operation-input.brg-request-input.` \" />","comments":"","x":523.2434234619141,"y":610.1481666564941,"z":"6c1fa692.a38a58","wires":[]},{"id":"54f38743.c68978","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2326.5997276306152,"y":549.0000190734863,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"761cfa6d.4a86bc","type":"update","name":"update AAI allotted-resource","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $brg-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $brg-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $brg-topology-operation-input.allotted-resource-information.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"operational-status\" value=\"in-service-path\" />\n","comments":"","outputs":1,"x":583.8571624755859,"y":794.2380628585815,"z":"6c1fa692.a38a58","wires":[["c14221c9.4904f8","c8137cf1.86be"]]},{"id":"c14221c9.4904f8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":839.6190567016602,"y":777.1905598640442,"z":"6c1fa692.a38a58","wires":[["a1949e47.9f4ee"]]},{"id":"a1949e47.9f4ee","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=\"AAI failed\" />\n","comments":"","x":1006.142936706543,"y":788.8096308708191,"z":"6c1fa692.a38a58","wires":[]},{"id":"c8137cf1.86be","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":846.7143440246582,"y":809.9525275230408,"z":"6c1fa692.a38a58","wires":[["a1949e47.9f4ee"]]},{"id":"26582af.1a68ed6","type":"execute","name":"execute RestApiCallNode - setup BRG to vgMux vxlan tunnel port","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vpp.vxlan-tunnel.templatefile`\" />\n <parameter name='restapiUrl' value='`$tmp.honeycomb.url + $tmp.vpp-honeycomb-url`' />\n <parameter name='restapiUser' value='`$prop.honeycomb.user`' />\n <parameter name='restapiPassword' value='`$prop.honeycomb.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n","comments":"","outputs":1,"x":696.0000610351562,"y":1363.6668300628662,"z":"6c1fa692.a38a58","wires":[["c35188aa.9d267","6b7f71c4.2210e","15e48478.12fb44"]]},{"id":"c35188aa.9d267","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1029.9748497009277,"y":1422.9984420761466,"z":"6c1fa692.a38a58","wires":[["cc0c8074.979a3"]]},{"id":"6b7f71c4.2210e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1020.9748992919922,"y":1391.4984678253531,"z":"6c1fa692.a38a58","wires":[["cc0c8074.979a3"]]},{"id":"15e48478.12fb44","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1024.7249374389648,"y":1361.8555727005005,"z":"6c1fa692.a38a58","wires":[["f47ec3c3.abb0f"]]},{"id":"cc0c8074.979a3","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=\"Error setting up vxlan tunnel\" />\n","comments":"","x":1190.7249374389648,"y":1392.248491667211,"z":"6c1fa692.a38a58","wires":[]},{"id":"f47ec3c3.abb0f","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1166.3809051513672,"y":1358.0477418899536,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"e30e637f.d69ce8","type":"execute","name":"execute RestApiCallNode - setup BRG vxlan bridge domain","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vpp.bridge-domain.templatefile`\" />\n <parameter name='restapiUrl' value=\"`$tmp.honeycomb.url + $tmp.vpp-honeycomb-url + '/v3po:l2' `\" />\n <parameter name='restapiUser' value='`$prop.honeycomb.user`' />\n <parameter name='restapiPassword' value='`$prop.honeycomb.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n","comments":"","outputs":1,"x":677.6668243408203,"y":1510.3336246013641,"z":"6c1fa692.a38a58","wires":[["121ea1b0.ea0a96","71341c4e.7c87ac","27bd0ccf.487614"]]},{"id":"121ea1b0.ea0a96","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1098.9747314453125,"y":1565.9985536560416,"z":"6c1fa692.a38a58","wires":[["cdacc825.c32108"]]},{"id":"71341c4e.7c87ac","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1089.974781036377,"y":1534.4985794052482,"z":"6c1fa692.a38a58","wires":[["cdacc825.c32108"]]},{"id":"27bd0ccf.487614","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1093.7248191833496,"y":1504.8556842803955,"z":"6c1fa692.a38a58","wires":[["dd14f52.3d66b08"]]},{"id":"cdacc825.c32108","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=\"Error setting up bridge domain\" />\n","comments":"","x":1259.7248191833496,"y":1535.248603247106,"z":"6c1fa692.a38a58","wires":[]},{"id":"dd14f52.3d66b08","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1235.380786895752,"y":1501.0478534698486,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"4cafc9eb.8872b","type":"set","name":"set BRG to vgMUX VXLAN Tunnel Port Props","xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`'vxlanTun' + $brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-lan-ip` \" />\n<parameter name='tmp.tunnel-dest-ip' value=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-lan-ip` \" />\n<parameter name='tmp.tunnel-src-ip' value=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip` \" />\n<parameter name='tmp.tunnel-vni' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vni` \" />","comments":"","x":632.1112060546875,"y":1228.6670894622803,"z":"6c1fa692.a38a58","wires":[]},{"id":"d5288677.a2085","type":"execute","name":"generate full brg-vpp-honeycomb url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.vpp-honeycomb`\"/>\n <parameter name=\"outputPath\" value=\"tmp.vpp-honeycomb-url\"/>\n <parameter name=\"target\" value=\"{tunnel-name}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.tunnel-name`\"/>\n","comments":"","outputs":1,"x":603.7778472900391,"y":1283.6668682098389,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"536b348f.d4cf9c","type":"execute","name":"generate honeycomb-url to vBRG","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.honeycomb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.honeycomb.url\"/>\n <parameter name=\"target\" value=\"{honeycomb-instance-ip}\"/>\n <parameter name=\"replacement\" value=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip`\"/>\n","comments":"","outputs":1,"x":594.7778778076172,"y":1172.3333940505981,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"b8b17236.7bf06","type":"set","name":"set BRG Bridge Domain Props","xml":"<set>\n<parameter name='tmp.bridge-domain' value=\"bridge-domain-10\" />\n<parameter name='tmp.split-horizon-group' value=\"2\" />","comments":"","x":587.1111602783203,"y":1435.3334999084473,"z":"6c1fa692.a38a58","wires":[]},{"id":"ba483f5.d1e594","type":"comment","name":"save service data for BRG to md-sal for SO to do GET ","info":"http://c1.vm1.sdnc.simpledemo.openecomp.org:8282/rests/data/GENERIC-RESOURCE-API:services/service=e565bb6b-de14-4a5c-a992-65a681771a7a/service-data/service-topology?content=config\n\n\nservice-instance-id is of the vBRG (in VNF-API data)","comments":"","x":329.79503631591797,"y":2213.7715578079224,"z":"6c1fa692.a38a58","wires":[]},{"id":"2e22cf41.82e978","type":"execute","name":"execute RestApiCallNode - Get service-data by vnf-id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.vnf-api-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"service-data\" />\n\n","comments":"","outputs":1,"x":662.0015068054199,"y":2340.8350467681885,"z":"6c1fa692.a38a58","wires":[["27e1f386.d18d9c","98885b52.6aac4"]]},{"id":"27e1f386.d18d9c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":950.8214263916016,"y":2338.2143902778625,"z":"6c1fa692.a38a58","wires":[["9811fdce.4362f"]]},{"id":"9811fdce.4362f","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1131.8213806152344,"y":2338.714339733124,"z":"6c1fa692.a38a58","wires":[["ae238cfd.99a978","ff84fda2.c98b9"]]},{"id":"ae238cfd.99a978","type":"switchNode","name":"switch brg length","xml":"<switch test='`$service-data.service-data_length`'>\n","comments":"","outputs":1,"x":1377.6786270141602,"y":2373.000102996826,"z":"6c1fa692.a38a58","wires":[["1239e54c.ee9663"]]},{"id":"1239e54c.ee9663","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1568.6786308288574,"y":2373.0001006126404,"z":"6c1fa692.a38a58","wires":[["ea02cbd2.3046e"]]},{"id":"df56b573.34663","type":"set","name":"set service-data from get","xml":"<set>\n<parameter name='tmp.service-data.' value='$service-data.service-data[0].' />\n","comments":"","x":1968.5357666015625,"y":2373.5715248584747,"z":"6c1fa692.a38a58","wires":[]},{"id":"ea02cbd2.3046e","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1739.5356140136719,"y":2373.5715696811676,"z":"6c1fa692.a38a58","wires":[["df56b573.34663","f04b4bc1.0daf68"]]},{"id":"3fbbcb04.80fcec","type":"comment","name":"GET vnf-api service info","info":"","comments":"","x":567.3927612304688,"y":2304.1427431106567,"z":"6c1fa692.a38a58","wires":[]},{"id":"f04b4bc1.0daf68","type":"switchNode","name":"switch order-status","xml":"<switch test='`$tmp.service-data.order-status`'>\n","comments":"","outputs":1,"x":1952.249984741211,"y":2425.1429500579834,"z":"6c1fa692.a38a58","wires":[["2ed09998.304e0e","5efce4f3.9488fc"]]},{"id":"2ed09998.304e0e","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2192.1355476379395,"y":2389.5714988708496,"z":"6c1fa692.a38a58","wires":[["d8bdded8.a9409"]]},{"id":"5efce4f3.9488fc","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2217.849922180176,"y":2425.0000896453857,"z":"6c1fa692.a38a58","wires":[["d8bdded8.a9409"]]},{"id":"e60d88ff.eaefb","type":"comment","name":"Set service-data","info":"","comments":"","x":543.4880065917969,"y":2439.0004692077637,"z":"6c1fa692.a38a58","wires":[]},{"id":"ff84fda2.c98b9","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-service-data' value='$service-data.' />\n","comments":"","x":1457.3929595947266,"y":2338.7144317626953,"z":"6c1fa692.a38a58","wires":[]},{"id":"98885b52.6aac4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":950.5832214355469,"y":2374.428563117981,"z":"6c1fa692.a38a58","wires":[["4824800d.76fea"]]},{"id":"4824800d.76fea","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1130.5831718444824,"y":2375.0951137542725,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"d8bdded8.a9409","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2406.6060638427734,"y":2390.94713306427,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"7946e793.89f08","type":"execute","name":"generate vnf service-info url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.vnf-api.service-information`\"/>\n <parameter name=\"outputPath\" value=\"tmp.vnf-api-url\"/>\n <parameter name=\"target\" value=\"{vnf-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.brg-vnf-id`\"/>\n\n <!-- \n <parameter name=\"replacement\" value=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`\"/>\n -->\n <!--\n <parameter name=\"replacement\" value=\"`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`\"/>\n-->\n<!--\nbrg-ar.allotted-resource-data.brg-topology.brg-assignments\n-->","comments":"","outputs":1,"x":583.8109130859375,"y":2259.263671875,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"25449935.bf4046","type":"execute","name":"execute RestApiCallNode - PUT service into service","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.services.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.services-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":662.0966911315918,"y":2517.502098083496,"z":"6c1fa692.a38a58","wires":[["75076c77.fcddbc","ab0e0ff6.dbacd8","f2aab5bd.10be8"]]},{"id":"75076c77.fcddbc","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1168.3095474243164,"y":2512.0241107940674,"z":"6c1fa692.a38a58","wires":[["3d728759.355018"]]},{"id":"ab0e0ff6.dbacd8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1159.3095970153809,"y":2480.524136543274,"z":"6c1fa692.a38a58","wires":[["3d728759.355018"]]},{"id":"f2aab5bd.10be8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1163.0596351623535,"y":2450.8812414184213,"z":"6c1fa692.a38a58","wires":[["6c725f42.e545c"]]},{"id":"3d728759.355018","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=\"Error updating md-sal for brg-allotted-resource\" />\n","comments":"","x":1329.0596351623535,"y":2481.274160385132,"z":"6c1fa692.a38a58","wires":[]},{"id":"6c725f42.e545c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1304.7156028747559,"y":2447.0734106078744,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"a173f61c.f54af","type":"execute","name":"generate services url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.services`\"/>\n <parameter name=\"outputPath\" value=\"tmp.services-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.service-data.service-information.service-instance-id`\"/>\n<!-- tmp.service-data.service-information.service-instance-id\nbrg-topology-operation-input.allotted-resource-information.parent-service-instance-id\nbrg-topology-operation-input.service-information.service-instance-id\n\n-->","comments":"","outputs":1,"x":561.4300231933594,"y":2469.02618598938,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"534527cb.5330b","type":"get-resource","name":"get-resource IPADDR from dmaap DHCP_MAP ","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='IPADDR' key=\"SELECT min(ip_addr) ip from DHCP_MAP where mac_addr = $brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.brg-wan-mac-address\" pfx=\"tmp.brg-wan-ip\" >\n","comments":"","outputs":1,"x":640.8571624755859,"y":920.7501087188721,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"fbbea4d5.1f17","type":"set","name":"set brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip' value='`$tmp.brg-wan-ip.ip`' />\n","comments":"","x":727.0000305175781,"y":970.0000267028809,"z":"6c1fa692.a38a58","wires":[]},{"id":"bcd27cb7.187a6","type":"set","name":"set tmp.ar.consuming-service-instance-id to find vgmux-lan-ip","xml":"<set>\n<parameter name='tmp.ar.consuming-service-instance-id' value='`$brg-ar.allotted-resource-data.brg-topology.allotted-resource-identifiers.consuming-service-instance-id`' />\n","comments":"","x":687.9999694824219,"y":1017.9998550415039,"z":"6c1fa692.a38a58","wires":[]},{"id":"574f0bbd.60c3ec","type":"call","name":"call GENERIC-RESOURCE-API:get-tunnelxconn-ar","xml":"<call module='GENERIC-RESOURCE-API' rpc='get-tunnelxconn-ar' mode='sync' >\n","comments":"","outputs":1,"x":648.0000152587891,"y":1066.333191871643,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"3451b716.87d158","type":"set","name":"set brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-lan-ip","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-lan-ip' value='`$tmp.tunnelxconn-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vgmux-lan-ip`' />\n","comments":"","x":726.3332672119141,"y":1119.6665697097778,"z":"6c1fa692.a38a58","wires":[]},{"id":"b7fc9e2e.d326a8","type":"comment","name":"Change to POST and just update service?","info":"","comments":"","x":841.357177734375,"y":2544.9287109375,"z":"6c1fa692.a38a58","wires":[]},{"id":"77c9e988.0d476","type":"execute","name":"execute RestApiCallNode - setup vG to vgMux vxlan tunnel port","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vpp.vxlan-tunnel.templatefile`\" />\n <parameter name='restapiUrl' value='`$tmp.honeycomb.url + $tmp.vpp-honeycomb-url`' />\n <parameter name='restapiUser' value='`$prop.honeycomb.user`' />\n <parameter name='restapiPassword' value='`$prop.honeycomb.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n","comments":"","outputs":1,"x":842.166748046875,"y":2035.166748046875,"z":"6c1fa692.a38a58","wires":[["98e1d7c2.e9e0a","5ccf5413.99e35c","a81a84bb.2cc498"]]},{"id":"98e1d7c2.e9e0a","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1181.141513824463,"y":2074.49837436527,"z":"6c1fa692.a38a58","wires":[["2fbb5268.c289be"]]},{"id":"5ccf5413.99e35c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1172.1415634155273,"y":2042.9984001144767,"z":"6c1fa692.a38a58","wires":[["2fbb5268.c289be"]]},{"id":"a81a84bb.2cc498","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1175.8916015625,"y":2013.355504989624,"z":"6c1fa692.a38a58","wires":[["28394b93.ce2d9c"]]},{"id":"2fbb5268.c289be","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=\"Error setting up vxlan tunnel\" />\n","comments":"","x":1341.8916015625,"y":2043.7484239563346,"z":"6c1fa692.a38a58","wires":[]},{"id":"28394b93.ce2d9c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1317.5475692749023,"y":2009.5476741790771,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"33cc3b7e.7713e4","type":"execute","name":"execute RestApiCallNode - setup BRG vxlan bridge domain","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vpp.bridge-domain.templatefile`\" />\n <parameter name='restapiUrl' value=\"`$tmp.honeycomb.url + $tmp.vpp-honeycomb-url + '/v3po:l2' `\" />\n <parameter name='restapiUser' value='`$prop.honeycomb.user`' />\n <parameter name='restapiPassword' value='`$prop.honeycomb.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n","comments":"","outputs":1,"x":827.1668548583984,"y":2121.8336877822876,"z":"6c1fa692.a38a58","wires":[["c3b25db3.17a52","4db3ba34.59a5fc","2dc69fdd.e1aed8"]]},{"id":"c3b25db3.17a52","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1171.808193206787,"y":2202.4984325394034,"z":"6c1fa692.a38a58","wires":[["277d259.8e3b45a"]]},{"id":"4db3ba34.59a5fc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1162.8082427978516,"y":2170.99845828861,"z":"6c1fa692.a38a58","wires":[["277d259.8e3b45a"]]},{"id":"2dc69fdd.e1aed8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1166.5582809448242,"y":2141.3555631637573,"z":"6c1fa692.a38a58","wires":[["e418255e.942ff8"]]},{"id":"277d259.8e3b45a","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=\"Error setting up bridge domain\" />\n","comments":"","x":1332.5582809448242,"y":2171.748482130468,"z":"6c1fa692.a38a58","wires":[]},{"id":"e418255e.942ff8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1308.2142486572266,"y":2137.5477323532104,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"fcd41611.21ace","type":"set","name":"set vG to vgMUX VXLAN Tunnel Port Props","xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`'vxlanTun' + $brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-bearer-ip` \" />\n<parameter name='tmp.tunnel-dest-ip' value=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-bearer-ip` \" />\n<parameter name='tmp.tunnel-src-ip' value=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.vg-ip` \" />\n<parameter name='tmp.tunnel-vni' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vni` \" />","comments":"","x":631.9445724487305,"y":1917.1669521331787,"z":"6c1fa692.a38a58","wires":[]},{"id":"66b07f90.f3cf2","type":"execute","name":"generate full vg-vpp-honeycomb url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.vpp-honeycomb`\"/>\n <parameter name=\"outputPath\" value=\"tmp.vpp-honeycomb-url\"/>\n <parameter name=\"target\" value=\"{tunnel-name}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.tunnel-name`\"/>\n","comments":"","outputs":1,"x":611.611213684082,"y":1972.1667308807373,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"803aa305.29b728","type":"execute","name":"generate honeycomb-url to vG","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.honeycomb.url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.honeycomb.url\"/>\n <parameter name=\"target\" value=\"{honeycomb-instance-ip}\"/>\n <parameter name=\"replacement\" value=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.vg-mgmt-ip`\"/>\n","comments":"","outputs":1,"x":590.9446029663086,"y":1857.4999265670776,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"52a794a3.717be4","type":"set","name":"set brg-ar.allotted-resource-data.brg-topology.brg-assignments.vg-ip","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.vg-ip' value='`$tmp.tunnelxconn-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vg-ip`' />\n","comments":"","x":703.0000457763672,"y":1569.666633605957,"z":"6c1fa692.a38a58","wires":[]},{"id":"4fe4fbe1.fdb434","type":"set","name":"set brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-bearer-ip","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-bearer-ip' value='`$tmp.tunnelxconn-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vgmux-bearer-ip`' />\n","comments":"","x":741.3333435058594,"y":1619.6665630340576,"z":"6c1fa692.a38a58","wires":[]},{"id":"4d6b8902.f37ba8","type":"comment","name":"Setup VXLAN Tunnel - vG to vgMUX","info":"","comments":"","x":288,"y":1572.999852180481,"z":"6c1fa692.a38a58","wires":[]},{"id":"2f2d9dc0.026be2","type":"comment","name":"Setup VXLAN Tunnel - vBRG to vgMUX","info":"","comments":"","x":290.1666717529297,"y":923.0001373291016,"z":"6c1fa692.a38a58","wires":[]},{"id":"613dc927.a7cb98","type":"comment","name":"Get vg-mgmt-ip","info":"brg tunnelxconnn consuming-service-instance-id\nfound in services as service-instance-id","comments":"","x":286.00001525878906,"y":1767.333607673645,"z":"6c1fa692.a38a58","wires":[]},{"id":"fe0cd6c.e5be028","type":"set","name":"set tmp.search.consuming-service-instance-id to find vg-mgmt-ip","xml":"<set>\n<parameter name='tmp.search.consuming-service-instance-id' value='`$brg-ar.allotted-resource-data.brg-topology.allotted-resource-identifiers.consuming-service-instance-id`' />\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t","comments":"","x":689.1666030883789,"y":1691.3329668045044,"z":"6c1fa692.a38a58","wires":[]},{"id":"5bee91fe.fa9cd8","type":"for","name":"for tmp.preloadvnfdata","xml":"<for index='vnfidx' start='0' end='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list_length`' >\n \n\n\n","comments":"","outputs":1,"x":1548.333251953125,"y":1685.9998779296875,"z":"6c1fa692.a38a58","wires":[["e8013be2.d085f"]]},{"id":"5cb532.32ef0ad","type":"get-resource","name":"get-resource generic-resource-api:services ","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='services' pfx='tmp.servicedata' >\n","comments":"","outputs":1,"x":625.6667175292969,"y":1753.6663818359375,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"a465b112.0d40a8","type":"switchNode","name":"switch parent-service-instance-id matches","xml":"<switch test='`$tmp.preloadvnfdata.vnfs.vnf[$vnfidx].service-instance-id == $tmp.search.consuming-service-instance-id`'>\n\n\n","comments":"","outputs":1,"x":1777,"y":2033.6666259765625,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"4088be7a.cae2","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2003.9999923706055,"y":1744.3332052230835,"z":"6c1fa692.a38a58","wires":[["8594640f.24b708"]]},{"id":"1045f43d.d6afdc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1223.3332977294922,"y":1670.6664695739746,"z":"6c1fa692.a38a58","wires":[["209d4769.e6146"]]},{"id":"9090d90e.a8f0a","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1201.6666564941406,"y":1737.3331623077393,"z":"6c1fa692.a38a58","wires":[["87fe04e9.24d5f8"]]},{"id":"a0e306ed.820868","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1192.666706085205,"y":1705.8331880569458,"z":"6c1fa692.a38a58","wires":[["87fe04e9.24d5f8"]]},{"id":"87fe04e9.24d5f8","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=\"Error getting GENERIC-RESOURCE-API:services\" />\n","comments":"","x":1362.4167442321777,"y":1706.5832118988037,"z":"6c1fa692.a38a58","wires":[]},{"id":"5f63ed00.e4509c","type":"switchNode","name":"switch vnf-parameter-name matches vgw_private_ip","xml":"<switch test=\"`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].preload-data.vnf-topology-information.vnf-parameters[$paramidx].vnf-parameter-name == 'vgw_private_ip_1'`\" >\n\n\n","comments":"","outputs":1,"x":2492.3331451416016,"y":1637.3332786560059,"z":"6c1fa692.a38a58","wires":[["659ac035.31b17"]]},{"id":"659ac035.31b17","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2771.333251953125,"y":1649,"z":"6c1fa692.a38a58","wires":[["faad5ed5.79e448"]]},{"id":"8594640f.24b708","type":"for","name":"for service vnfs vf-modules parameters","xml":"<for index='paramidx' start='0' end='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].preload-data.vnf-topology-information.vnf-parameters_length`' >\n\n\n","comments":"","outputs":1,"x":2268.333251953125,"y":1727.66650390625,"z":"6c1fa692.a38a58","wires":[["5f63ed00.e4509c"]]},{"id":"faad5ed5.79e448","type":"set","name":"set vg-mgmt-ip","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.vg-mgmt-ip'\n value=\"`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].preload-data.vnf-topology-information.vnf-parameters[$paramidx].vnf-parameter-value`\" />\n\n","comments":"","x":2920.999755859375,"y":1687.6666259765625,"z":"6c1fa692.a38a58","wires":[]},{"id":"6e158dbc.a9be7c","type":"execute","name":"execute print context","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/brg-topo-op-activate.log' />\n","comments":"","outputs":1,"x":568,"y":2576,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"e8013be2.d085f","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1561,"y":1799,"z":"6c1fa692.a38a58","wires":[["f34f3c76.64d458"]]},{"id":"591802ea.8c09bc","type":"set","name":"set debug","xml":"<set>\n<parameter name='tmp.debug.service-instance-id' value='`$tmp.servicedata.services.service[$serviceidx].service-instance-id`' />\n<parameter name='tmp.debug.consuming-service-instance-id' value='`$tmp.search.consuming-service-instance-id`' />\n\n\n\n","comments":"","x":1712,"y":1874,"z":"6c1fa692.a38a58","wires":[]},{"id":"60caa157.4e6378","type":"execute","name":"execute print context","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/brg-topo-op-activate.log' />\n","comments":"","outputs":1,"x":1541,"y":1618,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"543f9252.6eb754","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1544,"y":1511,"z":"6c1fa692.a38a58","wires":[]},{"id":"209d4769.e6146","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1339,"y":1623,"z":"6c1fa692.a38a58","wires":[["5bee91fe.fa9cd8","6ba037e8.63ddd8"]]},{"id":"e51d221e.ee2ab8","type":"get-resource","name":"get-resource vnf-api:vnfs","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='preload-vnfs' pfx='tmp.preloadvnfdata' >\n<!--\ntmp.preloadvnfdata.preload-vnfs.vnf-preload-list[1].preload-data[0].vnf-topology-information.vnf-parameters[16].vnf-parameter-value = 10.0.101.30\n-->","comments":"","outputs":1,"x":661,"y":1801,"z":"6c1fa692.a38a58","wires":[["9090d90e.a8f0a","a0e306ed.820868","1045f43d.d6afdc"]]},{"id":"c7a11d7f.fb8c38","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":399,"y":1802,"z":"6c1fa692.a38a58","wires":[]},{"id":"f34f3c76.64d458","type":"switchNode","name":"switch parent-service-instance-id matches","xml":"<switch test='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].vnf-name == $tmp.brg-match-vnf-name`'>\n\n\n","comments":"","outputs":1,"x":1776,"y":1949,"z":"6c1fa692.a38a58","wires":[["4088be7a.cae2"]]},{"id":"6ba037e8.63ddd8","type":"set","name":"set tmp.brgmatch-vnf-name","xml":"<set>\n<parameter name='tmp.brg-match-vnf-name' value=\"`'VGW2BRG-'+ $brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.brg-wan-mac-address`\" />\n\n","comments":"","x":1562,"y":1574,"z":"6c1fa692.a38a58","wires":[]},{"id":"b292149a.348d68","type":"comment","name":"Disable updates to vGW becuase of race condition","info":"vGW has to reboot to apply its config and sdnc tries to connect soon. \nBeijing will have the sleep utilities to handle this. Use heat.env parameters with vni to resolve","comments":"","x":826,"y":2076,"z":"6c1fa692.a38a58","wires":[]},{"id":"3be7e02c.f2a31","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":526,"y":2043,"z":"6c1fa692.a38a58","wires":[]},{"id":"35706264.5e767e","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":520,"y":2125,"z":"6c1fa692.a38a58","wires":[]},{"id":"6c257595.e9d49c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":746,"y":2246,"z":"6c1fa692.a38a58","wires":[]},{"id":"65a5973d.076518","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":340,"y":312,"z":"6c1fa692.a38a58","wires":[]},{"id":"dce18120.0cf858","type":"for","name":"for tmp.vnfs","xml":"<for index='vnfidx' start='0' end='`$tmp.vnfdata.vnfs.vnf-list_length`' >\n\n\n","comments":"","outputs":1,"x":883,"y":339,"z":"6c1fa692.a38a58","wires":[["988fd8fd.e7e43"]]},{"id":"1879320e.a502ce","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":530.1429443359375,"y":299.1904296875,"z":"6c1fa692.a38a58","wires":[["a9df8e17.d4273","dce18120.0cf858"]]},{"id":"a9df8e17.d4273","type":"get-resource","name":"get-resource vnf-api vnfs","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='vnfs' pfx='tmp.vnfdata' >\n","comments":"","outputs":1,"x":962,"y":281.6666259765625,"z":"6c1fa692.a38a58","wires":[[]]},{"id":"988fd8fd.e7e43","type":"switchNode","name":"switch parent-service-instance-id matches","xml":"<switch test='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.service-information.service-instance-id == $tmp.ar.parent-service-instance-id`'>\n\n\n","comments":"","outputs":1,"x":1151,"y":362.33331298828125,"z":"6c1fa692.a38a58","wires":[["e2df1feb.345a88"]]},{"id":"e2df1feb.345a88","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1449.0001220703125,"y":372.33331298828125,"z":"6c1fa692.a38a58","wires":[["c6e47000.d7b71"]]},{"id":"c6e47000.d7b71","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1664.0001220703125,"y":382.3333435058594,"z":"6c1fa692.a38a58","wires":[["e1ea2cb0.bcfd08"]]},{"id":"e1ea2cb0.bcfd08","type":"set","name":"set tmp.ar.brg-vnf-id","xml":"<set>\n<parameter name='tmp.ar.brg-vnf-id' \n value='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].vnf-id`' />\n\n\n\n","comments":"","x":1892,"y":399,"z":"6c1fa692.a38a58","wires":[]},{"id":"1934ef1e.f9add1","type":"comment","name":"Need to use parent service instance id","info":"service-instance id : {\n \"service-status\": {\n \"rpc-action\": \"activate\",\n \"response-code\": \"200\",\n \"action\": \"CreateVfModuleInstance\",\n \"request-status\": \"synccomplete\",\n \"rpc-name\": \"vf-module-topology-operation\",\n \"response-timestamp\": \"2017-11-16T21:31:31.697Z\",\n \"final-indicator\": \"Y\",\n \"response-message\": \"\"\n }\n}","comments":"","x":290,"y":2606,"z":"6c1fa692.a38a58","wires":[]},{"id":"2e1dc18a.e0a76e","type":"set","name":"set service-instance-id ","xml":"<set>\n<parameter name='tmp.service-data.service-information.service-instance-id' value='`$brg-topology-operation-input.service-information.service-instance-id`' />\n","comments":"","x":568.5,"y":2391,"z":"6c1fa692.a38a58","wires":[]}] diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-assign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-assign.json index 53db1d2a..41678537 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-assign.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-assign.json @@ -1 +1 @@ -[{"id":"7570f0f1.92a5b","type":"dgstart","name":"DGSTART","outputs":1,"x":151,"y":77,"z":"bf2de7b8.413148","wires":[["d3b5c6d7.62aef"]]},{"id":"d3b5c6d7.62aef","type":"service-logic","name":"GENERIC-RESOURCE-API 1.2.0-SNAPSHOT-111502","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":285.23809814453125,"y":128.952392578125,"z":"bf2de7b8.413148","wires":[["c52f0437.0bb6a8"]]},{"id":"c52f0437.0bb6a8","type":"method","name":"brg-topology-operation-assign","xml":"<method rpc='brg-topology-operation-assign' mode='sync'>\n","comments":"","outputs":1,"x":293.15485763549805,"y":173.19044589996338,"z":"bf2de7b8.413148","wires":[["5d72c5be.42607c"]]},{"id":"5d72c5be.42607c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":201.47619247436523,"y":316.5237879753113,"z":"bf2de7b8.413148","wires":[["ce4415de.9f0f4","d0247918.df4a68","20bd770e.2b589","f626fedf.f8fe98","5de71d7a.6cddd4"]]},{"id":"7d236fa8.ed7de","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":1044.6666564941406,"y":2243.5477046966553,"z":"bf2de7b8.413148","wires":[]},{"id":"410f6b01.d7177c","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $brg-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n","comments":"","x":1081.7540550231934,"y":2122.432439804077,"z":"bf2de7b8.413148","wires":[]},{"id":"98199cc9.6a499","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingCreate' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-topology-operation-input.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":1153.468376159668,"y":1539.6228160858154,"z":"bf2de7b8.413148","wires":[]},{"id":"d0247918.df4a68","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology/'` \" />\n\n","comments":"","x":631.7380676269531,"y":208.33331298828125,"z":"bf2de7b8.413148","wires":[]},{"id":"ce4415de.9f0f4","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$brg-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$brg-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n","comments":"","x":684.997314453125,"y":170.59259033203125,"z":"bf2de7b8.413148","wires":[]},{"id":"93640943.c5ad8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":834.8148803710938,"y":356.26727294921875,"z":"bf2de7b8.413148","wires":[["87e21149.4f9e4"]]},{"id":"f12334c3.4295d","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.brg.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":1174.8626251220703,"y":1764.1008231639862,"z":"bf2de7b8.413148","wires":[["fd12f3ff.cf69e","ab1088f2.67d178","b1a1234c.07f858"]]},{"id":"fd12f3ff.cf69e","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1443.5040016174316,"y":1815.4322349056602,"z":"bf2de7b8.413148","wires":[["8a32e9ad.06d778"]]},{"id":"ab1088f2.67d178","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1434.504051208496,"y":1783.9322606548667,"z":"bf2de7b8.413148","wires":[["8a32e9ad.06d778"]]},{"id":"b1a1234c.07f858","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1438.2540893554688,"y":1754.289365530014,"z":"bf2de7b8.413148","wires":[["22dd0dd8.431072"]]},{"id":"8a32e9ad.06d778","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=\"Error updating md-sal for tunnelxconn-allotted-resource\" />\n","comments":"","x":1604.2540893554688,"y":1784.6822844967246,"z":"bf2de7b8.413148","wires":[]},{"id":"1f10f3f4.abae94","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-ar.allotted-resource-status.rpc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1184.5294189453125,"y":457.05291748046875,"z":"bf2de7b8.413148","wires":[]},{"id":"7cf9af45.cf036","type":"comment","name":"Save consumed-allotted-resources to mdsal","info":"","comments":"","x":1252.2434692382812,"y":1138.7196044921875,"z":"bf2de7b8.413148","wires":[]},{"id":"6194dab8.45fb04","type":"comment","name":"GET tunnelxconn-allotted-resource from mdsal","info":"","comments":"","x":557.8148193359375,"y":326.7672119140625,"z":"bf2de7b8.413148","wires":[]},{"id":"87e21149.4f9e4","type":"returnFailure","name":"return failure - tunnelxconn already exists","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\" \n value=\"`'Existing brg-allotted-resource with order status of ' + $mdsal-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n","comments":"","x":1144.129150390625,"y":352.6243896484375,"z":"bf2de7b8.413148","wires":[]},{"id":"d7e419ac.10dda8","type":"set","name":"set brg-ar-identifiers","xml":"<set>\n<parameter name='brg-ar-identifiers.consuming-service-instance-id' value=\"`$brg-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='brg-ar-identifiers.parent-service-instance-id' value=\"`$brg-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='brg-ar-identifiers.allotted-resource-type' value=\"`$brg-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='brg-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n","comments":"","x":1194.38623046875,"y":550.6243896484375,"z":"bf2de7b8.413148","wires":[]},{"id":"29e4a25b.07caae","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":1221.338623046875,"y":509.338623046875,"z":"bf2de7b8.413148","wires":[]},{"id":"a7fa051c.ec08b8","type":"set","name":"set identifiers in overall structure","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.allotted-resource-identifiers.' \nvalue=\"`$brg-ar-identifiers.`\" />\n\n\n","comments":"","x":1211.38623046875,"y":858.910400390625,"z":"bf2de7b8.413148","wires":[]},{"id":"a1de8aef.82fc18","type":"set","name":"set onap model information from input","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.brg-topology.onap-model-information.' \nvalue=\"`$brg-topology-operation-input.allotted-resource-information.onap-model-information.`\" />\n\n\n","comments":"","x":1239.957763671875,"y":593.9100952148438,"z":"bf2de7b8.413148","wires":[]},{"id":"a718dba2.92623","type":"switchNode","name":"switch model-invariant-uuid is null","xml":"<switch test='$brg-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid'>\n","comments":"","outputs":1,"x":1219.8148193359375,"y":633.19580078125,"z":"bf2de7b8.413148","wires":[["7ca287e7.711478"]]},{"id":"7ca287e7.711478","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1447.9576988220215,"y":634.6243271827698,"z":"bf2de7b8.413148","wires":[["71896d4.b06f794"]]},{"id":"71896d4.b06f794","type":"set","name":"set model-invariant-uuid","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.onap-model-information.model-invariant-uuid' \nvalue=\"`$ar-model.invariant-uuid`\" />\n\n\n","comments":"","x":1649.38627243042,"y":634.0528798103333,"z":"bf2de7b8.413148","wires":[]},{"id":"8606bb79.93a638","type":"switchNode","name":"switch model-uuid is null","xml":"<switch test='$brg-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid'>\n","comments":"","outputs":1,"x":1192.2434158325195,"y":667.4815106391907,"z":"bf2de7b8.413148","wires":[["79f93f5.6db044"]]},{"id":"79f93f5.6db044","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1393.6719818115234,"y":668.0529322624207,"z":"bf2de7b8.413148","wires":[["c81e4cfe.eaa8d8"]]},{"id":"c81e4cfe.eaa8d8","type":"set","name":"set model-uuid","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.onap-model-information.model-uuid' \nvalue=\"`$ar-model.uuid`\" />\n\n\n","comments":"","x":1586.529140472412,"y":668.0528540611267,"z":"bf2de7b8.413148","wires":[]},{"id":"d9e258a7.c1071","type":"switchNode","name":"switch model-version is null","xml":"<switch test='$brg-topology-operation-input.allotted-resource-information.onap-model-information.model-version'>\n","comments":"","outputs":1,"x":1200.8148193359375,"y":700.3386378288269,"z":"bf2de7b8.413148","wires":[["8ee38127.aa0868"]]},{"id":"8ee38127.aa0868","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1450.8148002624512,"y":700.3386225700378,"z":"bf2de7b8.413148","wires":[["610bece7.c45dd4"]]},{"id":"610bece7.c45dd4","type":"set","name":"set model-version","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.model-version' \nvalue=\"`$ar-model.version`\" />\n\n\n","comments":"","x":1643.6719589233398,"y":700.3385443687439,"z":"bf2de7b8.413148","wires":[]},{"id":"7885bfde.a79488","type":"switchNode","name":"switch ar-model.ecomp-generated-naming","xml":"<switch test='`$ar-model.ecomp-generated-naming`'>\n","comments":"","outputs":1,"x":1264.38623046875,"y":802.7672729492188,"z":"bf2de7b8.413148","wires":[["9239a2ce.fafa4","e195da86.529e68"]]},{"id":"9239a2ce.fafa4","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1550.3862915039062,"y":802.1958618164062,"z":"bf2de7b8.413148","wires":[["cad0403.cd4d94"]]},{"id":"cad0403.cd4d94","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"true","comments":"","outputs":1,"x":1704.1363525390625,"y":804.69580078125,"z":"bf2de7b8.413148","wires":[["35d70668.6be0d2"]]},{"id":"e195da86.529e68","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1569.608642578125,"y":891.1958618164062,"z":"bf2de7b8.413148","wires":[["d35a58bc.e50138"]]},{"id":"d35a58bc.e50138","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=\"Error in allotted-resource-model data. Ecomp-generated-naming should be true\" />\n\n","comments":"","x":1752.608642578125,"y":896.1958618164062,"z":"bf2de7b8.413148","wires":[]},{"id":"35d70668.6be0d2","type":"switchNode","name":"switch ar-model.ecomp-generated-naming","xml":"<switch test='`$ar-model.naming-policy`'>\n","comments":"","outputs":1,"x":1840.38623046875,"y":853.767333984375,"z":"bf2de7b8.413148","wires":[["c5a38d06.972378","d046dbae.b5109"]]},{"id":"c5a38d06.972378","type":"other","name":"outcome oam_network_policy","xml":"<outcome value='oam_network_policy'>\n","comments":"","outputs":1,"x":2215.244140625,"y":857.3453369140625,"z":"bf2de7b8.413148","wires":[["53d31de0.592f64"]]},{"id":"d046dbae.b5109","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2129.671875,"y":934.1958618164062,"z":"bf2de7b8.413148","wires":[["53d31de0.592f64"]]},{"id":"a6d75105.5c52c8","type":"set","name":"set ar_name","xml":"<set>\n<parameter name='tmp.ar-name' value='$TenantOAMNetworkRole_$LandingNetworkRole_SZ' />\n","comments":"","x":2521.100830078125,"y":892.7672729492188,"z":"bf2de7b8.413148","wires":[]},{"id":"af081f6c.54a4d","type":"execute","name":"execute SliStringUtils - replace TenantOAMNetworkRole","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$TenantOAMNetworkRole\"/>\n <parameter name=\"replacement\" value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.untrusted-network-role`\"/>\n\n","comments":"","outputs":1,"x":2665.2437858581543,"y":936.6244196891785,"z":"bf2de7b8.413148","wires":[[]]},{"id":"86105782.997358","type":"execute","name":"execute SliStringUtils - replace LandingNetworkRole","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$LandingNetworkRole\"/>\n <parameter name=\"replacement\" value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.trusted-network-role`\"/>\n\n","comments":"","outputs":1,"x":2652.243896484375,"y":976.7672729492188,"z":"bf2de7b8.413148","wires":[[]]},{"id":"53d31de0.592f64","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":2329.5292015075684,"y":932.3387522697449,"z":"bf2de7b8.413148","wires":[["a6d75105.5c52c8","af081f6c.54a4d","86105782.997358","8d2f4598.fa58"]]},{"id":"8d2f4598.fa58","type":"set","name":"set identifiers.allotted-resource-name","xml":"<set>\n<parameter name='brg-ar-identifiers.allotted-resource-name' value='`$tmp.ar-name`' />\n","comments":"","x":2610.1005859375,"y":1027.052978515625,"z":"bf2de7b8.413148","wires":[]},{"id":"489a55af.96a154","type":"set","name":"set assignments in overall structure","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.' \nvalue=\"`$brg-ar-assignments.`\" />\n\n\n","comments":"","x":1219.8624572753906,"y":1063.6246919631958,"z":"bf2de7b8.413148","wires":[]},{"id":"6e15816e.dc1a18","type":"set","name":"Handle brg-ar-assignments","xml":"<set>\n<parameter name='brg-ar-assignments.vbrg-wan-ip' value='127.0.0.1'/>\n","comments":"","x":1199.529052734375,"y":960.0530395507812,"z":"bf2de7b8.413148","wires":[]},{"id":"93589f82.f74e7","type":"for","name":"for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]","xml":"<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n","comments":"","outputs":1,"x":2237.8155822753906,"y":1337.0411586761475,"z":"bf2de7b8.413148","wires":[["10287613.ac1c5a"]]},{"id":"6a7c81a4.d6b458","type":"switchNode","name":"switch service-data.consumed-allotted-resources_length","xml":"<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1268.8148193359375,"y":1224.505126953125,"z":"bf2de7b8.413148","wires":[["93c6f9b5.58d778","7c7889c0.2dcf9"]]},{"id":"93c6f9b5.58d778","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1644.2077865600586,"y":1229.1124458312988,"z":"bf2de7b8.413148","wires":[["51706315.19d304"]]},{"id":"7c7889c0.2dcf9","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1642.9577865600586,"y":1319.1124477386475,"z":"bf2de7b8.413148","wires":[["97e6df3f.75cba"]]},{"id":"10287613.ac1c5a","type":"switchNode","name":"switch allotted-resource-id","xml":"<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n","comments":"","outputs":1,"x":2672.4106826782227,"y":1338.85085105896,"z":"bf2de7b8.413148","wires":[["b1182dc2.599"]]},{"id":"b1182dc2.599","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2879.220375061035,"y":1342.064962387085,"z":"bf2de7b8.413148","wires":[["4a37e6ba.7ef7c8"]]},{"id":"97e6df3f.75cba","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1800.834976196289,"y":1325.4885501861572,"z":"bf2de7b8.413148","wires":[["93589f82.f74e7","af2682ec.9c827"]]},{"id":"4a37e6ba.7ef7c8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3047.4817276000977,"y":1346.9222631454468,"z":"bf2de7b8.413148","wires":[["4d3df632.b7a47","b70883dd.4d196"]]},{"id":"51706315.19d304","type":"set","name":"set cidx","xml":"<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n","comments":"","x":1823.0647735595703,"y":1231.3266830444336,"z":"bf2de7b8.413148","wires":[]},{"id":"4d3df632.b7a47","type":"set","name":"set tmp.cidx and ctx.consumed-ar","xml":"<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n<parameter name='ctx.consumed-ar.' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].`' />\n<parameter name='tmp.found-cidx' value='true' />","comments":"","x":3293.3391876220703,"y":1341.4937419891357,"z":"bf2de7b8.413148","wires":[]},{"id":"764d1d1a.157ec4","type":"set","name":"set consumed allotted resources","xml":"<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$brg-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n","comments":"","x":1179.6720123291016,"y":1389.826681137085,"z":"bf2de7b8.413148","wires":[]},{"id":"22dd0dd8.431072","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1579.910057067871,"y":1750.4815347194672,"z":"bf2de7b8.413148","wires":[["c6583a43.de49f"]]},{"id":"20da9a61.ce80de","type":"comment","name":"Add BRG AR to mdsal","info":"","comments":"","x":1104.148208618164,"y":1725.1957080364227,"z":"bf2de7b8.413148","wires":[]},{"id":"d18da704.925258","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":1120.4814224243164,"y":1463.671986579895,"z":"bf2de7b8.413148","wires":[[]]},{"id":"485cf3c4.63339c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":840.57666015625,"y":407.4814453125,"z":"bf2de7b8.413148","wires":[["f17f867f.41ed8"]]},{"id":"f17f867f.41ed8","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":788.57666015625,"y":903.2908325195312,"z":"bf2de7b8.413148","wires":[["c9560d04.6cea5","d7e419ac.10dda8","a1de8aef.82fc18","a718dba2.92623","8606bb79.93a638","d9e258a7.c1071","1f10f3f4.abae94","7885bfde.a79488","a7fa051c.ec08b8","6e15816e.dc1a18","489a55af.96a154","6a7c81a4.d6b458","764d1d1a.157ec4","d18da704.925258","98199cc9.6a499","1ef29606.df61aa","f12334c3.4295d","410f6b01.d7177c","7d236fa8.ed7de"]]},{"id":"c9560d04.6cea5","type":"set","name":"set id","xml":"<set>\n<parameter name='brg-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='brg-ar.allotted-resource-status.action' value=\"`$brg-topology-operation-input.request-information.request-action` \" />\n<parameter name='brg-ar.allotted-resource-status.rpc-name' value=\"brg-topology-operation\" />\n<parameter name='brg-ar.allotted-resource-status.rpc-action' value=\"`$brg-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$brg-topology-operation-input.request-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$brg-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$brg-topology-operation-input.service-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$brg-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.' value=\"`$brg-topology-operation-input.brg-request-input.` \" />","comments":"","x":1159.2434387207031,"y":413.433837890625,"z":"bf2de7b8.413148","wires":[]},{"id":"1ef29606.df61aa","type":"update","name":"update AAI allotted-resource","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $brg-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $brg-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $brg-topology-operation-input.allotted-resource-information.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$ar-model.invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$ar-model.uuid`\" />\n\t<parameter name=\"operational-status\" value=\"null\" />\n","comments":"","outputs":1,"x":1141.0529327392578,"y":1631.5767517089844,"z":"bf2de7b8.413148","wires":[["d36496a4.dab97","995b6679.f48c1"]]},{"id":"d36496a4.dab97","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1396.814842224121,"y":1614.5292553901672,"z":"bf2de7b8.413148","wires":[["b90d9c62.7bb3c"]]},{"id":"b90d9c62.7bb3c","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=\"AAI failed\" />\n","comments":"","x":1563.338722229004,"y":1626.1483263969421,"z":"bf2de7b8.413148","wires":[]},{"id":"995b6679.f48c1","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1403.9101295471191,"y":1647.2912230491638,"z":"bf2de7b8.413148","wires":[["b90d9c62.7bb3c"]]},{"id":"af2682ec.9c827","type":"switchNode","name":"switch tmp.found-cidx","xml":"<switch test='`$tmp.found-cidx`'>\n","comments":"","outputs":1,"x":2052.743423461914,"y":1583.2315921783447,"z":"bf2de7b8.413148","wires":[["d9e9d9ac.d49268"]]},{"id":"d9e9d9ac.d49268","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2242.743377685547,"y":1583.2315292358398,"z":"bf2de7b8.413148","wires":[["a1cb35d3.82d23"]]},{"id":"a1cb35d3.82d23","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2408.743377685547,"y":1583.2315292358398,"z":"bf2de7b8.413148","wires":[["b0efdb24.9fd4c"]]},{"id":"b0efdb24.9fd4c","type":"set","name":"set tmp.cidx ","xml":"<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n","comments":"","x":2654.600706100464,"y":1583.8030033111572,"z":"bf2de7b8.413148","wires":[]},{"id":"c6583a43.de49f","type":"execute","name":"execute RestApiCallNode - Update parent provided service AR","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n","comments":"","outputs":1,"x":1930.9521980285645,"y":1750.1904199123383,"z":"bf2de7b8.413148","wires":[["9ff1a968.b8411","551760d4.5414a8","4b3d2583.fd580c"]]},{"id":"86908d89.d4e3e8","type":"comment","name":"Rollback parent","info":"","comments":"","x":1774.9521255493164,"y":1719.8570504188538,"z":"bf2de7b8.413148","wires":[]},{"id":"9ff1a968.b8411","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2302.2602462768555,"y":1810.8553862571716,"z":"bf2de7b8.413148","wires":[["5bf32973.a0689"]]},{"id":"551760d4.5414a8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2293.26029586792,"y":1779.3554120063782,"z":"bf2de7b8.413148","wires":[["5bf32973.a0689"]]},{"id":"4b3d2583.fd580c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2297.0103340148926,"y":1749.7125168815255,"z":"bf2de7b8.413148","wires":[["5bf32973.a0689"]]},{"id":"5bf32973.a0689","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":2438.666301727295,"y":1745.9046860709786,"z":"bf2de7b8.413148","wires":[[]]},{"id":"d3365f28.2dd8d","type":"comment","name":"Generate naming","info":"","comments":"","x":1195.3862762451172,"y":760.7672252655029,"z":"bf2de7b8.413148","wires":[]},{"id":"20bd770e.2b589","type":"get-resource","name":"get-resource tunnelxconn-allotted-resource","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='brg-allotted-resources/brg-allotted-resource/$brg-topology-operation-input.allotted-resource-information.allotted-resource-id/' pfx='mdsal-ar' >\n","comments":"","outputs":1,"x":540,"y":359,"z":"bf2de7b8.413148","wires":[["485cf3c4.63339c"]]},{"id":"f626fedf.f8fe98","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":616,"y":250,"z":"bf2de7b8.413148","wires":[[]]},{"id":"5de71d7a.6cddd4","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.brg-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":623,"y":290,"z":"bf2de7b8.413148","wires":[[]]},{"id":"b70883dd.4d196","type":"break","name":"break","xml":"<break>","comments":"","x":3206.243507385254,"y":1386.7316856384277,"z":"bf2de7b8.413148","wires":[]}] +[{"id":"7570f0f1.92a5b","type":"dgstart","name":"DGSTART","outputs":1,"x":151,"y":77,"z":"bf2de7b8.413148","wires":[["d3b5c6d7.62aef"]]},{"id":"d3b5c6d7.62aef","type":"service-logic","name":"GENERIC-RESOURCE-API 1.2.0-SNAPSHOT-111502","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":285.23809814453125,"y":128.952392578125,"z":"bf2de7b8.413148","wires":[["c52f0437.0bb6a8"]]},{"id":"c52f0437.0bb6a8","type":"method","name":"brg-topology-operation-assign","xml":"<method rpc='brg-topology-operation-assign' mode='sync'>\n","comments":"","outputs":1,"x":293.15485763549805,"y":173.19044589996338,"z":"bf2de7b8.413148","wires":[["5d72c5be.42607c"]]},{"id":"5d72c5be.42607c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":201.47619247436523,"y":316.5237879753113,"z":"bf2de7b8.413148","wires":[["ce4415de.9f0f4","d0247918.df4a68","20bd770e.2b589","f626fedf.f8fe98","5de71d7a.6cddd4"]]},{"id":"7d236fa8.ed7de","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":1044.6666564941406,"y":2243.5477046966553,"z":"bf2de7b8.413148","wires":[]},{"id":"410f6b01.d7177c","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $brg-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n","comments":"","x":1081.7540550231934,"y":2122.432439804077,"z":"bf2de7b8.413148","wires":[]},{"id":"98199cc9.6a499","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingCreate' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-topology-operation-input.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":1153.468376159668,"y":1539.6228160858154,"z":"bf2de7b8.413148","wires":[]},{"id":"d0247918.df4a68","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology?content=config'` \" />\n\n","comments":"","x":631.7380676269531,"y":208.33331298828125,"z":"bf2de7b8.413148","wires":[]},{"id":"ce4415de.9f0f4","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$brg-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$brg-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n","comments":"","x":684.997314453125,"y":170.59259033203125,"z":"bf2de7b8.413148","wires":[]},{"id":"93640943.c5ad8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":834.8148803710938,"y":356.26727294921875,"z":"bf2de7b8.413148","wires":[["87e21149.4f9e4"]]},{"id":"f12334c3.4295d","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.brg.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":1174.8626251220703,"y":1764.1008231639862,"z":"bf2de7b8.413148","wires":[["fd12f3ff.cf69e","ab1088f2.67d178","b1a1234c.07f858"]]},{"id":"fd12f3ff.cf69e","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1443.5040016174316,"y":1815.4322349056602,"z":"bf2de7b8.413148","wires":[["8a32e9ad.06d778"]]},{"id":"ab1088f2.67d178","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1434.504051208496,"y":1783.9322606548667,"z":"bf2de7b8.413148","wires":[["8a32e9ad.06d778"]]},{"id":"b1a1234c.07f858","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1438.2540893554688,"y":1754.289365530014,"z":"bf2de7b8.413148","wires":[["22dd0dd8.431072"]]},{"id":"8a32e9ad.06d778","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=\"Error updating md-sal for tunnelxconn-allotted-resource\" />\n","comments":"","x":1604.2540893554688,"y":1784.6822844967246,"z":"bf2de7b8.413148","wires":[]},{"id":"1f10f3f4.abae94","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-ar.allotted-resource-status.rpc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1184.5294189453125,"y":457.05291748046875,"z":"bf2de7b8.413148","wires":[]},{"id":"7cf9af45.cf036","type":"comment","name":"Save consumed-allotted-resources to mdsal","info":"","comments":"","x":1252.2434692382812,"y":1138.7196044921875,"z":"bf2de7b8.413148","wires":[]},{"id":"6194dab8.45fb04","type":"comment","name":"GET tunnelxconn-allotted-resource from mdsal","info":"","comments":"","x":557.8148193359375,"y":326.7672119140625,"z":"bf2de7b8.413148","wires":[]},{"id":"87e21149.4f9e4","type":"returnFailure","name":"return failure - tunnelxconn already exists","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\" \n value=\"`'Existing brg-allotted-resource with order status of ' + $mdsal-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n","comments":"","x":1144.129150390625,"y":352.6243896484375,"z":"bf2de7b8.413148","wires":[]},{"id":"d7e419ac.10dda8","type":"set","name":"set brg-ar-identifiers","xml":"<set>\n<parameter name='brg-ar-identifiers.consuming-service-instance-id' value=\"`$brg-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='brg-ar-identifiers.parent-service-instance-id' value=\"`$brg-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='brg-ar-identifiers.allotted-resource-type' value=\"`$brg-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='brg-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n","comments":"","x":1194.38623046875,"y":550.6243896484375,"z":"bf2de7b8.413148","wires":[]},{"id":"29e4a25b.07caae","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":1221.338623046875,"y":509.338623046875,"z":"bf2de7b8.413148","wires":[]},{"id":"a7fa051c.ec08b8","type":"set","name":"set identifiers in overall structure","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.allotted-resource-identifiers.' \nvalue=\"`$brg-ar-identifiers.`\" />\n\n\n","comments":"","x":1211.38623046875,"y":858.910400390625,"z":"bf2de7b8.413148","wires":[]},{"id":"a1de8aef.82fc18","type":"set","name":"set onap model information from input","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.brg-topology.onap-model-information.' \nvalue=\"`$brg-topology-operation-input.allotted-resource-information.onap-model-information.`\" />\n\n\n","comments":"","x":1239.957763671875,"y":593.9100952148438,"z":"bf2de7b8.413148","wires":[]},{"id":"a718dba2.92623","type":"switchNode","name":"switch model-invariant-uuid is null","xml":"<switch test='$brg-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid'>\n","comments":"","outputs":1,"x":1219.8148193359375,"y":633.19580078125,"z":"bf2de7b8.413148","wires":[["7ca287e7.711478"]]},{"id":"7ca287e7.711478","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1447.9576988220215,"y":634.6243271827698,"z":"bf2de7b8.413148","wires":[["71896d4.b06f794"]]},{"id":"71896d4.b06f794","type":"set","name":"set model-invariant-uuid","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.onap-model-information.model-invariant-uuid' \nvalue=\"`$ar-model.invariant-uuid`\" />\n\n\n","comments":"","x":1649.38627243042,"y":634.0528798103333,"z":"bf2de7b8.413148","wires":[]},{"id":"8606bb79.93a638","type":"switchNode","name":"switch model-uuid is null","xml":"<switch test='$brg-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid'>\n","comments":"","outputs":1,"x":1192.2434158325195,"y":667.4815106391907,"z":"bf2de7b8.413148","wires":[["79f93f5.6db044"]]},{"id":"79f93f5.6db044","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1393.6719818115234,"y":668.0529322624207,"z":"bf2de7b8.413148","wires":[["c81e4cfe.eaa8d8"]]},{"id":"c81e4cfe.eaa8d8","type":"set","name":"set model-uuid","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.onap-model-information.model-uuid' \nvalue=\"`$ar-model.uuid`\" />\n\n\n","comments":"","x":1586.529140472412,"y":668.0528540611267,"z":"bf2de7b8.413148","wires":[]},{"id":"d9e258a7.c1071","type":"switchNode","name":"switch model-version is null","xml":"<switch test='$brg-topology-operation-input.allotted-resource-information.onap-model-information.model-version'>\n","comments":"","outputs":1,"x":1200.8148193359375,"y":700.3386378288269,"z":"bf2de7b8.413148","wires":[["8ee38127.aa0868"]]},{"id":"8ee38127.aa0868","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1450.8148002624512,"y":700.3386225700378,"z":"bf2de7b8.413148","wires":[["610bece7.c45dd4"]]},{"id":"610bece7.c45dd4","type":"set","name":"set model-version","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.model-version' \nvalue=\"`$ar-model.version`\" />\n\n\n","comments":"","x":1643.6719589233398,"y":700.3385443687439,"z":"bf2de7b8.413148","wires":[]},{"id":"7885bfde.a79488","type":"switchNode","name":"switch ar-model.ecomp-generated-naming","xml":"<switch test='`$ar-model.ecomp-generated-naming`'>\n","comments":"","outputs":1,"x":1264.38623046875,"y":802.7672729492188,"z":"bf2de7b8.413148","wires":[["9239a2ce.fafa4","e195da86.529e68"]]},{"id":"9239a2ce.fafa4","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1550.3862915039062,"y":802.1958618164062,"z":"bf2de7b8.413148","wires":[["cad0403.cd4d94"]]},{"id":"cad0403.cd4d94","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"true","comments":"","outputs":1,"x":1704.1363525390625,"y":804.69580078125,"z":"bf2de7b8.413148","wires":[["35d70668.6be0d2"]]},{"id":"e195da86.529e68","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1569.608642578125,"y":891.1958618164062,"z":"bf2de7b8.413148","wires":[["d35a58bc.e50138"]]},{"id":"d35a58bc.e50138","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=\"Error in allotted-resource-model data. Ecomp-generated-naming should be true\" />\n\n","comments":"","x":1752.608642578125,"y":896.1958618164062,"z":"bf2de7b8.413148","wires":[]},{"id":"35d70668.6be0d2","type":"switchNode","name":"switch ar-model.ecomp-generated-naming","xml":"<switch test='`$ar-model.naming-policy`'>\n","comments":"","outputs":1,"x":1840.38623046875,"y":853.767333984375,"z":"bf2de7b8.413148","wires":[["c5a38d06.972378","d046dbae.b5109"]]},{"id":"c5a38d06.972378","type":"other","name":"outcome oam_network_policy","xml":"<outcome value='oam_network_policy'>\n","comments":"","outputs":1,"x":2215.244140625,"y":857.3453369140625,"z":"bf2de7b8.413148","wires":[["53d31de0.592f64"]]},{"id":"d046dbae.b5109","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2129.671875,"y":934.1958618164062,"z":"bf2de7b8.413148","wires":[["53d31de0.592f64"]]},{"id":"a6d75105.5c52c8","type":"set","name":"set ar_name","xml":"<set>\n<parameter name='tmp.ar-name' value='$TenantOAMNetworkRole_$LandingNetworkRole_SZ' />\n","comments":"","x":2521.100830078125,"y":892.7672729492188,"z":"bf2de7b8.413148","wires":[]},{"id":"af081f6c.54a4d","type":"execute","name":"execute SliStringUtils - replace TenantOAMNetworkRole","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$TenantOAMNetworkRole\"/>\n <parameter name=\"replacement\" value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.untrusted-network-role`\"/>\n\n","comments":"","outputs":1,"x":2665.2437858581543,"y":936.6244196891785,"z":"bf2de7b8.413148","wires":[[]]},{"id":"86105782.997358","type":"execute","name":"execute SliStringUtils - replace LandingNetworkRole","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$LandingNetworkRole\"/>\n <parameter name=\"replacement\" value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.trusted-network-role`\"/>\n\n","comments":"","outputs":1,"x":2652.243896484375,"y":976.7672729492188,"z":"bf2de7b8.413148","wires":[[]]},{"id":"53d31de0.592f64","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":2329.5292015075684,"y":932.3387522697449,"z":"bf2de7b8.413148","wires":[["a6d75105.5c52c8","af081f6c.54a4d","86105782.997358","8d2f4598.fa58"]]},{"id":"8d2f4598.fa58","type":"set","name":"set identifiers.allotted-resource-name","xml":"<set>\n<parameter name='brg-ar-identifiers.allotted-resource-name' value='`$tmp.ar-name`' />\n","comments":"","x":2610.1005859375,"y":1027.052978515625,"z":"bf2de7b8.413148","wires":[]},{"id":"489a55af.96a154","type":"set","name":"set assignments in overall structure","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.' \nvalue=\"`$brg-ar-assignments.`\" />\n\n\n","comments":"","x":1219.8624572753906,"y":1063.6246919631958,"z":"bf2de7b8.413148","wires":[]},{"id":"6e15816e.dc1a18","type":"set","name":"Handle brg-ar-assignments","xml":"<set>\n<parameter name='brg-ar-assignments.vbrg-wan-ip' value='127.0.0.1'/>\n","comments":"","x":1199.529052734375,"y":960.0530395507812,"z":"bf2de7b8.413148","wires":[]},{"id":"93589f82.f74e7","type":"for","name":"for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]","xml":"<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n","comments":"","outputs":1,"x":2237.8155822753906,"y":1337.0411586761475,"z":"bf2de7b8.413148","wires":[["10287613.ac1c5a"]]},{"id":"6a7c81a4.d6b458","type":"switchNode","name":"switch service-data.consumed-allotted-resources_length","xml":"<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1268.8148193359375,"y":1224.505126953125,"z":"bf2de7b8.413148","wires":[["93c6f9b5.58d778","7c7889c0.2dcf9"]]},{"id":"93c6f9b5.58d778","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1644.2077865600586,"y":1229.1124458312988,"z":"bf2de7b8.413148","wires":[["51706315.19d304"]]},{"id":"7c7889c0.2dcf9","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1642.9577865600586,"y":1319.1124477386475,"z":"bf2de7b8.413148","wires":[["97e6df3f.75cba"]]},{"id":"10287613.ac1c5a","type":"switchNode","name":"switch allotted-resource-id","xml":"<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n","comments":"","outputs":1,"x":2672.4106826782227,"y":1338.85085105896,"z":"bf2de7b8.413148","wires":[["b1182dc2.599"]]},{"id":"b1182dc2.599","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2879.220375061035,"y":1342.064962387085,"z":"bf2de7b8.413148","wires":[["4a37e6ba.7ef7c8"]]},{"id":"97e6df3f.75cba","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1800.834976196289,"y":1325.4885501861572,"z":"bf2de7b8.413148","wires":[["93589f82.f74e7","af2682ec.9c827"]]},{"id":"4a37e6ba.7ef7c8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3047.4817276000977,"y":1346.9222631454468,"z":"bf2de7b8.413148","wires":[["4d3df632.b7a47","b70883dd.4d196"]]},{"id":"51706315.19d304","type":"set","name":"set cidx","xml":"<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n","comments":"","x":1823.0647735595703,"y":1231.3266830444336,"z":"bf2de7b8.413148","wires":[]},{"id":"4d3df632.b7a47","type":"set","name":"set tmp.cidx and ctx.consumed-ar","xml":"<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n<parameter name='ctx.consumed-ar.' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].`' />\n<parameter name='tmp.found-cidx' value='true' />","comments":"","x":3293.3391876220703,"y":1341.4937419891357,"z":"bf2de7b8.413148","wires":[]},{"id":"764d1d1a.157ec4","type":"set","name":"set consumed allotted resources","xml":"<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$brg-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n","comments":"","x":1179.6720123291016,"y":1389.826681137085,"z":"bf2de7b8.413148","wires":[]},{"id":"22dd0dd8.431072","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1579.910057067871,"y":1750.4815347194672,"z":"bf2de7b8.413148","wires":[["c6583a43.de49f"]]},{"id":"20da9a61.ce80de","type":"comment","name":"Add BRG AR to mdsal","info":"","comments":"","x":1104.148208618164,"y":1725.1957080364227,"z":"bf2de7b8.413148","wires":[]},{"id":"d18da704.925258","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":1120.4814224243164,"y":1463.671986579895,"z":"bf2de7b8.413148","wires":[[]]},{"id":"485cf3c4.63339c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":840.57666015625,"y":407.4814453125,"z":"bf2de7b8.413148","wires":[["f17f867f.41ed8"]]},{"id":"f17f867f.41ed8","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":788.57666015625,"y":903.2908325195312,"z":"bf2de7b8.413148","wires":[["c9560d04.6cea5","d7e419ac.10dda8","a1de8aef.82fc18","a718dba2.92623","8606bb79.93a638","d9e258a7.c1071","1f10f3f4.abae94","7885bfde.a79488","a7fa051c.ec08b8","6e15816e.dc1a18","489a55af.96a154","6a7c81a4.d6b458","764d1d1a.157ec4","d18da704.925258","98199cc9.6a499","1ef29606.df61aa","f12334c3.4295d","410f6b01.d7177c","7d236fa8.ed7de"]]},{"id":"c9560d04.6cea5","type":"set","name":"set id","xml":"<set>\n<parameter name='brg-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='brg-ar.allotted-resource-status.action' value=\"`$brg-topology-operation-input.request-information.request-action` \" />\n<parameter name='brg-ar.allotted-resource-status.rpc-name' value=\"brg-topology-operation\" />\n<parameter name='brg-ar.allotted-resource-status.rpc-action' value=\"`$brg-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$brg-topology-operation-input.request-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$brg-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$brg-topology-operation-input.service-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$brg-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.' value=\"`$brg-topology-operation-input.brg-request-input.` \" />","comments":"","x":1159.2434387207031,"y":413.433837890625,"z":"bf2de7b8.413148","wires":[]},{"id":"1ef29606.df61aa","type":"update","name":"update AAI allotted-resource","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $brg-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $brg-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $brg-topology-operation-input.allotted-resource-information.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$ar-model.invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$ar-model.uuid`\" />\n\t<parameter name=\"operational-status\" value=\"null\" />\n","comments":"","outputs":1,"x":1141.0529327392578,"y":1631.5767517089844,"z":"bf2de7b8.413148","wires":[["d36496a4.dab97","995b6679.f48c1"]]},{"id":"d36496a4.dab97","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1396.814842224121,"y":1614.5292553901672,"z":"bf2de7b8.413148","wires":[["b90d9c62.7bb3c"]]},{"id":"b90d9c62.7bb3c","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=\"AAI failed\" />\n","comments":"","x":1563.338722229004,"y":1626.1483263969421,"z":"bf2de7b8.413148","wires":[]},{"id":"995b6679.f48c1","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1403.9101295471191,"y":1647.2912230491638,"z":"bf2de7b8.413148","wires":[["b90d9c62.7bb3c"]]},{"id":"af2682ec.9c827","type":"switchNode","name":"switch tmp.found-cidx","xml":"<switch test='`$tmp.found-cidx`'>\n","comments":"","outputs":1,"x":2052.743423461914,"y":1583.2315921783447,"z":"bf2de7b8.413148","wires":[["d9e9d9ac.d49268"]]},{"id":"d9e9d9ac.d49268","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2242.743377685547,"y":1583.2315292358398,"z":"bf2de7b8.413148","wires":[["a1cb35d3.82d23"]]},{"id":"a1cb35d3.82d23","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2408.743377685547,"y":1583.2315292358398,"z":"bf2de7b8.413148","wires":[["b0efdb24.9fd4c"]]},{"id":"b0efdb24.9fd4c","type":"set","name":"set tmp.cidx ","xml":"<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n","comments":"","x":2654.600706100464,"y":1583.8030033111572,"z":"bf2de7b8.413148","wires":[]},{"id":"c6583a43.de49f","type":"execute","name":"execute RestApiCallNode - Update parent provided service AR","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n","comments":"","outputs":1,"x":1930.9521980285645,"y":1750.1904199123383,"z":"bf2de7b8.413148","wires":[["9ff1a968.b8411","551760d4.5414a8","4b3d2583.fd580c"]]},{"id":"86908d89.d4e3e8","type":"comment","name":"Rollback parent","info":"","comments":"","x":1774.9521255493164,"y":1719.8570504188538,"z":"bf2de7b8.413148","wires":[]},{"id":"9ff1a968.b8411","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2302.2602462768555,"y":1810.8553862571716,"z":"bf2de7b8.413148","wires":[["5bf32973.a0689"]]},{"id":"551760d4.5414a8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2293.26029586792,"y":1779.3554120063782,"z":"bf2de7b8.413148","wires":[["5bf32973.a0689"]]},{"id":"4b3d2583.fd580c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2297.0103340148926,"y":1749.7125168815255,"z":"bf2de7b8.413148","wires":[["5bf32973.a0689"]]},{"id":"5bf32973.a0689","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":2438.666301727295,"y":1745.9046860709786,"z":"bf2de7b8.413148","wires":[[]]},{"id":"d3365f28.2dd8d","type":"comment","name":"Generate naming","info":"","comments":"","x":1195.3862762451172,"y":760.7672252655029,"z":"bf2de7b8.413148","wires":[]},{"id":"20bd770e.2b589","type":"get-resource","name":"get-resource tunnelxconn-allotted-resource","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='brg-allotted-resources/brg-allotted-resource/$brg-topology-operation-input.allotted-resource-information.allotted-resource-id/' pfx='mdsal-ar' >\n","comments":"","outputs":1,"x":540,"y":359,"z":"bf2de7b8.413148","wires":[["485cf3c4.63339c"]]},{"id":"f626fedf.f8fe98","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":616,"y":250,"z":"bf2de7b8.413148","wires":[[]]},{"id":"5de71d7a.6cddd4","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.brg-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":623,"y":290,"z":"bf2de7b8.413148","wires":[[]]},{"id":"b70883dd.4d196","type":"break","name":"break","xml":"<break>","comments":"","x":3206.243507385254,"y":1386.7316856384277,"z":"bf2de7b8.413148","wires":[]}] diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-create.json index 2b5eff82..f908a045 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-create.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-create.json @@ -1 +1 @@ -[{"id":"b6f76cf0.bed9d","type":"dgstart","name":"DGSTART","outputs":1,"x":295,"y":190,"z":"1afa105.0a3f0f","wires":[["ff3a2e96.20279"]]},{"id":"ff3a2e96.20279","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":391.2380790710449,"y":250.95239067077637,"z":"1afa105.0a3f0f","wires":[["b753df27.1ee1e"]]},{"id":"b753df27.1ee1e","type":"method","name":"brg-topology-operation-create","xml":"<method rpc='brg-topology-operation-create' mode='sync'>\n","comments":"","outputs":1,"x":437.15485763549805,"y":286.1904458999634,"z":"1afa105.0a3f0f","wires":[["3d5f9815.bb72d8"]]},{"id":"3d5f9815.bb72d8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":345.47619247436523,"y":429.5237879753113,"z":"1afa105.0a3f0f","wires":[["bd924d4b.6ac3d","58426f57.d9671","87dd9628.4b8e08","24e1c2bf.f38e3e","56c65e21.0c536","42ea3bdc.05eb14","ad98be46.853ca","9549d5d.4d0ae28","7db0224a.ddf40c","c1426d52.6c3f3","8fad2375.b2e97"]]},{"id":"58426f57.d9671","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":612.0001106262207,"y":1099.2145080566406,"z":"1afa105.0a3f0f","wires":[]},{"id":"bd924d4b.6ac3d","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='brg-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $brg-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n","comments":"","x":640.7540245056152,"y":1063.3370542526245,"z":"1afa105.0a3f0f","wires":[]},{"id":"c1426d52.6c3f3","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-topology-operation-input.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":651.7542190551758,"y":810.0514001846313,"z":"1afa105.0a3f0f","wires":[]},{"id":"24e1c2bf.f38e3e","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/brg-topology/'` \" />\n\n","comments":"","x":607.7380638122559,"y":403.33332538604736,"z":"1afa105.0a3f0f","wires":[]},{"id":"87dd9628.4b8e08","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$brg-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$brg-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.brg-vnf-id' value='`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`' />\n\n\n","comments":"","x":654.9973258972168,"y":369.59259128570557,"z":"1afa105.0a3f0f","wires":[]},{"id":"56c65e21.0c536","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":613.9934196472168,"y":439.23152446746826,"z":"1afa105.0a3f0f","wires":[[]]},{"id":"ad98be46.853ca","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":676.5187530517578,"y":600.4594917297363,"z":"1afa105.0a3f0f","wires":[["26a7a122.8ca35e","eef0e4d0.faeba8"]]},{"id":"42ea3bdc.05eb14","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.brg-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":642.0648536682129,"y":499.0172290802002,"z":"1afa105.0a3f0f","wires":[[]]},{"id":"26a7a122.8ca35e","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":933.8148918151855,"y":599.2672522068024,"z":"1afa105.0a3f0f","wires":[["ba2d298f.ee9da8"]]},{"id":"9549d5d.4d0ae28","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.brg.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":684.5293121337891,"y":953.4341316223145,"z":"1afa105.0a3f0f","wires":[["c81ee454.030d28","6308f6ba.6c5ee8","f6e148d1.5bbbc8"]]},{"id":"c81ee454.030d28","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":954.837329864502,"y":1006.432332418859,"z":"1afa105.0a3f0f","wires":[["a2f954df.7d6a08"]]},{"id":"6308f6ba.6c5ee8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":945.8373794555664,"y":974.9323581680655,"z":"1afa105.0a3f0f","wires":[["a2f954df.7d6a08"]]},{"id":"f6e148d1.5bbbc8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":949.5874176025391,"y":945.2894630432129,"z":"1afa105.0a3f0f","wires":[["956bdde7.54a34"]]},{"id":"a2f954df.7d6a08","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=\"Error updating md-sal for brg-allotted-resource\" />\n","comments":"","x":1115.587417602539,"y":975.6823820099235,"z":"1afa105.0a3f0f","wires":[]},{"id":"ba2d298f.ee9da8","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1114.8148460388184,"y":599.7672016620636,"z":"1afa105.0a3f0f","wires":[["f6b8a443.ce37c8","7f9a9607.9deb78"]]},{"id":"f6b8a443.ce37c8","type":"switchNode","name":"switch brg length","xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1360.6720924377441,"y":634.052964925766,"z":"1afa105.0a3f0f","wires":[["c19598d2.19bd88"]]},{"id":"c19598d2.19bd88","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1551.6720962524414,"y":634.0529625415802,"z":"1afa105.0a3f0f","wires":[["852776b8.720618"]]},{"id":"20c1fba5.738554","type":"set","name":"set brg-ar from get","xml":"<set>\n<parameter name='brg-ar.' value='$mdsal-ar.brg-allotted-resource[0].' />\n","comments":"","x":1951.5292320251465,"y":634.6243867874146,"z":"1afa105.0a3f0f","wires":[]},{"id":"852776b8.720618","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1722.5290794372559,"y":634.6244316101074,"z":"1afa105.0a3f0f","wires":[["20c1fba5.738554","37c4ecf.ab37e14","b8ed9202.62a45"]]},{"id":"37c4ecf.ab37e14","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-ar.allotted-resource-status.rpc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1949.5294761657715,"y":702.0529508590698,"z":"1afa105.0a3f0f","wires":[]},{"id":"a2659467.3372c8","type":"comment","name":"GET brg-allotted-resource from mdsal","info":"","comments":"","x":701.8148155212402,"y":563.7671926021576,"z":"1afa105.0a3f0f","wires":[]},{"id":"b8ed9202.62a45","type":"switchNode","name":"switch order-status","xml":"<switch test='`$brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1959.52925491333,"y":667.6243848800659,"z":"1afa105.0a3f0f","wires":[["994a7d02.f776","c6432d89.74604"]]},{"id":"994a7d02.f776","type":"outcome","name":"outcome PendingCreate","xml":"<outcome value='PendingCreate'>\n","comments":"","outputs":1,"x":2171.1292114257812,"y":628.6243848800659,"z":"1afa105.0a3f0f","wires":[["edf3836c.7ac5a"]]},{"id":"c6432d89.74604","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2196.8435859680176,"y":664.052975654602,"z":"1afa105.0a3f0f","wires":[["edf3836c.7ac5a"]]},{"id":"242cf515.aebfea","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":657.3386383056641,"y":654.3386459350586,"z":"1afa105.0a3f0f","wires":[]},{"id":"7f9a9607.9deb78","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-brg-ar' value='$mdsal-ar.' />\n","comments":"","x":1440.3864250183105,"y":599.7672936916351,"z":"1afa105.0a3f0f","wires":[]},{"id":"1ab1e0dc.601f6f","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":612.9576606750488,"y":468.6243562698364,"z":"1afa105.0a3f0f","wires":[]},{"id":"956bdde7.54a34","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1091.2433853149414,"y":941.481632232666,"z":"1afa105.0a3f0f","wires":[[]]},{"id":"2ad43a51.cbb826","type":"comment","name":"TO DO: vnf/put parent","info":"","comments":"","x":625.2433776855468,"y":875.4815540313718,"z":"1afa105.0a3f0f","wires":[]},{"id":"7db0224a.ddf40c","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":599.2433815002441,"y":771.4815549850464,"z":"1afa105.0a3f0f","wires":[[]]},{"id":"eef0e4d0.faeba8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":933.5766868591309,"y":635.4814250469208,"z":"1afa105.0a3f0f","wires":[["c1d6759.acebc88"]]},{"id":"c1d6759.acebc88","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1113.5766372680664,"y":636.1479756832123,"z":"1afa105.0a3f0f","wires":[[]]},{"id":"8fad2375.b2e97","type":"set","name":"set id","xml":"<set>\n<parameter name='brg-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='brg-ar.allotted-resource-status.action' value=\"`$brg-topology-operation-input.request-information.request-action` \" />\n<parameter name='brg-ar.allotted-resource-status.rpc-name' value=\"brg-topology-operation\" />\n<parameter name='brg-ar.allotted-resource-status.rpc-action' value=\"`$brg-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$brg-topology-operation-input.request-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$brg-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$brg-topology-operation-input.service-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$brg-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.' value=\"`$brg-topology-operation-input.brg-request-input.` \" />","comments":"","x":582.2434234619141,"y":691.1481666564941,"z":"1afa105.0a3f0f","wires":[]},{"id":"edf3836c.7ac5a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2385.5997276306152,"y":630.0000190734863,"z":"1afa105.0a3f0f","wires":[[]]}] +[{"id":"b6f76cf0.bed9d","type":"dgstart","name":"DGSTART","outputs":1,"x":295,"y":190,"z":"1afa105.0a3f0f","wires":[["ff3a2e96.20279"]]},{"id":"ff3a2e96.20279","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":391.2380790710449,"y":250.95239067077637,"z":"1afa105.0a3f0f","wires":[["b753df27.1ee1e"]]},{"id":"b753df27.1ee1e","type":"method","name":"brg-topology-operation-create","xml":"<method rpc='brg-topology-operation-create' mode='sync'>\n","comments":"","outputs":1,"x":437.15485763549805,"y":286.1904458999634,"z":"1afa105.0a3f0f","wires":[["3d5f9815.bb72d8"]]},{"id":"3d5f9815.bb72d8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":345.47619247436523,"y":429.5237879753113,"z":"1afa105.0a3f0f","wires":[["bd924d4b.6ac3d","58426f57.d9671","87dd9628.4b8e08","24e1c2bf.f38e3e","56c65e21.0c536","42ea3bdc.05eb14","ad98be46.853ca","9549d5d.4d0ae28","7db0224a.ddf40c","c1426d52.6c3f3","8fad2375.b2e97"]]},{"id":"58426f57.d9671","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":612.0001106262207,"y":1099.2145080566406,"z":"1afa105.0a3f0f","wires":[]},{"id":"bd924d4b.6ac3d","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='brg-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $brg-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n","comments":"","x":640.7540245056152,"y":1063.3370542526245,"z":"1afa105.0a3f0f","wires":[]},{"id":"c1426d52.6c3f3","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-topology-operation-input.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":651.7542190551758,"y":810.0514001846313,"z":"1afa105.0a3f0f","wires":[]},{"id":"24e1c2bf.f38e3e","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/brg-topology?content=config'` \" />\n\n","comments":"","x":607.7380638122559,"y":403.33332538604736,"z":"1afa105.0a3f0f","wires":[]},{"id":"87dd9628.4b8e08","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$brg-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$brg-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.brg-vnf-id' value='`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`' />\n\n\n","comments":"","x":654.9973258972168,"y":369.59259128570557,"z":"1afa105.0a3f0f","wires":[]},{"id":"56c65e21.0c536","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":613.9934196472168,"y":439.23152446746826,"z":"1afa105.0a3f0f","wires":[[]]},{"id":"ad98be46.853ca","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":676.5187530517578,"y":600.4594917297363,"z":"1afa105.0a3f0f","wires":[["26a7a122.8ca35e","eef0e4d0.faeba8"]]},{"id":"42ea3bdc.05eb14","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.brg-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":642.0648536682129,"y":499.0172290802002,"z":"1afa105.0a3f0f","wires":[[]]},{"id":"26a7a122.8ca35e","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":933.8148918151855,"y":599.2672522068024,"z":"1afa105.0a3f0f","wires":[["ba2d298f.ee9da8"]]},{"id":"9549d5d.4d0ae28","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.brg.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":684.5293121337891,"y":953.4341316223145,"z":"1afa105.0a3f0f","wires":[["c81ee454.030d28","6308f6ba.6c5ee8","f6e148d1.5bbbc8"]]},{"id":"c81ee454.030d28","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":954.837329864502,"y":1006.432332418859,"z":"1afa105.0a3f0f","wires":[["a2f954df.7d6a08"]]},{"id":"6308f6ba.6c5ee8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":945.8373794555664,"y":974.9323581680655,"z":"1afa105.0a3f0f","wires":[["a2f954df.7d6a08"]]},{"id":"f6e148d1.5bbbc8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":949.5874176025391,"y":945.2894630432129,"z":"1afa105.0a3f0f","wires":[["956bdde7.54a34"]]},{"id":"a2f954df.7d6a08","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=\"Error updating md-sal for brg-allotted-resource\" />\n","comments":"","x":1115.587417602539,"y":975.6823820099235,"z":"1afa105.0a3f0f","wires":[]},{"id":"ba2d298f.ee9da8","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1114.8148460388184,"y":599.7672016620636,"z":"1afa105.0a3f0f","wires":[["f6b8a443.ce37c8","7f9a9607.9deb78"]]},{"id":"f6b8a443.ce37c8","type":"switchNode","name":"switch brg length","xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1360.6720924377441,"y":634.052964925766,"z":"1afa105.0a3f0f","wires":[["c19598d2.19bd88"]]},{"id":"c19598d2.19bd88","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1551.6720962524414,"y":634.0529625415802,"z":"1afa105.0a3f0f","wires":[["852776b8.720618"]]},{"id":"20c1fba5.738554","type":"set","name":"set brg-ar from get","xml":"<set>\n<parameter name='brg-ar.' value='$mdsal-ar.brg-allotted-resource[0].' />\n","comments":"","x":1951.5292320251465,"y":634.6243867874146,"z":"1afa105.0a3f0f","wires":[]},{"id":"852776b8.720618","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1722.5290794372559,"y":634.6244316101074,"z":"1afa105.0a3f0f","wires":[["20c1fba5.738554","37c4ecf.ab37e14","b8ed9202.62a45"]]},{"id":"37c4ecf.ab37e14","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-ar.allotted-resource-status.rpc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1949.5294761657715,"y":702.0529508590698,"z":"1afa105.0a3f0f","wires":[]},{"id":"a2659467.3372c8","type":"comment","name":"GET brg-allotted-resource from mdsal","info":"","comments":"","x":701.8148155212402,"y":563.7671926021576,"z":"1afa105.0a3f0f","wires":[]},{"id":"b8ed9202.62a45","type":"switchNode","name":"switch order-status","xml":"<switch test='`$brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1959.52925491333,"y":667.6243848800659,"z":"1afa105.0a3f0f","wires":[["994a7d02.f776","c6432d89.74604"]]},{"id":"994a7d02.f776","type":"outcome","name":"outcome PendingCreate","xml":"<outcome value='PendingCreate'>\n","comments":"","outputs":1,"x":2171.1292114257812,"y":628.6243848800659,"z":"1afa105.0a3f0f","wires":[["edf3836c.7ac5a"]]},{"id":"c6432d89.74604","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2196.8435859680176,"y":664.052975654602,"z":"1afa105.0a3f0f","wires":[["edf3836c.7ac5a"]]},{"id":"242cf515.aebfea","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":657.3386383056641,"y":654.3386459350586,"z":"1afa105.0a3f0f","wires":[]},{"id":"7f9a9607.9deb78","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-brg-ar' value='$mdsal-ar.' />\n","comments":"","x":1440.3864250183105,"y":599.7672936916351,"z":"1afa105.0a3f0f","wires":[]},{"id":"1ab1e0dc.601f6f","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":612.9576606750488,"y":468.6243562698364,"z":"1afa105.0a3f0f","wires":[]},{"id":"956bdde7.54a34","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1091.2433853149414,"y":941.481632232666,"z":"1afa105.0a3f0f","wires":[[]]},{"id":"2ad43a51.cbb826","type":"comment","name":"TO DO: vnf/put parent","info":"","comments":"","x":625.2433776855468,"y":875.4815540313718,"z":"1afa105.0a3f0f","wires":[]},{"id":"7db0224a.ddf40c","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":599.2433815002441,"y":771.4815549850464,"z":"1afa105.0a3f0f","wires":[[]]},{"id":"eef0e4d0.faeba8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":933.5766868591309,"y":635.4814250469208,"z":"1afa105.0a3f0f","wires":[["c1d6759.acebc88"]]},{"id":"c1d6759.acebc88","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1113.5766372680664,"y":636.1479756832123,"z":"1afa105.0a3f0f","wires":[[]]},{"id":"8fad2375.b2e97","type":"set","name":"set id","xml":"<set>\n<parameter name='brg-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='brg-ar.allotted-resource-status.action' value=\"`$brg-topology-operation-input.request-information.request-action` \" />\n<parameter name='brg-ar.allotted-resource-status.rpc-name' value=\"brg-topology-operation\" />\n<parameter name='brg-ar.allotted-resource-status.rpc-action' value=\"`$brg-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$brg-topology-operation-input.request-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$brg-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$brg-topology-operation-input.service-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$brg-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.' value=\"`$brg-topology-operation-input.brg-request-input.` \" />","comments":"","x":582.2434234619141,"y":691.1481666564941,"z":"1afa105.0a3f0f","wires":[]},{"id":"edf3836c.7ac5a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2385.5997276306152,"y":630.0000190734863,"z":"1afa105.0a3f0f","wires":[[]]}] diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-deactivate.json index 25e2c1e6..3a51d424 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-deactivate.json @@ -108,7 +108,7 @@ "id":"7ae0972.e4f1268", "type":"set", "name":"set output to api handler", - "xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='brg-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $brg-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='brg-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $brg-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments":"", "x":632.7540588378906, "y":1976.6704425811768, @@ -134,7 +134,7 @@ "id":"b30da41f.59e8b8", "type":"set", "name":"set tmp.ar.self-link", - "xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/brg-topology/'` \" />\n\n", + "xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/brg-topology?content=config'` \" />\n\n", "comments":"", "x":607.7380638122559, "y":443.33332538604736, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-delete.json index 01498024..542c9b4c 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-delete.json @@ -1 +1 @@ -[{"id":"6b945847.1c8628","type":"dgstart","name":"DGSTART","outputs":1,"x":187,"y":84,"z":"cab86701.408c88","wires":[["46c9c550.08ddbc"]]},{"id":"46c9c550.08ddbc","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":283.2380790710449,"y":144.95239067077637,"z":"cab86701.408c88","wires":[["33033a6c.777e46"]]},{"id":"33033a6c.777e46","type":"method","name":"brg-topology-operation-delete","xml":"<method rpc='brg-topology-operation-delete' mode='sync'>\n","comments":"","outputs":1,"x":329.15485763549805,"y":180.19044589996338,"z":"cab86701.408c88","wires":[["71a136f2.4a6ae8"]]},{"id":"71a136f2.4a6ae8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":237.47619247436523,"y":323.5237879753113,"z":"cab86701.408c88","wires":[["d473982e.2073e8","21b535a4.6f3cfa","58735763.200388","67dca0c.5203f6","d4bebd02.2ac6","ed3aea18.ac56a8","ce33759f.7f8848","af4ea7a7.5e99e8","dd978c58.19189","a078b88c.279298","1469e91d.b421d7","4a2606ec.007d08"]]},{"id":"21b535a4.6f3cfa","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":504.0001106262207,"y":993.2145080566406,"z":"cab86701.408c88","wires":[]},{"id":"d473982e.2073e8","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='brg-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $brg-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n","comments":"","x":532.7540245056152,"y":957.3370542526245,"z":"cab86701.408c88","wires":[]},{"id":"dd978c58.19189","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-topology-operation-input.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":543.7542190551758,"y":704.0514001846313,"z":"cab86701.408c88","wires":[]},{"id":"67dca0c.5203f6","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/brg-topology/'` \" />\n\n","comments":"","x":499.73806381225586,"y":297.33332538604736,"z":"cab86701.408c88","wires":[]},{"id":"58735763.200388","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$brg-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$brg-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.brg-vnf-id' value='`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`' />\n\n\n","comments":"","x":546.9973258972168,"y":263.59259128570557,"z":"cab86701.408c88","wires":[]},{"id":"d4bebd02.2ac6","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":505.9934196472168,"y":333.23152446746826,"z":"cab86701.408c88","wires":[[]]},{"id":"ce33759f.7f8848","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":568.5187530517578,"y":494.4594917297363,"z":"cab86701.408c88","wires":[["3d6ff871.1b6728","c68f9183.6fe9"]]},{"id":"ed3aea18.ac56a8","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.brg-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":534.0648536682129,"y":393.0172290802002,"z":"cab86701.408c88","wires":[[]]},{"id":"3d6ff871.1b6728","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":825.8148918151855,"y":493.26725220680237,"z":"cab86701.408c88","wires":[["cae924d0.c91d68"]]},{"id":"e3d80d76.f38b6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":846.837329864502,"y":900.432332418859,"z":"cab86701.408c88","wires":[["e5182ef1.2930a"]]},{"id":"408d7749.7bfef8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":837.8373794555664,"y":868.9323581680655,"z":"cab86701.408c88","wires":[["e5182ef1.2930a"]]},{"id":"a26d7c72.44fcc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":841.5874176025391,"y":839.2894630432129,"z":"cab86701.408c88","wires":[["e6e17eb6.e762c"]]},{"id":"e5182ef1.2930a","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=\"Error updating md-sal for brg-allotted-resource\" />\n","comments":"","x":1007.5874176025391,"y":869.6823820099235,"z":"cab86701.408c88","wires":[]},{"id":"cae924d0.c91d68","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1006.8148460388184,"y":493.7672016620636,"z":"cab86701.408c88","wires":[["a06def86.57a78","2d0ecbe9.d56c34"]]},{"id":"a06def86.57a78","type":"switchNode","name":"switch brg length","xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1252.6720924377441,"y":528.052964925766,"z":"cab86701.408c88","wires":[["ef02f832.92b468"]]},{"id":"ef02f832.92b468","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1443.6720962524414,"y":528.0529625415802,"z":"cab86701.408c88","wires":[["6ff8e752.374018"]]},{"id":"b7d42ce2.9a481","type":"set","name":"set brg-ar from get","xml":"<set>\n<parameter name='brg-ar.' value='$mdsal-ar.brg-allotted-resource[0].' />\n","comments":"","x":1843.5292320251465,"y":528.6243867874146,"z":"cab86701.408c88","wires":[]},{"id":"6ff8e752.374018","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1614.5290794372559,"y":528.6244316101074,"z":"cab86701.408c88","wires":[["b7d42ce2.9a481","63e31730.e27918","d8d35b13.b628f8"]]},{"id":"63e31730.e27918","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-ar.allotted-resource-status.rpc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1841.5294761657715,"y":596.0529508590698,"z":"cab86701.408c88","wires":[]},{"id":"bed5b961.bd6788","type":"comment","name":"GET brg-allotted-resource from mdsal","info":"","comments":"","x":593.8148155212402,"y":457.7671926021576,"z":"cab86701.408c88","wires":[]},{"id":"d8d35b13.b628f8","type":"switchNode","name":"switch order-status","xml":"<switch test='`$brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1851.52925491333,"y":561.6243848800659,"z":"cab86701.408c88","wires":[["55b36fbc.52943","19d63441.492dec"]]},{"id":"55b36fbc.52943","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2063.1292114257812,"y":522.6243848800659,"z":"cab86701.408c88","wires":[["27c47993.316bb6"]]},{"id":"19d63441.492dec","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2088.8435859680176,"y":558.052975654602,"z":"cab86701.408c88","wires":[["27c47993.316bb6"]]},{"id":"f3aeefda.cd911","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":549.3386383056641,"y":548.3386459350586,"z":"cab86701.408c88","wires":[]},{"id":"2d0ecbe9.d56c34","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-brg-ar' value='$mdsal-ar.' />\n","comments":"","x":1332.3864250183105,"y":493.76729369163513,"z":"cab86701.408c88","wires":[]},{"id":"33868ac7.abca26","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":504.9576606750488,"y":362.6243562698364,"z":"cab86701.408c88","wires":[]},{"id":"e6e17eb6.e762c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":983.2433853149414,"y":835.481632232666,"z":"cab86701.408c88","wires":[[]]},{"id":"2b3604ae.317ccc","type":"comment","name":"TO DO: vnf/put parent","info":"","comments":"","x":517.2433776855468,"y":769.4815540313718,"z":"cab86701.408c88","wires":[]},{"id":"af4ea7a7.5e99e8","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":491.24338150024414,"y":665.4815549850464,"z":"cab86701.408c88","wires":[[]]},{"id":"c68f9183.6fe9","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":825.5766868591309,"y":529.4814250469208,"z":"cab86701.408c88","wires":[["336a662a.c1025a"]]},{"id":"336a662a.c1025a","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1005.5766372680664,"y":530.1479756832123,"z":"cab86701.408c88","wires":[[]]},{"id":"a078b88c.279298","type":"set","name":"set id","xml":"<set>\n<parameter name='brg-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='brg-ar.allotted-resource-status.action' value=\"`$brg-topology-operation-input.request-information.request-action` \" />\n<parameter name='brg-ar.allotted-resource-status.rpc-name' value=\"brg-topology-operation\" />\n<parameter name='brg-ar.allotted-resource-status.rpc-action' value=\"`$brg-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$brg-topology-operation-input.request-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$brg-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$brg-topology-operation-input.service-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$brg-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.' value=\"`$brg-topology-operation-input.brg-request-input.` \" />","comments":"","x":474.24342346191406,"y":585.1481666564941,"z":"cab86701.408c88","wires":[]},{"id":"27c47993.316bb6","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2277.5997276306152,"y":524.0000190734863,"z":"cab86701.408c88","wires":[[]]},{"id":"1469e91d.b421d7","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.brg.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":574.0000152587891,"y":850.0000247955322,"z":"cab86701.408c88","wires":[["a26d7c72.44fcc","408d7749.7bfef8","e3d80d76.f38b6"]]},{"id":"4a2606ec.007d08","type":"set","name":"clear brg-ar-assignments","xml":"<set>\n<parameter name='brg-ar-assignments.' value=\"\" />\n\n\n\n","comments":"","x":518,"y":736,"z":"cab86701.408c88","wires":[]}] +[{"id":"6b945847.1c8628","type":"dgstart","name":"DGSTART","outputs":1,"x":187,"y":84,"z":"cab86701.408c88","wires":[["46c9c550.08ddbc"]]},{"id":"46c9c550.08ddbc","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":283.2380790710449,"y":144.95239067077637,"z":"cab86701.408c88","wires":[["33033a6c.777e46"]]},{"id":"33033a6c.777e46","type":"method","name":"brg-topology-operation-delete","xml":"<method rpc='brg-topology-operation-delete' mode='sync'>\n","comments":"","outputs":1,"x":329.15485763549805,"y":180.19044589996338,"z":"cab86701.408c88","wires":[["71a136f2.4a6ae8"]]},{"id":"71a136f2.4a6ae8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":237.47619247436523,"y":323.5237879753113,"z":"cab86701.408c88","wires":[["d473982e.2073e8","21b535a4.6f3cfa","58735763.200388","67dca0c.5203f6","d4bebd02.2ac6","ed3aea18.ac56a8","ce33759f.7f8848","af4ea7a7.5e99e8","dd978c58.19189","a078b88c.279298","1469e91d.b421d7","4a2606ec.007d08"]]},{"id":"21b535a4.6f3cfa","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":504.0001106262207,"y":993.2145080566406,"z":"cab86701.408c88","wires":[]},{"id":"d473982e.2073e8","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='brg-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $brg-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n","comments":"","x":532.7540245056152,"y":957.3370542526245,"z":"cab86701.408c88","wires":[]},{"id":"dd978c58.19189","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-topology-operation-input.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":543.7542190551758,"y":704.0514001846313,"z":"cab86701.408c88","wires":[]},{"id":"67dca0c.5203f6","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/brg-topology?content=config'` \" />\n\n","comments":"","x":499.73806381225586,"y":297.33332538604736,"z":"cab86701.408c88","wires":[]},{"id":"58735763.200388","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$brg-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$brg-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.brg-vnf-id' value='`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`' />\n\n\n","comments":"","x":546.9973258972168,"y":263.59259128570557,"z":"cab86701.408c88","wires":[]},{"id":"d4bebd02.2ac6","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":505.9934196472168,"y":333.23152446746826,"z":"cab86701.408c88","wires":[[]]},{"id":"ce33759f.7f8848","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":568.5187530517578,"y":494.4594917297363,"z":"cab86701.408c88","wires":[["3d6ff871.1b6728","c68f9183.6fe9"]]},{"id":"ed3aea18.ac56a8","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.brg-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":534.0648536682129,"y":393.0172290802002,"z":"cab86701.408c88","wires":[[]]},{"id":"3d6ff871.1b6728","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":825.8148918151855,"y":493.26725220680237,"z":"cab86701.408c88","wires":[["cae924d0.c91d68"]]},{"id":"e3d80d76.f38b6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":846.837329864502,"y":900.432332418859,"z":"cab86701.408c88","wires":[["e5182ef1.2930a"]]},{"id":"408d7749.7bfef8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":837.8373794555664,"y":868.9323581680655,"z":"cab86701.408c88","wires":[["e5182ef1.2930a"]]},{"id":"a26d7c72.44fcc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":841.5874176025391,"y":839.2894630432129,"z":"cab86701.408c88","wires":[["e6e17eb6.e762c"]]},{"id":"e5182ef1.2930a","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=\"Error updating md-sal for brg-allotted-resource\" />\n","comments":"","x":1007.5874176025391,"y":869.6823820099235,"z":"cab86701.408c88","wires":[]},{"id":"cae924d0.c91d68","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1006.8148460388184,"y":493.7672016620636,"z":"cab86701.408c88","wires":[["a06def86.57a78","2d0ecbe9.d56c34"]]},{"id":"a06def86.57a78","type":"switchNode","name":"switch brg length","xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1252.6720924377441,"y":528.052964925766,"z":"cab86701.408c88","wires":[["ef02f832.92b468"]]},{"id":"ef02f832.92b468","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1443.6720962524414,"y":528.0529625415802,"z":"cab86701.408c88","wires":[["6ff8e752.374018"]]},{"id":"b7d42ce2.9a481","type":"set","name":"set brg-ar from get","xml":"<set>\n<parameter name='brg-ar.' value='$mdsal-ar.brg-allotted-resource[0].' />\n","comments":"","x":1843.5292320251465,"y":528.6243867874146,"z":"cab86701.408c88","wires":[]},{"id":"6ff8e752.374018","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1614.5290794372559,"y":528.6244316101074,"z":"cab86701.408c88","wires":[["b7d42ce2.9a481","63e31730.e27918","d8d35b13.b628f8"]]},{"id":"63e31730.e27918","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-ar.allotted-resource-status.rpc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1841.5294761657715,"y":596.0529508590698,"z":"cab86701.408c88","wires":[]},{"id":"bed5b961.bd6788","type":"comment","name":"GET brg-allotted-resource from mdsal","info":"","comments":"","x":593.8148155212402,"y":457.7671926021576,"z":"cab86701.408c88","wires":[]},{"id":"d8d35b13.b628f8","type":"switchNode","name":"switch order-status","xml":"<switch test='`$brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1851.52925491333,"y":561.6243848800659,"z":"cab86701.408c88","wires":[["55b36fbc.52943","19d63441.492dec"]]},{"id":"55b36fbc.52943","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2063.1292114257812,"y":522.6243848800659,"z":"cab86701.408c88","wires":[["27c47993.316bb6"]]},{"id":"19d63441.492dec","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2088.8435859680176,"y":558.052975654602,"z":"cab86701.408c88","wires":[["27c47993.316bb6"]]},{"id":"f3aeefda.cd911","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":549.3386383056641,"y":548.3386459350586,"z":"cab86701.408c88","wires":[]},{"id":"2d0ecbe9.d56c34","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-brg-ar' value='$mdsal-ar.' />\n","comments":"","x":1332.3864250183105,"y":493.76729369163513,"z":"cab86701.408c88","wires":[]},{"id":"33868ac7.abca26","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":504.9576606750488,"y":362.6243562698364,"z":"cab86701.408c88","wires":[]},{"id":"e6e17eb6.e762c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":983.2433853149414,"y":835.481632232666,"z":"cab86701.408c88","wires":[[]]},{"id":"2b3604ae.317ccc","type":"comment","name":"TO DO: vnf/put parent","info":"","comments":"","x":517.2433776855468,"y":769.4815540313718,"z":"cab86701.408c88","wires":[]},{"id":"af4ea7a7.5e99e8","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":491.24338150024414,"y":665.4815549850464,"z":"cab86701.408c88","wires":[[]]},{"id":"c68f9183.6fe9","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":825.5766868591309,"y":529.4814250469208,"z":"cab86701.408c88","wires":[["336a662a.c1025a"]]},{"id":"336a662a.c1025a","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1005.5766372680664,"y":530.1479756832123,"z":"cab86701.408c88","wires":[[]]},{"id":"a078b88c.279298","type":"set","name":"set id","xml":"<set>\n<parameter name='brg-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='brg-ar.allotted-resource-status.action' value=\"`$brg-topology-operation-input.request-information.request-action` \" />\n<parameter name='brg-ar.allotted-resource-status.rpc-name' value=\"brg-topology-operation\" />\n<parameter name='brg-ar.allotted-resource-status.rpc-action' value=\"`$brg-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$brg-topology-operation-input.request-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$brg-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$brg-topology-operation-input.service-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$brg-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.' value=\"`$brg-topology-operation-input.brg-request-input.` \" />","comments":"","x":474.24342346191406,"y":585.1481666564941,"z":"cab86701.408c88","wires":[]},{"id":"27c47993.316bb6","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2277.5997276306152,"y":524.0000190734863,"z":"cab86701.408c88","wires":[[]]},{"id":"1469e91d.b421d7","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.brg.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":574.0000152587891,"y":850.0000247955322,"z":"cab86701.408c88","wires":[["a26d7c72.44fcc","408d7749.7bfef8","e3d80d76.f38b6"]]},{"id":"4a2606ec.007d08","type":"set","name":"clear brg-ar-assignments","xml":"<set>\n<parameter name='brg-ar-assignments.' value=\"\" />\n\n\n\n","comments":"","x":518,"y":736,"z":"cab86701.408c88","wires":[]}] diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-unassign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-unassign.json index 05162757..84d48aeb 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-unassign.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-unassign.json @@ -1 +1 @@ -[{"id":"8f1f2ad4.1b2628","type":"dgstart","name":"DGSTART","outputs":1,"x":185,"y":110,"z":"892de9cf.a3e7e8","wires":[["aef28f38.d3ad2"]]},{"id":"aef28f38.d3ad2","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":281.2380790710449,"y":170.95239067077637,"z":"892de9cf.a3e7e8","wires":[["d541214e.1421c"]]},{"id":"d541214e.1421c","type":"method","name":"brg-topology-operation-unassign","xml":"<method rpc='brg-topology-operation-unassign' mode='sync'>\n","comments":"","outputs":1,"x":325.15489196777344,"y":210.190447807312,"z":"892de9cf.a3e7e8","wires":[["3d909232.be8cbe"]]},{"id":"3d909232.be8cbe","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":235.47619247436523,"y":349.5237879753113,"z":"892de9cf.a3e7e8","wires":[["ac546d04.a44e3","65b7ebff.45ef54","887af0a1.cfd5a","16719562.f89cfb","921e5db9.a3742","ae6a6800.748f18","4585bd6c.db3454","a30a4193.dc67c"]]},{"id":"65b7ebff.45ef54","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":502.0001106262207,"y":1019.2145080566406,"z":"892de9cf.a3e7e8","wires":[]},{"id":"ac546d04.a44e3","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='brg-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $brg-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n","comments":"","x":530.7540245056152,"y":983.3370542526245,"z":"892de9cf.a3e7e8","wires":[]},{"id":"16719562.f89cfb","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/brg-topology/'` \" />\n\n","comments":"","x":497.73806381225586,"y":323.33332538604736,"z":"892de9cf.a3e7e8","wires":[]},{"id":"887af0a1.cfd5a","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$brg-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$brg-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.brg-vnf-id' value='`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`' />\n\n\n","comments":"","x":544.9973258972168,"y":289.59259128570557,"z":"892de9cf.a3e7e8","wires":[]},{"id":"921e5db9.a3742","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":503.9934196472168,"y":359.23152446746826,"z":"892de9cf.a3e7e8","wires":[[]]},{"id":"4585bd6c.db3454","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":566.5187530517578,"y":520.4594917297363,"z":"892de9cf.a3e7e8","wires":[["39c78959.7ed206","f4ec9c65.dbf1a"]]},{"id":"ae6a6800.748f18","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.brg-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":532.0648536682129,"y":419.0172290802002,"z":"892de9cf.a3e7e8","wires":[[]]},{"id":"39c78959.7ed206","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":823.8148918151855,"y":519.2672522068024,"z":"892de9cf.a3e7e8","wires":[["aa4578bf.e01898"]]},{"id":"cf288e81.867c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":844.837329864502,"y":926.432332418859,"z":"892de9cf.a3e7e8","wires":[["562e732f.776e5c"]]},{"id":"8f1f61fb.4c4c9","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":835.8373794555664,"y":894.9323581680655,"z":"892de9cf.a3e7e8","wires":[["562e732f.776e5c"]]},{"id":"48115134.9ae56","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":839.5874176025391,"y":865.2894630432129,"z":"892de9cf.a3e7e8","wires":[["9c761fba.db0c3"]]},{"id":"562e732f.776e5c","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=\"Error updating md-sal for brg-allotted-resource\" />\n","comments":"","x":1005.5874176025391,"y":895.6823820099235,"z":"892de9cf.a3e7e8","wires":[]},{"id":"aa4578bf.e01898","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1004.8148460388184,"y":519.7672016620636,"z":"892de9cf.a3e7e8","wires":[["d17cf2f0.cec85","dae16c74.e3b7c"]]},{"id":"d17cf2f0.cec85","type":"switchNode","name":"switch brg length","xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1250.6720924377441,"y":554.052964925766,"z":"892de9cf.a3e7e8","wires":[["9eb758cd.982008"]]},{"id":"9eb758cd.982008","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1441.6720962524414,"y":554.0529625415802,"z":"892de9cf.a3e7e8","wires":[["e43335e7.a2b4b8"]]},{"id":"90a7fa85.7e06d8","type":"set","name":"set brg-ar from get","xml":"<set>\n<parameter name='brg-ar.' value='$mdsal-ar.brg-allotted-resource[0].' />\n","comments":"","x":1841.5292320251465,"y":554.6243867874146,"z":"892de9cf.a3e7e8","wires":[]},{"id":"e43335e7.a2b4b8","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1612.5290794372559,"y":554.6244316101074,"z":"892de9cf.a3e7e8","wires":[["90a7fa85.7e06d8","82e79827.7b2528","e9d4c55b.3b68e8"]]},{"id":"82e79827.7b2528","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-ar.allotted-resource-status.rpc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1839.5294761657715,"y":622.0529508590698,"z":"892de9cf.a3e7e8","wires":[]},{"id":"dceff592.9c16a8","type":"comment","name":"GET brg-allotted-resource from mdsal","info":"","comments":"","x":591.8148155212402,"y":483.7671926021576,"z":"892de9cf.a3e7e8","wires":[]},{"id":"e9d4c55b.3b68e8","type":"switchNode","name":"switch order-status","xml":"<switch test='`$brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1849.52925491333,"y":587.6243848800659,"z":"892de9cf.a3e7e8","wires":[["ee32ca42.029ac8","f44f15e1.8ed938"]]},{"id":"ee32ca42.029ac8","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2061.1292114257812,"y":548.6243848800659,"z":"892de9cf.a3e7e8","wires":[["74e489f7.35eb68"]]},{"id":"f44f15e1.8ed938","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2086.8435859680176,"y":584.052975654602,"z":"892de9cf.a3e7e8","wires":[["74e489f7.35eb68"]]},{"id":"dae16c74.e3b7c","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-brg-ar' value='$mdsal-ar.' />\n","comments":"","x":1330.3864250183105,"y":519.7672936916351,"z":"892de9cf.a3e7e8","wires":[]},{"id":"972a22dc.b7b85","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":502.9576606750488,"y":388.6243562698364,"z":"892de9cf.a3e7e8","wires":[]},{"id":"9c761fba.db0c3","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":981.2433853149414,"y":861.481632232666,"z":"892de9cf.a3e7e8","wires":[[]]},{"id":"f4ec9c65.dbf1a","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":823.5766868591309,"y":555.4814250469208,"z":"892de9cf.a3e7e8","wires":[["8c932988.c6f7a8"]]},{"id":"8c932988.c6f7a8","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1003.5766372680664,"y":556.1479756832123,"z":"892de9cf.a3e7e8","wires":[[]]},{"id":"74e489f7.35eb68","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2275.5997276306152,"y":550.0000190734863,"z":"892de9cf.a3e7e8","wires":[[]]},{"id":"a30a4193.dc67c","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":568.0000610351562,"y":878.0000267028809,"z":"892de9cf.a3e7e8","wires":[["48115134.9ae56","8f1f61fb.4c4c9","cf288e81.867c"]]}] +[{"id":"8f1f2ad4.1b2628","type":"dgstart","name":"DGSTART","outputs":1,"x":185,"y":110,"z":"892de9cf.a3e7e8","wires":[["aef28f38.d3ad2"]]},{"id":"aef28f38.d3ad2","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":281.2380790710449,"y":170.95239067077637,"z":"892de9cf.a3e7e8","wires":[["d541214e.1421c"]]},{"id":"d541214e.1421c","type":"method","name":"brg-topology-operation-unassign","xml":"<method rpc='brg-topology-operation-unassign' mode='sync'>\n","comments":"","outputs":1,"x":325.15489196777344,"y":210.190447807312,"z":"892de9cf.a3e7e8","wires":[["3d909232.be8cbe"]]},{"id":"3d909232.be8cbe","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":235.47619247436523,"y":349.5237879753113,"z":"892de9cf.a3e7e8","wires":[["ac546d04.a44e3","65b7ebff.45ef54","887af0a1.cfd5a","16719562.f89cfb","921e5db9.a3742","ae6a6800.748f18","4585bd6c.db3454","a30a4193.dc67c"]]},{"id":"65b7ebff.45ef54","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":502.0001106262207,"y":1019.2145080566406,"z":"892de9cf.a3e7e8","wires":[]},{"id":"ac546d04.a44e3","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='brg-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $brg-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n","comments":"","x":530.7540245056152,"y":983.3370542526245,"z":"892de9cf.a3e7e8","wires":[]},{"id":"16719562.f89cfb","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/brg-topology?content=config'` \" />\n\n","comments":"","x":497.73806381225586,"y":323.33332538604736,"z":"892de9cf.a3e7e8","wires":[]},{"id":"887af0a1.cfd5a","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$brg-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$brg-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.brg-vnf-id' value='`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`' />\n\n\n","comments":"","x":544.9973258972168,"y":289.59259128570557,"z":"892de9cf.a3e7e8","wires":[]},{"id":"921e5db9.a3742","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":503.9934196472168,"y":359.23152446746826,"z":"892de9cf.a3e7e8","wires":[[]]},{"id":"4585bd6c.db3454","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":566.5187530517578,"y":520.4594917297363,"z":"892de9cf.a3e7e8","wires":[["39c78959.7ed206","f4ec9c65.dbf1a"]]},{"id":"ae6a6800.748f18","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.brg-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":532.0648536682129,"y":419.0172290802002,"z":"892de9cf.a3e7e8","wires":[[]]},{"id":"39c78959.7ed206","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":823.8148918151855,"y":519.2672522068024,"z":"892de9cf.a3e7e8","wires":[["aa4578bf.e01898"]]},{"id":"cf288e81.867c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":844.837329864502,"y":926.432332418859,"z":"892de9cf.a3e7e8","wires":[["562e732f.776e5c"]]},{"id":"8f1f61fb.4c4c9","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":835.8373794555664,"y":894.9323581680655,"z":"892de9cf.a3e7e8","wires":[["562e732f.776e5c"]]},{"id":"48115134.9ae56","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":839.5874176025391,"y":865.2894630432129,"z":"892de9cf.a3e7e8","wires":[["9c761fba.db0c3"]]},{"id":"562e732f.776e5c","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=\"Error updating md-sal for brg-allotted-resource\" />\n","comments":"","x":1005.5874176025391,"y":895.6823820099235,"z":"892de9cf.a3e7e8","wires":[]},{"id":"aa4578bf.e01898","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1004.8148460388184,"y":519.7672016620636,"z":"892de9cf.a3e7e8","wires":[["d17cf2f0.cec85","dae16c74.e3b7c"]]},{"id":"d17cf2f0.cec85","type":"switchNode","name":"switch brg length","xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1250.6720924377441,"y":554.052964925766,"z":"892de9cf.a3e7e8","wires":[["9eb758cd.982008"]]},{"id":"9eb758cd.982008","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1441.6720962524414,"y":554.0529625415802,"z":"892de9cf.a3e7e8","wires":[["e43335e7.a2b4b8"]]},{"id":"90a7fa85.7e06d8","type":"set","name":"set brg-ar from get","xml":"<set>\n<parameter name='brg-ar.' value='$mdsal-ar.brg-allotted-resource[0].' />\n","comments":"","x":1841.5292320251465,"y":554.6243867874146,"z":"892de9cf.a3e7e8","wires":[]},{"id":"e43335e7.a2b4b8","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1612.5290794372559,"y":554.6244316101074,"z":"892de9cf.a3e7e8","wires":[["90a7fa85.7e06d8","82e79827.7b2528","e9d4c55b.3b68e8"]]},{"id":"82e79827.7b2528","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-ar.allotted-resource-status.rpc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1839.5294761657715,"y":622.0529508590698,"z":"892de9cf.a3e7e8","wires":[]},{"id":"dceff592.9c16a8","type":"comment","name":"GET brg-allotted-resource from mdsal","info":"","comments":"","x":591.8148155212402,"y":483.7671926021576,"z":"892de9cf.a3e7e8","wires":[]},{"id":"e9d4c55b.3b68e8","type":"switchNode","name":"switch order-status","xml":"<switch test='`$brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1849.52925491333,"y":587.6243848800659,"z":"892de9cf.a3e7e8","wires":[["ee32ca42.029ac8","f44f15e1.8ed938"]]},{"id":"ee32ca42.029ac8","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2061.1292114257812,"y":548.6243848800659,"z":"892de9cf.a3e7e8","wires":[["74e489f7.35eb68"]]},{"id":"f44f15e1.8ed938","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2086.8435859680176,"y":584.052975654602,"z":"892de9cf.a3e7e8","wires":[["74e489f7.35eb68"]]},{"id":"dae16c74.e3b7c","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-brg-ar' value='$mdsal-ar.' />\n","comments":"","x":1330.3864250183105,"y":519.7672936916351,"z":"892de9cf.a3e7e8","wires":[]},{"id":"972a22dc.b7b85","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":502.9576606750488,"y":388.6243562698364,"z":"892de9cf.a3e7e8","wires":[]},{"id":"9c761fba.db0c3","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":981.2433853149414,"y":861.481632232666,"z":"892de9cf.a3e7e8","wires":[[]]},{"id":"f4ec9c65.dbf1a","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":823.5766868591309,"y":555.4814250469208,"z":"892de9cf.a3e7e8","wires":[["8c932988.c6f7a8"]]},{"id":"8c932988.c6f7a8","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1003.5766372680664,"y":556.1479756832123,"z":"892de9cf.a3e7e8","wires":[[]]},{"id":"74e489f7.35eb68","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2275.5997276306152,"y":550.0000190734863,"z":"892de9cf.a3e7e8","wires":[[]]},{"id":"a30a4193.dc67c","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":568.0000610351562,"y":878.0000267028809,"z":"892de9cf.a3e7e8","wires":[["48115134.9ae56","8f1f61fb.4c4c9","cf288e81.867c"]]}] diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-activate.json index 157bc269..cdba47b8 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-activate.json @@ -1 +1 @@ -[{"id":"2343aa38.ae315e","type":"dgstart","name":"DGSTART","outputs":1,"x":186.75,"y":117.75,"z":"813dcd9a.d3bce","wires":[["913493cf.16963"]]},{"id":"913493cf.16963","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":332.9880828857422,"y":192.70239353179932,"z":"813dcd9a.d3bce","wires":[["514806e9.504f"]]},{"id":"514806e9.504f","type":"method","name":"contrail-route-topology-operation-activate","xml":"<method rpc='contrail-route-topology-operation-activate' mode='sync'>\n","comments":"","outputs":1,"x":412.9048500061035,"y":261.9404420852661,"z":"813dcd9a.d3bce","wires":[["fa2967be.15261"]]},{"id":"fa2967be.15261","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":321.2261848449707,"y":405.273784160614,"z":"813dcd9a.d3bce","wires":[["824c9a63.64fca","1dc42b23.680e85","f337c1ee.3a3d8","54e90212.74149c","4015e9a8.6cc8c8","efd1fdfe.31dcd","7fbcf301.da9274","b9d822a8.efbda8","d1f0b04b.3903a8","e1945769.4b158","c88e7d42.8dec2","654c455d.66bcbc","b00f0fb6.47e598","d76d4a4a.711878","4863a49a.47232c","4f9959ff.99f5d","212281cc.a674ae","d2d48767.60437","950cc6c.99f39b8","88a7580.32ec5a8","bf22b626.ac2cc","7e19f3fd.32b57c"]]},{"id":"1dc42b23.680e85","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology/'` \" />\n\n","comments":"","x":583.4880561828613,"y":379.0833215713501,"z":"813dcd9a.d3bce","wires":[]},{"id":"824c9a63.64fca","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$contrail-route-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$contrail-route-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n\n","comments":"","x":630.7473182678223,"y":345.3425874710083,"z":"813dcd9a.d3bce","wires":[]},{"id":"f337c1ee.3a3d8","type":"execute","name":"execute Properties - pull properties file","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":652.6005554199219,"y":410.98155403137207,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"4015e9a8.6cc8c8","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":657.4116058349609,"y":553.2095279693604,"z":"813dcd9a.d3bce","wires":[["d9815ba8.9478c","935a116c.d73118"]]},{"id":"54e90212.74149c","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cr-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":617.8148460388184,"y":474.76722526550293,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"d9815ba8.9478c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":902.7077102661133,"y":554.0173416137695,"z":"813dcd9a.d3bce","wires":[["8c816029.77b7d"]]},{"id":"8c816029.77b7d","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1071.7077140808105,"y":552.5172424316406,"z":"813dcd9a.d3bce","wires":[["c6cb923e.5c1e18"]]},{"id":"c6cb923e.5c1e18","type":"switchNode","name":"switch cr length","xml":"<switch test='`$mdsal-ar.contrail-route-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1282.564956665039,"y":552.1363716125488,"z":"813dcd9a.d3bce","wires":[["a78a62e1.215ed","fd8c66f.8374618"]]},{"id":"a78a62e1.215ed","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1471.8982620239258,"y":552.1363296508789,"z":"813dcd9a.d3bce","wires":[["67688036.f47e3"]]},{"id":"7ffb3b8e.4eb0f4","type":"set","name":"set ar from get","xml":"<set>\n<parameter name='ar.' value='$mdsal-ar.contrail-route-allotted-resource[0].' />\n","comments":"","x":1947.9462203979492,"y":545.3745260238647,"z":"813dcd9a.d3bce","wires":[]},{"id":"67688036.f47e3","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1656.4221515655518,"y":549.041163444519,"z":"813dcd9a.d3bce","wires":[["7ffb3b8e.4eb0f4","25851419.744d64","5cdd13c9.86cf44","9c689889.da3ea8"]]},{"id":"25851419.744d64","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$sz-ar.allotted-resource-status.rpc-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1955.9461479187012,"y":609.469669342041,"z":"813dcd9a.d3bce","wires":[]},{"id":"96c69243.4da77","type":"comment","name":"GET contrail-route-allotted-resource from mdsal","info":"","comments":"","x":673.5648498535156,"y":519.0886821746826,"z":"813dcd9a.d3bce","wires":[]},{"id":"5cdd13c9.86cf44","type":"switchNode","name":"switch order-status","xml":"<switch test='`$ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1963.946002960205,"y":576.3744812011719,"z":"813dcd9a.d3bce","wires":[["59a0add2.ea7254","d1f313dd.919bc"]]},{"id":"59a0add2.ea7254","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2185.7839584350586,"y":560.4697847366333,"z":"813dcd9a.d3bce","wires":[["2367cfdb.f8a1"]]},{"id":"d1f313dd.919bc","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2199.5936737060547,"y":590.8031902313232,"z":"813dcd9a.d3bce","wires":[["5f8feb9f.295cf4"]]},{"id":"5f8feb9f.295cf4","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\" \n value=\"`'Existing contrail-route-allotted-resource with order status of ' + $ar.allotted-resource-data.allotted-resource-oper-status.order-status + ', expecting Created.'`\" />\n","comments":"","x":2440.212423324585,"y":593.7077798843384,"z":"813dcd9a.d3bce","wires":[]},{"id":"9c689889.da3ea8","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-cr-ar' value='$mdsal-ar.' />\n","comments":"","x":2035.8032722473145,"y":512.1840181350708,"z":"813dcd9a.d3bce","wires":[]},{"id":"4dccfc3a.7e6a4c","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":588.7076530456543,"y":444.37435245513916,"z":"813dcd9a.d3bce","wires":[]},{"id":"f6d7f132.e76b98","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Contrail Route not found\" />\n \n","comments":"","x":1658.416997909546,"y":695.0833854675293,"z":"813dcd9a.d3bce","wires":[]},{"id":"935a116c.d73118","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":894.559513092041,"y":589.0834264755249,"z":"813dcd9a.d3bce","wires":[["c76dc8b4.875448"]]},{"id":"c76dc8b4.875448","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1074.5594635009766,"y":589.7499771118164,"z":"813dcd9a.d3bce","wires":[["f6d7f132.e76b98"]]},{"id":"efd1fdfe.31dcd","type":"set","name":"set ar data","xml":"<set>\n<parameter name='ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='ar.allotted-resource-status.action' value=\"`$contrail-route-topology-operation-input.request-information.request-action` \" />\n<parameter name='ar.allotted-resource-status.rpc-name' value=\"contrail-route-topology-operation\" />\n<parameter name='ar.allotted-resource-status.rpc-action' value=\"`$contrail-route-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$contrail-route-topology-operation-input.request-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$contrail-route-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$contrail-route-topology-operation-input.service-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$contrail-route-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.contrail-route-request-input.' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.` \" />\n","comments":"","x":567.4166107177734,"y":590.2737884521484,"z":"813dcd9a.d3bce","wires":[]},{"id":"fd8c66f.8374618","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1460.2262153625488,"y":589.4166898727417,"z":"813dcd9a.d3bce","wires":[["f6d7f132.e76b98"]]},{"id":"2367cfdb.f8a1","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2424.083469390869,"y":559.4166975021362,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"e6e6b312.9ff66","type":"not-found","name":"not found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":912.0356597900391,"y":848.4643956422806,"z":"813dcd9a.d3bce","wires":[["c9758edd.27c358"]]},{"id":"aab18dd2.ccd71","type":"get-resource","name":"get AnAI - l3-network by network-id","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.src-network\">\n","comments":"","outputs":1,"x":635.234001159668,"y":859.7109127044678,"z":"813dcd9a.d3bce","wires":[["4ad4f4bf.b880f4","e6e6b312.9ff66","1feeeaa4.ceb4fd"]]},{"id":"4ad4f4bf.b880f4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":904.7577667236328,"y":882.9489995241165,"z":"813dcd9a.d3bce","wires":[["c9758edd.27c358"]]},{"id":"c9758edd.27c358","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 retrieving source network with network-id=' + $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id + ' from AnAI'`\" />","comments":"","x":1056.8687286376953,"y":879.1712285280228,"z":"813dcd9a.d3bce","wires":[]},{"id":"1feeeaa4.ceb4fd","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":910.0357208251953,"y":914.4643956422806,"z":"813dcd9a.d3bce","wires":[["e7887ed9.ffdb8"]]},{"id":"e7887ed9.ffdb8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1062.7022857666016,"y":912.7977238893509,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"12c0c74b.daf7b1","type":"comment","name":"GET source network from AAI","info":"","comments":"","x":613.4642181396484,"y":828.4643898010254,"z":"813dcd9a.d3bce","wires":[]},{"id":"b90ed216.18a428","type":"not-found","name":"not found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":929.75,"y":1112.1787095069885,"z":"813dcd9a.d3bce","wires":[["b83d895b.4f291"]]},{"id":"7fbcf301.da9274","type":"get-resource","name":"get AnAI - l3-network by network-id","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.dest-network.network-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.dest-network\">\n","comments":"","outputs":1,"x":658.3769226074219,"y":1119.710970401764,"z":"813dcd9a.d3bce","wires":[["b8838c73.a36ad8","b90ed216.18a428","389164df.893924"]]},{"id":"b8838c73.a36ad8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":922.4721069335938,"y":1146.6633133888245,"z":"813dcd9a.d3bce","wires":[["b83d895b.4f291"]]},{"id":"b83d895b.4f291","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 retrieving destination network with network-id=' + $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id + ' from AnAI'`\" />","comments":"","x":1074.5830688476562,"y":1142.8855423927307,"z":"813dcd9a.d3bce","wires":[]},{"id":"389164df.893924","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":932.3215103149414,"y":1181.0357780456543,"z":"813dcd9a.d3bce","wires":[["4306a8fb.a6b5e8"]]},{"id":"4306a8fb.a6b5e8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1084.9880752563477,"y":1179.3691062927246,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"7d0a4ab3.6c586c","type":"comment","name":"GET dest network from AAI","info":"","comments":"","x":631.1785430908203,"y":1087.8929624557495,"z":"813dcd9a.d3bce","wires":[]},{"id":"b9d822a8.efbda8","type":"set","name":"set policy fq-name","xml":"<set>\n<parameter name='tmp.fq-name' value=\"`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.fq-name` \" />\n","comments":"","x":584.1786270141602,"y":905.6071510314941,"z":"813dcd9a.d3bce","wires":[]},{"id":"d1f0b04b.3903a8","type":"set","name":"set cloud-region-id for input to contrail","xml":"<set>\n<parameter name='cloud-region-id' value='`$tmp.ar.cloud-region-id`' />\n","comments":"","x":646.1733093261719,"y":939.6969985961914,"z":"813dcd9a.d3bce","wires":[]},{"id":"654c455d.66bcbc","type":"execute","name":"execute Contrail API apply network policy to source network","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='network-policy' />\n<parameter name='api-action' value='apply' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='cloud-region-id' value='`$tmp.ar.cloud-region-id`' />\n<parameter name='contrail-network-policy-id' value='`$ar-assignments.contrail-id`' />\n<parameter name='contrail-network-policy-fq-name' value='`$ar-assignments.contrail-fq-name`' />\n<parameter name='contrail-virtual-network-id' value='`$aai.src-network.contrail-network-fqdn`' />\n\n","comments":"","outputs":1,"x":722.3638305664062,"y":1012.6971964836121,"z":"813dcd9a.d3bce","wires":[["773f5c52.d9a844","65423029.2aa448"]]},{"id":"773f5c52.d9a844","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1078.0303268432617,"y":1013.1254234313965,"z":"813dcd9a.d3bce","wires":[["6efba2cc.644a4c"]]},{"id":"65423029.2aa448","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1076.1256484985352,"y":1046.1253631971776,"z":"813dcd9a.d3bce","wires":[["f8269b33.8f2818"]]},{"id":"f8269b33.8f2818","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=\"Failed to apply policy in Contrail to source network\" />\n","comments":"","x":1236.030418395996,"y":1045.4587297439575,"z":"813dcd9a.d3bce","wires":[]},{"id":"6efba2cc.644a4c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1230.2208099365234,"y":1013.792148437351,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"e1945769.4b158","type":"set","name":"set ar-assignments","xml":"<set>\n<parameter name='ar-assignments.' value=\"`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.`\" />\n\n\n\n","comments":"","x":594.75,"y":624.75,"z":"813dcd9a.d3bce","wires":[]},{"id":"c88e7d42.8dec2","type":"switchNode","name":"switch source-network.network-id","xml":"<switch test='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id`'>\n\n","comments":"","outputs":1,"x":638.75,"y":784.75,"z":"813dcd9a.d3bce","wires":[["9f744453.f73d38","731c0d32.4efde4"]]},{"id":"9f744453.f73d38","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":994.7502174377441,"y":783.4163794517517,"z":"813dcd9a.d3bce","wires":[["8990ad.edf7ff5"]]},{"id":"731c0d32.4efde4","type":"other","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":990.4170341491699,"y":746.4161796569824,"z":"813dcd9a.d3bce","wires":[["ee9e549.5240d28"]]},{"id":"bdbbd6c9.1a2c2","type":"switchNode","name":"switch service-data.networks.network_length","xml":"<switch test='`$service-data.networks.network_length`'>\n","comments":"","outputs":1,"x":1386.5756530761719,"y":783.4322066307068,"z":"813dcd9a.d3bce","wires":[["b140a749.4fc48","46a1cf55.e7ba18"]]},{"id":"b140a749.4fc48","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1675.5756530761719,"y":785.432267665863,"z":"813dcd9a.d3bce","wires":[["2aaebe6b.9c4f0a"]]},{"id":"46a1cf55.e7ba18","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1655.5756530761719,"y":820.432267665863,"z":"813dcd9a.d3bce","wires":[["2365445.39bcbbc"]]},{"id":"8990ad.edf7ff5","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1128.861473083496,"y":783.8607840538025,"z":"813dcd9a.d3bce","wires":[["bdbbd6c9.1a2c2"]]},{"id":"ee9e549.5240d28","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=\"Error activating contrail route. Source network not found\" />\n","comments":"","x":1144.5504989624023,"y":747.0830821990967,"z":"813dcd9a.d3bce","wires":[]},{"id":"5a5383e9.72c19c","type":"comment","name":"Find tenant id/cloud region from source network","info":"","comments":"","x":676.1503219604492,"y":751.4163160324097,"z":"813dcd9a.d3bce","wires":[]},{"id":"70cd42d4.2890fc","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":2118.7500610351562,"y":820.7500228881836,"z":"813dcd9a.d3bce","wires":[["f4807d03.933b48"]]},{"id":"2365445.39bcbbc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1844.7341003417969,"y":820.8760228157043,"z":"813dcd9a.d3bce","wires":[["70cd42d4.2890fc"]]},{"id":"2aaebe6b.9c4f0a","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=\"Error activating contrail route. Source network not found\" />\n","comments":"","x":1857.2388000488281,"y":785.3055934906006,"z":"813dcd9a.d3bce","wires":[]},{"id":"f4807d03.933b48","type":"switchNode","name":"switch networkid found","xml":"<switch test=\"`$service-data.networks.network[$nidx].network-id == $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id`\">\n\n","comments":"","outputs":1,"x":2411.3048706054688,"y":817.6391496658325,"z":"813dcd9a.d3bce","wires":[["436eb069.fa0778","4fbc2bc4.af96fc"]]},{"id":"13f4d129.adecdf","type":"set","name":"set cloud region id","xml":"<set>\n<parameter name='tmp.ar.cloud-region-id' value='`$service-data.networks.network[$nidx].network-data.network-topology.aic-cloud-region`' />\n\n\n","comments":"","x":2993.9715118408203,"y":818.6392183303833,"z":"813dcd9a.d3bce","wires":[]},{"id":"a30719a6.edc868","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2761.0379848480225,"y":820.6391382217407,"z":"813dcd9a.d3bce","wires":[["13f4d129.adecdf"]]},{"id":"436eb069.fa0778","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2605.571361541748,"y":820.6390008926392,"z":"813dcd9a.d3bce","wires":[["a30719a6.edc868"]]},{"id":"4fbc2bc4.af96fc","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2606.3709716796875,"y":858.6390037536621,"z":"813dcd9a.d3bce","wires":[["387271c4.dfcf4e"]]},{"id":"387271c4.dfcf4e","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=\"Error activating contrail route. Source network not found\" />\n","comments":"","x":2784.3711280822754,"y":858.6390695571899,"z":"813dcd9a.d3bce","wires":[]},{"id":"14b22c6c.fcabfc","type":"comment","name":"Apply the policy to source network","info":"","comments":"","x":640.7500152587891,"y":980.7500286102295,"z":"813dcd9a.d3bce","wires":[]},{"id":"b00f0fb6.47e598","type":"execute","name":"execute Contrail API apply network policy to destination network","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='network-policy' />\n<parameter name='api-action' value='apply' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='cloud-region-id' value='`$tmp.ar.cloud-region-id`' />\n<parameter name='contrail-network-policy-id' value='`$ar-assignments.contrail-id`' />\n<parameter name='contrail-network-policy-fq-name' value='`$ar-assignments.contrail-fq-name`' />\n<parameter name='contrail-virtual-network-id' value='`$aai.dest-network.contrail-network-fqdn`' />\n\n","comments":"","outputs":1,"x":746.7500610351562,"y":1264.750036239624,"z":"813dcd9a.d3bce","wires":[["c55c7ba4.af1c78","6f74bbcd.1e8a04"]]},{"id":"c55c7ba4.af1c78","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1082.4164962768555,"y":1265.1782269477844,"z":"813dcd9a.d3bce","wires":[["31c3a18d.c35b96"]]},{"id":"6f74bbcd.1e8a04","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1080.511817932129,"y":1298.1781667135656,"z":"813dcd9a.d3bce","wires":[["b857d4cd.98af18"]]},{"id":"b857d4cd.98af18","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=\"Failed to apply policy in Contrail to source network\" />\n","comments":"","x":1240.4165878295898,"y":1297.5115332603455,"z":"813dcd9a.d3bce","wires":[]},{"id":"31c3a18d.c35b96","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1234.6069793701172,"y":1265.844951953739,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"f17083c0.fd25f8","type":"comment","name":"Apply the policy to dest network","info":"","comments":"","x":645.1361846923828,"y":1232.8028321266174,"z":"813dcd9a.d3bce","wires":[]},{"id":"d76d4a4a.711878","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":555.7501792907715,"y":2140.7266874313354,"z":"813dcd9a.d3bce","wires":[]},{"id":"4863a49a.47232c","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='contrail-route-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $contrail-route-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n","comments":"","x":584.5040855407715,"y":2103.1824808120728,"z":"813dcd9a.d3bce","wires":[]},{"id":"4f9959ff.99f5d","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Active' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$contrail-route-topology-operation-input.request-information.request-action`' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$contrail-route-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$contrail-route-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":616.1709213256836,"y":1962.2300510406494,"z":"813dcd9a.d3bce","wires":[]},{"id":"212281cc.a674ae","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cr.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":644.2793960571289,"y":2036.279543876648,"z":"813dcd9a.d3bce","wires":[["d4e42d2d.79d87","8d96d215.4633c","51423045.023d"]]},{"id":"d4e42d2d.79d87","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":914.5874137878418,"y":2089.2777446731925,"z":"813dcd9a.d3bce","wires":[["59c58cd2.31ad04"]]},{"id":"8d96d215.4633c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":905.5874633789062,"y":2057.777770422399,"z":"813dcd9a.d3bce","wires":[["59c58cd2.31ad04"]]},{"id":"51423045.023d","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":909.3375015258789,"y":2028.1348752975464,"z":"813dcd9a.d3bce","wires":[["b28af593.fdcef8"]]},{"id":"59c58cd2.31ad04","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=\"Error updating md-sal for contrail-route-allotted-resource\" />\n","comments":"","x":1075.337501525879,"y":2058.527794264257,"z":"813dcd9a.d3bce","wires":[]},{"id":"b28af593.fdcef8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1050.9934692382812,"y":2024.3270444869995,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"d2d48767.60437","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":566.9935150146484,"y":1928.6601829528809,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"f8def33f.3a491","type":"comment","name":"Need to rollback aai here","info":"","comments":"","x":1301.416763305664,"y":2057.84538936615,"z":"813dcd9a.d3bce","wires":[]},{"id":"60c83994.dfd038","type":"comment","name":"Create network policy in AAI","info":"","comments":"","x":600.7500381469727,"y":1877.8452768325806,"z":"813dcd9a.d3bce","wires":[]},{"id":"950cc6c.99f39b8","type":"update","name":"update AAI allotted-resource","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"operational-status\" value=\"in-service-path\" />\n","comments":"","outputs":1,"x":605.3691101074219,"y":1839.7978992462158,"z":"813dcd9a.d3bce","wires":[["efbf0aed.e07788","115125da.13114a"]]},{"id":"efbf0aed.e07788","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":873.1310272216797,"y":1817.0359525680542,"z":"813dcd9a.d3bce","wires":[["cc34374d.c82f98"]]},{"id":"115125da.13114a","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":878.4404563903809,"y":1852.607370376587,"z":"813dcd9a.d3bce","wires":[["cc34374d.c82f98"]]},{"id":"cc34374d.c82f98","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=\"AAI failed\" />\n","comments":"","x":1088.2262420654297,"y":1818.6549968719482,"z":"813dcd9a.d3bce","wires":[]},{"id":"eb7af3d8.e2e8d8","type":"comment","name":"Update AAI AR","info":"","comments":"","x":558.7119522094727,"y":1799.226222038269,"z":"813dcd9a.d3bce","wires":[]},{"id":"c5899b4c.6cd78","type":"comment","name":"Update network policy in AAI - relationship to networks","info":"","comments":"","x":708.7501220703125,"y":1504.7500410079956,"z":"813dcd9a.d3bce","wires":[]},{"id":"88a7580.32ec5a8","type":"save","name":"save AnAI - network-policy relationship to source and destination network","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy:relationship-list\" \n\tkey=\"network-policy.network-policy-id = $ar-assignments.contrail-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`tmp.AnAI-src.related-link`\" />\n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"l3-network\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"`tmp.AnAI-dest.related-link`\" />\n\n\n","comments":"","outputs":1,"x":770.1270179748535,"y":1541.8175249099731,"z":"813dcd9a.d3bce","wires":[["e5a67b45.20b1c","b871af24.755df8"]]},{"id":"ae7fe4ff.4e4498","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=\"Failed to save network policy in AAI\" />\n","comments":"","x":1414.4725036621094,"y":1538.0994877815247,"z":"813dcd9a.d3bce","wires":[]},{"id":"e5a67b45.20b1c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1185.9011116027832,"y":1541.115225315094,"z":"813dcd9a.d3bce","wires":[["ae7fe4ff.4e4498"]]},{"id":"b871af24.755df8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1189.7106094360352,"y":1569.5916419029236,"z":"813dcd9a.d3bce","wires":[["ae7fe4ff.4e4498"]]},{"id":"bf22b626.ac2cc","type":"save","name":"get related-link data for source network","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"related-link\"\nkey=\"l3-network.network-id = $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id\"\nlocal-only=\"true\"\npfx=\"tmp.AnAI-src\">\n\n\n\n","comments":"","outputs":1,"x":674.7500152587891,"y":1338.7500371932983,"z":"813dcd9a.d3bce","wires":[["ab369e17.3ba35","332634da.627144"]]},{"id":"77aaf3ff.eeeb7c","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=\"Failed to get related link for l3-network in AAI\" />\n","comments":"","x":1318.75,"y":1344.75,"z":"813dcd9a.d3bce","wires":[]},{"id":"ab369e17.3ba35","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1090.1786079406738,"y":1343.7657375335693,"z":"813dcd9a.d3bce","wires":[["77aaf3ff.eeeb7c"]]},{"id":"332634da.627144","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1093.9881057739258,"y":1373.242154121399,"z":"813dcd9a.d3bce","wires":[["77aaf3ff.eeeb7c"]]},{"id":"7e19f3fd.32b57c","type":"save","name":"get related-link data for dest network","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"related-link\"\nkey=\"l3-network.network-id = $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.dest-network.network-id\"\nlocal-only=\"true\"\npfx=\"tmp.AnAI-dest\">\n\n\n\n","comments":"","outputs":1,"x":670.75,"y":1412.75,"z":"813dcd9a.d3bce","wires":[["6d15b228.6d5114","4640b9d8.04f298"]]},{"id":"ea538b84.fbe59","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=\"Failed to get related link for l3-network in AAI\" />\n","comments":"","x":1112.7500381469727,"y":1422.7500410079956,"z":"813dcd9a.d3bce","wires":[]},{"id":"6d15b228.6d5114","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":930.1786422729492,"y":1409.7657642364502,"z":"813dcd9a.d3bce","wires":[["ea538b84.fbe59"]]},{"id":"4640b9d8.04f298","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":935.9881210327148,"y":1439.2422285079956,"z":"813dcd9a.d3bce","wires":[["ea538b84.fbe59"]]}]
\ No newline at end of file +[{"id":"2343aa38.ae315e","type":"dgstart","name":"DGSTART","outputs":1,"x":186.75,"y":117.75,"z":"813dcd9a.d3bce","wires":[["913493cf.16963"]]},{"id":"913493cf.16963","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":332.9880828857422,"y":192.70239353179932,"z":"813dcd9a.d3bce","wires":[["514806e9.504f"]]},{"id":"514806e9.504f","type":"method","name":"contrail-route-topology-operation-activate","xml":"<method rpc='contrail-route-topology-operation-activate' mode='sync'>\n","comments":"","outputs":1,"x":412.9048500061035,"y":261.9404420852661,"z":"813dcd9a.d3bce","wires":[["fa2967be.15261"]]},{"id":"fa2967be.15261","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":321.2261848449707,"y":405.273784160614,"z":"813dcd9a.d3bce","wires":[["824c9a63.64fca","1dc42b23.680e85","f337c1ee.3a3d8","54e90212.74149c","4015e9a8.6cc8c8","efd1fdfe.31dcd","7fbcf301.da9274","b9d822a8.efbda8","d1f0b04b.3903a8","e1945769.4b158","c88e7d42.8dec2","654c455d.66bcbc","b00f0fb6.47e598","d76d4a4a.711878","4863a49a.47232c","4f9959ff.99f5d","212281cc.a674ae","d2d48767.60437","950cc6c.99f39b8","88a7580.32ec5a8","bf22b626.ac2cc","7e19f3fd.32b57c"]]},{"id":"1dc42b23.680e85","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology?content=config'` \" />\n\n","comments":"","x":583.4880561828613,"y":379.0833215713501,"z":"813dcd9a.d3bce","wires":[]},{"id":"824c9a63.64fca","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$contrail-route-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$contrail-route-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n\n","comments":"","x":630.7473182678223,"y":345.3425874710083,"z":"813dcd9a.d3bce","wires":[]},{"id":"f337c1ee.3a3d8","type":"execute","name":"execute Properties - pull properties file","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":652.6005554199219,"y":410.98155403137207,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"4015e9a8.6cc8c8","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":657.4116058349609,"y":553.2095279693604,"z":"813dcd9a.d3bce","wires":[["d9815ba8.9478c","935a116c.d73118"]]},{"id":"54e90212.74149c","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.cr-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":617.8148460388184,"y":474.76722526550293,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"d9815ba8.9478c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":902.7077102661133,"y":554.0173416137695,"z":"813dcd9a.d3bce","wires":[["8c816029.77b7d"]]},{"id":"8c816029.77b7d","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1071.7077140808105,"y":552.5172424316406,"z":"813dcd9a.d3bce","wires":[["c6cb923e.5c1e18"]]},{"id":"c6cb923e.5c1e18","type":"switchNode","name":"switch cr length","xml":"<switch test='`$mdsal-ar.contrail-route-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1282.564956665039,"y":552.1363716125488,"z":"813dcd9a.d3bce","wires":[["a78a62e1.215ed","fd8c66f.8374618"]]},{"id":"a78a62e1.215ed","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1471.8982620239258,"y":552.1363296508789,"z":"813dcd9a.d3bce","wires":[["67688036.f47e3"]]},{"id":"7ffb3b8e.4eb0f4","type":"set","name":"set ar from get","xml":"<set>\n<parameter name='ar.' value='$mdsal-ar.contrail-route-allotted-resource[0].' />\n","comments":"","x":1947.9462203979492,"y":545.3745260238647,"z":"813dcd9a.d3bce","wires":[]},{"id":"67688036.f47e3","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1656.4221515655518,"y":549.041163444519,"z":"813dcd9a.d3bce","wires":[["7ffb3b8e.4eb0f4","25851419.744d64","5cdd13c9.86cf44","9c689889.da3ea8"]]},{"id":"25851419.744d64","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$sz-ar.allotted-resource-status.rpc-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1955.9461479187012,"y":609.469669342041,"z":"813dcd9a.d3bce","wires":[]},{"id":"96c69243.4da77","type":"comment","name":"GET contrail-route-allotted-resource from mdsal","info":"","comments":"","x":673.5648498535156,"y":519.0886821746826,"z":"813dcd9a.d3bce","wires":[]},{"id":"5cdd13c9.86cf44","type":"switchNode","name":"switch order-status","xml":"<switch test='`$ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1963.946002960205,"y":576.3744812011719,"z":"813dcd9a.d3bce","wires":[["59a0add2.ea7254","d1f313dd.919bc"]]},{"id":"59a0add2.ea7254","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2185.7839584350586,"y":560.4697847366333,"z":"813dcd9a.d3bce","wires":[["2367cfdb.f8a1"]]},{"id":"d1f313dd.919bc","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2199.5936737060547,"y":590.8031902313232,"z":"813dcd9a.d3bce","wires":[["5f8feb9f.295cf4"]]},{"id":"5f8feb9f.295cf4","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\" \n value=\"`'Existing contrail-route-allotted-resource with order status of ' + $ar.allotted-resource-data.allotted-resource-oper-status.order-status + ', expecting Created.'`\" />\n","comments":"","x":2440.212423324585,"y":593.7077798843384,"z":"813dcd9a.d3bce","wires":[]},{"id":"9c689889.da3ea8","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-cr-ar' value='$mdsal-ar.' />\n","comments":"","x":2035.8032722473145,"y":512.1840181350708,"z":"813dcd9a.d3bce","wires":[]},{"id":"4dccfc3a.7e6a4c","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":588.7076530456543,"y":444.37435245513916,"z":"813dcd9a.d3bce","wires":[]},{"id":"f6d7f132.e76b98","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"Error: Contrail Route not found\" />\n \n","comments":"","x":1658.416997909546,"y":695.0833854675293,"z":"813dcd9a.d3bce","wires":[]},{"id":"935a116c.d73118","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":894.559513092041,"y":589.0834264755249,"z":"813dcd9a.d3bce","wires":[["c76dc8b4.875448"]]},{"id":"c76dc8b4.875448","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1074.5594635009766,"y":589.7499771118164,"z":"813dcd9a.d3bce","wires":[["f6d7f132.e76b98"]]},{"id":"efd1fdfe.31dcd","type":"set","name":"set ar data","xml":"<set>\n<parameter name='ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='ar.allotted-resource-status.action' value=\"`$contrail-route-topology-operation-input.request-information.request-action` \" />\n<parameter name='ar.allotted-resource-status.rpc-name' value=\"contrail-route-topology-operation\" />\n<parameter name='ar.allotted-resource-status.rpc-action' value=\"`$contrail-route-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$contrail-route-topology-operation-input.request-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$contrail-route-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$contrail-route-topology-operation-input.service-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$contrail-route-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='ar.allotted-resource-data.allotted-resource-operation-information.contrail-route-request-input.' value=\"`$contrail-route-topology-operation-input.contrail-route-request-input.` \" />\n","comments":"","x":567.4166107177734,"y":590.2737884521484,"z":"813dcd9a.d3bce","wires":[]},{"id":"fd8c66f.8374618","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1460.2262153625488,"y":589.4166898727417,"z":"813dcd9a.d3bce","wires":[["f6d7f132.e76b98"]]},{"id":"2367cfdb.f8a1","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2424.083469390869,"y":559.4166975021362,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"e6e6b312.9ff66","type":"not-found","name":"not found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":912.0356597900391,"y":848.4643956422806,"z":"813dcd9a.d3bce","wires":[["c9758edd.27c358"]]},{"id":"aab18dd2.ccd71","type":"get-resource","name":"get AnAI - l3-network by network-id","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.src-network\">\n","comments":"","outputs":1,"x":635.234001159668,"y":859.7109127044678,"z":"813dcd9a.d3bce","wires":[["4ad4f4bf.b880f4","e6e6b312.9ff66","1feeeaa4.ceb4fd"]]},{"id":"4ad4f4bf.b880f4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":904.7577667236328,"y":882.9489995241165,"z":"813dcd9a.d3bce","wires":[["c9758edd.27c358"]]},{"id":"c9758edd.27c358","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 retrieving source network with network-id=' + $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id + ' from AnAI'`\" />","comments":"","x":1056.8687286376953,"y":879.1712285280228,"z":"813dcd9a.d3bce","wires":[]},{"id":"1feeeaa4.ceb4fd","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":910.0357208251953,"y":914.4643956422806,"z":"813dcd9a.d3bce","wires":[["e7887ed9.ffdb8"]]},{"id":"e7887ed9.ffdb8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1062.7022857666016,"y":912.7977238893509,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"12c0c74b.daf7b1","type":"comment","name":"GET source network from AAI","info":"","comments":"","x":613.4642181396484,"y":828.4643898010254,"z":"813dcd9a.d3bce","wires":[]},{"id":"b90ed216.18a428","type":"not-found","name":"not found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":929.75,"y":1112.1787095069885,"z":"813dcd9a.d3bce","wires":[["b83d895b.4f291"]]},{"id":"7fbcf301.da9274","type":"get-resource","name":"get AnAI - l3-network by network-id","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.dest-network.network-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.dest-network\">\n","comments":"","outputs":1,"x":658.3769226074219,"y":1119.710970401764,"z":"813dcd9a.d3bce","wires":[["b8838c73.a36ad8","b90ed216.18a428","389164df.893924"]]},{"id":"b8838c73.a36ad8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":922.4721069335938,"y":1146.6633133888245,"z":"813dcd9a.d3bce","wires":[["b83d895b.4f291"]]},{"id":"b83d895b.4f291","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 retrieving destination network with network-id=' + $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id + ' from AnAI'`\" />","comments":"","x":1074.5830688476562,"y":1142.8855423927307,"z":"813dcd9a.d3bce","wires":[]},{"id":"389164df.893924","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":932.3215103149414,"y":1181.0357780456543,"z":"813dcd9a.d3bce","wires":[["4306a8fb.a6b5e8"]]},{"id":"4306a8fb.a6b5e8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1084.9880752563477,"y":1179.3691062927246,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"7d0a4ab3.6c586c","type":"comment","name":"GET dest network from AAI","info":"","comments":"","x":631.1785430908203,"y":1087.8929624557495,"z":"813dcd9a.d3bce","wires":[]},{"id":"b9d822a8.efbda8","type":"set","name":"set policy fq-name","xml":"<set>\n<parameter name='tmp.fq-name' value=\"`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.fq-name` \" />\n","comments":"","x":584.1786270141602,"y":905.6071510314941,"z":"813dcd9a.d3bce","wires":[]},{"id":"d1f0b04b.3903a8","type":"set","name":"set cloud-region-id for input to contrail","xml":"<set>\n<parameter name='cloud-region-id' value='`$tmp.ar.cloud-region-id`' />\n","comments":"","x":646.1733093261719,"y":939.6969985961914,"z":"813dcd9a.d3bce","wires":[]},{"id":"654c455d.66bcbc","type":"execute","name":"execute Contrail API apply network policy to source network","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='network-policy' />\n<parameter name='api-action' value='apply' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='cloud-region-id' value='`$tmp.ar.cloud-region-id`' />\n<parameter name='contrail-network-policy-id' value='`$ar-assignments.contrail-id`' />\n<parameter name='contrail-network-policy-fq-name' value='`$ar-assignments.contrail-fq-name`' />\n<parameter name='contrail-virtual-network-id' value='`$aai.src-network.contrail-network-fqdn`' />\n\n","comments":"","outputs":1,"x":722.3638305664062,"y":1012.6971964836121,"z":"813dcd9a.d3bce","wires":[["773f5c52.d9a844","65423029.2aa448"]]},{"id":"773f5c52.d9a844","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1078.0303268432617,"y":1013.1254234313965,"z":"813dcd9a.d3bce","wires":[["6efba2cc.644a4c"]]},{"id":"65423029.2aa448","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1076.1256484985352,"y":1046.1253631971776,"z":"813dcd9a.d3bce","wires":[["f8269b33.8f2818"]]},{"id":"f8269b33.8f2818","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=\"Failed to apply policy in Contrail to source network\" />\n","comments":"","x":1236.030418395996,"y":1045.4587297439575,"z":"813dcd9a.d3bce","wires":[]},{"id":"6efba2cc.644a4c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1230.2208099365234,"y":1013.792148437351,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"e1945769.4b158","type":"set","name":"set ar-assignments","xml":"<set>\n<parameter name='ar-assignments.' value=\"`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.`\" />\n\n\n\n","comments":"","x":594.75,"y":624.75,"z":"813dcd9a.d3bce","wires":[]},{"id":"c88e7d42.8dec2","type":"switchNode","name":"switch source-network.network-id","xml":"<switch test='`$ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id`'>\n\n","comments":"","outputs":1,"x":638.75,"y":784.75,"z":"813dcd9a.d3bce","wires":[["9f744453.f73d38","731c0d32.4efde4"]]},{"id":"9f744453.f73d38","type":"other","name":"Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":994.7502174377441,"y":783.4163794517517,"z":"813dcd9a.d3bce","wires":[["8990ad.edf7ff5"]]},{"id":"731c0d32.4efde4","type":"other","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":990.4170341491699,"y":746.4161796569824,"z":"813dcd9a.d3bce","wires":[["ee9e549.5240d28"]]},{"id":"bdbbd6c9.1a2c2","type":"switchNode","name":"switch service-data.networks.network_length","xml":"<switch test='`$service-data.networks.network_length`'>\n","comments":"","outputs":1,"x":1386.5756530761719,"y":783.4322066307068,"z":"813dcd9a.d3bce","wires":[["b140a749.4fc48","46a1cf55.e7ba18"]]},{"id":"b140a749.4fc48","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1675.5756530761719,"y":785.432267665863,"z":"813dcd9a.d3bce","wires":[["2aaebe6b.9c4f0a"]]},{"id":"46a1cf55.e7ba18","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1655.5756530761719,"y":820.432267665863,"z":"813dcd9a.d3bce","wires":[["2365445.39bcbbc"]]},{"id":"8990ad.edf7ff5","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1128.861473083496,"y":783.8607840538025,"z":"813dcd9a.d3bce","wires":[["bdbbd6c9.1a2c2"]]},{"id":"ee9e549.5240d28","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=\"Error activating contrail route. Source network not found\" />\n","comments":"","x":1144.5504989624023,"y":747.0830821990967,"z":"813dcd9a.d3bce","wires":[]},{"id":"5a5383e9.72c19c","type":"comment","name":"Find tenant id/cloud region from source network","info":"","comments":"","x":676.1503219604492,"y":751.4163160324097,"z":"813dcd9a.d3bce","wires":[]},{"id":"70cd42d4.2890fc","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":2118.7500610351562,"y":820.7500228881836,"z":"813dcd9a.d3bce","wires":[["f4807d03.933b48"]]},{"id":"2365445.39bcbbc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1844.7341003417969,"y":820.8760228157043,"z":"813dcd9a.d3bce","wires":[["70cd42d4.2890fc"]]},{"id":"2aaebe6b.9c4f0a","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=\"Error activating contrail route. Source network not found\" />\n","comments":"","x":1857.2388000488281,"y":785.3055934906006,"z":"813dcd9a.d3bce","wires":[]},{"id":"f4807d03.933b48","type":"switchNode","name":"switch networkid found","xml":"<switch test=\"`$service-data.networks.network[$nidx].network-id == $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id`\">\n\n","comments":"","outputs":1,"x":2411.3048706054688,"y":817.6391496658325,"z":"813dcd9a.d3bce","wires":[["436eb069.fa0778","4fbc2bc4.af96fc"]]},{"id":"13f4d129.adecdf","type":"set","name":"set cloud region id","xml":"<set>\n<parameter name='tmp.ar.cloud-region-id' value='`$service-data.networks.network[$nidx].network-data.network-topology.aic-cloud-region`' />\n\n\n","comments":"","x":2993.9715118408203,"y":818.6392183303833,"z":"813dcd9a.d3bce","wires":[]},{"id":"a30719a6.edc868","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2761.0379848480225,"y":820.6391382217407,"z":"813dcd9a.d3bce","wires":[["13f4d129.adecdf"]]},{"id":"436eb069.fa0778","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2605.571361541748,"y":820.6390008926392,"z":"813dcd9a.d3bce","wires":[["a30719a6.edc868"]]},{"id":"4fbc2bc4.af96fc","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2606.3709716796875,"y":858.6390037536621,"z":"813dcd9a.d3bce","wires":[["387271c4.dfcf4e"]]},{"id":"387271c4.dfcf4e","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=\"Error activating contrail route. Source network not found\" />\n","comments":"","x":2784.3711280822754,"y":858.6390695571899,"z":"813dcd9a.d3bce","wires":[]},{"id":"14b22c6c.fcabfc","type":"comment","name":"Apply the policy to source network","info":"","comments":"","x":640.7500152587891,"y":980.7500286102295,"z":"813dcd9a.d3bce","wires":[]},{"id":"b00f0fb6.47e598","type":"execute","name":"execute Contrail API apply network policy to destination network","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='network-policy' />\n<parameter name='api-action' value='apply' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='cloud-region-id' value='`$tmp.ar.cloud-region-id`' />\n<parameter name='contrail-network-policy-id' value='`$ar-assignments.contrail-id`' />\n<parameter name='contrail-network-policy-fq-name' value='`$ar-assignments.contrail-fq-name`' />\n<parameter name='contrail-virtual-network-id' value='`$aai.dest-network.contrail-network-fqdn`' />\n\n","comments":"","outputs":1,"x":746.7500610351562,"y":1264.750036239624,"z":"813dcd9a.d3bce","wires":[["c55c7ba4.af1c78","6f74bbcd.1e8a04"]]},{"id":"c55c7ba4.af1c78","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1082.4164962768555,"y":1265.1782269477844,"z":"813dcd9a.d3bce","wires":[["31c3a18d.c35b96"]]},{"id":"6f74bbcd.1e8a04","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1080.511817932129,"y":1298.1781667135656,"z":"813dcd9a.d3bce","wires":[["b857d4cd.98af18"]]},{"id":"b857d4cd.98af18","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=\"Failed to apply policy in Contrail to source network\" />\n","comments":"","x":1240.4165878295898,"y":1297.5115332603455,"z":"813dcd9a.d3bce","wires":[]},{"id":"31c3a18d.c35b96","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1234.6069793701172,"y":1265.844951953739,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"f17083c0.fd25f8","type":"comment","name":"Apply the policy to dest network","info":"","comments":"","x":645.1361846923828,"y":1232.8028321266174,"z":"813dcd9a.d3bce","wires":[]},{"id":"d76d4a4a.711878","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":555.7501792907715,"y":2140.7266874313354,"z":"813dcd9a.d3bce","wires":[]},{"id":"4863a49a.47232c","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='contrail-route-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $contrail-route-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n","comments":"","x":584.5040855407715,"y":2103.1824808120728,"z":"813dcd9a.d3bce","wires":[]},{"id":"4f9959ff.99f5d","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Active' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$contrail-route-topology-operation-input.request-information.request-action`' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$contrail-route-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$contrail-route-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":616.1709213256836,"y":1962.2300510406494,"z":"813dcd9a.d3bce","wires":[]},{"id":"212281cc.a674ae","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.cr.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":644.2793960571289,"y":2036.279543876648,"z":"813dcd9a.d3bce","wires":[["d4e42d2d.79d87","8d96d215.4633c","51423045.023d"]]},{"id":"d4e42d2d.79d87","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":914.5874137878418,"y":2089.2777446731925,"z":"813dcd9a.d3bce","wires":[["59c58cd2.31ad04"]]},{"id":"8d96d215.4633c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":905.5874633789062,"y":2057.777770422399,"z":"813dcd9a.d3bce","wires":[["59c58cd2.31ad04"]]},{"id":"51423045.023d","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":909.3375015258789,"y":2028.1348752975464,"z":"813dcd9a.d3bce","wires":[["b28af593.fdcef8"]]},{"id":"59c58cd2.31ad04","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=\"Error updating md-sal for contrail-route-allotted-resource\" />\n","comments":"","x":1075.337501525879,"y":2058.527794264257,"z":"813dcd9a.d3bce","wires":[]},{"id":"b28af593.fdcef8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1050.9934692382812,"y":2024.3270444869995,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"d2d48767.60437","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":566.9935150146484,"y":1928.6601829528809,"z":"813dcd9a.d3bce","wires":[[]]},{"id":"f8def33f.3a491","type":"comment","name":"Need to rollback aai here","info":"","comments":"","x":1301.416763305664,"y":2057.84538936615,"z":"813dcd9a.d3bce","wires":[]},{"id":"60c83994.dfd038","type":"comment","name":"Create network policy in AAI","info":"","comments":"","x":600.7500381469727,"y":1877.8452768325806,"z":"813dcd9a.d3bce","wires":[]},{"id":"950cc6c.99f39b8","type":"update","name":"update AAI allotted-resource","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"operational-status\" value=\"in-service-path\" />\n","comments":"","outputs":1,"x":605.3691101074219,"y":1839.7978992462158,"z":"813dcd9a.d3bce","wires":[["efbf0aed.e07788","115125da.13114a"]]},{"id":"efbf0aed.e07788","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":873.1310272216797,"y":1817.0359525680542,"z":"813dcd9a.d3bce","wires":[["cc34374d.c82f98"]]},{"id":"115125da.13114a","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":878.4404563903809,"y":1852.607370376587,"z":"813dcd9a.d3bce","wires":[["cc34374d.c82f98"]]},{"id":"cc34374d.c82f98","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=\"AAI failed\" />\n","comments":"","x":1088.2262420654297,"y":1818.6549968719482,"z":"813dcd9a.d3bce","wires":[]},{"id":"eb7af3d8.e2e8d8","type":"comment","name":"Update AAI AR","info":"","comments":"","x":558.7119522094727,"y":1799.226222038269,"z":"813dcd9a.d3bce","wires":[]},{"id":"c5899b4c.6cd78","type":"comment","name":"Update network policy in AAI - relationship to networks","info":"","comments":"","x":708.7501220703125,"y":1504.7500410079956,"z":"813dcd9a.d3bce","wires":[]},{"id":"88a7580.32ec5a8","type":"save","name":"save AnAI - network-policy relationship to source and destination network","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"network-policy:relationship-list\" \n\tkey=\"network-policy.network-policy-id = $ar-assignments.contrail-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`tmp.AnAI-src.related-link`\" />\n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"l3-network\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"`tmp.AnAI-dest.related-link`\" />\n\n\n","comments":"","outputs":1,"x":770.1270179748535,"y":1541.8175249099731,"z":"813dcd9a.d3bce","wires":[["e5a67b45.20b1c","b871af24.755df8"]]},{"id":"ae7fe4ff.4e4498","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=\"Failed to save network policy in AAI\" />\n","comments":"","x":1414.4725036621094,"y":1538.0994877815247,"z":"813dcd9a.d3bce","wires":[]},{"id":"e5a67b45.20b1c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1185.9011116027832,"y":1541.115225315094,"z":"813dcd9a.d3bce","wires":[["ae7fe4ff.4e4498"]]},{"id":"b871af24.755df8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1189.7106094360352,"y":1569.5916419029236,"z":"813dcd9a.d3bce","wires":[["ae7fe4ff.4e4498"]]},{"id":"bf22b626.ac2cc","type":"save","name":"get related-link data for source network","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"related-link\"\nkey=\"l3-network.network-id = $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.source-network.network-id\"\nlocal-only=\"true\"\npfx=\"tmp.AnAI-src\">\n\n\n\n","comments":"","outputs":1,"x":674.7500152587891,"y":1338.7500371932983,"z":"813dcd9a.d3bce","wires":[["ab369e17.3ba35","332634da.627144"]]},{"id":"77aaf3ff.eeeb7c","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=\"Failed to get related link for l3-network in AAI\" />\n","comments":"","x":1318.75,"y":1344.75,"z":"813dcd9a.d3bce","wires":[]},{"id":"ab369e17.3ba35","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1090.1786079406738,"y":1343.7657375335693,"z":"813dcd9a.d3bce","wires":[["77aaf3ff.eeeb7c"]]},{"id":"332634da.627144","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1093.9881057739258,"y":1373.242154121399,"z":"813dcd9a.d3bce","wires":[["77aaf3ff.eeeb7c"]]},{"id":"7e19f3fd.32b57c","type":"save","name":"get related-link data for dest network","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"related-link\"\nkey=\"l3-network.network-id = $ar.allotted-resource-data.contrail-route-topology.contrail-route-assignments.dest-network.network-id\"\nlocal-only=\"true\"\npfx=\"tmp.AnAI-dest\">\n\n\n\n","comments":"","outputs":1,"x":670.75,"y":1412.75,"z":"813dcd9a.d3bce","wires":[["6d15b228.6d5114","4640b9d8.04f298"]]},{"id":"ea538b84.fbe59","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=\"Failed to get related link for l3-network in AAI\" />\n","comments":"","x":1112.7500381469727,"y":1422.7500410079956,"z":"813dcd9a.d3bce","wires":[]},{"id":"6d15b228.6d5114","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":930.1786422729492,"y":1409.7657642364502,"z":"813dcd9a.d3bce","wires":[["ea538b84.fbe59"]]},{"id":"4640b9d8.04f298","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":935.9881210327148,"y":1439.2422285079956,"z":"813dcd9a.d3bce","wires":[["ea538b84.fbe59"]]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-assign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-assign.json index 52bb36fe..039142ec 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-assign.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-assign.json @@ -119,7 +119,7 @@ "id": "1b476e9a.fe2761", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='contrail-route-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $contrail-route-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='contrail-route-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $contrail-route-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments": "", "x": 514.7580642700195, "y": 3178.0512561798096, @@ -141,7 +141,7 @@ "id": "c1ac5f3e.e6966", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology?content=config'` \" />\n\n", "comments": "", "x": 523.7420768737793, "y": 304.3333349227905, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-create.json index db509591..09388b89 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-create.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-create.json @@ -102,7 +102,7 @@ "id": "78592f6d.e5c98", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='contrail-route-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $contrail-route-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='contrail-route-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $contrail-route-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments": "", "x": 536.4722900390625, "y": 2022.8493228293955, @@ -124,7 +124,7 @@ "id": "ef64ef71.c48f1", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology?content=config'` \" />\n\n", "comments": "", "x": 571.7419624328613, "y": 365.9999920129776, 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 2143d865..3709d4b0 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 @@ -100,7 +100,7 @@ "id": "a3036c42.f5314", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='contrail-route-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $contrail-route-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='contrail-route-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $contrail-route-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments": "", "x": 574.757884979248, "y": 2243.003801345825, @@ -122,7 +122,7 @@ "id": "e41af924.acac48", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology?content=config'` \" />\n\n", "comments": "", "x": 545.7419624328613, "y": 328.3333206176758, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-delete.json index d6f49863..21e16ec3 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-delete.json @@ -95,7 +95,7 @@ "id": "7f5b06d6.6b7628", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='contrail-route-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $contrail-route-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='contrail-route-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $contrail-route-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments": "", "x": 575.4722480773926, "y": 1524.0039737224579, @@ -117,7 +117,7 @@ "id": "b01a42c3.cd422", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology?content=config'` \" />\n\n", "comments": "", "x": 541.7419624328613, "y": 343.3333203792572, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-unassign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-unassign.json index bc51cc39..6a3ea66d 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-unassign.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_contrail-route-topology-operation-unassign.json @@ -96,7 +96,7 @@ "id": "7f6e26b0.fa04c8", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $contrail-route-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $contrail-route-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments": "", "x": 569.9127807617188, "y": 1687.7179899215698, @@ -107,7 +107,7 @@ "id": "9fe9d7fd.07e6d8", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/contrail-route-topology?content=config'` \" />\n\n", "comments": "", "x": 565.3094825744629, "y": 337.04760932922363, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.json index 5bba62e6..a2f53914 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.json @@ -1657,7 +1657,7 @@ "id": "ae6337fc.2f77b8", "type": "set", "name": "set networkId and network-object-path", - "xml": "<set>\n<parameter name='networkId' value='`$prop.dci.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.dci.network-id + '/network-data/'` \" />", + "xml": "<set>\n<parameter name='networkId' value='`$prop.dci.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.dci.network-id + '/network-data?content=config'` \" />", "comments": "", "x": 1382.0312118530273, "y": 1787.0312519073486, @@ -1897,7 +1897,7 @@ "id": "3620f5be.990eda", "type": "save", "name": "save overlay configuration in AAI", - "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='configuration' \n key='configuration.configuration-id = $prop.dci.network-id' >\n<parameter name='configuration-id' value='`$prop.dci.network-id`' />\n<parameter name='configuration-type' value='overlay' />\n<parameter name='configuration-sub-type' value='VPN-DCI' />\n<parameter name='orchestration-status' value='Created' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$prop.dci.network-id`' />\n<parameter name='configuration-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.dci.network-id + '/network-data/'` \" />\n", + "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='configuration' \n key='configuration.configuration-id = $prop.dci.network-id' >\n<parameter name='configuration-id' value='`$prop.dci.network-id`' />\n<parameter name='configuration-type' value='overlay' />\n<parameter name='configuration-sub-type' value='VPN-DCI' />\n<parameter name='orchestration-status' value='Created' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$prop.dci.network-id`' />\n<parameter name='configuration-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.dci.network-id + '/network-data?content=config'` \" />\n", "comments": "", "outputs": 1, "x": 845.53125, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.json index df6236cc..cb65f8b2 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.json @@ -639,7 +639,7 @@ "id": "c09f45a3.c220d8", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />\n \n", + "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'` \" />\n \n", "comments": "", "x": 814.7658081054688, "y": 886.0079956054688, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generic-configuration-notification-assign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generic-configuration-notification-assign.json index 517d8f4c..babde515 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generic-configuration-notification-assign.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generic-configuration-notification-assign.json @@ -1 +1 @@ -[{"id":"3cc1250e.772baa","type":"dgstart","name":"DGSTART","outputs":1,"x":102.5,"y":81.25,"z":"ae8dc4de.f4dc68","wires":[["3402eab5.73f3c6"]]},{"id":"3402eab5.73f3c6","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":217.78569793701172,"y":121.48810863494873,"z":"ae8dc4de.f4dc68","wires":[["c7e6ed9c.afa8c"]]},{"id":"c7e6ed9c.afa8c","type":"method","name":"method generic-configuration-notification-assign","xml":"<method rpc='generic-configuration-notification-assign' mode='sync'>\n","comments":"","outputs":1,"x":221.92862701416016,"y":162.2499942779541,"z":"ae8dc4de.f4dc68","wires":[["4767442b.f6c4ac"]]},{"id":"f1cc6d3c.1df33","type":"comment","name":"generic-configuration-notification-assign","info":"","comments":"","x":496.84485626220703,"y":28.83634376525879,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"4767442b.f6c4ac","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":134.16668701171875,"y":1781.7530403137207,"z":"ae8dc4de.f4dc68","wires":[["35944643.078a2a","146f698f.4e6226","d50bb092.cd571","8a5cfd84.4d1b4","d95d1950.bfe9f8","d52389db.225f08","7cc00fe8.04bdc","66091730.734bc8","522d7ed3.d05ac","9701d1bb.39173","3e76235a.0128ac","8568c1b1.c067e","84f34e5d.99cf4","da804b8e.c31568","7b830214.43feec","5d7d0687.7531f8","26306c7b.99f5a4","1d596143.fb1def","2f677052.127b9","7751357c.f0a3cc","9ed7f37f.7e0ba","1193a369.1cbf5d","d08c3347.9e6b8","f219dd.0348962","a1de031b.00549","5fb22bd5.354cf4","c4805bf4.e29698","1ddae120.504e2f","2def915d.1e931e","f1d80dd8.29bb8","d36d4389.7f7d9","8ba3a63e.d10ba8","33c48630.2bf5ba","57bab6ea.edaec8","d08f8ccc.1a7f7","1ea13a3.ea552c6","eafe9b0d.7484d8","61dbdcf5.d51804","57b4b7f.10e8948"]]},{"id":"35944643.078a2a","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=\"success\" />\n\n","comments":"","x":379.99983978271484,"y":2749.2528038024902,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"146f698f.4e6226","type":"execute","name":"execute readProperties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":411.6666488647461,"y":276.6666679382324,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"d50bb092.cd571","type":"execute","name":"generate gc-configuration url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.gc-configuration`\"/>\n <parameter name=\"outputPath\" value=\"tmp.gc-url\"/>\n <parameter name=\"target\" value=\"{configuration-id}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.configuration-information.configuration-id`\"/>\n","comments":"","outputs":1,"x":428.33331298828125,"y":335,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"13678d4c.8f5533","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":763.3332214355469,"y":386.6665210723877,"z":"ae8dc4de.f4dc68","wires":[["6d9a2e0a.afa9c"]]},{"id":"8a5cfd84.4d1b4","type":"execute","name":"execute RestApiCallNode - GET gc-configuration","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.gc-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-gc\" />\n\n","comments":"","outputs":1,"x":495.00003814697266,"y":386.6666717529297,"z":"ae8dc4de.f4dc68","wires":[["13678d4c.8f5533"]]},{"id":"d95d1950.bfe9f8","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-gcnotify.log' />\n","comments":"","outputs":1,"x":373.3331718444824,"y":2703.3330841064453,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"d52389db.225f08","type":"switchNode","name":"switch response-code","xml":"<switch test='`$generic-configuration-notification-input.response-code`'>\n","comments":"","outputs":1,"x":409.9999542236328,"y":495.00000953674316,"z":"ae8dc4de.f4dc68","wires":[["e66bcbd9.adfbd8","8765b92f.58af98"]]},{"id":"e66bcbd9.adfbd8","type":"outcome","name":"200","xml":"<outcome value='200'>\n","comments":"","outputs":1,"x":596.6667327880859,"y":526.6666688919067,"z":"ae8dc4de.f4dc68","wires":[["655312ec.c6ca4c"]]},{"id":"8765b92f.58af98","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":599.9999809265137,"y":466.66667556762695,"z":"ae8dc4de.f4dc68","wires":[["23f6b332.6a269c"]]},{"id":"84b95e52.d26aa","type":"configure","name":"send failure to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\"\n value=\"`$mdsal-gc.gc-configuration[0].configuration-data.configuration-operation-information.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\"\n value=\"`$generic-configuration-notification-input.ack-final-indicator`\" />\n<parameter name=\"input.response-code\"\n value=\"`$generic-configuration-notification-input.response-code`\" />\n<parameter name=\"input.svc-request-id\"\n value=\"`$generic-configuration-notification-input.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\"\n value=\"`$generic-configuration-notification-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\"\n value=\"`$generic-configuration-notification-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":905.0000381469727,"y":443.3333206176758,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"1ea13a3.ea552c6","type":"configure","name":"send success to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\"\n value=\"`$mdsal-gc.gc-configuration[0].configuration-data.configuration-operation-information.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\"\n value=\"`$generic-configuration-notification-input.ack-final-indicator`\" />\n<parameter name=\"input.response-code\"\n value=\"`$generic-configuration-notification-input.response-code`\" />\n<parameter name=\"input.svc-request-id\"\n value=\"`$generic-configuration-notification-input.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\"\n value=\"`$generic-configuration-notification-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\"\n value=\"`$generic-configuration-notification-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":403.3332290649414,"y":2658.333112716675,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"7cc00fe8.04bdc","type":"switchNode","name":"switch provided-configuration_length","xml":"<switch test='`$service-data.provided-configurations.provided-configuration_length`'>\n","comments":"","outputs":1,"x":455.00001525878906,"y":628.3333387374878,"z":"ae8dc4de.f4dc68","wires":[["ba800083.1956e"]]},{"id":"ba800083.1956e","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":678.3333129882812,"y":626.6666259765625,"z":"ae8dc4de.f4dc68","wires":[["89b0cf6a.10519"]]},{"id":"89b0cf6a.10519","type":"set","name":"set provided-configuration_length to 0","xml":"<set>\n<parameter name='service-data.provided-configurations.provided-configuration_length' value='0' />\n","comments":"","x":908.3332824707031,"y":626.666711807251,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"66091730.734bc8","type":"set","name":"set found-provided-configuration to false","xml":"<set>\n<parameter name='found-provided-configuration' value='false' />\n","comments":"","x":465.00001525878906,"y":676.6666965484619,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"522d7ed3.d05ac","type":"for","name":"for each provided-configuration","xml":"<for silentFailure='true' index='pc-index' start='0' end='`$service-data.provided-configurations.provided-configuration_length`' >\n","comments":"","outputs":1,"x":434.99999237060547,"y":780.0000705718994,"z":"ae8dc4de.f4dc68","wires":[["b8acf999.6ad398"]]},{"id":"b8acf999.6ad398","type":"switchNode","name":"switch configuration-ids match?","xml":"<switch test='`$service-data.provided-configurations.provided-configuration[$pc-index].configuration-id\n == $generic-configuration-notification-input.configuration-information.configuration-id`'>\n","comments":"","outputs":1,"x":715.0000381469727,"y":780.0000305175781,"z":"ae8dc4de.f4dc68","wires":[["77441f9a.3950f"]]},{"id":"77441f9a.3950f","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":928.3333435058594,"y":778.3333225250244,"z":"ae8dc4de.f4dc68","wires":[["53f19e9a.4c592"]]},{"id":"53f19e9a.4c592","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1064.9999313354492,"y":778.3333339691162,"z":"ae8dc4de.f4dc68","wires":[["f80ba273.e518","794072c0.94b0fc"]]},{"id":"655312ec.c6ca4c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":731.6666259765625,"y":525,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"23f6b332.6a269c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":731.6666259765625,"y":466.6666564941406,"z":"ae8dc4de.f4dc68","wires":[["84b95e52.d26aa","2eee38b0.9cc638"]]},{"id":"f80ba273.e518","type":"set","name":"set found-provided-configuration to true","xml":"<set>\n<parameter name='found-provided-configuration' value='true' />\n","comments":"","x":1293.333351135254,"y":748.3332796096802,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"794072c0.94b0fc","type":"break","name":"break","xml":"<break>\n","comments":"","x":1191.6666870117188,"y":796.6666769981384,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"9701d1bb.39173","type":"switchNode","name":"switch found-provided-configuration","xml":"<switch test='`$found-provided-configuration`'>\n","comments":"","outputs":1,"x":448.33335876464844,"y":833.3333644866943,"z":"ae8dc4de.f4dc68","wires":[["3bf36f48.88521"]]},{"id":"3bf36f48.88521","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":663.3333129882812,"y":833.3333435058594,"z":"ae8dc4de.f4dc68","wires":[["e204449a.562808"]]},{"id":"e204449a.562808","type":"set","name":"increment provided-configuration_length","xml":"<set>\n<parameter name='service-data.provided-configurations.provided-configuration_length'\n value='`$service-data.provided-configurations.provided-configuration_length + 1`' />\n","comments":"","x":894.9999847412109,"y":833.3333225250244,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"3e76235a.0128ac","type":"set","name":"set provided-configuration data","xml":"<set>\n<parameter name='service-data.provided-configurations.provided-configuration[$pc-index].configuration-id'\n value='`$generic-configuration-notification-input.configuration-information.configuration-id`' />\n<parameter name='service-data.provided-configurations.provided-configuration[$pc-index].configuration-type'\n value='`$generic-configuration-notification-input.configuration-information.configuration-type`' />\n<parameter name='service-data.provided-configurations.provided-configuration[$pc-index].configuration-sub-type'\n value='`$generic-configuration-notification-input.configuration-information.configuration-sub-type`' />\n<parameter name='service-data.provided-configurations.provided-configuration[$pc-index].configuration-topology-link'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $generic-configuration-notification-input.service-information.service-instance-id\n + '/service-data/provided-configurations/provided-configuration/'\n + $generic-configuration-notification-input.configuration-information.configuration-id`\" />\n","comments":"","x":431.66666412353516,"y":888.333306312561,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"f496c6ed.5771a8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":813.3332901000977,"y":1181.6666851043701,"z":"ae8dc4de.f4dc68","wires":[["9cb35e05.54f97"]]},{"id":"8568c1b1.c067e","type":"execute","name":"execute RestApiCallNode - GET vnf-sub-interface-group","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.vsig-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-vsig\" />\n\n","comments":"","outputs":1,"x":511.6666564941406,"y":1183.3335456848145,"z":"ae8dc4de.f4dc68","wires":[["f496c6ed.5771a8"]]},{"id":"84f34e5d.99cf4","type":"execute","name":"generate vnf-sub-interface-group URL","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.vnf-sub-interface-group`\"/>\n <parameter name=\"outputPath\" value=\"tmp.part\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.vnr-parameters.vnf-service-instance-id`\"/>\n","comments":"","outputs":1,"x":454.9999694824219,"y":938.3333206176758,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"da804b8e.c31568","type":"execute","name":"generate vnf-sub-interface-group URL","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.part`\"/>\n <parameter name=\"outputPath\" value=\"tmp.part\"/>\n <parameter name=\"target\" value=\"{vnf-id}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.vnr-parameters.vnf-id`\"/>\n","comments":"","outputs":1,"x":454.9999465942383,"y":988.3333654403687,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"7b830214.43feec","type":"execute","name":"generate vnf-sub-interface-group URL","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.part`\"/>\n <parameter name=\"outputPath\" value=\"tmp.part\"/>\n <parameter name=\"target\" value=\"{vnfc-instance-group-function}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.vnr-parameters.vnfc-instance-group-function`\"/>\n","comments":"","outputs":1,"x":454.99993896484375,"y":1038.3332872390747,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"5d7d0687.7531f8","type":"execute","name":"generate vnf-sub-interface-group URL","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.part`\"/>\n <parameter name=\"outputPath\" value=\"tmp.part\"/>\n <parameter name=\"target\" value=\"{network-instance-group-function}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.vnr-parameters.network-instance-group-function`\"/>\n","comments":"","outputs":1,"x":454.99996185302734,"y":1086.6665840148926,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"26306c7b.99f5a4","type":"execute","name":"generate vnf-sub-interface-group URL","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.part`\"/>\n <parameter name=\"outputPath\" value=\"tmp.vsig-url\"/>\n <parameter name=\"target\" value=\"{parent-port-role}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.vnr-parameters.parent-port-role`\"/>\n","comments":"","outputs":1,"x":454.99993896484375,"y":1135.0000438690186,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"ef8bdf4c.8e0fb","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Cannot find vnf-sub-interface-group in service ' + $generic-configuration-notification-input.vnr-parameters.vnf-service-instance-id`\" />\n","comments":"","x":1100.0003967285156,"y":1199.9998970031738,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"6d9a2e0a.afa9c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":891.6665420532227,"y":386.66664695739746,"z":"ae8dc4de.f4dc68","wires":[["a8eb0918.9f1948","6dad07ad.23e0c8"]]},{"id":"a8eb0918.9f1948","type":"configure","name":"send failure to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\"\n value=\"`$mdsal-gc.gc-configuration[0].configuration-data.configuration-operation-information.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\"\n value=\"Y\" />\n<parameter name=\"input.response-code\"\n value=\"500\" />\n<parameter name=\"input.response-message\"\n value=\"`'Cannot find configuration ' + $generic-configuration-notification-input.configuration-information.configuration-id`\" />\n<parameter name=\"input.svc-request-id\"\n value=\"`$generic-configuration-notification-input.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\"\n value=\"`$generic-configuration-notification-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\"\n value=\"`$generic-configuration-notification-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":1069.999855041504,"y":354.99999046325684,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"6dad07ad.23e0c8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Cannot find configuration ' + $generic-configuration-notification-input.configuration-information.configuration-id`\" />\n","comments":"","x":1046.66650390625,"y":406.666672706604,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"2eee38b0.9cc638","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`$generic-configuration-notification-input.response-message`\" />\n","comments":"","x":883.3333129882812,"y":489.9999694824219,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"9cb35e05.54f97","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":953.3332748413086,"y":1181.6666774749756,"z":"ae8dc4de.f4dc68","wires":[["ef8bdf4c.8e0fb","15aaaf48.cec541"]]},{"id":"15aaaf48.cec541","type":"configure","name":"send failure to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\"\n value=\"`$mdsal-gc.gc-configuration[0].configuration-data.configuration-operation-information.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\"\n value=\"Y\" />\n<parameter name=\"input.response-code\"\n value=\"500\" />\n<parameter name=\"input.response-message\"\n value=\"`'Cannot find vnf-sub-interface-group in service ' + $generic-configuration-notification-input.vnr-parameters.vnf-service-instance-id`\" />\n<parameter name=\"input.svc-request-id\"\n value=\"`$generic-configuration-notification-input.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\"\n value=\"`$generic-configuration-notification-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\"\n value=\"`$generic-configuration-notification-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":1119.999900817871,"y":1154.9999294281006,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"1d596143.fb1def","type":"for","name":"for each vnfc","xml":"<for silentFailure='true' index='vnfc-index' start='0' end='`$mdsal-vsig.vnf-sub-interface-group[0].vnfcs.vnfc_length`' >\n","comments":"","outputs":1,"x":376.666690826416,"y":1256.6666355133057,"z":"ae8dc4de.f4dc68","wires":[["78c2892b.27f7b8"]]},{"id":"78c2892b.27f7b8","type":"for","name":"for each vnic","xml":"<for silentFailure='true' index='vnic-index' start='0' end='`$mdsal-vsig.vnf-sub-interface-group[0].vnfcs.vnfc[$vnfc-index].vnics.vnic_length`' >\n","comments":"","outputs":1,"x":545,"y":1255,"z":"ae8dc4de.f4dc68","wires":[["71029de0.105574"]]},{"id":"71029de0.105574","type":"for","name":"for each subinterface","xml":"<for silentFailure='true' index='si-index' start='0' end='`$mdsal-vsig.vnf-sub-interface-group[0].vnfcs.vnfc[$vnfc-index].vnics.vnic[$vnic-index].sub-interfaces.sub-interface_length`' >\n","comments":"","outputs":1,"x":736.6666564941406,"y":1255.0000495910645,"z":"ae8dc4de.f4dc68","wires":[["ec687857.094fb8"]]},{"id":"ec687857.094fb8","type":"switchNode","name":"switch lower-tag-ids equal?","xml":"<switch test='`$mdsal-vsig.vnf-sub-interface-group[0].vnfcs.vnfc[$vnfc-index].vnics.vnic[$vnic-index].sub-interfaces.sub-interface[$si-index].vlan-tags.lower-tag-id\n == $generic-configuration-notification-input.vnr-parameters.lower-tag-id`'>\n","comments":"","outputs":1,"x":973.3333053588867,"y":1253.3332614898682,"z":"ae8dc4de.f4dc68","wires":[["a2c19f89.3b803"]]},{"id":"a2c19f89.3b803","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1168.3333435058594,"y":1251.6667175292969,"z":"ae8dc4de.f4dc68","wires":[["52075d54.ad5254"]]},{"id":"52075d54.ad5254","type":"set","name":"set sub-interface-status to 'assigned'","xml":"<set>\n<parameter name='mdsal-vsig.vnf-sub-interface-group[0].vnfcs.vnfc[$vnfc-index].vnics.vnic[$vnic-index].sub-interfaces.sub-interface[$si-index].sub-interface-status'\n value='assigned' />\n","comments":"","x":1393.3331832885742,"y":1249.9998865127563,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"2f677052.127b9","type":"switchNode","name":"switch customer-bonding-request_length","xml":"<switch test='`$mdsal-vsig.vnf-sub-interface-group[0].customer-bonding-requests.customer-bonding-request_length`'>\n","comments":"","outputs":1,"x":461.66664123535156,"y":1331.66667842865,"z":"ae8dc4de.f4dc68","wires":[["49eafbd8.217b14"]]},{"id":"49eafbd8.217b14","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":696.6666259765625,"y":1330,"z":"ae8dc4de.f4dc68","wires":[["876b66b2.c44fc8"]]},{"id":"876b66b2.c44fc8","type":"set","name":"set customer-bonding-request_length to 0","xml":"<set>\n<parameter name='mdsal-vsig.vnf-sub-interface-group[0].customer-bonding-requests.customer-bonding-request_length'\n value='0' />\n","comments":"","x":934.9999694824219,"y":1329.999930381775,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"7751357c.f0a3cc","type":"for","name":"for each customer-bonding-request","xml":"<for index='cbr-index' start='0' end='`$mdsal-vsig.vnf-sub-interface-group[0].customer-bonding-requests.customer-bonding-request_length`' >\n","comments":"","outputs":1,"x":443.3332977294922,"y":1441.6666831970215,"z":"ae8dc4de.f4dc68","wires":[["52b7e9d6.3b8d68"]]},{"id":"52b7e9d6.3b8d68","type":"switchNode","name":"switch configuration-ids equal?","xml":"<switch test='`$mdsal-vsig.vnf-sub-interface-group[0].customer-bonding-requests.customer-bonding-request[$cbr-index].configuration-id\n == $generic-configuration-notification-input.configuration-information.configuration-id`'>\n","comments":"","outputs":1,"x":738.3333206176758,"y":1441.666603088379,"z":"ae8dc4de.f4dc68","wires":[["668d8732.ab0708"]]},{"id":"9ed7f37f.7e0ba","type":"set","name":"set found-customer-bonding-request to false","xml":"<set>\n<parameter name='found-customer-bonding-request' value='false' />\n","comments":"","x":473.3333435058594,"y":1381.6665992736816,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"668d8732.ab0708","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":939.9999389648438,"y":1441.6666259765625,"z":"ae8dc4de.f4dc68","wires":[["18edad9e.582f42"]]},{"id":"18edad9e.582f42","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1076.6665267944336,"y":1441.6666374206543,"z":"ae8dc4de.f4dc68","wires":[["4224a75f.aa5358","ebf48469.47ca38"]]},{"id":"4224a75f.aa5358","type":"set","name":"set found-customer-bonding-request to true","xml":"<set>\n<parameter name='found-customer-bonding-request' value='true' />\n","comments":"","x":1318.3333015441895,"y":1411.6666011810303,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"ebf48469.47ca38","type":"break","name":"break","xml":"<break>\n","comments":"","x":1203.3332824707031,"y":1459.9999804496765,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"1193a369.1cbf5d","type":"switchNode","name":"switch found-customer-bonding-request","xml":"<switch test='`$found-customer-bonding-request`'>\n","comments":"","outputs":1,"x":459.9999809265137,"y":1526.666748046875,"z":"ae8dc4de.f4dc68","wires":[["9422191b.a944a8"]]},{"id":"9422191b.a944a8","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":704.9998817443848,"y":1526.666748046875,"z":"ae8dc4de.f4dc68","wires":[["c651b8bd.b62478"]]},{"id":"3b053b7e.793854","type":"set","name":"increment provided-configuration_length","xml":"<set>\n<parameter name='mdsal-vsig.vnf-sub-interface-group[0].customer-bonding-requests.customer-bonding-request_length'\n value='`$mdsal-vsig.vnf-sub-interface-group[0].customer-bonding-requests.customer-bonding-request_length + 1`' />\n","comments":"","x":1068.3331909179688,"y":1548.3332347869873,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"c651b8bd.b62478","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":833.3332862854004,"y":1526.6666870117188,"z":"ae8dc4de.f4dc68","wires":[["3b053b7e.793854","50457e5a.648f3"]]},{"id":"50457e5a.648f3","type":"set","name":"set configuration-id","xml":"<set>\n<parameter name='mdsal-vsig.vnf-sub-interface-group[0].customer-bonding-requests.customer-bonding-request[$mdsal-vsig.vnf-sub-interface-group[0].customer-bonding-requests.customer-bonding-request_length].configuration-id'\n value='`$generic-configuration-notification-input.configuration-information.configuration-id`' />\n","comments":"","x":1003.3332901000977,"y":1500.0001430511475,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"d08c3347.9e6b8","type":"execute","name":"execute RestApiCallNode - PUT vnf-sub-interface-group","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vnfsubinterfacegroup.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.vsig-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-vsig\" />\n\n","comments":"","outputs":1,"x":511.66663360595703,"y":1638.333152770996,"z":"ae8dc4de.f4dc68","wires":[["721a4c33.94a274"]]},{"id":"721a4c33.94a274","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":798.3332901000977,"y":1636.6665267944336,"z":"ae8dc4de.f4dc68","wires":[["a09798f2.5efdb8"]]},{"id":"762136cc.984f68","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"Failure writing vnf-sub-interface-group\" />\n","comments":"","x":1083.3331336975098,"y":1653.333194732666,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"a09798f2.5efdb8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":929.9999389648438,"y":1634.9998779296875,"z":"ae8dc4de.f4dc68","wires":[["762136cc.984f68","3ab13842.69d928"]]},{"id":"f219dd.0348962","type":"set","name":"set pc-index to 0","xml":"<set>\n<parameter name='pc-index' value='0' />\n","comments":"","x":389.9999694824219,"y":728.3333873748779,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"a1de031b.00549","type":"execute","name":"generate network-instance-group-network URL","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.network-instance-group-network`\"/>\n <parameter name=\"outputPath\" value=\"tmp.part\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.vnr-parameters.network-collection-service-instance-id`\"/>\n","comments":"","outputs":1,"x":484.9999084472656,"y":1716.6664113998413,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"5fb22bd5.354cf4","type":"execute","name":"generate network-instance-group-network URL","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.part`\"/>\n <parameter name=\"outputPath\" value=\"tmp.part\"/>\n <parameter name=\"target\" value=\"{network-instance-group-id}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.vnr-parameters.network-instance-group-id`\"/>\n","comments":"","outputs":1,"x":484.99989318847656,"y":1763.3332405090332,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"c4805bf4.e29698","type":"execute","name":"generate network-instance-group-network URL","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.part`\"/>\n <parameter name=\"outputPath\" value=\"tmp.nign-url\"/>\n <parameter name=\"target\" value=\"{network-id}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.vnr-parameters.network-id`\"/>\n","comments":"","outputs":1,"x":484.9998779296875,"y":1806.6664543151855,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"53f66c5f.db0e04","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":852.0000152587891,"y":1922.6666278839111,"z":"ae8dc4de.f4dc68","wires":[["f74392fc.d0a05"]]},{"id":"1ddae120.504e2f","type":"execute","name":"execute RestApiCallNode - GET network-instance-group-network","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.nign-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-nign\" />\n\n","comments":"","outputs":1,"x":541.6666946411133,"y":1923.3334884643555,"z":"ae8dc4de.f4dc68","wires":[["53f66c5f.db0e04"]]},{"id":"511e8517.fc5a2c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Cannot find network-instance-group-network in service ' + $generic-configuration-notification-input.vnr-parameters.network-collection-service-instance-id`\" />\n","comments":"","x":1128.3337020874023,"y":1949.999834060669,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"f74392fc.d0a05","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":983.3333129882812,"y":1921.6666202545166,"z":"ae8dc4de.f4dc68","wires":[["511e8517.fc5a2c","8ace224e.0988d"]]},{"id":"8ace224e.0988d","type":"configure","name":"send failure to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\"\n value=\"`$mdsal-gc.gc-configuration[0].configuration-data.configuration-operation-information.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\"\n value=\"Y\" />\n<parameter name=\"input.response-code\"\n value=\"500\" />\n<parameter name=\"input.response-message\"\n value=\"`'Cannot find network-instance-group-network in service ' + $generic-configuration-notification-input.vnr-parameters.network-collection-service-instance-id`\" />\n<parameter name=\"input.svc-request-id\"\n value=\"`$generic-configuration-notification-input.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\"\n value=\"`$generic-configuration-notification-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\"\n value=\"`$generic-configuration-notification-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":1148.3332977294922,"y":1899.9998707771301,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"2def915d.1e931e","type":"switchNode","name":"switch customer-bonding-request_length","xml":"<switch test='`$mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request_length`'>\n","comments":"","outputs":1,"x":463.33331298828125,"y":2019.9998779296875,"z":"ae8dc4de.f4dc68","wires":[["2e033362.ff3efc"]]},{"id":"2e033362.ff3efc","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":698.3332977294922,"y":2018.3331995010376,"z":"ae8dc4de.f4dc68","wires":[["9f1b41b9.a2ee4"]]},{"id":"9f1b41b9.a2ee4","type":"set","name":"set customer-bonding-request_length to 0","xml":"<set>\n<parameter name='mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request_length'\n value='0' />\n","comments":"","x":936.6666412353516,"y":2018.3331298828125,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"8ba3a63e.d10ba8","type":"for","name":"for each customer-bonding-request","xml":"<for index='cbr-index' start='0' end='`$mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request_length`' >\n","comments":"","outputs":1,"x":444.9999542236328,"y":2170.0000038146973,"z":"ae8dc4de.f4dc68","wires":[["731cd6b2.d705e8"]]},{"id":"731cd6b2.d705e8","type":"switchNode","name":"switch configuration-ids equal?","xml":"<switch test='`$mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request[$cbr-index].configuration-id\n == $generic-configuration-notification-input.configuration-information.configuration-id`'>\n","comments":"","outputs":1,"x":739.9999771118164,"y":2169.9999237060547,"z":"ae8dc4de.f4dc68","wires":[["172328ac.80fd77"]]},{"id":"f1d80dd8.29bb8","type":"set","name":"set found-customer-bonding-request to false","xml":"<set>\n<parameter name='found-customer-bonding-request' value='false' />\n","comments":"","x":475.00001525878906,"y":2069.9997987747192,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"172328ac.80fd77","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":941.6665954589844,"y":2169.9999465942383,"z":"ae8dc4de.f4dc68","wires":[["722ff3a4.17f61c"]]},{"id":"722ff3a4.17f61c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1078.3331832885742,"y":2169.99995803833,"z":"ae8dc4de.f4dc68","wires":[["19bd2de.2f9ddd2","deca096b.06e4b8"]]},{"id":"19bd2de.2f9ddd2","type":"set","name":"set found-customer-bonding-request to true","xml":"<set>\n<parameter name='found-customer-bonding-request' value='true' />\n","comments":"","x":1319.99995803833,"y":2139.999921798706,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"deca096b.06e4b8","type":"break","name":"break","xml":"<break>\n","comments":"","x":1204.9999389648438,"y":2188.3333010673523,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"33c48630.2bf5ba","type":"switchNode","name":"switch found-customer-bonding-request","xml":"<switch test='`$found-customer-bonding-request`'>\n","comments":"","outputs":1,"x":461.6666374206543,"y":2255.000068664551,"z":"ae8dc4de.f4dc68","wires":[["5e701dee.5b5824"]]},{"id":"5e701dee.5b5824","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":706.6665382385254,"y":2255.000068664551,"z":"ae8dc4de.f4dc68","wires":[["697b5fb8.beda5"]]},{"id":"e84cf705.8fbbd8","type":"set","name":"increment provided-configuration_length","xml":"<set>\n<parameter name='mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request_length'\n value='`$mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request_length + 1`' />\n","comments":"","x":1069.9998474121094,"y":2276.666555404663,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"697b5fb8.beda5","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":834.999942779541,"y":2255.0000076293945,"z":"ae8dc4de.f4dc68","wires":[["e84cf705.8fbbd8","f6b7d527.816a38"]]},{"id":"f6b7d527.816a38","type":"set","name":"set configuration-id","xml":"<set>\n<parameter name='mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request[$mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request_length].configuration-id'\n value='`$generic-configuration-notification-input.configuration-information.configuration-id`' />\n","comments":"","x":1004.9999465942383,"y":2228.3334636688232,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"d36d4389.7f7d9","type":"set","name":"set cbr-index to 0","xml":"<set>\n<parameter name='cbr-index' value='0' />\n","comments":"","x":390.0000228881836,"y":2118.3332557678223,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"57bab6ea.edaec8","type":"set","name":"set network-status to assigned","xml":"<set>\n<parameter name='mdsal-nign.network[0].network-status' value='assigned' />\n","comments":"","x":431.6666717529297,"y":2313.3336696624756,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"b626d1d9.7a40b","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":848.333251953125,"y":2361.6664476394653,"z":"ae8dc4de.f4dc68","wires":[["e67173fb.9bd5b"]]},{"id":"711125b6.dfa3fc","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"Failure writing network-instance-group network\" />\n","comments":"","x":1133.333095550537,"y":2378.3331155776978,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"e67173fb.9bd5b","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":979.9999008178711,"y":2359.9997987747192,"z":"ae8dc4de.f4dc68","wires":[["711125b6.dfa3fc","eb1f5008.a5906"]]},{"id":"d08f8ccc.1a7f7","type":"execute","name":"execute RestApiCallNode - PUT network-instance-group-network","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.network-instance-group-network.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.nign-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-nign\" />\n\n","comments":"","outputs":1,"x":538.3332977294922,"y":2363.333101272583,"z":"ae8dc4de.f4dc68","wires":[["b626d1d9.7a40b"]]},{"id":"eb1f5008.a5906","type":"configure","name":"send failure to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\"\n value=\"`$mdsal-gc.gc-configuration[0].configuration-data.configuration-operation-information.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\"\n value=\"Y\" />\n<parameter name=\"input.response-code\"\n value=\"500\" />\n<parameter name=\"input.response-message\"\n value=\"Failure writing network-instance-group network\" />\n<parameter name=\"input.svc-request-id\"\n value=\"`$generic-configuration-notification-input.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\"\n value=\"`$generic-configuration-notification-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\"\n value=\"`$generic-configuration-notification-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":1156.6666259765625,"y":2333.333251953125,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"3ab13842.69d928","type":"configure","name":"send failure to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\"\n value=\"`$mdsal-gc.gc-configuration[0].configuration-data.configuration-operation-information.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\"\n value=\"Y\" />\n<parameter name=\"input.response-code\"\n value=\"500\" />\n<parameter name=\"input.response-message\"\n value=\"Failure writing vnf-sub-interface-group\" />\n<parameter name=\"input.svc-request-id\"\n value=\"`$generic-configuration-notification-input.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\"\n value=\"`$generic-configuration-notification-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\"\n value=\"`$generic-configuration-notification-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":1105,"y":1606.6666259765625,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"61dbdcf5.d51804","type":"execute","name":"execute RestApiCallNode - PUT port-mirror-configuration","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.genconfig.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.gc-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-gc\" />\n\n","comments":"","outputs":1,"x":513.3333206176758,"y":2584.9997758865356,"z":"ae8dc4de.f4dc68","wires":[["bfa7d1bb.33253","66bbb3f8.ea0f1c"]]},{"id":"bfa7d1bb.33253","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":813.4031410217285,"y":2606.3313312530518,"z":"ae8dc4de.f4dc68","wires":[["a48c4403.7a82c8"]]},{"id":"66bbb3f8.ea0f1c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":805.8317756652832,"y":2564.8313512802124,"z":"ae8dc4de.f4dc68","wires":[["a48c4403.7a82c8"]]},{"id":"a48c4403.7a82c8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":968.8212852478027,"y":2578.9041776657104,"z":"ae8dc4de.f4dc68","wires":[["264f1cac.56b1a4","f64485c8.232168"]]},{"id":"264f1cac.56b1a4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Error updating md-sal for gc-configuration' />\n","comments":"","x":1143.3333358764648,"y":2600.000020980835,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"eafe9b0d.7484d8","type":"set","name":"set order-status to Created","xml":"<set>\n<parameter name='mdsal-gc.gc-configuration[0].configuration-data.configuration-oper-status.order-status'\n value='Created' />\n","comments":"","x":420.00001525878906,"y":2429.999858856201,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"57b4b7f.10e8948","type":"set","name":"copy mdsal-gc.gc-configuration[0]. to gc.","xml":"<set>\n<parameter name='gc.' value='mdsal-gc.gc-configuration[0].' />\n","comments":"","x":461.6666564941406,"y":2511.666603088379,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"f64485c8.232168","type":"configure","name":"send failure to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\"\n value=\"`$mdsal-gc.gc-configuration[0].configuration-data.configuration-operation-information.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\"\n value=\"Y\" />\n<parameter name=\"input.response-code\"\n value=\"500\" />\n<parameter name=\"input.response-message\"\n value=\"Error updating md-sal for gc-configuration\" />\n<parameter name=\"input.svc-request-id\"\n value=\"`$generic-configuration-notification-input.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\"\n value=\"`$generic-configuration-notification-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\"\n value=\"`$generic-configuration-notification-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":1165,"y":2553.333251953125,"z":"ae8dc4de.f4dc68","wires":[[]]}]
\ No newline at end of file +[{"id":"3cc1250e.772baa","type":"dgstart","name":"DGSTART","outputs":1,"x":102.5,"y":81.25,"z":"ae8dc4de.f4dc68","wires":[["3402eab5.73f3c6"]]},{"id":"3402eab5.73f3c6","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":217.78569793701172,"y":121.48810863494873,"z":"ae8dc4de.f4dc68","wires":[["c7e6ed9c.afa8c"]]},{"id":"c7e6ed9c.afa8c","type":"method","name":"method generic-configuration-notification-assign","xml":"<method rpc='generic-configuration-notification-assign' mode='sync'>\n","comments":"","outputs":1,"x":221.92862701416016,"y":162.2499942779541,"z":"ae8dc4de.f4dc68","wires":[["4767442b.f6c4ac"]]},{"id":"f1cc6d3c.1df33","type":"comment","name":"generic-configuration-notification-assign","info":"","comments":"","x":496.84485626220703,"y":28.83634376525879,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"4767442b.f6c4ac","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":134.16668701171875,"y":1781.7530403137207,"z":"ae8dc4de.f4dc68","wires":[["35944643.078a2a","146f698f.4e6226","d50bb092.cd571","8a5cfd84.4d1b4","d95d1950.bfe9f8","d52389db.225f08","7cc00fe8.04bdc","66091730.734bc8","522d7ed3.d05ac","9701d1bb.39173","3e76235a.0128ac","8568c1b1.c067e","84f34e5d.99cf4","da804b8e.c31568","7b830214.43feec","5d7d0687.7531f8","26306c7b.99f5a4","1d596143.fb1def","2f677052.127b9","7751357c.f0a3cc","9ed7f37f.7e0ba","1193a369.1cbf5d","d08c3347.9e6b8","f219dd.0348962","a1de031b.00549","5fb22bd5.354cf4","c4805bf4.e29698","1ddae120.504e2f","2def915d.1e931e","f1d80dd8.29bb8","d36d4389.7f7d9","8ba3a63e.d10ba8","33c48630.2bf5ba","57bab6ea.edaec8","d08f8ccc.1a7f7","1ea13a3.ea552c6","eafe9b0d.7484d8","61dbdcf5.d51804","57b4b7f.10e8948"]]},{"id":"35944643.078a2a","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=\"success\" />\n\n","comments":"","x":379.99983978271484,"y":2749.2528038024902,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"146f698f.4e6226","type":"execute","name":"execute readProperties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":411.6666488647461,"y":276.6666679382324,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"d50bb092.cd571","type":"execute","name":"generate gc-configuration url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.gc-configuration`\"/>\n <parameter name=\"outputPath\" value=\"tmp.gc-url\"/>\n <parameter name=\"target\" value=\"{configuration-id}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.configuration-information.configuration-id`\"/>\n","comments":"","outputs":1,"x":428.33331298828125,"y":335,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"13678d4c.8f5533","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":763.3332214355469,"y":386.6665210723877,"z":"ae8dc4de.f4dc68","wires":[["6d9a2e0a.afa9c"]]},{"id":"8a5cfd84.4d1b4","type":"execute","name":"execute RestApiCallNode - GET gc-configuration","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.gc-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-gc\" />\n\n","comments":"","outputs":1,"x":495.00003814697266,"y":386.6666717529297,"z":"ae8dc4de.f4dc68","wires":[["13678d4c.8f5533"]]},{"id":"d95d1950.bfe9f8","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-gcnotify.log' />\n","comments":"","outputs":1,"x":373.3331718444824,"y":2703.3330841064453,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"d52389db.225f08","type":"switchNode","name":"switch response-code","xml":"<switch test='`$generic-configuration-notification-input.response-code`'>\n","comments":"","outputs":1,"x":409.9999542236328,"y":495.00000953674316,"z":"ae8dc4de.f4dc68","wires":[["e66bcbd9.adfbd8","8765b92f.58af98"]]},{"id":"e66bcbd9.adfbd8","type":"outcome","name":"200","xml":"<outcome value='200'>\n","comments":"","outputs":1,"x":596.6667327880859,"y":526.6666688919067,"z":"ae8dc4de.f4dc68","wires":[["655312ec.c6ca4c"]]},{"id":"8765b92f.58af98","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":599.9999809265137,"y":466.66667556762695,"z":"ae8dc4de.f4dc68","wires":[["23f6b332.6a269c"]]},{"id":"84b95e52.d26aa","type":"configure","name":"send failure to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\"\n value=\"`$mdsal-gc.gc-configuration[0].configuration-data.configuration-operation-information.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\"\n value=\"`$generic-configuration-notification-input.ack-final-indicator`\" />\n<parameter name=\"input.response-code\"\n value=\"`$generic-configuration-notification-input.response-code`\" />\n<parameter name=\"input.svc-request-id\"\n value=\"`$generic-configuration-notification-input.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\"\n value=\"`$generic-configuration-notification-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\"\n value=\"`$generic-configuration-notification-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":905.0000381469727,"y":443.3333206176758,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"1ea13a3.ea552c6","type":"configure","name":"send success to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\"\n value=\"`$mdsal-gc.gc-configuration[0].configuration-data.configuration-operation-information.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\"\n value=\"`$generic-configuration-notification-input.ack-final-indicator`\" />\n<parameter name=\"input.response-code\"\n value=\"`$generic-configuration-notification-input.response-code`\" />\n<parameter name=\"input.svc-request-id\"\n value=\"`$generic-configuration-notification-input.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\"\n value=\"`$generic-configuration-notification-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\"\n value=\"`$generic-configuration-notification-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":403.3332290649414,"y":2658.333112716675,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"7cc00fe8.04bdc","type":"switchNode","name":"switch provided-configuration_length","xml":"<switch test='`$service-data.provided-configurations.provided-configuration_length`'>\n","comments":"","outputs":1,"x":455.00001525878906,"y":628.3333387374878,"z":"ae8dc4de.f4dc68","wires":[["ba800083.1956e"]]},{"id":"ba800083.1956e","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":678.3333129882812,"y":626.6666259765625,"z":"ae8dc4de.f4dc68","wires":[["89b0cf6a.10519"]]},{"id":"89b0cf6a.10519","type":"set","name":"set provided-configuration_length to 0","xml":"<set>\n<parameter name='service-data.provided-configurations.provided-configuration_length' value='0' />\n","comments":"","x":908.3332824707031,"y":626.666711807251,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"66091730.734bc8","type":"set","name":"set found-provided-configuration to false","xml":"<set>\n<parameter name='found-provided-configuration' value='false' />\n","comments":"","x":465.00001525878906,"y":676.6666965484619,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"522d7ed3.d05ac","type":"for","name":"for each provided-configuration","xml":"<for silentFailure='true' index='pc-index' start='0' end='`$service-data.provided-configurations.provided-configuration_length`' >\n","comments":"","outputs":1,"x":434.99999237060547,"y":780.0000705718994,"z":"ae8dc4de.f4dc68","wires":[["b8acf999.6ad398"]]},{"id":"b8acf999.6ad398","type":"switchNode","name":"switch configuration-ids match?","xml":"<switch test='`$service-data.provided-configurations.provided-configuration[$pc-index].configuration-id\n == $generic-configuration-notification-input.configuration-information.configuration-id`'>\n","comments":"","outputs":1,"x":715.0000381469727,"y":780.0000305175781,"z":"ae8dc4de.f4dc68","wires":[["77441f9a.3950f"]]},{"id":"77441f9a.3950f","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":928.3333435058594,"y":778.3333225250244,"z":"ae8dc4de.f4dc68","wires":[["53f19e9a.4c592"]]},{"id":"53f19e9a.4c592","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1064.9999313354492,"y":778.3333339691162,"z":"ae8dc4de.f4dc68","wires":[["f80ba273.e518","794072c0.94b0fc"]]},{"id":"655312ec.c6ca4c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":731.6666259765625,"y":525,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"23f6b332.6a269c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":731.6666259765625,"y":466.6666564941406,"z":"ae8dc4de.f4dc68","wires":[["84b95e52.d26aa","2eee38b0.9cc638"]]},{"id":"f80ba273.e518","type":"set","name":"set found-provided-configuration to true","xml":"<set>\n<parameter name='found-provided-configuration' value='true' />\n","comments":"","x":1293.333351135254,"y":748.3332796096802,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"794072c0.94b0fc","type":"break","name":"break","xml":"<break>\n","comments":"","x":1191.6666870117188,"y":796.6666769981384,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"9701d1bb.39173","type":"switchNode","name":"switch found-provided-configuration","xml":"<switch test='`$found-provided-configuration`'>\n","comments":"","outputs":1,"x":448.33335876464844,"y":833.3333644866943,"z":"ae8dc4de.f4dc68","wires":[["3bf36f48.88521"]]},{"id":"3bf36f48.88521","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":663.3333129882812,"y":833.3333435058594,"z":"ae8dc4de.f4dc68","wires":[["e204449a.562808"]]},{"id":"e204449a.562808","type":"set","name":"increment provided-configuration_length","xml":"<set>\n<parameter name='service-data.provided-configurations.provided-configuration_length'\n value='`$service-data.provided-configurations.provided-configuration_length + 1`' />\n","comments":"","x":894.9999847412109,"y":833.3333225250244,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"3e76235a.0128ac","type":"set","name":"set provided-configuration data","xml":"<set>\n<parameter name='service-data.provided-configurations.provided-configuration[$pc-index].configuration-id'\n value='`$generic-configuration-notification-input.configuration-information.configuration-id`' />\n<parameter name='service-data.provided-configurations.provided-configuration[$pc-index].configuration-type'\n value='`$generic-configuration-notification-input.configuration-information.configuration-type`' />\n<parameter name='service-data.provided-configurations.provided-configuration[$pc-index].configuration-sub-type'\n value='`$generic-configuration-notification-input.configuration-information.configuration-sub-type`' />\n<parameter name='service-data.provided-configurations.provided-configuration[$pc-index].configuration-topology-link'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $generic-configuration-notification-input.service-information.service-instance-id\n + '/service-data/provided-configurations/provided-configuration='\n + $generic-configuration-notification-input.configuration-information.configuration-id\n + '?content-config'`\" />\n","comments":"","x":431.66666412353516,"y":888.333306312561,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"f496c6ed.5771a8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":813.3332901000977,"y":1181.6666851043701,"z":"ae8dc4de.f4dc68","wires":[["9cb35e05.54f97"]]},{"id":"8568c1b1.c067e","type":"execute","name":"execute RestApiCallNode - GET vnf-sub-interface-group","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.vsig-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-vsig\" />\n\n","comments":"","outputs":1,"x":511.6666564941406,"y":1183.3335456848145,"z":"ae8dc4de.f4dc68","wires":[["f496c6ed.5771a8"]]},{"id":"84f34e5d.99cf4","type":"execute","name":"generate vnf-sub-interface-group URL","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.vnf-sub-interface-group`\"/>\n <parameter name=\"outputPath\" value=\"tmp.part\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.vnr-parameters.vnf-service-instance-id`\"/>\n","comments":"","outputs":1,"x":454.9999694824219,"y":938.3333206176758,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"da804b8e.c31568","type":"execute","name":"generate vnf-sub-interface-group URL","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.part`\"/>\n <parameter name=\"outputPath\" value=\"tmp.part\"/>\n <parameter name=\"target\" value=\"{vnf-id}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.vnr-parameters.vnf-id`\"/>\n","comments":"","outputs":1,"x":454.9999465942383,"y":988.3333654403687,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"7b830214.43feec","type":"execute","name":"generate vnf-sub-interface-group URL","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.part`\"/>\n <parameter name=\"outputPath\" value=\"tmp.part\"/>\n <parameter name=\"target\" value=\"{vnfc-instance-group-function}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.vnr-parameters.vnfc-instance-group-function`\"/>\n","comments":"","outputs":1,"x":454.99993896484375,"y":1038.3332872390747,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"5d7d0687.7531f8","type":"execute","name":"generate vnf-sub-interface-group URL","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.part`\"/>\n <parameter name=\"outputPath\" value=\"tmp.part\"/>\n <parameter name=\"target\" value=\"{network-instance-group-function}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.vnr-parameters.network-instance-group-function`\"/>\n","comments":"","outputs":1,"x":454.99996185302734,"y":1086.6665840148926,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"26306c7b.99f5a4","type":"execute","name":"generate vnf-sub-interface-group URL","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.part`\"/>\n <parameter name=\"outputPath\" value=\"tmp.vsig-url\"/>\n <parameter name=\"target\" value=\"{parent-port-role}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.vnr-parameters.parent-port-role`\"/>\n","comments":"","outputs":1,"x":454.99993896484375,"y":1135.0000438690186,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"ef8bdf4c.8e0fb","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Cannot find vnf-sub-interface-group in service ' + $generic-configuration-notification-input.vnr-parameters.vnf-service-instance-id`\" />\n","comments":"","x":1100.0003967285156,"y":1199.9998970031738,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"6d9a2e0a.afa9c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":891.6665420532227,"y":386.66664695739746,"z":"ae8dc4de.f4dc68","wires":[["a8eb0918.9f1948","6dad07ad.23e0c8"]]},{"id":"a8eb0918.9f1948","type":"configure","name":"send failure to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\"\n value=\"`$mdsal-gc.gc-configuration[0].configuration-data.configuration-operation-information.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\"\n value=\"Y\" />\n<parameter name=\"input.response-code\"\n value=\"500\" />\n<parameter name=\"input.response-message\"\n value=\"`'Cannot find configuration ' + $generic-configuration-notification-input.configuration-information.configuration-id`\" />\n<parameter name=\"input.svc-request-id\"\n value=\"`$generic-configuration-notification-input.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\"\n value=\"`$generic-configuration-notification-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\"\n value=\"`$generic-configuration-notification-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":1069.999855041504,"y":354.99999046325684,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"6dad07ad.23e0c8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Cannot find configuration ' + $generic-configuration-notification-input.configuration-information.configuration-id`\" />\n","comments":"","x":1046.66650390625,"y":406.666672706604,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"2eee38b0.9cc638","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`$generic-configuration-notification-input.response-message`\" />\n","comments":"","x":883.3333129882812,"y":489.9999694824219,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"9cb35e05.54f97","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":953.3332748413086,"y":1181.6666774749756,"z":"ae8dc4de.f4dc68","wires":[["ef8bdf4c.8e0fb","15aaaf48.cec541"]]},{"id":"15aaaf48.cec541","type":"configure","name":"send failure to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\"\n value=\"`$mdsal-gc.gc-configuration[0].configuration-data.configuration-operation-information.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\"\n value=\"Y\" />\n<parameter name=\"input.response-code\"\n value=\"500\" />\n<parameter name=\"input.response-message\"\n value=\"`'Cannot find vnf-sub-interface-group in service ' + $generic-configuration-notification-input.vnr-parameters.vnf-service-instance-id`\" />\n<parameter name=\"input.svc-request-id\"\n value=\"`$generic-configuration-notification-input.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\"\n value=\"`$generic-configuration-notification-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\"\n value=\"`$generic-configuration-notification-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":1119.999900817871,"y":1154.9999294281006,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"1d596143.fb1def","type":"for","name":"for each vnfc","xml":"<for silentFailure='true' index='vnfc-index' start='0' end='`$mdsal-vsig.vnf-sub-interface-group[0].vnfcs.vnfc_length`' >\n","comments":"","outputs":1,"x":376.666690826416,"y":1256.6666355133057,"z":"ae8dc4de.f4dc68","wires":[["78c2892b.27f7b8"]]},{"id":"78c2892b.27f7b8","type":"for","name":"for each vnic","xml":"<for silentFailure='true' index='vnic-index' start='0' end='`$mdsal-vsig.vnf-sub-interface-group[0].vnfcs.vnfc[$vnfc-index].vnics.vnic_length`' >\n","comments":"","outputs":1,"x":545,"y":1255,"z":"ae8dc4de.f4dc68","wires":[["71029de0.105574"]]},{"id":"71029de0.105574","type":"for","name":"for each subinterface","xml":"<for silentFailure='true' index='si-index' start='0' end='`$mdsal-vsig.vnf-sub-interface-group[0].vnfcs.vnfc[$vnfc-index].vnics.vnic[$vnic-index].sub-interfaces.sub-interface_length`' >\n","comments":"","outputs":1,"x":736.6666564941406,"y":1255.0000495910645,"z":"ae8dc4de.f4dc68","wires":[["ec687857.094fb8"]]},{"id":"ec687857.094fb8","type":"switchNode","name":"switch lower-tag-ids equal?","xml":"<switch test='`$mdsal-vsig.vnf-sub-interface-group[0].vnfcs.vnfc[$vnfc-index].vnics.vnic[$vnic-index].sub-interfaces.sub-interface[$si-index].vlan-tags.lower-tag-id\n == $generic-configuration-notification-input.vnr-parameters.lower-tag-id`'>\n","comments":"","outputs":1,"x":973.3333053588867,"y":1253.3332614898682,"z":"ae8dc4de.f4dc68","wires":[["a2c19f89.3b803"]]},{"id":"a2c19f89.3b803","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1168.3333435058594,"y":1251.6667175292969,"z":"ae8dc4de.f4dc68","wires":[["52075d54.ad5254"]]},{"id":"52075d54.ad5254","type":"set","name":"set sub-interface-status to 'assigned'","xml":"<set>\n<parameter name='mdsal-vsig.vnf-sub-interface-group[0].vnfcs.vnfc[$vnfc-index].vnics.vnic[$vnic-index].sub-interfaces.sub-interface[$si-index].sub-interface-status'\n value='assigned' />\n","comments":"","x":1393.3331832885742,"y":1249.9998865127563,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"2f677052.127b9","type":"switchNode","name":"switch customer-bonding-request_length","xml":"<switch test='`$mdsal-vsig.vnf-sub-interface-group[0].customer-bonding-requests.customer-bonding-request_length`'>\n","comments":"","outputs":1,"x":461.66664123535156,"y":1331.66667842865,"z":"ae8dc4de.f4dc68","wires":[["49eafbd8.217b14"]]},{"id":"49eafbd8.217b14","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":696.6666259765625,"y":1330,"z":"ae8dc4de.f4dc68","wires":[["876b66b2.c44fc8"]]},{"id":"876b66b2.c44fc8","type":"set","name":"set customer-bonding-request_length to 0","xml":"<set>\n<parameter name='mdsal-vsig.vnf-sub-interface-group[0].customer-bonding-requests.customer-bonding-request_length'\n value='0' />\n","comments":"","x":934.9999694824219,"y":1329.999930381775,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"7751357c.f0a3cc","type":"for","name":"for each customer-bonding-request","xml":"<for index='cbr-index' start='0' end='`$mdsal-vsig.vnf-sub-interface-group[0].customer-bonding-requests.customer-bonding-request_length`' >\n","comments":"","outputs":1,"x":443.3332977294922,"y":1441.6666831970215,"z":"ae8dc4de.f4dc68","wires":[["52b7e9d6.3b8d68"]]},{"id":"52b7e9d6.3b8d68","type":"switchNode","name":"switch configuration-ids equal?","xml":"<switch test='`$mdsal-vsig.vnf-sub-interface-group[0].customer-bonding-requests.customer-bonding-request[$cbr-index].configuration-id\n == $generic-configuration-notification-input.configuration-information.configuration-id`'>\n","comments":"","outputs":1,"x":738.3333206176758,"y":1441.666603088379,"z":"ae8dc4de.f4dc68","wires":[["668d8732.ab0708"]]},{"id":"9ed7f37f.7e0ba","type":"set","name":"set found-customer-bonding-request to false","xml":"<set>\n<parameter name='found-customer-bonding-request' value='false' />\n","comments":"","x":473.3333435058594,"y":1381.6665992736816,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"668d8732.ab0708","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":939.9999389648438,"y":1441.6666259765625,"z":"ae8dc4de.f4dc68","wires":[["18edad9e.582f42"]]},{"id":"18edad9e.582f42","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1076.6665267944336,"y":1441.6666374206543,"z":"ae8dc4de.f4dc68","wires":[["4224a75f.aa5358","ebf48469.47ca38"]]},{"id":"4224a75f.aa5358","type":"set","name":"set found-customer-bonding-request to true","xml":"<set>\n<parameter name='found-customer-bonding-request' value='true' />\n","comments":"","x":1318.3333015441895,"y":1411.6666011810303,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"ebf48469.47ca38","type":"break","name":"break","xml":"<break>\n","comments":"","x":1203.3332824707031,"y":1459.9999804496765,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"1193a369.1cbf5d","type":"switchNode","name":"switch found-customer-bonding-request","xml":"<switch test='`$found-customer-bonding-request`'>\n","comments":"","outputs":1,"x":459.9999809265137,"y":1526.666748046875,"z":"ae8dc4de.f4dc68","wires":[["9422191b.a944a8"]]},{"id":"9422191b.a944a8","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":704.9998817443848,"y":1526.666748046875,"z":"ae8dc4de.f4dc68","wires":[["c651b8bd.b62478"]]},{"id":"3b053b7e.793854","type":"set","name":"increment provided-configuration_length","xml":"<set>\n<parameter name='mdsal-vsig.vnf-sub-interface-group[0].customer-bonding-requests.customer-bonding-request_length'\n value='`$mdsal-vsig.vnf-sub-interface-group[0].customer-bonding-requests.customer-bonding-request_length + 1`' />\n","comments":"","x":1068.3331909179688,"y":1548.3332347869873,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"c651b8bd.b62478","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":833.3332862854004,"y":1526.6666870117188,"z":"ae8dc4de.f4dc68","wires":[["3b053b7e.793854","50457e5a.648f3"]]},{"id":"50457e5a.648f3","type":"set","name":"set configuration-id","xml":"<set>\n<parameter name='mdsal-vsig.vnf-sub-interface-group[0].customer-bonding-requests.customer-bonding-request[$mdsal-vsig.vnf-sub-interface-group[0].customer-bonding-requests.customer-bonding-request_length].configuration-id'\n value='`$generic-configuration-notification-input.configuration-information.configuration-id`' />\n","comments":"","x":1003.3332901000977,"y":1500.0001430511475,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"d08c3347.9e6b8","type":"execute","name":"execute RestApiCallNode - PUT vnf-sub-interface-group","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vnfsubinterfacegroup.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.vsig-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-vsig\" />\n\n","comments":"","outputs":1,"x":511.66663360595703,"y":1638.333152770996,"z":"ae8dc4de.f4dc68","wires":[["721a4c33.94a274"]]},{"id":"721a4c33.94a274","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":798.3332901000977,"y":1636.6665267944336,"z":"ae8dc4de.f4dc68","wires":[["a09798f2.5efdb8"]]},{"id":"762136cc.984f68","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"Failure writing vnf-sub-interface-group\" />\n","comments":"","x":1083.3331336975098,"y":1653.333194732666,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"a09798f2.5efdb8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":929.9999389648438,"y":1634.9998779296875,"z":"ae8dc4de.f4dc68","wires":[["762136cc.984f68","3ab13842.69d928"]]},{"id":"f219dd.0348962","type":"set","name":"set pc-index to 0","xml":"<set>\n<parameter name='pc-index' value='0' />\n","comments":"","x":389.9999694824219,"y":728.3333873748779,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"a1de031b.00549","type":"execute","name":"generate network-instance-group-network URL","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.network-instance-group-network`\"/>\n <parameter name=\"outputPath\" value=\"tmp.part\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.vnr-parameters.network-collection-service-instance-id`\"/>\n","comments":"","outputs":1,"x":484.9999084472656,"y":1716.6664113998413,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"5fb22bd5.354cf4","type":"execute","name":"generate network-instance-group-network URL","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.part`\"/>\n <parameter name=\"outputPath\" value=\"tmp.part\"/>\n <parameter name=\"target\" value=\"{network-instance-group-id}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.vnr-parameters.network-instance-group-id`\"/>\n","comments":"","outputs":1,"x":484.99989318847656,"y":1763.3332405090332,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"c4805bf4.e29698","type":"execute","name":"generate network-instance-group-network URL","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.part`\"/>\n <parameter name=\"outputPath\" value=\"tmp.nign-url\"/>\n <parameter name=\"target\" value=\"{network-id}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-notification-input.vnr-parameters.network-id`\"/>\n","comments":"","outputs":1,"x":484.9998779296875,"y":1806.6664543151855,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"53f66c5f.db0e04","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":852.0000152587891,"y":1922.6666278839111,"z":"ae8dc4de.f4dc68","wires":[["f74392fc.d0a05"]]},{"id":"1ddae120.504e2f","type":"execute","name":"execute RestApiCallNode - GET network-instance-group-network","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.nign-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-nign\" />\n\n","comments":"","outputs":1,"x":541.6666946411133,"y":1923.3334884643555,"z":"ae8dc4de.f4dc68","wires":[["53f66c5f.db0e04"]]},{"id":"511e8517.fc5a2c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Cannot find network-instance-group-network in service ' + $generic-configuration-notification-input.vnr-parameters.network-collection-service-instance-id`\" />\n","comments":"","x":1128.3337020874023,"y":1949.999834060669,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"f74392fc.d0a05","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":983.3333129882812,"y":1921.6666202545166,"z":"ae8dc4de.f4dc68","wires":[["511e8517.fc5a2c","8ace224e.0988d"]]},{"id":"8ace224e.0988d","type":"configure","name":"send failure to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\"\n value=\"`$mdsal-gc.gc-configuration[0].configuration-data.configuration-operation-information.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\"\n value=\"Y\" />\n<parameter name=\"input.response-code\"\n value=\"500\" />\n<parameter name=\"input.response-message\"\n value=\"`'Cannot find network-instance-group-network in service ' + $generic-configuration-notification-input.vnr-parameters.network-collection-service-instance-id`\" />\n<parameter name=\"input.svc-request-id\"\n value=\"`$generic-configuration-notification-input.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\"\n value=\"`$generic-configuration-notification-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\"\n value=\"`$generic-configuration-notification-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":1148.3332977294922,"y":1899.9998707771301,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"2def915d.1e931e","type":"switchNode","name":"switch customer-bonding-request_length","xml":"<switch test='`$mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request_length`'>\n","comments":"","outputs":1,"x":463.33331298828125,"y":2019.9998779296875,"z":"ae8dc4de.f4dc68","wires":[["2e033362.ff3efc"]]},{"id":"2e033362.ff3efc","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":698.3332977294922,"y":2018.3331995010376,"z":"ae8dc4de.f4dc68","wires":[["9f1b41b9.a2ee4"]]},{"id":"9f1b41b9.a2ee4","type":"set","name":"set customer-bonding-request_length to 0","xml":"<set>\n<parameter name='mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request_length'\n value='0' />\n","comments":"","x":936.6666412353516,"y":2018.3331298828125,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"8ba3a63e.d10ba8","type":"for","name":"for each customer-bonding-request","xml":"<for index='cbr-index' start='0' end='`$mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request_length`' >\n","comments":"","outputs":1,"x":444.9999542236328,"y":2170.0000038146973,"z":"ae8dc4de.f4dc68","wires":[["731cd6b2.d705e8"]]},{"id":"731cd6b2.d705e8","type":"switchNode","name":"switch configuration-ids equal?","xml":"<switch test='`$mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request[$cbr-index].configuration-id\n == $generic-configuration-notification-input.configuration-information.configuration-id`'>\n","comments":"","outputs":1,"x":739.9999771118164,"y":2169.9999237060547,"z":"ae8dc4de.f4dc68","wires":[["172328ac.80fd77"]]},{"id":"f1d80dd8.29bb8","type":"set","name":"set found-customer-bonding-request to false","xml":"<set>\n<parameter name='found-customer-bonding-request' value='false' />\n","comments":"","x":475.00001525878906,"y":2069.9997987747192,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"172328ac.80fd77","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":941.6665954589844,"y":2169.9999465942383,"z":"ae8dc4de.f4dc68","wires":[["722ff3a4.17f61c"]]},{"id":"722ff3a4.17f61c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1078.3331832885742,"y":2169.99995803833,"z":"ae8dc4de.f4dc68","wires":[["19bd2de.2f9ddd2","deca096b.06e4b8"]]},{"id":"19bd2de.2f9ddd2","type":"set","name":"set found-customer-bonding-request to true","xml":"<set>\n<parameter name='found-customer-bonding-request' value='true' />\n","comments":"","x":1319.99995803833,"y":2139.999921798706,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"deca096b.06e4b8","type":"break","name":"break","xml":"<break>\n","comments":"","x":1204.9999389648438,"y":2188.3333010673523,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"33c48630.2bf5ba","type":"switchNode","name":"switch found-customer-bonding-request","xml":"<switch test='`$found-customer-bonding-request`'>\n","comments":"","outputs":1,"x":461.6666374206543,"y":2255.000068664551,"z":"ae8dc4de.f4dc68","wires":[["5e701dee.5b5824"]]},{"id":"5e701dee.5b5824","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":706.6665382385254,"y":2255.000068664551,"z":"ae8dc4de.f4dc68","wires":[["697b5fb8.beda5"]]},{"id":"e84cf705.8fbbd8","type":"set","name":"increment provided-configuration_length","xml":"<set>\n<parameter name='mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request_length'\n value='`$mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request_length + 1`' />\n","comments":"","x":1069.9998474121094,"y":2276.666555404663,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"697b5fb8.beda5","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":834.999942779541,"y":2255.0000076293945,"z":"ae8dc4de.f4dc68","wires":[["e84cf705.8fbbd8","f6b7d527.816a38"]]},{"id":"f6b7d527.816a38","type":"set","name":"set configuration-id","xml":"<set>\n<parameter name='mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request[$mdsal-nign.network[0].customer-bonding-requests.customer-bonding-request_length].configuration-id'\n value='`$generic-configuration-notification-input.configuration-information.configuration-id`' />\n","comments":"","x":1004.9999465942383,"y":2228.3334636688232,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"d36d4389.7f7d9","type":"set","name":"set cbr-index to 0","xml":"<set>\n<parameter name='cbr-index' value='0' />\n","comments":"","x":390.0000228881836,"y":2118.3332557678223,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"57bab6ea.edaec8","type":"set","name":"set network-status to assigned","xml":"<set>\n<parameter name='mdsal-nign.network[0].network-status' value='assigned' />\n","comments":"","x":431.6666717529297,"y":2313.3336696624756,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"b626d1d9.7a40b","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":848.333251953125,"y":2361.6664476394653,"z":"ae8dc4de.f4dc68","wires":[["e67173fb.9bd5b"]]},{"id":"711125b6.dfa3fc","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"Failure writing network-instance-group network\" />\n","comments":"","x":1133.333095550537,"y":2378.3331155776978,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"e67173fb.9bd5b","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":979.9999008178711,"y":2359.9997987747192,"z":"ae8dc4de.f4dc68","wires":[["711125b6.dfa3fc","eb1f5008.a5906"]]},{"id":"d08f8ccc.1a7f7","type":"execute","name":"execute RestApiCallNode - PUT network-instance-group-network","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.network-instance-group-network.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.nign-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-nign\" />\n\n","comments":"","outputs":1,"x":538.3332977294922,"y":2363.333101272583,"z":"ae8dc4de.f4dc68","wires":[["b626d1d9.7a40b"]]},{"id":"eb1f5008.a5906","type":"configure","name":"send failure to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\"\n value=\"`$mdsal-gc.gc-configuration[0].configuration-data.configuration-operation-information.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\"\n value=\"Y\" />\n<parameter name=\"input.response-code\"\n value=\"500\" />\n<parameter name=\"input.response-message\"\n value=\"Failure writing network-instance-group network\" />\n<parameter name=\"input.svc-request-id\"\n value=\"`$generic-configuration-notification-input.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\"\n value=\"`$generic-configuration-notification-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\"\n value=\"`$generic-configuration-notification-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":1156.6666259765625,"y":2333.333251953125,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"3ab13842.69d928","type":"configure","name":"send failure to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\"\n value=\"`$mdsal-gc.gc-configuration[0].configuration-data.configuration-operation-information.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\"\n value=\"Y\" />\n<parameter name=\"input.response-code\"\n value=\"500\" />\n<parameter name=\"input.response-message\"\n value=\"Failure writing vnf-sub-interface-group\" />\n<parameter name=\"input.svc-request-id\"\n value=\"`$generic-configuration-notification-input.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\"\n value=\"`$generic-configuration-notification-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\"\n value=\"`$generic-configuration-notification-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":1105,"y":1606.6666259765625,"z":"ae8dc4de.f4dc68","wires":[[]]},{"id":"61dbdcf5.d51804","type":"execute","name":"execute RestApiCallNode - PUT port-mirror-configuration","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.genconfig.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.gc-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-gc\" />\n\n","comments":"","outputs":1,"x":513.3333206176758,"y":2584.9997758865356,"z":"ae8dc4de.f4dc68","wires":[["bfa7d1bb.33253","66bbb3f8.ea0f1c"]]},{"id":"bfa7d1bb.33253","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":813.4031410217285,"y":2606.3313312530518,"z":"ae8dc4de.f4dc68","wires":[["a48c4403.7a82c8"]]},{"id":"66bbb3f8.ea0f1c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":805.8317756652832,"y":2564.8313512802124,"z":"ae8dc4de.f4dc68","wires":[["a48c4403.7a82c8"]]},{"id":"a48c4403.7a82c8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":968.8212852478027,"y":2578.9041776657104,"z":"ae8dc4de.f4dc68","wires":[["264f1cac.56b1a4","f64485c8.232168"]]},{"id":"264f1cac.56b1a4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Error updating md-sal for gc-configuration' />\n","comments":"","x":1143.3333358764648,"y":2600.000020980835,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"eafe9b0d.7484d8","type":"set","name":"set order-status to Created","xml":"<set>\n<parameter name='mdsal-gc.gc-configuration[0].configuration-data.configuration-oper-status.order-status'\n value='Created' />\n","comments":"","x":420.00001525878906,"y":2429.999858856201,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"57b4b7f.10e8948","type":"set","name":"copy mdsal-gc.gc-configuration[0]. to gc.","xml":"<set>\n<parameter name='gc.' value='mdsal-gc.gc-configuration[0].' />\n","comments":"","x":461.6666564941406,"y":2511.666603088379,"z":"ae8dc4de.f4dc68","wires":[]},{"id":"f64485c8.232168","type":"configure","name":"send failure to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\"\n value=\"`$mdsal-gc.gc-configuration[0].configuration-data.configuration-operation-information.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\"\n value=\"Y\" />\n<parameter name=\"input.response-code\"\n value=\"500\" />\n<parameter name=\"input.response-message\"\n value=\"Error updating md-sal for gc-configuration\" />\n<parameter name=\"input.svc-request-id\"\n value=\"`$generic-configuration-notification-input.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\"\n value=\"`$generic-configuration-notification-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\"\n value=\"`$generic-configuration-notification-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":1165,"y":2553.333251953125,"z":"ae8dc4de.f4dc68","wires":[[]]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generic-configuration-topology-operation.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generic-configuration-topology-operation.json index c2de555c..324ece0b 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generic-configuration-topology-operation.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generic-configuration-topology-operation.json @@ -1 +1 @@ -[{"id":"e883356.34111c8","type":"dgstart","name":"DGSTART","outputs":1,"x":112.5,"y":81.25,"z":"82021e0d.6c10f","wires":[["ada3b9c3.42b808"]]},{"id":"ada3b9c3.42b808","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":227.78569793701172,"y":121.48810863494873,"z":"82021e0d.6c10f","wires":[["3899865b.b33ffa"]]},{"id":"3899865b.b33ffa","type":"method","name":"method generic-configuration-topology-operation","xml":"<method rpc='generic-configuration-topology-operation' mode='sync'>\n","comments":"","outputs":1,"x":235.92862701416016,"y":162.2499942779541,"z":"82021e0d.6c10f","wires":[["5086b18d.4ec67"]]},{"id":"547b438e.e416cc","type":"comment","name":"generic-configuration-topology-operation","info":"","comments":"","x":506.84485626220703,"y":28.83634376525879,"z":"82021e0d.6c10f","wires":[]},{"id":"5086b18d.4ec67","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":150.83333587646484,"y":541.7530136108398,"z":"82021e0d.6c10f","wires":[["1b7b7f55.ca75f1","a234c467.3f1f18","4bb61d5b.460ef4","f8173995.43a8a8","25fce84e.946c28","e57bf2bf.a171e","79a2f2.c117fd1","732b206f.3ad56","6b6ce288.401eec"]]},{"id":"1b7b7f55.ca75f1","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"`$bonding-service-response.ackFinalIndicator`\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"success\" />\n\n","comments":"","x":366.6667137145996,"y":889.2529363632202,"z":"82021e0d.6c10f","wires":[]},{"id":"a234c467.3f1f18","type":"call","name":"call GENERIC-RESOURCE-API:validate-generic-configuration-input","xml":"<call module='GENERIC-RESOURCE-API' rpc='validate-generic-configuration-input' mode='sync' >\n","comments":"","outputs":1,"x":533.3333129882812,"y":243.33332920074463,"z":"82021e0d.6c10f","wires":[["c918f524.db0e78"]]},{"id":"c918f524.db0e78","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":843.3334159851074,"y":243.33349132537842,"z":"82021e0d.6c10f","wires":[["c74b0c40.892c5"]]},{"id":"c74b0c40.892c5","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":995.0000228881836,"y":241.66668319702148,"z":"82021e0d.6c10f","wires":[]},{"id":"be78a275.a3a47","type":"set","name":"create gc structure and set input data","xml":"<set>\n<parameter name='gc.configuration-id'\n value='`$generic-configuration-topology-operation-input.configuration-information.configuration-id`' />\n<parameter name='gc.configuration-data.configuration-operation-information.sdnc-request-header.'\n value='`$generic-configuration-topology-operation-input.sdnc-request-header.`' />\n<parameter name='gc.configuration-data.configuration-operation-information.request-information.'\n value='`$generic-configuration-topology-operation-input.request-information.`' />\n<parameter name='gc.configuration-data.configuration-operation-information.service-information.'\n value='`$generic-configuration-topology-operation-input.service-information.`' />\n<parameter name='gc.configuration-data.configuration-operation-information.configuration-information.'\n value='`$generic-configuration-topology-operation-input.configuration-information.`' />\n<parameter name='gc.configuration-data.configuration-operation-information.gc-request-input.'\n value='`$generic-configuration-topology-operation-input.gc-request-input.`' />\n","comments":"","x":948.3334121704102,"y":340.00002670288086,"z":"82021e0d.6c10f","wires":[]},{"id":"4bb61d5b.460ef4","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-genconfig.log' />\n","comments":"","outputs":1,"x":360.0000114440918,"y":841.666615486145,"z":"82021e0d.6c10f","wires":[[]]},{"id":"27bbd4ba.ada15c","type":"execute","name":"execute RestApiCallNode - PUT port-mirror-configuration","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.genconfig.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.gc-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-gc\" />\n\n","comments":"","outputs":1,"x":1009.9999618530273,"y":509.9999656677246,"z":"82021e0d.6c10f","wires":[["944485f3.4bf438","6f7f6f23.f4a3f"]]},{"id":"944485f3.4bf438","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1310.06978225708,"y":531.3315210342407,"z":"82021e0d.6c10f","wires":[["410435ab.f840ec"]]},{"id":"6f7f6f23.f4a3f","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1302.4984169006348,"y":489.83154106140137,"z":"82021e0d.6c10f","wires":[["410435ab.f840ec"]]},{"id":"ff91012.f4d53","type":"execute","name":"generate gc-configuration url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.gc-configuration`\"/>\n <parameter name=\"outputPath\" value=\"tmp.gc-url\"/>\n <parameter name=\"target\" value=\"{configuration-id}\"/>\n <parameter name=\"replacement\" value=\"`$gc.configuration-id`\"/>\n","comments":"","outputs":1,"x":922.9166107177734,"y":443.33325958251953,"z":"82021e0d.6c10f","wires":[[]]},{"id":"410435ab.f840ec","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1465.4879264831543,"y":503.9043674468994,"z":"82021e0d.6c10f","wires":[["c0640b05.6555b8"]]},{"id":"c0640b05.6555b8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Error updating md-sal for gc-configuration' />\n","comments":"","x":1638.3333168029785,"y":503.33334255218506,"z":"82021e0d.6c10f","wires":[]},{"id":"f8173995.43a8a8","type":"execute","name":"execute readProperties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":394.9999542236328,"y":289.99999046325684,"z":"82021e0d.6c10f","wires":[[]]},{"id":"25fce84e.946c28","type":"execute","name":"generate bonding service url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.bondingservice.server + $prop.bondingservice.uri`\"/>\n <parameter name=\"outputPath\" value=\"tmp.bs-url\"/>\n <parameter name=\"target\" value=\"{action}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-topology-operation-input.sdnc-request-header.svc-action`\"/>\n","comments":"","outputs":1,"x":413.3332977294922,"y":644.9999618530273,"z":"82021e0d.6c10f","wires":[[]]},{"id":"6b6ce288.401eec","type":"execute","name":"execute RestApiCallNode - POST to bonding service","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.bondingservice.templatefile`\" />\n <parameter name='restapiUrl' value='`$tmp.bs-url`' />\n <parameter name='restapiUser' value='`$prop.bondingservice.user`' />\n <parameter name='restapiPassword' value='`$prop.bondingservice.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name=\"responsePrefix\" value=\"bonding-service-response\" />\n <parameter name='customHttpHeaders'\n value=\"`'Authorization=Basic ' + $prop.bondingservice.authorization`\" />\n","comments":"","outputs":1,"x":488.33331298828125,"y":693.3332386016846,"z":"82021e0d.6c10f","wires":[["242a445f.6d5b3c"]]},{"id":"242a445f.6d5b3c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":760.8317565917969,"y":693.1649036407471,"z":"82021e0d.6c10f","wires":[["81f40e9f.9fbe8"]]},{"id":"81f40e9f.9fbe8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Error calling bonding service; ' + $error-message`\" />\n","comments":"","x":913.3332977294922,"y":692.3333005905151,"z":"82021e0d.6c10f","wires":[]},{"id":"e699d882.2d0db8","type":"set","name":"set order-status, etc","xml":"<set>\n<parameter name='gc.configuration-data.configuration-oper-status.order-status'\n value='PendingCreate' />\n<parameter name='gc.configuration-data.configuration-oper-status.last-rpc-action'\n value='assign' />\n<parameter name='gc.configuration-data.configuration-oper-status.last-action'\n value='CreateGenericConfigurationInstance' />\n","comments":"","x":896.6666641235352,"y":393.3333101272583,"z":"82021e0d.6c10f","wires":[]},{"id":"85748cfd.60ffd","type":"set","name":"dummy set ackFinalIndicator","xml":"<set>\n<parameter name='bonding-service-response.ackFinalIndicator' value='N' />\n","comments":"","x":411.6667137145996,"y":743.3334188461304,"z":"82021e0d.6c10f","wires":[]},{"id":"e57bf2bf.a171e","type":"set","name":"set service-object-path","xml":"<set>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $service-data.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n","comments":"","x":391.6666603088379,"y":793.3332767486572,"z":"82021e0d.6c10f","wires":[]},{"id":"79a2f2.c117fd1","type":"switchNode","name":"switch svc-action","xml":"<switch test='`$generic-configuration-topology-operation-input.sdnc-request-header.svc-action`'>\n","comments":"","outputs":1,"x":376.66666412353516,"y":433.3333320617676,"z":"82021e0d.6c10f","wires":[["c3bb199d.f6e318"]]},{"id":"c3bb199d.f6e318","type":"outcome","name":"assign","xml":"<outcome value='assign'>\n","comments":"","outputs":1,"x":536.6666259765625,"y":431.6666564941406,"z":"82021e0d.6c10f","wires":[["9a06a155.15de7"]]},{"id":"9a06a155.15de7","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":685,"y":429.9999694824219,"z":"82021e0d.6c10f","wires":[["be78a275.a3a47","e699d882.2d0db8","ff91012.f4d53","27bbd4ba.ada15c"]]},{"id":"732b206f.3ad56","type":"set","name":"set notification-url","xml":"<set>\n<parameter name='notification-url'\n value=\"`$prop.controller.url + '/restconf/operations/GENERIC-RESOURCE-API:generic-configuration-notification'`\" />\n","comments":"","x":379.9999771118164,"y":596.6667308807373,"z":"82021e0d.6c10f","wires":[]}]
\ No newline at end of file +[{"id":"e883356.34111c8","type":"dgstart","name":"DGSTART","outputs":1,"x":112.5,"y":81.25,"z":"82021e0d.6c10f","wires":[["ada3b9c3.42b808"]]},{"id":"ada3b9c3.42b808","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":227.78569793701172,"y":121.48810863494873,"z":"82021e0d.6c10f","wires":[["3899865b.b33ffa"]]},{"id":"3899865b.b33ffa","type":"method","name":"method generic-configuration-topology-operation","xml":"<method rpc='generic-configuration-topology-operation' mode='sync'>\n","comments":"","outputs":1,"x":235.92862701416016,"y":162.2499942779541,"z":"82021e0d.6c10f","wires":[["5086b18d.4ec67"]]},{"id":"547b438e.e416cc","type":"comment","name":"generic-configuration-topology-operation","info":"","comments":"","x":506.84485626220703,"y":28.83634376525879,"z":"82021e0d.6c10f","wires":[]},{"id":"5086b18d.4ec67","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":150.83333587646484,"y":541.7530136108398,"z":"82021e0d.6c10f","wires":[["1b7b7f55.ca75f1","a234c467.3f1f18","4bb61d5b.460ef4","f8173995.43a8a8","25fce84e.946c28","e57bf2bf.a171e","79a2f2.c117fd1","732b206f.3ad56","6b6ce288.401eec"]]},{"id":"1b7b7f55.ca75f1","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"`$bonding-service-response.ackFinalIndicator`\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"success\" />\n\n","comments":"","x":366.6667137145996,"y":889.2529363632202,"z":"82021e0d.6c10f","wires":[]},{"id":"a234c467.3f1f18","type":"call","name":"call GENERIC-RESOURCE-API:validate-generic-configuration-input","xml":"<call module='GENERIC-RESOURCE-API' rpc='validate-generic-configuration-input' mode='sync' >\n","comments":"","outputs":1,"x":533.3333129882812,"y":243.33332920074463,"z":"82021e0d.6c10f","wires":[["c918f524.db0e78"]]},{"id":"c918f524.db0e78","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":843.3334159851074,"y":243.33349132537842,"z":"82021e0d.6c10f","wires":[["c74b0c40.892c5"]]},{"id":"c74b0c40.892c5","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n","comments":"","x":995.0000228881836,"y":241.66668319702148,"z":"82021e0d.6c10f","wires":[]},{"id":"be78a275.a3a47","type":"set","name":"create gc structure and set input data","xml":"<set>\n<parameter name='gc.configuration-id'\n value='`$generic-configuration-topology-operation-input.configuration-information.configuration-id`' />\n<parameter name='gc.configuration-data.configuration-operation-information.sdnc-request-header.'\n value='`$generic-configuration-topology-operation-input.sdnc-request-header.`' />\n<parameter name='gc.configuration-data.configuration-operation-information.request-information.'\n value='`$generic-configuration-topology-operation-input.request-information.`' />\n<parameter name='gc.configuration-data.configuration-operation-information.service-information.'\n value='`$generic-configuration-topology-operation-input.service-information.`' />\n<parameter name='gc.configuration-data.configuration-operation-information.configuration-information.'\n value='`$generic-configuration-topology-operation-input.configuration-information.`' />\n<parameter name='gc.configuration-data.configuration-operation-information.gc-request-input.'\n value='`$generic-configuration-topology-operation-input.gc-request-input.`' />\n","comments":"","x":948.3334121704102,"y":340.00002670288086,"z":"82021e0d.6c10f","wires":[]},{"id":"4bb61d5b.460ef4","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bgb-genconfig.log' />\n","comments":"","outputs":1,"x":360.0000114440918,"y":841.666615486145,"z":"82021e0d.6c10f","wires":[[]]},{"id":"27bbd4ba.ada15c","type":"execute","name":"execute RestApiCallNode - PUT port-mirror-configuration","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.genconfig.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.gc-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-gc\" />\n\n","comments":"","outputs":1,"x":1009.9999618530273,"y":509.9999656677246,"z":"82021e0d.6c10f","wires":[["944485f3.4bf438","6f7f6f23.f4a3f"]]},{"id":"944485f3.4bf438","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1310.06978225708,"y":531.3315210342407,"z":"82021e0d.6c10f","wires":[["410435ab.f840ec"]]},{"id":"6f7f6f23.f4a3f","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1302.4984169006348,"y":489.83154106140137,"z":"82021e0d.6c10f","wires":[["410435ab.f840ec"]]},{"id":"ff91012.f4d53","type":"execute","name":"generate gc-configuration url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.gc-configuration`\"/>\n <parameter name=\"outputPath\" value=\"tmp.gc-url\"/>\n <parameter name=\"target\" value=\"{configuration-id}\"/>\n <parameter name=\"replacement\" value=\"`$gc.configuration-id`\"/>\n","comments":"","outputs":1,"x":922.9166107177734,"y":443.33325958251953,"z":"82021e0d.6c10f","wires":[[]]},{"id":"410435ab.f840ec","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1465.4879264831543,"y":503.9043674468994,"z":"82021e0d.6c10f","wires":[["c0640b05.6555b8"]]},{"id":"c0640b05.6555b8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Error updating md-sal for gc-configuration' />\n","comments":"","x":1638.3333168029785,"y":503.33334255218506,"z":"82021e0d.6c10f","wires":[]},{"id":"f8173995.43a8a8","type":"execute","name":"execute readProperties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":394.9999542236328,"y":289.99999046325684,"z":"82021e0d.6c10f","wires":[[]]},{"id":"25fce84e.946c28","type":"execute","name":"generate bonding service url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.bondingservice.server + $prop.bondingservice.uri`\"/>\n <parameter name=\"outputPath\" value=\"tmp.bs-url\"/>\n <parameter name=\"target\" value=\"{action}\"/>\n <parameter name=\"replacement\" value=\"`$generic-configuration-topology-operation-input.sdnc-request-header.svc-action`\"/>\n","comments":"","outputs":1,"x":413.3332977294922,"y":644.9999618530273,"z":"82021e0d.6c10f","wires":[[]]},{"id":"6b6ce288.401eec","type":"execute","name":"execute RestApiCallNode - POST to bonding service","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.bondingservice.templatefile`\" />\n <parameter name='restapiUrl' value='`$tmp.bs-url`' />\n <parameter name='restapiUser' value='`$prop.bondingservice.user`' />\n <parameter name='restapiPassword' value='`$prop.bondingservice.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name=\"responsePrefix\" value=\"bonding-service-response\" />\n <parameter name='customHttpHeaders'\n value=\"`'Authorization=Basic ' + $prop.bondingservice.authorization`\" />\n","comments":"","outputs":1,"x":488.33331298828125,"y":693.3332386016846,"z":"82021e0d.6c10f","wires":[["242a445f.6d5b3c"]]},{"id":"242a445f.6d5b3c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":760.8317565917969,"y":693.1649036407471,"z":"82021e0d.6c10f","wires":[["81f40e9f.9fbe8"]]},{"id":"81f40e9f.9fbe8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Error calling bonding service; ' + $error-message`\" />\n","comments":"","x":913.3332977294922,"y":692.3333005905151,"z":"82021e0d.6c10f","wires":[]},{"id":"e699d882.2d0db8","type":"set","name":"set order-status, etc","xml":"<set>\n<parameter name='gc.configuration-data.configuration-oper-status.order-status'\n value='PendingCreate' />\n<parameter name='gc.configuration-data.configuration-oper-status.last-rpc-action'\n value='assign' />\n<parameter name='gc.configuration-data.configuration-oper-status.last-action'\n value='CreateGenericConfigurationInstance' />\n","comments":"","x":896.6666641235352,"y":393.3333101272583,"z":"82021e0d.6c10f","wires":[]},{"id":"85748cfd.60ffd","type":"set","name":"dummy set ackFinalIndicator","xml":"<set>\n<parameter name='bonding-service-response.ackFinalIndicator' value='N' />\n","comments":"","x":411.6667137145996,"y":743.3334188461304,"z":"82021e0d.6c10f","wires":[]},{"id":"e57bf2bf.a171e","type":"set","name":"set service-object-path","xml":"<set>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $service-data.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n","comments":"","x":391.6666603088379,"y":793.3332767486572,"z":"82021e0d.6c10f","wires":[]},{"id":"79a2f2.c117fd1","type":"switchNode","name":"switch svc-action","xml":"<switch test='`$generic-configuration-topology-operation-input.sdnc-request-header.svc-action`'>\n","comments":"","outputs":1,"x":376.66666412353516,"y":433.3333320617676,"z":"82021e0d.6c10f","wires":[["c3bb199d.f6e318"]]},{"id":"c3bb199d.f6e318","type":"outcome","name":"assign","xml":"<outcome value='assign'>\n","comments":"","outputs":1,"x":536.6666259765625,"y":431.6666564941406,"z":"82021e0d.6c10f","wires":[["9a06a155.15de7"]]},{"id":"9a06a155.15de7","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":685,"y":429.9999694824219,"z":"82021e0d.6c10f","wires":[["be78a275.a3a47","e699d882.2d0db8","ff91012.f4d53","27bbd4ba.ada15c"]]},{"id":"732b206f.3ad56","type":"set","name":"set notification-url","xml":"<set>\n<parameter name='notification-url'\n value=\"`$prop.controller.url + '/rests/operations/GENERIC-RESOURCE-API:generic-configuration-notification'`\" />\n","comments":"","x":379.9999771118164,"y":596.6667308807373,"z":"82021e0d.6c10f","wires":[]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_getpathsegment-create-composite-path.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_getpathsegment-create-composite-path.json index 9faec130..3aa7b91a 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_getpathsegment-create-composite-path.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_getpathsegment-create-composite-path.json @@ -1 +1 @@ -[{"id":"38b3fdb6.1bce32","type":"dgstart","name":"DGSTART","outputs":1,"x":101.66666412353516,"y":83.33332824707031,"z":"acdffee6.4646","wires":[["99e272a4.4e9a8"]]},{"id":"99e272a4.4e9a8","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":216.95236206054688,"y":123.5714340209961,"z":"acdffee6.4646","wires":[["1e63d80b.85a448"]]},{"id":"1e63d80b.85a448","type":"method","name":"method getpathsegment-create-composite-path","xml":"<method rpc='getpathsegment-create-composite-path' mode='sync'>\n","comments":"","outputs":1,"x":221.0952911376953,"y":164.3333225250244,"z":"acdffee6.4646","wires":[["df2ed6c2.cce068"]]},{"id":"1c6cd94a.dfdc47","type":"comment","name":"getpathsegment-create-composite-path","info":"","comments":"","x":496.0115203857422,"y":30.9196720123291,"z":"acdffee6.4646","wires":[]},{"id":"df2ed6c2.cce068","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":304.5000534057617,"y":303.46728324890137,"z":"acdffee6.4646","wires":[["fc83ec6a.1d401","d895c970.3dbc78"]]},{"id":"fc83ec6a.1d401","type":"get-resource","name":"get-resource PATH_SEGMENT","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from PATH_SEGMENT WHERE service_uuid = $getpathsegment-topology-operation-input.service-information.onap-model-information.model-uuid\n AND path_name = $db.forwarding-path[$path-index].path-name ORDER BY path_segment_seq'\n pfx='db.path-segment[]'>\n\n","comments":"","outputs":1,"x":527.6190452575684,"y":373.0952377319336,"z":"acdffee6.4646","wires":[["7ff0a241.207e8c","8b411eeb.03fd7","e62cb2cc.8b1b1"]]},{"id":"c64c7acf.8db458","type":"for","name":"for each path segment","xml":"<for index='path-segment-index' start='0' end='`$db.path-segment_length`' >\n","comments":"","outputs":1,"x":560.7738571166992,"y":557.4404888153076,"z":"acdffee6.4646","wires":[["c804b632.fcc3c8"]]},{"id":"c804b632.fcc3c8","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":758.9286117553711,"y":557.261869430542,"z":"acdffee6.4646","wires":[["4637dda4.0531c4","c55591ca.552ba"]]},{"id":"227d76b8.b8f89a","type":"set","name":"set serv-cust_length to 0","xml":"<set>\n<parameter name='serv-cust_length' value='0' />\n","comments":"","x":569.1667022705078,"y":509.58334255218506,"z":"acdffee6.4646","wires":[]},{"id":"4637dda4.0531c4","type":"set","name":"add source ids to serv-cust[]","xml":"<set>\n<parameter name='serv-cust[$serv-cust_length].id' value='`$db.path-segment[$path-segment-index].source-association-uuid`' />\n<parameter name='serv-cust_length' value='`$serv-cust_length + 1`' />\n","comments":"","x":984.1667098999023,"y":535.8333425521851,"z":"acdffee6.4646","wires":[]},{"id":"c55591ca.552ba","type":"switchNode","name":"is this the last path-segment?","xml":"<switch test='`$path-segment-index == ( $db.path-segment_length - 1) `'>\n","comments":"","outputs":1,"x":987.9167175292969,"y":580.8333435058594,"z":"acdffee6.4646","wires":[["f40592ef.6d056"]]},{"id":"f40592ef.6d056","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1184.1667194366455,"y":580.5833435058594,"z":"acdffee6.4646","wires":[["65efc56f.f80dcc"]]},{"id":"65efc56f.f80dcc","type":"set","name":"add target ids to serv-cust[]","xml":"<set>\n<parameter name='serv-cust[$serv-cust_length].id' value='`$db.path-segment[$path-segment-index].target-association-uuid`' />\n<parameter name='serv-cust_length' value='`$serv-cust_length + 1`' />\n","comments":"","x":1373.1667137145996,"y":579.8333435058594,"z":"acdffee6.4646","wires":[]},{"id":"d6d2ff5a.a38e6","type":"comment","name":"create list of service customization/invariant ids","info":"","comments":"","x":750.0000495910645,"y":460.41664600372314,"z":"acdffee6.4646","wires":[]},{"id":"eba93f08.848f6","type":"get-resource","name":"custom query - get runtime service-instances","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"custom-query\"\n\tkey=\"format = 'resource'\"\n\tforce=\"true\"\n\tlocal-only=\"false\"\n\tpfx=\"aai.service-instances\" >\n\t<parameter name=\"start[0]\" value=\"`'nodes/service-instances?model-invariant-id=' + $serv-cust[$serv-index].inv-id`\" />\n\t<parameter name=\"start_length\" value=\"1\" />\n","comments":"","outputs":1,"x":1164.1666870117188,"y":815.5833110809326,"z":"acdffee6.4646","wires":[["4c07202b.a6ebd","465c9f69.063cf","dc42dfdf.fdb5"]]},{"id":"465c9f69.063cf","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1425.9129028320312,"y":806.4841794967651,"z":"acdffee6.4646","wires":[["e9829c01.c3518"]]},{"id":"4c07202b.a6ebd","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1434.8414993286133,"y":764.7699127197266,"z":"acdffee6.4646","wires":[["22fcdcd6.409e54"]]},{"id":"d895c970.3dbc78","type":"set","name":"set match-type","xml":"<set>\n<parameter name='match-type' value='network-name' />\n","comments":"","x":475.00000762939453,"y":243.33336734771729,"z":"acdffee6.4646","wires":[]},{"id":"3337a2c8.4f2c0e","type":"for","name":"for each service","xml":"<for index='serv-index' start='0' end='`$serv-cust_length`' >\n","comments":"","outputs":1,"x":542.9166564941406,"y":795.8333034515381,"z":"acdffee6.4646","wires":[["ea262156.5bc25"]]},{"id":"ba80debf.cd0aa","type":"for","name":"for each runtime service-instance","xml":"<for index='runtime-index' start='0' end='`$aai.service-instances.results_length`' >\n","comments":"","outputs":1,"x":1787.3809661865234,"y":897.261890411377,"z":"acdffee6.4646","wires":[["f4f23919.fbf798"]]},{"id":"37e396a3.2783fa","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1601.487964630127,"y":1169.583387374878,"z":"acdffee6.4646","wires":[["e16fa584.ce8668","c9267106.d99d1","b7b866f.22cfd98","9f400084.68537","a4663c40.d0b5d"]]},{"id":"22fcdcd6.409e54","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'Unable to find runtime service instances for invariant UUID ' + $serv-cust[$serv-index].inv-id`\" />\n","comments":"","x":1639.1667098999023,"y":764.5833187103271,"z":"acdffee6.4646","wires":[]},{"id":"e9829c01.c3518","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'System error finding runtime service instances for customization UUID ' + $serv-cust[$serv-index].inv-id`\" />\n","comments":"","x":1637.9166870117188,"y":805.8333110809326,"z":"acdffee6.4646","wires":[]},{"id":"dc42dfdf.fdb5","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1427.5595741271973,"y":895.6547050476074,"z":"acdffee6.4646","wires":[["1a046dd0.664552"]]},{"id":"1a046dd0.664552","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1568.8095741271973,"y":896.9047050476074,"z":"acdffee6.4646","wires":[["ba80debf.cd0aa","5a25eaf8.84c624","2fed2a61.3ba6d6"]]},{"id":"c9267106.d99d1","type":"execute","name":"generate port-mirror-configuration url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.service`\"/>\n <parameter name=\"outputPath\" value=\"tmp.service-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$serv-inst.service-instance-id`\"/>\n","comments":"","outputs":1,"x":1911.4878692626953,"y":1190.8334407806396,"z":"acdffee6.4646","wires":[[]]},{"id":"b7b866f.22cfd98","type":"execute","name":"execute RestApiCallNode - get service","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.service-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-service\" />\n\n","comments":"","outputs":1,"x":1918.8212051391602,"y":1473.9286651611328,"z":"acdffee6.4646","wires":[["44737e00.fd61a","e1d027ae.6e1bf8"]]},{"id":"44737e00.fd61a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2181.367099761963,"y":1296.1292266845703,"z":"acdffee6.4646","wires":[["73b87896.db1488"]]},{"id":"e1d027ae.6e1bf8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2182.809181213379,"y":1772.3094692230225,"z":"acdffee6.4646","wires":[["e72fa4b8.6bb8f8"]]},{"id":"8d022a9b.038888","type":"comment","name":"Is this service in GENERIC-RESOURCE-API?","info":"","comments":"","x":1925.2497940063477,"y":1426.4286623001099,"z":"acdffee6.4646","wires":[]},{"id":"e16fa584.ce8668","type":"set","name":"clear mdsal-service and serv-inst.api","xml":"<set>\n<parameter name='mdsal-service.' value='' />\n<parameter name='serv-inst.api' value='' />\n","comments":"","x":1907.0712242126465,"y":1139.9405155181885,"z":"acdffee6.4646","wires":[]},{"id":"8786ac57.03e15","type":"set","name":"set serv-inst.service-instance-id","xml":"<set>\n<parameter name='serv-inst.service-instance-id' value='`$aai.service-instances.results[$runtime-index].service-instance.service-instance-id`' />\n","comments":"","x":2592.880962371826,"y":814.6428813934326,"z":"acdffee6.4646","wires":[]},{"id":"73b87896.db1488","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":2335.2379302978516,"y":1295.0833110809326,"z":"acdffee6.4646","wires":[["bae35c98.23485"]]},{"id":"bae35c98.23485","type":"switchNode","name":"switch vnf_length","xml":"<switch test='`$mdsal-service.service[0].service-data.vnfs.vnf_length`'>\n","comments":"","outputs":1,"x":2520.237953186035,"y":1293.8333282470703,"z":"acdffee6.4646","wires":[["5de50820.6365a8","6a33778b.f0d2b8","8b08a0fc.3d573","156859cc.f57d36"]]},{"id":"5de50820.6365a8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":2698.988010406494,"y":1145.8333530426025,"z":"acdffee6.4646","wires":[["5d43b7a0.cc8368"]]},{"id":"6a33778b.f0d2b8","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":2700.238010406494,"y":1184.5833530426025,"z":"acdffee6.4646","wires":[["5d43b7a0.cc8368"]]},{"id":"8b08a0fc.3d573","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2700.737949371338,"y":1520.8333282470703,"z":"acdffee6.4646","wires":[["7f9faf98.11444"]]},{"id":"7f9faf98.11444","type":"switchNode","name":"switch forwarding-path_length","xml":"<switch test='`$mdsal-service.service[0].service-data.forwarding-paths.forwarding-path_length`'>\n","comments":"","outputs":1,"x":2916.987953186035,"y":1522.0833282470703,"z":"acdffee6.4646","wires":[["b12a45c2.9c00f8","df779983.f9ee18","efeee58f.366df8"]]},{"id":"156859cc.f57d36","type":"outcome","name":"1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":2703.988010406494,"y":1324.8333549499512,"z":"acdffee6.4646","wires":[["d321c3e5.b08ea"]]},{"id":"b12a45c2.9c00f8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":3128.9879837036133,"y":1458.3333358764648,"z":"acdffee6.4646","wires":[["6574fc05.7aa8d4"]]},{"id":"df779983.f9ee18","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":3130.2379837036133,"y":1497.0833358764648,"z":"acdffee6.4646","wires":[["6574fc05.7aa8d4"]]},{"id":"efeee58f.366df8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":3127.3809661865234,"y":1591.7262210845947,"z":"acdffee6.4646","wires":[["cbc2b125.4a032"]]},{"id":"5d43b7a0.cc8368","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='data-error' value=\"`'Service instance ' + $si.service-instance-id + ' has no VNFs, skipping'`\" />\n","comments":"","x":2897.7379837036133,"y":1163.3333358764648,"z":"acdffee6.4646","wires":[]},{"id":"6574fc05.7aa8d4","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='data-error' value=\"`'Service instance ' + $serv-inst.service-instance-id + ' has multiple VNFs but no forwarding paths were found'`\" />\n","comments":"","x":3317.7379837036133,"y":1475.8333358764648,"z":"acdffee6.4646","wires":[]},{"id":"389f4f59.b5385","type":"call","name":"call GENERIC-RESOURCE-API:getpathsegment-populate-from-grapi","xml":"<call module='GENERIC-RESOURCE-API' rpc='getpathsegment-populate-from-grapi' mode='sync' >\n","comments":"","outputs":1,"x":3186.737953186035,"y":1274.0833282470703,"z":"acdffee6.4646","wires":[[]]},{"id":"ed8af0c2.a5e1e","type":"call","name":"call GENERIC-RESOURCE-API:getpathsegment-populate-from-vnfapi","xml":"<call module='GENERIC-RESOURCE-API' rpc='getpathsegment-populate-from-vnfapi' mode='sync' >\n","comments":"","outputs":1,"x":2647.80948638916,"y":1723.0832061767578,"z":"acdffee6.4646","wires":[[]]},{"id":"a8c16a6d.0d2f18","type":"success","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2661.2022552490234,"y":1910.5475997924805,"z":"acdffee6.4646","wires":[["ac5e9274.a71eb"]]},{"id":"23ce8b1d.277d04","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2658.7022666931152,"y":1776.6310663223267,"z":"acdffee6.4646","wires":[["1300cf7.befc831"]]},{"id":"1300cf7.befc831","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='data-error' value=\"`'Failure finding service instance ' + $si.service-instance-id + ' in either GENERIC-REOURCE-API or VNF-API'`\" />\n","comments":"","x":2872.452236175537,"y":1775.1310510635376,"z":"acdffee6.4646","wires":[]},{"id":"ac5e9274.a71eb","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2812.4525032043457,"y":1909.2975997924805,"z":"acdffee6.4646","wires":[["bab97280.4fcff"]]},{"id":"3f21a433.f89dbc","type":"set","name":"copy serv-inst to serv-insts array","xml":"<set>\n<parameter name='serv-cust[$serv-index].serv-insts[$tmp.serv-insts_length].' value='`$serv-inst.`' />\n","comments":"","x":3074.237953186035,"y":1327.8333282470703,"z":"acdffee6.4646","wires":[]},{"id":"f723823c.14d35","type":"set","name":"increment serv-insts_length","xml":"<set>\n<parameter name='tmp.serv-insts_length' value='`$tmp.serv-insts_length + 1`' />\n","comments":"","x":3055.487922668457,"y":1382.833309173584,"z":"acdffee6.4646","wires":[]},{"id":"d321c3e5.b08ea","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":2853.9879837036133,"y":1324.5833358764648,"z":"acdffee6.4646","wires":[["389f4f59.b5385","3f21a433.f89dbc","f723823c.14d35"]]},{"id":"5a25eaf8.84c624","type":"set","name":"set tmp.serv-insts_length to 0","xml":"<set>\n<parameter name='tmp.serv-insts_length' value='0' />\n","comments":"","x":1781.1309967041016,"y":848.1547393798828,"z":"acdffee6.4646","wires":[]},{"id":"e72fa4b8.6bb8f8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2309.297294616699,"y":1780.047555923462,"z":"acdffee6.4646","wires":[["ed8af0c2.a5e1e","78b047cf.ed86c8"]]},{"id":"78b047cf.ed86c8","type":"switchNode","name":"switch serv-inst.api","xml":"<switch test='`$serv-inst.api`'>\n","comments":"","outputs":1,"x":2492.393165588379,"y":1845.1666173934937,"z":"acdffee6.4646","wires":[["23ce8b1d.277d04","a8c16a6d.0d2f18"]]},{"id":"2de86e6.3962e92","type":"set","name":"copy serv-inst to serv-insts array","xml":"<set>\n<parameter name='serv-cust[$serv-index].serv-insts[$tmp.serv-insts_length].' value='`$serv-inst.`' />\n","comments":"","x":3539.0593872070312,"y":2006.5000267028809,"z":"acdffee6.4646","wires":[]},{"id":"f4f23919.fbf798","type":"switchNode","name":"switch orchestration-status","xml":"<switch test='`$aai.service-instances.results[$runtime-index].service-instance.orchestration-status`'>\n","comments":"","outputs":1,"x":2059.7024688720703,"y":897.0832557678223,"z":"acdffee6.4646","wires":[["83f502d6.2f5a4"]]},{"id":"83f502d6.2f5a4","type":"outcome","name":"Active","xml":"<outcome value='Active'>\n","comments":"","outputs":1,"x":2254.1665954589844,"y":895.8332214355469,"z":"acdffee6.4646","wires":[["442aff0f.a1283"]]},{"id":"1398c294.3f952d","type":"for","name":"for each service","xml":"<for index='serv-index' start='0' end='`$serv-cust_length`' >\n","comments":"","outputs":1,"x":539.583366394043,"y":668.7500200271606,"z":"acdffee6.4646","wires":[["ecfee624.daec78"]]},{"id":"f6adfe96.32d5f","type":"comment","name":"convert customization uuid to invariant uuid","info":"","comments":"","x":668.3334045410156,"y":626.250018119812,"z":"acdffee6.4646","wires":[]},{"id":"15831d68.36e8b3","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1121.2024307250977,"y":625.3093452453613,"z":"acdffee6.4646","wires":[["be78a9fd.371368"]]},{"id":"745ebab0.1a84e4","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1127.2738418579102,"y":666.0950517654419,"z":"acdffee6.4646","wires":[["dfab331.23ebcd"]]},{"id":"ecfee624.daec78","type":"get-resource","name":"get-resource SERVICE_PROXY, SERVICE_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='select sm.invariant_uuid\n from SERVICE_PROXY sp, SERVICE_MODEL sm\n where sp.source_service_uuid = sm.service_uuid\n and sp.customization_uuid = $serv-cust[$serv-index].id'\n pfx='db'>\n","comments":"","outputs":1,"x":844.5238189697266,"y":668.5714359283447,"z":"acdffee6.4646","wires":[["15831d68.36e8b3","745ebab0.1a84e4","577c9bbc.66ccc4"]]},{"id":"577c9bbc.66ccc4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1122.083351135254,"y":707.5000200271606,"z":"acdffee6.4646","wires":[["1848871c.fbafd9"]]},{"id":"1848871c.fbafd9","type":"set","name":"store invariant id","xml":"<set>\n<parameter name='serv-cust[$serv-index].inv-id' value='`$db.invariant-uuid`' />\n","comments":"","x":1287.0833587646484,"y":707.5000200271606,"z":"acdffee6.4646","wires":[]},{"id":"be78a9fd.371368","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'Failure reading SERVICE_PROXY and SERVICE_MODEL for customization uuid ' + $serv-cust[$serv-index].id`\" />\n","comments":"","x":1315.8333549499512,"y":625.0000190734863,"z":"acdffee6.4646","wires":[]},{"id":"dfab331.23ebcd","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'Cannot find entries in SERVICE_PROXY and SERVICE_MODEL for customization uuid ' + $serv-cust[$serv-index].id`\" />\n","comments":"","x":1315.8333358764648,"y":665.0000104904175,"z":"acdffee6.4646","wires":[]},{"id":"ea262156.5bc25","type":"switchNode","name":"switch invariant uuid","xml":"<switch test='`$serv-cust[$serv-index].inv-id`'>\n","comments":"","outputs":1,"x":741.6666793823242,"y":794.5833110809326,"z":"acdffee6.4646","wires":[["6e5ea8a8.3f7578","38fd826b.e7840e"]]},{"id":"6e5ea8a8.3f7578","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":907.9166831970215,"y":765.8333110809326,"z":"acdffee6.4646","wires":[["458e60e8.0fa83"]]},{"id":"38fd826b.e7840e","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":908.7381553649902,"y":816.1192016601562,"z":"acdffee6.4646","wires":[["eba93f08.848f6"]]},{"id":"458e60e8.0fa83","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1044.1666831970215,"y":765.0833101272583,"z":"acdffee6.4646","wires":[[]]},{"id":"3b868648.17a23a","type":"call","name":"call GENERIC-RESOURCE-API:getpathsegment-composite-match-pair","xml":"<call module='GENERIC-RESOURCE-API' rpc='getpathsegment-composite-match-pair' mode='sync' >\n","comments":"","outputs":1,"x":687.9287109375,"y":2361.2736377716064,"z":"acdffee6.4646","wires":[[]]},{"id":"cbc2b125.4a032","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":3256.1309661865234,"y":1591.7262210845947,"z":"acdffee6.4646","wires":[["e63540a5.81689","c13e34b7.f42fb8","a14b9b6d.2bbee8","7ace4a44.fb42f4"]]},{"id":"e63540a5.81689","type":"set","name":"copy forwarding-paths to serv-insts array","xml":"<set>\n<parameter name='serv-cust[$serv-index].serv-insts[$tmp.serv-insts_length].forwarding-paths.'\n value='`$mdsal-service.service[0].service-data.forwarding-paths.`' />\n","comments":"","x":3503.988082885742,"y":1615.2975959777832,"z":"acdffee6.4646","wires":[]},{"id":"c13e34b7.f42fb8","type":"set","name":"increment serv-insts_length","xml":"<set>\n<parameter name='tmp.serv-insts_length' value='`$tmp.serv-insts_length + 1`' />\n","comments":"","x":3462.5592651367188,"y":1662.0834131240845,"z":"acdffee6.4646","wires":[]},{"id":"a14b9b6d.2bbee8","type":"call","name":"call GENERIC-RESOURCE-API:getpathsegment-populate-from-grapi","xml":"<call module='GENERIC-RESOURCE-API' rpc='getpathsegment-populate-from-grapi' mode='sync' >\n","comments":"","outputs":1,"x":3588.2736282348633,"y":1527.0833358764648,"z":"acdffee6.4646","wires":[[]]},{"id":"7ace4a44.fb42f4","type":"set","name":"copy serv-inst to serv-insts array","xml":"<set>\n<parameter name='serv-cust[$serv-index].serv-insts[$tmp.serv-insts_length].' value='`$serv-inst.`' />\n","comments":"","x":3475.4166946411133,"y":1568.5119247436523,"z":"acdffee6.4646","wires":[]},{"id":"9f400084.68537","type":"set","name":"clear serv-inst","xml":"<set>\n<parameter name='serv-inst.' value='' />\n","comments":"","x":1837.9879150390625,"y":1518.511981010437,"z":"acdffee6.4646","wires":[]},{"id":"2fed2a61.3ba6d6","type":"set","name":"set final serv-insts_length","xml":"<set>\n<parameter name='serv-cust[$serv-index].serv-insts_length' value='`$tmp.serv-insts_length`' />\n","comments":"","x":1765.4167137145996,"y":942.7975521087646,"z":"acdffee6.4646","wires":[]},{"id":"e2bb1296.6a77f","type":"comment","name":"Create forwarding-path structure","info":"","comments":"","x":1804.2026138305664,"y":2759.249895095825,"z":"acdffee6.4646","wires":[]},{"id":"9c1deb3.fce3a18","type":"switchNode","name":"switch service-paths.service-path_length","xml":"<switch test='`$service-paths.service-path_length`'>\n","comments":"","outputs":1,"x":588.7024993896484,"y":2585.0833568573,"z":"acdffee6.4646","wires":[["c17848c4.7aa328","891625b0.f7b498","2b7b5767.caf788"]]},{"id":"c17848c4.7aa328","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":868.7024803161621,"y":2441.7497968673706,"z":"acdffee6.4646","wires":[["9234ee5.d733b1"]]},{"id":"891625b0.f7b498","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":869.9524803161621,"y":2480.4997968673706,"z":"acdffee6.4646","wires":[["9234ee5.d733b1"]]},{"id":"2b7b5767.caf788","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":865.9524955749512,"y":2712.0001287460327,"z":"acdffee6.4646","wires":[["db0b5e4d.138fb"]]},{"id":"9234ee5.d733b1","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1002.0358390808105,"y":2455.0831298828125,"z":"acdffee6.4646","wires":[[]]},{"id":"9957ee7a.eb839","type":"set","name":"set top-level data","xml":"<set>\n<parameter name='forwarding-path.forwarding-path-name' value='`$db.path-segment[0].path-name`' />\n<parameter name='forwarding-path.forwarding-path-type' value='Service' />\n<parameter name='forwarding-path.onap-model-information.model-name' value='`$db.path-segment[0].path-name`' />\n","comments":"","x":1715.0359230041504,"y":2846.749963760376,"z":"acdffee6.4646","wires":[]},{"id":"2464da2e.bc2576","type":"execute","name":"generate forwarding-path-id","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n<parameter name=\"ctx-destination\" value=\"forwarding-path.forwarding-path-id\" />\n","comments":"","outputs":1,"x":1747.1192169189453,"y":2800.916626930237,"z":"acdffee6.4646","wires":[[]]},{"id":"5d113599.9797dc","type":"set","name":"copy service-path","xml":"<set>\n<parameter name='forwarding-path.service-paths.' value='`$service-paths.`' />\n","comments":"","x":1713.3692474365234,"y":2891.7502098083496,"z":"acdffee6.4646","wires":[]},{"id":"654073a0.8dc7dc","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1525.0359649658203,"y":3155.0832328796387,"z":"acdffee6.4646","wires":[["2464da2e.bc2576","9957ee7a.eb839","5d113599.9797dc","7ecab0fa.15895","76d060fc.5c71a","94003a26.69b068","532dd116.0d3c4"]]},{"id":"a4663c40.d0b5d","type":"switchNode","name":"switch runtime-index","xml":"<switch test='`$runtime-index`'>\n","comments":"","outputs":1,"x":1859.7022666931152,"y":1011.8452968597412,"z":"acdffee6.4646","wires":[["4db5c1dc.9f95c"]]},{"id":"4db5c1dc.9f95c","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":2029.7022972106934,"y":1011.8453140258789,"z":"acdffee6.4646","wires":[["dcb4004e.9356a"]]},{"id":"dcb4004e.9356a","type":"set","name":"save service.service-role","xml":"<set>\n<parameter name='service.service-role' value='`$aai.service-instances.results[0].service-instance.service-role`' />\n","comments":"","x":2208.2736206054688,"y":1011.8452968597412,"z":"acdffee6.4646","wires":[]},{"id":"442aff0f.a1283","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2380.416763305664,"y":895.4166278839111,"z":"acdffee6.4646","wires":[["37e396a3.2783fa","efbbd2cc.0e547","8786ac57.03e15"]]},{"id":"efbbd2cc.0e547","type":"switchNode","name":"switch output-global-customer-id","xml":"<switch test='`$output-global-customer-id`'>\n","comments":"","outputs":1,"x":2595.4166717529297,"y":860.4166126251221,"z":"acdffee6.4646","wires":[["9b84fbe4.e396d8"]]},{"id":"9b84fbe4.e396d8","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2802.0833892822266,"y":858.7499856948853,"z":"acdffee6.4646","wires":[["6b285851.2f4b58"]]},{"id":"30bb031c.093bcc","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":3375.416572570801,"y":855.4166278839111,"z":"acdffee6.4646","wires":[["b34e010d.49543","966e7225.52122"]]},{"id":"6b285851.2f4b58","type":"save","name":"custom query: get service instance","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource_and_url'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.si\">\n\t<parameter name=\"start[0]\" value=\"`'nodes/service-instance/' + $serv-inst.service-instance-id `\" />\n\t<parameter name=\"start_length\" value=\"1\" />\n","comments":"","outputs":1,"x":3020.416534423828,"y":857.083399772644,"z":"acdffee6.4646","wires":[["5e0c0bf4.dca7b4"]]},{"id":"b34e010d.49543","type":"execute","name":"execute split","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n\t<parameter name=\"original_string\" value=\"`$tmp.AnAI-data.si.results[0].url`\" />\n\t<parameter name=\"regex\" value=\"/\"/>\n\t<parameter name=\"limit\" value=\"11\" />\n\t<parameter name=\"ctx_memory_result_key\" value=\"split\" />\n","comments":"","outputs":1,"x":3528.749973297119,"y":835.4167575836182,"z":"acdffee6.4646","wires":[[]]},{"id":"5e0c0bf4.dca7b4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3242.0832595825195,"y":856.7500123977661,"z":"acdffee6.4646","wires":[["30bb031c.093bcc"]]},{"id":"966e7225.52122","type":"set","name":"set output-global-customer-id, etc","xml":"<set>\n<parameter name='output-global-customer-id' value='`$split[6]`' />\n<parameter name='output-service-type' value='`$split[9]`' />\n<parameter name='output-service-role' value='`$tmp.AnAI-data.si.results[0].service-instance.service-role`' />\n","comments":"","x":3595.416763305664,"y":880.4166374206543,"z":"acdffee6.4646","wires":[]},{"id":"7d31078f.efb3d8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2128.60733795166,"y":3068.8931226730347,"z":"acdffee6.4646","wires":[["87ecc4ba.953798","e1f74301.3a592","ea9cb947.2f8788","7177f03.da2611","960587e2.909438"]]},{"id":"87ecc4ba.953798","type":"execute","name":"generate service-instance-id","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n<parameter name=\"ctx-destination\" value=\"tmp.service-instance-id\" />\n","comments":"","outputs":1,"x":2335.274076461792,"y":2968.1788692474365,"z":"acdffee6.4646","wires":[[]]},{"id":"14ba220e.0a427e","type":"comment","name":"Make a new service instance in GR-API","info":"","comments":"","x":2441.5239963531494,"y":2931.0953826904297,"z":"acdffee6.4646","wires":[]},{"id":"7177f03.da2611","type":"save","name":"save service-instance to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\" \n\tkey=\"customer.global-customer-id = $output-global-customer-id\n\t AND service-subscription.service-type = $output-service-type\n\t AND service-instance.service-instance-id = $tmp.service-instance-id\" >\n<parameter name=\"service-instance-id\" value=\"`$tmp.service-instance-id`\" />\n<parameter name=\"global-customer-id\" value=\"`$output-global-customer-id`\" />\n<parameter name=\"service-type\" value=\"`$output-service-type`\" />\n<parameter name=\"service-role\" value=\"`$output-service-role`\" />\n","comments":"","outputs":1,"x":2339.202896118164,"y":3150.0238361358643,"z":"acdffee6.4646","wires":[["2ad23b25.4eac74","8b691431.cc9278"]]},{"id":"83430cdc.a419d","type":"comment","name":"Make a new service instance in A&AI","info":"","comments":"","x":2429.917154312134,"y":3092.16690826416,"z":"acdffee6.4646","wires":[]},{"id":"ea9cb947.2f8788","type":"execute","name":"execute RestApiCallNode - PUT service-instance","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.csm.serviceinstance.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.service-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-sr\" />\n\n","comments":"","outputs":1,"x":2400.2742023468018,"y":3054.845375061035,"z":"acdffee6.4646","wires":[["97c9808b.9352c"]]},{"id":"e1f74301.3a592","type":"execute","name":"generate service-instance url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.service`\"/>\n <parameter name=\"outputPath\" value=\"tmp.service-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.service-instance-id`\"/>\n","comments":"","outputs":1,"x":2336.5242023468018,"y":3012.345374107361,"z":"acdffee6.4646","wires":[[]]},{"id":"7ecab0fa.15895","type":"switchNode","name":"switch output-service-instance-id","xml":"<switch test='`$output-service-instance-id`'>\n","comments":"","outputs":1,"x":1767.4168243408203,"y":3076.5121965408325,"z":"acdffee6.4646","wires":[["6bc7823b.9fccbc","f3d20003.45381"]]},{"id":"7ff0a241.207e8c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":738.7499389648438,"y":328.75,"z":"acdffee6.4646","wires":[["ae348eba.10a95"]]},{"id":"8b411eeb.03fd7","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":747.3213691711426,"y":372.0357131958008,"z":"acdffee6.4646","wires":[["6abf5986.be9818"]]},{"id":"ae348eba.10a95","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":892.0120735168457,"y":327.0715398788452,"z":"acdffee6.4646","wires":[["4a5f6f0b.dcc33"]]},{"id":"6abf5986.be9818","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":892.0120964050293,"y":372.07152938842773,"z":"acdffee6.4646","wires":[["8def3ed6.72da5"]]},{"id":"4a5f6f0b.dcc33","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'System error reading PATH_SEGMENT table for uuid '\n + $getpathsegment-topology-operation-input.service-information.onap-model-information.model-uuid\n + ' and path '\n + $db.forwarding-path[$path-index].path-name`\" />\n","comments":"","x":1092.0122184753418,"y":325.4048738479614,"z":"acdffee6.4646","wires":[]},{"id":"8def3ed6.72da5","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'No entries in PATH_SEGMENT table for uuid '\n + $getpathsegment-topology-operation-input.service-information.onap-model-information.model-uuid\n + ' and path '\n + $db.forwarding-path[$path-index].path-name`\" />\n","comments":"","x":1092.012035369873,"y":372.07152938842773,"z":"acdffee6.4646","wires":[]},{"id":"e62cb2cc.8b1b1","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":743.6787948608398,"y":415.4048881530762,"z":"acdffee6.4646","wires":[["766a7c4c.6db704"]]},{"id":"766a7c4c.6db704","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":113.6309585571289,"y":1673.2737884521484,"z":"acdffee6.4646","wires":[["227d76b8.b8f89a","c64c7acf.8db458","1398c294.3f952d","3337a2c8.4f2c0e","3b868648.17a23a","9c1deb3.fce3a18","31223e46.c39562"]]},{"id":"6bc7823b.9fccbc","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1988.607292175293,"y":3055.5597352981567,"z":"acdffee6.4646","wires":[["7d31078f.efb3d8"]]},{"id":"f3d20003.45381","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1988.4287033081055,"y":3097.1668796539307,"z":"acdffee6.4646","wires":[["7d31078f.efb3d8"]]},{"id":"960587e2.909438","type":"set","name":"set output-service-instance-id","xml":"<set>\n<parameter name='output-service-instance-id' value='`$tmp.service-instance-id`' />\n","comments":"","x":2334.797737121582,"y":3214.6070919036865,"z":"acdffee6.4646","wires":[]},{"id":"94003a26.69b068","type":"execute","name":"execute RestApiCallNode - PUT forwarding-path","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.forwardingpath.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.fp-url + $forwarding-path.forwarding-path-id`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-fp\" />\n\n","comments":"","outputs":1,"x":1810.0359344482422,"y":3339.3693075180054,"z":"acdffee6.4646","wires":[["e3e2ddf6.f153f","b2430abe.dc8828"]]},{"id":"e3e2ddf6.f153f","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2080.5224685668945,"y":3363.6175785064697,"z":"acdffee6.4646","wires":[["aac11982.8688f8"]]},{"id":"b2430abe.dc8828","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2072.951103210449,"y":3322.1175985336304,"z":"acdffee6.4646","wires":[["aac11982.8688f8"]]},{"id":"aac11982.8688f8","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarding-path to MD-SAL\" />\n","comments":"","x":2292.5359420776367,"y":3336.8693075180054,"z":"acdffee6.4646","wires":[]},{"id":"76d060fc.5c71a","type":"execute","name":"generate forwarding-path url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.forwarding-path`\"/>\n <parameter name=\"outputPath\" value=\"tmp.fp-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$output-service-instance-id`\"/>\n","comments":"","outputs":1,"x":1747.952766418457,"y":3282.285427093506,"z":"acdffee6.4646","wires":[[]]},{"id":"ec6851e3.24d41","type":"save","name":"save forwarding-path to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"forwarding-path\" \n\tkey=\"forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[$sp-index].service-path-instance-id\" >\n<parameter name=\"forwarding-path-id\" value=\"`$forwarding-path.service-paths.service-path[$sp-index].service-path-instance-id`\" />\n<parameter name=\"forwarding-path-name\" value=\"`$forwarding-path.service-paths.service-path[$sp-index].service-path-instance-name`\" />\n<parameter name=\"selflink\" value=\"`'/restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $output-service-instance-id\n + '/forwarding-paths/forwarding-path/'\n + $forwarding-path.forwarding-path-id\n + '/services-paths/service-path/'\n + $forwarding-path.service-paths.service-path[$sp-index].service-path-instance-id`\" />\n","comments":"","outputs":1,"x":2564.072067260742,"y":3421.226315498352,"z":"acdffee6.4646","wires":[["782723e.d6f5edc","173a4200.c682ae"]]},{"id":"f9f23fe5.c832e","type":"save","name":"save forwarding-path relationship to service-instance","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"forwarding-path:relationship-list\"\n key=\"forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[$sp-index].service-path-instance-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"service-instance\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/business/customers/customer/'\n + $output-global-customer-id\n + '/service-subscriptions/service-subscription/'\n + $output-service-type\n + '/service-instances/service-instance/'\n + $output-service-instance-id`\" />\n","comments":"","outputs":1,"x":2635.73876953125,"y":3501.46435546875,"z":"acdffee6.4646","wires":[["c1b3e443.b892d8","a4072ca.00fd3d"]]},{"id":"2f92c949.4d6476","type":"for","name":"for each vnf","xml":"<for index='vnf-index' start='0' end='`$forwarding-path.service-paths.service-path[$sp-index].service[$service-index].vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":2725.500457763672,"y":3630.274257659912,"z":"acdffee6.4646","wires":[["d2f257bf.d8fd58"]]},{"id":"d2f257bf.d8fd58","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2870.2624740600586,"y":3629.8454303741455,"z":"acdffee6.4646","wires":[["81a978c4.55a318","1825f2cc.d9255d"]]},{"id":"81a978c4.55a318","type":"save","name":"save forwarder to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"forwarder\" \n\tkey=\"forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[$sp-index].service-path-instance-id\n\t AND forwarder.sequence = $forwarding-path.service-paths.service-path[$sp-index].service[$service-index].vnfs.vnf[$vnf-index].vnf-path-sequence-id\" >\n<parameter name=\"sequence\" value=\"`$forwarding-path.service-paths.service-path[$sp-index].service[$service-index].vnfs.vnf[$vnf-index].vnf-path-sequence-id`\" />\n","comments":"","outputs":1,"x":3051.262517929077,"y":3585.750457763672,"z":"acdffee6.4646","wires":[["a8b88931.1b04b8","18196271.6ec47e"]]},{"id":"1825f2cc.d9255d","type":"save","name":"save forwarder relationship to generic-vnf","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"forwarder:relationship-list\"\n key=\"forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[$sp-index].service-path-instance-id\n AND forwarder.sequence = $forwarding-path.service-paths.service-path[$sp-index].service[$service-index].vnfs.vnf[$vnf-index].vnf-path-sequence-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/generic-vnfs/generic-vnf/'\n + $forwarding-path.service-paths.service-path[$sp-index].service[$service-index].vnfs.vnf[$vnf-index].vnf-instance-id`\" />\n","comments":"","outputs":1,"x":3105.262519836426,"y":3675.036106109619,"z":"acdffee6.4646","wires":[["9e2d3b55.8e6d18","be4a1ccd.60699"]]},{"id":"31223e46.c39562","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/gpsx.log' />\n","comments":"","outputs":1,"x":507.0833282470703,"y":2412.0832509994507,"z":"acdffee6.4646","wires":[[]]},{"id":"173a4200.c682ae","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2772.750198364258,"y":3441.0832204818726,"z":"acdffee6.4646","wires":[["7abb5ae4.45ef84"]]},{"id":"782723e.d6f5edc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2765.1788330078125,"y":3399.583240509033,"z":"acdffee6.4646","wires":[["7abb5ae4.45ef84"]]},{"id":"7abb5ae4.45ef84","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarding-path to AAI\" />\n","comments":"","x":2969.7636108398438,"y":3414.3350400924683,"z":"acdffee6.4646","wires":[]},{"id":"a4072ca.00fd3d","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2917.7501792907715,"y":3524.4164247512817,"z":"acdffee6.4646","wires":[["38f6157.8f1caea"]]},{"id":"c1b3e443.b892d8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2908.5120849609375,"y":3477.916492462158,"z":"acdffee6.4646","wires":[["38f6157.8f1caea"]]},{"id":"38f6157.8f1caea","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarding-path relationship to AAI\" />\n","comments":"","x":3113.096908569336,"y":3492.6682138442993,"z":"acdffee6.4646","wires":[]},{"id":"18196271.6ec47e","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":3242.7502117156982,"y":3607.749852180481,"z":"acdffee6.4646","wires":[["ede6f0bd.9d33c"]]},{"id":"a8b88931.1b04b8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3235.178846359253,"y":3566.2498722076416,"z":"acdffee6.4646","wires":[["ede6f0bd.9d33c"]]},{"id":"ede6f0bd.9d33c","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarder to AAI\" />\n","comments":"","x":3438.0970458984375,"y":3581.001434326172,"z":"acdffee6.4646","wires":[]},{"id":"be4a1ccd.60699","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":3347.7501678466797,"y":3699.416358947754,"z":"acdffee6.4646","wires":[["6576c8ed.7d6ce8"]]},{"id":"9e2d3b55.8e6d18","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3340.1788024902344,"y":3657.9163789749146,"z":"acdffee6.4646","wires":[["6576c8ed.7d6ce8"]]},{"id":"6576c8ed.7d6ce8","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarder relationship to AAI\" />\n","comments":"","x":3541.4303436279297,"y":3672.667942047119,"z":"acdffee6.4646","wires":[]},{"id":"ee78a452.895eb8","type":"for","name":"for each service","xml":"<for index='service-index' start='0' end='`$service-paths.service-path[$sp-index].service_length`' >\n","comments":"","outputs":1,"x":2534.416831970215,"y":3631.083258628845,"z":"acdffee6.4646","wires":[["2f92c949.4d6476"]]},{"id":"8b691431.cc9278","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2550.0833892822266,"y":3170.4164781570435,"z":"acdffee6.4646","wires":[["28ee0b7.a193cf4"]]},{"id":"2ad23b25.4eac74","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2542.5120239257812,"y":3128.916498184204,"z":"acdffee6.4646","wires":[["28ee0b7.a193cf4"]]},{"id":"28ee0b7.a193cf4","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure creating service instance in AAI\" />\n","comments":"","x":2745.430223464966,"y":3143.6680603027344,"z":"acdffee6.4646","wires":[]},{"id":"97c9808b.9352c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2660.0833892822266,"y":3053.7497301101685,"z":"acdffee6.4646","wires":[["1818ef16.6dc701"]]},{"id":"1818ef16.6dc701","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure creating service instance in MD-SAL\" />\n","comments":"","x":2850.0833892822266,"y":3052.0829820632935,"z":"acdffee6.4646","wires":[]},{"id":"d843bbaa.11f848","type":"set","name":"increment serv-insts_length","xml":"<set>\n<parameter name='tmp.serv-insts_length' value='`$tmp.serv-insts_length + 1`' />\n","comments":"","x":3523.7498168945312,"y":2057.916774749756,"z":"acdffee6.4646","wires":[]},{"id":"532dd116.0d3c4","type":"for","name":"for each service-path","xml":"<for index='sp-index' start='0' end='`$service-paths.service-path_length`' >\n","comments":"","outputs":1,"x":1718.4169311523438,"y":3522.0831785202026,"z":"acdffee6.4646","wires":[["6026a1f0.02df4"]]},{"id":"bab97280.4fcff","type":"switchNode","name":"switch vnf_length","xml":"<switch test='`$serv-inst.vnf-list_length`'>\n","comments":"","outputs":1,"x":2978.809280395508,"y":2006.4284648895264,"z":"acdffee6.4646","wires":[["83930c1.6232af","415745e9.86f9ec","a96c0af7.4076f8","7fb684c8.1e8ddc"]]},{"id":"83930c1.6232af","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":3181.6666107177734,"y":1924.9999256134033,"z":"acdffee6.4646","wires":[["495a7820.28bb28"]]},{"id":"415745e9.86f9ec","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":3182.9166107177734,"y":1963.7499256134033,"z":"acdffee6.4646","wires":[["495a7820.28bb28"]]},{"id":"495a7820.28bb28","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='data-error' value=\"`'Service instance ' + $si.service-instance-id + ' has no VNFs, skipping'`\" />\n","comments":"","x":3380.4165573120117,"y":1942.4998750686646,"z":"acdffee6.4646","wires":[]},{"id":"a96c0af7.4076f8","type":"outcome","name":"1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":3181.666549682617,"y":2032.4999074935913,"z":"acdffee6.4646","wires":[["bff428c8.cc6008"]]},{"id":"bff428c8.cc6008","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":3331.6665229797363,"y":2032.249888420105,"z":"acdffee6.4646","wires":[["2de86e6.3962e92","d843bbaa.11f848"]]},{"id":"7fb684c8.1e8ddc","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":3184.166717529297,"y":2166.6664543151855,"z":"acdffee6.4646","wires":[["93bc2b5.8b736d8"]]},{"id":"93bc2b5.8b736d8","type":"get-resource","name":"get-resource SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT forwarding_path_service_instance_id from SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING WHERE simple_service_instance_id = $serv-inst.service-instance-id'\n pfx='db.mapped-service-instance-id'>\n\n","comments":"","outputs":1,"x":3556.5481567382812,"y":2165.952667236328,"z":"acdffee6.4646","wires":[["30b771e0.9efa2e","ac42250b.451688","9c7d869c.656378"]]},{"id":"30b771e0.9efa2e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3923.1668853759766,"y":2097.642951965332,"z":"acdffee6.4646","wires":[["3cc43602.d355aa"]]},{"id":"ac42250b.451688","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":3931.7383155822754,"y":2141.928665161133,"z":"acdffee6.4646","wires":[["c6af0644.d6e838"]]},{"id":"3cc43602.d355aa","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='data-error' value=\"System error reading SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING table\" />\n","comments":"","x":4140.000244140625,"y":2095.8333253860474,"z":"acdffee6.4646","wires":[]},{"id":"c6af0644.d6e838","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='data-error' value=\"`'No entry in SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING table for service instance ' + $serv-inst.service-instance-id`\" />\n","comments":"","x":4140.000076293945,"y":2142.166621208191,"z":"acdffee6.4646","wires":[]},{"id":"9c7d869c.656378","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3928.333480834961,"y":2237.500123023987,"z":"acdffee6.4646","wires":[["47635cab.dcb404"]]},{"id":"47635cab.dcb404","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":4064.9997482299805,"y":2235.8332090377808,"z":"acdffee6.4646","wires":[["3ffa27b1.735848","cbac044e.797f28"]]},{"id":"3ffa27b1.735848","type":"execute","name":"generate port-mirror-configuration url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.service`\"/>\n <parameter name=\"outputPath\" value=\"tmp.service-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$db.mapped-service-instance-id.forwarding-path-service-instance-id`\"/>\n","comments":"","outputs":1,"x":4285.00008392334,"y":2194.166865348816,"z":"acdffee6.4646","wires":[[]]},{"id":"cbac044e.797f28","type":"execute","name":"execute RestApiCallNode - get service","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.service-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-service\" />\n\n","comments":"","outputs":1,"x":4288.332931518555,"y":2280.8332109451294,"z":"acdffee6.4646","wires":[["8ee34d45.6e794","f93605ea.7e7b88"]]},{"id":"f93605ea.7e7b88","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":4516.666107177734,"y":2342.499878883362,"z":"acdffee6.4646","wires":[["a4725830.66d628"]]},{"id":"8ee34d45.6e794","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":4516.442153930664,"y":2235.3466358184814,"z":"acdffee6.4646","wires":[["dd9a7f75.ee19c"]]},{"id":"dd9a7f75.ee19c","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='data-error' value=\"`'Cannot find service instance ' + $db.mapped-service-instance-id.forwarding-path-service-instance-id + ' in MD-SAL'`\" />\n","comments":"","x":4710.000076293945,"y":2234.166537284851,"z":"acdffee6.4646","wires":[]},{"id":"a4725830.66d628","type":"switchNode","name":"switch forwarding-path_length","xml":"<switch test='`$mdsal-service.service[0].service-data.forwarding-paths.forwarding-path_length`'>\n","comments":"","outputs":1,"x":4720.000076293945,"y":2342.500033378601,"z":"acdffee6.4646","wires":[["f4cd3b16.9f1b48","e02ba6d7.e68a68","f2da480c.9764c8"]]},{"id":"f4cd3b16.9f1b48","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":4932.000106811523,"y":2278.7500410079956,"z":"acdffee6.4646","wires":[["7f12cf21.a3af1"]]},{"id":"e02ba6d7.e68a68","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":4933.250106811523,"y":2317.5000410079956,"z":"acdffee6.4646","wires":[["7f12cf21.a3af1"]]},{"id":"f2da480c.9764c8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":4930.393089294434,"y":2412.1429262161255,"z":"acdffee6.4646","wires":[["966b6bde.cc8f88"]]},{"id":"7f12cf21.a3af1","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='data-error' value=\"`'Service instance ' + $db.mapped-service-instance-id.forwarding-path-service-instance-id + ' has multiple VNFs but no forwarding paths were found'`\" />\n","comments":"","x":5120.750106811523,"y":2296.2500410079956,"z":"acdffee6.4646","wires":[]},{"id":"966b6bde.cc8f88","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":5059.143089294434,"y":2412.1429262161255,"z":"acdffee6.4646","wires":[["73c62547.358c5c","2c341601.f78f1a","18d9283c.3cd808"]]},{"id":"73c62547.358c5c","type":"set","name":"copy forwarding-paths to serv-insts array","xml":"<set>\n<parameter name='serv-cust[$serv-index].serv-insts[$tmp.serv-insts_length].forwarding-paths.'\n value='`$mdsal-service.service[0].service-data.forwarding-paths.`' />\n","comments":"","x":5296.666580200195,"y":2412.500033378601,"z":"acdffee6.4646","wires":[]},{"id":"2c341601.f78f1a","type":"set","name":"copy serv-inst to serv-insts array","xml":"<set>\n<parameter name='serv-cust[$serv-index].serv-insts[$tmp.serv-insts_length].' value='`$serv-inst.`' />\n","comments":"","x":5272,"y":2366,"z":"acdffee6.4646","wires":[]},{"id":"18d9283c.3cd808","type":"set","name":"increment serv-insts_length","xml":"<set>\n<parameter name='tmp.serv-insts_length' value='`$tmp.serv-insts_length + 1`' />\n","comments":"","x":5254.6904296875,"y":2459.416748046875,"z":"acdffee6.4646","wires":[]},{"id":"ab273d26.ee67d","type":"switchNode","name":"switch service_length == serv-cust_length","xml":"<switch test='`$service-paths.service-path[$sp-index].service_length == $serv-cust_length`'>\n","comments":"","outputs":1,"x":1463.3333282470703,"y":2587.6667375564575,"z":"acdffee6.4646","wires":[["57af92ff.0a268c"]]},{"id":"432943b9.13704c","type":"for","name":"for each service-path","xml":"<for index='sp-index' start='0' end='`$service-paths.service-path_length`' >\n","comments":"","outputs":1,"x":1183.3333282470703,"y":2588.6667375564575,"z":"acdffee6.4646","wires":[["ab273d26.ee67d"]]},{"id":"db0b5e4d.138fb","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1001.3333282470703,"y":2710.6667375564575,"z":"acdffee6.4646","wires":[["b67f5438.96b3a8","432943b9.13704c","ed2004a7.484e98"]]},{"id":"b67f5438.96b3a8","type":"set","name":"set found-service-path to false","xml":"<set>\n<parameter name='found-service-path' value='false' />\n","comments":"","x":1211.3333282470703,"y":2542.6667375564575,"z":"acdffee6.4646","wires":[]},{"id":"57af92ff.0a268c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1697.3333282470703,"y":2586.6667375564575,"z":"acdffee6.4646","wires":[["14f78ce9.5e1413"]]},{"id":"14f78ce9.5e1413","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1823.3333282470703,"y":2586.6667375564575,"z":"acdffee6.4646","wires":[["51e6f6dd.41b898","8e5d432a.80844"]]},{"id":"51e6f6dd.41b898","type":"set","name":"set found-service-path to true","xml":"<set>\n<parameter name='found-service-path' value='true' />\n","comments":"","x":2017.3333282470703,"y":2558.6667375564575,"z":"acdffee6.4646","wires":[]},{"id":"8e5d432a.80844","type":"break","name":"break","xml":"<break>\n","comments":"","x":1947.3333282470703,"y":2606.6667375564575,"z":"acdffee6.4646","wires":[]},{"id":"ed2004a7.484e98","type":"switchNode","name":"switch found-service-path","xml":"<switch test='`$found-service-path`'>\n","comments":"","outputs":1,"x":1197.3333282470703,"y":2922.6667375564575,"z":"acdffee6.4646","wires":[["902c3da4.38f8e","cc4f97d7.be3168"]]},{"id":"cc4f97d7.be3168","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1401.3333282470703,"y":3156.6667375564575,"z":"acdffee6.4646","wires":[["654073a0.8dc7dc"]]},{"id":"902c3da4.38f8e","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1383.3333282470703,"y":2702.6667375564575,"z":"acdffee6.4646","wires":[["95ceba9c.126508"]]},{"id":"95ceba9c.126508","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'No service paths found for path name '\n + $db.path-segment[0].path-name`\" />\n","comments":"","x":1573.3333282470703,"y":2702.6667375564575,"z":"acdffee6.4646","wires":[]},{"id":"6026a1f0.02df4","type":"switchNode","name":"switch service_length == serv-cust_length","xml":"<switch test='`$service-paths.service-path[$sp-index].service_length == $serv-cust_length`'>\n","comments":"","outputs":1,"x":2000,"y":3522,"z":"acdffee6.4646","wires":[["ce386471.0c3478"]]},{"id":"ce386471.0c3478","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2234,"y":3521,"z":"acdffee6.4646","wires":[["c64714d6.1fcac8"]]},{"id":"c64714d6.1fcac8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2360,"y":3521,"z":"acdffee6.4646","wires":[["ec6851e3.24d41","f9f23fe5.c832e","ee78a452.895eb8"]]}]
\ No newline at end of file +[{"id":"38b3fdb6.1bce32","type":"dgstart","name":"DGSTART","outputs":1,"x":101.66666412353516,"y":83.33332824707031,"z":"acdffee6.4646","wires":[["99e272a4.4e9a8"]]},{"id":"99e272a4.4e9a8","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":216.95236206054688,"y":123.5714340209961,"z":"acdffee6.4646","wires":[["1e63d80b.85a448"]]},{"id":"1e63d80b.85a448","type":"method","name":"method getpathsegment-create-composite-path","xml":"<method rpc='getpathsegment-create-composite-path' mode='sync'>\n","comments":"","outputs":1,"x":221.0952911376953,"y":164.3333225250244,"z":"acdffee6.4646","wires":[["df2ed6c2.cce068"]]},{"id":"1c6cd94a.dfdc47","type":"comment","name":"getpathsegment-create-composite-path","info":"","comments":"","x":496.0115203857422,"y":30.9196720123291,"z":"acdffee6.4646","wires":[]},{"id":"df2ed6c2.cce068","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":304.5000534057617,"y":303.46728324890137,"z":"acdffee6.4646","wires":[["fc83ec6a.1d401","d895c970.3dbc78"]]},{"id":"fc83ec6a.1d401","type":"get-resource","name":"get-resource PATH_SEGMENT","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from PATH_SEGMENT WHERE service_uuid = $getpathsegment-topology-operation-input.service-information.onap-model-information.model-uuid\n AND path_name = $db.forwarding-path[$path-index].path-name ORDER BY path_segment_seq'\n pfx='db.path-segment[]'>\n\n","comments":"","outputs":1,"x":527.6190452575684,"y":373.0952377319336,"z":"acdffee6.4646","wires":[["7ff0a241.207e8c","8b411eeb.03fd7","e62cb2cc.8b1b1"]]},{"id":"c64c7acf.8db458","type":"for","name":"for each path segment","xml":"<for index='path-segment-index' start='0' end='`$db.path-segment_length`' >\n","comments":"","outputs":1,"x":560.7738571166992,"y":557.4404888153076,"z":"acdffee6.4646","wires":[["c804b632.fcc3c8"]]},{"id":"c804b632.fcc3c8","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":758.9286117553711,"y":557.261869430542,"z":"acdffee6.4646","wires":[["4637dda4.0531c4","c55591ca.552ba"]]},{"id":"227d76b8.b8f89a","type":"set","name":"set serv-cust_length to 0","xml":"<set>\n<parameter name='serv-cust_length' value='0' />\n","comments":"","x":569.1667022705078,"y":509.58334255218506,"z":"acdffee6.4646","wires":[]},{"id":"4637dda4.0531c4","type":"set","name":"add source ids to serv-cust[]","xml":"<set>\n<parameter name='serv-cust[$serv-cust_length].id' value='`$db.path-segment[$path-segment-index].source-association-uuid`' />\n<parameter name='serv-cust_length' value='`$serv-cust_length + 1`' />\n","comments":"","x":984.1667098999023,"y":535.8333425521851,"z":"acdffee6.4646","wires":[]},{"id":"c55591ca.552ba","type":"switchNode","name":"is this the last path-segment?","xml":"<switch test='`$path-segment-index == ( $db.path-segment_length - 1) `'>\n","comments":"","outputs":1,"x":987.9167175292969,"y":580.8333435058594,"z":"acdffee6.4646","wires":[["f40592ef.6d056"]]},{"id":"f40592ef.6d056","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1184.1667194366455,"y":580.5833435058594,"z":"acdffee6.4646","wires":[["65efc56f.f80dcc"]]},{"id":"65efc56f.f80dcc","type":"set","name":"add target ids to serv-cust[]","xml":"<set>\n<parameter name='serv-cust[$serv-cust_length].id' value='`$db.path-segment[$path-segment-index].target-association-uuid`' />\n<parameter name='serv-cust_length' value='`$serv-cust_length + 1`' />\n","comments":"","x":1373.1667137145996,"y":579.8333435058594,"z":"acdffee6.4646","wires":[]},{"id":"d6d2ff5a.a38e6","type":"comment","name":"create list of service customization/invariant ids","info":"","comments":"","x":750.0000495910645,"y":460.41664600372314,"z":"acdffee6.4646","wires":[]},{"id":"eba93f08.848f6","type":"get-resource","name":"custom query - get runtime service-instances","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"custom-query\"\n\tkey=\"format = 'resource'\"\n\tforce=\"true\"\n\tlocal-only=\"false\"\n\tpfx=\"aai.service-instances\" >\n\t<parameter name=\"start[0]\" value=\"`'nodes/service-instances?model-invariant-id=' + $serv-cust[$serv-index].inv-id`\" />\n\t<parameter name=\"start_length\" value=\"1\" />\n","comments":"","outputs":1,"x":1164.1666870117188,"y":815.5833110809326,"z":"acdffee6.4646","wires":[["4c07202b.a6ebd","465c9f69.063cf","dc42dfdf.fdb5"]]},{"id":"465c9f69.063cf","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1425.9129028320312,"y":806.4841794967651,"z":"acdffee6.4646","wires":[["e9829c01.c3518"]]},{"id":"4c07202b.a6ebd","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1434.8414993286133,"y":764.7699127197266,"z":"acdffee6.4646","wires":[["22fcdcd6.409e54"]]},{"id":"d895c970.3dbc78","type":"set","name":"set match-type","xml":"<set>\n<parameter name='match-type' value='network-name' />\n","comments":"","x":475.00000762939453,"y":243.33336734771729,"z":"acdffee6.4646","wires":[]},{"id":"3337a2c8.4f2c0e","type":"for","name":"for each service","xml":"<for index='serv-index' start='0' end='`$serv-cust_length`' >\n","comments":"","outputs":1,"x":542.9166564941406,"y":795.8333034515381,"z":"acdffee6.4646","wires":[["ea262156.5bc25"]]},{"id":"ba80debf.cd0aa","type":"for","name":"for each runtime service-instance","xml":"<for index='runtime-index' start='0' end='`$aai.service-instances.results_length`' >\n","comments":"","outputs":1,"x":1787.3809661865234,"y":897.261890411377,"z":"acdffee6.4646","wires":[["f4f23919.fbf798"]]},{"id":"37e396a3.2783fa","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1601.487964630127,"y":1169.583387374878,"z":"acdffee6.4646","wires":[["e16fa584.ce8668","c9267106.d99d1","b7b866f.22cfd98","9f400084.68537","a4663c40.d0b5d"]]},{"id":"22fcdcd6.409e54","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'Unable to find runtime service instances for invariant UUID ' + $serv-cust[$serv-index].inv-id`\" />\n","comments":"","x":1639.1667098999023,"y":764.5833187103271,"z":"acdffee6.4646","wires":[]},{"id":"e9829c01.c3518","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'System error finding runtime service instances for customization UUID ' + $serv-cust[$serv-index].inv-id`\" />\n","comments":"","x":1637.9166870117188,"y":805.8333110809326,"z":"acdffee6.4646","wires":[]},{"id":"dc42dfdf.fdb5","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1427.5595741271973,"y":895.6547050476074,"z":"acdffee6.4646","wires":[["1a046dd0.664552"]]},{"id":"1a046dd0.664552","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1568.8095741271973,"y":896.9047050476074,"z":"acdffee6.4646","wires":[["ba80debf.cd0aa","5a25eaf8.84c624","2fed2a61.3ba6d6"]]},{"id":"c9267106.d99d1","type":"execute","name":"generate port-mirror-configuration url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.service`\"/>\n <parameter name=\"outputPath\" value=\"tmp.service-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$serv-inst.service-instance-id`\"/>\n","comments":"","outputs":1,"x":1911.4878692626953,"y":1190.8334407806396,"z":"acdffee6.4646","wires":[[]]},{"id":"b7b866f.22cfd98","type":"execute","name":"execute RestApiCallNode - get service","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.service-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-service\" />\n\n","comments":"","outputs":1,"x":1918.8212051391602,"y":1473.9286651611328,"z":"acdffee6.4646","wires":[["44737e00.fd61a","e1d027ae.6e1bf8"]]},{"id":"44737e00.fd61a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2181.367099761963,"y":1296.1292266845703,"z":"acdffee6.4646","wires":[["73b87896.db1488"]]},{"id":"e1d027ae.6e1bf8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2182.809181213379,"y":1772.3094692230225,"z":"acdffee6.4646","wires":[["e72fa4b8.6bb8f8"]]},{"id":"8d022a9b.038888","type":"comment","name":"Is this service in GENERIC-RESOURCE-API?","info":"","comments":"","x":1925.2497940063477,"y":1426.4286623001099,"z":"acdffee6.4646","wires":[]},{"id":"e16fa584.ce8668","type":"set","name":"clear mdsal-service and serv-inst.api","xml":"<set>\n<parameter name='mdsal-service.' value='' />\n<parameter name='serv-inst.api' value='' />\n","comments":"","x":1907.0712242126465,"y":1139.9405155181885,"z":"acdffee6.4646","wires":[]},{"id":"8786ac57.03e15","type":"set","name":"set serv-inst.service-instance-id","xml":"<set>\n<parameter name='serv-inst.service-instance-id' value='`$aai.service-instances.results[$runtime-index].service-instance.service-instance-id`' />\n","comments":"","x":2592.880962371826,"y":814.6428813934326,"z":"acdffee6.4646","wires":[]},{"id":"73b87896.db1488","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":2335.2379302978516,"y":1295.0833110809326,"z":"acdffee6.4646","wires":[["bae35c98.23485"]]},{"id":"bae35c98.23485","type":"switchNode","name":"switch vnf_length","xml":"<switch test='`$mdsal-service.service[0].service-data.vnfs.vnf_length`'>\n","comments":"","outputs":1,"x":2520.237953186035,"y":1293.8333282470703,"z":"acdffee6.4646","wires":[["5de50820.6365a8","6a33778b.f0d2b8","8b08a0fc.3d573","156859cc.f57d36"]]},{"id":"5de50820.6365a8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":2698.988010406494,"y":1145.8333530426025,"z":"acdffee6.4646","wires":[["5d43b7a0.cc8368"]]},{"id":"6a33778b.f0d2b8","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":2700.238010406494,"y":1184.5833530426025,"z":"acdffee6.4646","wires":[["5d43b7a0.cc8368"]]},{"id":"8b08a0fc.3d573","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2700.737949371338,"y":1520.8333282470703,"z":"acdffee6.4646","wires":[["7f9faf98.11444"]]},{"id":"7f9faf98.11444","type":"switchNode","name":"switch forwarding-path_length","xml":"<switch test='`$mdsal-service.service[0].service-data.forwarding-paths.forwarding-path_length`'>\n","comments":"","outputs":1,"x":2916.987953186035,"y":1522.0833282470703,"z":"acdffee6.4646","wires":[["b12a45c2.9c00f8","df779983.f9ee18","efeee58f.366df8"]]},{"id":"156859cc.f57d36","type":"outcome","name":"1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":2703.988010406494,"y":1324.8333549499512,"z":"acdffee6.4646","wires":[["d321c3e5.b08ea"]]},{"id":"b12a45c2.9c00f8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":3128.9879837036133,"y":1458.3333358764648,"z":"acdffee6.4646","wires":[["6574fc05.7aa8d4"]]},{"id":"df779983.f9ee18","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":3130.2379837036133,"y":1497.0833358764648,"z":"acdffee6.4646","wires":[["6574fc05.7aa8d4"]]},{"id":"efeee58f.366df8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":3127.3809661865234,"y":1591.7262210845947,"z":"acdffee6.4646","wires":[["cbc2b125.4a032"]]},{"id":"5d43b7a0.cc8368","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='data-error' value=\"`'Service instance ' + $si.service-instance-id + ' has no VNFs, skipping'`\" />\n","comments":"","x":2897.7379837036133,"y":1163.3333358764648,"z":"acdffee6.4646","wires":[]},{"id":"6574fc05.7aa8d4","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='data-error' value=\"`'Service instance ' + $serv-inst.service-instance-id + ' has multiple VNFs but no forwarding paths were found'`\" />\n","comments":"","x":3317.7379837036133,"y":1475.8333358764648,"z":"acdffee6.4646","wires":[]},{"id":"389f4f59.b5385","type":"call","name":"call GENERIC-RESOURCE-API:getpathsegment-populate-from-grapi","xml":"<call module='GENERIC-RESOURCE-API' rpc='getpathsegment-populate-from-grapi' mode='sync' >\n","comments":"","outputs":1,"x":3186.737953186035,"y":1274.0833282470703,"z":"acdffee6.4646","wires":[[]]},{"id":"ed8af0c2.a5e1e","type":"call","name":"call GENERIC-RESOURCE-API:getpathsegment-populate-from-vnfapi","xml":"<call module='GENERIC-RESOURCE-API' rpc='getpathsegment-populate-from-vnfapi' mode='sync' >\n","comments":"","outputs":1,"x":2647.80948638916,"y":1723.0832061767578,"z":"acdffee6.4646","wires":[[]]},{"id":"a8c16a6d.0d2f18","type":"success","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2661.2022552490234,"y":1910.5475997924805,"z":"acdffee6.4646","wires":[["ac5e9274.a71eb"]]},{"id":"23ce8b1d.277d04","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2658.7022666931152,"y":1776.6310663223267,"z":"acdffee6.4646","wires":[["1300cf7.befc831"]]},{"id":"1300cf7.befc831","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='data-error' value=\"`'Failure finding service instance ' + $si.service-instance-id + ' in either GENERIC-REOURCE-API or VNF-API'`\" />\n","comments":"","x":2872.452236175537,"y":1775.1310510635376,"z":"acdffee6.4646","wires":[]},{"id":"ac5e9274.a71eb","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2812.4525032043457,"y":1909.2975997924805,"z":"acdffee6.4646","wires":[["bab97280.4fcff"]]},{"id":"3f21a433.f89dbc","type":"set","name":"copy serv-inst to serv-insts array","xml":"<set>\n<parameter name='serv-cust[$serv-index].serv-insts[$tmp.serv-insts_length].' value='`$serv-inst.`' />\n","comments":"","x":3074.237953186035,"y":1327.8333282470703,"z":"acdffee6.4646","wires":[]},{"id":"f723823c.14d35","type":"set","name":"increment serv-insts_length","xml":"<set>\n<parameter name='tmp.serv-insts_length' value='`$tmp.serv-insts_length + 1`' />\n","comments":"","x":3055.487922668457,"y":1382.833309173584,"z":"acdffee6.4646","wires":[]},{"id":"d321c3e5.b08ea","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":2853.9879837036133,"y":1324.5833358764648,"z":"acdffee6.4646","wires":[["389f4f59.b5385","3f21a433.f89dbc","f723823c.14d35"]]},{"id":"5a25eaf8.84c624","type":"set","name":"set tmp.serv-insts_length to 0","xml":"<set>\n<parameter name='tmp.serv-insts_length' value='0' />\n","comments":"","x":1781.1309967041016,"y":848.1547393798828,"z":"acdffee6.4646","wires":[]},{"id":"e72fa4b8.6bb8f8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2309.297294616699,"y":1780.047555923462,"z":"acdffee6.4646","wires":[["ed8af0c2.a5e1e","78b047cf.ed86c8"]]},{"id":"78b047cf.ed86c8","type":"switchNode","name":"switch serv-inst.api","xml":"<switch test='`$serv-inst.api`'>\n","comments":"","outputs":1,"x":2492.393165588379,"y":1845.1666173934937,"z":"acdffee6.4646","wires":[["23ce8b1d.277d04","a8c16a6d.0d2f18"]]},{"id":"2de86e6.3962e92","type":"set","name":"copy serv-inst to serv-insts array","xml":"<set>\n<parameter name='serv-cust[$serv-index].serv-insts[$tmp.serv-insts_length].' value='`$serv-inst.`' />\n","comments":"","x":3539.0593872070312,"y":2006.5000267028809,"z":"acdffee6.4646","wires":[]},{"id":"f4f23919.fbf798","type":"switchNode","name":"switch orchestration-status","xml":"<switch test='`$aai.service-instances.results[$runtime-index].service-instance.orchestration-status`'>\n","comments":"","outputs":1,"x":2059.7024688720703,"y":897.0832557678223,"z":"acdffee6.4646","wires":[["83f502d6.2f5a4"]]},{"id":"83f502d6.2f5a4","type":"outcome","name":"Active","xml":"<outcome value='Active'>\n","comments":"","outputs":1,"x":2254.1665954589844,"y":895.8332214355469,"z":"acdffee6.4646","wires":[["442aff0f.a1283"]]},{"id":"1398c294.3f952d","type":"for","name":"for each service","xml":"<for index='serv-index' start='0' end='`$serv-cust_length`' >\n","comments":"","outputs":1,"x":539.583366394043,"y":668.7500200271606,"z":"acdffee6.4646","wires":[["ecfee624.daec78"]]},{"id":"f6adfe96.32d5f","type":"comment","name":"convert customization uuid to invariant uuid","info":"","comments":"","x":668.3334045410156,"y":626.250018119812,"z":"acdffee6.4646","wires":[]},{"id":"15831d68.36e8b3","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1121.2024307250977,"y":625.3093452453613,"z":"acdffee6.4646","wires":[["be78a9fd.371368"]]},{"id":"745ebab0.1a84e4","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1127.2738418579102,"y":666.0950517654419,"z":"acdffee6.4646","wires":[["dfab331.23ebcd"]]},{"id":"ecfee624.daec78","type":"get-resource","name":"get-resource SERVICE_PROXY, SERVICE_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='select sm.invariant_uuid\n from SERVICE_PROXY sp, SERVICE_MODEL sm\n where sp.source_service_uuid = sm.service_uuid\n and sp.customization_uuid = $serv-cust[$serv-index].id'\n pfx='db'>\n","comments":"","outputs":1,"x":844.5238189697266,"y":668.5714359283447,"z":"acdffee6.4646","wires":[["15831d68.36e8b3","745ebab0.1a84e4","577c9bbc.66ccc4"]]},{"id":"577c9bbc.66ccc4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1122.083351135254,"y":707.5000200271606,"z":"acdffee6.4646","wires":[["1848871c.fbafd9"]]},{"id":"1848871c.fbafd9","type":"set","name":"store invariant id","xml":"<set>\n<parameter name='serv-cust[$serv-index].inv-id' value='`$db.invariant-uuid`' />\n","comments":"","x":1287.0833587646484,"y":707.5000200271606,"z":"acdffee6.4646","wires":[]},{"id":"be78a9fd.371368","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'Failure reading SERVICE_PROXY and SERVICE_MODEL for customization uuid ' + $serv-cust[$serv-index].id`\" />\n","comments":"","x":1315.8333549499512,"y":625.0000190734863,"z":"acdffee6.4646","wires":[]},{"id":"dfab331.23ebcd","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'Cannot find entries in SERVICE_PROXY and SERVICE_MODEL for customization uuid ' + $serv-cust[$serv-index].id`\" />\n","comments":"","x":1315.8333358764648,"y":665.0000104904175,"z":"acdffee6.4646","wires":[]},{"id":"ea262156.5bc25","type":"switchNode","name":"switch invariant uuid","xml":"<switch test='`$serv-cust[$serv-index].inv-id`'>\n","comments":"","outputs":1,"x":741.6666793823242,"y":794.5833110809326,"z":"acdffee6.4646","wires":[["6e5ea8a8.3f7578","38fd826b.e7840e"]]},{"id":"6e5ea8a8.3f7578","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":907.9166831970215,"y":765.8333110809326,"z":"acdffee6.4646","wires":[["458e60e8.0fa83"]]},{"id":"38fd826b.e7840e","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":908.7381553649902,"y":816.1192016601562,"z":"acdffee6.4646","wires":[["eba93f08.848f6"]]},{"id":"458e60e8.0fa83","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1044.1666831970215,"y":765.0833101272583,"z":"acdffee6.4646","wires":[[]]},{"id":"3b868648.17a23a","type":"call","name":"call GENERIC-RESOURCE-API:getpathsegment-composite-match-pair","xml":"<call module='GENERIC-RESOURCE-API' rpc='getpathsegment-composite-match-pair' mode='sync' >\n","comments":"","outputs":1,"x":687.9287109375,"y":2361.2736377716064,"z":"acdffee6.4646","wires":[[]]},{"id":"cbc2b125.4a032","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":3256.1309661865234,"y":1591.7262210845947,"z":"acdffee6.4646","wires":[["e63540a5.81689","c13e34b7.f42fb8","a14b9b6d.2bbee8","7ace4a44.fb42f4"]]},{"id":"e63540a5.81689","type":"set","name":"copy forwarding-paths to serv-insts array","xml":"<set>\n<parameter name='serv-cust[$serv-index].serv-insts[$tmp.serv-insts_length].forwarding-paths.'\n value='`$mdsal-service.service[0].service-data.forwarding-paths.`' />\n","comments":"","x":3503.988082885742,"y":1615.2975959777832,"z":"acdffee6.4646","wires":[]},{"id":"c13e34b7.f42fb8","type":"set","name":"increment serv-insts_length","xml":"<set>\n<parameter name='tmp.serv-insts_length' value='`$tmp.serv-insts_length + 1`' />\n","comments":"","x":3462.5592651367188,"y":1662.0834131240845,"z":"acdffee6.4646","wires":[]},{"id":"a14b9b6d.2bbee8","type":"call","name":"call GENERIC-RESOURCE-API:getpathsegment-populate-from-grapi","xml":"<call module='GENERIC-RESOURCE-API' rpc='getpathsegment-populate-from-grapi' mode='sync' >\n","comments":"","outputs":1,"x":3588.2736282348633,"y":1527.0833358764648,"z":"acdffee6.4646","wires":[[]]},{"id":"7ace4a44.fb42f4","type":"set","name":"copy serv-inst to serv-insts array","xml":"<set>\n<parameter name='serv-cust[$serv-index].serv-insts[$tmp.serv-insts_length].' value='`$serv-inst.`' />\n","comments":"","x":3475.4166946411133,"y":1568.5119247436523,"z":"acdffee6.4646","wires":[]},{"id":"9f400084.68537","type":"set","name":"clear serv-inst","xml":"<set>\n<parameter name='serv-inst.' value='' />\n","comments":"","x":1837.9879150390625,"y":1518.511981010437,"z":"acdffee6.4646","wires":[]},{"id":"2fed2a61.3ba6d6","type":"set","name":"set final serv-insts_length","xml":"<set>\n<parameter name='serv-cust[$serv-index].serv-insts_length' value='`$tmp.serv-insts_length`' />\n","comments":"","x":1765.4167137145996,"y":942.7975521087646,"z":"acdffee6.4646","wires":[]},{"id":"e2bb1296.6a77f","type":"comment","name":"Create forwarding-path structure","info":"","comments":"","x":1804.2026138305664,"y":2759.249895095825,"z":"acdffee6.4646","wires":[]},{"id":"9c1deb3.fce3a18","type":"switchNode","name":"switch service-paths.service-path_length","xml":"<switch test='`$service-paths.service-path_length`'>\n","comments":"","outputs":1,"x":588.7024993896484,"y":2585.0833568573,"z":"acdffee6.4646","wires":[["c17848c4.7aa328","891625b0.f7b498","2b7b5767.caf788"]]},{"id":"c17848c4.7aa328","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":868.7024803161621,"y":2441.7497968673706,"z":"acdffee6.4646","wires":[["9234ee5.d733b1"]]},{"id":"891625b0.f7b498","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":869.9524803161621,"y":2480.4997968673706,"z":"acdffee6.4646","wires":[["9234ee5.d733b1"]]},{"id":"2b7b5767.caf788","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":865.9524955749512,"y":2712.0001287460327,"z":"acdffee6.4646","wires":[["db0b5e4d.138fb"]]},{"id":"9234ee5.d733b1","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1002.0358390808105,"y":2455.0831298828125,"z":"acdffee6.4646","wires":[[]]},{"id":"9957ee7a.eb839","type":"set","name":"set top-level data","xml":"<set>\n<parameter name='forwarding-path.forwarding-path-name' value='`$db.path-segment[0].path-name`' />\n<parameter name='forwarding-path.forwarding-path-type' value='Service' />\n<parameter name='forwarding-path.onap-model-information.model-name' value='`$db.path-segment[0].path-name`' />\n","comments":"","x":1715.0359230041504,"y":2846.749963760376,"z":"acdffee6.4646","wires":[]},{"id":"2464da2e.bc2576","type":"execute","name":"generate forwarding-path-id","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n<parameter name=\"ctx-destination\" value=\"forwarding-path.forwarding-path-id\" />\n","comments":"","outputs":1,"x":1747.1192169189453,"y":2800.916626930237,"z":"acdffee6.4646","wires":[[]]},{"id":"5d113599.9797dc","type":"set","name":"copy service-path","xml":"<set>\n<parameter name='forwarding-path.service-paths.' value='`$service-paths.`' />\n","comments":"","x":1713.3692474365234,"y":2891.7502098083496,"z":"acdffee6.4646","wires":[]},{"id":"654073a0.8dc7dc","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1525.0359649658203,"y":3155.0832328796387,"z":"acdffee6.4646","wires":[["2464da2e.bc2576","9957ee7a.eb839","5d113599.9797dc","7ecab0fa.15895","76d060fc.5c71a","94003a26.69b068","532dd116.0d3c4"]]},{"id":"a4663c40.d0b5d","type":"switchNode","name":"switch runtime-index","xml":"<switch test='`$runtime-index`'>\n","comments":"","outputs":1,"x":1859.7022666931152,"y":1011.8452968597412,"z":"acdffee6.4646","wires":[["4db5c1dc.9f95c"]]},{"id":"4db5c1dc.9f95c","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":2029.7022972106934,"y":1011.8453140258789,"z":"acdffee6.4646","wires":[["dcb4004e.9356a"]]},{"id":"dcb4004e.9356a","type":"set","name":"save service.service-role","xml":"<set>\n<parameter name='service.service-role' value='`$aai.service-instances.results[0].service-instance.service-role`' />\n","comments":"","x":2208.2736206054688,"y":1011.8452968597412,"z":"acdffee6.4646","wires":[]},{"id":"442aff0f.a1283","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2380.416763305664,"y":895.4166278839111,"z":"acdffee6.4646","wires":[["37e396a3.2783fa","efbbd2cc.0e547","8786ac57.03e15"]]},{"id":"efbbd2cc.0e547","type":"switchNode","name":"switch output-global-customer-id","xml":"<switch test='`$output-global-customer-id`'>\n","comments":"","outputs":1,"x":2595.4166717529297,"y":860.4166126251221,"z":"acdffee6.4646","wires":[["9b84fbe4.e396d8"]]},{"id":"9b84fbe4.e396d8","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2802.0833892822266,"y":858.7499856948853,"z":"acdffee6.4646","wires":[["6b285851.2f4b58"]]},{"id":"30bb031c.093bcc","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":3375.416572570801,"y":855.4166278839111,"z":"acdffee6.4646","wires":[["b34e010d.49543","966e7225.52122"]]},{"id":"6b285851.2f4b58","type":"save","name":"custom query: get service instance","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource_and_url'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.si\">\n\t<parameter name=\"start[0]\" value=\"`'nodes/service-instance/' + $serv-inst.service-instance-id `\" />\n\t<parameter name=\"start_length\" value=\"1\" />\n","comments":"","outputs":1,"x":3020.416534423828,"y":857.083399772644,"z":"acdffee6.4646","wires":[["5e0c0bf4.dca7b4"]]},{"id":"b34e010d.49543","type":"execute","name":"execute split","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n\t<parameter name=\"original_string\" value=\"`$tmp.AnAI-data.si.results[0].url`\" />\n\t<parameter name=\"regex\" value=\"/\"/>\n\t<parameter name=\"limit\" value=\"11\" />\n\t<parameter name=\"ctx_memory_result_key\" value=\"split\" />\n","comments":"","outputs":1,"x":3528.749973297119,"y":835.4167575836182,"z":"acdffee6.4646","wires":[[]]},{"id":"5e0c0bf4.dca7b4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3242.0832595825195,"y":856.7500123977661,"z":"acdffee6.4646","wires":[["30bb031c.093bcc"]]},{"id":"966e7225.52122","type":"set","name":"set output-global-customer-id, etc","xml":"<set>\n<parameter name='output-global-customer-id' value='`$split[6]`' />\n<parameter name='output-service-type' value='`$split[9]`' />\n<parameter name='output-service-role' value='`$tmp.AnAI-data.si.results[0].service-instance.service-role`' />\n","comments":"","x":3595.416763305664,"y":880.4166374206543,"z":"acdffee6.4646","wires":[]},{"id":"7d31078f.efb3d8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2128.60733795166,"y":3068.8931226730347,"z":"acdffee6.4646","wires":[["87ecc4ba.953798","e1f74301.3a592","ea9cb947.2f8788","7177f03.da2611","960587e2.909438"]]},{"id":"87ecc4ba.953798","type":"execute","name":"generate service-instance-id","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n<parameter name=\"ctx-destination\" value=\"tmp.service-instance-id\" />\n","comments":"","outputs":1,"x":2335.274076461792,"y":2968.1788692474365,"z":"acdffee6.4646","wires":[[]]},{"id":"14ba220e.0a427e","type":"comment","name":"Make a new service instance in GR-API","info":"","comments":"","x":2441.5239963531494,"y":2931.0953826904297,"z":"acdffee6.4646","wires":[]},{"id":"7177f03.da2611","type":"save","name":"save service-instance to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\" \n\tkey=\"customer.global-customer-id = $output-global-customer-id\n\t AND service-subscription.service-type = $output-service-type\n\t AND service-instance.service-instance-id = $tmp.service-instance-id\" >\n<parameter name=\"service-instance-id\" value=\"`$tmp.service-instance-id`\" />\n<parameter name=\"global-customer-id\" value=\"`$output-global-customer-id`\" />\n<parameter name=\"service-type\" value=\"`$output-service-type`\" />\n<parameter name=\"service-role\" value=\"`$output-service-role`\" />\n","comments":"","outputs":1,"x":2339.202896118164,"y":3150.0238361358643,"z":"acdffee6.4646","wires":[["2ad23b25.4eac74","8b691431.cc9278"]]},{"id":"83430cdc.a419d","type":"comment","name":"Make a new service instance in A&AI","info":"","comments":"","x":2429.917154312134,"y":3092.16690826416,"z":"acdffee6.4646","wires":[]},{"id":"ea9cb947.2f8788","type":"execute","name":"execute RestApiCallNode - PUT service-instance","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.csm.serviceinstance.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.service-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-sr\" />\n\n","comments":"","outputs":1,"x":2400.2742023468018,"y":3054.845375061035,"z":"acdffee6.4646","wires":[["97c9808b.9352c"]]},{"id":"e1f74301.3a592","type":"execute","name":"generate service-instance url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.service`\"/>\n <parameter name=\"outputPath\" value=\"tmp.service-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.service-instance-id`\"/>\n","comments":"","outputs":1,"x":2336.5242023468018,"y":3012.345374107361,"z":"acdffee6.4646","wires":[[]]},{"id":"7ecab0fa.15895","type":"switchNode","name":"switch output-service-instance-id","xml":"<switch test='`$output-service-instance-id`'>\n","comments":"","outputs":1,"x":1767.4168243408203,"y":3076.5121965408325,"z":"acdffee6.4646","wires":[["6bc7823b.9fccbc","f3d20003.45381"]]},{"id":"7ff0a241.207e8c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":738.7499389648438,"y":328.75,"z":"acdffee6.4646","wires":[["ae348eba.10a95"]]},{"id":"8b411eeb.03fd7","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":747.3213691711426,"y":372.0357131958008,"z":"acdffee6.4646","wires":[["6abf5986.be9818"]]},{"id":"ae348eba.10a95","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":892.0120735168457,"y":327.0715398788452,"z":"acdffee6.4646","wires":[["4a5f6f0b.dcc33"]]},{"id":"6abf5986.be9818","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":892.0120964050293,"y":372.07152938842773,"z":"acdffee6.4646","wires":[["8def3ed6.72da5"]]},{"id":"4a5f6f0b.dcc33","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'System error reading PATH_SEGMENT table for uuid '\n + $getpathsegment-topology-operation-input.service-information.onap-model-information.model-uuid\n + ' and path '\n + $db.forwarding-path[$path-index].path-name`\" />\n","comments":"","x":1092.0122184753418,"y":325.4048738479614,"z":"acdffee6.4646","wires":[]},{"id":"8def3ed6.72da5","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'No entries in PATH_SEGMENT table for uuid '\n + $getpathsegment-topology-operation-input.service-information.onap-model-information.model-uuid\n + ' and path '\n + $db.forwarding-path[$path-index].path-name`\" />\n","comments":"","x":1092.012035369873,"y":372.07152938842773,"z":"acdffee6.4646","wires":[]},{"id":"e62cb2cc.8b1b1","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":743.6787948608398,"y":415.4048881530762,"z":"acdffee6.4646","wires":[["766a7c4c.6db704"]]},{"id":"766a7c4c.6db704","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":113.6309585571289,"y":1673.2737884521484,"z":"acdffee6.4646","wires":[["227d76b8.b8f89a","c64c7acf.8db458","1398c294.3f952d","3337a2c8.4f2c0e","3b868648.17a23a","9c1deb3.fce3a18","31223e46.c39562"]]},{"id":"6bc7823b.9fccbc","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1988.607292175293,"y":3055.5597352981567,"z":"acdffee6.4646","wires":[["7d31078f.efb3d8"]]},{"id":"f3d20003.45381","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1988.4287033081055,"y":3097.1668796539307,"z":"acdffee6.4646","wires":[["7d31078f.efb3d8"]]},{"id":"960587e2.909438","type":"set","name":"set output-service-instance-id","xml":"<set>\n<parameter name='output-service-instance-id' value='`$tmp.service-instance-id`' />\n","comments":"","x":2334.797737121582,"y":3214.6070919036865,"z":"acdffee6.4646","wires":[]},{"id":"94003a26.69b068","type":"execute","name":"execute RestApiCallNode - PUT forwarding-path","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.forwardingpath.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.fp-url + $forwarding-path.forwarding-path-id`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-fp\" />\n\n","comments":"","outputs":1,"x":1810.0359344482422,"y":3339.3693075180054,"z":"acdffee6.4646","wires":[["e3e2ddf6.f153f","b2430abe.dc8828"]]},{"id":"e3e2ddf6.f153f","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2080.5224685668945,"y":3363.6175785064697,"z":"acdffee6.4646","wires":[["aac11982.8688f8"]]},{"id":"b2430abe.dc8828","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2072.951103210449,"y":3322.1175985336304,"z":"acdffee6.4646","wires":[["aac11982.8688f8"]]},{"id":"aac11982.8688f8","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarding-path to MD-SAL\" />\n","comments":"","x":2292.5359420776367,"y":3336.8693075180054,"z":"acdffee6.4646","wires":[]},{"id":"76d060fc.5c71a","type":"execute","name":"generate forwarding-path url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.forwarding-path`\"/>\n <parameter name=\"outputPath\" value=\"tmp.fp-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$output-service-instance-id`\"/>\n","comments":"","outputs":1,"x":1747.952766418457,"y":3282.285427093506,"z":"acdffee6.4646","wires":[[]]},{"id":"ec6851e3.24d41","type":"save","name":"save forwarding-path to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"forwarding-path\" \n\tkey=\"forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[$sp-index].service-path-instance-id\" >\n<parameter name=\"forwarding-path-id\" value=\"`$forwarding-path.service-paths.service-path[$sp-index].service-path-instance-id`\" />\n<parameter name=\"forwarding-path-name\" value=\"`$forwarding-path.service-paths.service-path[$sp-index].service-path-instance-name`\" />\n<parameter name=\"selflink\" value=\"`'/rests/data/GENERIC-RESOURCE-API:services/service='\n + $output-service-instance-id\n + '/forwarding-paths/forwarding-path='\n + $forwarding-path.forwarding-path-id\n + '/services-paths/service-path='\n + $forwarding-path.service-paths.service-path[$sp-index].service-path-instance-id\n + '?content=config'`\" />\n","comments":"","outputs":1,"x":2564.072067260742,"y":3421.226315498352,"z":"acdffee6.4646","wires":[["782723e.d6f5edc","173a4200.c682ae"]]},{"id":"f9f23fe5.c832e","type":"save","name":"save forwarding-path relationship to service-instance","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"forwarding-path:relationship-list\"\n key=\"forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[$sp-index].service-path-instance-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"service-instance\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/business/customers/customer/'\n + $output-global-customer-id\n + '/service-subscriptions/service-subscription/'\n + $output-service-type\n + '/service-instances/service-instance/'\n + $output-service-instance-id`\" />\n","comments":"","outputs":1,"x":2635.73876953125,"y":3501.46435546875,"z":"acdffee6.4646","wires":[["c1b3e443.b892d8","a4072ca.00fd3d"]]},{"id":"2f92c949.4d6476","type":"for","name":"for each vnf","xml":"<for index='vnf-index' start='0' end='`$forwarding-path.service-paths.service-path[$sp-index].service[$service-index].vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":2725.500457763672,"y":3630.274257659912,"z":"acdffee6.4646","wires":[["d2f257bf.d8fd58"]]},{"id":"d2f257bf.d8fd58","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2870.2624740600586,"y":3629.8454303741455,"z":"acdffee6.4646","wires":[["81a978c4.55a318","1825f2cc.d9255d"]]},{"id":"81a978c4.55a318","type":"save","name":"save forwarder to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"forwarder\" \n\tkey=\"forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[$sp-index].service-path-instance-id\n\t AND forwarder.sequence = $forwarding-path.service-paths.service-path[$sp-index].service[$service-index].vnfs.vnf[$vnf-index].vnf-path-sequence-id\" >\n<parameter name=\"sequence\" value=\"`$forwarding-path.service-paths.service-path[$sp-index].service[$service-index].vnfs.vnf[$vnf-index].vnf-path-sequence-id`\" />\n","comments":"","outputs":1,"x":3051.262517929077,"y":3585.750457763672,"z":"acdffee6.4646","wires":[["a8b88931.1b04b8","18196271.6ec47e"]]},{"id":"1825f2cc.d9255d","type":"save","name":"save forwarder relationship to generic-vnf","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"forwarder:relationship-list\"\n key=\"forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[$sp-index].service-path-instance-id\n AND forwarder.sequence = $forwarding-path.service-paths.service-path[$sp-index].service[$service-index].vnfs.vnf[$vnf-index].vnf-path-sequence-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/generic-vnfs/generic-vnf/'\n + $forwarding-path.service-paths.service-path[$sp-index].service[$service-index].vnfs.vnf[$vnf-index].vnf-instance-id`\" />\n","comments":"","outputs":1,"x":3105.262519836426,"y":3675.036106109619,"z":"acdffee6.4646","wires":[["9e2d3b55.8e6d18","be4a1ccd.60699"]]},{"id":"31223e46.c39562","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/gpsx.log' />\n","comments":"","outputs":1,"x":507.0833282470703,"y":2412.0832509994507,"z":"acdffee6.4646","wires":[[]]},{"id":"173a4200.c682ae","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2772.750198364258,"y":3441.0832204818726,"z":"acdffee6.4646","wires":[["7abb5ae4.45ef84"]]},{"id":"782723e.d6f5edc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2765.1788330078125,"y":3399.583240509033,"z":"acdffee6.4646","wires":[["7abb5ae4.45ef84"]]},{"id":"7abb5ae4.45ef84","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarding-path to AAI\" />\n","comments":"","x":2969.7636108398438,"y":3414.3350400924683,"z":"acdffee6.4646","wires":[]},{"id":"a4072ca.00fd3d","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2917.7501792907715,"y":3524.4164247512817,"z":"acdffee6.4646","wires":[["38f6157.8f1caea"]]},{"id":"c1b3e443.b892d8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2908.5120849609375,"y":3477.916492462158,"z":"acdffee6.4646","wires":[["38f6157.8f1caea"]]},{"id":"38f6157.8f1caea","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarding-path relationship to AAI\" />\n","comments":"","x":3113.096908569336,"y":3492.6682138442993,"z":"acdffee6.4646","wires":[]},{"id":"18196271.6ec47e","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":3242.7502117156982,"y":3607.749852180481,"z":"acdffee6.4646","wires":[["ede6f0bd.9d33c"]]},{"id":"a8b88931.1b04b8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3235.178846359253,"y":3566.2498722076416,"z":"acdffee6.4646","wires":[["ede6f0bd.9d33c"]]},{"id":"ede6f0bd.9d33c","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarder to AAI\" />\n","comments":"","x":3438.0970458984375,"y":3581.001434326172,"z":"acdffee6.4646","wires":[]},{"id":"be4a1ccd.60699","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":3347.7501678466797,"y":3699.416358947754,"z":"acdffee6.4646","wires":[["6576c8ed.7d6ce8"]]},{"id":"9e2d3b55.8e6d18","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3340.1788024902344,"y":3657.9163789749146,"z":"acdffee6.4646","wires":[["6576c8ed.7d6ce8"]]},{"id":"6576c8ed.7d6ce8","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarder relationship to AAI\" />\n","comments":"","x":3541.4303436279297,"y":3672.667942047119,"z":"acdffee6.4646","wires":[]},{"id":"ee78a452.895eb8","type":"for","name":"for each service","xml":"<for index='service-index' start='0' end='`$service-paths.service-path[$sp-index].service_length`' >\n","comments":"","outputs":1,"x":2534.416831970215,"y":3631.083258628845,"z":"acdffee6.4646","wires":[["2f92c949.4d6476"]]},{"id":"8b691431.cc9278","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2550.0833892822266,"y":3170.4164781570435,"z":"acdffee6.4646","wires":[["28ee0b7.a193cf4"]]},{"id":"2ad23b25.4eac74","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2542.5120239257812,"y":3128.916498184204,"z":"acdffee6.4646","wires":[["28ee0b7.a193cf4"]]},{"id":"28ee0b7.a193cf4","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure creating service instance in AAI\" />\n","comments":"","x":2745.430223464966,"y":3143.6680603027344,"z":"acdffee6.4646","wires":[]},{"id":"97c9808b.9352c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2660.0833892822266,"y":3053.7497301101685,"z":"acdffee6.4646","wires":[["1818ef16.6dc701"]]},{"id":"1818ef16.6dc701","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure creating service instance in MD-SAL\" />\n","comments":"","x":2850.0833892822266,"y":3052.0829820632935,"z":"acdffee6.4646","wires":[]},{"id":"d843bbaa.11f848","type":"set","name":"increment serv-insts_length","xml":"<set>\n<parameter name='tmp.serv-insts_length' value='`$tmp.serv-insts_length + 1`' />\n","comments":"","x":3523.7498168945312,"y":2057.916774749756,"z":"acdffee6.4646","wires":[]},{"id":"532dd116.0d3c4","type":"for","name":"for each service-path","xml":"<for index='sp-index' start='0' end='`$service-paths.service-path_length`' >\n","comments":"","outputs":1,"x":1718.4169311523438,"y":3522.0831785202026,"z":"acdffee6.4646","wires":[["6026a1f0.02df4"]]},{"id":"bab97280.4fcff","type":"switchNode","name":"switch vnf_length","xml":"<switch test='`$serv-inst.vnf-list_length`'>\n","comments":"","outputs":1,"x":2978.809280395508,"y":2006.4284648895264,"z":"acdffee6.4646","wires":[["83930c1.6232af","415745e9.86f9ec","a96c0af7.4076f8","7fb684c8.1e8ddc"]]},{"id":"83930c1.6232af","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":3181.6666107177734,"y":1924.9999256134033,"z":"acdffee6.4646","wires":[["495a7820.28bb28"]]},{"id":"415745e9.86f9ec","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":3182.9166107177734,"y":1963.7499256134033,"z":"acdffee6.4646","wires":[["495a7820.28bb28"]]},{"id":"495a7820.28bb28","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='data-error' value=\"`'Service instance ' + $si.service-instance-id + ' has no VNFs, skipping'`\" />\n","comments":"","x":3380.4165573120117,"y":1942.4998750686646,"z":"acdffee6.4646","wires":[]},{"id":"a96c0af7.4076f8","type":"outcome","name":"1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":3181.666549682617,"y":2032.4999074935913,"z":"acdffee6.4646","wires":[["bff428c8.cc6008"]]},{"id":"bff428c8.cc6008","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":3331.6665229797363,"y":2032.249888420105,"z":"acdffee6.4646","wires":[["2de86e6.3962e92","d843bbaa.11f848"]]},{"id":"7fb684c8.1e8ddc","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":3184.166717529297,"y":2166.6664543151855,"z":"acdffee6.4646","wires":[["93bc2b5.8b736d8"]]},{"id":"93bc2b5.8b736d8","type":"get-resource","name":"get-resource SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT forwarding_path_service_instance_id from SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING WHERE simple_service_instance_id = $serv-inst.service-instance-id'\n pfx='db.mapped-service-instance-id'>\n\n","comments":"","outputs":1,"x":3556.5481567382812,"y":2165.952667236328,"z":"acdffee6.4646","wires":[["30b771e0.9efa2e","ac42250b.451688","9c7d869c.656378"]]},{"id":"30b771e0.9efa2e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3923.1668853759766,"y":2097.642951965332,"z":"acdffee6.4646","wires":[["3cc43602.d355aa"]]},{"id":"ac42250b.451688","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":3931.7383155822754,"y":2141.928665161133,"z":"acdffee6.4646","wires":[["c6af0644.d6e838"]]},{"id":"3cc43602.d355aa","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='data-error' value=\"System error reading SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING table\" />\n","comments":"","x":4140.000244140625,"y":2095.8333253860474,"z":"acdffee6.4646","wires":[]},{"id":"c6af0644.d6e838","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='data-error' value=\"`'No entry in SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING table for service instance ' + $serv-inst.service-instance-id`\" />\n","comments":"","x":4140.000076293945,"y":2142.166621208191,"z":"acdffee6.4646","wires":[]},{"id":"9c7d869c.656378","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3928.333480834961,"y":2237.500123023987,"z":"acdffee6.4646","wires":[["47635cab.dcb404"]]},{"id":"47635cab.dcb404","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":4064.9997482299805,"y":2235.8332090377808,"z":"acdffee6.4646","wires":[["3ffa27b1.735848","cbac044e.797f28"]]},{"id":"3ffa27b1.735848","type":"execute","name":"generate port-mirror-configuration url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.service`\"/>\n <parameter name=\"outputPath\" value=\"tmp.service-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$db.mapped-service-instance-id.forwarding-path-service-instance-id`\"/>\n","comments":"","outputs":1,"x":4285.00008392334,"y":2194.166865348816,"z":"acdffee6.4646","wires":[[]]},{"id":"cbac044e.797f28","type":"execute","name":"execute RestApiCallNode - get service","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.service-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-service\" />\n\n","comments":"","outputs":1,"x":4288.332931518555,"y":2280.8332109451294,"z":"acdffee6.4646","wires":[["8ee34d45.6e794","f93605ea.7e7b88"]]},{"id":"f93605ea.7e7b88","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":4516.666107177734,"y":2342.499878883362,"z":"acdffee6.4646","wires":[["a4725830.66d628"]]},{"id":"8ee34d45.6e794","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":4516.442153930664,"y":2235.3466358184814,"z":"acdffee6.4646","wires":[["dd9a7f75.ee19c"]]},{"id":"dd9a7f75.ee19c","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='data-error' value=\"`'Cannot find service instance ' + $db.mapped-service-instance-id.forwarding-path-service-instance-id + ' in MD-SAL'`\" />\n","comments":"","x":4710.000076293945,"y":2234.166537284851,"z":"acdffee6.4646","wires":[]},{"id":"a4725830.66d628","type":"switchNode","name":"switch forwarding-path_length","xml":"<switch test='`$mdsal-service.service[0].service-data.forwarding-paths.forwarding-path_length`'>\n","comments":"","outputs":1,"x":4720.000076293945,"y":2342.500033378601,"z":"acdffee6.4646","wires":[["f4cd3b16.9f1b48","e02ba6d7.e68a68","f2da480c.9764c8"]]},{"id":"f4cd3b16.9f1b48","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":4932.000106811523,"y":2278.7500410079956,"z":"acdffee6.4646","wires":[["7f12cf21.a3af1"]]},{"id":"e02ba6d7.e68a68","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":4933.250106811523,"y":2317.5000410079956,"z":"acdffee6.4646","wires":[["7f12cf21.a3af1"]]},{"id":"f2da480c.9764c8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":4930.393089294434,"y":2412.1429262161255,"z":"acdffee6.4646","wires":[["966b6bde.cc8f88"]]},{"id":"7f12cf21.a3af1","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='data-error' value=\"`'Service instance ' + $db.mapped-service-instance-id.forwarding-path-service-instance-id + ' has multiple VNFs but no forwarding paths were found'`\" />\n","comments":"","x":5120.750106811523,"y":2296.2500410079956,"z":"acdffee6.4646","wires":[]},{"id":"966b6bde.cc8f88","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":5059.143089294434,"y":2412.1429262161255,"z":"acdffee6.4646","wires":[["73c62547.358c5c","2c341601.f78f1a","18d9283c.3cd808"]]},{"id":"73c62547.358c5c","type":"set","name":"copy forwarding-paths to serv-insts array","xml":"<set>\n<parameter name='serv-cust[$serv-index].serv-insts[$tmp.serv-insts_length].forwarding-paths.'\n value='`$mdsal-service.service[0].service-data.forwarding-paths.`' />\n","comments":"","x":5296.666580200195,"y":2412.500033378601,"z":"acdffee6.4646","wires":[]},{"id":"2c341601.f78f1a","type":"set","name":"copy serv-inst to serv-insts array","xml":"<set>\n<parameter name='serv-cust[$serv-index].serv-insts[$tmp.serv-insts_length].' value='`$serv-inst.`' />\n","comments":"","x":5272,"y":2366,"z":"acdffee6.4646","wires":[]},{"id":"18d9283c.3cd808","type":"set","name":"increment serv-insts_length","xml":"<set>\n<parameter name='tmp.serv-insts_length' value='`$tmp.serv-insts_length + 1`' />\n","comments":"","x":5254.6904296875,"y":2459.416748046875,"z":"acdffee6.4646","wires":[]},{"id":"ab273d26.ee67d","type":"switchNode","name":"switch service_length == serv-cust_length","xml":"<switch test='`$service-paths.service-path[$sp-index].service_length == $serv-cust_length`'>\n","comments":"","outputs":1,"x":1463.3333282470703,"y":2587.6667375564575,"z":"acdffee6.4646","wires":[["57af92ff.0a268c"]]},{"id":"432943b9.13704c","type":"for","name":"for each service-path","xml":"<for index='sp-index' start='0' end='`$service-paths.service-path_length`' >\n","comments":"","outputs":1,"x":1183.3333282470703,"y":2588.6667375564575,"z":"acdffee6.4646","wires":[["ab273d26.ee67d"]]},{"id":"db0b5e4d.138fb","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1001.3333282470703,"y":2710.6667375564575,"z":"acdffee6.4646","wires":[["b67f5438.96b3a8","432943b9.13704c","ed2004a7.484e98"]]},{"id":"b67f5438.96b3a8","type":"set","name":"set found-service-path to false","xml":"<set>\n<parameter name='found-service-path' value='false' />\n","comments":"","x":1211.3333282470703,"y":2542.6667375564575,"z":"acdffee6.4646","wires":[]},{"id":"57af92ff.0a268c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1697.3333282470703,"y":2586.6667375564575,"z":"acdffee6.4646","wires":[["14f78ce9.5e1413"]]},{"id":"14f78ce9.5e1413","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1823.3333282470703,"y":2586.6667375564575,"z":"acdffee6.4646","wires":[["51e6f6dd.41b898","8e5d432a.80844"]]},{"id":"51e6f6dd.41b898","type":"set","name":"set found-service-path to true","xml":"<set>\n<parameter name='found-service-path' value='true' />\n","comments":"","x":2017.3333282470703,"y":2558.6667375564575,"z":"acdffee6.4646","wires":[]},{"id":"8e5d432a.80844","type":"break","name":"break","xml":"<break>\n","comments":"","x":1947.3333282470703,"y":2606.6667375564575,"z":"acdffee6.4646","wires":[]},{"id":"ed2004a7.484e98","type":"switchNode","name":"switch found-service-path","xml":"<switch test='`$found-service-path`'>\n","comments":"","outputs":1,"x":1197.3333282470703,"y":2922.6667375564575,"z":"acdffee6.4646","wires":[["902c3da4.38f8e","cc4f97d7.be3168"]]},{"id":"cc4f97d7.be3168","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1401.3333282470703,"y":3156.6667375564575,"z":"acdffee6.4646","wires":[["654073a0.8dc7dc"]]},{"id":"902c3da4.38f8e","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1383.3333282470703,"y":2702.6667375564575,"z":"acdffee6.4646","wires":[["95ceba9c.126508"]]},{"id":"95ceba9c.126508","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'No service paths found for path name '\n + $db.path-segment[0].path-name`\" />\n","comments":"","x":1573.3333282470703,"y":2702.6667375564575,"z":"acdffee6.4646","wires":[]},{"id":"6026a1f0.02df4","type":"switchNode","name":"switch service_length == serv-cust_length","xml":"<switch test='`$service-paths.service-path[$sp-index].service_length == $serv-cust_length`'>\n","comments":"","outputs":1,"x":2000,"y":3522,"z":"acdffee6.4646","wires":[["ce386471.0c3478"]]},{"id":"ce386471.0c3478","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2234,"y":3521,"z":"acdffee6.4646","wires":[["c64714d6.1fcac8"]]},{"id":"c64714d6.1fcac8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2360,"y":3521,"z":"acdffee6.4646","wires":[["ec6851e3.24d41","f9f23fe5.c832e","ee78a452.895eb8"]]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_getpathsegment-create-simple-path.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_getpathsegment-create-simple-path.json index 3194c18c..8aefccbf 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_getpathsegment-create-simple-path.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_getpathsegment-create-simple-path.json @@ -1 +1 @@ -[{"id":"22afe3b6.ac42ec","type":"dgstart","name":"DGSTART","outputs":1,"x":101.42857360839844,"y":85.71428680419922,"z":"5629d16d.2ad96","wires":[["aba57bc5.dd8d18"]]},{"id":"aba57bc5.dd8d18","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":216.71427154541016,"y":125.95239543914795,"z":"5629d16d.2ad96","wires":[["dd9830af.1b7fc"]]},{"id":"dd9830af.1b7fc","type":"method","name":"method getpathsegment-create-simple-path","xml":"<method rpc='getpathsegment-create-simple-path' mode='sync'>\n","comments":"","outputs":1,"x":209.8572006225586,"y":166.71428108215332,"z":"5629d16d.2ad96","wires":[["54f62c1c.ee8494"]]},{"id":"39e0fc73.43bb24","type":"comment","name":"getpathsegment-create-simple-path","info":"","comments":"","x":495.77342987060547,"y":33.30063056945801,"z":"5629d16d.2ad96","wires":[]},{"id":"54f62c1c.ee8494","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":116.09528350830078,"y":290.7412042617798,"z":"5629d16d.2ad96","wires":[["727b4caf.1cdc94","41d349bc.0562d8","a1cc7312.325ce"]]},{"id":"a1cc7312.325ce","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":257.91658782958984,"y":2895.298070907593,"z":"5629d16d.2ad96","wires":[]},{"id":"727b4caf.1cdc94","type":"get-resource","name":"get-resource PATH_SEGMENT","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from PATH_SEGMENT WHERE service_uuid = $getpathsegment-topology-operation-input.service-information.onap-model-information.model-uuid\n AND path_name = $db.forwarding-path[$path-index].path-name ORDER BY path_segment_seq'\n pfx='db.path-segment[]'>\n\n","comments":"","outputs":1,"x":343.5476188659668,"y":356.4761791229248,"z":"5629d16d.2ad96","wires":[["891f7699.dad768","2e7bfd35.86d932","5581a414.fb2c9c"]]},{"id":"891f7699.dad768","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":572.6663970947266,"y":313.8094177246094,"z":"5629d16d.2ad96","wires":[["a32e6237.6daf3"]]},{"id":"2e7bfd35.86d932","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":581.2378273010254,"y":357.09513092041016,"z":"5629d16d.2ad96","wires":[["39c3eea1.efd8a2"]]},{"id":"6ae56929.26b358","type":"for","name":"for each path segment","xml":"<for index='path-segment-index' start='0' end='`$db.path-segment_length`' >\n","comments":"","outputs":1,"x":508.8691101074219,"y":548.1547451019287,"z":"5629d16d.2ad96","wires":[["544711c4.26d07"]]},{"id":"544711c4.26d07","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":707.0238647460938,"y":547.9761257171631,"z":"5629d16d.2ad96","wires":[["caa83c5c.69383","72870d7a.a57af4"]]},{"id":"1570d296.5420fd","type":"set","name":"set vnf-ids_length to 0","xml":"<set>\n<parameter name='vnf-ids_length' value='0' />\n","comments":"","x":508.51195526123047,"y":500.2975969314575,"z":"5629d16d.2ad96","wires":[]},{"id":"caa83c5c.69383","type":"set","name":"add source vnf to vnf-ids","xml":"<set>\n<parameter name='vnf-ids[$vnf-ids_length]' value='`$db.path-segment[$path-segment-index].source-association-uuid`' />\n<parameter name='vnf-ids_length' value='`$vnf-ids_length + 1`' />\n","comments":"","x":921.0119667053223,"y":526.5475978851318,"z":"5629d16d.2ad96","wires":[]},{"id":"72870d7a.a57af4","type":"switchNode","name":"is this the last path-segment?","xml":"<switch test='`$path-segment-index == ( $db.path-segment_length - 1) `'>\n","comments":"","outputs":1,"x":936.0119705200195,"y":571.5475997924805,"z":"5629d16d.2ad96","wires":[["a92ddc01.5347d"]]},{"id":"a92ddc01.5347d","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1132.2619724273682,"y":571.2975997924805,"z":"5629d16d.2ad96","wires":[["7160408b.72538"]]},{"id":"7160408b.72538","type":"set","name":"add target vnf to vnf-ids","xml":"<set>\n<parameter name='vnf-ids[$vnf-ids_length]' value='`$db.path-segment[$path-segment-index].target-association-uuid`' />\n<parameter name='vnf-ids_length' value='`$vnf-ids_length + 1`' />\n","comments":"","x":1308.761978149414,"y":570.5475997924805,"z":"5629d16d.2ad96","wires":[]},{"id":"c46f5c01.ea23","type":"comment","name":"create list of vnf ids","info":"","comments":"","x":1061.5119667053223,"y":486.46427059173584,"z":"5629d16d.2ad96","wires":[]},{"id":"4e5c686c.598f68","type":"get-resource","name":"custom query - get runtime service-instances","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"custom-query\"\n\tkey=\"format = 'resource'\"\n\tforce=\"true\"\n\tlocal-only=\"false\"\n\tpfx=\"aai.service-instances\" >\n\t<parameter name=\"start[0]\" value=\"`'nodes/service-instances?model-invariant-id=' + $getpathsegment-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"start_length\" value=\"1\" />\n","comments":"","outputs":1,"x":578.5119247436523,"y":656.5476264953613,"z":"5629d16d.2ad96","wires":[["50c8b7f0.7a0d88","a18652d3.89a29","30dab3b9.4e949c"]]},{"id":"a18652d3.89a29","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":846.5081748962402,"y":658.4484806060791,"z":"5629d16d.2ad96","wires":[["f673ab2c.5baed8"]]},{"id":"50c8b7f0.7a0d88","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":855.4367713928223,"y":616.7342138290405,"z":"5629d16d.2ad96","wires":[["fb8a502b.b988a"]]},{"id":"2cea7227.951c0e","type":"for","name":"for each runtime service-instance","xml":"<for index='runtime-index' start='0' end='`$runtime_length`' >\n","comments":"","outputs":1,"x":700.7143859863281,"y":1168.2143034934998,"z":"5629d16d.2ad96","wires":[["fd97fac0.40b238"]]},{"id":"fd97fac0.40b238","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":939.4643936157227,"y":1168.2143034934998,"z":"5629d16d.2ad96","wires":[["11207a1.3861786","2605dfb2.94c51","507014d7.88ea1c","38a95673.ed10aa","64270aaa.060174"]]},{"id":"11207a1.3861786","type":"execute","name":"generate port-mirror-configuration url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.service`\"/>\n <parameter name=\"outputPath\" value=\"tmp.service-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$serv-inst.service-instance-id`\"/>\n","comments":"","outputs":1,"x":1210.9525451660156,"y":1253.1548552513123,"z":"5629d16d.2ad96","wires":[[]]},{"id":"2605dfb2.94c51","type":"execute","name":"execute RestApiCallNode - get service","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.service-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-service\" />\n\n","comments":"","outputs":1,"x":1215.1191101074219,"y":1319.1666865348816,"z":"5629d16d.2ad96","wires":[["ddfea20f.b1765","25f8aad7.178826"]]},{"id":"ddfea20f.b1765","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1462.4983558654785,"y":1192.5340704917908,"z":"5629d16d.2ad96","wires":[["7d24215a.3f9a"]]},{"id":"25f8aad7.178826","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1456.547752380371,"y":1450.4166073799133,"z":"5629d16d.2ad96","wires":[["fb3d69b8.66a0c8"]]},{"id":"a34a7c52.b74ff","type":"comment","name":"Is this service in GENERIC-RESOURCE-API?","info":"","comments":"","x":1258.2143859863281,"y":1113.750009059906,"z":"5629d16d.2ad96","wires":[]},{"id":"d312f25b.03d12","type":"call","name":"call GENERIC-RESOURCE-API:getpathsegment-populate-from-grapi","xml":"<call module='GENERIC-RESOURCE-API' rpc='getpathsegment-populate-from-grapi' mode='sync' >\n","comments":"","outputs":1,"x":2421.7858123779297,"y":1237.5000100135803,"z":"5629d16d.2ad96","wires":[[]]},{"id":"f82d1a28.9d5758","type":"call","name":"call GENERIC-RESOURCE-API:getpathsegment-populate-from-vnfapi","xml":"<call module='GENERIC-RESOURCE-API' rpc='getpathsegment-populate-from-vnfapi' mode='sync' >\n","comments":"","outputs":1,"x":2259.464401245117,"y":1437.1428742408752,"z":"5629d16d.2ad96","wires":[[]]},{"id":"41d349bc.0562d8","type":"set","name":"set match-type","xml":"<set>\n<parameter name='match-type' value='network-name' />\n","comments":"","x":293.8452491760254,"y":244.21429347991943,"z":"5629d16d.2ad96","wires":[]},{"id":"d5e62d12.0598","type":"call","name":"call GENERIC-RESOURCE-API:getpathsegment-simple-match-pair","xml":"<call module='GENERIC-RESOURCE-API' rpc='getpathsegment-simple-match-pair' mode='sync' >\n","comments":"","outputs":1,"x":803.0359039306641,"y":1643.3930268287659,"z":"5629d16d.2ad96","wires":[[]]},{"id":"d93608d4.fa2628","type":"set","name":"set serv-insts_length to 0","xml":"<set>\n<parameter name='serv-insts_length' value='0' />\n","comments":"","x":683.6786804199219,"y":906.0715222358704,"z":"5629d16d.2ad96","wires":[]},{"id":"507014d7.88ea1c","type":"set","name":"clear mdsal-service and serv-inst.api","xml":"<set>\n<parameter name='mdsal-service.' value='' />\n<parameter name='serv-inst.api' value='' />\n","comments":"","x":1211.2857971191406,"y":1157.6785979270935,"z":"5629d16d.2ad96","wires":[]},{"id":"38a95673.ed10aa","type":"set","name":"set serv-inst.service-instance-id","xml":"<set>\n<parameter name='serv-inst.service-instance-id' value='`$runtime-ids[$runtime-index]`' />\n","comments":"","x":1202.4286346435547,"y":950.5357565879822,"z":"5629d16d.2ad96","wires":[]},{"id":"1025d445.92700c","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'Failure finding service instance ' + $serv-inst.service-instance-id + ' in either GENERIC-REOURCE-API or VNF-API'`\" />\n","comments":"","x":2494.285732269287,"y":1490.357096672058,"z":"5629d16d.2ad96","wires":[]},{"id":"8cb5384e.5fac18","type":"success","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2298.035873413086,"y":1562.0238308906555,"z":"5629d16d.2ad96","wires":[["e596d283.d108"]]},{"id":"36bbfe53.27e322","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2298.0357093811035,"y":1491.6071996688843,"z":"5629d16d.2ad96","wires":[["1025d445.92700c"]]},{"id":"d0b3e656.49f5b8","type":"switchNode","name":"switch serv-inst.api","xml":"<switch test='`$serv-inst.api`'>\n","comments":"","outputs":1,"x":2098.3930053710938,"y":1532.1428451538086,"z":"5629d16d.2ad96","wires":[["36bbfe53.27e322","8cb5384e.5fac18"]]},{"id":"fb3d69b8.66a0c8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1587.678623199463,"y":1453.214307308197,"z":"5629d16d.2ad96","wires":[["63df2c22.43c924"]]},{"id":"36ccefea.23688","type":"set","name":"copy serv-inst to serv-insts array","xml":"<set>\n<parameter name='serv-insts[$serv-insts_length].' value='`$serv-inst.`' />\n","comments":"","x":2685.5358352661133,"y":1536.607204914093,"z":"5629d16d.2ad96","wires":[]},{"id":"b01279d.0b32c88","type":"set","name":"increment serv-insts_length","xml":"<set>\n<parameter name='serv-insts_length' value='`$serv-insts_length + 1`' />\n","comments":"","x":2670.7858123779297,"y":1591.6071934700012,"z":"5629d16d.2ad96","wires":[]},{"id":"848cf29d.edb6a","type":"set","name":"copy serv-inst to serv-insts array","xml":"<set>\n<parameter name='serv-insts[$serv-insts_length].' value='`$serv-inst.`' />\n","comments":"","x":2306.4286346435547,"y":1281.9643054008484,"z":"5629d16d.2ad96","wires":[]},{"id":"50bf0848.ed4ac8","type":"set","name":"increment serv-insts_length","xml":"<set>\n<parameter name='serv-insts_length' value='`$serv-insts_length + 1`' />\n","comments":"","x":2286.6786346435547,"y":1330.7143063545227,"z":"5629d16d.2ad96","wires":[]},{"id":"7d24215a.3f9a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1593.9286193847656,"y":1191.964292049408,"z":"5629d16d.2ad96","wires":[["2bf6e158.bfceae","d0db37ac.abed08","313a3809.e4ff88"]]},{"id":"e596d283.d108","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2449.285804748535,"y":1561.6071877479553,"z":"5629d16d.2ad96","wires":[["36ccefea.23688","b01279d.0b32c88"]]},{"id":"954eddda.d0e1c","type":"for","name":"for each runtime service-instance from A&AI","xml":"<for index='runtime-index' start='0' end='`$aai.service-instances.results_length`' >\n","comments":"","outputs":1,"x":741.4286499023438,"y":839.4642996788025,"z":"5629d16d.2ad96","wires":[["f18dec3.470431"]]},{"id":"f18dec3.470431","type":"switchNode","name":"switch orchestration-status","xml":"<switch test='`$aai.service-instances.results[$runtime-index].service-instance.orchestration-status`'>\n","comments":"","outputs":1,"x":1050.1786193847656,"y":839.4642987251282,"z":"5629d16d.2ad96","wires":[["bf73912e.28721"]]},{"id":"bf73912e.28721","type":"outcome","name":"Active","xml":"<outcome value='Active'>\n","comments":"","outputs":1,"x":1248.9286041259766,"y":838.214289188385,"z":"5629d16d.2ad96","wires":[["dd9206a2.3c51c8"]]},{"id":"dd9206a2.3c51c8","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1410.1786041259766,"y":835.714289188385,"z":"5629d16d.2ad96","wires":[["b75aacd8.aff2a","7e6d7170.bd2ef"]]},{"id":"b75aacd8.aff2a","type":"set","name":"store service-instance-id","xml":"<set>\n<parameter name='runtime-ids[$runtime_length]' value='`$aai.service-instances.results[$runtime-index].service-instance.service-instance-id`' />\n","comments":"","x":1601.4286193847656,"y":812.7976064682007,"z":"5629d16d.2ad96","wires":[]},{"id":"f1440634.84c218","type":"set","name":"set runtime_length to 0","xml":"<set>\n<parameter name='runtime_length' value='0' />\n","comments":"","x":676.4286041259766,"y":789.464289188385,"z":"5629d16d.2ad96","wires":[]},{"id":"7e6d7170.bd2ef","type":"set","name":"set increment runtime_length","xml":"<set>\n<parameter name='runtime_length' value='`$runtime_length + 1`' />\n","comments":"","x":1616.0119132995605,"y":855.2976288795471,"z":"5629d16d.2ad96","wires":[]},{"id":"2e8ac8c0.7d70a8","type":"for","name":"for each serv-insts","xml":"<for index='serv-index' start='0' end='`$serv-insts_length`' >\n","comments":"","outputs":1,"x":624.1666488647461,"y":2187.2023816108704,"z":"5629d16d.2ad96","wires":[["627c4436.c6363c"]]},{"id":"6a089d93.c561b4","type":"comment","name":"Create forwarding-path structure","info":"","comments":"","x":1850.2380981445312,"y":1713.9880814552307,"z":"5629d16d.2ad96","wires":[]},{"id":"67d6eb5d.aecaf4","type":"set","name":"set top-level data","xml":"<set>\n<parameter name='forwarding-path.forwarding-path-name' value='`$db.path-segment[0].path-name`' />\n<parameter name='forwarding-path.forwarding-path-type' value='VNF' />\n<parameter name='forwarding-path.onap-model-information.model-name' value='`$db.path-segment[0].path-name`' />\n<parameter name='forwarding-path.service-paths.service-path_length' value='1' />\n<parameter name='forwarding-path.service-paths.service-path[0].service-path-instance-name'\n value='`$db.path-segment[0].path-name + $forwarding-path.service-paths.service-path[0].service-path-instance-id`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service_length' value='1' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].service-instance-id'\n value='`$serv-insts[$serv-index].service-instance-id`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].service-path-sequence-id' value='1' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf_length'\n value='`$serv-insts[$serv-index].path-segments_length`' />\n","comments":"","x":1713.9284362792969,"y":1845.2976641654968,"z":"5629d16d.2ad96","wires":[]},{"id":"df485e3e.9e56d","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1496.2498931884766,"y":2203.452546596527,"z":"5629d16d.2ad96","wires":[["67d6eb5d.aecaf4","6d4773c1.e5744c","214e6fa8.67a2d","11af2729.a769f9","19011bc0.d12e74","d098ba8b.a3df28","f0d2a389.89135","491426c8.70e218","5bdb2ffa.bd158","29c194e4.ffaaec","b4ae1cfc.2d5e8","4177217a.70cc7","9b387be2.dc2b18","1f8a0d2b.888443"]]},{"id":"627c4436.c6363c","type":"switchNode","name":"switch api","xml":"<switch test='`$serv-insts[$serv-index].api`'>\n","comments":"","outputs":1,"x":797.9166488647461,"y":2187.2023816108704,"z":"5629d16d.2ad96","wires":[["426b047f.dbd57c","9059fd9c.5d30b"]]},{"id":"426b047f.dbd57c","type":"outcome","name":"GR","xml":"<outcome value='GR'>\n","comments":"","outputs":1,"x":937.9166526794434,"y":2164.7023816108704,"z":"5629d16d.2ad96","wires":[["c67bb294.bc315"]]},{"id":"9059fd9c.5d30b","type":"outcome","name":"VNF","xml":"<outcome value='VNF'>\n","comments":"","outputs":1,"x":937.9166526794434,"y":2205.952383518219,"z":"5629d16d.2ad96","wires":[["c67bb294.bc315"]]},{"id":"6d4773c1.e5744c","type":"for","name":"for each subsequent path segment","xml":"<for index='ps-index' start='1' end='`$serv-insts[$serv-index].path-segments_length`' >\n","comments":"","outputs":1,"x":1763.9284362792969,"y":1979.0476641654968,"z":"5629d16d.2ad96","wires":[["902c5891.668ab8"]]},{"id":"b6018a90.ab7608","type":"set","name":"set vnf level data","xml":"<set>\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index].vnf-path-sequence-id'\n value='`$ps-index + 1`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index].vnf-instance-id'\n value='`$serv-insts[$serv-index].path-segments[$ps-index].left-vnf-instance-id`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index].left-network-name'\n value='`$prev-network-name`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index].left-network-role'\n value='`$prev-network-role`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index].right-network-name'\n value='`$serv-insts[$serv-index].path-segments[$ps-index].network-name`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index].right-network-role'\n value='`$serv-insts[$serv-index].path-segments[$ps-index].network-role`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index].vf-module-instance.vf-module-id'\n value='`$serv-insts[$serv-index].path-segments[$ps-index].left-vf-module-id`' />\n","comments":"","x":2142.6784439086914,"y":1952.7976660728455,"z":"5629d16d.2ad96","wires":[]},{"id":"214e6fa8.67a2d","type":"set","name":"set first vnf data","xml":"<set>\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[0].vnf-path-sequence-id'\n value='1' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[0].vnf-instance-id'\n value='`$serv-insts[$serv-index].path-segments[0].left-vnf-instance-id`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[0].right-network-name'\n value='`$serv-insts[$serv-index].path-segments[0].network-name`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[0].right-network-role'\n value='`$serv-insts[$serv-index].path-segments[0].network-role`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[0].vf-module-instance.vf-module-id'\n value='`$serv-insts[$serv-index].path-segments[0].left-vf-module-id`' />\n","comments":"","x":1710.1784362792969,"y":1887.7976632118225,"z":"5629d16d.2ad96","wires":[]},{"id":"11af2729.a769f9","type":"set","name":"set prev values","xml":"<set>\n<parameter name='prev-network-name' value='`$serv-insts[$serv-index].path-segments[0].network-name`' />\n<parameter name='prev-network-role' value='`$serv-insts[$serv-index].path-segments[0].network-role`' />\n","comments":"","x":1707.6784362792969,"y":1932.7976641654968,"z":"5629d16d.2ad96","wires":[]},{"id":"548baaaf.cc4134","type":"set","name":"set prev values","xml":"<set>\n<parameter name='prev-network-name' value='`$serv-insts[$serv-index].path-segments[$ps-index].network-name`' />\n<parameter name='prev-network-role' value='`$serv-insts[$serv-index].path-segments[$ps-index].network-role`' />\n","comments":"","x":2137.6784439086914,"y":2000.297667980194,"z":"5629d16d.2ad96","wires":[]},{"id":"902c5891.668ab8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1975.1784210205078,"y":1977.7976431846619,"z":"5629d16d.2ad96","wires":[["b6018a90.ab7608","548baaaf.cc4134"]]},{"id":"19011bc0.d12e74","type":"set","name":"set last vnf data","xml":"<set>\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index + 1].vnf-path-sequence-id'\n value='`$ps-index + 2`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index + 1].vnf-instance-id'\n value='`$serv-insts[$serv-index].path-segments[$ps-index].right-vnf-instance-id`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index + 1].left-network-name'\n value='`$prev-network-name`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index + 1].left-network-role'\n value='`$prev-network-role`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index + 1].vf-module-instance.vf-module-id'\n value='`$serv-insts[$serv-index].path-segments[$ps-index].right-vf-module-id`' />\n","comments":"","x":1705.1784362792969,"y":2027.7976660728455,"z":"5629d16d.2ad96","wires":[]},{"id":"d098ba8b.a3df28","type":"set","name":"set vnf_length","xml":"<set>\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf_length'\n value='`$serv-insts[$serv-index].path-segments_length + 1`' />\n","comments":"","x":1696.4284362792969,"y":2076.54766702652,"z":"5629d16d.2ad96","wires":[]},{"id":"29c194e4.ffaaec","type":"execute","name":"execute RestApiCallNode - PUT forwarding-path","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.forwardingpath.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.fp-url + $forwarding-path.forwarding-path-id`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-fp\" />\n\n","comments":"","outputs":1,"x":1797.797264099121,"y":2602.5596022605896,"z":"5629d16d.2ad96","wires":[["6b24d135.106e5","6756a9be.3589b8"]]},{"id":"6b24d135.106e5","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2068.2837982177734,"y":2626.807873249054,"z":"5629d16d.2ad96","wires":[["6be686e3.d317a8"]]},{"id":"6756a9be.3589b8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2060.712432861328,"y":2585.3078932762146,"z":"5629d16d.2ad96","wires":[["6be686e3.d317a8"]]},{"id":"6be686e3.d317a8","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarding-path to MD-SAL\" />\n","comments":"","x":2280.2972717285156,"y":2600.0596022605896,"z":"5629d16d.2ad96","wires":[]},{"id":"2bf6e158.bfceae","type":"switchNode","name":"for each existing forwarding path","xml":"<for silentFailure='true' index='fp-index' start='0' end='`$mdsal-service.service[0].service-data.forwarding-paths.forwarding-path_length`' >\n","comments":"","outputs":1,"x":1833.9286270141602,"y":1176.9643034934998,"z":"5629d16d.2ad96","wires":[["f7c714ad.2bad38"]]},{"id":"d0db37ac.abed08","type":"set","name":"set found-path = false","xml":"<set>\n<parameter name='found-path' value='false' />\n","comments":"","x":1801.4286270141602,"y":1121.9643034934998,"z":"5629d16d.2ad96","wires":[]},{"id":"f7c714ad.2bad38","type":"switchNode","name":"does the forwarding path name match?","xml":"<switch test='`$mdsal-service.service[0].service-data.forwarding-paths.forwarding-path[$fp-index].forwarding-path-name\n == $db.path-segment[0].path-name`'>\n","comments":"","outputs":1,"x":2156.42862701416,"y":1175.7143034934998,"z":"5629d16d.2ad96","wires":[["eea9da0f.918148"]]},{"id":"eea9da0f.918148","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2386.4286346435547,"y":1174.4643034934998,"z":"5629d16d.2ad96","wires":[["7cb3f8f1.85eb48"]]},{"id":"7cb3f8f1.85eb48","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2515.178638458252,"y":1173.2143034934998,"z":"5629d16d.2ad96","wires":[["5754527f.58050c","8adff36e.3c1ee"]]},{"id":"5754527f.58050c","type":"set","name":"set found-path = true","xml":"<set>\n<parameter name='found-path' value='true' />\n","comments":"","x":2692.678638458252,"y":1145.7143034934998,"z":"5629d16d.2ad96","wires":[]},{"id":"8adff36e.3c1ee","type":"break","name":"break","xml":"<break>\n","comments":"","x":2645.1786041259766,"y":1193.2142901420593,"z":"5629d16d.2ad96","wires":[]},{"id":"313a3809.e4ff88","type":"switchNode","name":"switch found-path","xml":"<switch test='`$found-path`'>\n","comments":"","outputs":1,"x":1785.1786270141602,"y":1276.9643054008484,"z":"5629d16d.2ad96","wires":[["97b04b5c.cc2cb8"]]},{"id":"97b04b5c.cc2cb8","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1952.6786270141602,"y":1275.7143054008484,"z":"5629d16d.2ad96","wires":[["cb6588b3.927c18"]]},{"id":"cb6588b3.927c18","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2083.9286041259766,"y":1274.4642901420593,"z":"5629d16d.2ad96","wires":[["d312f25b.03d12","848cf29d.edb6a","50bf0848.ed4ac8"]]},{"id":"f0d2a389.89135","type":"execute","name":"generate forwarding-path-id","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n<parameter name=\"ctx-destination\" value=\"forwarding-path.forwarding-path-id\" />\n","comments":"","outputs":1,"x":1746.0117454528809,"y":1757.7975754737854,"z":"5629d16d.2ad96","wires":[[]]},{"id":"491426c8.70e218","type":"execute","name":"generate service-path-instance-id","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n<parameter name=\"ctx-destination\" value=\"forwarding-path.service-paths.service-path[0].service-path-instance-id\" />\n","comments":"","outputs":1,"x":1764.3450775146484,"y":1800.2977395057678,"z":"5629d16d.2ad96","wires":[[]]},{"id":"5bdb2ffa.bd158","type":"switchNode","name":"switch api","xml":"<switch test='`$serv-insts[$serv-index].api`'>\n","comments":"","outputs":1,"x":1680.1188850402832,"y":2255.893068790436,"z":"5629d16d.2ad96","wires":[["a1a0cae2.cf1708","7db03a9d.ab68a4"]]},{"id":"a1a0cae2.cf1708","type":"outcome","name":"GR","xml":"<outcome value='GR'>\n","comments":"","outputs":1,"x":1831.7855987548828,"y":2141.7262177467346,"z":"5629d16d.2ad96","wires":[["f2ab2652.039508"]]},{"id":"7db03a9d.ab68a4","type":"outcome","name":"VNF","xml":"<outcome value='VNF'>\n","comments":"","outputs":1,"x":1827.4403438568115,"y":2382.869236469269,"z":"5629d16d.2ad96","wires":[["4b154329.3644ec"]]},{"id":"4b154329.3644ec","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1961.1903285980225,"y":2382.6192116737366,"z":"5629d16d.2ad96","wires":[["f9ae246a.e84cd8","983ef71a.da7d78","4c9a08e9.01d9f8","80ee9321.e385d","ae5db14f.68538"]]},{"id":"f9ae246a.e84cd8","type":"execute","name":"generate service-instance-id","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n<parameter name=\"ctx-destination\" value=\"tmp.service-instance-id\" />\n","comments":"","outputs":1,"x":2167.8570671081543,"y":2281.9049582481384,"z":"5629d16d.2ad96","wires":[[]]},{"id":"1f8a0d2b.888443","type":"execute","name":"generate forwarding-path url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.forwarding-path`\"/>\n <parameter name=\"outputPath\" value=\"tmp.fp-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.service-instance-id`\"/>\n","comments":"","outputs":1,"x":1735.714096069336,"y":2545.47572183609,"z":"5629d16d.2ad96","wires":[[]]},{"id":"8d090eb7.070a8","type":"comment","name":"Make a new service instance in GR-API","info":"","comments":"","x":2274.1069869995117,"y":2244.8214716911316,"z":"5629d16d.2ad96","wires":[]},{"id":"a46d416f.1a345","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/gps.log' />\n","comments":"","outputs":1,"x":632.2619171142578,"y":1701.964307308197,"z":"5629d16d.2ad96","wires":[[]]},{"id":"c67bb294.bc315","type":"switchNode","name":"switch path-segments_length","xml":"<switch test='`$serv-insts[$serv-index].path-segments_length`'>\n","comments":"","outputs":1,"x":1139.1667098999023,"y":2182.2023825645447,"z":"5629d16d.2ad96","wires":[["85251f33.38b5d","208c3acb.b76f26","eb2e3f83.248d9"]]},{"id":"eb2e3f83.248d9","type":"success","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1352.499927520752,"y":2207.2023844718933,"z":"5629d16d.2ad96","wires":[["df485e3e.9e56d"]]},{"id":"85251f33.38b5d","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1354.999927520752,"y":2110.952624797821,"z":"5629d16d.2ad96","wires":[["b2a1f74e.a0d9f8"]]},{"id":"208c3acb.b76f26","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1354.166675567627,"y":2153.869128704071,"z":"5629d16d.2ad96","wires":[["b2a1f74e.a0d9f8"]]},{"id":"b2a1f74e.a0d9f8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1495.8332252502441,"y":2132.2024211883545,"z":"5629d16d.2ad96","wires":[[]]},{"id":"683c3990.4dec28","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1565.357032775879,"y":1020.8928046226501,"z":"5629d16d.2ad96","wires":[["45c3f393.2082bc","477131b1.1c0c2"]]},{"id":"64270aaa.060174","type":"save","name":"custom query: get service instance","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource_and_url'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.si\">\n\t<parameter name=\"start[0]\" value=\"`'nodes/service-instance/' + $serv-inst.service-instance-id `\" />\n\t<parameter name=\"start_length\" value=\"1\" />\n","comments":"","outputs":1,"x":1210.3569946289062,"y":1022.559576511383,"z":"5629d16d.2ad96","wires":[["b6eca96f.d32ca8"]]},{"id":"45c3f393.2082bc","type":"execute","name":"execute split","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n\t<parameter name=\"original_string\" value=\"`$tmp.AnAI-data.si.results[0].url`\" />\n\t<parameter name=\"regex\" value=\"/\"/>\n\t<parameter name=\"limit\" value=\"11\" />\n\t<parameter name=\"ctx_memory_result_key\" value=\"split\" />\n","comments":"","outputs":1,"x":1714.4045639038086,"y":996.8453507423401,"z":"5629d16d.2ad96","wires":[[]]},{"id":"b6eca96f.d32ca8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1432.0237197875977,"y":1022.2261891365051,"z":"5629d16d.2ad96","wires":[["683c3990.4dec28"]]},{"id":"477131b1.1c0c2","type":"set","name":"set global-customer-id, etc","xml":"<set>\n<parameter name='output-global-customer-id' value='`$split[6]`' />\n<parameter name='output-service-type' value='`$split[9]`' />\n<parameter name='output-service-role' value='`$tmp.AnAI-data.si.results[0].service-instance.service-role`' />\n","comments":"","x":1758.2141189575195,"y":1047.5595059394836,"z":"5629d16d.2ad96","wires":[]},{"id":"80ee9321.e385d","type":"save","name":"save service-instance to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\" \n\tkey=\"customer.global-customer-id = $output-global-customer-id\n\t AND service-subscription.service-type = $output-service-type\n\t AND service-instance.service-instance-id = $tmp.service-instance-id\" >\n<parameter name=\"service-instance-id\" value=\"`$tmp.service-instance-id`\" />\n<parameter name=\"global-customer-id\" value=\"`$output-global-customer-id`\" />\n<parameter name=\"service-type\" value=\"`$output-service-type`\" />\n<parameter name=\"service-role\" value=\"`$output-service-role`\" />\n","comments":"","outputs":1,"x":2173.452423095703,"y":2455.4165325164795,"z":"5629d16d.2ad96","wires":[["d5fedeb1.c6453","2cc58f82.b2f37"]]},{"id":"b329030f.6943d","type":"comment","name":"Make a new service instance in A&AI","info":"","comments":"","x":2262.500144958496,"y":2405.892997264862,"z":"5629d16d.2ad96","wires":[]},{"id":"b4ae1cfc.2d5e8","type":"save","name":"save forwarding-path to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"forwarding-path\" \n\tkey=\"forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[0].service-path-instance-id\" >\n<parameter name=\"forwarding-path-id\" value=\"`$forwarding-path.service-paths.service-path[0].service-path-instance-id`\" />\n<parameter name=\"forwarding-path-name\" value=\"`$forwarding-path.service-paths.service-path[0].service-path-instance-name`\" />\n<parameter name=\"selflink\" value=\"`'/restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $tmp.service-instance-id\n + '/forwarding-paths/forwarding-path/'\n + $forwarding-path.forwarding-path-id\n + '/services-paths/service-path/'\n + $forwarding-path.service-paths.service-path[0].service-path-instance-id`\" />\n","comments":"","outputs":1,"x":1737.4999694824219,"y":2695.416627883911,"z":"5629d16d.2ad96","wires":[["570c5c1d.a84184","100184f6.a8fcdb"]]},{"id":"4177217a.70cc7","type":"save","name":"save forwarding-path relationship to service-instance","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"forwarding-path:relationship-list\"\n key=\"forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[0].service-path-instance-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"service-instance\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/business/customers/customer/'\n + $output-global-customer-id\n + '/service-subscriptions/service-subscription/'\n + $output-service-type\n + '/service-instances/service-instance/'\n + $tmp.service-instance-id`\" />\n","comments":"","outputs":1,"x":1807.5000610351562,"y":2777.321086883545,"z":"5629d16d.2ad96","wires":[["e5653651.b903c8","eebbf2de.ab99c"]]},{"id":"9b387be2.dc2b18","type":"for","name":"for each vnf","xml":"<for index='vnf-index' start='0' end='`$forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":1678.9283981323242,"y":2904.464366912842,"z":"5629d16d.2ad96","wires":[["f601972.d913268"]]},{"id":"f601972.d913268","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1830.3570861816406,"y":2904.035620689392,"z":"5629d16d.2ad96","wires":[["ad9f625f.82ae3","86151834.e1db48"]]},{"id":"ad9f625f.82ae3","type":"save","name":"save forwarder to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"forwarder\" \n\tkey=\"forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[0].service-path-instance-id AND forwarder.sequence = $forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$vnf-index].vnf-path-sequence-id\" >\n<parameter name=\"sequence\" value=\"`$forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$vnf-index].vnf-path-sequence-id`\" />\n","comments":"","outputs":1,"x":2006.3570861816406,"y":2861.60693359375,"z":"5629d16d.2ad96","wires":[["4bd05c77.8bf2c4","cb4dc21b.d4dc6"]]},{"id":"86151834.e1db48","type":"save","name":"save forwarder relationship to generic-vnf","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"forwarder:relationship-list\"\n key=\"forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[0].service-path-instance-id\n AND forwarder.sequence = $forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$vnf-index].vnf-path-sequence-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/generic-vnfs/generic-vnf/'\n + $forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$vnf-index].vnf-instance-id`\" />\n","comments":"","outputs":1,"x":2060.357048034668,"y":2947.55947971344,"z":"5629d16d.2ad96","wires":[["5201ac9b.81d914","cf4a6c9f.ce33c"]]},{"id":"4c9a08e9.01d9f8","type":"execute","name":"execute RestApiCallNode - PUT service-instance","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.csm.serviceinstance.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.service-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-sr\" />\n\n","comments":"","outputs":1,"x":2232.857192993164,"y":2368.571464061737,"z":"5629d16d.2ad96","wires":[["67e628d8.b9a9b8"]]},{"id":"983ef71a.da7d78","type":"execute","name":"generate service-instance url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.service`\"/>\n <parameter name=\"outputPath\" value=\"tmp.service-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.service-instance-id`\"/>\n","comments":"","outputs":1,"x":2169.107192993164,"y":2326.0714631080627,"z":"5629d16d.2ad96","wires":[[]]},{"id":"f2ab2652.039508","type":"set","name":"set tmp.service-instance-id","xml":"<set>\n<parameter name='tmp.service-instance-id' value='`$serv-insts[$serv-index].service-instance-id`' />\n","comments":"","x":2023.9287490844727,"y":2141.1785759925842,"z":"5629d16d.2ad96","wires":[]},{"id":"ae5db14f.68538","type":"save","name":"save SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING ","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\nkey=\"INSERT INTO SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING\n (simple_service_instance_id, forwarding_path_service_instance_id)\n VALUES ( $serv-insts[$serv-index].service-instance-id , $tmp.service-instance-id )\" >","comments":"","outputs":1,"x":2297.9761810302734,"y":2511.6070461273193,"z":"5629d16d.2ad96","wires":[[]]},{"id":"83141530.82c518","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2316.785617828369,"y":1379.1786713600159,"z":"5629d16d.2ad96","wires":[["b3cd7e32.1311e"]]},{"id":"63df2c22.43c924","type":"get-resource","name":"get-resource SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='select forwarding_path_service_instance_id\n from SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING\n where simple_service_instance_id = $serv-inst.service-instance-id'\n pfx='db.sitcim'>\n","comments":"","outputs":1,"x":1955.2857208251953,"y":1378.7979912757874,"z":"5629d16d.2ad96","wires":[["83141530.82c518"]]},{"id":"b3cd7e32.1311e","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1929.6429634094238,"y":1485.8929257392883,"z":"5629d16d.2ad96","wires":[["f82d1a28.9d5758","d0b3e656.49f5b8"]]},{"id":"a32e6237.6daf3","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":725.9285316467285,"y":312.1309576034546,"z":"5629d16d.2ad96","wires":[["3e23f4b0.7933cc"]]},{"id":"39c3eea1.efd8a2","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":725.9285545349121,"y":357.1309471130371,"z":"5629d16d.2ad96","wires":[["9ec522bf.66732"]]},{"id":"3e23f4b0.7933cc","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'System error reading PATH_SEGMENT table for uuid '\n + $getpathsegment-topology-operation-input.service-information.onap-model-information.model-uuid\n + ' and path '\n + $db.forwarding-path[$path-index].path-name`\" />\n","comments":"","x":925.9286766052246,"y":310.4642915725708,"z":"5629d16d.2ad96","wires":[]},{"id":"9ec522bf.66732","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'No entries in PATH_SEGMENT table for uuid '\n + $getpathsegment-topology-operation-input.service-information.onap-model-information.model-uuid\n + ' and path '\n + $db.forwarding-path[$path-index].path-name`\" />\n","comments":"","x":925.9284934997559,"y":357.1309471130371,"z":"5629d16d.2ad96","wires":[]},{"id":"5581a414.fb2c9c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":577.5952529907227,"y":400.46430587768555,"z":"5629d16d.2ad96","wires":[["6ce2ff77.93b44"]]},{"id":"6ce2ff77.93b44","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":312.26190185546875,"y":574.4642467498779,"z":"5629d16d.2ad96","wires":[["1570d296.5420fd","6ae56929.26b358","4e5c686c.598f68"]]},{"id":"fb8a502b.b988a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":997.2618865966797,"y":616.1309127807617,"z":"5629d16d.2ad96","wires":[["c62d489d.61a668"]]},{"id":"f673ab2c.5baed8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":997.2619094848633,"y":659.1309022903442,"z":"5629d16d.2ad96","wires":[["709cc4e9.5f8a1c"]]},{"id":"709cc4e9.5f8a1c","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'System error calling AAI to get run-time service instances for invariant uuid '\n + $getpathsegment-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`\" />\n","comments":"","x":1187.2621154785156,"y":659.4642295837402,"z":"5629d16d.2ad96","wires":[]},{"id":"c62d489d.61a668","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'No run-time service instances in AAI for invariant uuid '\n + $getpathsegment-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`\" />\n","comments":"","x":1185.59525680542,"y":616.1309595108032,"z":"5629d16d.2ad96","wires":[]},{"id":"30dab3b9.4e949c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":848.9285125732422,"y":702.7975997924805,"z":"5629d16d.2ad96","wires":[["cf0a30ca.a8fbb"]]},{"id":"cf0a30ca.a8fbb","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":297.26189041137695,"y":1471.1309490203857,"z":"5629d16d.2ad96","wires":[["f1440634.84c218","954eddda.d0e1c","d93608d4.fa2628","2cea7227.951c0e","d5e62d12.0598","a46d416f.1a345","2e8ac8c0.7d70a8"]]},{"id":"100184f6.a8fcdb","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1945.595199584961,"y":2714.464129447937,"z":"5629d16d.2ad96","wires":[["d60f0907.9fd4d8"]]},{"id":"570c5c1d.a84184","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1938.0238342285156,"y":2672.9641494750977,"z":"5629d16d.2ad96","wires":[["d60f0907.9fd4d8"]]},{"id":"d60f0907.9fd4d8","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarding-path to AAI\" />\n","comments":"","x":2157.608673095703,"y":2687.7158584594727,"z":"5629d16d.2ad96","wires":[]},{"id":"eebbf2de.ab99c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2085.5952072143555,"y":2794.4642028808594,"z":"5629d16d.2ad96","wires":[["bf35846c.fd3a28"]]},{"id":"e5653651.b903c8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2078.02384185791,"y":2752.96422290802,"z":"5629d16d.2ad96","wires":[["bf35846c.fd3a28"]]},{"id":"bf35846c.fd3a28","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarding-path relationship to AAI\" />\n","comments":"","x":2297.6086807250977,"y":2767.715931892395,"z":"5629d16d.2ad96","wires":[]},{"id":"cb4dc21b.d4dc6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2188.928421020508,"y":2881.1309871673584,"z":"5629d16d.2ad96","wires":[["d39c3493.921458"]]},{"id":"4bd05c77.8bf2c4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2181.3570556640625,"y":2839.631007194519,"z":"5629d16d.2ad96","wires":[["d39c3493.921458"]]},{"id":"d39c3493.921458","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarder to AAI\" />\n","comments":"","x":2400.94189453125,"y":2854.382716178894,"z":"5629d16d.2ad96","wires":[]},{"id":"cf4a6c9f.ce33c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2297.261878967285,"y":2967.7974796295166,"z":"5629d16d.2ad96","wires":[["6613e9ab.9c4918"]]},{"id":"5201ac9b.81d914","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2289.69051361084,"y":2926.2974996566772,"z":"5629d16d.2ad96","wires":[["6613e9ab.9c4918"]]},{"id":"6613e9ab.9c4918","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarder relationship to AAI\" />\n","comments":"","x":2509.2753524780273,"y":2941.0492086410522,"z":"5629d16d.2ad96","wires":[]},{"id":"67e628d8.b9a9b8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2495.5950775146484,"y":2367.797538757324,"z":"5629d16d.2ad96","wires":[["d3a89de0.7df88"]]},{"id":"d3a89de0.7df88","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure creating service instance in MD-SAL\" />\n","comments":"","x":2685.5950775146484,"y":2366.130790710449,"z":"5629d16d.2ad96","wires":[]},{"id":"2cc58f82.b2f37","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2383.9285736083984,"y":2472.797538757324,"z":"5629d16d.2ad96","wires":[["36de329d.4c51fe"]]},{"id":"d5fedeb1.c6453","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2376.357208251953,"y":2431.297558784485,"z":"5629d16d.2ad96","wires":[["36de329d.4c51fe"]]},{"id":"36de329d.4c51fe","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure creating service instance in AAI\" />\n","comments":"","x":2579.2754077911377,"y":2446.049120903015,"z":"5629d16d.2ad96","wires":[]}]
\ No newline at end of file +[{"id":"22afe3b6.ac42ec","type":"dgstart","name":"DGSTART","outputs":1,"x":101.42857360839844,"y":85.71428680419922,"z":"5629d16d.2ad96","wires":[["aba57bc5.dd8d18"]]},{"id":"aba57bc5.dd8d18","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":216.71427154541016,"y":125.95239543914795,"z":"5629d16d.2ad96","wires":[["dd9830af.1b7fc"]]},{"id":"dd9830af.1b7fc","type":"method","name":"method getpathsegment-create-simple-path","xml":"<method rpc='getpathsegment-create-simple-path' mode='sync'>\n","comments":"","outputs":1,"x":209.8572006225586,"y":166.71428108215332,"z":"5629d16d.2ad96","wires":[["54f62c1c.ee8494"]]},{"id":"39e0fc73.43bb24","type":"comment","name":"getpathsegment-create-simple-path","info":"","comments":"","x":495.77342987060547,"y":33.30063056945801,"z":"5629d16d.2ad96","wires":[]},{"id":"54f62c1c.ee8494","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":116.09528350830078,"y":290.7412042617798,"z":"5629d16d.2ad96","wires":[["727b4caf.1cdc94","41d349bc.0562d8","a1cc7312.325ce"]]},{"id":"a1cc7312.325ce","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":257.91658782958984,"y":2895.298070907593,"z":"5629d16d.2ad96","wires":[]},{"id":"727b4caf.1cdc94","type":"get-resource","name":"get-resource PATH_SEGMENT","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from PATH_SEGMENT WHERE service_uuid = $getpathsegment-topology-operation-input.service-information.onap-model-information.model-uuid\n AND path_name = $db.forwarding-path[$path-index].path-name ORDER BY path_segment_seq'\n pfx='db.path-segment[]'>\n\n","comments":"","outputs":1,"x":343.5476188659668,"y":356.4761791229248,"z":"5629d16d.2ad96","wires":[["891f7699.dad768","2e7bfd35.86d932","5581a414.fb2c9c"]]},{"id":"891f7699.dad768","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":572.6663970947266,"y":313.8094177246094,"z":"5629d16d.2ad96","wires":[["a32e6237.6daf3"]]},{"id":"2e7bfd35.86d932","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":581.2378273010254,"y":357.09513092041016,"z":"5629d16d.2ad96","wires":[["39c3eea1.efd8a2"]]},{"id":"6ae56929.26b358","type":"for","name":"for each path segment","xml":"<for index='path-segment-index' start='0' end='`$db.path-segment_length`' >\n","comments":"","outputs":1,"x":508.8691101074219,"y":548.1547451019287,"z":"5629d16d.2ad96","wires":[["544711c4.26d07"]]},{"id":"544711c4.26d07","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":707.0238647460938,"y":547.9761257171631,"z":"5629d16d.2ad96","wires":[["caa83c5c.69383","72870d7a.a57af4"]]},{"id":"1570d296.5420fd","type":"set","name":"set vnf-ids_length to 0","xml":"<set>\n<parameter name='vnf-ids_length' value='0' />\n","comments":"","x":508.51195526123047,"y":500.2975969314575,"z":"5629d16d.2ad96","wires":[]},{"id":"caa83c5c.69383","type":"set","name":"add source vnf to vnf-ids","xml":"<set>\n<parameter name='vnf-ids[$vnf-ids_length]' value='`$db.path-segment[$path-segment-index].source-association-uuid`' />\n<parameter name='vnf-ids_length' value='`$vnf-ids_length + 1`' />\n","comments":"","x":921.0119667053223,"y":526.5475978851318,"z":"5629d16d.2ad96","wires":[]},{"id":"72870d7a.a57af4","type":"switchNode","name":"is this the last path-segment?","xml":"<switch test='`$path-segment-index == ( $db.path-segment_length - 1) `'>\n","comments":"","outputs":1,"x":936.0119705200195,"y":571.5475997924805,"z":"5629d16d.2ad96","wires":[["a92ddc01.5347d"]]},{"id":"a92ddc01.5347d","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1132.2619724273682,"y":571.2975997924805,"z":"5629d16d.2ad96","wires":[["7160408b.72538"]]},{"id":"7160408b.72538","type":"set","name":"add target vnf to vnf-ids","xml":"<set>\n<parameter name='vnf-ids[$vnf-ids_length]' value='`$db.path-segment[$path-segment-index].target-association-uuid`' />\n<parameter name='vnf-ids_length' value='`$vnf-ids_length + 1`' />\n","comments":"","x":1308.761978149414,"y":570.5475997924805,"z":"5629d16d.2ad96","wires":[]},{"id":"c46f5c01.ea23","type":"comment","name":"create list of vnf ids","info":"","comments":"","x":1061.5119667053223,"y":486.46427059173584,"z":"5629d16d.2ad96","wires":[]},{"id":"4e5c686c.598f68","type":"get-resource","name":"custom query - get runtime service-instances","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"custom-query\"\n\tkey=\"format = 'resource'\"\n\tforce=\"true\"\n\tlocal-only=\"false\"\n\tpfx=\"aai.service-instances\" >\n\t<parameter name=\"start[0]\" value=\"`'nodes/service-instances?model-invariant-id=' + $getpathsegment-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"start_length\" value=\"1\" />\n","comments":"","outputs":1,"x":578.5119247436523,"y":656.5476264953613,"z":"5629d16d.2ad96","wires":[["50c8b7f0.7a0d88","a18652d3.89a29","30dab3b9.4e949c"]]},{"id":"a18652d3.89a29","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":846.5081748962402,"y":658.4484806060791,"z":"5629d16d.2ad96","wires":[["f673ab2c.5baed8"]]},{"id":"50c8b7f0.7a0d88","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":855.4367713928223,"y":616.7342138290405,"z":"5629d16d.2ad96","wires":[["fb8a502b.b988a"]]},{"id":"2cea7227.951c0e","type":"for","name":"for each runtime service-instance","xml":"<for index='runtime-index' start='0' end='`$runtime_length`' >\n","comments":"","outputs":1,"x":700.7143859863281,"y":1168.2143034934998,"z":"5629d16d.2ad96","wires":[["fd97fac0.40b238"]]},{"id":"fd97fac0.40b238","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":939.4643936157227,"y":1168.2143034934998,"z":"5629d16d.2ad96","wires":[["11207a1.3861786","2605dfb2.94c51","507014d7.88ea1c","38a95673.ed10aa","64270aaa.060174"]]},{"id":"11207a1.3861786","type":"execute","name":"generate port-mirror-configuration url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.service`\"/>\n <parameter name=\"outputPath\" value=\"tmp.service-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$serv-inst.service-instance-id`\"/>\n","comments":"","outputs":1,"x":1210.9525451660156,"y":1253.1548552513123,"z":"5629d16d.2ad96","wires":[[]]},{"id":"2605dfb2.94c51","type":"execute","name":"execute RestApiCallNode - get service","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.service-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-service\" />\n\n","comments":"","outputs":1,"x":1215.1191101074219,"y":1319.1666865348816,"z":"5629d16d.2ad96","wires":[["ddfea20f.b1765","25f8aad7.178826"]]},{"id":"ddfea20f.b1765","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1462.4983558654785,"y":1192.5340704917908,"z":"5629d16d.2ad96","wires":[["7d24215a.3f9a"]]},{"id":"25f8aad7.178826","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1456.547752380371,"y":1450.4166073799133,"z":"5629d16d.2ad96","wires":[["fb3d69b8.66a0c8"]]},{"id":"a34a7c52.b74ff","type":"comment","name":"Is this service in GENERIC-RESOURCE-API?","info":"","comments":"","x":1258.2143859863281,"y":1113.750009059906,"z":"5629d16d.2ad96","wires":[]},{"id":"d312f25b.03d12","type":"call","name":"call GENERIC-RESOURCE-API:getpathsegment-populate-from-grapi","xml":"<call module='GENERIC-RESOURCE-API' rpc='getpathsegment-populate-from-grapi' mode='sync' >\n","comments":"","outputs":1,"x":2421.7858123779297,"y":1237.5000100135803,"z":"5629d16d.2ad96","wires":[[]]},{"id":"f82d1a28.9d5758","type":"call","name":"call GENERIC-RESOURCE-API:getpathsegment-populate-from-vnfapi","xml":"<call module='GENERIC-RESOURCE-API' rpc='getpathsegment-populate-from-vnfapi' mode='sync' >\n","comments":"","outputs":1,"x":2259.464401245117,"y":1437.1428742408752,"z":"5629d16d.2ad96","wires":[[]]},{"id":"41d349bc.0562d8","type":"set","name":"set match-type","xml":"<set>\n<parameter name='match-type' value='network-name' />\n","comments":"","x":293.8452491760254,"y":244.21429347991943,"z":"5629d16d.2ad96","wires":[]},{"id":"d5e62d12.0598","type":"call","name":"call GENERIC-RESOURCE-API:getpathsegment-simple-match-pair","xml":"<call module='GENERIC-RESOURCE-API' rpc='getpathsegment-simple-match-pair' mode='sync' >\n","comments":"","outputs":1,"x":803.0359039306641,"y":1643.3930268287659,"z":"5629d16d.2ad96","wires":[[]]},{"id":"d93608d4.fa2628","type":"set","name":"set serv-insts_length to 0","xml":"<set>\n<parameter name='serv-insts_length' value='0' />\n","comments":"","x":683.6786804199219,"y":906.0715222358704,"z":"5629d16d.2ad96","wires":[]},{"id":"507014d7.88ea1c","type":"set","name":"clear mdsal-service and serv-inst.api","xml":"<set>\n<parameter name='mdsal-service.' value='' />\n<parameter name='serv-inst.api' value='' />\n","comments":"","x":1211.2857971191406,"y":1157.6785979270935,"z":"5629d16d.2ad96","wires":[]},{"id":"38a95673.ed10aa","type":"set","name":"set serv-inst.service-instance-id","xml":"<set>\n<parameter name='serv-inst.service-instance-id' value='`$runtime-ids[$runtime-index]`' />\n","comments":"","x":1202.4286346435547,"y":950.5357565879822,"z":"5629d16d.2ad96","wires":[]},{"id":"1025d445.92700c","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'Failure finding service instance ' + $serv-inst.service-instance-id + ' in either GENERIC-REOURCE-API or VNF-API'`\" />\n","comments":"","x":2494.285732269287,"y":1490.357096672058,"z":"5629d16d.2ad96","wires":[]},{"id":"8cb5384e.5fac18","type":"success","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2298.035873413086,"y":1562.0238308906555,"z":"5629d16d.2ad96","wires":[["e596d283.d108"]]},{"id":"36bbfe53.27e322","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2298.0357093811035,"y":1491.6071996688843,"z":"5629d16d.2ad96","wires":[["1025d445.92700c"]]},{"id":"d0b3e656.49f5b8","type":"switchNode","name":"switch serv-inst.api","xml":"<switch test='`$serv-inst.api`'>\n","comments":"","outputs":1,"x":2098.3930053710938,"y":1532.1428451538086,"z":"5629d16d.2ad96","wires":[["36bbfe53.27e322","8cb5384e.5fac18"]]},{"id":"fb3d69b8.66a0c8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1587.678623199463,"y":1453.214307308197,"z":"5629d16d.2ad96","wires":[["63df2c22.43c924"]]},{"id":"36ccefea.23688","type":"set","name":"copy serv-inst to serv-insts array","xml":"<set>\n<parameter name='serv-insts[$serv-insts_length].' value='`$serv-inst.`' />\n","comments":"","x":2685.5358352661133,"y":1536.607204914093,"z":"5629d16d.2ad96","wires":[]},{"id":"b01279d.0b32c88","type":"set","name":"increment serv-insts_length","xml":"<set>\n<parameter name='serv-insts_length' value='`$serv-insts_length + 1`' />\n","comments":"","x":2670.7858123779297,"y":1591.6071934700012,"z":"5629d16d.2ad96","wires":[]},{"id":"848cf29d.edb6a","type":"set","name":"copy serv-inst to serv-insts array","xml":"<set>\n<parameter name='serv-insts[$serv-insts_length].' value='`$serv-inst.`' />\n","comments":"","x":2306.4286346435547,"y":1281.9643054008484,"z":"5629d16d.2ad96","wires":[]},{"id":"50bf0848.ed4ac8","type":"set","name":"increment serv-insts_length","xml":"<set>\n<parameter name='serv-insts_length' value='`$serv-insts_length + 1`' />\n","comments":"","x":2286.6786346435547,"y":1330.7143063545227,"z":"5629d16d.2ad96","wires":[]},{"id":"7d24215a.3f9a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1593.9286193847656,"y":1191.964292049408,"z":"5629d16d.2ad96","wires":[["2bf6e158.bfceae","d0db37ac.abed08","313a3809.e4ff88"]]},{"id":"e596d283.d108","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2449.285804748535,"y":1561.6071877479553,"z":"5629d16d.2ad96","wires":[["36ccefea.23688","b01279d.0b32c88"]]},{"id":"954eddda.d0e1c","type":"for","name":"for each runtime service-instance from A&AI","xml":"<for index='runtime-index' start='0' end='`$aai.service-instances.results_length`' >\n","comments":"","outputs":1,"x":741.4286499023438,"y":839.4642996788025,"z":"5629d16d.2ad96","wires":[["f18dec3.470431"]]},{"id":"f18dec3.470431","type":"switchNode","name":"switch orchestration-status","xml":"<switch test='`$aai.service-instances.results[$runtime-index].service-instance.orchestration-status`'>\n","comments":"","outputs":1,"x":1050.1786193847656,"y":839.4642987251282,"z":"5629d16d.2ad96","wires":[["bf73912e.28721"]]},{"id":"bf73912e.28721","type":"outcome","name":"Active","xml":"<outcome value='Active'>\n","comments":"","outputs":1,"x":1248.9286041259766,"y":838.214289188385,"z":"5629d16d.2ad96","wires":[["dd9206a2.3c51c8"]]},{"id":"dd9206a2.3c51c8","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1410.1786041259766,"y":835.714289188385,"z":"5629d16d.2ad96","wires":[["b75aacd8.aff2a","7e6d7170.bd2ef"]]},{"id":"b75aacd8.aff2a","type":"set","name":"store service-instance-id","xml":"<set>\n<parameter name='runtime-ids[$runtime_length]' value='`$aai.service-instances.results[$runtime-index].service-instance.service-instance-id`' />\n","comments":"","x":1601.4286193847656,"y":812.7976064682007,"z":"5629d16d.2ad96","wires":[]},{"id":"f1440634.84c218","type":"set","name":"set runtime_length to 0","xml":"<set>\n<parameter name='runtime_length' value='0' />\n","comments":"","x":676.4286041259766,"y":789.464289188385,"z":"5629d16d.2ad96","wires":[]},{"id":"7e6d7170.bd2ef","type":"set","name":"set increment runtime_length","xml":"<set>\n<parameter name='runtime_length' value='`$runtime_length + 1`' />\n","comments":"","x":1616.0119132995605,"y":855.2976288795471,"z":"5629d16d.2ad96","wires":[]},{"id":"2e8ac8c0.7d70a8","type":"for","name":"for each serv-insts","xml":"<for index='serv-index' start='0' end='`$serv-insts_length`' >\n","comments":"","outputs":1,"x":624.1666488647461,"y":2187.2023816108704,"z":"5629d16d.2ad96","wires":[["627c4436.c6363c"]]},{"id":"6a089d93.c561b4","type":"comment","name":"Create forwarding-path structure","info":"","comments":"","x":1850.2380981445312,"y":1713.9880814552307,"z":"5629d16d.2ad96","wires":[]},{"id":"67d6eb5d.aecaf4","type":"set","name":"set top-level data","xml":"<set>\n<parameter name='forwarding-path.forwarding-path-name' value='`$db.path-segment[0].path-name`' />\n<parameter name='forwarding-path.forwarding-path-type' value='VNF' />\n<parameter name='forwarding-path.onap-model-information.model-name' value='`$db.path-segment[0].path-name`' />\n<parameter name='forwarding-path.service-paths.service-path_length' value='1' />\n<parameter name='forwarding-path.service-paths.service-path[0].service-path-instance-name'\n value='`$db.path-segment[0].path-name + $forwarding-path.service-paths.service-path[0].service-path-instance-id`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service_length' value='1' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].service-instance-id'\n value='`$serv-insts[$serv-index].service-instance-id`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].service-path-sequence-id' value='1' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf_length'\n value='`$serv-insts[$serv-index].path-segments_length`' />\n","comments":"","x":1713.9284362792969,"y":1845.2976641654968,"z":"5629d16d.2ad96","wires":[]},{"id":"df485e3e.9e56d","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1496.2498931884766,"y":2203.452546596527,"z":"5629d16d.2ad96","wires":[["67d6eb5d.aecaf4","6d4773c1.e5744c","214e6fa8.67a2d","11af2729.a769f9","19011bc0.d12e74","d098ba8b.a3df28","f0d2a389.89135","491426c8.70e218","5bdb2ffa.bd158","29c194e4.ffaaec","b4ae1cfc.2d5e8","4177217a.70cc7","9b387be2.dc2b18","1f8a0d2b.888443"]]},{"id":"627c4436.c6363c","type":"switchNode","name":"switch api","xml":"<switch test='`$serv-insts[$serv-index].api`'>\n","comments":"","outputs":1,"x":797.9166488647461,"y":2187.2023816108704,"z":"5629d16d.2ad96","wires":[["426b047f.dbd57c","9059fd9c.5d30b"]]},{"id":"426b047f.dbd57c","type":"outcome","name":"GR","xml":"<outcome value='GR'>\n","comments":"","outputs":1,"x":937.9166526794434,"y":2164.7023816108704,"z":"5629d16d.2ad96","wires":[["c67bb294.bc315"]]},{"id":"9059fd9c.5d30b","type":"outcome","name":"VNF","xml":"<outcome value='VNF'>\n","comments":"","outputs":1,"x":937.9166526794434,"y":2205.952383518219,"z":"5629d16d.2ad96","wires":[["c67bb294.bc315"]]},{"id":"6d4773c1.e5744c","type":"for","name":"for each subsequent path segment","xml":"<for index='ps-index' start='1' end='`$serv-insts[$serv-index].path-segments_length`' >\n","comments":"","outputs":1,"x":1763.9284362792969,"y":1979.0476641654968,"z":"5629d16d.2ad96","wires":[["902c5891.668ab8"]]},{"id":"b6018a90.ab7608","type":"set","name":"set vnf level data","xml":"<set>\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index].vnf-path-sequence-id'\n value='`$ps-index + 1`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index].vnf-instance-id'\n value='`$serv-insts[$serv-index].path-segments[$ps-index].left-vnf-instance-id`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index].left-network-name'\n value='`$prev-network-name`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index].left-network-role'\n value='`$prev-network-role`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index].right-network-name'\n value='`$serv-insts[$serv-index].path-segments[$ps-index].network-name`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index].right-network-role'\n value='`$serv-insts[$serv-index].path-segments[$ps-index].network-role`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index].vf-module-instance.vf-module-id'\n value='`$serv-insts[$serv-index].path-segments[$ps-index].left-vf-module-id`' />\n","comments":"","x":2142.6784439086914,"y":1952.7976660728455,"z":"5629d16d.2ad96","wires":[]},{"id":"214e6fa8.67a2d","type":"set","name":"set first vnf data","xml":"<set>\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[0].vnf-path-sequence-id'\n value='1' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[0].vnf-instance-id'\n value='`$serv-insts[$serv-index].path-segments[0].left-vnf-instance-id`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[0].right-network-name'\n value='`$serv-insts[$serv-index].path-segments[0].network-name`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[0].right-network-role'\n value='`$serv-insts[$serv-index].path-segments[0].network-role`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[0].vf-module-instance.vf-module-id'\n value='`$serv-insts[$serv-index].path-segments[0].left-vf-module-id`' />\n","comments":"","x":1710.1784362792969,"y":1887.7976632118225,"z":"5629d16d.2ad96","wires":[]},{"id":"11af2729.a769f9","type":"set","name":"set prev values","xml":"<set>\n<parameter name='prev-network-name' value='`$serv-insts[$serv-index].path-segments[0].network-name`' />\n<parameter name='prev-network-role' value='`$serv-insts[$serv-index].path-segments[0].network-role`' />\n","comments":"","x":1707.6784362792969,"y":1932.7976641654968,"z":"5629d16d.2ad96","wires":[]},{"id":"548baaaf.cc4134","type":"set","name":"set prev values","xml":"<set>\n<parameter name='prev-network-name' value='`$serv-insts[$serv-index].path-segments[$ps-index].network-name`' />\n<parameter name='prev-network-role' value='`$serv-insts[$serv-index].path-segments[$ps-index].network-role`' />\n","comments":"","x":2137.6784439086914,"y":2000.297667980194,"z":"5629d16d.2ad96","wires":[]},{"id":"902c5891.668ab8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1975.1784210205078,"y":1977.7976431846619,"z":"5629d16d.2ad96","wires":[["b6018a90.ab7608","548baaaf.cc4134"]]},{"id":"19011bc0.d12e74","type":"set","name":"set last vnf data","xml":"<set>\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index + 1].vnf-path-sequence-id'\n value='`$ps-index + 2`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index + 1].vnf-instance-id'\n value='`$serv-insts[$serv-index].path-segments[$ps-index].right-vnf-instance-id`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index + 1].left-network-name'\n value='`$prev-network-name`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index + 1].left-network-role'\n value='`$prev-network-role`' />\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$ps-index + 1].vf-module-instance.vf-module-id'\n value='`$serv-insts[$serv-index].path-segments[$ps-index].right-vf-module-id`' />\n","comments":"","x":1705.1784362792969,"y":2027.7976660728455,"z":"5629d16d.2ad96","wires":[]},{"id":"d098ba8b.a3df28","type":"set","name":"set vnf_length","xml":"<set>\n<parameter name='forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf_length'\n value='`$serv-insts[$serv-index].path-segments_length + 1`' />\n","comments":"","x":1696.4284362792969,"y":2076.54766702652,"z":"5629d16d.2ad96","wires":[]},{"id":"29c194e4.ffaaec","type":"execute","name":"execute RestApiCallNode - PUT forwarding-path","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.forwardingpath.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.fp-url + $forwarding-path.forwarding-path-id`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-fp\" />\n\n","comments":"","outputs":1,"x":1797.797264099121,"y":2602.5596022605896,"z":"5629d16d.2ad96","wires":[["6b24d135.106e5","6756a9be.3589b8"]]},{"id":"6b24d135.106e5","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2068.2837982177734,"y":2626.807873249054,"z":"5629d16d.2ad96","wires":[["6be686e3.d317a8"]]},{"id":"6756a9be.3589b8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2060.712432861328,"y":2585.3078932762146,"z":"5629d16d.2ad96","wires":[["6be686e3.d317a8"]]},{"id":"6be686e3.d317a8","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarding-path to MD-SAL\" />\n","comments":"","x":2280.2972717285156,"y":2600.0596022605896,"z":"5629d16d.2ad96","wires":[]},{"id":"2bf6e158.bfceae","type":"switchNode","name":"for each existing forwarding path","xml":"<for silentFailure='true' index='fp-index' start='0' end='`$mdsal-service.service[0].service-data.forwarding-paths.forwarding-path_length`' >\n","comments":"","outputs":1,"x":1833.9286270141602,"y":1176.9643034934998,"z":"5629d16d.2ad96","wires":[["f7c714ad.2bad38"]]},{"id":"d0db37ac.abed08","type":"set","name":"set found-path = false","xml":"<set>\n<parameter name='found-path' value='false' />\n","comments":"","x":1801.4286270141602,"y":1121.9643034934998,"z":"5629d16d.2ad96","wires":[]},{"id":"f7c714ad.2bad38","type":"switchNode","name":"does the forwarding path name match?","xml":"<switch test='`$mdsal-service.service[0].service-data.forwarding-paths.forwarding-path[$fp-index].forwarding-path-name\n == $db.path-segment[0].path-name`'>\n","comments":"","outputs":1,"x":2156.42862701416,"y":1175.7143034934998,"z":"5629d16d.2ad96","wires":[["eea9da0f.918148"]]},{"id":"eea9da0f.918148","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2386.4286346435547,"y":1174.4643034934998,"z":"5629d16d.2ad96","wires":[["7cb3f8f1.85eb48"]]},{"id":"7cb3f8f1.85eb48","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2515.178638458252,"y":1173.2143034934998,"z":"5629d16d.2ad96","wires":[["5754527f.58050c","8adff36e.3c1ee"]]},{"id":"5754527f.58050c","type":"set","name":"set found-path = true","xml":"<set>\n<parameter name='found-path' value='true' />\n","comments":"","x":2692.678638458252,"y":1145.7143034934998,"z":"5629d16d.2ad96","wires":[]},{"id":"8adff36e.3c1ee","type":"break","name":"break","xml":"<break>\n","comments":"","x":2645.1786041259766,"y":1193.2142901420593,"z":"5629d16d.2ad96","wires":[]},{"id":"313a3809.e4ff88","type":"switchNode","name":"switch found-path","xml":"<switch test='`$found-path`'>\n","comments":"","outputs":1,"x":1785.1786270141602,"y":1276.9643054008484,"z":"5629d16d.2ad96","wires":[["97b04b5c.cc2cb8"]]},{"id":"97b04b5c.cc2cb8","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1952.6786270141602,"y":1275.7143054008484,"z":"5629d16d.2ad96","wires":[["cb6588b3.927c18"]]},{"id":"cb6588b3.927c18","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2083.9286041259766,"y":1274.4642901420593,"z":"5629d16d.2ad96","wires":[["d312f25b.03d12","848cf29d.edb6a","50bf0848.ed4ac8"]]},{"id":"f0d2a389.89135","type":"execute","name":"generate forwarding-path-id","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n<parameter name=\"ctx-destination\" value=\"forwarding-path.forwarding-path-id\" />\n","comments":"","outputs":1,"x":1746.0117454528809,"y":1757.7975754737854,"z":"5629d16d.2ad96","wires":[[]]},{"id":"491426c8.70e218","type":"execute","name":"generate service-path-instance-id","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n<parameter name=\"ctx-destination\" value=\"forwarding-path.service-paths.service-path[0].service-path-instance-id\" />\n","comments":"","outputs":1,"x":1764.3450775146484,"y":1800.2977395057678,"z":"5629d16d.2ad96","wires":[[]]},{"id":"5bdb2ffa.bd158","type":"switchNode","name":"switch api","xml":"<switch test='`$serv-insts[$serv-index].api`'>\n","comments":"","outputs":1,"x":1680.1188850402832,"y":2255.893068790436,"z":"5629d16d.2ad96","wires":[["a1a0cae2.cf1708","7db03a9d.ab68a4"]]},{"id":"a1a0cae2.cf1708","type":"outcome","name":"GR","xml":"<outcome value='GR'>\n","comments":"","outputs":1,"x":1831.7855987548828,"y":2141.7262177467346,"z":"5629d16d.2ad96","wires":[["f2ab2652.039508"]]},{"id":"7db03a9d.ab68a4","type":"outcome","name":"VNF","xml":"<outcome value='VNF'>\n","comments":"","outputs":1,"x":1827.4403438568115,"y":2382.869236469269,"z":"5629d16d.2ad96","wires":[["4b154329.3644ec"]]},{"id":"4b154329.3644ec","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1961.1903285980225,"y":2382.6192116737366,"z":"5629d16d.2ad96","wires":[["f9ae246a.e84cd8","983ef71a.da7d78","4c9a08e9.01d9f8","80ee9321.e385d","ae5db14f.68538"]]},{"id":"f9ae246a.e84cd8","type":"execute","name":"generate service-instance-id","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n<parameter name=\"ctx-destination\" value=\"tmp.service-instance-id\" />\n","comments":"","outputs":1,"x":2167.8570671081543,"y":2281.9049582481384,"z":"5629d16d.2ad96","wires":[[]]},{"id":"1f8a0d2b.888443","type":"execute","name":"generate forwarding-path url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.forwarding-path`\"/>\n <parameter name=\"outputPath\" value=\"tmp.fp-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.service-instance-id`\"/>\n","comments":"","outputs":1,"x":1735.714096069336,"y":2545.47572183609,"z":"5629d16d.2ad96","wires":[[]]},{"id":"8d090eb7.070a8","type":"comment","name":"Make a new service instance in GR-API","info":"","comments":"","x":2274.1069869995117,"y":2244.8214716911316,"z":"5629d16d.2ad96","wires":[]},{"id":"a46d416f.1a345","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/gps.log' />\n","comments":"","outputs":1,"x":632.2619171142578,"y":1701.964307308197,"z":"5629d16d.2ad96","wires":[[]]},{"id":"c67bb294.bc315","type":"switchNode","name":"switch path-segments_length","xml":"<switch test='`$serv-insts[$serv-index].path-segments_length`'>\n","comments":"","outputs":1,"x":1139.1667098999023,"y":2182.2023825645447,"z":"5629d16d.2ad96","wires":[["85251f33.38b5d","208c3acb.b76f26","eb2e3f83.248d9"]]},{"id":"eb2e3f83.248d9","type":"success","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1352.499927520752,"y":2207.2023844718933,"z":"5629d16d.2ad96","wires":[["df485e3e.9e56d"]]},{"id":"85251f33.38b5d","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1354.999927520752,"y":2110.952624797821,"z":"5629d16d.2ad96","wires":[["b2a1f74e.a0d9f8"]]},{"id":"208c3acb.b76f26","type":"outcome","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1354.166675567627,"y":2153.869128704071,"z":"5629d16d.2ad96","wires":[["b2a1f74e.a0d9f8"]]},{"id":"b2a1f74e.a0d9f8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1495.8332252502441,"y":2132.2024211883545,"z":"5629d16d.2ad96","wires":[[]]},{"id":"683c3990.4dec28","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1565.357032775879,"y":1020.8928046226501,"z":"5629d16d.2ad96","wires":[["45c3f393.2082bc","477131b1.1c0c2"]]},{"id":"64270aaa.060174","type":"save","name":"custom query: get service instance","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource_and_url'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.si\">\n\t<parameter name=\"start[0]\" value=\"`'nodes/service-instance/' + $serv-inst.service-instance-id `\" />\n\t<parameter name=\"start_length\" value=\"1\" />\n","comments":"","outputs":1,"x":1210.3569946289062,"y":1022.559576511383,"z":"5629d16d.2ad96","wires":[["b6eca96f.d32ca8"]]},{"id":"45c3f393.2082bc","type":"execute","name":"execute split","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n\t<parameter name=\"original_string\" value=\"`$tmp.AnAI-data.si.results[0].url`\" />\n\t<parameter name=\"regex\" value=\"/\"/>\n\t<parameter name=\"limit\" value=\"11\" />\n\t<parameter name=\"ctx_memory_result_key\" value=\"split\" />\n","comments":"","outputs":1,"x":1714.4045639038086,"y":996.8453507423401,"z":"5629d16d.2ad96","wires":[[]]},{"id":"b6eca96f.d32ca8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1432.0237197875977,"y":1022.2261891365051,"z":"5629d16d.2ad96","wires":[["683c3990.4dec28"]]},{"id":"477131b1.1c0c2","type":"set","name":"set global-customer-id, etc","xml":"<set>\n<parameter name='output-global-customer-id' value='`$split[6]`' />\n<parameter name='output-service-type' value='`$split[9]`' />\n<parameter name='output-service-role' value='`$tmp.AnAI-data.si.results[0].service-instance.service-role`' />\n","comments":"","x":1758.2141189575195,"y":1047.5595059394836,"z":"5629d16d.2ad96","wires":[]},{"id":"80ee9321.e385d","type":"save","name":"save service-instance to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"service-instance\" \n\tkey=\"customer.global-customer-id = $output-global-customer-id\n\t AND service-subscription.service-type = $output-service-type\n\t AND service-instance.service-instance-id = $tmp.service-instance-id\" >\n<parameter name=\"service-instance-id\" value=\"`$tmp.service-instance-id`\" />\n<parameter name=\"global-customer-id\" value=\"`$output-global-customer-id`\" />\n<parameter name=\"service-type\" value=\"`$output-service-type`\" />\n<parameter name=\"service-role\" value=\"`$output-service-role`\" />\n","comments":"","outputs":1,"x":2173.452423095703,"y":2455.4165325164795,"z":"5629d16d.2ad96","wires":[["d5fedeb1.c6453","2cc58f82.b2f37"]]},{"id":"b329030f.6943d","type":"comment","name":"Make a new service instance in A&AI","info":"","comments":"","x":2262.500144958496,"y":2405.892997264862,"z":"5629d16d.2ad96","wires":[]},{"id":"b4ae1cfc.2d5e8","type":"save","name":"save forwarding-path to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"forwarding-path\" \n\tkey=\"forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[0].service-path-instance-id\" >\n<parameter name=\"forwarding-path-id\" value=\"`$forwarding-path.service-paths.service-path[0].service-path-instance-id`\" />\n<parameter name=\"forwarding-path-name\" value=\"`$forwarding-path.service-paths.service-path[0].service-path-instance-name`\" />\n<parameter name=\"selflink\" value=\"`'/rests/data/GENERIC-RESOURCE-API:services/service='\n + $tmp.service-instance-id\n + '/forwarding-paths/forwarding-path='\n + $forwarding-path.forwarding-path-id\n + '/services-paths/service-path='\n + $forwarding-path.service-paths.service-path[0].service-path-instance-id\n + '?content=config'`\" />\n","comments":"","outputs":1,"x":1737.4999694824219,"y":2695.416627883911,"z":"5629d16d.2ad96","wires":[["570c5c1d.a84184","100184f6.a8fcdb"]]},{"id":"4177217a.70cc7","type":"save","name":"save forwarding-path relationship to service-instance","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"forwarding-path:relationship-list\"\n key=\"forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[0].service-path-instance-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"service-instance\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/business/customers/customer/'\n + $output-global-customer-id\n + '/service-subscriptions/service-subscription/'\n + $output-service-type\n + '/service-instances/service-instance/'\n + $tmp.service-instance-id`\" />\n","comments":"","outputs":1,"x":1807.5000610351562,"y":2777.321086883545,"z":"5629d16d.2ad96","wires":[["e5653651.b903c8","eebbf2de.ab99c"]]},{"id":"9b387be2.dc2b18","type":"for","name":"for each vnf","xml":"<for index='vnf-index' start='0' end='`$forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":1678.9283981323242,"y":2904.464366912842,"z":"5629d16d.2ad96","wires":[["f601972.d913268"]]},{"id":"f601972.d913268","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1830.3570861816406,"y":2904.035620689392,"z":"5629d16d.2ad96","wires":[["ad9f625f.82ae3","86151834.e1db48"]]},{"id":"ad9f625f.82ae3","type":"save","name":"save forwarder to A&AI","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"forwarder\" \n\tkey=\"forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[0].service-path-instance-id AND forwarder.sequence = $forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$vnf-index].vnf-path-sequence-id\" >\n<parameter name=\"sequence\" value=\"`$forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$vnf-index].vnf-path-sequence-id`\" />\n","comments":"","outputs":1,"x":2006.3570861816406,"y":2861.60693359375,"z":"5629d16d.2ad96","wires":[["4bd05c77.8bf2c4","cb4dc21b.d4dc6"]]},{"id":"86151834.e1db48","type":"save","name":"save forwarder relationship to generic-vnf","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"forwarder:relationship-list\"\n key=\"forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[0].service-path-instance-id\n AND forwarder.sequence = $forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$vnf-index].vnf-path-sequence-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/generic-vnfs/generic-vnf/'\n + $forwarding-path.service-paths.service-path[0].service[0].vnfs.vnf[$vnf-index].vnf-instance-id`\" />\n","comments":"","outputs":1,"x":2060.357048034668,"y":2947.55947971344,"z":"5629d16d.2ad96","wires":[["5201ac9b.81d914","cf4a6c9f.ce33c"]]},{"id":"4c9a08e9.01d9f8","type":"execute","name":"execute RestApiCallNode - PUT service-instance","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.csm.serviceinstance.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.service-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-sr\" />\n\n","comments":"","outputs":1,"x":2232.857192993164,"y":2368.571464061737,"z":"5629d16d.2ad96","wires":[["67e628d8.b9a9b8"]]},{"id":"983ef71a.da7d78","type":"execute","name":"generate service-instance url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.service`\"/>\n <parameter name=\"outputPath\" value=\"tmp.service-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.service-instance-id`\"/>\n","comments":"","outputs":1,"x":2169.107192993164,"y":2326.0714631080627,"z":"5629d16d.2ad96","wires":[[]]},{"id":"f2ab2652.039508","type":"set","name":"set tmp.service-instance-id","xml":"<set>\n<parameter name='tmp.service-instance-id' value='`$serv-insts[$serv-index].service-instance-id`' />\n","comments":"","x":2023.9287490844727,"y":2141.1785759925842,"z":"5629d16d.2ad96","wires":[]},{"id":"ae5db14f.68538","type":"save","name":"save SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING ","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\nkey=\"INSERT INTO SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING\n (simple_service_instance_id, forwarding_path_service_instance_id)\n VALUES ( $serv-insts[$serv-index].service-instance-id , $tmp.service-instance-id )\" >","comments":"","outputs":1,"x":2297.9761810302734,"y":2511.6070461273193,"z":"5629d16d.2ad96","wires":[[]]},{"id":"83141530.82c518","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2316.785617828369,"y":1379.1786713600159,"z":"5629d16d.2ad96","wires":[["b3cd7e32.1311e"]]},{"id":"63df2c22.43c924","type":"get-resource","name":"get-resource SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='select forwarding_path_service_instance_id\n from SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING\n where simple_service_instance_id = $serv-inst.service-instance-id'\n pfx='db.sitcim'>\n","comments":"","outputs":1,"x":1955.2857208251953,"y":1378.7979912757874,"z":"5629d16d.2ad96","wires":[["83141530.82c518"]]},{"id":"b3cd7e32.1311e","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1929.6429634094238,"y":1485.8929257392883,"z":"5629d16d.2ad96","wires":[["f82d1a28.9d5758","d0b3e656.49f5b8"]]},{"id":"a32e6237.6daf3","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":725.9285316467285,"y":312.1309576034546,"z":"5629d16d.2ad96","wires":[["3e23f4b0.7933cc"]]},{"id":"39c3eea1.efd8a2","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":725.9285545349121,"y":357.1309471130371,"z":"5629d16d.2ad96","wires":[["9ec522bf.66732"]]},{"id":"3e23f4b0.7933cc","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'System error reading PATH_SEGMENT table for uuid '\n + $getpathsegment-topology-operation-input.service-information.onap-model-information.model-uuid\n + ' and path '\n + $db.forwarding-path[$path-index].path-name`\" />\n","comments":"","x":925.9286766052246,"y":310.4642915725708,"z":"5629d16d.2ad96","wires":[]},{"id":"9ec522bf.66732","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'No entries in PATH_SEGMENT table for uuid '\n + $getpathsegment-topology-operation-input.service-information.onap-model-information.model-uuid\n + ' and path '\n + $db.forwarding-path[$path-index].path-name`\" />\n","comments":"","x":925.9284934997559,"y":357.1309471130371,"z":"5629d16d.2ad96","wires":[]},{"id":"5581a414.fb2c9c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":577.5952529907227,"y":400.46430587768555,"z":"5629d16d.2ad96","wires":[["6ce2ff77.93b44"]]},{"id":"6ce2ff77.93b44","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":312.26190185546875,"y":574.4642467498779,"z":"5629d16d.2ad96","wires":[["1570d296.5420fd","6ae56929.26b358","4e5c686c.598f68"]]},{"id":"fb8a502b.b988a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":997.2618865966797,"y":616.1309127807617,"z":"5629d16d.2ad96","wires":[["c62d489d.61a668"]]},{"id":"f673ab2c.5baed8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":997.2619094848633,"y":659.1309022903442,"z":"5629d16d.2ad96","wires":[["709cc4e9.5f8a1c"]]},{"id":"709cc4e9.5f8a1c","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'System error calling AAI to get run-time service instances for invariant uuid '\n + $getpathsegment-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`\" />\n","comments":"","x":1187.2621154785156,"y":659.4642295837402,"z":"5629d16d.2ad96","wires":[]},{"id":"c62d489d.61a668","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"`'No run-time service instances in AAI for invariant uuid '\n + $getpathsegment-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`\" />\n","comments":"","x":1185.59525680542,"y":616.1309595108032,"z":"5629d16d.2ad96","wires":[]},{"id":"30dab3b9.4e949c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":848.9285125732422,"y":702.7975997924805,"z":"5629d16d.2ad96","wires":[["cf0a30ca.a8fbb"]]},{"id":"cf0a30ca.a8fbb","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":297.26189041137695,"y":1471.1309490203857,"z":"5629d16d.2ad96","wires":[["f1440634.84c218","954eddda.d0e1c","d93608d4.fa2628","2cea7227.951c0e","d5e62d12.0598","a46d416f.1a345","2e8ac8c0.7d70a8"]]},{"id":"100184f6.a8fcdb","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1945.595199584961,"y":2714.464129447937,"z":"5629d16d.2ad96","wires":[["d60f0907.9fd4d8"]]},{"id":"570c5c1d.a84184","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1938.0238342285156,"y":2672.9641494750977,"z":"5629d16d.2ad96","wires":[["d60f0907.9fd4d8"]]},{"id":"d60f0907.9fd4d8","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarding-path to AAI\" />\n","comments":"","x":2157.608673095703,"y":2687.7158584594727,"z":"5629d16d.2ad96","wires":[]},{"id":"eebbf2de.ab99c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2085.5952072143555,"y":2794.4642028808594,"z":"5629d16d.2ad96","wires":[["bf35846c.fd3a28"]]},{"id":"e5653651.b903c8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2078.02384185791,"y":2752.96422290802,"z":"5629d16d.2ad96","wires":[["bf35846c.fd3a28"]]},{"id":"bf35846c.fd3a28","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarding-path relationship to AAI\" />\n","comments":"","x":2297.6086807250977,"y":2767.715931892395,"z":"5629d16d.2ad96","wires":[]},{"id":"cb4dc21b.d4dc6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2188.928421020508,"y":2881.1309871673584,"z":"5629d16d.2ad96","wires":[["d39c3493.921458"]]},{"id":"4bd05c77.8bf2c4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2181.3570556640625,"y":2839.631007194519,"z":"5629d16d.2ad96","wires":[["d39c3493.921458"]]},{"id":"d39c3493.921458","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarder to AAI\" />\n","comments":"","x":2400.94189453125,"y":2854.382716178894,"z":"5629d16d.2ad96","wires":[]},{"id":"cf4a6c9f.ce33c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2297.261878967285,"y":2967.7974796295166,"z":"5629d16d.2ad96","wires":[["6613e9ab.9c4918"]]},{"id":"5201ac9b.81d914","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2289.69051361084,"y":2926.2974996566772,"z":"5629d16d.2ad96","wires":[["6613e9ab.9c4918"]]},{"id":"6613e9ab.9c4918","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure writing forwarder relationship to AAI\" />\n","comments":"","x":2509.2753524780273,"y":2941.0492086410522,"z":"5629d16d.2ad96","wires":[]},{"id":"67e628d8.b9a9b8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2495.5950775146484,"y":2367.797538757324,"z":"5629d16d.2ad96","wires":[["d3a89de0.7df88"]]},{"id":"d3a89de0.7df88","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure creating service instance in MD-SAL\" />\n","comments":"","x":2685.5950775146484,"y":2366.130790710449,"z":"5629d16d.2ad96","wires":[]},{"id":"2cc58f82.b2f37","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2383.9285736083984,"y":2472.797538757324,"z":"5629d16d.2ad96","wires":[["36de329d.4c51fe"]]},{"id":"d5fedeb1.c6453","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2376.357208251953,"y":2431.297558784485,"z":"5629d16d.2ad96","wires":[["36de329d.4c51fe"]]},{"id":"36de329d.4c51fe","type":"set","name":"set error (for logging only)","xml":"<set>\n<parameter name='error-message' value=\"Failure creating service instance in AAI\" />\n","comments":"","x":2579.2754077911377,"y":2446.049120903015,"z":"5629d16d.2ad96","wires":[]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_gw-vfmodule-update.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_gw-vfmodule-update.json index 4732ab3f..a002493e 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_gw-vfmodule-update.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_gw-vfmodule-update.json @@ -1 +1 @@ -[{"id":"3806658c.26497a","type":"dgstart","name":"DGSTART","outputs":1,"x":147.88333129882812,"y":88.88333129882812,"z":"bc96058f.0be17","wires":[["45fcd240.2d898c"]]},{"id":"45fcd240.2d898c","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":244.12141036987305,"y":149.8357219696045,"z":"bc96058f.0be17","wires":[["40e26cd9.3c35a4"]]},{"id":"40e26cd9.3c35a4","type":"method","name":"gw-vfmodule-update","xml":"<method rpc='gw-vfmodule-update' mode='sync'>\n","comments":"","outputs":1,"x":128.0382194519043,"y":243.07376194000244,"z":"bc96058f.0be17","wires":[["5bd01702.fa9438"]]},{"id":"5bd01702.fa9438","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":244.8833122253418,"y":342.88333225250244,"z":"bc96058f.0be17","wires":[["d48c04fa.2c4798","624df7c1.860c6","882c4631.3dd488","b22dc7b6.0678d"]]},{"id":"77492a71.217b24","type":"execute","name":"generate vnf service-info url - vnf-d","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.vnf-api-url1`\"/>\n <parameter name=\"outputPath\" value=\"tmp.vnf-api-url2\"/>\n <parameter name=\"target\" value=\"{vnf-id}\"/>\n <parameter name=\"replacement\" value=\"`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.gw-vnf-id`\"/>\n\n","comments":"","outputs":1,"x":2004.1333923339844,"y":1512.883544921875,"z":"bc96058f.0be17","wires":[[]]},{"id":"9c97aad1.b5c07","type":"execute","name":"execute RestApiCallNode - PUT service into service","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.services.vnf.vfmodule.templatefile`\" />\n <!--\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.vnf-api-url3`' />\n -->\n <parameter name='restapiUrl' value='`$tmp.vf-module-object-path`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-vfmodule-vgw\" />\n\n","comments":"","outputs":1,"x":1590.8832702636719,"y":2043.8835144042969,"z":"bc96058f.0be17","wires":[["b5a49632.9fe928"]]},{"id":"5d685b37.cddc0c","type":"execute","name":"generate vnf service-info url - service-instance-id","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.service.vnf.vfmodule-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.vnf-api-url1\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.service-data.service-information.service-instance-id`\"/>\n","comments":"","outputs":1,"x":2049.6333923339844,"y":1470.133544921875,"z":"bc96058f.0be17","wires":[[]]},{"id":"492fb368.715544","type":"execute","name":"generate vnf service-info url - vf-module-id","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.vnf-api-url2`\"/>\n <parameter name=\"outputPath\" value=\"tmp.vnf-api-url3\"/>\n <parameter name=\"target\" value=\"{vf-module-id}\"/>\n <parameter name=\"replacement\" value=\"`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.gw-vfmodule-id`\"/>\n\n","comments":"","outputs":1,"x":2028.3833923339844,"y":1553.883544921875,"z":"bc96058f.0be17","wires":[[]]},{"id":"52ea6240.b2f2dc","type":"set","name":"set tmp.vgw.vg_mux_tunnel.vni","xml":"<set>\n<!--\n<parameter name='tmp.service.vnf.vf-module.vg-mux-tunnel-vni' value='`$input.vni`' />\n-->\n<parameter name='tmp.service.vnf.vf-module.vg-mux-tunnel-vni' value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource[0].allotted-resource-data[0].tunnelxconn-topology[0].tunnelxconn-assignments[0].vni`' />\n<parameter name='tmp.service.vnf.vf-module.vg-lan-ip' value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource[0].allotted-resource-data[0].tunnelxconn-topology[0].tunnelxconn-assignments[0].vg-ip`' />\n\n\n\n","comments":"","x":1582.1333923339844,"y":1631.383544921875,"z":"bc96058f.0be17","wires":[]},{"id":"77b6a8fb.175e6","type":"set","name":"set tmp.service.vnf.vf-module-id","xml":"<set>\n<parameter name='tmp.service.vnf.vf-module.vf-module-id' value='9aa4ede4-c639-48c4-9386-74c9ff87f8e3' />\n<parameter name='brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.gw-vfmodule-id' value='9aa4ede4-c639-48c4-9386-74c9ff87f8e3' />","comments":"","x":2044.6333312988281,"y":1310.9667358398438,"z":"bc96058f.0be17","wires":[]},{"id":"4601a28d.aedf2c","type":"set","name":"set tmp.service-data.vnf-information.vnf-id","xml":"<set>\n<parameter name='tmp.service-data.vnf-information.vnf-id' value='3a3332d1-12ad-4709-ac81-ba32b304a462' />\n<parameter name='brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.gw-vnf-id' value='3a3332d1-12ad-4709-ac81-ba32b304a462' />\n","comments":"","x":2010.8833312988281,"y":1270.9667358398438,"z":"bc96058f.0be17","wires":[]},{"id":"5b7201c1.a4887","type":"set","name":"set tmp.service-data.service-information.service-instance-id","xml":"<set>\n<parameter name='tmp.service-data.service-information.service-instance-id' value='6e34b9fb-9ec1-4c95-9e12-0326c434c623' />\n","comments":"","x":2059.633270263672,"y":1215.9665832519531,"z":"bc96058f.0be17","wires":[]},{"id":"5bbba697.75684","type":"set","name":"set tmp.service.vnf.vf-module-id","xml":"<set>\n<parameter name='tmp.restapi.service.vnf.vfmodule-resource' value='`$prop.restapi.service.vnf.vfmodule-resource`' />\n","comments":"","x":1564.6333312988281,"y":1349.7166748046875,"z":"bc96058f.0be17","wires":[]},{"id":"dfa8d8c7.ea1108","type":"execute","name":"execute Propertis gen-res-api-dg","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":1572.1332092285156,"y":1140.9667358398438,"z":"bc96058f.0be17","wires":[[]]},{"id":"b5a49632.9fe928","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1872.1332702636719,"y":2095.133514404297,"z":"bc96058f.0be17","wires":[["80ab6de6.18d81"]]},{"id":"80ab6de6.18d81","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Failed on PUT vf-module parameters to MD0SAL' />\n","comments":"","x":2062.133270263672,"y":2103.883514404297,"z":"bc96058f.0be17","wires":[]},{"id":"b22dc7b6.0678d","type":"set","name":"set consuming service-instance","xml":"<set>\n<!--\n<parameter name='tmp.brg-macaddress' value='fa:16:3e:8f:ea:68' />\n\n\n<parameter name='tmp.consuming-service-instance-id' value='b3cb7040-f7a5-4beb-ad2f-2a893b7d374b' />\nservice-data.service-topology.service-topology-identifier.service-instance-id\n\n-->\n<parameter name='tmp.brg-mac-address-match' value=\"`'VGW2BRG-' + $tmp.brg-macaddress`\"/>\n<parameter name='tmp.consuming-service-instance-id' value='`$service-data.service-topology.service-topology-identifier.service-instance-id`' />\n","comments":"","x":512.8833923339844,"y":352.9667663574219,"z":"bc96058f.0be17","wires":[]},{"id":"237b9de9.473f7a","type":"get-resource","name":"get-resource vnfs","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='preload-vnfs' pfx='tmp.preloadvnfdata' >\n","comments":"","outputs":1,"x":781.1888732910156,"y":686.63330078125,"z":"bc96058f.0be17","wires":[[]]},{"id":"dc53e24a.603c38","type":"for","name":"for tmp.vnfs","xml":"<for index='vnfidx' start='0' end='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list_length`' >\n\n\n","comments":"","outputs":1,"x":753.0777587890625,"y":773.855712890625,"z":"bc96058f.0be17","wires":[["4ae6c68e.7a2a08"]]},{"id":"acf3fd29.776b08","type":"switchNode","name":"switch parameter name","xml":"<switch test='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].vnf-name == $tmp.brg-mac-address-match`'>\n\n\n","comments":"","outputs":1,"x":1063.0776062011719,"y":804.2444152832031,"z":"bc96058f.0be17","wires":[["f475d495.514cd"]]},{"id":"f475d495.514cd","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1221.7998352050781,"y":950.3833312988281,"z":"bc96058f.0be17","wires":[["de288eb6.69fc3"]]},{"id":"de288eb6.69fc3","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1136.8833312988281,"y":1410.3833312988281,"z":"bc96058f.0be17","wires":[["a6b3e3e9.90a84","dfa8d8c7.ea1108","5bbba697.75684","d86083dc.da76d","a38f37f9.e78618","b822a12f.b44248","68a4fb65.a2c4c4","a19da93c.73dc5","52ea6240.b2f2dc","7c3272df.84a3ac"]]},{"id":"36f176a8.742e0a","type":"comment","name":"vnfidx ","info":"","comments":"","x":1383.1332702636719,"y":824.1333618164062,"z":"bc96058f.0be17","wires":[]},{"id":"a6b3e3e9.90a84","type":"for","name":"for each vnf parameter copy to vf_module_parameter","xml":"<for index='preloadIdx' start='0' end='`$tmp.endLoop1`'>\n<!--\n\n \"preload-data\": {\n \"vnf-topology-information\": {\n \"vnf-parameters\": [\n \n -->\n","comments":"","outputs":1,"x":1639.3832702636719,"y":1019.1333312988281,"z":"bc96058f.0be17","wires":[["140e457f.d81f6b"]]},{"id":"a69e097b.7c0ed8","type":"set","name":"set name/values","xml":"<set>\n<parameter name='tmp.vfmodule.param[$preloadIdx].name' value='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].preload-data.vnf-topology-information.vnf-parameters[$preloadIdx].vnf-parameter-name`' />\n<parameter name='tmp.vfmodule.param[$preloadIdx].value' value='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].preload-data.vnf-topology-information.vnf-parameters[$preloadIdx].vnf-parameter-value`' />","comments":"","x":2144.5223083496094,"y":1088.8555908203125,"z":"bc96058f.0be17","wires":[]},{"id":"d48c04fa.2c4798","type":"get-resource","name":"get-resource tunnelxcon-allotted-resources","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' \n key='tunnelxconn-allotted-resources/' pfx='tmp.txconns' >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t","comments":"","outputs":1,"x":561.2468872070312,"y":455.7015380859375,"z":"bc96058f.0be17","wires":[["12acbf73.3ab131"]]},{"id":"5b0bb137.e67718","type":"for","name":"for tmp.xconns.tunnelxconn-allotted-resoruces.tunnelxonn-alloted-resource[]","xml":"<for index='txidx' start='0' end='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource_length`' >\n\n\n","comments":"","outputs":1,"x":1032.3378295898438,"y":478.7923889160156,"z":"bc96058f.0be17","wires":[["34d79c6a.7822fc"]]},{"id":"e278c805.0d6108","type":"switchNode","name":"switch consuming-service-instance-id","xml":"<switch test='`$tmp.test1 == $tmp.consuming-service-instance-id`'>","comments":"","outputs":1,"x":1417.8833312988281,"y":610.6257019042969,"z":"bc96058f.0be17","wires":[["f19bb37c.7732c8"]]},{"id":"f19bb37c.7732c8","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1586.3833312988281,"y":680.9438781738281,"z":"bc96058f.0be17","wires":[["2ce4d935.c2c536"]]},{"id":"14ac448b.1e69bb","type":"set","name":"set thisIsVGW","xml":"<set>\n<parameter name='tmp.thisIsVGW' value='true' />\n","comments":"","x":1933.70166015625,"y":835.4288330078125,"z":"bc96058f.0be17","wires":[]},{"id":"624df7c1.860c6","type":"set","name":"set thisIsVGW false","xml":"<set>\n<parameter name='tmp.thisIsVGW' value='false' />\n","comments":"","x":481.7015075683594,"y":405.7015075683594,"z":"bc96058f.0be17","wires":[]},{"id":"882c4631.3dd488","type":"switchNode","name":"switch thsIsVGW","xml":"<switch test='`$tmp.thisIsVGW`'>\n","comments":"","outputs":1,"x":293.2469787597656,"y":514.2470397949219,"z":"bc96058f.0be17","wires":[["471004f2.b1042c","410482e7.5c2ae4"]]},{"id":"471004f2.b1042c","type":"other","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":315.97424038973713,"y":596.0651494806463,"z":"bc96058f.0be17","wires":[["18c6a218.701ff6"]]},{"id":"18c6a218.701ff6","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":497.5580749511719,"y":784.1770324707031,"z":"bc96058f.0be17","wires":[["237b9de9.473f7a","dc53e24a.603c38"]]},{"id":"4ae6c68e.7a2a08","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":853.5500793457031,"y":838.9945373535156,"z":"bc96058f.0be17","wires":[["acf3fd29.776b08","f1bf508c.bd629"]]},{"id":"34d79c6a.7822fc","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1186.8833312988281,"y":542.3277893066406,"z":"bc96058f.0be17","wires":[["e278c805.0d6108","bb4386f8.ea48b8"]]},{"id":"140e457f.d81f6b","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1942.2999572753906,"y":1051.0778198242188,"z":"bc96058f.0be17","wires":[["a69e097b.7c0ed8"]]},{"id":"12acbf73.3ab131","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":646.5499979654946,"y":506.1055535210503,"z":"bc96058f.0be17","wires":[["5b0bb137.e67718"]]},{"id":"bb4386f8.ea48b8","type":"set","name":"set test consuming service id tunnelxconn-allotted-resource-identifiers.consuming-service-instance-id","xml":"<set>\n<parameter name='tmp.test1' value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource[$txidx].allotted-resource-data.tunnelxconn-topology.allotted-resource-identifiers.consuming-service-instance-id`' />\n<!--\nthis is null\n<parameter name='tmp.test2' value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource-data[$txidx].tunnelxconn-topology[0].allotted-resource-identifiers[0].consuming-service-instance-id`' />\n-->","comments":"","x":1654.88330078125,"y":543.8832702636719,"z":"bc96058f.0be17","wires":[]},{"id":"f1bf508c.bd629","type":"set","name":"set test3","xml":"<set>\n<parameter name='tmp.test3' value='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].vnf-name`' />\n<parameter name='tmp.test4' value='`$tmp.brg-mac-address-match`'/>\n\n\n","comments":"","x":1014.8833312988281,"y":729.8833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"d86083dc.da76d","type":"set","name":"set length of for endLoop1","xml":"<set>\n<parameter name='tmp.endLoop1' value='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].preload-data.vnf-topology-information.vnf-parameters_length`' />","comments":"","x":1553.1333312988281,"y":945.3833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"a38f37f9.e78618","type":"set","name":"set vf-module-object-path","xml":"<set>\n<parameter name='tmp.vf-module-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $service-data.service-topology.service-topology-identifier.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id \n + '/'`\"/>\n","comments":"","x":1489.3833312988281,"y":1410.3833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"b822a12f.b44248","type":"set","name":"copy vf-module-parameters","xml":"<set>\n<!--\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param.'\n\n service-data.vnfs.vnf\\[0\\]. vnf-data.vf-modules.vf-module\\[0\\] .vf-module-data.vf-module-topology.vf-module-parameters.param.\n value='$tmp.vfmodule.' />\n-->\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.'\n value='$tmp.vfmodule.' />","comments":"","x":1526.8833923339844,"y":1816.1332702636719,"z":"bc96058f.0be17","wires":[]},{"id":"a429838.1a19f","type":"execute","name":"execute print context","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bdf-gw-vfmodule.log' />\n","comments":"","outputs":1,"x":1463.1333923339844,"y":1871.6332702636719,"z":"bc96058f.0be17","wires":[[]]},{"id":"68a4fb65.a2c4c4","type":"set","name":"set tmp.vfmodule.param_length","xml":"<set>\n<parameter name='tmp.vfmodule.param_length' value='`$tmp.endLoop1`' />\n","comments":"","x":1573.1335144042969,"y":1082.8833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"42e73536.d72f4c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1214.3833312988281,"y":1630.3833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"a19da93c.73dc5","type":"for","name":"for paramIdx to set VNI","xml":"<for index='paramIdx' start='0' end='`$tmp.vfmodule.param_length`' >\n","comments":"","outputs":1,"x":1561.8833312988281,"y":1730.3833312988281,"z":"bc96058f.0be17","wires":[["7d547fc4.1adf08"]]},{"id":"82836bf9.38d2b","type":"switchNode","name":"switch parameter name vg-mux-tunnel-vni","xml":"<switch test='`$tmp.vfmodule.param[$paramIdx].name == $tmp.vg-mux-tunnel-vni-match`'>","comments":"","outputs":1,"x":2059.383331298828,"y":1799.1333312988281,"z":"bc96058f.0be17","wires":[["45b12bfc.a4b0c4"]]},{"id":"45b12bfc.a4b0c4","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2376.883331298828,"y":1826.6333312988281,"z":"bc96058f.0be17","wires":[["c13aaa81.4af1"]]},{"id":"c13aaa81.4af1","type":"set","name":"set vni in tmp.vfmodule.param","xml":"<set>\n<parameter name='$tmp.vfmodule.param[$paramIdx].value' value='`$tmp.vg-vgmux-tunnel-vni`' />\n\n<!--\n<parameter name='$tmp.vfmodule.param[$paramIdx].value' value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vni`' />\n-->","comments":"","x":2589.383331298828,"y":1864.1333312988281,"z":"bc96058f.0be17","wires":[]},{"id":"7c3272df.84a3ac","type":"set","name":"set switch test string","xml":"<set>\n<!--\n<parameter name='tmp.service.vnf.vf-module.vg-mux-tunnel-vni' value='`$input.vni`' />\n-->\n<parameter name='tmp.vg-mux-tunnel-vni-match' value='vg_vgmux_tunnel_vni' />\n<parameter name='tmp.vg-lan-ip-match' value='vgw_private_ip_0' />\n\n\n\n\n","comments":"","x":1551.8833312988281,"y":1680.3833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"7d547fc4.1adf08","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1768.1333312988281,"y":1725.3833312988281,"z":"bc96058f.0be17","wires":[["82836bf9.38d2b","3a91d5b1.ed18e2"]]},{"id":"93a3aef6.595498","type":"set","name":"set to see tmpvfmodule.param[].name","xml":"<set>\n<!--\n<parameter name='tmp.service.vnf.vf-module.vg-mux-tunnel-vni' value='`$input.vni`' />\n-->\n<parameter name='tmp.test.param[$paramIdx].name' value='`$tmp.vfmodule.param[$paramIdx].name`' />\n\n\n\n","comments":"","x":2046.8833923339844,"y":1717.8833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"32d9e6bc.6b7b1a","type":"comment","name":"let md-sal helper save data so no need for the RESTAPICAll Node","info":"","comments":"","x":1559.3832397460938,"y":1970.3833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"255c43c1.03152c","type":"comment","name":" using path from calling DG - these nodes for testing","info":"","comments":"","x":2041.8833312988281,"y":1421.6333312988281,"z":"bc96058f.0be17","wires":[]},{"id":"d31c84e2.95ef98","type":"set","name":"set MACADDRESS fa:16:3e:8f:ea:68 ","xml":"<set>\n<parameter name='tmp.brg-macaddress' value='fa:16:3e:8f:ea:68' />\n\n","comments":"","x":538.88330078125,"y":253.88333129882812,"z":"bc96058f.0be17","wires":[]},{"id":"90adc253.a591d","type":"set","name":"set VGW2BRG-MACADDRESs & consuming service-instance","xml":"<set>\n<parameter name='tmp.brg-mac-address-match' value=\"`'VGW2BRG-' + $tmp.brg-macaddress`\"/>\n<parameter name='tmp.consuming-service-instance-id' value='`$service-data.service-topology.service-topology-identifier.service-instance-id`' />\n\n<!--\n<parameter name='tmp.brg-macaddress' value='fa:16:3e:8f:ea:68' />\n<parameter name='tmp.brg-mac-address-match' value=\"`'VGW2BRG-' + $tmp.brg-macaddress`\"/>\n-->\n<!--\n<parameter name='tmp.consuming-service-instance-id' value='b3cb7040-f7a5-4beb-ad2f-2a893b7d374b' />\nservice-data.service-topology.service-topology-identifier.service-instance-id\n\n-->\n","comments":"","x":2075.88330078125,"y":726.88330078125,"z":"bc96058f.0be17","wires":[]},{"id":"2ce4d935.c2c536","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1731.8833312988281,"y":710.8833312988281,"z":"bc96058f.0be17","wires":[["14ac448b.1e69bb","90adc253.a591d","c883d2d4.0b377","7e472b82.55e40c"]]},{"id":"c883d2d4.0b377","type":"set","name":"set MACADDRESS tmp.txconcs...brg-wan-mac-address","xml":"<set>\n<parameter name='tmp.brg-macaddress' \n value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.brg-wan-mac-address`' />\n\n","comments":"","x":2049.883331298828,"y":664.8833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"410482e7.5c2ae4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":255.88333129882812,"y":754.8833312988281,"z":"bc96058f.0be17","wires":[["c0e9ce09.8d6c28"]]},{"id":"90cc4165.e57f28","type":"returnFailure","name":"return failure Did not find vGW Preload","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Did not find vGW Preload' />\n","comments":"","x":513.8833312988281,"y":920.8833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"c0e9ce09.8d6c28","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":267.8833312988281,"y":832.8833312988281,"z":"bc96058f.0be17","wires":[["90cc4165.e57f28"]]},{"id":"ffcaa277.9c9268","type":"execute","name":"execute print context","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bdf-gw-vfmodule.failure.log' />\n","comments":"","outputs":1,"x":463.8833312988281,"y":869.8833312988281,"z":"bc96058f.0be17","wires":[[]]},{"id":"3a91d5b1.ed18e2","type":"switchNode","name":"switch parameter name vg-mux-tunnel-vni","xml":"<switch test='`$tmp.vfmodule.param[$paramIdx].name == $tmp.vg-lan-ip-match`'>","comments":"","outputs":1,"x":2052.883331298828,"y":1863.8833312988281,"z":"bc96058f.0be17","wires":[["84f06b0c.c3c108"]]},{"id":"84f06b0c.c3c108","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2370.383331298828,"y":1891.3833312988281,"z":"bc96058f.0be17","wires":[["646b48f6.2f6d28"]]},{"id":"646b48f6.2f6d28","type":"set","name":"set lan-ip[ in tmp.vfmodule.param","xml":"<set>\n<parameter name='$tmp.vfmodule.param[$paramIdx].value' value='`$tmp.vg-ip`' />\n<!--\n<parameter name='$tmp.vfmodule.param[$paramIdx].value' value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vg-ip`' />\n-->","comments":"","x":2582.883331298828,"y":1928.8833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"5231bd00.7e3c04","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1804.8833312988281,"y":1865.8833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"7e472b82.55e40c","type":"set","name":"set VNI and VG-IP","xml":"<set>\n<parameter name='tmp.vg-vgmux-tunnel-vni' \n value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource[$txidx].allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vni`' />\n<parameter name='tmp.vg-ip' \n value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource[$txidx].allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vg-ip`' />\n","comments":"","x":1941.716796875,"y":785.88330078125,"z":"bc96058f.0be17","wires":[]}]
\ No newline at end of file +[{"id":"3806658c.26497a","type":"dgstart","name":"DGSTART","outputs":1,"x":147.88333129882812,"y":88.88333129882812,"z":"bc96058f.0be17","wires":[["45fcd240.2d898c"]]},{"id":"45fcd240.2d898c","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":244.12141036987305,"y":149.8357219696045,"z":"bc96058f.0be17","wires":[["40e26cd9.3c35a4"]]},{"id":"40e26cd9.3c35a4","type":"method","name":"gw-vfmodule-update","xml":"<method rpc='gw-vfmodule-update' mode='sync'>\n","comments":"","outputs":1,"x":128.0382194519043,"y":243.07376194000244,"z":"bc96058f.0be17","wires":[["5bd01702.fa9438"]]},{"id":"5bd01702.fa9438","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":244.8833122253418,"y":342.88333225250244,"z":"bc96058f.0be17","wires":[["d48c04fa.2c4798","624df7c1.860c6","882c4631.3dd488","b22dc7b6.0678d"]]},{"id":"77492a71.217b24","type":"execute","name":"generate vnf service-info url - vnf-d","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.vnf-api-url1`\"/>\n <parameter name=\"outputPath\" value=\"tmp.vnf-api-url2\"/>\n <parameter name=\"target\" value=\"{vnf-id}\"/>\n <parameter name=\"replacement\" value=\"`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.gw-vnf-id`\"/>\n\n","comments":"","outputs":1,"x":2004.1333923339844,"y":1512.883544921875,"z":"bc96058f.0be17","wires":[[]]},{"id":"9c97aad1.b5c07","type":"execute","name":"execute RestApiCallNode - PUT service into service","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.services.vnf.vfmodule.templatefile`\" />\n <!--\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.vnf-api-url3`' />\n -->\n <parameter name='restapiUrl' value='`$tmp.vf-module-object-path`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-vfmodule-vgw\" />\n\n","comments":"","outputs":1,"x":1590.8832702636719,"y":2043.8835144042969,"z":"bc96058f.0be17","wires":[["b5a49632.9fe928"]]},{"id":"5d685b37.cddc0c","type":"execute","name":"generate vnf service-info url - service-instance-id","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.service.vnf.vfmodule-resource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.vnf-api-url1\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.service-data.service-information.service-instance-id`\"/>\n","comments":"","outputs":1,"x":2049.6333923339844,"y":1470.133544921875,"z":"bc96058f.0be17","wires":[[]]},{"id":"492fb368.715544","type":"execute","name":"generate vnf service-info url - vf-module-id","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.vnf-api-url2`\"/>\n <parameter name=\"outputPath\" value=\"tmp.vnf-api-url3\"/>\n <parameter name=\"target\" value=\"{vf-module-id}\"/>\n <parameter name=\"replacement\" value=\"`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.gw-vfmodule-id`\"/>\n\n","comments":"","outputs":1,"x":2028.3833923339844,"y":1553.883544921875,"z":"bc96058f.0be17","wires":[[]]},{"id":"52ea6240.b2f2dc","type":"set","name":"set tmp.vgw.vg_mux_tunnel.vni","xml":"<set>\n<!--\n<parameter name='tmp.service.vnf.vf-module.vg-mux-tunnel-vni' value='`$input.vni`' />\n-->\n<parameter name='tmp.service.vnf.vf-module.vg-mux-tunnel-vni' value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource[0].allotted-resource-data[0].tunnelxconn-topology[0].tunnelxconn-assignments[0].vni`' />\n<parameter name='tmp.service.vnf.vf-module.vg-lan-ip' value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource[0].allotted-resource-data[0].tunnelxconn-topology[0].tunnelxconn-assignments[0].vg-ip`' />\n\n\n\n","comments":"","x":1582.1333923339844,"y":1631.383544921875,"z":"bc96058f.0be17","wires":[]},{"id":"77b6a8fb.175e6","type":"set","name":"set tmp.service.vnf.vf-module-id","xml":"<set>\n<parameter name='tmp.service.vnf.vf-module.vf-module-id' value='9aa4ede4-c639-48c4-9386-74c9ff87f8e3' />\n<parameter name='brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.gw-vfmodule-id' value='9aa4ede4-c639-48c4-9386-74c9ff87f8e3' />","comments":"","x":2044.6333312988281,"y":1310.9667358398438,"z":"bc96058f.0be17","wires":[]},{"id":"4601a28d.aedf2c","type":"set","name":"set tmp.service-data.vnf-information.vnf-id","xml":"<set>\n<parameter name='tmp.service-data.vnf-information.vnf-id' value='3a3332d1-12ad-4709-ac81-ba32b304a462' />\n<parameter name='brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.gw-vnf-id' value='3a3332d1-12ad-4709-ac81-ba32b304a462' />\n","comments":"","x":2010.8833312988281,"y":1270.9667358398438,"z":"bc96058f.0be17","wires":[]},{"id":"5b7201c1.a4887","type":"set","name":"set tmp.service-data.service-information.service-instance-id","xml":"<set>\n<parameter name='tmp.service-data.service-information.service-instance-id' value='6e34b9fb-9ec1-4c95-9e12-0326c434c623' />\n","comments":"","x":2059.633270263672,"y":1215.9665832519531,"z":"bc96058f.0be17","wires":[]},{"id":"5bbba697.75684","type":"set","name":"set tmp.service.vnf.vf-module-id","xml":"<set>\n<parameter name='tmp.restapi.service.vnf.vfmodule-resource' value='`$prop.restapi.service.vnf.vfmodule-resource`' />\n","comments":"","x":1564.6333312988281,"y":1349.7166748046875,"z":"bc96058f.0be17","wires":[]},{"id":"dfa8d8c7.ea1108","type":"execute","name":"execute Propertis gen-res-api-dg","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":1572.1332092285156,"y":1140.9667358398438,"z":"bc96058f.0be17","wires":[[]]},{"id":"b5a49632.9fe928","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1872.1332702636719,"y":2095.133514404297,"z":"bc96058f.0be17","wires":[["80ab6de6.18d81"]]},{"id":"80ab6de6.18d81","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Failed on PUT vf-module parameters to MD0SAL' />\n","comments":"","x":2062.133270263672,"y":2103.883514404297,"z":"bc96058f.0be17","wires":[]},{"id":"b22dc7b6.0678d","type":"set","name":"set consuming service-instance","xml":"<set>\n<!--\n<parameter name='tmp.brg-macaddress' value='fa:16:3e:8f:ea:68' />\n\n\n<parameter name='tmp.consuming-service-instance-id' value='b3cb7040-f7a5-4beb-ad2f-2a893b7d374b' />\nservice-data.service-topology.service-topology-identifier.service-instance-id\n\n-->\n<parameter name='tmp.brg-mac-address-match' value=\"`'VGW2BRG-' + $tmp.brg-macaddress`\"/>\n<parameter name='tmp.consuming-service-instance-id' value='`$service-data.service-topology.service-topology-identifier.service-instance-id`' />\n","comments":"","x":512.8833923339844,"y":352.9667663574219,"z":"bc96058f.0be17","wires":[]},{"id":"237b9de9.473f7a","type":"get-resource","name":"get-resource vnfs","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='preload-vnfs' pfx='tmp.preloadvnfdata' >\n","comments":"","outputs":1,"x":781.1888732910156,"y":686.63330078125,"z":"bc96058f.0be17","wires":[[]]},{"id":"dc53e24a.603c38","type":"for","name":"for tmp.vnfs","xml":"<for index='vnfidx' start='0' end='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list_length`' >\n\n\n","comments":"","outputs":1,"x":753.0777587890625,"y":773.855712890625,"z":"bc96058f.0be17","wires":[["4ae6c68e.7a2a08"]]},{"id":"acf3fd29.776b08","type":"switchNode","name":"switch parameter name","xml":"<switch test='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].vnf-name == $tmp.brg-mac-address-match`'>\n\n\n","comments":"","outputs":1,"x":1063.0776062011719,"y":804.2444152832031,"z":"bc96058f.0be17","wires":[["f475d495.514cd"]]},{"id":"f475d495.514cd","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1221.7998352050781,"y":950.3833312988281,"z":"bc96058f.0be17","wires":[["de288eb6.69fc3"]]},{"id":"de288eb6.69fc3","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1136.8833312988281,"y":1410.3833312988281,"z":"bc96058f.0be17","wires":[["a6b3e3e9.90a84","dfa8d8c7.ea1108","5bbba697.75684","d86083dc.da76d","a38f37f9.e78618","b822a12f.b44248","68a4fb65.a2c4c4","a19da93c.73dc5","52ea6240.b2f2dc","7c3272df.84a3ac"]]},{"id":"36f176a8.742e0a","type":"comment","name":"vnfidx ","info":"","comments":"","x":1383.1332702636719,"y":824.1333618164062,"z":"bc96058f.0be17","wires":[]},{"id":"a6b3e3e9.90a84","type":"for","name":"for each vnf parameter copy to vf_module_parameter","xml":"<for index='preloadIdx' start='0' end='`$tmp.endLoop1`'>\n<!--\n\n \"preload-data\": {\n \"vnf-topology-information\": {\n \"vnf-parameters\": [\n \n -->\n","comments":"","outputs":1,"x":1639.3832702636719,"y":1019.1333312988281,"z":"bc96058f.0be17","wires":[["140e457f.d81f6b"]]},{"id":"a69e097b.7c0ed8","type":"set","name":"set name/values","xml":"<set>\n<parameter name='tmp.vfmodule.param[$preloadIdx].name' value='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].preload-data.vnf-topology-information.vnf-parameters[$preloadIdx].vnf-parameter-name`' />\n<parameter name='tmp.vfmodule.param[$preloadIdx].value' value='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].preload-data.vnf-topology-information.vnf-parameters[$preloadIdx].vnf-parameter-value`' />","comments":"","x":2144.5223083496094,"y":1088.8555908203125,"z":"bc96058f.0be17","wires":[]},{"id":"d48c04fa.2c4798","type":"get-resource","name":"get-resource tunnelxcon-allotted-resources","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' \n key='tunnelxconn-allotted-resources/' pfx='tmp.txconns' >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t","comments":"","outputs":1,"x":561.2468872070312,"y":455.7015380859375,"z":"bc96058f.0be17","wires":[["12acbf73.3ab131"]]},{"id":"5b0bb137.e67718","type":"for","name":"for tmp.xconns.tunnelxconn-allotted-resoruces.tunnelxonn-alloted-resource[]","xml":"<for index='txidx' start='0' end='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource_length`' >\n\n\n","comments":"","outputs":1,"x":1032.3378295898438,"y":478.7923889160156,"z":"bc96058f.0be17","wires":[["34d79c6a.7822fc"]]},{"id":"e278c805.0d6108","type":"switchNode","name":"switch consuming-service-instance-id","xml":"<switch test='`$tmp.test1 == $tmp.consuming-service-instance-id`'>","comments":"","outputs":1,"x":1417.8833312988281,"y":610.6257019042969,"z":"bc96058f.0be17","wires":[["f19bb37c.7732c8"]]},{"id":"f19bb37c.7732c8","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1586.3833312988281,"y":680.9438781738281,"z":"bc96058f.0be17","wires":[["2ce4d935.c2c536"]]},{"id":"14ac448b.1e69bb","type":"set","name":"set thisIsVGW","xml":"<set>\n<parameter name='tmp.thisIsVGW' value='true' />\n","comments":"","x":1933.70166015625,"y":835.4288330078125,"z":"bc96058f.0be17","wires":[]},{"id":"624df7c1.860c6","type":"set","name":"set thisIsVGW false","xml":"<set>\n<parameter name='tmp.thisIsVGW' value='false' />\n","comments":"","x":481.7015075683594,"y":405.7015075683594,"z":"bc96058f.0be17","wires":[]},{"id":"882c4631.3dd488","type":"switchNode","name":"switch thsIsVGW","xml":"<switch test='`$tmp.thisIsVGW`'>\n","comments":"","outputs":1,"x":293.2469787597656,"y":514.2470397949219,"z":"bc96058f.0be17","wires":[["471004f2.b1042c","410482e7.5c2ae4"]]},{"id":"471004f2.b1042c","type":"other","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":315.97424038973713,"y":596.0651494806463,"z":"bc96058f.0be17","wires":[["18c6a218.701ff6"]]},{"id":"18c6a218.701ff6","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":497.5580749511719,"y":784.1770324707031,"z":"bc96058f.0be17","wires":[["237b9de9.473f7a","dc53e24a.603c38"]]},{"id":"4ae6c68e.7a2a08","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":853.5500793457031,"y":838.9945373535156,"z":"bc96058f.0be17","wires":[["acf3fd29.776b08","f1bf508c.bd629"]]},{"id":"34d79c6a.7822fc","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1186.8833312988281,"y":542.3277893066406,"z":"bc96058f.0be17","wires":[["e278c805.0d6108","bb4386f8.ea48b8"]]},{"id":"140e457f.d81f6b","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1942.2999572753906,"y":1051.0778198242188,"z":"bc96058f.0be17","wires":[["a69e097b.7c0ed8"]]},{"id":"12acbf73.3ab131","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":646.5499979654946,"y":506.1055535210503,"z":"bc96058f.0be17","wires":[["5b0bb137.e67718"]]},{"id":"bb4386f8.ea48b8","type":"set","name":"set test consuming service id tunnelxconn-allotted-resource-identifiers.consuming-service-instance-id","xml":"<set>\n<parameter name='tmp.test1' value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource[$txidx].allotted-resource-data.tunnelxconn-topology.allotted-resource-identifiers.consuming-service-instance-id`' />\n<!--\nthis is null\n<parameter name='tmp.test2' value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource-data[$txidx].tunnelxconn-topology[0].allotted-resource-identifiers[0].consuming-service-instance-id`' />\n-->","comments":"","x":1654.88330078125,"y":543.8832702636719,"z":"bc96058f.0be17","wires":[]},{"id":"f1bf508c.bd629","type":"set","name":"set test3","xml":"<set>\n<parameter name='tmp.test3' value='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].vnf-name`' />\n<parameter name='tmp.test4' value='`$tmp.brg-mac-address-match`'/>\n\n\n","comments":"","x":1014.8833312988281,"y":729.8833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"d86083dc.da76d","type":"set","name":"set length of for endLoop1","xml":"<set>\n<parameter name='tmp.endLoop1' value='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[$vnfidx].preload-data.vnf-topology-information.vnf-parameters_length`' />","comments":"","x":1553.1333312988281,"y":945.3833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"a38f37f9.e78618","type":"set","name":"set vf-module-object-path","xml":"<set>\n<parameter name='tmp.vf-module-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $service-data.service-topology.service-topology-identifier.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id \n + '?content=config'`\"/>\n","comments":"","x":1489.3833312988281,"y":1410.3833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"b822a12f.b44248","type":"set","name":"copy vf-module-parameters","xml":"<set>\n<!--\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param.'\n\n service-data.vnfs.vnf\\[0\\]. vnf-data.vf-modules.vf-module\\[0\\] .vf-module-data.vf-module-topology.vf-module-parameters.param.\n value='$tmp.vfmodule.' />\n-->\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.'\n value='$tmp.vfmodule.' />","comments":"","x":1526.8833923339844,"y":1816.1332702636719,"z":"bc96058f.0be17","wires":[]},{"id":"a429838.1a19f","type":"execute","name":"execute print context","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bdf-gw-vfmodule.log' />\n","comments":"","outputs":1,"x":1463.1333923339844,"y":1871.6332702636719,"z":"bc96058f.0be17","wires":[[]]},{"id":"68a4fb65.a2c4c4","type":"set","name":"set tmp.vfmodule.param_length","xml":"<set>\n<parameter name='tmp.vfmodule.param_length' value='`$tmp.endLoop1`' />\n","comments":"","x":1573.1335144042969,"y":1082.8833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"42e73536.d72f4c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1214.3833312988281,"y":1630.3833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"a19da93c.73dc5","type":"for","name":"for paramIdx to set VNI","xml":"<for index='paramIdx' start='0' end='`$tmp.vfmodule.param_length`' >\n","comments":"","outputs":1,"x":1561.8833312988281,"y":1730.3833312988281,"z":"bc96058f.0be17","wires":[["7d547fc4.1adf08"]]},{"id":"82836bf9.38d2b","type":"switchNode","name":"switch parameter name vg-mux-tunnel-vni","xml":"<switch test='`$tmp.vfmodule.param[$paramIdx].name == $tmp.vg-mux-tunnel-vni-match`'>","comments":"","outputs":1,"x":2059.383331298828,"y":1799.1333312988281,"z":"bc96058f.0be17","wires":[["45b12bfc.a4b0c4"]]},{"id":"45b12bfc.a4b0c4","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2376.883331298828,"y":1826.6333312988281,"z":"bc96058f.0be17","wires":[["c13aaa81.4af1"]]},{"id":"c13aaa81.4af1","type":"set","name":"set vni in tmp.vfmodule.param","xml":"<set>\n<parameter name='$tmp.vfmodule.param[$paramIdx].value' value='`$tmp.vg-vgmux-tunnel-vni`' />\n\n<!--\n<parameter name='$tmp.vfmodule.param[$paramIdx].value' value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vni`' />\n-->","comments":"","x":2589.383331298828,"y":1864.1333312988281,"z":"bc96058f.0be17","wires":[]},{"id":"7c3272df.84a3ac","type":"set","name":"set switch test string","xml":"<set>\n<!--\n<parameter name='tmp.service.vnf.vf-module.vg-mux-tunnel-vni' value='`$input.vni`' />\n-->\n<parameter name='tmp.vg-mux-tunnel-vni-match' value='vg_vgmux_tunnel_vni' />\n<parameter name='tmp.vg-lan-ip-match' value='vgw_private_ip_0' />\n\n\n\n\n","comments":"","x":1551.8833312988281,"y":1680.3833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"7d547fc4.1adf08","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1768.1333312988281,"y":1725.3833312988281,"z":"bc96058f.0be17","wires":[["82836bf9.38d2b","3a91d5b1.ed18e2"]]},{"id":"93a3aef6.595498","type":"set","name":"set to see tmpvfmodule.param[].name","xml":"<set>\n<!--\n<parameter name='tmp.service.vnf.vf-module.vg-mux-tunnel-vni' value='`$input.vni`' />\n-->\n<parameter name='tmp.test.param[$paramIdx].name' value='`$tmp.vfmodule.param[$paramIdx].name`' />\n\n\n\n","comments":"","x":2046.8833923339844,"y":1717.8833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"32d9e6bc.6b7b1a","type":"comment","name":"let md-sal helper save data so no need for the RESTAPICAll Node","info":"","comments":"","x":1559.3832397460938,"y":1970.3833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"255c43c1.03152c","type":"comment","name":" using path from calling DG - these nodes for testing","info":"","comments":"","x":2041.8833312988281,"y":1421.6333312988281,"z":"bc96058f.0be17","wires":[]},{"id":"d31c84e2.95ef98","type":"set","name":"set MACADDRESS fa:16:3e:8f:ea:68 ","xml":"<set>\n<parameter name='tmp.brg-macaddress' value='fa:16:3e:8f:ea:68' />\n\n","comments":"","x":538.88330078125,"y":253.88333129882812,"z":"bc96058f.0be17","wires":[]},{"id":"90adc253.a591d","type":"set","name":"set VGW2BRG-MACADDRESs & consuming service-instance","xml":"<set>\n<parameter name='tmp.brg-mac-address-match' value=\"`'VGW2BRG-' + $tmp.brg-macaddress`\"/>\n<parameter name='tmp.consuming-service-instance-id' value='`$service-data.service-topology.service-topology-identifier.service-instance-id`' />\n\n<!--\n<parameter name='tmp.brg-macaddress' value='fa:16:3e:8f:ea:68' />\n<parameter name='tmp.brg-mac-address-match' value=\"`'VGW2BRG-' + $tmp.brg-macaddress`\"/>\n-->\n<!--\n<parameter name='tmp.consuming-service-instance-id' value='b3cb7040-f7a5-4beb-ad2f-2a893b7d374b' />\nservice-data.service-topology.service-topology-identifier.service-instance-id\n\n-->\n","comments":"","x":2075.88330078125,"y":726.88330078125,"z":"bc96058f.0be17","wires":[]},{"id":"2ce4d935.c2c536","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1731.8833312988281,"y":710.8833312988281,"z":"bc96058f.0be17","wires":[["14ac448b.1e69bb","90adc253.a591d","c883d2d4.0b377","7e472b82.55e40c"]]},{"id":"c883d2d4.0b377","type":"set","name":"set MACADDRESS tmp.txconcs...brg-wan-mac-address","xml":"<set>\n<parameter name='tmp.brg-macaddress' \n value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.brg-wan-mac-address`' />\n\n","comments":"","x":2049.883331298828,"y":664.8833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"410482e7.5c2ae4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":255.88333129882812,"y":754.8833312988281,"z":"bc96058f.0be17","wires":[["c0e9ce09.8d6c28"]]},{"id":"90cc4165.e57f28","type":"returnFailure","name":"return failure Did not find vGW Preload","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Did not find vGW Preload' />\n","comments":"","x":513.8833312988281,"y":920.8833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"c0e9ce09.8d6c28","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":267.8833312988281,"y":832.8833312988281,"z":"bc96058f.0be17","wires":[["90cc4165.e57f28"]]},{"id":"ffcaa277.9c9268","type":"execute","name":"execute print context","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/bdf-gw-vfmodule.failure.log' />\n","comments":"","outputs":1,"x":463.8833312988281,"y":869.8833312988281,"z":"bc96058f.0be17","wires":[[]]},{"id":"3a91d5b1.ed18e2","type":"switchNode","name":"switch parameter name vg-mux-tunnel-vni","xml":"<switch test='`$tmp.vfmodule.param[$paramIdx].name == $tmp.vg-lan-ip-match`'>","comments":"","outputs":1,"x":2052.883331298828,"y":1863.8833312988281,"z":"bc96058f.0be17","wires":[["84f06b0c.c3c108"]]},{"id":"84f06b0c.c3c108","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2370.383331298828,"y":1891.3833312988281,"z":"bc96058f.0be17","wires":[["646b48f6.2f6d28"]]},{"id":"646b48f6.2f6d28","type":"set","name":"set lan-ip[ in tmp.vfmodule.param","xml":"<set>\n<parameter name='$tmp.vfmodule.param[$paramIdx].value' value='`$tmp.vg-ip`' />\n<!--\n<parameter name='$tmp.vfmodule.param[$paramIdx].value' value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vg-ip`' />\n-->","comments":"","x":2582.883331298828,"y":1928.8833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"5231bd00.7e3c04","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1804.8833312988281,"y":1865.8833312988281,"z":"bc96058f.0be17","wires":[]},{"id":"7e472b82.55e40c","type":"set","name":"set VNI and VG-IP","xml":"<set>\n<parameter name='tmp.vg-vgmux-tunnel-vni' \n value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource[$txidx].allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vni`' />\n<parameter name='tmp.vg-ip' \n value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource[$txidx].allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vg-ip`' />\n","comments":"","x":1941.716796875,"y":785.88330078125,"z":"bc96058f.0be17","wires":[]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-activate.json index 43bae8f7..d303cbaa 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-activate.json @@ -1 +1 @@ -[{"id":"aad8b671.6c92a8","type":"dgstart","name":"DGSTART","outputs":1,"x":171.75,"y":129.5,"z":"31276fa5.74ef8","wires":[["fc1afe3.c14518"]]},{"id":"fc1afe3.c14518","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":247.03570556640625,"y":169.73811149597168,"z":"31276fa5.74ef8","wires":[["8bb44f8f.960958"]]},{"id":"8bb44f8f.960958","type":"method","name":"network-topology-operation-activate","xml":"<method rpc='network-topology-operation-activate' mode='sync'>\n","comments":"","outputs":1,"x":288.4286346435547,"y":213.2499942779541,"z":"31276fa5.74ef8","wires":[["6a980331.36ce2c"]]},{"id":"6a980331.36ce2c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":287.7500305175781,"y":307.9434814453125,"z":"31276fa5.74ef8","wires":[["347a2bc6.901ffc","7c8b3998.1a0b68","70e85b23.8d3054","4a68fc12.7927f4","280acaa8.006566","afca1cc9.37ef2","f95d52a7.cfe038","1dc0ccd9.62a26b"]]},{"id":"f8ffe16f.6d2ce8","type":"not-found","name":"not found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":818.75,"y":301.50001525878906,"z":"31276fa5.74ef8","wires":[["e493f260.987388"]]},{"id":"e493f260.987388","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name=\"error-code\" value=\"404\" />\n\t<parameter name=\"error-message\" value=\"network-id not found in AAI\" />","comments":"","x":981.9443969726562,"y":301.6112365722656,"z":"31276fa5.74ef8","wires":[]},{"id":"347a2bc6.901ffc","type":"get-resource","name":"get AnAI - l3-network by network-id","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-information.network-id AND \n depth = 'all'\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.l3-network\">\n","comments":"","outputs":1,"x":583.4721069335938,"y":305.984619140625,"z":"31276fa5.74ef8","wires":[["f8ffe16f.6d2ce8","7fd1cc43.5cbeac"]]},{"id":"7fd1cc43.5cbeac","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":811.4721069335938,"y":339.984619140625,"z":"31276fa5.74ef8","wires":[["695fe527.9c94ac"]]},{"id":"695fe527.9c94ac","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 retrieving l3-network with network-id=' + $network-topology-operation-input.network-request-information.network-id + 'from AnAI'\" />","comments":"","x":963.5831909179688,"y":340.20684814453125,"z":"31276fa5.74ef8","wires":[]},{"id":"ca70884c.912a78","type":"set","name":"set entity-id and plan-name","xml":"<set>\n\t<parameter name=\"eipam-ip-block.entity-id\" value=\"`$aai.l3-network.subnets.subnet[$sidx].subnet-id`\"/>\n\t<parameter name=\"eipam-ip-block.plans[0].plan-name\" value=\"`$tmp.eipam-subnet-row.plan-name`\"/>\n","comments":"","x":1016.8294677734375,"y":1121.5794067382812,"z":"31276fa5.74ef8","wires":[]},{"id":"e4a7e0a0.e6b8a8","type":"for","name":"for 0..subnet_length","xml":"<for index='sidx' start='0' end='`$aai.l3-network.subnets.subnet_length`' >\n","comments":"","outputs":1,"x":954.1151123046875,"y":836.7222900390625,"z":"31276fa5.74ef8","wires":[["ffba001b.9779c"]]},{"id":"ffba001b.9779c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1158.1151123046875,"y":835.8651123046875,"z":"31276fa5.74ef8","wires":[["caf9a917.b8b4b"]]},{"id":"caf9a917.b8b4b","type":"get-resource","name":"get eipam-ip-subnet by subnet-id","xml":"<get-resource\n plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n resource='SQL'\n key=\"SELECT * from EIPAM_IP_SUBNETS where entity_id = $aai.l3-network.subnets.subnet[$sidx].subnet-id ; \"\n pfx='tmp.eipam-subnet-row'>\n\n","comments":"","outputs":1,"x":1113.2580261230469,"y":973.7222194671631,"z":"31276fa5.74ef8","wires":[["82c93d87.3c4cd8","8afed5a1.3d3c5","4c63e33f.93a614"]]},{"id":"b9d0e076.a549f","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Query to DB table EIPAM_IP_SUBNETS failed to find subnet matching aai subnet.\" />\n\t","comments":"","x":1521.4007873535156,"y":921.4365007579327,"z":"31276fa5.74ef8","wires":[]},{"id":"82c93d87.3c4cd8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1371.9723815917969,"y":989.4364711940289,"z":"31276fa5.74ef8","wires":[["9227ef6b.5a4c5"]]},{"id":"8afed5a1.3d3c5","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1372.2626647949219,"y":923.4365007579327,"z":"31276fa5.74ef8","wires":[["b9d0e076.a549f"]]},{"id":"4c63e33f.93a614","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":1373.119773864746,"y":957.7222213745117,"z":"31276fa5.74ef8","wires":[["a33338bb.a90c68"]]},{"id":"9227ef6b.5a4c5","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1524.6864700317383,"y":990.8650915324688,"z":"31276fa5.74ef8","wires":[["ca70884c.912a78","e84c68d7.f3801","56f420bb.33bc5"]]},{"id":"a33338bb.a90c68","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Subnet not found in EIPAM_IP_SUBNETS - activate failed.\" />\n\t","comments":"","x":1520.4006271362305,"y":953.7222518920898,"z":"31276fa5.74ef8","wires":[]},{"id":"e84c68d7.f3801","type":"execute","name":"execute EIPAM activateSubnet","xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin\" method=\"activateSubnet\">\n","comments":"subnet and subnet_keys are deleted in the EIPAMPlugin","outputs":1,"x":1029.686508178711,"y":1164.4364957809448,"z":"31276fa5.74ef8","wires":[["a48dd3e1.d2aa28"]]},{"id":"a48dd3e1.d2aa28","type":"failure","name":"failure","xml":"<outcome value='failure'>","outputs":1,"x":1239.686538696289,"y":1165.8268613815308,"z":"31276fa5.74ef8","wires":[["9055635.fe4ed2"]]},{"id":"9055635.fe4ed2","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occured while activating subnet in EIPAM.\" />\n\t","comments":"","x":1403.6865196228027,"y":1164.5411539077759,"z":"31276fa5.74ef8","wires":[]},{"id":"56f420bb.33bc5","type":"save","name":"Update subnet to Active in DB","xml":"<save \n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"UPDATE EIPAM_IP_SUBNETS\n SET status = 'ACTIVE'\n WHERE entity_id = $eipam-ip-block.entity-id ; \"\n force='true'\n pfx='pfx.eipam-subnet-row'>\n","comments":"","outputs":1,"x":1028.2580108642578,"y":1204.436442375183,"z":"31276fa5.74ef8","wires":[["10829540.6646b3","5cb79e38.5ce198","f0c9957e.af2a88"]]},{"id":"e78db626.6538f8","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occured while updating subnet to active in mysql.\" />\n\t","comments":"","x":1396.8293914794922,"y":1211.5793180465698,"z":"31276fa5.74ef8","wires":[]},{"id":"f0c9957e.af2a88","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1247.4009857177734,"y":1279.579288482666,"z":"31276fa5.74ef8","wires":[["ea1492ee.0f56a"]]},{"id":"10829540.6646b3","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1247.6912689208984,"y":1213.5793180465698,"z":"31276fa5.74ef8","wires":[["e78db626.6538f8"]]},{"id":"5cb79e38.5ce198","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":1248.5483779907227,"y":1247.8650386631489,"z":"31276fa5.74ef8","wires":[["6bd5881a.8cae5"]]},{"id":"ea1492ee.0f56a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1400.1150741577148,"y":1281.007908821106,"z":"31276fa5.74ef8","wires":[["71f89e7.9397de"]]},{"id":"6bd5881a.8cae5","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occured while updating subnet to active in mysql.\" />\n\t","comments":"","x":1395.829231262207,"y":1243.865069180727,"z":"31276fa5.74ef8","wires":[]},{"id":"71f89e7.9397de","type":"save","name":"update AnAI - subnet","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $aai.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $eipam-ip-block.entity-id\" >\n<parameter name=\"orchestration-status\" value=\"Active\" />\n\t\t","comments":"","outputs":1,"x":1625.4007263183594,"y":1281.738073348999,"z":"31276fa5.74ef8","wires":[["dd793cd5.2b12d","3fbf7056.3305c8"]]},{"id":"7d340cb2.4be154","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet.\" />\n\t","comments":"","x":2000.1469802856445,"y":1274.5793916881084,"z":"31276fa5.74ef8","wires":[]},{"id":"8130f435.f558f8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1850.7185745239258,"y":1342.5793621242046,"z":"31276fa5.74ef8","wires":[["f3e4ac3e.a58ab8"]]},{"id":"dd793cd5.2b12d","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1839.5802211761475,"y":1280.865122050047,"z":"31276fa5.74ef8","wires":[["7d340cb2.4be154"]]},{"id":"3fbf7056.3305c8","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":1851.865966796875,"y":1310.8651123046875,"z":"31276fa5.74ef8","wires":[["9e49b5c9.859b6"]]},{"id":"f3e4ac3e.a58ab8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2003.4326629638672,"y":1344.0079824626446,"z":"31276fa5.74ef8","wires":[[]]},{"id":"9e49b5c9.859b6","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet. Subnet not found.\" />\n\t","comments":"","x":1999.1468200683594,"y":1306.8651428222656,"z":"31276fa5.74ef8","wires":[]},{"id":"4a68fc12.7927f4","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":585.5436668395996,"y":1596.8650207519531,"z":"31276fa5.74ef8","wires":[]},{"id":"afca1cc9.37ef2","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":585.5476112365723,"y":1517.0590629577637,"z":"31276fa5.74ef8","wires":[]},{"id":"7c8b3998.1a0b68","type":"set","name":"set networkId","xml":"<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n","comments":"","x":579.8332443237305,"y":1479.9161710739136,"z":"31276fa5.74ef8","wires":[]},{"id":"70e85b23.8d3054","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":627.8333053588867,"y":1562.487536430359,"z":"31276fa5.74ef8","wires":[]},{"id":"280acaa8.006566","type":"switchNode","name":"switch $aai.l3-network.subnets.subnet_length","xml":"<switch test='`$aai.l3-network.subnets.subnet_length`'>\n","comments":"","outputs":1,"x":612.75,"y":393.5,"z":"31276fa5.74ef8","wires":[["8347d939.5620b8","f2abfa4c.005c3"]]},{"id":"8347d939.5620b8","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":932.75,"y":393.5,"z":"31276fa5.74ef8","wires":[["b1e0408b.8fcf88"]]},{"id":"b1e0408b.8fcf88","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=\"no networks found\" />\n","comments":"","x":1154.5275268554688,"y":391.38897705078125,"z":"31276fa5.74ef8","wires":[]},{"id":"f2abfa4c.005c3","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":914.75,"y":427.5,"z":"31276fa5.74ef8","wires":[["a4f63900.f19bf"]]},{"id":"f95d52a7.cfe038","type":"save","name":"update AnAI - network","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $aai.l3-network.network-id\" >\n<parameter name=\"orchestration-status\" value=\"Active\" />\t","comments":"","outputs":1,"x":617.4166564941406,"y":1359.8331890106201,"z":"31276fa5.74ef8","wires":[["e1f780e.72e668","a6992d57.d1b588"]]},{"id":"f0cbc86c.4834d","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for l3-network\" />\n\t","comments":"","x":1030.4961624145508,"y":1345.3411407470703,"z":"31276fa5.74ef8","wires":[]},{"id":"c5f332ba.4d0fc8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":881.067756652832,"y":1413.3411111831665,"z":"31276fa5.74ef8","wires":[["a30e496c.388428"]]},{"id":"e1f780e.72e668","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":869.9294033050537,"y":1351.6268711090088,"z":"31276fa5.74ef8","wires":[["f0cbc86c.4834d"]]},{"id":"a6992d57.d1b588","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":882.2151489257812,"y":1381.6268613636494,"z":"31276fa5.74ef8","wires":[["89e9fe8c.80a52"]]},{"id":"a30e496c.388428","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1033.7818450927734,"y":1414.7697315216064,"z":"31276fa5.74ef8","wires":[[]]},{"id":"89e9fe8c.80a52","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for l3-network. Network not found.\" />\n\t","comments":"","x":1029.4960021972656,"y":1377.6268918812275,"z":"31276fa5.74ef8","wires":[]},{"id":"1dc0ccd9.62a26b","type":"set","name":"copy input to service-data","xml":"<set>\n<parameter name='service-data.networks.network[$nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n","comments":"","x":621.2617797851562,"y":1439.9161376953125,"z":"31276fa5.74ef8","wires":[]},{"id":"e7f076b.7293d08","type":"switchNode","name":"switch from-preload","xml":"<switch test='`$service-data.networks.network[$nidx].network-data.network-information.from-preload`'>\n","comments":"","outputs":1,"x":550.49609375,"y":701.74609375,"z":"31276fa5.74ef8","wires":[["5be403fb.f6e604","935c32f2.5c477"]]},{"id":"5be403fb.f6e604","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":538.49609375,"y":780.24609375,"z":"31276fa5.74ef8","wires":[["a5d42667.baffc"]]},{"id":"935c32f2.5c477","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":526.49609375,"y":837.24609375,"z":"31276fa5.74ef8","wires":[["7e645dee.196a5c"]]},{"id":"354a953d.970fea","type":"for","name":"for 0..subnet_length","xml":"<for index='sidx' start='0' end='`$aai.l3-network.subnets.subnet_length`' >\n","comments":"","outputs":1,"x":930.49609375,"y":779.24609375,"z":"31276fa5.74ef8","wires":[["1834de34.aa66ca"]]},{"id":"1834de34.aa66ca","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1130.49609375,"y":779.388916015625,"z":"31276fa5.74ef8","wires":[["4e5f455.9e01cbc"]]},{"id":"4e5f455.9e01cbc","type":"save","name":"update AnAI - subnet","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $aai.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $aai.l3-network.subnets.subnet[$sidx].subnet-id\" >\n<parameter name=\"orchestration-status\" value=\"Active\" />\n\t\t","comments":"","outputs":1,"x":1351.74609375,"y":778.74609375,"z":"31276fa5.74ef8","wires":[["ea2ce0fa.cbaf78","e5c37082.c5e4a"]]},{"id":"ca81daa8.aa2b88","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet.\" />\n\t","comments":"","x":1736.492317199707,"y":772.5873872935772,"z":"31276fa5.74ef8","wires":[]},{"id":"186b63eb.ee1064","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1587.0639114379883,"y":840.5873577296734,"z":"31276fa5.74ef8","wires":[["7fc8a15e.ded2e"]]},{"id":"ea2ce0fa.cbaf78","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1575.92555809021,"y":778.8731176555157,"z":"31276fa5.74ef8","wires":[["ca81daa8.aa2b88"]]},{"id":"e5c37082.c5e4a","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":1588.2113037109375,"y":808.8731079101562,"z":"31276fa5.74ef8","wires":[["591f495d.08622"]]},{"id":"7fc8a15e.ded2e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1739.7779998779297,"y":842.0159780681133,"z":"31276fa5.74ef8","wires":[[]]},{"id":"591f495d.08622","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet. Subnet not found.\" />\n\t","comments":"","x":1735.4921569824219,"y":804.8731384277344,"z":"31276fa5.74ef8","wires":[]},{"id":"a5d42667.baffc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":724.74609375,"y":781.24609375,"z":"31276fa5.74ef8","wires":[["354a953d.970fea"]]},{"id":"7e645dee.196a5c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":738.74609375,"y":837.24609375,"z":"31276fa5.74ef8","wires":[["e4a7e0a0.e6b8a8"]]},{"id":"a4f63900.f19bf","type":"switchNode","name":"switch network-instance-group-id","xml":"<switch test='`$network-data.network-topology.network-topology-identifier-structure.network-instance-group-id`'>\n","comments":"","outputs":1,"x":581.49609375,"y":507.24609375,"z":"31276fa5.74ef8","wires":[["37463523.271202","1363245c.95b004"]]},{"id":"37463523.271202","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":874.49609375,"y":505.74609375,"z":"31276fa5.74ef8","wires":[["e7f076b.7293d08"]]},{"id":"1363245c.95b004","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":865.49609375,"y":536.74609375,"z":"31276fa5.74ef8","wires":[["3f8c9bce.2fbecc"]]},{"id":"3f8c9bce.2fbecc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1060.49609375,"y":535.74609375,"z":"31276fa5.74ef8","wires":[["7ba3c6f1.8a0f7"]]},{"id":"7ba3c6f1.8a0f7","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 collection activate failed\" />\n","comments":"","x":1261.49609375,"y":530.74609375,"z":"31276fa5.74ef8","wires":[]},{"id":"54e043ce.c9819c","type":"comment","name":"need to implement this","info":"","comments":"","x":1291.49609375,"y":499.24609375,"z":"31276fa5.74ef8","wires":[]}]
\ No newline at end of file +[{"id":"aad8b671.6c92a8","type":"dgstart","name":"DGSTART","outputs":1,"x":171.75,"y":129.5,"z":"31276fa5.74ef8","wires":[["fc1afe3.c14518"]]},{"id":"fc1afe3.c14518","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":247.03570556640625,"y":169.73811149597168,"z":"31276fa5.74ef8","wires":[["8bb44f8f.960958"]]},{"id":"8bb44f8f.960958","type":"method","name":"network-topology-operation-activate","xml":"<method rpc='network-topology-operation-activate' mode='sync'>\n","comments":"","outputs":1,"x":288.4286346435547,"y":213.2499942779541,"z":"31276fa5.74ef8","wires":[["6a980331.36ce2c"]]},{"id":"6a980331.36ce2c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":287.7500305175781,"y":307.9434814453125,"z":"31276fa5.74ef8","wires":[["347a2bc6.901ffc","7c8b3998.1a0b68","70e85b23.8d3054","4a68fc12.7927f4","280acaa8.006566","afca1cc9.37ef2","f95d52a7.cfe038","1dc0ccd9.62a26b"]]},{"id":"f8ffe16f.6d2ce8","type":"not-found","name":"not found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":818.75,"y":301.50001525878906,"z":"31276fa5.74ef8","wires":[["e493f260.987388"]]},{"id":"e493f260.987388","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name=\"error-code\" value=\"404\" />\n\t<parameter name=\"error-message\" value=\"network-id not found in AAI\" />","comments":"","x":981.9443969726562,"y":301.6112365722656,"z":"31276fa5.74ef8","wires":[]},{"id":"347a2bc6.901ffc","type":"get-resource","name":"get AnAI - l3-network by network-id","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-information.network-id AND \n depth = 'all'\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.l3-network\">\n","comments":"","outputs":1,"x":583.4721069335938,"y":305.984619140625,"z":"31276fa5.74ef8","wires":[["f8ffe16f.6d2ce8","7fd1cc43.5cbeac"]]},{"id":"7fd1cc43.5cbeac","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":811.4721069335938,"y":339.984619140625,"z":"31276fa5.74ef8","wires":[["695fe527.9c94ac"]]},{"id":"695fe527.9c94ac","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 retrieving l3-network with network-id=' + $network-topology-operation-input.network-request-information.network-id + 'from AnAI'\" />","comments":"","x":963.5831909179688,"y":340.20684814453125,"z":"31276fa5.74ef8","wires":[]},{"id":"ca70884c.912a78","type":"set","name":"set entity-id and plan-name","xml":"<set>\n\t<parameter name=\"eipam-ip-block.entity-id\" value=\"`$aai.l3-network.subnets.subnet[$sidx].subnet-id`\"/>\n\t<parameter name=\"eipam-ip-block.plans[0].plan-name\" value=\"`$tmp.eipam-subnet-row.plan-name`\"/>\n","comments":"","x":1016.8294677734375,"y":1121.5794067382812,"z":"31276fa5.74ef8","wires":[]},{"id":"e4a7e0a0.e6b8a8","type":"for","name":"for 0..subnet_length","xml":"<for index='sidx' start='0' end='`$aai.l3-network.subnets.subnet_length`' >\n","comments":"","outputs":1,"x":954.1151123046875,"y":836.7222900390625,"z":"31276fa5.74ef8","wires":[["ffba001b.9779c"]]},{"id":"ffba001b.9779c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1158.1151123046875,"y":835.8651123046875,"z":"31276fa5.74ef8","wires":[["caf9a917.b8b4b"]]},{"id":"caf9a917.b8b4b","type":"get-resource","name":"get eipam-ip-subnet by subnet-id","xml":"<get-resource\n plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n resource='SQL'\n key=\"SELECT * from EIPAM_IP_SUBNETS where entity_id = $aai.l3-network.subnets.subnet[$sidx].subnet-id ; \"\n pfx='tmp.eipam-subnet-row'>\n\n","comments":"","outputs":1,"x":1113.2580261230469,"y":973.7222194671631,"z":"31276fa5.74ef8","wires":[["82c93d87.3c4cd8","8afed5a1.3d3c5","4c63e33f.93a614"]]},{"id":"b9d0e076.a549f","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Query to DB table EIPAM_IP_SUBNETS failed to find subnet matching aai subnet.\" />\n\t","comments":"","x":1521.4007873535156,"y":921.4365007579327,"z":"31276fa5.74ef8","wires":[]},{"id":"82c93d87.3c4cd8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1371.9723815917969,"y":989.4364711940289,"z":"31276fa5.74ef8","wires":[["9227ef6b.5a4c5"]]},{"id":"8afed5a1.3d3c5","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1372.2626647949219,"y":923.4365007579327,"z":"31276fa5.74ef8","wires":[["b9d0e076.a549f"]]},{"id":"4c63e33f.93a614","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":1373.119773864746,"y":957.7222213745117,"z":"31276fa5.74ef8","wires":[["a33338bb.a90c68"]]},{"id":"9227ef6b.5a4c5","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1524.6864700317383,"y":990.8650915324688,"z":"31276fa5.74ef8","wires":[["ca70884c.912a78","e84c68d7.f3801","56f420bb.33bc5"]]},{"id":"a33338bb.a90c68","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Subnet not found in EIPAM_IP_SUBNETS - activate failed.\" />\n\t","comments":"","x":1520.4006271362305,"y":953.7222518920898,"z":"31276fa5.74ef8","wires":[]},{"id":"e84c68d7.f3801","type":"execute","name":"execute EIPAM activateSubnet","xml":"<execute plugin=\"com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin\" method=\"activateSubnet\">\n","comments":"subnet and subnet_keys are deleted in the EIPAMPlugin","outputs":1,"x":1029.686508178711,"y":1164.4364957809448,"z":"31276fa5.74ef8","wires":[["a48dd3e1.d2aa28"]]},{"id":"a48dd3e1.d2aa28","type":"failure","name":"failure","xml":"<outcome value='failure'>","outputs":1,"x":1239.686538696289,"y":1165.8268613815308,"z":"31276fa5.74ef8","wires":[["9055635.fe4ed2"]]},{"id":"9055635.fe4ed2","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occured while activating subnet in EIPAM.\" />\n\t","comments":"","x":1403.6865196228027,"y":1164.5411539077759,"z":"31276fa5.74ef8","wires":[]},{"id":"56f420bb.33bc5","type":"save","name":"Update subnet to Active in DB","xml":"<save \n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"UPDATE EIPAM_IP_SUBNETS\n SET status = 'ACTIVE'\n WHERE entity_id = $eipam-ip-block.entity-id ; \"\n force='true'\n pfx='pfx.eipam-subnet-row'>\n","comments":"","outputs":1,"x":1028.2580108642578,"y":1204.436442375183,"z":"31276fa5.74ef8","wires":[["10829540.6646b3","5cb79e38.5ce198","f0c9957e.af2a88"]]},{"id":"e78db626.6538f8","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occured while updating subnet to active in mysql.\" />\n\t","comments":"","x":1396.8293914794922,"y":1211.5793180465698,"z":"31276fa5.74ef8","wires":[]},{"id":"f0c9957e.af2a88","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1247.4009857177734,"y":1279.579288482666,"z":"31276fa5.74ef8","wires":[["ea1492ee.0f56a"]]},{"id":"10829540.6646b3","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1247.6912689208984,"y":1213.5793180465698,"z":"31276fa5.74ef8","wires":[["e78db626.6538f8"]]},{"id":"5cb79e38.5ce198","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":1248.5483779907227,"y":1247.8650386631489,"z":"31276fa5.74ef8","wires":[["6bd5881a.8cae5"]]},{"id":"ea1492ee.0f56a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1400.1150741577148,"y":1281.007908821106,"z":"31276fa5.74ef8","wires":[["71f89e7.9397de"]]},{"id":"6bd5881a.8cae5","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occured while updating subnet to active in mysql.\" />\n\t","comments":"","x":1395.829231262207,"y":1243.865069180727,"z":"31276fa5.74ef8","wires":[]},{"id":"71f89e7.9397de","type":"save","name":"update AnAI - subnet","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $aai.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $eipam-ip-block.entity-id\" >\n<parameter name=\"orchestration-status\" value=\"Active\" />\n\t\t","comments":"","outputs":1,"x":1625.4007263183594,"y":1281.738073348999,"z":"31276fa5.74ef8","wires":[["dd793cd5.2b12d","3fbf7056.3305c8"]]},{"id":"7d340cb2.4be154","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet.\" />\n\t","comments":"","x":2000.1469802856445,"y":1274.5793916881084,"z":"31276fa5.74ef8","wires":[]},{"id":"8130f435.f558f8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1850.7185745239258,"y":1342.5793621242046,"z":"31276fa5.74ef8","wires":[["f3e4ac3e.a58ab8"]]},{"id":"dd793cd5.2b12d","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1839.5802211761475,"y":1280.865122050047,"z":"31276fa5.74ef8","wires":[["7d340cb2.4be154"]]},{"id":"3fbf7056.3305c8","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":1851.865966796875,"y":1310.8651123046875,"z":"31276fa5.74ef8","wires":[["9e49b5c9.859b6"]]},{"id":"f3e4ac3e.a58ab8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2003.4326629638672,"y":1344.0079824626446,"z":"31276fa5.74ef8","wires":[[]]},{"id":"9e49b5c9.859b6","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet. Subnet not found.\" />\n\t","comments":"","x":1999.1468200683594,"y":1306.8651428222656,"z":"31276fa5.74ef8","wires":[]},{"id":"4a68fc12.7927f4","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":585.5436668395996,"y":1596.8650207519531,"z":"31276fa5.74ef8","wires":[]},{"id":"afca1cc9.37ef2","type":"set","name":"set object-path","xml":"<set>\n<parameter name='network-object-path' value=\"`'rests/data/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?content=config'` \" />\n \n","comments":"","x":585.5476112365723,"y":1517.0590629577637,"z":"31276fa5.74ef8","wires":[]},{"id":"7c8b3998.1a0b68","type":"set","name":"set networkId","xml":"<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n","comments":"","x":579.8332443237305,"y":1479.9161710739136,"z":"31276fa5.74ef8","wires":[]},{"id":"70e85b23.8d3054","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":627.8333053588867,"y":1562.487536430359,"z":"31276fa5.74ef8","wires":[]},{"id":"280acaa8.006566","type":"switchNode","name":"switch $aai.l3-network.subnets.subnet_length","xml":"<switch test='`$aai.l3-network.subnets.subnet_length`'>\n","comments":"","outputs":1,"x":612.75,"y":393.5,"z":"31276fa5.74ef8","wires":[["8347d939.5620b8","f2abfa4c.005c3"]]},{"id":"8347d939.5620b8","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":932.75,"y":393.5,"z":"31276fa5.74ef8","wires":[["b1e0408b.8fcf88"]]},{"id":"b1e0408b.8fcf88","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=\"no networks found\" />\n","comments":"","x":1154.5275268554688,"y":391.38897705078125,"z":"31276fa5.74ef8","wires":[]},{"id":"f2abfa4c.005c3","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":914.75,"y":427.5,"z":"31276fa5.74ef8","wires":[["a4f63900.f19bf"]]},{"id":"f95d52a7.cfe038","type":"save","name":"update AnAI - network","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $aai.l3-network.network-id\" >\n<parameter name=\"orchestration-status\" value=\"Active\" />\t","comments":"","outputs":1,"x":617.4166564941406,"y":1359.8331890106201,"z":"31276fa5.74ef8","wires":[["e1f780e.72e668","a6992d57.d1b588"]]},{"id":"f0cbc86c.4834d","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for l3-network\" />\n\t","comments":"","x":1030.4961624145508,"y":1345.3411407470703,"z":"31276fa5.74ef8","wires":[]},{"id":"c5f332ba.4d0fc8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":881.067756652832,"y":1413.3411111831665,"z":"31276fa5.74ef8","wires":[["a30e496c.388428"]]},{"id":"e1f780e.72e668","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":869.9294033050537,"y":1351.6268711090088,"z":"31276fa5.74ef8","wires":[["f0cbc86c.4834d"]]},{"id":"a6992d57.d1b588","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":882.2151489257812,"y":1381.6268613636494,"z":"31276fa5.74ef8","wires":[["89e9fe8c.80a52"]]},{"id":"a30e496c.388428","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1033.7818450927734,"y":1414.7697315216064,"z":"31276fa5.74ef8","wires":[[]]},{"id":"89e9fe8c.80a52","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for l3-network. Network not found.\" />\n\t","comments":"","x":1029.4960021972656,"y":1377.6268918812275,"z":"31276fa5.74ef8","wires":[]},{"id":"1dc0ccd9.62a26b","type":"set","name":"copy input to service-data","xml":"<set>\n<parameter name='service-data.networks.network[$nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n","comments":"","x":621.2617797851562,"y":1439.9161376953125,"z":"31276fa5.74ef8","wires":[]},{"id":"e7f076b.7293d08","type":"switchNode","name":"switch from-preload","xml":"<switch test='`$service-data.networks.network[$nidx].network-data.network-information.from-preload`'>\n","comments":"","outputs":1,"x":550.49609375,"y":701.74609375,"z":"31276fa5.74ef8","wires":[["5be403fb.f6e604","935c32f2.5c477"]]},{"id":"5be403fb.f6e604","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":538.49609375,"y":780.24609375,"z":"31276fa5.74ef8","wires":[["a5d42667.baffc"]]},{"id":"935c32f2.5c477","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":526.49609375,"y":837.24609375,"z":"31276fa5.74ef8","wires":[["7e645dee.196a5c"]]},{"id":"354a953d.970fea","type":"for","name":"for 0..subnet_length","xml":"<for index='sidx' start='0' end='`$aai.l3-network.subnets.subnet_length`' >\n","comments":"","outputs":1,"x":930.49609375,"y":779.24609375,"z":"31276fa5.74ef8","wires":[["1834de34.aa66ca"]]},{"id":"1834de34.aa66ca","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1130.49609375,"y":779.388916015625,"z":"31276fa5.74ef8","wires":[["4e5f455.9e01cbc"]]},{"id":"4e5f455.9e01cbc","type":"save","name":"update AnAI - subnet","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $aai.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $aai.l3-network.subnets.subnet[$sidx].subnet-id\" >\n<parameter name=\"orchestration-status\" value=\"Active\" />\n\t\t","comments":"","outputs":1,"x":1351.74609375,"y":778.74609375,"z":"31276fa5.74ef8","wires":[["ea2ce0fa.cbaf78","e5c37082.c5e4a"]]},{"id":"ca81daa8.aa2b88","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet.\" />\n\t","comments":"","x":1736.492317199707,"y":772.5873872935772,"z":"31276fa5.74ef8","wires":[]},{"id":"186b63eb.ee1064","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1587.0639114379883,"y":840.5873577296734,"z":"31276fa5.74ef8","wires":[["7fc8a15e.ded2e"]]},{"id":"ea2ce0fa.cbaf78","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1575.92555809021,"y":778.8731176555157,"z":"31276fa5.74ef8","wires":[["ca81daa8.aa2b88"]]},{"id":"e5c37082.c5e4a","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":1588.2113037109375,"y":808.8731079101562,"z":"31276fa5.74ef8","wires":[["591f495d.08622"]]},{"id":"7fc8a15e.ded2e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1739.7779998779297,"y":842.0159780681133,"z":"31276fa5.74ef8","wires":[[]]},{"id":"591f495d.08622","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet. Subnet not found.\" />\n\t","comments":"","x":1735.4921569824219,"y":804.8731384277344,"z":"31276fa5.74ef8","wires":[]},{"id":"a5d42667.baffc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":724.74609375,"y":781.24609375,"z":"31276fa5.74ef8","wires":[["354a953d.970fea"]]},{"id":"7e645dee.196a5c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":738.74609375,"y":837.24609375,"z":"31276fa5.74ef8","wires":[["e4a7e0a0.e6b8a8"]]},{"id":"a4f63900.f19bf","type":"switchNode","name":"switch network-instance-group-id","xml":"<switch test='`$network-data.network-topology.network-topology-identifier-structure.network-instance-group-id`'>\n","comments":"","outputs":1,"x":581.49609375,"y":507.24609375,"z":"31276fa5.74ef8","wires":[["37463523.271202","1363245c.95b004"]]},{"id":"37463523.271202","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":874.49609375,"y":505.74609375,"z":"31276fa5.74ef8","wires":[["e7f076b.7293d08"]]},{"id":"1363245c.95b004","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":865.49609375,"y":536.74609375,"z":"31276fa5.74ef8","wires":[["3f8c9bce.2fbecc"]]},{"id":"3f8c9bce.2fbecc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1060.49609375,"y":535.74609375,"z":"31276fa5.74ef8","wires":[["7ba3c6f1.8a0f7"]]},{"id":"7ba3c6f1.8a0f7","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 collection activate failed\" />\n","comments":"","x":1261.49609375,"y":530.74609375,"z":"31276fa5.74ef8","wires":[]},{"id":"54e043ce.c9819c","type":"comment","name":"need to implement this","info":"","comments":"","x":1291.49609375,"y":499.24609375,"z":"31276fa5.74ef8","wires":[]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-assign-automated.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-assign-automated.json index 2e0c8e88..58a2514e 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-assign-automated.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-assign-automated.json @@ -1 +1 @@ -[{"id":"ddaa8377.fa22a8","type":"dgstart","name":"DGSTART","outputs":1,"x":162.74999809265137,"y":128.33333349227905,"z":"293895e6.5ef0e2","wires":[["bee866d7.34a87"]]},{"id":"bee866d7.34a87","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":356.03568267822266,"y":188.09525346755981,"z":"293895e6.5ef0e2","wires":[["a4b64377.84e858"]]},{"id":"a4b64377.84e858","type":"method","name":"network-topology-operation-assign-automated","xml":"<method rpc='network-topology-operation-assign-automated' mode='sync'>\n","comments":"","outputs":1,"x":366.38106536865234,"y":293.8928370475769,"z":"293895e6.5ef0e2","wires":[["52e034b0.745ae4"]]},{"id":"32bd1ba1.6415a4","type":"comment","name":"Called from assign when network name is NOT passed in from mso","info":"","comments":"","x":546.6071319580078,"y":126.00000143051147,"z":"293895e6.5ef0e2","wires":[]},{"id":"52e034b0.745ae4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":278.74996185302734,"y":434.9999842643738,"z":"293895e6.5ef0e2","wires":[["f1fc9d62.38b5c","2966d0e0.8b25e8","e8da6f16.71f9b8","ad4ff9.5fa67008","2c27032c.5e2204","f827107c.d87818","2c6c62c8.5a4c2e","3d53982a.567ae","5768ac10.171294","3420d2a4.657bee","fd6db351.edfb","4db8414c.fd2348","c87d3fb.61607c","fe0c8615.109c78","67411a15.4513fc","16bcfe02.a78002","4acd25ef.ab1094","78d9149.661776c","6fc56656.d3bba","f387ea7a.cb332","74426281.f93a14","6c88ef63.8cc9","b853c9fb.a4b158","2688708b.68097","22bd05cf.445f7a","44cca957.3504a8","ece618e.04a51e8","ddf2d1ad.9086d","7852b58.654cd4c","31213429.ff2f4c","4c3863ea.780a64","f43b1f67.085098","88aa0e0f.278a3","c6bc7f3a.1e281","cb4086d2.f6774"]]},{"id":"f1fc9d62.38b5c","type":"set","name":"set tmp.l3-network","xml":"<set>\n<parameter name='tmp.l3-network.network-id' value=\"`$tmp.return.generate-l3network-network-id.uuid`\" />\n<parameter name='tmp.l3-network.network-name' value=\"`$tmp.network-instance-name`\" />\n<parameter name='tmp.l3-network.network-type' value=\"`$network-model.network-type`\" />\n<parameter name='tmp.l3-network.network-role' value=\"`$network-model.network-role`\" />\n<parameter name='tmp.l3-network.network-technology' value=\"`$network-model.network-technology`\" />\n<parameter name='tmp.l3-network.is-bound-to-vpn' value=\"`$network-model.is-bound-to-vpn`\" />\n<parameter name='tmp.l3-network.orchestration-status' value=\"PendingCreate\" />\n<parameter name='tmp.l3-network.model-invariant-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\" />\n<parameter name='tmp.l3-network.model-version-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-version`\" />\n<parameter name='tmp.l3-network.model-customization-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\" />\n<parameter name='tmp.l3-network.is-provider-network' value=\"`$network-model.is-provider-network`\" />\n<parameter name='tmp.l3-network.is-shared-network' value=\"`$network-model.is-shared-network`\" />\n<parameter name='tmp.l3-network.is-external-network' value=\"`$network-model.is-external-network`\" />\n<parameter name='tmp.l3-network.eipam-v6-address-plan' value=\"`$network-model.eipam-v6-address-plan`\" />\n<parameter name='tmp.l3-network.eipam-v4-address-plan' value=\"`$network-model.eipam-v4-address-plan`\" />\n<parameter name='tmp.l3-network.service-id' value=\"`$service-data.service-information.service-id`\" />\n<parameter name='tmp.l3-network.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/networks/network/'\n + $tmp.l3-network.network-id\n + '/network-data/network-topology/'` \" />\n","comments":"","x":781.7499313354492,"y":815.9999651908875,"z":"293895e6.5ef0e2","wires":[]},{"id":"2966d0e0.8b25e8","type":"switchNode","name":"switch network--model.is-provider-network","xml":"<switch test='`$network-model.is-provider-network`'>\n","comments":"","outputs":1,"x":859.2410736083984,"y":910.285710811615,"z":"293895e6.5ef0e2","wires":[["e7b008a0.418ec","d5dd32b7.555628"]]},{"id":"e7b008a0.418ec","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1164.3842239379883,"y":890.1111559867859,"z":"293895e6.5ef0e2","wires":[["2dfcff6c.e57a48"]]},{"id":"2dfcff6c.e57a48","type":"set","name":"set tmp.l3-network.physical-network-name","xml":"<set>\n<parameter name='tmp.l3-network.physical-network-name' value=\"`$network-model.physical-network-name`\" />\n<parameter name='tmp.l3-network.is-provider-network-boolean' value='true' />","comments":"","x":1432.3840789794922,"y":887.1111216545105,"z":"293895e6.5ef0e2","wires":[]},{"id":"d5dd32b7.555628","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1151.749282836914,"y":920.9841771125793,"z":"293895e6.5ef0e2","wires":[["642fce71.9bd878"]]},{"id":"642fce71.9bd878","type":"set","name":"set tmp.l3-network.physical-network-name","xml":"<set>\n<parameter name='tmp.l3-network.physical-network-name' value=\"\" />\n<parameter name='tmp.l3-network.is-provider-network-boolean' value='false' />","comments":"","x":1436.0352401733398,"y":919.5556082725525,"z":"293895e6.5ef0e2","wires":[]},{"id":"e8da6f16.71f9b8","type":"switchNode","name":"switch network--model.is-shared-network","xml":"<switch test='`$network-model.is-shared-network`'>\n","comments":"","outputs":1,"x":856.9075927734375,"y":955.9205183982849,"z":"293895e6.5ef0e2","wires":[["c85002b3.dfee48","73fec284.227f6c"]]},{"id":"c85002b3.dfee48","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1162.5267944335938,"y":955.9841294288635,"z":"293895e6.5ef0e2","wires":[["72e5d36e.94fdfc"]]},{"id":"72e5d36e.94fdfc","type":"set","name":"set tmp.l3-network.is-shared-network-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-shared-network-boolean' value='true' />","comments":"","x":1454.8125076293945,"y":955.9839768409729,"z":"293895e6.5ef0e2","wires":[]},{"id":"73fec284.227f6c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1151.3208198547363,"y":991.2856364250183,"z":"293895e6.5ef0e2","wires":[["2a0962ea.47f27e"]]},{"id":"2a0962ea.47f27e","type":"set","name":"set tmp.l3-network.is-shared-network-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-shared-network-boolean' value='false' />","comments":"","x":1455.6067390441895,"y":991.1428141593933,"z":"293895e6.5ef0e2","wires":[]},{"id":"ad4ff9.5fa67008","type":"switchNode","name":"switch network--model.is-external-network","xml":"<switch test='`$network-model.is-external-network`'>\n","comments":"","outputs":1,"x":865.5908966064453,"y":1027.968159198761,"z":"293895e6.5ef0e2","wires":[["644c8ab8.07217c","5d3c03a7.b87cbc"]]},{"id":"644c8ab8.07217c","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1164.5433616638184,"y":1034.698477268219,"z":"293895e6.5ef0e2","wires":[["5ede0098.42a888"]]},{"id":"5ede0098.42a888","type":"set","name":"set tmp.l3-network.is-external-network-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-external-network-boolean' value='true' />","comments":"","x":1456.8290748596191,"y":1034.6983246803284,"z":"293895e6.5ef0e2","wires":[]},{"id":"5d3c03a7.b87cbc","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1153.337387084961,"y":1069.9999842643738,"z":"293895e6.5ef0e2","wires":[["73e4d14e.10bed"]]},{"id":"73e4d14e.10bed","type":"set","name":"set tmp.l3-network.is-external-network-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-external-network-boolean' value='false' />","comments":"","x":1457.623306274414,"y":1069.8571619987488,"z":"293895e6.5ef0e2","wires":[]},{"id":"f827107c.d87818","type":"set","name":"set tmp.complex-found","xml":"<set>\n<parameter name='tmp.complex-found' value='false' />\n\n","comments":"","x":811.0614624023438,"y":1165.5421195030212,"z":"293895e6.5ef0e2","wires":[]},{"id":"2c27032c.5e2204","type":"switchNode","name":"switch network--model.is-bound-to-vpn","xml":"<switch test='`$network-model.is-bound-to-vpn`'>\n","comments":"","outputs":1,"x":857.1724243164062,"y":1104.0422587394714,"z":"293895e6.5ef0e2","wires":[["f59632be.ab57","e3b1b631.14c4b8"]]},{"id":"f59632be.ab57","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1162.7916221618652,"y":1109.1058259010315,"z":"293895e6.5ef0e2","wires":[["3a84d6bc.f116aa"]]},{"id":"3a84d6bc.f116aa","type":"set","name":"set tmp.l3-network.is-bound-to-vpn-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-bound-to-vpn-boolean' value='true' />","comments":"","x":1455.077335357666,"y":1109.1056733131409,"z":"293895e6.5ef0e2","wires":[]},{"id":"e3b1b631.14c4b8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1151.5856475830078,"y":1144.4073328971863,"z":"293895e6.5ef0e2","wires":[["30af655.b903c9a"]]},{"id":"30af655.b903c9a","type":"set","name":"set tmp.l3-network.is-bound-to-vpn-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-bound-to-vpn-boolean' value='false' />","comments":"","x":1455.871566772461,"y":1144.2645106315613,"z":"293895e6.5ef0e2","wires":[]},{"id":"16bcfe02.a78002","type":"set","name":"set tmp.network-topology","xml":"<set>\n<parameter name='tmp.network-topology.network-topology-identifier-structure.network-id' value=\"`$tmp.l3-network.network-name`\" />\n<parameter name='tmp.network-topology.network-topology-identifier-structure.network-name' value=\"`$tmp.l3-network.network-name`\" />\n<parameter name='tmp.network-topology.network-topology-identifier-structure.network-type' value=\"`$tmp.l3-network.network-type`\" />\n<parameter name='tmp.network-topology.network-topology-identifier-structure.network-role' value=\"`$tmp.l3-network.network-role`\" />\n<parameter name='tmp.network-topology.network-topology-identifier-structure.network-technology' value=\"`$tmp.l3-network.network-technology`\" />\n<parameter name='tmp.network-topology.network-topology-identifier-structure.eipam-v4-address-plan' value=\"`$network-model.eipam-v4-address-plan`\" />\n<parameter name='tmp.network-topology.network-topology-identifier-structure.eipam-v6-address-plan' value=\"`$network-model.eipam-v6-address-plan`\" />\n<parameter name='tmp.network-topology.region-identifier.tenant' value=\"`$network-topology-operation-input.network-request-input.tenant`\" />\n<parameter name='tmp.network-topology.region-identifier.aic-cloud-region' value=\"`$network-topology-operation-input.network-request-input.aic-cloud-region`\" />\n<parameter name='tmp.network-topology.region-identifier.aic-clli' value=\"`$network-topology-operation-input.network-request-input.aic-clli`\" />\n<parameter name='tmp.network-topology.onap-model-information.' value=\"`$network-topology-operation-input.network-information.onap-model-information.`\" />\n<parameter name='tmp.network-topology.network-parameters.' value=\"`$network-topology-operation-input.network-request-input.network-input-parameters.`\" />\n","comments":"","x":828.5831727981567,"y":2704.2797265052795,"z":"293895e6.5ef0e2","wires":[]},{"id":"f7696e6a.52691","type":"switchNode","name":"switch network-model.eipam-v4-address-plan (VIPR)","xml":"<switch test='`$network-model.eipam-v4-address-plan`'>\n","comments":"","outputs":1,"x":2312.4011001586914,"y":1729.882297039032,"z":"293895e6.5ef0e2","wires":[["dae3b0b5.b40e7","2be63d31.a0fc1a","ec03d835.f8721","51656656.ba094"]]},{"id":"dae3b0b5.b40e7","type":"other","name":"AIC_ATM_UNPROTECTED_V4","xml":"<outcome value='AIC_ATM_UNPROTECTED_V4'>","comments":"","outputs":1,"x":2772.400520324707,"y":1698.8821139335632,"z":"293895e6.5ef0e2","wires":[["1f720674.eca1b2"]]},{"id":"2be63d31.a0fc1a","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2696.067485809326,"y":1814.2157225608826,"z":"293895e6.5ef0e2","wires":[["a31343ec.e76f08"]]},{"id":"ec03d835.f8721","type":"other","name":"AIC_ATM_PROTECTED_V4","xml":"<outcome value='AIC_ATM_PROTECTED_V4'>","comments":"","outputs":1,"x":2762.289131164551,"y":1736.4379525184631,"z":"293895e6.5ef0e2","wires":[["1f720674.eca1b2"]]},{"id":"71eecbd.b148b34","type":"switchNode","name":"switch network-model.eipam-v4-address-plan (SRIOV)","xml":"<switch test='`$network-model.eipam-v4-address-plan`'>\n","comments":"","outputs":1,"x":2348.1351013183594,"y":2078.4893565177917,"z":"293895e6.5ef0e2","wires":[["af18a1b8.3f9da","48638a1d.044944","bcb2da26.868168","b190ce.c871bf3"]]},{"id":"af18a1b8.3f9da","type":"other","name":"AIC_DATA_PLANE_UNPROTECTED_V4","xml":"<outcome value='AIC_DATA_PLANE_UNPROTECTED_V4'>","comments":"","outputs":1,"x":2815.385040283203,"y":2077.7392830848694,"z":"293895e6.5ef0e2","wires":[["25845c0e.13752c"]]},{"id":"48638a1d.044944","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2707.992322921753,"y":2192.560908317566,"z":"293895e6.5ef0e2","wires":[["cc9dd635.98df68"]]},{"id":"bcb2da26.868168","type":"other","name":"AIC_DATA_PLANE_PROTECTED_V4","xml":"<outcome value='AIC_DATA_PLANE_PROTECTED_V4'>","comments":"","outputs":1,"x":2811.773712158203,"y":2114.544826030731,"z":"293895e6.5ef0e2","wires":[["25845c0e.13752c"]]},{"id":"b190ce.c871bf3","type":"other","name":"AIC_DATA_PLANE_PRIVATE_V4","xml":"<outcome value='AIC_DATA_PLANE_PRIVATE_V4'>","comments":"","outputs":1,"x":2793.9923248291016,"y":2153.3107810020447,"z":"293895e6.5ef0e2","wires":[["25845c0e.13752c"]]},{"id":"34c49751.1e7d6","type":"switchNode","name":"switch network-model.eipam-v6-address-plan","xml":"<switch test='`$network-model.eipam-v6-address-plan`'>\n","comments":"","outputs":1,"x":2292.3330612182617,"y":1897.4740328788757,"z":"293895e6.5ef0e2","wires":[["2321c9f0.8a0d9e","82367816.ed7db8","16e5d844.ab3f38","a6bdf612.22b0f8"]]},{"id":"da0609b1.dd66e","type":"switchNode","name":"switch network-model.eipam-v6-address-plan (SRIOV)","xml":"<switch test='`$network-model.eipam-v6-address-plan`'>\n","comments":"","outputs":1,"x":2384.1824951171875,"y":2296.680191516876,"z":"293895e6.5ef0e2","wires":[["2c5a63b9.3f81d4","6f253e2d.578688","66a6717f.0e464","12e3c9ff.f116ee","d57691f9.5e2ff","eb0937db.b0b998"]]},{"id":"2c5a63b9.3f81d4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2718.8966121673584,"y":2486.1807163357735,"z":"293895e6.5ef0e2","wires":[["418a0270.b2cdfc"]]},{"id":"6f253e2d.578688","type":"other","name":"AIC_ATM_UNPROTECTED_V6","xml":"<outcome value=\"AIC_ATM_UNPROTECTED_V6\">","comments":"","outputs":1,"x":2787.448028564453,"y":2297.8825373649597,"z":"293895e6.5ef0e2","wires":[["ba3daf8e.1a127"]]},{"id":"66a6717f.0e464","type":"other","name":"AIC_ATM_PROTECTED_V6","xml":"<outcome value=\"AIC_ATM_PROTECTED_V6\">","comments":"","outputs":1,"x":2782.733383178711,"y":2339.8825602531433,"z":"293895e6.5ef0e2","wires":[["ba3daf8e.1a127"]]},{"id":"12e3c9ff.f116ee","type":"other","name":"AIC_DATA_PLANE_UNPROTECTED_V6","xml":"<outcome value=\"AIC_DATA_PLANE_UNPROTECTED_V6\">","comments":"","outputs":1,"x":2822.6350326538086,"y":2378.025414943695,"z":"293895e6.5ef0e2","wires":[["ba3daf8e.1a127"]]},{"id":"eb0937db.b0b998","type":"other","name":"AIC_DATA_PLANE_PROTECTED_V6","xml":"<outcome value=\"AIC_DATA_PLANE_PROTECTED_V6\">","comments":"","outputs":1,"x":2811.6356048583984,"y":2440.0256450772285,"z":"293895e6.5ef0e2","wires":[["ba3daf8e.1a127"]]},{"id":"d57691f9.5e2ff","type":"other","name":"AIC_DATA_PLANE_PRIVATE_V6","xml":"<outcome value=\"AIC_DATA_PLANE_PRIVATE_V6\">","comments":"","outputs":1,"x":2799.9211807250977,"y":2407.4543509483337,"z":"293895e6.5ef0e2","wires":[["ba3daf8e.1a127"]]},{"id":"fd6db351.edfb","type":"switchNode","name":"switch network-technology","xml":"<switch test='`$network-model.network-technology`'>\n","comments":"","outputs":1,"x":829.9508438110352,"y":1730.4166598320007,"z":"293895e6.5ef0e2","wires":[["bc99eab5.63fc78","98ca247b.003d6","878c8d61.5c11c"]]},{"id":"2c6c62c8.5a4c2e","type":"get-resource","name":"get-resource cloud region","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"cloud-region\" \n\t\tkey=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner AND \n\t\t cloud-region.cloud-region-id = $network-topology-operation-input.network-request-input.aic-cloud-region AND \n\t\t depth = '0'\"\n pfx='aai.cloud-region' local-only='false' >\n\n","comments":"","outputs":1,"x":827.2842483520508,"y":1323.4166903495789,"z":"293895e6.5ef0e2","wires":[["ac17137c.6c1968","364976ad.55413a"]]},{"id":"364976ad.55413a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1049.673355102539,"y":1360.1388583183289,"z":"293895e6.5ef0e2","wires":[["cdcb6a66.a11cf"]]},{"id":"ac17137c.6c1968","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1056.1733512878418,"y":1324.138919353485,"z":"293895e6.5ef0e2","wires":[["48995ae5.67c19c"]]},{"id":"106bd669.56604a","type":"comment","name":"Per test failure in IT, need to throw error if relationships don't exist","info":"","comments":"","x":945.5344848632812,"y":1280.4999976158142,"z":"293895e6.5ef0e2","wires":[]},{"id":"a4857175.d87198","type":"get-resource","name":"get-resource complex","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"complex\" \n\t\tkey=\"complex.physical-location-id = $aai.cloud-region.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-value\"\n pfx='aai.complex' local-only='false' >\n \n\n\n","comments":"","outputs":1,"x":1917.7286224365234,"y":1544.527916431427,"z":"293895e6.5ef0e2","wires":[["635ae7ba.6c555","4c24ef82.82de3","586982ec.1e8c34"]]},{"id":"4c24ef82.82de3","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2150.4789810180664,"y":1602.88871717453,"z":"293895e6.5ef0e2","wires":[["54196261.94e404"]]},{"id":"635ae7ba.6c555","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2152.978977203369,"y":1562.8887782096863,"z":"293895e6.5ef0e2","wires":[["cffd5f4a.151d08"]]},{"id":"5768ac10.171294","type":"for","name":"for relationship list","xml":"<for silentFailure='false' index='ridx' start='0' end=\"`$aai.cloud-region.relationship-list.relationship_length`\" >\n","comments":"","outputs":1,"x":793.7013320922852,"y":1499.6470789909363,"z":"293895e6.5ef0e2","wires":[["798003f7.3d8904"]]},{"id":"ca236a12.216ce","type":"switchNode","name":"switch","xml":"<switch test='`$aai.cloud-region.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-key`'>\n","comments":"","outputs":1,"x":1199.2009963989258,"y":1503.3611903190613,"z":"293895e6.5ef0e2","wires":[["977e56b3.9b15b"]]},{"id":"798003f7.3d8904","type":"for","name":"for relationship data","xml":"<for silentFailure='false' index='rdidx' start='0' end=\"`$aai.cloud-region.relationship-list.relationship[$ridx].relationship-data_length`\" >\n","comments":"","outputs":1,"x":1016.6177749633789,"y":1500.6113123893738,"z":"293895e6.5ef0e2","wires":[["ca236a12.216ce"]]},{"id":"977e56b3.9b15b","type":"other","name":"complex.physical-location-id","xml":"<outcome value='complex.physical-location-id'>\n","comments":"","outputs":1,"x":1421.701057434082,"y":1501.7778162956238,"z":"293895e6.5ef0e2","wires":[["16d6abf6.083fac"]]},{"id":"16d6abf6.083fac","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1661.1173782348633,"y":1499.5279383659363,"z":"293895e6.5ef0e2","wires":[["a4857175.d87198","53e77c9e.f7a794","d6907b4c.cf3028"]]},{"id":"586982ec.1e8c34","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2145.506773206922,"y":1516.9444912274676,"z":"293895e6.5ef0e2","wires":[["33454633.eca53a"]]},{"id":"33454633.eca53a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2322.649642944336,"y":1518.194444179535,"z":"293895e6.5ef0e2","wires":[["47e7c181.61d528"]]},{"id":"53e77c9e.f7a794","type":"set","name":"set aic-clli","xml":"<set>\n<parameter name='service-data.network-request-input.aic-clli' value='`$aai.complex.physical-location-id`' />\n\n","comments":"","x":1885.617935180664,"y":1506.4723238945007,"z":"293895e6.5ef0e2","wires":[]},{"id":"3d53982a.567ae","type":"switchNode","name":"switch relationship_length","xml":"<switch test='`$aai.cloud-region.relationship-list.relationship_length`'>\n","comments":"","outputs":1,"x":823.7287673950195,"y":1422.6945033073425,"z":"293895e6.5ef0e2","wires":[["184aa09c.2e8457","a9b6a010.eba4d8"]]},{"id":"184aa09c.2e8457","type":"other","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1017.7288394504121,"y":1421.6945921050178,"z":"293895e6.5ef0e2","wires":[["6c249175.f5d028"]]},{"id":"a9b6a010.eba4d8","type":"other","name":"null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1019.7288360595703,"y":1460.6946234703064,"z":"293895e6.5ef0e2","wires":[["6c249175.f5d028"]]},{"id":"d6907b4c.cf3028","type":"set","name":"set tmp.complex-found","xml":"<set>\n<parameter name='tmp.complex-found' value='true' />\n\n","comments":"","x":1923.950942993164,"y":1474.8056979179382,"z":"293895e6.5ef0e2","wires":[]},{"id":"3420d2a4.657bee","type":"switchNode","name":"switch tmp.complex-found","xml":"<switch test='`$tmp.complex-found`'>\n","comments":"","outputs":1,"x":821.728889465332,"y":1582.9167323112488,"z":"293895e6.5ef0e2","wires":[["c4def4b4.63fea"]]},{"id":"c4def4b4.63fea","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1039.228889465332,"y":1582.2778162956238,"z":"293895e6.5ef0e2","wires":[["62b19f9d.67a67"]]},{"id":"bc99eab5.63fc78","type":"outcome","name":"outcome Contrail","xml":"<outcome value='Contrail'>\n","comments":"","outputs":1,"x":1072.8397598266602,"y":1730.8609957695007,"z":"293895e6.5ef0e2","wires":[["ad2de5e.0feaf98"]]},{"id":"98ca247b.003d6","type":"outcome","name":"outcome AIC_SR_IOV","xml":"<outcome value='AIC_SR_IOV'>\n","comments":"","outputs":1,"x":1106.8397903442383,"y":2073.8611178398132,"z":"293895e6.5ef0e2","wires":[["f42f3f68.8503f8"]]},{"id":"47e7c181.61d528","type":"switchNode","name":"switch region","xml":"<switch test='`$aai.complex.region`'>\n","comments":"","outputs":1,"x":2519.7289123535156,"y":1517.8609776496887,"z":"293895e6.5ef0e2","wires":[["eeb7c55f.544058","e483bf22.b6c018","6194657.fd9b99c","bd683dd1.b3f298","88a51647.0a80d8","d24339dd.e70008","78064e5a.452108","fa0d0769.128ad8"]]},{"id":"eeb7c55f.544058","type":"other","name":"CA","xml":"<outcome value='CA'>\n","comments":"","outputs":1,"x":2762.9591522216797,"y":1458.8888869285583,"z":"293895e6.5ef0e2","wires":[["6b7a7bfb.ed67c4"]]},{"id":"e483bf22.b6c018","type":"other","name":"US","xml":"<outcome value='US'>\n","comments":"","outputs":1,"x":2761.0343704223633,"y":1490.932584285736,"z":"293895e6.5ef0e2","wires":[["6b7a7bfb.ed67c4"]]},{"id":"6194657.fd9b99c","type":"other","name":"LA","xml":"<outcome value='LA'>\n","comments":"","outputs":1,"x":2759.605728149414,"y":1524.8611035346985,"z":"293895e6.5ef0e2","wires":[["6b7a7bfb.ed67c4"]]},{"id":"bd683dd1.b3f298","type":"other","name":"EMEA","xml":"<outcome value='EMEA'>\n","comments":"","outputs":1,"x":2759.7844581604004,"y":1556.1111493110657,"z":"293895e6.5ef0e2","wires":[["6b7a7bfb.ed67c4"]]},{"id":"88a51647.0a80d8","type":"other","name":"AP","xml":"<outcome value='AP'>\n","comments":"","outputs":1,"x":2759.605796813965,"y":1589.8611550331116,"z":"293895e6.5ef0e2","wires":[["6b7a7bfb.ed67c4"]]},{"id":"d24339dd.e70008","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2761.0343132019043,"y":1621.1110577583313,"z":"293895e6.5ef0e2","wires":[["de868ff7.e2f398"]]},{"id":"6b7a7bfb.ed67c4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2918.7285770840117,"y":1486.3612209426033,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"878c8d61.5c11c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1056.8398056030273,"y":2360.3060030937195,"z":"293895e6.5ef0e2","wires":[["964d0759.ba21c"]]},{"id":"1f720674.eca1b2","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3029.839500427246,"y":1706.0834078788757,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"25845c0e.13752c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3086.840057373047,"y":2086.083400249481,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"ba3daf8e.1a127","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3128.8395919799805,"y":2344.083531200886,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"c87d3fb.61607c","type":"call","name":"call process-eipam-pools","xml":"<call module='GENERIC-RESOURCE-API' rpc='process-eipam-pools' mode='sync' >\n","comments":"tmp.level should be set to 1","outputs":1,"x":817.4753398895264,"y":2476.4619154930115,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"67411a15.4513fc","type":"call","name":"call GENERIC-RESOURCE-API:create-l3-subnet","xml":"<call module='GENERIC-RESOURCE-API' rpc='create-l3-subnet' mode='sync' >\n","comments":"tmp.level should be set to 1","outputs":1,"x":904.6861925125122,"y":2648.2196526527405,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"4db8414c.fd2348","type":"set","name":"set process-eipam-action","xml":"<set>\n<parameter name='tmp.process-eipam-action' value='assign' />\n","comments":"","x":820.9407939910889,"y":2437.4621596336365,"z":"293895e6.5ef0e2","wires":[]},{"id":"fe0c8615.109c78","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.process-eipam-pools:REQID\"/>\n<parameter name=\"field3\" value=\"`$network-topology-operation-input.sdnc-request-header.svc-request-id`\"/>\n<parameter name=\"field4\" value=\"Values after process-eipam\"/>\n<parameter name=\"field5\" value=\"`level1-v4-mask`\"/>\n<parameter name=\"field6\" value=\"`$tmp.l3-network.level1.v4.mask`\"/>\n<parameter name=\"field7\" value=\"`level1-v4-ipprefix`\"/>\n<parameter name=\"field8\" value=\"`$tmp.l3-network.level1.v4.ip-prefix`\"/>\n<parameter name=\"field9\" value=\"`level1-v4-entity-id`\"/>\n<parameter name=\"field10\" value=\"`$tmp.l3-network.level1.v4.entity-id`\"/>\n<parameter name=\"field11\" value=\"`level2-v4-mask`\"/>\n<parameter name=\"field12\" value=\"`$tmp.l3-network.level2.v4.mask`\"/>\n<parameter name=\"field13\" value=\"`level2-v4-ipprefix`\"/>\n<parameter name=\"field14\" value=\"`$tmp.l3-network.level2.v4.ip-prefix`\"/>\n<parameter name=\"field15\" value=\"`level2-v4-entity-id`\"/>\n<parameter name=\"field16\" value=\"`$tmp.l3-network.level2.v4.entity-id`\"/>\n\n\n","comments":"","outputs":1,"x":767.5917949676514,"y":2512.2438979148865,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"ad2de5e.0feaf98","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1284.8397903442383,"y":1729.8611178398132,"z":"293895e6.5ef0e2","wires":[["e335a0be.901ca","bbedd6ee.89d8b8"]]},{"id":"f42f3f68.8503f8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1332.839729309082,"y":2073.8611178398132,"z":"293895e6.5ef0e2","wires":[["1581aae3.4fadd5","18d89bc5.ccc5bc"]]},{"id":"e335a0be.901ca","type":"switchNode","name":"switch: network-model.use-ipv4","xml":"<switch test=\"`$network-model.use-ipv4`\">","comments":"","outputs":1,"x":1540.8396682739258,"y":1728.4169039726257,"z":"293895e6.5ef0e2","wires":[["8105ec47.183e"]]},{"id":"8105ec47.183e","type":"other","name":"Y","xml":"<outcome value='Y'>","comments":"","outputs":1,"x":1795.8397941589355,"y":1728.8454604148865,"z":"293895e6.5ef0e2","wires":[["3c8a3bf6.f3d274"]]},{"id":"3c8a3bf6.f3d274","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1968.4111137390137,"y":1729.274064540863,"z":"293895e6.5ef0e2","wires":[["f7696e6a.52691"]]},{"id":"1581aae3.4fadd5","type":"switchNode","name":"switch: network-model.use-ipv4","xml":"<switch test=\"`$network-model.use-ipv4`\">","comments":"","outputs":1,"x":1607.9509735107422,"y":2074.4169363975525,"z":"293895e6.5ef0e2","wires":[["d961b200.afc68"]]},{"id":"d961b200.afc68","type":"other","name":"Y","xml":"<outcome value='Y'>","comments":"","outputs":1,"x":1862.951099395752,"y":2077.8454928398132,"z":"293895e6.5ef0e2","wires":[["f24844ce.f2b368"]]},{"id":"f24844ce.f2b368","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2035.52241897583,"y":2078.27409696579,"z":"293895e6.5ef0e2","wires":[["71eecbd.b148b34"]]},{"id":"18d89bc5.ccc5bc","type":"switchNode","name":"switch: network-model.use-ipv6","xml":"<switch test=\"`$network-model.use-ipv6`\">","comments":"","outputs":1,"x":1627.9509353637695,"y":2295.4168429374695,"z":"293895e6.5ef0e2","wires":[["8e75cddf.18434"]]},{"id":"8e75cddf.18434","type":"other","name":"Y","xml":"<outcome value='Y'>","comments":"","outputs":1,"x":1882.9510612487793,"y":2298.84539937973,"z":"293895e6.5ef0e2","wires":[["587f23be.ee01f4"]]},{"id":"587f23be.ee01f4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2079.522392272949,"y":2297.2740817070007,"z":"293895e6.5ef0e2","wires":[["da0609b1.dd66e"]]},{"id":"bbedd6ee.89d8b8","type":"switchNode","name":"switch: network-model.use-ipv6","xml":"<switch test=\"`$network-model.use-ipv6`\">","comments":"","outputs":1,"x":1549.9509353637695,"y":1897.4168429374695,"z":"293895e6.5ef0e2","wires":[["3d360ef.f0501f2"]]},{"id":"3d360ef.f0501f2","type":"other","name":"Y","xml":"<outcome value='Y'>","comments":"","outputs":1,"x":1804.9510612487793,"y":1900.8453993797302,"z":"293895e6.5ef0e2","wires":[["cd4df9ff.6b5c6"]]},{"id":"cd4df9ff.6b5c6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2001.5223922729492,"y":1899.2740817070007,"z":"293895e6.5ef0e2","wires":[["34c49751.1e7d6"]]},{"id":"51656656.ba094","type":"other","name":"AIC_AIM_LANDING_NETWORK_V4","xml":"<outcome value='AIC_AIM_LANDING_NETWORK_V4'>","comments":"","outputs":1,"x":2786.8396224975586,"y":1770.9722323417664,"z":"293895e6.5ef0e2","wires":[["1f720674.eca1b2"]]},{"id":"82367816.ed7db8","type":"other","name":"AIC_ATM_UNPROTECTED_V6","xml":"<outcome value='AIC_ATM_UNPROTECTED_V6'>","comments":"","outputs":1,"x":2777.639846801758,"y":1875.972312450409,"z":"293895e6.5ef0e2","wires":[["9d1ac85b.f8dfc"]]},{"id":"16e5d844.ab3f38","type":"other","name":"AIC_ATM_PROTECTED_V6","xml":"<outcome value='AIC_ATM_PROTECTED_V6'>","comments":"","outputs":1,"x":2767.5284576416016,"y":1913.5281510353088,"z":"293895e6.5ef0e2","wires":[["9d1ac85b.f8dfc"]]},{"id":"9d1ac85b.f8dfc","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3035.078826904297,"y":1883.1736063957214,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"a6bdf612.22b0f8","type":"other","name":"AIC_AIM_LANDING_NETWORK_V6","xml":"<outcome value='AIC_AIM_LANDING_NETWORK_V6'>","comments":"","outputs":1,"x":2792.0789489746094,"y":1948.062430858612,"z":"293895e6.5ef0e2","wires":[["9d1ac85b.f8dfc"]]},{"id":"2321c9f0.8a0d9e","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2698.083278656006,"y":1985.6404280662537,"z":"293895e6.5ef0e2","wires":[["f448e026.7558"]]},{"id":"78064e5a.452108","type":"other","name":"USA","xml":"<outcome value='USA'>\n","comments":"","outputs":1,"x":2760.823974609375,"y":1375.0516905784607,"z":"293895e6.5ef0e2","wires":[["4c37cf50.e01f5"]]},{"id":"4c37cf50.e01f5","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2921.617383956909,"y":1375.5278687477112,"z":"293895e6.5ef0e2","wires":[["8c6aee9f.d4174"]]},{"id":"8c6aee9f.d4174","type":"set","name":"set USA to US as work around","xml":"<set>\n<parameter name='aai.complex.region' value='US' />\n","comments":"","x":3134.951187133789,"y":1375.527936220169,"z":"293895e6.5ef0e2","wires":[]},{"id":"fa0d0769.128ad8","type":"other","name":"CALA","xml":"<outcome value='CALA'>\n","comments":"","outputs":1,"x":2759.839797973633,"y":1406.972312450409,"z":"293895e6.5ef0e2","wires":[["fd734913.d51d4"]]},{"id":"fd734913.d51d4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2920.633207321167,"y":1407.4484906196594,"z":"293895e6.5ef0e2","wires":[["343172b0.f8f56e"]]},{"id":"343172b0.f8f56e","type":"set","name":"set CALA to LA as work around","xml":"<set>\n<parameter name='aai.complex.region' value='LA' />\n","comments":"","x":3133.967010498047,"y":1407.4485580921173,"z":"293895e6.5ef0e2","wires":[]},{"id":"ece618e.04a51e8","type":"set","name":"set object-path","xml":"<set>\n<parameter name='network-object-path'\n value=\"`$tmp.l3-network.self-link`\"/>\n \n","comments":"","x":657.9166507720947,"y":3737.571755886078,"z":"293895e6.5ef0e2","wires":[]},{"id":"44cca957.3504a8","type":"set","name":"set networkId","xml":"<set>\n<parameter name='networkId' value='`$tmp.l3-network.network-id`' />\n","comments":"","x":659.3451709747314,"y":3691.8573746681213,"z":"293895e6.5ef0e2","wires":[]},{"id":"ddf2d1ad.9086d","type":"set","name":"set network-level-oper-status","xml":"<set>\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />\n","comments":"","x":705.6308841705322,"y":3783.2860283851624,"z":"293895e6.5ef0e2","wires":[]},{"id":"2688708b.68097","type":"set","name":"set network in service-data","xml":"<set>\n<parameter name=\"service-data.networks.network[$nidx].network-id\" value='`$tmp.l3-network.network-id`' />\n<parameter name=\"service-data.networks.network[$nidx].network-data.network-topology.\" value='$network-topology.' />\n<parameter name=\"service-data.networks.network[$nidx].network-data.network-request-input.\" value='$x.' />\n<parameter name=\"service-data.networks.network_length\" value='`$nidx_len`' />\n\n","comments":"","x":729.1667032241821,"y":3611.6787384450436,"z":"293895e6.5ef0e2","wires":[]},{"id":"22bd05cf.445f7a","type":"set","name":"copy input to service-data","xml":"<set>\n<parameter name='service-data.networks.network[$nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-request-input.' value='`$network-topology-operation-input.network-request-input.`' />\n","comments":"","x":808.0120086669922,"y":617.4404835700989,"z":"293895e6.5ef0e2","wires":[]},{"id":"b853c9fb.a4b158","type":"set","name":"set network-topology-identifier-structure in service-data","xml":"<set>\n<parameter name='network-topology.network-topology-identifier-structure.' value='`$tmp.l3-network.`' />\n<parameter name='network-topology.tenant' value='`$network-topology-operation-input.network-request-input.tenant`' />\n<parameter name='network-topology.onap-model-information.' value='`$network-topology-operation-input.network-information.onap-model-information.`' />\n<parameter name='network-topology.network-parameters.' value='`$network-topology-operation-input.network-request-input.network-parameters.`' />\n<parameter name='network-topology.aic-cloud-region' value='`$network-topology-operation-input.network-request-input.aic-cloud-region`' />","comments":"","x":833.9524354934692,"y":3475.4297680854797,"z":"293895e6.5ef0e2","wires":[]},{"id":"f387ea7a.cb332","type":"save","name":"save relationship: service-instance","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"service-instance\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"customer.global-customer-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$service-data.service-information.global-customer-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"service-subscription.service-type\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$service-data.service-information.subscription-service-type`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"service-instance.service-instance-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$service-data.service-information.service-instance-id`\" />","comments":"","outputs":1,"x":845.3147430419922,"y":3082.7002577781677,"z":"293895e6.5ef0e2","wires":[["7eb3a40a.7e9414","d1dfe3a9.bb9198"]]},{"id":"39ae8d85.6e5642","type":"save","name":"save AnAI - l3-network","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"network-name\" value=\"`$tmp.l3-network.network-name`\" />\n<parameter name=\"network-type\" value=\"`$tmp.l3-network.network-type`\" />\n<parameter name=\"network-role\" value=\"`$tmp.l3-network.network-role`\" />\n<parameter name=\"network-technology\" value=\"`$tmp.l3-network.network-technology`\" />\n<parameter name=\"is-bound-to-vpn\" value=\"`$tmp.l3-network.is-bound-to-vpn-boolean`\" />\n<parameter name=\"service-id\" value=\"`$tmp.l3-network.service-id`\" />\n<parameter name=\"tenant-id\" value=\"`$network-topology-operation-input.network-request-information.tenant`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />\n<parameter name=\"persona-model-id\" value=\"`$tmp.l3-network.persona-model-id`\" />\n<parameter name=\"persona-model-version\" value=\"`$tmp.l3-network.persona-model-version`\" />\n<parameter name=\"persona-model-customization-id\" value=\"`$tmp.l3-network.persona-model-customization-id`\" />\n<parameter name=\"physical-network-name\" value=\"`$tmp.l3-network.physical-network-name`\" />\n<parameter name=\"is-provider-network\" value=\"`$tmp.l3-network.is-provider-network-boolean`\" />\n<parameter name=\"is-shared-network\" value=\"`$tmp.l3-network.is-shared-network-boolean`\" />\n<parameter name=\"is-external-network\" value=\"`$tmp.l3-network.is-external-network-boolean`\" />\n<parameter name=\"selflink\" value=\"`$tmp.l3-network.self-link`\" />\n","comments":"","outputs":1,"x":1171.1640014648438,"y":2786.46630859375,"z":"293895e6.5ef0e2","wires":[["17d2413.1f4be3f","eb5b34d1.4537b8"]]},{"id":"79a2f133.fd6f08","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=\"`'Failed to save l3-network in AAI for network-id = ' + $tmp.l3-network.network-id`\" />\n","comments":"","x":1856.84326171875,"y":2660.759765625,"z":"293895e6.5ef0e2","wires":[]},{"id":"17d2413.1f4be3f","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1414.271484375,"y":2751.525390625,"z":"293895e6.5ef0e2","wires":[["6fed3d50.bda79c"]]},{"id":"efd11375.9b214","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnet-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"gateway-address\" value=\"`$tmp.l3-network.subnet[$sidx].gateway-address`\" />\n<parameter name=\"network-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />","comments":"","outputs":1,"x":2641.6993265151978,"y":2963.048982143402,"z":"293895e6.5ef0e2","wires":[["3828c6d6.552ef2","94c217d1.df75c8"]]},{"id":"78d9149.661776c","type":"for","name":"for 0..subnet_length","xml":"<for index='sidx' start='0' end='`$tmp.l3-network.subnet_length`' >\n","comments":"","outputs":1,"x":790.2557344436646,"y":2941.525412082672,"z":"293895e6.5ef0e2","wires":[["5be49735.084798"]]},{"id":"5be49735.084798","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1017.3984146118164,"y":2940.414363384247,"z":"293895e6.5ef0e2","wires":[["fcd830c9.2b335","aa132056.6dc0b8"]]},{"id":"3828c6d6.552ef2","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2993.254143714905,"y":2922.381850719452,"z":"293895e6.5ef0e2","wires":[["cfb1639.9c505a"]]},{"id":"74426281.f93a14","type":"save","name":"save relationship: tenant and cloud-region","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" \n\tforce=\"true\" \n\tlocal-only=\"false\">\n\t<!-- create relationship-list -->\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"tenant\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"cloud-region.cloud-owner\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.cloud-region.cloud-owner`\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$network-topology-operation-input.network-request-input.aic-cloud-region`\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"tenant.tenant-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$network-topology-operation-input.network-request-input.tenant`\" />\n\t<parameter name=\"relationship-list.relationship[1].related-to\" value=\"cloud-region\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"cloud-region.cloud-owner\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$prop.cloud-region.cloud-owner`\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[1].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[1].relationship-value\" value=\"`$network-topology-operation-input.network-request-input.aic-cloud-region`\" />\n\t\n\t","comments":"","outputs":1,"x":819.3033876419067,"y":3221.0969166755676,"z":"293895e6.5ef0e2","wires":[["a91d8420.27c3d","ff3870a3.9a1f6"]]},{"id":"a91d8420.27c3d","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1067.3033609390259,"y":3223.0968651771545,"z":"293895e6.5ef0e2","wires":[["f1d931a1.d7cc9"]]},{"id":"f1d931a1.d7cc9","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1255.6961889266968,"y":3222.732983112335,"z":"293895e6.5ef0e2","wires":[["567e8b7c.83f8bc","cd23b00b.cf80e"]]},{"id":"567e8b7c.83f8bc","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving tenant and cloud-region relationship for l3-network in AnAI where network-id = ' + $tmp.l3-network.network-id`\"/>","comments":"","x":1536.6843843460083,"y":3185.5465258061886,"z":"293895e6.5ef0e2","wires":[]},{"id":"94c217d1.df75c8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":3001.977288246155,"y":2960.0250391960144,"z":"293895e6.5ef0e2","wires":[["cfb1639.9c505a"]]},{"id":"ff3870a3.9a1f6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1075.311203956604,"y":3264.930187702179,"z":"293895e6.5ef0e2","wires":[["f1d931a1.d7cc9"]]},{"id":"7eb3a40a.7e9414","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1081.4617080688477,"y":3081.8426909446716,"z":"293895e6.5ef0e2","wires":[["84965dc9.8283b"]]},{"id":"d1dfe3a9.bb9198","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1197.1847200393677,"y":3122.1523509025574,"z":"293895e6.5ef0e2","wires":[["84965dc9.8283b"]]},{"id":"718d3d64.92a56c","type":"delete","name":"delete l3-network","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\">","comments":"","outputs":1,"x":2147.7791681289673,"y":3789.731879711151,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"c44d21c.69791e","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-network - ' + $tmp.error-message`\"/>","comments":"","x":2136.3833017349243,"y":3832.9278903007507,"z":"293895e6.5ef0e2","wires":[]},{"id":"cd23b00b.cf80e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1839.2055559158325,"y":3793.733643054962,"z":"293895e6.5ef0e2","wires":[["718d3d64.92a56c","c44d21c.69791e","8a3142fd.49439","bccef547.3b91c"]]},{"id":"d329b682.7e474","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving subnet relationship for l3-network in AnAI where network-id = ' + $tmp.l3-network.network-id`\"/>","comments":"","x":3433.127190589905,"y":2937.239272594452,"z":"293895e6.5ef0e2","wires":[]},{"id":"cfb1639.9c505a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3177.9844484329224,"y":2936.6677346229553,"z":"293895e6.5ef0e2","wires":[["d329b682.7e474","cd23b00b.cf80e"]]},{"id":"eb5b34d1.4537b8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1420.0809326171875,"y":2780.001708984375,"z":"293895e6.5ef0e2","wires":[["6fed3d50.bda79c"]]},{"id":"fcd830c9.2b335","type":"set","name":"set: tmp.subnet-id","xml":"<set>\n<parameter name=\"tmp.subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\"/>\n\t","comments":"","x":1239.1763610839844,"y":2909.239589214325,"z":"293895e6.5ef0e2","wires":[]},{"id":"aa132056.6dc0b8","type":"switchNode","name":"switch dhcp-enabled","xml":"<switch test='`$tmp.l3-network.subnet[$sidx].dhcp-enabled`'>\n","comments":"","outputs":1,"x":1246.8110847473145,"y":2945.5369839668274,"z":"293895e6.5ef0e2","wires":[["46412666.490af","71945c2.83a5c24"]]},{"id":"71945c2.83a5c24","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1482.9538803100586,"y":2875.3940329551697,"z":"293895e6.5ef0e2","wires":[["25aa1229.98f47e"]]},{"id":"46412666.490af","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1478.8110847473145,"y":2957.53710603714,"z":"293895e6.5ef0e2","wires":[["7387a680.64d7c8"]]},{"id":"603e3edd.83a648","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnet-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"gateway-address\" value=\"`$tmp.l3-network.subnet[$sidx].gateway-address`\" />\n<parameter name=\"network-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"dhcp-start\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-start`\" />\n<parameter name=\"dhcp-end\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-end`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />","comments":"","outputs":1,"x":2678.9533462524414,"y":2884.7750086784363,"z":"293895e6.5ef0e2","wires":[["94c217d1.df75c8","3828c6d6.552ef2"]]},{"id":"25aa1229.98f47e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1673.8423080444336,"y":2875.6163840293884,"z":"293895e6.5ef0e2","wires":[["e9475920.9956e8"]]},{"id":"7387a680.64d7c8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1671.6997566223145,"y":2961.7594571113586,"z":"293895e6.5ef0e2","wires":[["2086000.752238"]]},{"id":"21dcdad4.c9af16","type":"for","name":"for 0..vpn-bindings_length","xml":"<for index='vidx' start='0' end='`$vpn-bindings_length`' >\n","comments":"","outputs":1,"x":1372.9954986572266,"y":3021.0925307273865,"z":"293895e6.5ef0e2","wires":[["64ff0d18.410094"]]},{"id":"6fc56656.d3bba","type":"switchNode","name":"switch hasVpnBindings","xml":"<switch test='`$hasVpnBindings`'>\n","comments":"","outputs":1,"x":813.6626319885254,"y":3022.0559372901917,"z":"293895e6.5ef0e2","wires":[["aae2ae89.17beb8"]]},{"id":"a022b704.0f945","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1174.329360961914,"y":3023.3889174461365,"z":"293895e6.5ef0e2","wires":[["21dcdad4.c9af16"]]},{"id":"44d0134d.af865c","type":"save","name":"save relationship: vpn_bindings","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"vpn-binding\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"vpn-binding.vpn-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$vpn-bindings[$vidx].binding-uuid`\" />","comments":"","outputs":1,"x":1834.329116821289,"y":3021.0556654930115,"z":"293895e6.5ef0e2","wires":[["26719dab.73de8a","359616a1.9e9092"]]},{"id":"26719dab.73de8a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2171.0686922073364,"y":3026.5311121940613,"z":"293895e6.5ef0e2","wires":[["86119166.1b5a6"]]},{"id":"86119166.1b5a6","type":"block","name":"block","xml":"<block>","atomic":"false","outputs":1,"x":2327.9615716934204,"y":3026.1672196388245,"z":"293895e6.5ef0e2","wires":[["cd23b00b.cf80e","f91a0178.d1d88"]]},{"id":"359616a1.9e9092","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2180.099091529846,"y":3060.8095412254333,"z":"293895e6.5ef0e2","wires":[["86119166.1b5a6"]]},{"id":"64ff0d18.410094","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1590.6622467041016,"y":3023.0554213523865,"z":"293895e6.5ef0e2","wires":[["44d0134d.af865c"]]},{"id":"84965dc9.8283b","type":"block","name":"block","xml":"<block>","atomic":"false","outputs":1,"x":1273.6255340576172,"y":3081.389070034027,"z":"293895e6.5ef0e2","wires":[["cd23b00b.cf80e","aab89d3a.4c2d68"]]},{"id":"aab89d3a.4c2d68","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 network-id = ' + $tmp.l3-network.network-id`\"/>","comments":"","x":1498.6255340576172,"y":3080.0556960105896,"z":"293895e6.5ef0e2","wires":[]},{"id":"f91a0178.d1d88","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 network-id = ' + $tmp.l3-network.network-id`\"/>","comments":"","x":2555.6254663467407,"y":3025.388970851898,"z":"293895e6.5ef0e2","wires":[]},{"id":"aae2ae89.17beb8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1007.0435943603516,"y":3022.8532729148865,"z":"293895e6.5ef0e2","wires":[["a022b704.0f945"]]},{"id":"6c88ef63.8cc9","type":"switchNode","name":"switch network-technology","xml":"<switch test='`$network-model.network-technology`'>\n","comments":"","outputs":1,"x":776.376935005188,"y":3304.8531613349915,"z":"293895e6.5ef0e2","wires":[["748972ed.d13a4c"]]},{"id":"748972ed.d13a4c","type":"outcome","name":"outcome AIC_SR_IOV","xml":"<outcome value='AIC_SR_IOV'>\n","comments":"","outputs":1,"x":1079.2659120559692,"y":3306.2974972724915,"z":"293895e6.5ef0e2","wires":[["57356804.69abb"]]},{"id":"57356804.69abb","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1297.2656679153442,"y":3304.297619342804,"z":"293895e6.5ef0e2","wires":[["5b36388c.88f4b8","bf9ed5a9.b8b25"]]},{"id":"5b36388c.88f4b8","type":"save","name":"save AnAI - segmentation-assignment","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"segmentation-assignment\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND segmentation-assignment.segmentation-id = $tmp.l3-network.segmentation-id\" >\n<!-- Create segmentation-assignment object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"segmentation-id\" value=\"`$tmp.l3-network.segmentation-id`\" />\n","comments":"","outputs":1,"x":1576.3768129348755,"y":3360.631115436554,"z":"293895e6.5ef0e2","wires":[["a98c5ab8.58a478","940d5b93.11a8e8"]]},{"id":"a98c5ab8.58a478","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1845.3768129348755,"y":3337.6312375068665,"z":"293895e6.5ef0e2","wires":[["fd0ca65b.b97618"]]},{"id":"940d5b93.11a8e8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1854.0999574661255,"y":3375.274425983429,"z":"293895e6.5ef0e2","wires":[["fd0ca65b.b97618"]]},{"id":"4829eae1.9d750c","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 segmentation-assignment for l3-network in AnAI where network-id = ' + $tmp.l3-network.network-id`\"/>","comments":"","x":2416.91649723053,"y":3354.1553416252136,"z":"293895e6.5ef0e2","wires":[]},{"id":"fd0ca65b.b97618","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2161.77391910553,"y":3353.5838084220886,"z":"293895e6.5ef0e2","wires":[["4829eae1.9d750c","cd23b00b.cf80e"]]},{"id":"449b0da0.8a9ffc","type":"execute","name":"execute readProperties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties'>\n <parameter name='contextPrefix' value='prop'/>\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api.properties'/>\n","comments":"","outputs":1,"x":1551.3770570755005,"y":3254.519915431738,"z":"293895e6.5ef0e2","wires":[["25ce2041.ac8048","d0a813d7.fa3ff"]]},{"id":"25ce2041.ac8048","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1752.3769273757935,"y":3225.5199093818665,"z":"293895e6.5ef0e2","wires":[["1ae3834b.4454e5"]]},{"id":"d0a813d7.fa3ff","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1746.3769273757935,"y":3261.5199093818665,"z":"293895e6.5ef0e2","wires":[["2ca720cb.3108a8"]]},{"id":"e9c5ff44.a1485","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 reading default segmentation-assignment for l3-network in AnAI where network-id = ' + $tmp.l3-network.network-id`\"/>","comments":"","x":2286.0435724258423,"y":3247.1863474845886,"z":"293895e6.5ef0e2","wires":[]},{"id":"2ca720cb.3108a8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2054.9009866714478,"y":3262.6150584220886,"z":"293895e6.5ef0e2","wires":[["e9c5ff44.a1485","cd23b00b.cf80e"]]},{"id":"e34c5712.24c058","type":"set","name":"set: tmp.l3-network.segmentation-id","xml":"<set>\n\t<parameter name=\"tmp.l3-network.segmentation-id\" value=\"`$prop.default.segmentation-assignment`\"/>","comments":"","x":2318.0435724258423,"y":3215.1863474845886,"z":"293895e6.5ef0e2","wires":[]},{"id":"1ae3834b.4454e5","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2060.9009866714478,"y":3226.6150584220886,"z":"293895e6.5ef0e2","wires":[["e34c5712.24c058"]]},{"id":"bf9ed5a9.b8b25","type":"set","name":"set: segmentionat-d=1","xml":"<set>\n\t<parameter name=\"tmp.l3-network.segmentation-id\" value=\"1\"/>","comments":"","x":1531.3611116409302,"y":3327.7104182243347,"z":"293895e6.5ef0e2","wires":[]},{"id":"7fa6dac9.08cd2c","type":"comment","name":"future if need from property","info":"","comments":"","x":1549.9327211380005,"y":3219.853167384863,"z":"293895e6.5ef0e2","wires":[]},{"id":"e9475920.9956e8","type":"switchNode","name":"switch gateway-address","xml":"<switch test='`$tmp.l3-network.subnet[$sidx].gateway-address`'>\n","comments":"","outputs":1,"x":1893.8055953979492,"y":2875.9485545158386,"z":"293895e6.5ef0e2","wires":[["d00c210f.09e218","73807347.1a078c"]]},{"id":"d00c210f.09e218","type":"outcome","name":"outcome NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2220.2341089248657,"y":2848.3294129371643,"z":"293895e6.5ef0e2","wires":[["cc593137.6c9098"]]},{"id":"73807347.1a078c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2195.9483766555786,"y":2884.0438027381897,"z":"293895e6.5ef0e2","wires":[["293cfd18.c5497a"]]},{"id":"293cfd18.c5497a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2432.376754760742,"y":2884.472623348236,"z":"293895e6.5ef0e2","wires":[["603e3edd.83a648"]]},{"id":"6aed81c2.0cf788","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnet-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"network-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"dhcp-start\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-start`\" />\n<parameter name=\"dhcp-end\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-end`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />","comments":"","outputs":1,"x":2676.662612915039,"y":2849.329619884491,"z":"293895e6.5ef0e2","wires":[["3828c6d6.552ef2","94c217d1.df75c8"]]},{"id":"cc593137.6c9098","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2445.8001747131348,"y":2850.5987181663513,"z":"293895e6.5ef0e2","wires":[["6aed81c2.0cf788"]]},{"id":"2086000.752238","type":"switchNode","name":"switch gateway-address","xml":"<switch test='`$tmp.l3-network.subnet[$sidx].gateway-address`'>\n","comments":"","outputs":1,"x":1903.091323852539,"y":2960.663068294525,"z":"293895e6.5ef0e2","wires":[["9af99333.562788","9a5f4664.851838"]]},{"id":"9af99333.562788","type":"outcome","name":"outcome NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2229.519814491272,"y":2927.329685688019,"z":"293895e6.5ef0e2","wires":[["2d9e9ce0.f017a4"]]},{"id":"9a5f4664.851838","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2205.234082221985,"y":2963.044075489044,"z":"293895e6.5ef0e2","wires":[["98a4ceda.f14d78"]]},{"id":"98a4ceda.f14d78","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2406.6626710891724,"y":2964.4727396965027,"z":"293895e6.5ef0e2","wires":[["efd11375.9b214"]]},{"id":"2d9e9ce0.f017a4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2414.3718156814575,"y":2927.7416338920593,"z":"293895e6.5ef0e2","wires":[["acec681.34a3c18"]]},{"id":"acec681.34a3c18","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnet-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"network-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />","comments":"","outputs":1,"x":2639.5196352005005,"y":2924.472321987152,"z":"293895e6.5ef0e2","wires":[["3828c6d6.552ef2","94c217d1.df75c8"]]},{"id":"4acd25ef.ab1094","type":"switchNode","name":"switch service-id","xml":"<switch test='`$tmp.l3-network.service-id`'>\n","comments":"","outputs":1,"x":781.0436401367188,"y":2772.853515625,"z":"293895e6.5ef0e2","wires":[["7f021e9b.a5c1c8","3b389f88.ce9ab8"]]},{"id":"7f021e9b.a5c1c8","type":"outcome","name":"outcome NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":970.0436401367188,"y":2751.853515625,"z":"293895e6.5ef0e2","wires":[["eb4c65af.abd668"]]},{"id":"3b389f88.ce9ab8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":945.0436401367188,"y":2786.853515625,"z":"293895e6.5ef0e2","wires":[["39ae8d85.6e5642"]]},{"id":"eb4c65af.abd668","type":"save","name":"save AnAI - l3-network","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"network-name\" value=\"`$tmp.l3-network.network-name`\" />\n<parameter name=\"network-type\" value=\"`$tmp.l3-network.network-type`\" />\n<parameter name=\"network-role\" value=\"`$tmp.l3-network.network-role`\" />\n<parameter name=\"network-technology\" value=\"`$tmp.l3-network.network-technology`\" />\n<parameter name=\"is-bound-to-vpn\" value=\"`$tmp.l3-network.is-bound-to-vpn-boolean`\" />\n<parameter name=\"tenant-id\" value=\"`$network-topology-operation-input.network-request-information.tenant`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />\n<parameter name=\"persona-model-id\" value=\"`$tmp.l3-network.persona-model-id`\" />\n<parameter name=\"persona-model-version\" value=\"`$tmp.l3-network.persona-model-version`\" />\n<parameter name=\"persona-model-customization-id\" value=\"`$tmp.l3-network.persona-model-customization-id`\" />\n<parameter name=\"physical-network-name\" value=\"`$tmp.l3-network.physical-network-name`\" />\n<parameter name=\"is-provider-network\" value=\"`$tmp.l3-network.is-provider-network-boolean`\" />\n<parameter name=\"is-shared-network\" value=\"`$tmp.l3-network.is-shared-network-boolean`\" />\n<parameter name=\"is-external-network\" value=\"`$tmp.l3-network.is-external-network-boolean`\" />\n<parameter name=\"selflink\" value=\"`$tmp.l3-network.self-link`\" />\n","comments":"","outputs":1,"x":1177.0436401367188,"y":2751.853515625,"z":"293895e6.5ef0e2","wires":[["17d2413.1f4be3f","eb5b34d1.4537b8"]]},{"id":"7852b58.654cd4c","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name='' value='' />\n","comments":"","x":658.7499485015869,"y":3850.904838413,"z":"293895e6.5ef0e2","wires":[]},{"id":"31213429.ff2f4c","type":"switchNode","name":"switch network-model.is-bound-to-vpn","xml":"<switch test='`$network-model.is-bound-to-vpn`'>\n","comments":"","outputs":1,"x":842.7500457763672,"y":756.000009059906,"z":"293895e6.5ef0e2","wires":[["61668342.b78f24"]]},{"id":"61668342.b78f24","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1107.7500495910645,"y":756.0000100135803,"z":"293895e6.5ef0e2","wires":[["6143b1fe.e94e"]]},{"id":"6143b1fe.e94e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"true","comments":"","outputs":1,"x":1270.5000915527344,"y":756.4999985694885,"z":"293895e6.5ef0e2","wires":[["4068bc26.c234d4"]]},{"id":"a2810608.412cb","type":"get-resource","name":"get-resource vpn-binding","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"vpn-binding\" \n\t\tkey=\"vpn-binding.vpn-id = $vpn-bindings[$vidx].binding-uuid\"\n pfx='aai.vpnBinding' local-only='false' >\n\n","comments":"","outputs":1,"x":2552.0715866088867,"y":804.2738480567932,"z":"293895e6.5ef0e2","wires":[["3ec769c5.3b69b6","95bdee60.3a7e48","43fc7f1b.eab248"]]},{"id":"3ec769c5.3b69b6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2788.027919769287,"y":776.0278038978577,"z":"293895e6.5ef0e2","wires":[["c81ef1d0.c56528"]]},{"id":"95bdee60.3a7e48","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2779.7779846191406,"y":810.6111693382263,"z":"293895e6.5ef0e2","wires":[["c81ef1d0.c56528"]]},{"id":"43fc7f1b.eab248","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2784.1388664245605,"y":740.3889183998108,"z":"293895e6.5ef0e2","wires":[["fcfdef84.8935f"]]},{"id":"fcfdef84.8935f","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2949.1388664245605,"y":740.3889183998108,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"426bb16f.c9bb2","type":"comment","name":"pull vpn binding from db table vs field","info":"","comments":"","x":2150.212989807129,"y":733.9232773780823,"z":"293895e6.5ef0e2","wires":[]},{"id":"613afd9.7dfc984","type":"for","name":"for 0..vpn-bindings_length","xml":"<for index='vidx' start='0' end='`$vpn-bindings_length`' >\n","comments":"","outputs":1,"x":2124.578311920166,"y":802.7328181266785,"z":"293895e6.5ef0e2","wires":[["7f145964.210d18"]]},{"id":"7f145964.210d18","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2333.053966522217,"y":804.812225818634,"z":"293895e6.5ef0e2","wires":[["a2810608.412cb"]]},{"id":"8c080bcb.479bc","type":"set","name":"set hasVpnBindings=true","xml":"<set>\n<parameter name='hasVpnBindings' value='true' />\n","comments":"","x":2122.752670288086,"y":771.3042178153992,"z":"293895e6.5ef0e2","wires":[]},{"id":"4068bc26.c234d4","type":"get-resource","name":"get-resource VPN_BINDINGS","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VPN_BINDINGS WHERE network_customization_uuid = $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid'\n pfx='vpn-bindings[]'>\n\n","comments":"","outputs":1,"x":1511.2817916870117,"y":756.6746144294739,"z":"293895e6.5ef0e2","wires":[["c7f6e79c.4ad44","cebe8d92.34fa78","60da40f1.463e18"]]},{"id":"cebe8d92.34fa78","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1733.710334777832,"y":849.3888840675354,"z":"293895e6.5ef0e2","wires":[["a3070615.94f568"]]},{"id":"60da40f1.463e18","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1729.0433616638184,"y":888.722198009491,"z":"293895e6.5ef0e2","wires":[["afdf36e1.3edc88"]]},{"id":"c7f6e79c.4ad44","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1729.219367980957,"y":810.8148484230042,"z":"293895e6.5ef0e2","wires":[["ded06bb2.f6b7e8"]]},{"id":"ded06bb2.f6b7e8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1899.424690246582,"y":810.3888840675354,"z":"293895e6.5ef0e2","wires":[["8c080bcb.479bc","613afd9.7dfc984"]]},{"id":"4c3863ea.780a64","type":"set","name":"set onap-model-info","xml":"<set>\n<parameter name='tmp.l3-network.model-invariant-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\" />\n<parameter name='tmp.l3-network.model-version-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-version`\" />\n<parameter name='tmp.l3-network.model-customization-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\" />\n<parameter name='s-onap-model-information.model-invariant-uuid' value='`$service-model.invariant-uuid`' />\n<parameter name='s-onap-model-information.model-version' value='`$service-model.version`' />\n<parameter name='s-onap-model-information.model-uuid' value='`$service-model.service-uuid`' />\n<parameter name='s-onap-model-information.model-name' value='`$service-model.name`' />\n<parameter name='n-onap-model-information.model-invariant-uuid' value='`$network-model.invariant-uuid`' />\n<parameter name='n-onap-model-information.model-version' value='`$network-model.version`' />\n<parameter name='n-onap-model-information.model-uuid' value='`$network-model.uuid`' />\n<parameter name='n-onap-model-information.model-name' value='`$network-model.name`' />","comments":"","x":790.75390625,"y":680.00390625,"z":"293895e6.5ef0e2","wires":[]},{"id":"f43b1f67.085098","type":"set","name":"set onap-model-info with mysql data","xml":"<set>\n<parameter name='network-data.service-information.ecomp-model-information.' value=\"`$s-onap-model-information.`\" />\n<parameter name='network-data.network-information.ecomp-model-information.' value=\"`$n-onap-model-information.`\" />\n","comments":"","x":840.0039215087891,"y":713.0039143562317,"z":"293895e6.5ef0e2","wires":[]},{"id":"bccef547.3b91c","type":"call","name":"call naming-policy-generate-name to rollback name","xml":"<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-name' mode='sync' >\n","comments":"","outputs":1,"x":2259.3800477981567,"y":3746.5046286582947,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"8a3142fd.49439","type":"set","name":"set parameters for generate-unique-name","xml":"<set>\n<parameter name='naming-policy-generate-name-input.context-id' value='`$tmp.l3-network.network-id`' />\n<parameter name='naming-policy-generate-name-input.naming-type' value='NETWORK' />\n<parameter name='naming-policy-generate-name-input.action' value='DELETE' />\n\n\n","comments":"","x":2219.630108833313,"y":3702.5046887397766,"z":"293895e6.5ef0e2","wires":[]},{"id":"23833e07.99958a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2802.681553840637,"y":3751.7563996315002,"z":"293895e6.5ef0e2","wires":[["ef665ef5.eb2a98","1521636d.390f25","f96be9ed.5e0508"]]},{"id":"1521636d.390f25","type":"call","name":"call naming-policy-generate-name to rollback name","xml":"<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-name' mode='sync' >\n","comments":"","outputs":1,"x":3109.1060609817505,"y":3754.5275464057922,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"ef665ef5.eb2a98","type":"set","name":"set parameters for generate-unique-name","xml":"<set>\n<parameter name='naming-policy-generate-name-input.context-id' value='`$tmp.l3-network.network-id`' />\n<parameter name='naming-policy-generate-name-input.naming-type' value='NETWORK' />\n<parameter name='naming-policy-generate-name-input.action' value='DELETE' />\n\n\n","comments":"","x":3081.8562364578247,"y":3716.777464389801,"z":"293895e6.5ef0e2","wires":[]},{"id":"48995ae5.67c19c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1261.505012512207,"y":1320.5048537254333,"z":"293895e6.5ef0e2","wires":[["f8c096c7.aac118","23833e07.99958a"]]},{"id":"cdcb6a66.a11cf","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1257.755012512207,"y":1360.5048537254333,"z":"293895e6.5ef0e2","wires":[["9eef74f0.a1e1b","23833e07.99958a"]]},{"id":"f8c096c7.aac118","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=\"Cloud region not found in AAI\"/>","comments":"","x":1495.2551574707031,"y":1319.2548823356628,"z":"293895e6.5ef0e2","wires":[]},{"id":"f96be9ed.5e0508","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-network - ' + $tmp.error-message`\"/>","comments":"","x":2988.75519657135,"y":3790.2547554969788,"z":"293895e6.5ef0e2","wires":[]},{"id":"9eef74f0.a1e1b","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=\"Error retrieving cloud region from AAI\"/>","comments":"","x":1495.2551651000977,"y":1360.5047507286072,"z":"293895e6.5ef0e2","wires":[]},{"id":"6c249175.f5d028","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1212.754867553711,"y":1439.2548804283142,"z":"293895e6.5ef0e2","wires":[["7597524b.c05c54","23833e07.99958a"]]},{"id":"7597524b.c05c54","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=\"Cloud region missing relationships in AAI\"/>","comments":"","x":1445.2550048828125,"y":1438.004909992218,"z":"293895e6.5ef0e2","wires":[]},{"id":"62b19f9d.67a67","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1227.754867553711,"y":1581.7548804283142,"z":"293895e6.5ef0e2","wires":[["16974f9.b28683","23833e07.99958a"]]},{"id":"16974f9.b28683","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=\"Complex not found in AAI\"/>","comments":"","x":1460.255012512207,"y":1581.7549214363098,"z":"293895e6.5ef0e2","wires":[]},{"id":"cffd5f4a.151d08","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2320.254867553711,"y":1562.7548804283142,"z":"293895e6.5ef0e2","wires":[["debc7aba.29c54","23833e07.99958a"]]},{"id":"54196261.94e404","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2316.504867553711,"y":1603.7548804283142,"z":"293895e6.5ef0e2","wires":[["5cd4560a.256b98","23833e07.99958a"]]},{"id":"debc7aba.29c54","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=\"Complex not found in AAI\"/>","comments":"","x":2550.505195617676,"y":1565.5049233436584,"z":"293895e6.5ef0e2","wires":[]},{"id":"5cd4560a.256b98","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=\"Error retrieving complex from AA\"/>","comments":"","x":2550.0050201416016,"y":1606.754777431488,"z":"293895e6.5ef0e2","wires":[]},{"id":"de868ff7.e2f398","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2934.9424209594727,"y":1621.5049204826355,"z":"293895e6.5ef0e2","wires":[["7e5580d1.9fcf78","23833e07.99958a"]]},{"id":"7e5580d1.9fcf78","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=\"Complex.region unknown\"/>","comments":"","x":3155.4425735473633,"y":1621.5048174858093,"z":"293895e6.5ef0e2","wires":[]},{"id":"a31343ec.e76f08","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2871.192367553711,"y":1813.0048804283142,"z":"293895e6.5ef0e2","wires":[["7107b96e.fe9278","23833e07.99958a"]]},{"id":"7107b96e.fe9278","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=\"Invalid address plan for VIPR\"/>","comments":"","x":3091.6925201416016,"y":1813.004777431488,"z":"293895e6.5ef0e2","wires":[]},{"id":"f448e026.7558","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2893.692367553711,"y":1985.5048804283142,"z":"293895e6.5ef0e2","wires":[["dbb7226b.0953e","23833e07.99958a"]]},{"id":"dbb7226b.0953e","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=\"EIPAM V6 Address plan should be null\"/>","comments":"","x":3114.1925201416016,"y":1985.504777431488,"z":"293895e6.5ef0e2","wires":[]},{"id":"cc9dd635.98df68","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2881.192367553711,"y":2189.254880428314,"z":"293895e6.5ef0e2","wires":[["13bc9b22.80b915","23833e07.99958a"]]},{"id":"13bc9b22.80b915","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=\"Invalid address plan for SRIOV\"/>","comments":"","x":3101.6925201416016,"y":2189.254777431488,"z":"293895e6.5ef0e2","wires":[]},{"id":"418a0270.b2cdfc","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2882.7283096313477,"y":2487.5765719413757,"z":"293895e6.5ef0e2","wires":[["9e54712b.194c98","23833e07.99958a"]]},{"id":"9e54712b.194c98","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=\"Invalid ipv6 address plan for SRIOV\"/>","comments":"","x":3103.2284622192383,"y":2487.5764689445496,"z":"293895e6.5ef0e2","wires":[]},{"id":"964d0759.ba21c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1256.5049285888672,"y":2361.7546763420105,"z":"293895e6.5ef0e2","wires":[["8d799b4e.f02948","23833e07.99958a"]]},{"id":"8d799b4e.f02948","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=\"Invalid network-technology. Only AIC_SR_IOV and Contrail are supported for network automated flow\"/>","comments":"","x":1489.0050735473633,"y":2361.754717350006,"z":"293895e6.5ef0e2","wires":[]},{"id":"a3070615.94f568","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1907.4422454833984,"y":849.2548804283142,"z":"293895e6.5ef0e2","wires":[["21bdae32.51c022","23833e07.99958a"]]},{"id":"afdf36e1.3edc88","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1903.6922454833984,"y":889.2548804283142,"z":"293895e6.5ef0e2","wires":[["743cb5.96e0034c","23833e07.99958a"]]},{"id":"21bdae32.51c022","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=\"Network model is_bound_to_vpn=true but no vpn_binding is present\"/>","comments":"","x":2141.1923904418945,"y":848.0049090385437,"z":"293895e6.5ef0e2","wires":[]},{"id":"743cb5.96e0034c","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=\"Unexpected error retrieving vpn binding\"/>","comments":"","x":2141.192398071289,"y":889.254777431488,"z":"293895e6.5ef0e2","wires":[]},{"id":"c81ef1d0.c56528","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2971.1924209594727,"y":795.504891872406,"z":"293895e6.5ef0e2","wires":[["ea8a27d2.4dd83","23833e07.99958a"]]},{"id":"ea8a27d2.4dd83","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=\"`'No vpn binding found for network-model.vpn-binding=' \n + $vpn-bindings[$vidx].binding-uuid`\"/>","comments":"","x":3208.6925735473633,"y":795.5047888755798,"z":"293895e6.5ef0e2","wires":[]},{"id":"88aa0e0f.278a3","type":"set","name":"set: tmp.error-message to \"\"","xml":"<set>\n\t<parameter name=\"tmp.error-message\" value=\"\"/>","comments":"","x":812.2191925048828,"y":561.9334692955017,"z":"293895e6.5ef0e2","wires":[]},{"id":"c6bc7f3a.1e281","type":"switchNode","name":"switch tmp.nidx ","xml":"<switch test=\"`$tmp.nidx`\">\n\n","comments":"","outputs":1,"x":772.0412635803223,"y":444.2912917137146,"z":"293895e6.5ef0e2","wires":[["4352bf81.36bca8","2ea25c4b.e9b804"]]},{"id":"4352bf81.36bca8","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":960.6126480102539,"y":442.8626751899719,"z":"293895e6.5ef0e2","wires":[["56d49ab9.18493c"]]},{"id":"56d49ab9.18493c","type":"switchNode","name":"switch service-data.networks_length","xml":"<switch test='`$service-data.networks.network_length`'>\n","comments":"","outputs":1,"x":1209.8387413024902,"y":444.0535922050476,"z":"293895e6.5ef0e2","wires":[["d27193d0.539848","ee3cafd7.3c4058"]]},{"id":"d27193d0.539848","type":"other","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1502.934063911438,"y":442.86290073394775,"z":"293895e6.5ef0e2","wires":[["d8ac678b.d3417"]]},{"id":"d8ac678b.d3417","type":"set","name":"set nidx","xml":"<set>\n<parameter name='nidx' value='0' />\n<parameter name='nidx_len' value='1'/>\n","comments":"","x":1682.934105873108,"y":440.43431663513184,"z":"293895e6.5ef0e2","wires":[]},{"id":"ee3cafd7.3c4058","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1505.791226387024,"y":468.5771732330322,"z":"293895e6.5ef0e2","wires":[["2d29b63f.71cd2a"]]},{"id":"2d29b63f.71cd2a","type":"set","name":"set nidx","xml":"<set>\n<parameter name='nidx' value='`$service-data.networks.network_length`' />\n<parameter name='nidx_len' value='`$service-data.networks.network_length + 1`' />\n","comments":"","x":1684.3626565933228,"y":477.4343738555908,"z":"293895e6.5ef0e2","wires":[]},{"id":"2ea25c4b.e9b804","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":962.0412826538086,"y":481.4341473579407,"z":"293895e6.5ef0e2","wires":[["e1048edf.258b38"]]},{"id":"e1048edf.258b38","type":"set","name":"set nidx","xml":"<set>\n<parameter name='nidx' value='`$tmp.nidx`' />\n<parameter name='nidx_len' value='`$service-data.networks.network_length`' />\n","comments":"","x":1124.8984069824219,"y":481.4341731071472,"z":"293895e6.5ef0e2","wires":[]},{"id":"cb4086d2.f6774","type":"set","name":"set rename for call to create-l3-subnet","xml":"<set>\n<parameter name='v4.entity-id' value='`$tmp.l3-network.level2.v4.entity-id`' />\n<parameter name='v4.ip-prefix' value='`$tmp.l3-network.level2.v4.ip-prefix`' />\n<parameter name='v4.mask' value='`$tmp.l3-network.level2.v4.mask`' />\n<parameter name='v6.entity-id' value='`$tmp.l3-network.level2.v6.entity-id`' />\n<parameter name='v6.ip-prefix' value='`$tmp.l3-network.level2.v6.ip-prefix`' />\n<parameter name='v6.mask' value='`$tmp.l3-network.level2.v6.mask`' />\n\n","comments":"","x":868.7499980926514,"y":2563.5000014305115,"z":"293895e6.5ef0e2","wires":[]},{"id":"6fed3d50.bda79c","type":"block","name":"block","xml":"<block>","atomic":"false","outputs":1,"x":1595.5,"y":2752.25,"z":"293895e6.5ef0e2","wires":[["de7043fa.21dad","cd23b00b.cf80e"]]},{"id":"de7043fa.21dad","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 save l3-network in AAI for network-id = ' + $tmp.l3-network.network-id`\"/>","comments":"","x":1823.1638946533203,"y":2751.4717512130737,"z":"293895e6.5ef0e2","wires":[]}]
\ No newline at end of file +[{"id":"ddaa8377.fa22a8","type":"dgstart","name":"DGSTART","outputs":1,"x":162.74999809265137,"y":128.33333349227905,"z":"293895e6.5ef0e2","wires":[["bee866d7.34a87"]]},{"id":"bee866d7.34a87","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":356.03568267822266,"y":188.09525346755981,"z":"293895e6.5ef0e2","wires":[["a4b64377.84e858"]]},{"id":"a4b64377.84e858","type":"method","name":"network-topology-operation-assign-automated","xml":"<method rpc='network-topology-operation-assign-automated' mode='sync'>\n","comments":"","outputs":1,"x":366.38106536865234,"y":293.8928370475769,"z":"293895e6.5ef0e2","wires":[["52e034b0.745ae4"]]},{"id":"32bd1ba1.6415a4","type":"comment","name":"Called from assign when network name is NOT passed in from mso","info":"","comments":"","x":546.6071319580078,"y":126.00000143051147,"z":"293895e6.5ef0e2","wires":[]},{"id":"52e034b0.745ae4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":278.74996185302734,"y":434.9999842643738,"z":"293895e6.5ef0e2","wires":[["f1fc9d62.38b5c","2966d0e0.8b25e8","e8da6f16.71f9b8","ad4ff9.5fa67008","2c27032c.5e2204","f827107c.d87818","2c6c62c8.5a4c2e","3d53982a.567ae","5768ac10.171294","3420d2a4.657bee","fd6db351.edfb","4db8414c.fd2348","c87d3fb.61607c","fe0c8615.109c78","67411a15.4513fc","16bcfe02.a78002","4acd25ef.ab1094","78d9149.661776c","6fc56656.d3bba","f387ea7a.cb332","74426281.f93a14","6c88ef63.8cc9","b853c9fb.a4b158","2688708b.68097","22bd05cf.445f7a","44cca957.3504a8","ece618e.04a51e8","ddf2d1ad.9086d","7852b58.654cd4c","31213429.ff2f4c","4c3863ea.780a64","f43b1f67.085098","88aa0e0f.278a3","c6bc7f3a.1e281","cb4086d2.f6774"]]},{"id":"f1fc9d62.38b5c","type":"set","name":"set tmp.l3-network","xml":"<set>\n<parameter name='tmp.l3-network.network-id' value=\"`$tmp.return.generate-l3network-network-id.uuid`\" />\n<parameter name='tmp.l3-network.network-name' value=\"`$tmp.network-instance-name`\" />\n<parameter name='tmp.l3-network.network-type' value=\"`$network-model.network-type`\" />\n<parameter name='tmp.l3-network.network-role' value=\"`$network-model.network-role`\" />\n<parameter name='tmp.l3-network.network-technology' value=\"`$network-model.network-technology`\" />\n<parameter name='tmp.l3-network.is-bound-to-vpn' value=\"`$network-model.is-bound-to-vpn`\" />\n<parameter name='tmp.l3-network.orchestration-status' value=\"PendingCreate\" />\n<parameter name='tmp.l3-network.model-invariant-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\" />\n<parameter name='tmp.l3-network.model-version-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-version`\" />\n<parameter name='tmp.l3-network.model-customization-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\" />\n<parameter name='tmp.l3-network.is-provider-network' value=\"`$network-model.is-provider-network`\" />\n<parameter name='tmp.l3-network.is-shared-network' value=\"`$network-model.is-shared-network`\" />\n<parameter name='tmp.l3-network.is-external-network' value=\"`$network-model.is-external-network`\" />\n<parameter name='tmp.l3-network.eipam-v6-address-plan' value=\"`$network-model.eipam-v6-address-plan`\" />\n<parameter name='tmp.l3-network.eipam-v4-address-plan' value=\"`$network-model.eipam-v4-address-plan`\" />\n<parameter name='tmp.l3-network.service-id' value=\"`$service-data.service-information.service-id`\" />\n<parameter name='tmp.l3-network.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/networks/network='\n + $tmp.l3-network.network-id\n + '/network-data/network-topology?content=config'` \" />\n","comments":"","x":781.7499313354492,"y":815.9999651908875,"z":"293895e6.5ef0e2","wires":[]},{"id":"2966d0e0.8b25e8","type":"switchNode","name":"switch network--model.is-provider-network","xml":"<switch test='`$network-model.is-provider-network`'>\n","comments":"","outputs":1,"x":859.2410736083984,"y":910.285710811615,"z":"293895e6.5ef0e2","wires":[["e7b008a0.418ec","d5dd32b7.555628"]]},{"id":"e7b008a0.418ec","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1164.3842239379883,"y":890.1111559867859,"z":"293895e6.5ef0e2","wires":[["2dfcff6c.e57a48"]]},{"id":"2dfcff6c.e57a48","type":"set","name":"set tmp.l3-network.physical-network-name","xml":"<set>\n<parameter name='tmp.l3-network.physical-network-name' value=\"`$network-model.physical-network-name`\" />\n<parameter name='tmp.l3-network.is-provider-network-boolean' value='true' />","comments":"","x":1432.3840789794922,"y":887.1111216545105,"z":"293895e6.5ef0e2","wires":[]},{"id":"d5dd32b7.555628","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1151.749282836914,"y":920.9841771125793,"z":"293895e6.5ef0e2","wires":[["642fce71.9bd878"]]},{"id":"642fce71.9bd878","type":"set","name":"set tmp.l3-network.physical-network-name","xml":"<set>\n<parameter name='tmp.l3-network.physical-network-name' value=\"\" />\n<parameter name='tmp.l3-network.is-provider-network-boolean' value='false' />","comments":"","x":1436.0352401733398,"y":919.5556082725525,"z":"293895e6.5ef0e2","wires":[]},{"id":"e8da6f16.71f9b8","type":"switchNode","name":"switch network--model.is-shared-network","xml":"<switch test='`$network-model.is-shared-network`'>\n","comments":"","outputs":1,"x":856.9075927734375,"y":955.9205183982849,"z":"293895e6.5ef0e2","wires":[["c85002b3.dfee48","73fec284.227f6c"]]},{"id":"c85002b3.dfee48","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1162.5267944335938,"y":955.9841294288635,"z":"293895e6.5ef0e2","wires":[["72e5d36e.94fdfc"]]},{"id":"72e5d36e.94fdfc","type":"set","name":"set tmp.l3-network.is-shared-network-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-shared-network-boolean' value='true' />","comments":"","x":1454.8125076293945,"y":955.9839768409729,"z":"293895e6.5ef0e2","wires":[]},{"id":"73fec284.227f6c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1151.3208198547363,"y":991.2856364250183,"z":"293895e6.5ef0e2","wires":[["2a0962ea.47f27e"]]},{"id":"2a0962ea.47f27e","type":"set","name":"set tmp.l3-network.is-shared-network-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-shared-network-boolean' value='false' />","comments":"","x":1455.6067390441895,"y":991.1428141593933,"z":"293895e6.5ef0e2","wires":[]},{"id":"ad4ff9.5fa67008","type":"switchNode","name":"switch network--model.is-external-network","xml":"<switch test='`$network-model.is-external-network`'>\n","comments":"","outputs":1,"x":865.5908966064453,"y":1027.968159198761,"z":"293895e6.5ef0e2","wires":[["644c8ab8.07217c","5d3c03a7.b87cbc"]]},{"id":"644c8ab8.07217c","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1164.5433616638184,"y":1034.698477268219,"z":"293895e6.5ef0e2","wires":[["5ede0098.42a888"]]},{"id":"5ede0098.42a888","type":"set","name":"set tmp.l3-network.is-external-network-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-external-network-boolean' value='true' />","comments":"","x":1456.8290748596191,"y":1034.6983246803284,"z":"293895e6.5ef0e2","wires":[]},{"id":"5d3c03a7.b87cbc","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1153.337387084961,"y":1069.9999842643738,"z":"293895e6.5ef0e2","wires":[["73e4d14e.10bed"]]},{"id":"73e4d14e.10bed","type":"set","name":"set tmp.l3-network.is-external-network-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-external-network-boolean' value='false' />","comments":"","x":1457.623306274414,"y":1069.8571619987488,"z":"293895e6.5ef0e2","wires":[]},{"id":"f827107c.d87818","type":"set","name":"set tmp.complex-found","xml":"<set>\n<parameter name='tmp.complex-found' value='false' />\n\n","comments":"","x":811.0614624023438,"y":1165.5421195030212,"z":"293895e6.5ef0e2","wires":[]},{"id":"2c27032c.5e2204","type":"switchNode","name":"switch network--model.is-bound-to-vpn","xml":"<switch test='`$network-model.is-bound-to-vpn`'>\n","comments":"","outputs":1,"x":857.1724243164062,"y":1104.0422587394714,"z":"293895e6.5ef0e2","wires":[["f59632be.ab57","e3b1b631.14c4b8"]]},{"id":"f59632be.ab57","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1162.7916221618652,"y":1109.1058259010315,"z":"293895e6.5ef0e2","wires":[["3a84d6bc.f116aa"]]},{"id":"3a84d6bc.f116aa","type":"set","name":"set tmp.l3-network.is-bound-to-vpn-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-bound-to-vpn-boolean' value='true' />","comments":"","x":1455.077335357666,"y":1109.1056733131409,"z":"293895e6.5ef0e2","wires":[]},{"id":"e3b1b631.14c4b8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1151.5856475830078,"y":1144.4073328971863,"z":"293895e6.5ef0e2","wires":[["30af655.b903c9a"]]},{"id":"30af655.b903c9a","type":"set","name":"set tmp.l3-network.is-bound-to-vpn-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-bound-to-vpn-boolean' value='false' />","comments":"","x":1455.871566772461,"y":1144.2645106315613,"z":"293895e6.5ef0e2","wires":[]},{"id":"16bcfe02.a78002","type":"set","name":"set tmp.network-topology","xml":"<set>\n<parameter name='tmp.network-topology.network-topology-identifier-structure.network-id' value=\"`$tmp.l3-network.network-name`\" />\n<parameter name='tmp.network-topology.network-topology-identifier-structure.network-name' value=\"`$tmp.l3-network.network-name`\" />\n<parameter name='tmp.network-topology.network-topology-identifier-structure.network-type' value=\"`$tmp.l3-network.network-type`\" />\n<parameter name='tmp.network-topology.network-topology-identifier-structure.network-role' value=\"`$tmp.l3-network.network-role`\" />\n<parameter name='tmp.network-topology.network-topology-identifier-structure.network-technology' value=\"`$tmp.l3-network.network-technology`\" />\n<parameter name='tmp.network-topology.network-topology-identifier-structure.eipam-v4-address-plan' value=\"`$network-model.eipam-v4-address-plan`\" />\n<parameter name='tmp.network-topology.network-topology-identifier-structure.eipam-v6-address-plan' value=\"`$network-model.eipam-v6-address-plan`\" />\n<parameter name='tmp.network-topology.region-identifier.tenant' value=\"`$network-topology-operation-input.network-request-input.tenant`\" />\n<parameter name='tmp.network-topology.region-identifier.aic-cloud-region' value=\"`$network-topology-operation-input.network-request-input.aic-cloud-region`\" />\n<parameter name='tmp.network-topology.region-identifier.aic-clli' value=\"`$network-topology-operation-input.network-request-input.aic-clli`\" />\n<parameter name='tmp.network-topology.onap-model-information.' value=\"`$network-topology-operation-input.network-information.onap-model-information.`\" />\n<parameter name='tmp.network-topology.network-parameters.' value=\"`$network-topology-operation-input.network-request-input.network-input-parameters.`\" />\n","comments":"","x":828.5831727981567,"y":2704.2797265052795,"z":"293895e6.5ef0e2","wires":[]},{"id":"f7696e6a.52691","type":"switchNode","name":"switch network-model.eipam-v4-address-plan (VIPR)","xml":"<switch test='`$network-model.eipam-v4-address-plan`'>\n","comments":"","outputs":1,"x":2312.4011001586914,"y":1729.882297039032,"z":"293895e6.5ef0e2","wires":[["dae3b0b5.b40e7","2be63d31.a0fc1a","ec03d835.f8721","51656656.ba094"]]},{"id":"dae3b0b5.b40e7","type":"other","name":"AIC_ATM_UNPROTECTED_V4","xml":"<outcome value='AIC_ATM_UNPROTECTED_V4'>","comments":"","outputs":1,"x":2772.400520324707,"y":1698.8821139335632,"z":"293895e6.5ef0e2","wires":[["1f720674.eca1b2"]]},{"id":"2be63d31.a0fc1a","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2696.067485809326,"y":1814.2157225608826,"z":"293895e6.5ef0e2","wires":[["a31343ec.e76f08"]]},{"id":"ec03d835.f8721","type":"other","name":"AIC_ATM_PROTECTED_V4","xml":"<outcome value='AIC_ATM_PROTECTED_V4'>","comments":"","outputs":1,"x":2762.289131164551,"y":1736.4379525184631,"z":"293895e6.5ef0e2","wires":[["1f720674.eca1b2"]]},{"id":"71eecbd.b148b34","type":"switchNode","name":"switch network-model.eipam-v4-address-plan (SRIOV)","xml":"<switch test='`$network-model.eipam-v4-address-plan`'>\n","comments":"","outputs":1,"x":2348.1351013183594,"y":2078.4893565177917,"z":"293895e6.5ef0e2","wires":[["af18a1b8.3f9da","48638a1d.044944","bcb2da26.868168","b190ce.c871bf3"]]},{"id":"af18a1b8.3f9da","type":"other","name":"AIC_DATA_PLANE_UNPROTECTED_V4","xml":"<outcome value='AIC_DATA_PLANE_UNPROTECTED_V4'>","comments":"","outputs":1,"x":2815.385040283203,"y":2077.7392830848694,"z":"293895e6.5ef0e2","wires":[["25845c0e.13752c"]]},{"id":"48638a1d.044944","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2707.992322921753,"y":2192.560908317566,"z":"293895e6.5ef0e2","wires":[["cc9dd635.98df68"]]},{"id":"bcb2da26.868168","type":"other","name":"AIC_DATA_PLANE_PROTECTED_V4","xml":"<outcome value='AIC_DATA_PLANE_PROTECTED_V4'>","comments":"","outputs":1,"x":2811.773712158203,"y":2114.544826030731,"z":"293895e6.5ef0e2","wires":[["25845c0e.13752c"]]},{"id":"b190ce.c871bf3","type":"other","name":"AIC_DATA_PLANE_PRIVATE_V4","xml":"<outcome value='AIC_DATA_PLANE_PRIVATE_V4'>","comments":"","outputs":1,"x":2793.9923248291016,"y":2153.3107810020447,"z":"293895e6.5ef0e2","wires":[["25845c0e.13752c"]]},{"id":"34c49751.1e7d6","type":"switchNode","name":"switch network-model.eipam-v6-address-plan","xml":"<switch test='`$network-model.eipam-v6-address-plan`'>\n","comments":"","outputs":1,"x":2292.3330612182617,"y":1897.4740328788757,"z":"293895e6.5ef0e2","wires":[["2321c9f0.8a0d9e","82367816.ed7db8","16e5d844.ab3f38","a6bdf612.22b0f8"]]},{"id":"da0609b1.dd66e","type":"switchNode","name":"switch network-model.eipam-v6-address-plan (SRIOV)","xml":"<switch test='`$network-model.eipam-v6-address-plan`'>\n","comments":"","outputs":1,"x":2384.1824951171875,"y":2296.680191516876,"z":"293895e6.5ef0e2","wires":[["2c5a63b9.3f81d4","6f253e2d.578688","66a6717f.0e464","12e3c9ff.f116ee","d57691f9.5e2ff","eb0937db.b0b998"]]},{"id":"2c5a63b9.3f81d4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2718.8966121673584,"y":2486.1807163357735,"z":"293895e6.5ef0e2","wires":[["418a0270.b2cdfc"]]},{"id":"6f253e2d.578688","type":"other","name":"AIC_ATM_UNPROTECTED_V6","xml":"<outcome value=\"AIC_ATM_UNPROTECTED_V6\">","comments":"","outputs":1,"x":2787.448028564453,"y":2297.8825373649597,"z":"293895e6.5ef0e2","wires":[["ba3daf8e.1a127"]]},{"id":"66a6717f.0e464","type":"other","name":"AIC_ATM_PROTECTED_V6","xml":"<outcome value=\"AIC_ATM_PROTECTED_V6\">","comments":"","outputs":1,"x":2782.733383178711,"y":2339.8825602531433,"z":"293895e6.5ef0e2","wires":[["ba3daf8e.1a127"]]},{"id":"12e3c9ff.f116ee","type":"other","name":"AIC_DATA_PLANE_UNPROTECTED_V6","xml":"<outcome value=\"AIC_DATA_PLANE_UNPROTECTED_V6\">","comments":"","outputs":1,"x":2822.6350326538086,"y":2378.025414943695,"z":"293895e6.5ef0e2","wires":[["ba3daf8e.1a127"]]},{"id":"eb0937db.b0b998","type":"other","name":"AIC_DATA_PLANE_PROTECTED_V6","xml":"<outcome value=\"AIC_DATA_PLANE_PROTECTED_V6\">","comments":"","outputs":1,"x":2811.6356048583984,"y":2440.0256450772285,"z":"293895e6.5ef0e2","wires":[["ba3daf8e.1a127"]]},{"id":"d57691f9.5e2ff","type":"other","name":"AIC_DATA_PLANE_PRIVATE_V6","xml":"<outcome value=\"AIC_DATA_PLANE_PRIVATE_V6\">","comments":"","outputs":1,"x":2799.9211807250977,"y":2407.4543509483337,"z":"293895e6.5ef0e2","wires":[["ba3daf8e.1a127"]]},{"id":"fd6db351.edfb","type":"switchNode","name":"switch network-technology","xml":"<switch test='`$network-model.network-technology`'>\n","comments":"","outputs":1,"x":829.9508438110352,"y":1730.4166598320007,"z":"293895e6.5ef0e2","wires":[["bc99eab5.63fc78","98ca247b.003d6","878c8d61.5c11c"]]},{"id":"2c6c62c8.5a4c2e","type":"get-resource","name":"get-resource cloud region","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"cloud-region\" \n\t\tkey=\"cloud-region.cloud-owner = $prop.cloud-region.cloud-owner AND \n\t\t cloud-region.cloud-region-id = $network-topology-operation-input.network-request-input.aic-cloud-region AND \n\t\t depth = '0'\"\n pfx='aai.cloud-region' local-only='false' >\n\n","comments":"","outputs":1,"x":827.2842483520508,"y":1323.4166903495789,"z":"293895e6.5ef0e2","wires":[["ac17137c.6c1968","364976ad.55413a"]]},{"id":"364976ad.55413a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1049.673355102539,"y":1360.1388583183289,"z":"293895e6.5ef0e2","wires":[["cdcb6a66.a11cf"]]},{"id":"ac17137c.6c1968","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1056.1733512878418,"y":1324.138919353485,"z":"293895e6.5ef0e2","wires":[["48995ae5.67c19c"]]},{"id":"106bd669.56604a","type":"comment","name":"Per test failure in IT, need to throw error if relationships don't exist","info":"","comments":"","x":945.5344848632812,"y":1280.4999976158142,"z":"293895e6.5ef0e2","wires":[]},{"id":"a4857175.d87198","type":"get-resource","name":"get-resource complex","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"complex\" \n\t\tkey=\"complex.physical-location-id = $aai.cloud-region.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-value\"\n pfx='aai.complex' local-only='false' >\n \n\n\n","comments":"","outputs":1,"x":1917.7286224365234,"y":1544.527916431427,"z":"293895e6.5ef0e2","wires":[["635ae7ba.6c555","4c24ef82.82de3","586982ec.1e8c34"]]},{"id":"4c24ef82.82de3","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2150.4789810180664,"y":1602.88871717453,"z":"293895e6.5ef0e2","wires":[["54196261.94e404"]]},{"id":"635ae7ba.6c555","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2152.978977203369,"y":1562.8887782096863,"z":"293895e6.5ef0e2","wires":[["cffd5f4a.151d08"]]},{"id":"5768ac10.171294","type":"for","name":"for relationship list","xml":"<for silentFailure='false' index='ridx' start='0' end=\"`$aai.cloud-region.relationship-list.relationship_length`\" >\n","comments":"","outputs":1,"x":793.7013320922852,"y":1499.6470789909363,"z":"293895e6.5ef0e2","wires":[["798003f7.3d8904"]]},{"id":"ca236a12.216ce","type":"switchNode","name":"switch","xml":"<switch test='`$aai.cloud-region.relationship-list.relationship[$ridx].relationship-data[$rdidx].relationship-key`'>\n","comments":"","outputs":1,"x":1199.2009963989258,"y":1503.3611903190613,"z":"293895e6.5ef0e2","wires":[["977e56b3.9b15b"]]},{"id":"798003f7.3d8904","type":"for","name":"for relationship data","xml":"<for silentFailure='false' index='rdidx' start='0' end=\"`$aai.cloud-region.relationship-list.relationship[$ridx].relationship-data_length`\" >\n","comments":"","outputs":1,"x":1016.6177749633789,"y":1500.6113123893738,"z":"293895e6.5ef0e2","wires":[["ca236a12.216ce"]]},{"id":"977e56b3.9b15b","type":"other","name":"complex.physical-location-id","xml":"<outcome value='complex.physical-location-id'>\n","comments":"","outputs":1,"x":1421.701057434082,"y":1501.7778162956238,"z":"293895e6.5ef0e2","wires":[["16d6abf6.083fac"]]},{"id":"16d6abf6.083fac","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1661.1173782348633,"y":1499.5279383659363,"z":"293895e6.5ef0e2","wires":[["a4857175.d87198","53e77c9e.f7a794","d6907b4c.cf3028"]]},{"id":"586982ec.1e8c34","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2145.506773206922,"y":1516.9444912274676,"z":"293895e6.5ef0e2","wires":[["33454633.eca53a"]]},{"id":"33454633.eca53a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2322.649642944336,"y":1518.194444179535,"z":"293895e6.5ef0e2","wires":[["47e7c181.61d528"]]},{"id":"53e77c9e.f7a794","type":"set","name":"set aic-clli","xml":"<set>\n<parameter name='service-data.network-request-input.aic-clli' value='`$aai.complex.physical-location-id`' />\n\n","comments":"","x":1885.617935180664,"y":1506.4723238945007,"z":"293895e6.5ef0e2","wires":[]},{"id":"3d53982a.567ae","type":"switchNode","name":"switch relationship_length","xml":"<switch test='`$aai.cloud-region.relationship-list.relationship_length`'>\n","comments":"","outputs":1,"x":823.7287673950195,"y":1422.6945033073425,"z":"293895e6.5ef0e2","wires":[["184aa09c.2e8457","a9b6a010.eba4d8"]]},{"id":"184aa09c.2e8457","type":"other","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1017.7288394504121,"y":1421.6945921050178,"z":"293895e6.5ef0e2","wires":[["6c249175.f5d028"]]},{"id":"a9b6a010.eba4d8","type":"other","name":"null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1019.7288360595703,"y":1460.6946234703064,"z":"293895e6.5ef0e2","wires":[["6c249175.f5d028"]]},{"id":"d6907b4c.cf3028","type":"set","name":"set tmp.complex-found","xml":"<set>\n<parameter name='tmp.complex-found' value='true' />\n\n","comments":"","x":1923.950942993164,"y":1474.8056979179382,"z":"293895e6.5ef0e2","wires":[]},{"id":"3420d2a4.657bee","type":"switchNode","name":"switch tmp.complex-found","xml":"<switch test='`$tmp.complex-found`'>\n","comments":"","outputs":1,"x":821.728889465332,"y":1582.9167323112488,"z":"293895e6.5ef0e2","wires":[["c4def4b4.63fea"]]},{"id":"c4def4b4.63fea","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1039.228889465332,"y":1582.2778162956238,"z":"293895e6.5ef0e2","wires":[["62b19f9d.67a67"]]},{"id":"bc99eab5.63fc78","type":"outcome","name":"outcome Contrail","xml":"<outcome value='Contrail'>\n","comments":"","outputs":1,"x":1072.8397598266602,"y":1730.8609957695007,"z":"293895e6.5ef0e2","wires":[["ad2de5e.0feaf98"]]},{"id":"98ca247b.003d6","type":"outcome","name":"outcome AIC_SR_IOV","xml":"<outcome value='AIC_SR_IOV'>\n","comments":"","outputs":1,"x":1106.8397903442383,"y":2073.8611178398132,"z":"293895e6.5ef0e2","wires":[["f42f3f68.8503f8"]]},{"id":"47e7c181.61d528","type":"switchNode","name":"switch region","xml":"<switch test='`$aai.complex.region`'>\n","comments":"","outputs":1,"x":2519.7289123535156,"y":1517.8609776496887,"z":"293895e6.5ef0e2","wires":[["eeb7c55f.544058","e483bf22.b6c018","6194657.fd9b99c","bd683dd1.b3f298","88a51647.0a80d8","d24339dd.e70008","78064e5a.452108","fa0d0769.128ad8"]]},{"id":"eeb7c55f.544058","type":"other","name":"CA","xml":"<outcome value='CA'>\n","comments":"","outputs":1,"x":2762.9591522216797,"y":1458.8888869285583,"z":"293895e6.5ef0e2","wires":[["6b7a7bfb.ed67c4"]]},{"id":"e483bf22.b6c018","type":"other","name":"US","xml":"<outcome value='US'>\n","comments":"","outputs":1,"x":2761.0343704223633,"y":1490.932584285736,"z":"293895e6.5ef0e2","wires":[["6b7a7bfb.ed67c4"]]},{"id":"6194657.fd9b99c","type":"other","name":"LA","xml":"<outcome value='LA'>\n","comments":"","outputs":1,"x":2759.605728149414,"y":1524.8611035346985,"z":"293895e6.5ef0e2","wires":[["6b7a7bfb.ed67c4"]]},{"id":"bd683dd1.b3f298","type":"other","name":"EMEA","xml":"<outcome value='EMEA'>\n","comments":"","outputs":1,"x":2759.7844581604004,"y":1556.1111493110657,"z":"293895e6.5ef0e2","wires":[["6b7a7bfb.ed67c4"]]},{"id":"88a51647.0a80d8","type":"other","name":"AP","xml":"<outcome value='AP'>\n","comments":"","outputs":1,"x":2759.605796813965,"y":1589.8611550331116,"z":"293895e6.5ef0e2","wires":[["6b7a7bfb.ed67c4"]]},{"id":"d24339dd.e70008","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2761.0343132019043,"y":1621.1110577583313,"z":"293895e6.5ef0e2","wires":[["de868ff7.e2f398"]]},{"id":"6b7a7bfb.ed67c4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2918.7285770840117,"y":1486.3612209426033,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"878c8d61.5c11c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1056.8398056030273,"y":2360.3060030937195,"z":"293895e6.5ef0e2","wires":[["964d0759.ba21c"]]},{"id":"1f720674.eca1b2","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3029.839500427246,"y":1706.0834078788757,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"25845c0e.13752c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3086.840057373047,"y":2086.083400249481,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"ba3daf8e.1a127","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3128.8395919799805,"y":2344.083531200886,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"c87d3fb.61607c","type":"call","name":"call process-eipam-pools","xml":"<call module='GENERIC-RESOURCE-API' rpc='process-eipam-pools' mode='sync' >\n","comments":"tmp.level should be set to 1","outputs":1,"x":817.4753398895264,"y":2476.4619154930115,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"67411a15.4513fc","type":"call","name":"call GENERIC-RESOURCE-API:create-l3-subnet","xml":"<call module='GENERIC-RESOURCE-API' rpc='create-l3-subnet' mode='sync' >\n","comments":"tmp.level should be set to 1","outputs":1,"x":904.6861925125122,"y":2648.2196526527405,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"4db8414c.fd2348","type":"set","name":"set process-eipam-action","xml":"<set>\n<parameter name='tmp.process-eipam-action' value='assign' />\n","comments":"","x":820.9407939910889,"y":2437.4621596336365,"z":"293895e6.5ef0e2","wires":[]},{"id":"fe0c8615.109c78","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"GENERIC-RESOURCE-API.process-eipam-pools:REQID\"/>\n<parameter name=\"field3\" value=\"`$network-topology-operation-input.sdnc-request-header.svc-request-id`\"/>\n<parameter name=\"field4\" value=\"Values after process-eipam\"/>\n<parameter name=\"field5\" value=\"`level1-v4-mask`\"/>\n<parameter name=\"field6\" value=\"`$tmp.l3-network.level1.v4.mask`\"/>\n<parameter name=\"field7\" value=\"`level1-v4-ipprefix`\"/>\n<parameter name=\"field8\" value=\"`$tmp.l3-network.level1.v4.ip-prefix`\"/>\n<parameter name=\"field9\" value=\"`level1-v4-entity-id`\"/>\n<parameter name=\"field10\" value=\"`$tmp.l3-network.level1.v4.entity-id`\"/>\n<parameter name=\"field11\" value=\"`level2-v4-mask`\"/>\n<parameter name=\"field12\" value=\"`$tmp.l3-network.level2.v4.mask`\"/>\n<parameter name=\"field13\" value=\"`level2-v4-ipprefix`\"/>\n<parameter name=\"field14\" value=\"`$tmp.l3-network.level2.v4.ip-prefix`\"/>\n<parameter name=\"field15\" value=\"`level2-v4-entity-id`\"/>\n<parameter name=\"field16\" value=\"`$tmp.l3-network.level2.v4.entity-id`\"/>\n\n\n","comments":"","outputs":1,"x":767.5917949676514,"y":2512.2438979148865,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"ad2de5e.0feaf98","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1284.8397903442383,"y":1729.8611178398132,"z":"293895e6.5ef0e2","wires":[["e335a0be.901ca","bbedd6ee.89d8b8"]]},{"id":"f42f3f68.8503f8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1332.839729309082,"y":2073.8611178398132,"z":"293895e6.5ef0e2","wires":[["1581aae3.4fadd5","18d89bc5.ccc5bc"]]},{"id":"e335a0be.901ca","type":"switchNode","name":"switch: network-model.use-ipv4","xml":"<switch test=\"`$network-model.use-ipv4`\">","comments":"","outputs":1,"x":1540.8396682739258,"y":1728.4169039726257,"z":"293895e6.5ef0e2","wires":[["8105ec47.183e"]]},{"id":"8105ec47.183e","type":"other","name":"Y","xml":"<outcome value='Y'>","comments":"","outputs":1,"x":1795.8397941589355,"y":1728.8454604148865,"z":"293895e6.5ef0e2","wires":[["3c8a3bf6.f3d274"]]},{"id":"3c8a3bf6.f3d274","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1968.4111137390137,"y":1729.274064540863,"z":"293895e6.5ef0e2","wires":[["f7696e6a.52691"]]},{"id":"1581aae3.4fadd5","type":"switchNode","name":"switch: network-model.use-ipv4","xml":"<switch test=\"`$network-model.use-ipv4`\">","comments":"","outputs":1,"x":1607.9509735107422,"y":2074.4169363975525,"z":"293895e6.5ef0e2","wires":[["d961b200.afc68"]]},{"id":"d961b200.afc68","type":"other","name":"Y","xml":"<outcome value='Y'>","comments":"","outputs":1,"x":1862.951099395752,"y":2077.8454928398132,"z":"293895e6.5ef0e2","wires":[["f24844ce.f2b368"]]},{"id":"f24844ce.f2b368","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2035.52241897583,"y":2078.27409696579,"z":"293895e6.5ef0e2","wires":[["71eecbd.b148b34"]]},{"id":"18d89bc5.ccc5bc","type":"switchNode","name":"switch: network-model.use-ipv6","xml":"<switch test=\"`$network-model.use-ipv6`\">","comments":"","outputs":1,"x":1627.9509353637695,"y":2295.4168429374695,"z":"293895e6.5ef0e2","wires":[["8e75cddf.18434"]]},{"id":"8e75cddf.18434","type":"other","name":"Y","xml":"<outcome value='Y'>","comments":"","outputs":1,"x":1882.9510612487793,"y":2298.84539937973,"z":"293895e6.5ef0e2","wires":[["587f23be.ee01f4"]]},{"id":"587f23be.ee01f4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2079.522392272949,"y":2297.2740817070007,"z":"293895e6.5ef0e2","wires":[["da0609b1.dd66e"]]},{"id":"bbedd6ee.89d8b8","type":"switchNode","name":"switch: network-model.use-ipv6","xml":"<switch test=\"`$network-model.use-ipv6`\">","comments":"","outputs":1,"x":1549.9509353637695,"y":1897.4168429374695,"z":"293895e6.5ef0e2","wires":[["3d360ef.f0501f2"]]},{"id":"3d360ef.f0501f2","type":"other","name":"Y","xml":"<outcome value='Y'>","comments":"","outputs":1,"x":1804.9510612487793,"y":1900.8453993797302,"z":"293895e6.5ef0e2","wires":[["cd4df9ff.6b5c6"]]},{"id":"cd4df9ff.6b5c6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2001.5223922729492,"y":1899.2740817070007,"z":"293895e6.5ef0e2","wires":[["34c49751.1e7d6"]]},{"id":"51656656.ba094","type":"other","name":"AIC_AIM_LANDING_NETWORK_V4","xml":"<outcome value='AIC_AIM_LANDING_NETWORK_V4'>","comments":"","outputs":1,"x":2786.8396224975586,"y":1770.9722323417664,"z":"293895e6.5ef0e2","wires":[["1f720674.eca1b2"]]},{"id":"82367816.ed7db8","type":"other","name":"AIC_ATM_UNPROTECTED_V6","xml":"<outcome value='AIC_ATM_UNPROTECTED_V6'>","comments":"","outputs":1,"x":2777.639846801758,"y":1875.972312450409,"z":"293895e6.5ef0e2","wires":[["9d1ac85b.f8dfc"]]},{"id":"16e5d844.ab3f38","type":"other","name":"AIC_ATM_PROTECTED_V6","xml":"<outcome value='AIC_ATM_PROTECTED_V6'>","comments":"","outputs":1,"x":2767.5284576416016,"y":1913.5281510353088,"z":"293895e6.5ef0e2","wires":[["9d1ac85b.f8dfc"]]},{"id":"9d1ac85b.f8dfc","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":3035.078826904297,"y":1883.1736063957214,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"a6bdf612.22b0f8","type":"other","name":"AIC_AIM_LANDING_NETWORK_V6","xml":"<outcome value='AIC_AIM_LANDING_NETWORK_V6'>","comments":"","outputs":1,"x":2792.0789489746094,"y":1948.062430858612,"z":"293895e6.5ef0e2","wires":[["9d1ac85b.f8dfc"]]},{"id":"2321c9f0.8a0d9e","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2698.083278656006,"y":1985.6404280662537,"z":"293895e6.5ef0e2","wires":[["f448e026.7558"]]},{"id":"78064e5a.452108","type":"other","name":"USA","xml":"<outcome value='USA'>\n","comments":"","outputs":1,"x":2760.823974609375,"y":1375.0516905784607,"z":"293895e6.5ef0e2","wires":[["4c37cf50.e01f5"]]},{"id":"4c37cf50.e01f5","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2921.617383956909,"y":1375.5278687477112,"z":"293895e6.5ef0e2","wires":[["8c6aee9f.d4174"]]},{"id":"8c6aee9f.d4174","type":"set","name":"set USA to US as work around","xml":"<set>\n<parameter name='aai.complex.region' value='US' />\n","comments":"","x":3134.951187133789,"y":1375.527936220169,"z":"293895e6.5ef0e2","wires":[]},{"id":"fa0d0769.128ad8","type":"other","name":"CALA","xml":"<outcome value='CALA'>\n","comments":"","outputs":1,"x":2759.839797973633,"y":1406.972312450409,"z":"293895e6.5ef0e2","wires":[["fd734913.d51d4"]]},{"id":"fd734913.d51d4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2920.633207321167,"y":1407.4484906196594,"z":"293895e6.5ef0e2","wires":[["343172b0.f8f56e"]]},{"id":"343172b0.f8f56e","type":"set","name":"set CALA to LA as work around","xml":"<set>\n<parameter name='aai.complex.region' value='LA' />\n","comments":"","x":3133.967010498047,"y":1407.4485580921173,"z":"293895e6.5ef0e2","wires":[]},{"id":"ece618e.04a51e8","type":"set","name":"set object-path","xml":"<set>\n<parameter name='network-object-path'\n value=\"`$tmp.l3-network.self-link`\"/>\n \n","comments":"","x":657.9166507720947,"y":3737.571755886078,"z":"293895e6.5ef0e2","wires":[]},{"id":"44cca957.3504a8","type":"set","name":"set networkId","xml":"<set>\n<parameter name='networkId' value='`$tmp.l3-network.network-id`' />\n","comments":"","x":659.3451709747314,"y":3691.8573746681213,"z":"293895e6.5ef0e2","wires":[]},{"id":"ddf2d1ad.9086d","type":"set","name":"set network-level-oper-status","xml":"<set>\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />\n","comments":"","x":705.6308841705322,"y":3783.2860283851624,"z":"293895e6.5ef0e2","wires":[]},{"id":"2688708b.68097","type":"set","name":"set network in service-data","xml":"<set>\n<parameter name=\"service-data.networks.network[$nidx].network-id\" value='`$tmp.l3-network.network-id`' />\n<parameter name=\"service-data.networks.network[$nidx].network-data.network-topology.\" value='$network-topology.' />\n<parameter name=\"service-data.networks.network[$nidx].network-data.network-request-input.\" value='$x.' />\n<parameter name=\"service-data.networks.network_length\" value='`$nidx_len`' />\n\n","comments":"","x":729.1667032241821,"y":3611.6787384450436,"z":"293895e6.5ef0e2","wires":[]},{"id":"22bd05cf.445f7a","type":"set","name":"copy input to service-data","xml":"<set>\n<parameter name='service-data.networks.network[$nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-request-input.' value='`$network-topology-operation-input.network-request-input.`' />\n","comments":"","x":808.0120086669922,"y":617.4404835700989,"z":"293895e6.5ef0e2","wires":[]},{"id":"b853c9fb.a4b158","type":"set","name":"set network-topology-identifier-structure in service-data","xml":"<set>\n<parameter name='network-topology.network-topology-identifier-structure.' value='`$tmp.l3-network.`' />\n<parameter name='network-topology.tenant' value='`$network-topology-operation-input.network-request-input.tenant`' />\n<parameter name='network-topology.onap-model-information.' value='`$network-topology-operation-input.network-information.onap-model-information.`' />\n<parameter name='network-topology.network-parameters.' value='`$network-topology-operation-input.network-request-input.network-parameters.`' />\n<parameter name='network-topology.aic-cloud-region' value='`$network-topology-operation-input.network-request-input.aic-cloud-region`' />","comments":"","x":833.9524354934692,"y":3475.4297680854797,"z":"293895e6.5ef0e2","wires":[]},{"id":"f387ea7a.cb332","type":"save","name":"save relationship: service-instance","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"service-instance\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"customer.global-customer-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$service-data.service-information.global-customer-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"service-subscription.service-type\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$service-data.service-information.subscription-service-type`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"service-instance.service-instance-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$service-data.service-information.service-instance-id`\" />","comments":"","outputs":1,"x":845.3147430419922,"y":3082.7002577781677,"z":"293895e6.5ef0e2","wires":[["7eb3a40a.7e9414","d1dfe3a9.bb9198"]]},{"id":"39ae8d85.6e5642","type":"save","name":"save AnAI - l3-network","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"network-name\" value=\"`$tmp.l3-network.network-name`\" />\n<parameter name=\"network-type\" value=\"`$tmp.l3-network.network-type`\" />\n<parameter name=\"network-role\" value=\"`$tmp.l3-network.network-role`\" />\n<parameter name=\"network-technology\" value=\"`$tmp.l3-network.network-technology`\" />\n<parameter name=\"is-bound-to-vpn\" value=\"`$tmp.l3-network.is-bound-to-vpn-boolean`\" />\n<parameter name=\"service-id\" value=\"`$tmp.l3-network.service-id`\" />\n<parameter name=\"tenant-id\" value=\"`$network-topology-operation-input.network-request-information.tenant`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />\n<parameter name=\"persona-model-id\" value=\"`$tmp.l3-network.persona-model-id`\" />\n<parameter name=\"persona-model-version\" value=\"`$tmp.l3-network.persona-model-version`\" />\n<parameter name=\"persona-model-customization-id\" value=\"`$tmp.l3-network.persona-model-customization-id`\" />\n<parameter name=\"physical-network-name\" value=\"`$tmp.l3-network.physical-network-name`\" />\n<parameter name=\"is-provider-network\" value=\"`$tmp.l3-network.is-provider-network-boolean`\" />\n<parameter name=\"is-shared-network\" value=\"`$tmp.l3-network.is-shared-network-boolean`\" />\n<parameter name=\"is-external-network\" value=\"`$tmp.l3-network.is-external-network-boolean`\" />\n<parameter name=\"selflink\" value=\"`$tmp.l3-network.self-link`\" />\n","comments":"","outputs":1,"x":1171.1640014648438,"y":2786.46630859375,"z":"293895e6.5ef0e2","wires":[["17d2413.1f4be3f","eb5b34d1.4537b8"]]},{"id":"79a2f133.fd6f08","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=\"`'Failed to save l3-network in AAI for network-id = ' + $tmp.l3-network.network-id`\" />\n","comments":"","x":1856.84326171875,"y":2660.759765625,"z":"293895e6.5ef0e2","wires":[]},{"id":"17d2413.1f4be3f","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1414.271484375,"y":2751.525390625,"z":"293895e6.5ef0e2","wires":[["6fed3d50.bda79c"]]},{"id":"efd11375.9b214","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnet-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"gateway-address\" value=\"`$tmp.l3-network.subnet[$sidx].gateway-address`\" />\n<parameter name=\"network-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />","comments":"","outputs":1,"x":2641.6993265151978,"y":2963.048982143402,"z":"293895e6.5ef0e2","wires":[["3828c6d6.552ef2","94c217d1.df75c8"]]},{"id":"78d9149.661776c","type":"for","name":"for 0..subnet_length","xml":"<for index='sidx' start='0' end='`$tmp.l3-network.subnet_length`' >\n","comments":"","outputs":1,"x":790.2557344436646,"y":2941.525412082672,"z":"293895e6.5ef0e2","wires":[["5be49735.084798"]]},{"id":"5be49735.084798","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1017.3984146118164,"y":2940.414363384247,"z":"293895e6.5ef0e2","wires":[["fcd830c9.2b335","aa132056.6dc0b8"]]},{"id":"3828c6d6.552ef2","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2993.254143714905,"y":2922.381850719452,"z":"293895e6.5ef0e2","wires":[["cfb1639.9c505a"]]},{"id":"74426281.f93a14","type":"save","name":"save relationship: tenant and cloud-region","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" \n\tforce=\"true\" \n\tlocal-only=\"false\">\n\t<!-- create relationship-list -->\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"tenant\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"cloud-region.cloud-owner\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.cloud-region.cloud-owner`\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$network-topology-operation-input.network-request-input.aic-cloud-region`\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"tenant.tenant-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$network-topology-operation-input.network-request-input.tenant`\" />\n\t<parameter name=\"relationship-list.relationship[1].related-to\" value=\"cloud-region\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"cloud-region.cloud-owner\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$prop.cloud-region.cloud-owner`\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[1].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n\t<parameter name=\"relationship-list.relationship[1].relationship-data[1].relationship-value\" value=\"`$network-topology-operation-input.network-request-input.aic-cloud-region`\" />\n\t\n\t","comments":"","outputs":1,"x":819.3033876419067,"y":3221.0969166755676,"z":"293895e6.5ef0e2","wires":[["a91d8420.27c3d","ff3870a3.9a1f6"]]},{"id":"a91d8420.27c3d","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1067.3033609390259,"y":3223.0968651771545,"z":"293895e6.5ef0e2","wires":[["f1d931a1.d7cc9"]]},{"id":"f1d931a1.d7cc9","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1255.6961889266968,"y":3222.732983112335,"z":"293895e6.5ef0e2","wires":[["567e8b7c.83f8bc","cd23b00b.cf80e"]]},{"id":"567e8b7c.83f8bc","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving tenant and cloud-region relationship for l3-network in AnAI where network-id = ' + $tmp.l3-network.network-id`\"/>","comments":"","x":1536.6843843460083,"y":3185.5465258061886,"z":"293895e6.5ef0e2","wires":[]},{"id":"94c217d1.df75c8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":3001.977288246155,"y":2960.0250391960144,"z":"293895e6.5ef0e2","wires":[["cfb1639.9c505a"]]},{"id":"ff3870a3.9a1f6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1075.311203956604,"y":3264.930187702179,"z":"293895e6.5ef0e2","wires":[["f1d931a1.d7cc9"]]},{"id":"7eb3a40a.7e9414","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1081.4617080688477,"y":3081.8426909446716,"z":"293895e6.5ef0e2","wires":[["84965dc9.8283b"]]},{"id":"d1dfe3a9.bb9198","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1197.1847200393677,"y":3122.1523509025574,"z":"293895e6.5ef0e2","wires":[["84965dc9.8283b"]]},{"id":"718d3d64.92a56c","type":"delete","name":"delete l3-network","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\">","comments":"","outputs":1,"x":2147.7791681289673,"y":3789.731879711151,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"c44d21c.69791e","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-network - ' + $tmp.error-message`\"/>","comments":"","x":2136.3833017349243,"y":3832.9278903007507,"z":"293895e6.5ef0e2","wires":[]},{"id":"cd23b00b.cf80e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1839.2055559158325,"y":3793.733643054962,"z":"293895e6.5ef0e2","wires":[["718d3d64.92a56c","c44d21c.69791e","8a3142fd.49439","bccef547.3b91c"]]},{"id":"d329b682.7e474","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving subnet relationship for l3-network in AnAI where network-id = ' + $tmp.l3-network.network-id`\"/>","comments":"","x":3433.127190589905,"y":2937.239272594452,"z":"293895e6.5ef0e2","wires":[]},{"id":"cfb1639.9c505a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3177.9844484329224,"y":2936.6677346229553,"z":"293895e6.5ef0e2","wires":[["d329b682.7e474","cd23b00b.cf80e"]]},{"id":"eb5b34d1.4537b8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1420.0809326171875,"y":2780.001708984375,"z":"293895e6.5ef0e2","wires":[["6fed3d50.bda79c"]]},{"id":"fcd830c9.2b335","type":"set","name":"set: tmp.subnet-id","xml":"<set>\n<parameter name=\"tmp.subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\"/>\n\t","comments":"","x":1239.1763610839844,"y":2909.239589214325,"z":"293895e6.5ef0e2","wires":[]},{"id":"aa132056.6dc0b8","type":"switchNode","name":"switch dhcp-enabled","xml":"<switch test='`$tmp.l3-network.subnet[$sidx].dhcp-enabled`'>\n","comments":"","outputs":1,"x":1246.8110847473145,"y":2945.5369839668274,"z":"293895e6.5ef0e2","wires":[["46412666.490af","71945c2.83a5c24"]]},{"id":"71945c2.83a5c24","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1482.9538803100586,"y":2875.3940329551697,"z":"293895e6.5ef0e2","wires":[["25aa1229.98f47e"]]},{"id":"46412666.490af","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1478.8110847473145,"y":2957.53710603714,"z":"293895e6.5ef0e2","wires":[["7387a680.64d7c8"]]},{"id":"603e3edd.83a648","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnet-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"gateway-address\" value=\"`$tmp.l3-network.subnet[$sidx].gateway-address`\" />\n<parameter name=\"network-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"dhcp-start\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-start`\" />\n<parameter name=\"dhcp-end\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-end`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />","comments":"","outputs":1,"x":2678.9533462524414,"y":2884.7750086784363,"z":"293895e6.5ef0e2","wires":[["94c217d1.df75c8","3828c6d6.552ef2"]]},{"id":"25aa1229.98f47e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1673.8423080444336,"y":2875.6163840293884,"z":"293895e6.5ef0e2","wires":[["e9475920.9956e8"]]},{"id":"7387a680.64d7c8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1671.6997566223145,"y":2961.7594571113586,"z":"293895e6.5ef0e2","wires":[["2086000.752238"]]},{"id":"21dcdad4.c9af16","type":"for","name":"for 0..vpn-bindings_length","xml":"<for index='vidx' start='0' end='`$vpn-bindings_length`' >\n","comments":"","outputs":1,"x":1372.9954986572266,"y":3021.0925307273865,"z":"293895e6.5ef0e2","wires":[["64ff0d18.410094"]]},{"id":"6fc56656.d3bba","type":"switchNode","name":"switch hasVpnBindings","xml":"<switch test='`$hasVpnBindings`'>\n","comments":"","outputs":1,"x":813.6626319885254,"y":3022.0559372901917,"z":"293895e6.5ef0e2","wires":[["aae2ae89.17beb8"]]},{"id":"a022b704.0f945","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1174.329360961914,"y":3023.3889174461365,"z":"293895e6.5ef0e2","wires":[["21dcdad4.c9af16"]]},{"id":"44d0134d.af865c","type":"save","name":"save relationship: vpn_bindings","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"vpn-binding\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"vpn-binding.vpn-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$vpn-bindings[$vidx].binding-uuid`\" />","comments":"","outputs":1,"x":1834.329116821289,"y":3021.0556654930115,"z":"293895e6.5ef0e2","wires":[["26719dab.73de8a","359616a1.9e9092"]]},{"id":"26719dab.73de8a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2171.0686922073364,"y":3026.5311121940613,"z":"293895e6.5ef0e2","wires":[["86119166.1b5a6"]]},{"id":"86119166.1b5a6","type":"block","name":"block","xml":"<block>","atomic":"false","outputs":1,"x":2327.9615716934204,"y":3026.1672196388245,"z":"293895e6.5ef0e2","wires":[["cd23b00b.cf80e","f91a0178.d1d88"]]},{"id":"359616a1.9e9092","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2180.099091529846,"y":3060.8095412254333,"z":"293895e6.5ef0e2","wires":[["86119166.1b5a6"]]},{"id":"64ff0d18.410094","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1590.6622467041016,"y":3023.0554213523865,"z":"293895e6.5ef0e2","wires":[["44d0134d.af865c"]]},{"id":"84965dc9.8283b","type":"block","name":"block","xml":"<block>","atomic":"false","outputs":1,"x":1273.6255340576172,"y":3081.389070034027,"z":"293895e6.5ef0e2","wires":[["cd23b00b.cf80e","aab89d3a.4c2d68"]]},{"id":"aab89d3a.4c2d68","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 network-id = ' + $tmp.l3-network.network-id`\"/>","comments":"","x":1498.6255340576172,"y":3080.0556960105896,"z":"293895e6.5ef0e2","wires":[]},{"id":"f91a0178.d1d88","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 network-id = ' + $tmp.l3-network.network-id`\"/>","comments":"","x":2555.6254663467407,"y":3025.388970851898,"z":"293895e6.5ef0e2","wires":[]},{"id":"aae2ae89.17beb8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1007.0435943603516,"y":3022.8532729148865,"z":"293895e6.5ef0e2","wires":[["a022b704.0f945"]]},{"id":"6c88ef63.8cc9","type":"switchNode","name":"switch network-technology","xml":"<switch test='`$network-model.network-technology`'>\n","comments":"","outputs":1,"x":776.376935005188,"y":3304.8531613349915,"z":"293895e6.5ef0e2","wires":[["748972ed.d13a4c"]]},{"id":"748972ed.d13a4c","type":"outcome","name":"outcome AIC_SR_IOV","xml":"<outcome value='AIC_SR_IOV'>\n","comments":"","outputs":1,"x":1079.2659120559692,"y":3306.2974972724915,"z":"293895e6.5ef0e2","wires":[["57356804.69abb"]]},{"id":"57356804.69abb","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1297.2656679153442,"y":3304.297619342804,"z":"293895e6.5ef0e2","wires":[["5b36388c.88f4b8","bf9ed5a9.b8b25"]]},{"id":"5b36388c.88f4b8","type":"save","name":"save AnAI - segmentation-assignment","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"segmentation-assignment\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND segmentation-assignment.segmentation-id = $tmp.l3-network.segmentation-id\" >\n<!-- Create segmentation-assignment object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"segmentation-id\" value=\"`$tmp.l3-network.segmentation-id`\" />\n","comments":"","outputs":1,"x":1576.3768129348755,"y":3360.631115436554,"z":"293895e6.5ef0e2","wires":[["a98c5ab8.58a478","940d5b93.11a8e8"]]},{"id":"a98c5ab8.58a478","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1845.3768129348755,"y":3337.6312375068665,"z":"293895e6.5ef0e2","wires":[["fd0ca65b.b97618"]]},{"id":"940d5b93.11a8e8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1854.0999574661255,"y":3375.274425983429,"z":"293895e6.5ef0e2","wires":[["fd0ca65b.b97618"]]},{"id":"4829eae1.9d750c","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 segmentation-assignment for l3-network in AnAI where network-id = ' + $tmp.l3-network.network-id`\"/>","comments":"","x":2416.91649723053,"y":3354.1553416252136,"z":"293895e6.5ef0e2","wires":[]},{"id":"fd0ca65b.b97618","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2161.77391910553,"y":3353.5838084220886,"z":"293895e6.5ef0e2","wires":[["4829eae1.9d750c","cd23b00b.cf80e"]]},{"id":"449b0da0.8a9ffc","type":"execute","name":"execute readProperties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties'>\n <parameter name='contextPrefix' value='prop'/>\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api.properties'/>\n","comments":"","outputs":1,"x":1551.3770570755005,"y":3254.519915431738,"z":"293895e6.5ef0e2","wires":[["25ce2041.ac8048","d0a813d7.fa3ff"]]},{"id":"25ce2041.ac8048","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1752.3769273757935,"y":3225.5199093818665,"z":"293895e6.5ef0e2","wires":[["1ae3834b.4454e5"]]},{"id":"d0a813d7.fa3ff","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1746.3769273757935,"y":3261.5199093818665,"z":"293895e6.5ef0e2","wires":[["2ca720cb.3108a8"]]},{"id":"e9c5ff44.a1485","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 reading default segmentation-assignment for l3-network in AnAI where network-id = ' + $tmp.l3-network.network-id`\"/>","comments":"","x":2286.0435724258423,"y":3247.1863474845886,"z":"293895e6.5ef0e2","wires":[]},{"id":"2ca720cb.3108a8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2054.9009866714478,"y":3262.6150584220886,"z":"293895e6.5ef0e2","wires":[["e9c5ff44.a1485","cd23b00b.cf80e"]]},{"id":"e34c5712.24c058","type":"set","name":"set: tmp.l3-network.segmentation-id","xml":"<set>\n\t<parameter name=\"tmp.l3-network.segmentation-id\" value=\"`$prop.default.segmentation-assignment`\"/>","comments":"","x":2318.0435724258423,"y":3215.1863474845886,"z":"293895e6.5ef0e2","wires":[]},{"id":"1ae3834b.4454e5","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2060.9009866714478,"y":3226.6150584220886,"z":"293895e6.5ef0e2","wires":[["e34c5712.24c058"]]},{"id":"bf9ed5a9.b8b25","type":"set","name":"set: segmentionat-d=1","xml":"<set>\n\t<parameter name=\"tmp.l3-network.segmentation-id\" value=\"1\"/>","comments":"","x":1531.3611116409302,"y":3327.7104182243347,"z":"293895e6.5ef0e2","wires":[]},{"id":"7fa6dac9.08cd2c","type":"comment","name":"future if need from property","info":"","comments":"","x":1549.9327211380005,"y":3219.853167384863,"z":"293895e6.5ef0e2","wires":[]},{"id":"e9475920.9956e8","type":"switchNode","name":"switch gateway-address","xml":"<switch test='`$tmp.l3-network.subnet[$sidx].gateway-address`'>\n","comments":"","outputs":1,"x":1893.8055953979492,"y":2875.9485545158386,"z":"293895e6.5ef0e2","wires":[["d00c210f.09e218","73807347.1a078c"]]},{"id":"d00c210f.09e218","type":"outcome","name":"outcome NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2220.2341089248657,"y":2848.3294129371643,"z":"293895e6.5ef0e2","wires":[["cc593137.6c9098"]]},{"id":"73807347.1a078c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2195.9483766555786,"y":2884.0438027381897,"z":"293895e6.5ef0e2","wires":[["293cfd18.c5497a"]]},{"id":"293cfd18.c5497a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2432.376754760742,"y":2884.472623348236,"z":"293895e6.5ef0e2","wires":[["603e3edd.83a648"]]},{"id":"6aed81c2.0cf788","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnet-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"network-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"dhcp-start\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-start`\" />\n<parameter name=\"dhcp-end\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-end`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />","comments":"","outputs":1,"x":2676.662612915039,"y":2849.329619884491,"z":"293895e6.5ef0e2","wires":[["3828c6d6.552ef2","94c217d1.df75c8"]]},{"id":"cc593137.6c9098","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2445.8001747131348,"y":2850.5987181663513,"z":"293895e6.5ef0e2","wires":[["6aed81c2.0cf788"]]},{"id":"2086000.752238","type":"switchNode","name":"switch gateway-address","xml":"<switch test='`$tmp.l3-network.subnet[$sidx].gateway-address`'>\n","comments":"","outputs":1,"x":1903.091323852539,"y":2960.663068294525,"z":"293895e6.5ef0e2","wires":[["9af99333.562788","9a5f4664.851838"]]},{"id":"9af99333.562788","type":"outcome","name":"outcome NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2229.519814491272,"y":2927.329685688019,"z":"293895e6.5ef0e2","wires":[["2d9e9ce0.f017a4"]]},{"id":"9a5f4664.851838","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2205.234082221985,"y":2963.044075489044,"z":"293895e6.5ef0e2","wires":[["98a4ceda.f14d78"]]},{"id":"98a4ceda.f14d78","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2406.6626710891724,"y":2964.4727396965027,"z":"293895e6.5ef0e2","wires":[["efd11375.9b214"]]},{"id":"2d9e9ce0.f017a4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2414.3718156814575,"y":2927.7416338920593,"z":"293895e6.5ef0e2","wires":[["acec681.34a3c18"]]},{"id":"acec681.34a3c18","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnet-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"network-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />","comments":"","outputs":1,"x":2639.5196352005005,"y":2924.472321987152,"z":"293895e6.5ef0e2","wires":[["3828c6d6.552ef2","94c217d1.df75c8"]]},{"id":"4acd25ef.ab1094","type":"switchNode","name":"switch service-id","xml":"<switch test='`$tmp.l3-network.service-id`'>\n","comments":"","outputs":1,"x":781.0436401367188,"y":2772.853515625,"z":"293895e6.5ef0e2","wires":[["7f021e9b.a5c1c8","3b389f88.ce9ab8"]]},{"id":"7f021e9b.a5c1c8","type":"outcome","name":"outcome NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":970.0436401367188,"y":2751.853515625,"z":"293895e6.5ef0e2","wires":[["eb4c65af.abd668"]]},{"id":"3b389f88.ce9ab8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":945.0436401367188,"y":2786.853515625,"z":"293895e6.5ef0e2","wires":[["39ae8d85.6e5642"]]},{"id":"eb4c65af.abd668","type":"save","name":"save AnAI - l3-network","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"network-name\" value=\"`$tmp.l3-network.network-name`\" />\n<parameter name=\"network-type\" value=\"`$tmp.l3-network.network-type`\" />\n<parameter name=\"network-role\" value=\"`$tmp.l3-network.network-role`\" />\n<parameter name=\"network-technology\" value=\"`$tmp.l3-network.network-technology`\" />\n<parameter name=\"is-bound-to-vpn\" value=\"`$tmp.l3-network.is-bound-to-vpn-boolean`\" />\n<parameter name=\"tenant-id\" value=\"`$network-topology-operation-input.network-request-information.tenant`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />\n<parameter name=\"persona-model-id\" value=\"`$tmp.l3-network.persona-model-id`\" />\n<parameter name=\"persona-model-version\" value=\"`$tmp.l3-network.persona-model-version`\" />\n<parameter name=\"persona-model-customization-id\" value=\"`$tmp.l3-network.persona-model-customization-id`\" />\n<parameter name=\"physical-network-name\" value=\"`$tmp.l3-network.physical-network-name`\" />\n<parameter name=\"is-provider-network\" value=\"`$tmp.l3-network.is-provider-network-boolean`\" />\n<parameter name=\"is-shared-network\" value=\"`$tmp.l3-network.is-shared-network-boolean`\" />\n<parameter name=\"is-external-network\" value=\"`$tmp.l3-network.is-external-network-boolean`\" />\n<parameter name=\"selflink\" value=\"`$tmp.l3-network.self-link`\" />\n","comments":"","outputs":1,"x":1177.0436401367188,"y":2751.853515625,"z":"293895e6.5ef0e2","wires":[["17d2413.1f4be3f","eb5b34d1.4537b8"]]},{"id":"7852b58.654cd4c","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name='' value='' />\n","comments":"","x":658.7499485015869,"y":3850.904838413,"z":"293895e6.5ef0e2","wires":[]},{"id":"31213429.ff2f4c","type":"switchNode","name":"switch network-model.is-bound-to-vpn","xml":"<switch test='`$network-model.is-bound-to-vpn`'>\n","comments":"","outputs":1,"x":842.7500457763672,"y":756.000009059906,"z":"293895e6.5ef0e2","wires":[["61668342.b78f24"]]},{"id":"61668342.b78f24","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1107.7500495910645,"y":756.0000100135803,"z":"293895e6.5ef0e2","wires":[["6143b1fe.e94e"]]},{"id":"6143b1fe.e94e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"true","comments":"","outputs":1,"x":1270.5000915527344,"y":756.4999985694885,"z":"293895e6.5ef0e2","wires":[["4068bc26.c234d4"]]},{"id":"a2810608.412cb","type":"get-resource","name":"get-resource vpn-binding","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"vpn-binding\" \n\t\tkey=\"vpn-binding.vpn-id = $vpn-bindings[$vidx].binding-uuid\"\n pfx='aai.vpnBinding' local-only='false' >\n\n","comments":"","outputs":1,"x":2552.0715866088867,"y":804.2738480567932,"z":"293895e6.5ef0e2","wires":[["3ec769c5.3b69b6","95bdee60.3a7e48","43fc7f1b.eab248"]]},{"id":"3ec769c5.3b69b6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2788.027919769287,"y":776.0278038978577,"z":"293895e6.5ef0e2","wires":[["c81ef1d0.c56528"]]},{"id":"95bdee60.3a7e48","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2779.7779846191406,"y":810.6111693382263,"z":"293895e6.5ef0e2","wires":[["c81ef1d0.c56528"]]},{"id":"43fc7f1b.eab248","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2784.1388664245605,"y":740.3889183998108,"z":"293895e6.5ef0e2","wires":[["fcfdef84.8935f"]]},{"id":"fcfdef84.8935f","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2949.1388664245605,"y":740.3889183998108,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"426bb16f.c9bb2","type":"comment","name":"pull vpn binding from db table vs field","info":"","comments":"","x":2150.212989807129,"y":733.9232773780823,"z":"293895e6.5ef0e2","wires":[]},{"id":"613afd9.7dfc984","type":"for","name":"for 0..vpn-bindings_length","xml":"<for index='vidx' start='0' end='`$vpn-bindings_length`' >\n","comments":"","outputs":1,"x":2124.578311920166,"y":802.7328181266785,"z":"293895e6.5ef0e2","wires":[["7f145964.210d18"]]},{"id":"7f145964.210d18","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2333.053966522217,"y":804.812225818634,"z":"293895e6.5ef0e2","wires":[["a2810608.412cb"]]},{"id":"8c080bcb.479bc","type":"set","name":"set hasVpnBindings=true","xml":"<set>\n<parameter name='hasVpnBindings' value='true' />\n","comments":"","x":2122.752670288086,"y":771.3042178153992,"z":"293895e6.5ef0e2","wires":[]},{"id":"4068bc26.c234d4","type":"get-resource","name":"get-resource VPN_BINDINGS","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VPN_BINDINGS WHERE network_customization_uuid = $network-topology-operation-input.network-information.onap-model-information.model-customization-uuid'\n pfx='vpn-bindings[]'>\n\n","comments":"","outputs":1,"x":1511.2817916870117,"y":756.6746144294739,"z":"293895e6.5ef0e2","wires":[["c7f6e79c.4ad44","cebe8d92.34fa78","60da40f1.463e18"]]},{"id":"cebe8d92.34fa78","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1733.710334777832,"y":849.3888840675354,"z":"293895e6.5ef0e2","wires":[["a3070615.94f568"]]},{"id":"60da40f1.463e18","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1729.0433616638184,"y":888.722198009491,"z":"293895e6.5ef0e2","wires":[["afdf36e1.3edc88"]]},{"id":"c7f6e79c.4ad44","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1729.219367980957,"y":810.8148484230042,"z":"293895e6.5ef0e2","wires":[["ded06bb2.f6b7e8"]]},{"id":"ded06bb2.f6b7e8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1899.424690246582,"y":810.3888840675354,"z":"293895e6.5ef0e2","wires":[["8c080bcb.479bc","613afd9.7dfc984"]]},{"id":"4c3863ea.780a64","type":"set","name":"set onap-model-info","xml":"<set>\n<parameter name='tmp.l3-network.model-invariant-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\" />\n<parameter name='tmp.l3-network.model-version-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-version`\" />\n<parameter name='tmp.l3-network.model-customization-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\" />\n<parameter name='s-onap-model-information.model-invariant-uuid' value='`$service-model.invariant-uuid`' />\n<parameter name='s-onap-model-information.model-version' value='`$service-model.version`' />\n<parameter name='s-onap-model-information.model-uuid' value='`$service-model.service-uuid`' />\n<parameter name='s-onap-model-information.model-name' value='`$service-model.name`' />\n<parameter name='n-onap-model-information.model-invariant-uuid' value='`$network-model.invariant-uuid`' />\n<parameter name='n-onap-model-information.model-version' value='`$network-model.version`' />\n<parameter name='n-onap-model-information.model-uuid' value='`$network-model.uuid`' />\n<parameter name='n-onap-model-information.model-name' value='`$network-model.name`' />","comments":"","x":790.75390625,"y":680.00390625,"z":"293895e6.5ef0e2","wires":[]},{"id":"f43b1f67.085098","type":"set","name":"set onap-model-info with mysql data","xml":"<set>\n<parameter name='network-data.service-information.ecomp-model-information.' value=\"`$s-onap-model-information.`\" />\n<parameter name='network-data.network-information.ecomp-model-information.' value=\"`$n-onap-model-information.`\" />\n","comments":"","x":840.0039215087891,"y":713.0039143562317,"z":"293895e6.5ef0e2","wires":[]},{"id":"bccef547.3b91c","type":"call","name":"call naming-policy-generate-name to rollback name","xml":"<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-name' mode='sync' >\n","comments":"","outputs":1,"x":2259.3800477981567,"y":3746.5046286582947,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"8a3142fd.49439","type":"set","name":"set parameters for generate-unique-name","xml":"<set>\n<parameter name='naming-policy-generate-name-input.context-id' value='`$tmp.l3-network.network-id`' />\n<parameter name='naming-policy-generate-name-input.naming-type' value='NETWORK' />\n<parameter name='naming-policy-generate-name-input.action' value='DELETE' />\n\n\n","comments":"","x":2219.630108833313,"y":3702.5046887397766,"z":"293895e6.5ef0e2","wires":[]},{"id":"23833e07.99958a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2802.681553840637,"y":3751.7563996315002,"z":"293895e6.5ef0e2","wires":[["ef665ef5.eb2a98","1521636d.390f25","f96be9ed.5e0508"]]},{"id":"1521636d.390f25","type":"call","name":"call naming-policy-generate-name to rollback name","xml":"<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-name' mode='sync' >\n","comments":"","outputs":1,"x":3109.1060609817505,"y":3754.5275464057922,"z":"293895e6.5ef0e2","wires":[[]]},{"id":"ef665ef5.eb2a98","type":"set","name":"set parameters for generate-unique-name","xml":"<set>\n<parameter name='naming-policy-generate-name-input.context-id' value='`$tmp.l3-network.network-id`' />\n<parameter name='naming-policy-generate-name-input.naming-type' value='NETWORK' />\n<parameter name='naming-policy-generate-name-input.action' value='DELETE' />\n\n\n","comments":"","x":3081.8562364578247,"y":3716.777464389801,"z":"293895e6.5ef0e2","wires":[]},{"id":"48995ae5.67c19c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1261.505012512207,"y":1320.5048537254333,"z":"293895e6.5ef0e2","wires":[["f8c096c7.aac118","23833e07.99958a"]]},{"id":"cdcb6a66.a11cf","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1257.755012512207,"y":1360.5048537254333,"z":"293895e6.5ef0e2","wires":[["9eef74f0.a1e1b","23833e07.99958a"]]},{"id":"f8c096c7.aac118","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=\"Cloud region not found in AAI\"/>","comments":"","x":1495.2551574707031,"y":1319.2548823356628,"z":"293895e6.5ef0e2","wires":[]},{"id":"f96be9ed.5e0508","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-network - ' + $tmp.error-message`\"/>","comments":"","x":2988.75519657135,"y":3790.2547554969788,"z":"293895e6.5ef0e2","wires":[]},{"id":"9eef74f0.a1e1b","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=\"Error retrieving cloud region from AAI\"/>","comments":"","x":1495.2551651000977,"y":1360.5047507286072,"z":"293895e6.5ef0e2","wires":[]},{"id":"6c249175.f5d028","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1212.754867553711,"y":1439.2548804283142,"z":"293895e6.5ef0e2","wires":[["7597524b.c05c54","23833e07.99958a"]]},{"id":"7597524b.c05c54","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=\"Cloud region missing relationships in AAI\"/>","comments":"","x":1445.2550048828125,"y":1438.004909992218,"z":"293895e6.5ef0e2","wires":[]},{"id":"62b19f9d.67a67","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1227.754867553711,"y":1581.7548804283142,"z":"293895e6.5ef0e2","wires":[["16974f9.b28683","23833e07.99958a"]]},{"id":"16974f9.b28683","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=\"Complex not found in AAI\"/>","comments":"","x":1460.255012512207,"y":1581.7549214363098,"z":"293895e6.5ef0e2","wires":[]},{"id":"cffd5f4a.151d08","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2320.254867553711,"y":1562.7548804283142,"z":"293895e6.5ef0e2","wires":[["debc7aba.29c54","23833e07.99958a"]]},{"id":"54196261.94e404","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2316.504867553711,"y":1603.7548804283142,"z":"293895e6.5ef0e2","wires":[["5cd4560a.256b98","23833e07.99958a"]]},{"id":"debc7aba.29c54","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=\"Complex not found in AAI\"/>","comments":"","x":2550.505195617676,"y":1565.5049233436584,"z":"293895e6.5ef0e2","wires":[]},{"id":"5cd4560a.256b98","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=\"Error retrieving complex from AA\"/>","comments":"","x":2550.0050201416016,"y":1606.754777431488,"z":"293895e6.5ef0e2","wires":[]},{"id":"de868ff7.e2f398","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2934.9424209594727,"y":1621.5049204826355,"z":"293895e6.5ef0e2","wires":[["7e5580d1.9fcf78","23833e07.99958a"]]},{"id":"7e5580d1.9fcf78","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=\"Complex.region unknown\"/>","comments":"","x":3155.4425735473633,"y":1621.5048174858093,"z":"293895e6.5ef0e2","wires":[]},{"id":"a31343ec.e76f08","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2871.192367553711,"y":1813.0048804283142,"z":"293895e6.5ef0e2","wires":[["7107b96e.fe9278","23833e07.99958a"]]},{"id":"7107b96e.fe9278","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=\"Invalid address plan for VIPR\"/>","comments":"","x":3091.6925201416016,"y":1813.004777431488,"z":"293895e6.5ef0e2","wires":[]},{"id":"f448e026.7558","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2893.692367553711,"y":1985.5048804283142,"z":"293895e6.5ef0e2","wires":[["dbb7226b.0953e","23833e07.99958a"]]},{"id":"dbb7226b.0953e","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=\"EIPAM V6 Address plan should be null\"/>","comments":"","x":3114.1925201416016,"y":1985.504777431488,"z":"293895e6.5ef0e2","wires":[]},{"id":"cc9dd635.98df68","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2881.192367553711,"y":2189.254880428314,"z":"293895e6.5ef0e2","wires":[["13bc9b22.80b915","23833e07.99958a"]]},{"id":"13bc9b22.80b915","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=\"Invalid address plan for SRIOV\"/>","comments":"","x":3101.6925201416016,"y":2189.254777431488,"z":"293895e6.5ef0e2","wires":[]},{"id":"418a0270.b2cdfc","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2882.7283096313477,"y":2487.5765719413757,"z":"293895e6.5ef0e2","wires":[["9e54712b.194c98","23833e07.99958a"]]},{"id":"9e54712b.194c98","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=\"Invalid ipv6 address plan for SRIOV\"/>","comments":"","x":3103.2284622192383,"y":2487.5764689445496,"z":"293895e6.5ef0e2","wires":[]},{"id":"964d0759.ba21c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1256.5049285888672,"y":2361.7546763420105,"z":"293895e6.5ef0e2","wires":[["8d799b4e.f02948","23833e07.99958a"]]},{"id":"8d799b4e.f02948","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=\"Invalid network-technology. Only AIC_SR_IOV and Contrail are supported for network automated flow\"/>","comments":"","x":1489.0050735473633,"y":2361.754717350006,"z":"293895e6.5ef0e2","wires":[]},{"id":"a3070615.94f568","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1907.4422454833984,"y":849.2548804283142,"z":"293895e6.5ef0e2","wires":[["21bdae32.51c022","23833e07.99958a"]]},{"id":"afdf36e1.3edc88","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1903.6922454833984,"y":889.2548804283142,"z":"293895e6.5ef0e2","wires":[["743cb5.96e0034c","23833e07.99958a"]]},{"id":"21bdae32.51c022","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=\"Network model is_bound_to_vpn=true but no vpn_binding is present\"/>","comments":"","x":2141.1923904418945,"y":848.0049090385437,"z":"293895e6.5ef0e2","wires":[]},{"id":"743cb5.96e0034c","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=\"Unexpected error retrieving vpn binding\"/>","comments":"","x":2141.192398071289,"y":889.254777431488,"z":"293895e6.5ef0e2","wires":[]},{"id":"c81ef1d0.c56528","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2971.1924209594727,"y":795.504891872406,"z":"293895e6.5ef0e2","wires":[["ea8a27d2.4dd83","23833e07.99958a"]]},{"id":"ea8a27d2.4dd83","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=\"`'No vpn binding found for network-model.vpn-binding=' \n + $vpn-bindings[$vidx].binding-uuid`\"/>","comments":"","x":3208.6925735473633,"y":795.5047888755798,"z":"293895e6.5ef0e2","wires":[]},{"id":"88aa0e0f.278a3","type":"set","name":"set: tmp.error-message to \"\"","xml":"<set>\n\t<parameter name=\"tmp.error-message\" value=\"\"/>","comments":"","x":812.2191925048828,"y":561.9334692955017,"z":"293895e6.5ef0e2","wires":[]},{"id":"c6bc7f3a.1e281","type":"switchNode","name":"switch tmp.nidx ","xml":"<switch test=\"`$tmp.nidx`\">\n\n","comments":"","outputs":1,"x":772.0412635803223,"y":444.2912917137146,"z":"293895e6.5ef0e2","wires":[["4352bf81.36bca8","2ea25c4b.e9b804"]]},{"id":"4352bf81.36bca8","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":960.6126480102539,"y":442.8626751899719,"z":"293895e6.5ef0e2","wires":[["56d49ab9.18493c"]]},{"id":"56d49ab9.18493c","type":"switchNode","name":"switch service-data.networks_length","xml":"<switch test='`$service-data.networks.network_length`'>\n","comments":"","outputs":1,"x":1209.8387413024902,"y":444.0535922050476,"z":"293895e6.5ef0e2","wires":[["d27193d0.539848","ee3cafd7.3c4058"]]},{"id":"d27193d0.539848","type":"other","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1502.934063911438,"y":442.86290073394775,"z":"293895e6.5ef0e2","wires":[["d8ac678b.d3417"]]},{"id":"d8ac678b.d3417","type":"set","name":"set nidx","xml":"<set>\n<parameter name='nidx' value='0' />\n<parameter name='nidx_len' value='1'/>\n","comments":"","x":1682.934105873108,"y":440.43431663513184,"z":"293895e6.5ef0e2","wires":[]},{"id":"ee3cafd7.3c4058","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1505.791226387024,"y":468.5771732330322,"z":"293895e6.5ef0e2","wires":[["2d29b63f.71cd2a"]]},{"id":"2d29b63f.71cd2a","type":"set","name":"set nidx","xml":"<set>\n<parameter name='nidx' value='`$service-data.networks.network_length`' />\n<parameter name='nidx_len' value='`$service-data.networks.network_length + 1`' />\n","comments":"","x":1684.3626565933228,"y":477.4343738555908,"z":"293895e6.5ef0e2","wires":[]},{"id":"2ea25c4b.e9b804","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":962.0412826538086,"y":481.4341473579407,"z":"293895e6.5ef0e2","wires":[["e1048edf.258b38"]]},{"id":"e1048edf.258b38","type":"set","name":"set nidx","xml":"<set>\n<parameter name='nidx' value='`$tmp.nidx`' />\n<parameter name='nidx_len' value='`$service-data.networks.network_length`' />\n","comments":"","x":1124.8984069824219,"y":481.4341731071472,"z":"293895e6.5ef0e2","wires":[]},{"id":"cb4086d2.f6774","type":"set","name":"set rename for call to create-l3-subnet","xml":"<set>\n<parameter name='v4.entity-id' value='`$tmp.l3-network.level2.v4.entity-id`' />\n<parameter name='v4.ip-prefix' value='`$tmp.l3-network.level2.v4.ip-prefix`' />\n<parameter name='v4.mask' value='`$tmp.l3-network.level2.v4.mask`' />\n<parameter name='v6.entity-id' value='`$tmp.l3-network.level2.v6.entity-id`' />\n<parameter name='v6.ip-prefix' value='`$tmp.l3-network.level2.v6.ip-prefix`' />\n<parameter name='v6.mask' value='`$tmp.l3-network.level2.v6.mask`' />\n\n","comments":"","x":868.7499980926514,"y":2563.5000014305115,"z":"293895e6.5ef0e2","wires":[]},{"id":"6fed3d50.bda79c","type":"block","name":"block","xml":"<block>","atomic":"false","outputs":1,"x":1595.5,"y":2752.25,"z":"293895e6.5ef0e2","wires":[["de7043fa.21dad","cd23b00b.cf80e"]]},{"id":"de7043fa.21dad","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 save l3-network in AAI for network-id = ' + $tmp.l3-network.network-id`\"/>","comments":"","x":1823.1638946533203,"y":2751.4717512130737,"z":"293895e6.5ef0e2","wires":[]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.json index 970dabc2..94f31af3 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.json @@ -1144,7 +1144,7 @@ "id": "d3dacaf2.3cffd8",
"type": "set",
"name": "set l3-network",
- "xml": "<set>\n<parameter name='tmp.l3-network.network-name' value=\"`$tmp.network-instance-name`\" />\n<parameter name='tmp.l3-network.network-type' value=\"`$preload-data.preload-network-topology-information.network-topology-identifier-structure.network-type`\" />\n<parameter name=\"tmp.l3-network.physical-network-name\" value=\"`$preload-data.preload-network-topology-information.physical-network-name`\" />\n<parameter name=\"tmp.l3-network.is-provider-network\" value=\"`$preload-data.preload-network-topology-information.is-provider-network`\" />\n<parameter name=\"tmp.l3-network.is-shared-network\" value=\"`$preload-data.preload-network-topology-information.is-shared-network`\" />\n<parameter name=\"tmp.l3-network.is-external-network\" value=\"`$preload-data.preload-network-topology-information.network-topology-identifier-structure.network-type`\" />\n<parameter name='tmp.l3-network.network-role' value=\"`$preload-data.preload-network-topology-information.network-topology-identifier-structure.network-role`\" />\n<parameter name='tmp.l3-network.network-technology' value=\"`$preload-data.preload-network-topology-information.network-topology-identifier-structure.network-technology`\" />\n<parameter name='tmp.l3-network.is-bound-to-vpn' value=\"`$network-model.is-bound-to-vpn`\" />\n<parameter name=\"tmp.l3-network.tenant-id\" value=\"`$network-topology-operation-input.network-request-input.tenant`\" />\n<parameter name=\"tmp.l3-network.network-role-instance\" value=\"0\" />\n<parameter name='tmp.l3-network.orchestration-status' value=\"PendingCreate\" />\n<parameter name='tmp.l3-network.model-invariant-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\" />\n<parameter name='tmp.l3-network.model-version-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-version`\" />\n<parameter name='tmp.l3-network.model-customization-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\" />\n<parameter name='tmp.l3-network.eipam-v6-address-plan' value=\"`$network-model.eipam-v6-address-plan`\" />\n<parameter name='tmp.l3-network.eipam-v4-address-plan' value=\"`$network-model.eipam-v4-address-plan`\" />\n<parameter name='tmp.l3-network.service-id' value=\"`$service-data.service-information.service-id`\" />\n<parameter name='tmp.l3-network.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $service-data.service-information.service-instance-id\n + '/service-data/networks/network/'\n + $tmp.l3-network.network-id\n + '/network-data/network-topology/'` \" />\n",
+ "xml": "<set>\n<parameter name='tmp.l3-network.network-name' value=\"`$tmp.network-instance-name`\" />\n<parameter name='tmp.l3-network.network-type' value=\"`$preload-data.preload-network-topology-information.network-topology-identifier-structure.network-type`\" />\n<parameter name=\"tmp.l3-network.physical-network-name\" value=\"`$preload-data.preload-network-topology-information.physical-network-name`\" />\n<parameter name=\"tmp.l3-network.is-provider-network\" value=\"`$preload-data.preload-network-topology-information.is-provider-network`\" />\n<parameter name=\"tmp.l3-network.is-shared-network\" value=\"`$preload-data.preload-network-topology-information.is-shared-network`\" />\n<parameter name=\"tmp.l3-network.is-external-network\" value=\"`$preload-data.preload-network-topology-information.network-topology-identifier-structure.network-type`\" />\n<parameter name='tmp.l3-network.network-role' value=\"`$preload-data.preload-network-topology-information.network-topology-identifier-structure.network-role`\" />\n<parameter name='tmp.l3-network.network-technology' value=\"`$preload-data.preload-network-topology-information.network-topology-identifier-structure.network-technology`\" />\n<parameter name='tmp.l3-network.is-bound-to-vpn' value=\"`$network-model.is-bound-to-vpn`\" />\n<parameter name=\"tmp.l3-network.tenant-id\" value=\"`$network-topology-operation-input.network-request-input.tenant`\" />\n<parameter name=\"tmp.l3-network.network-role-instance\" value=\"0\" />\n<parameter name='tmp.l3-network.orchestration-status' value=\"PendingCreate\" />\n<parameter name='tmp.l3-network.model-invariant-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\" />\n<parameter name='tmp.l3-network.model-version-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-version`\" />\n<parameter name='tmp.l3-network.model-customization-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\" />\n<parameter name='tmp.l3-network.eipam-v6-address-plan' value=\"`$network-model.eipam-v6-address-plan`\" />\n<parameter name='tmp.l3-network.eipam-v4-address-plan' value=\"`$network-model.eipam-v4-address-plan`\" />\n<parameter name='tmp.l3-network.service-id' value=\"`$service-data.service-information.service-id`\" />\n<parameter name='tmp.l3-network.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $service-data.service-information.service-instance-id\n + '/service-data/networks/network='\n + $tmp.l3-network.network-id\n + '/network-data/network-topology?content=config'` \" />\n",
"comments": "",
"x": 534.2620544433594,
"y": 687.2145385742188,
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-assign-vlantagging-instancegroup.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-assign-vlantagging-instancegroup.json index 22d17e64..4169c1a2 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-assign-vlantagging-instancegroup.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-assign-vlantagging-instancegroup.json @@ -1 +1 @@ -[{"id":"67a53f15.ab9b6","type":"dgstart","name":"DGSTART","outputs":1,"x":133.57701110839844,"y":62.1484432220459,"z":"d5178f42.44976","wires":[["b0d5fc31.8c038"]]},{"id":"b0d5fc31.8c038","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":290.4341335296631,"y":175.6246566772461,"z":"d5178f42.44976","wires":[["366ff52e.33c5ca"]]},{"id":"366ff52e.33c5ca","type":"method","name":"network-topology-operation-assign-vlantagging-instancegroup","xml":"<method rpc='network-topology-operation-assign-vlantagging-instancegroup' mode='sync'>\n","comments":"","outputs":1,"x":336.2080764770508,"y":279.27935695648193,"z":"d5178f42.44976","wires":[["830a3a63.0a3188"]]},{"id":"23048cc0.43a9d4","type":"comment","name":"Called from assign when network instance group passed in from mso","info":"","comments":"","x":368.71986389160156,"y":139.95797157287598,"z":"d5178f42.44976","wires":[]},{"id":"830a3a63.0a3188","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":235.86273193359375,"y":576.67236328125,"z":"d5178f42.44976","wires":[["a3dcfb29.be3be8","44bed9f5.f8a198","6b6b467e.e2b328","6e7beecb.c5df7","a8edbe94.39dac","d4e2ddfb.452e","352b0634.a770ea","c0d1166f.f33bd","3e6da276.1b9876","39ea7531.083dba","985b6687.301738","b1ce3134.3e591","e090256e.e635b8","22e7595d.96a916","93ad9038.590b3","b93d2eef.37f8c","58f3035b.c67d9c","c8f94428.c0f5e8","85da8119.1634e","f05d6459.4c0c08","1eee48d9.dde947","47106adb.c7b994","f241bc6f.abe91","fe4bedce.dccf4","36134ff2.81826","ad080ed7.e2805","83f50832.31bf28","92dee517.041028","ce90a809.365528","4d821497.3ac9ac","bb175352.d3a6d","1868f533.5d5d1b","c535d1b3.3325f","43ee4152.fab5d","1618d258.7486ae","c252ed05.9b99f","307054cf.25730c","8576e473.d1f3e8","9695c264.9ae04","94083d5a.ebf56","48826944.8a8cc8"]]},{"id":"bb175352.d3a6d","type":"set","name":"set nig.vpn-bindings","xml":"<set>\n<parameter name='nig.vpn-bindings.id' value=\"`$vpn-binding.vpn-binding-id`\" />\n<parameter name='nig.vpn-bindings.global-route-target' value=\"`$vpn-binding.global-route-target`\" />\n<parameter name='nig.vpn-bindings.aic-zone' value=\"`$aaiapi.output.cloud-zone`\" />\n<parameter name='nig.vpn-bindings.route-target-role' value=\"`$vpn-binding.route-target-role`\" />\n\n","comments":"","x":755.2925186157227,"y":1952.6742695571156,"z":"d5178f42.44976","wires":[]},{"id":"6e7beecb.c5df7","type":"set","name":"copy input to service-data","xml":"<set>\n<parameter name='service-data.networks.network[$nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-request-input.' value='`$network-topology-operation-input.network-request-input.`' />\n<parameter name='service-data.networks.network[$nidx].network-id' value='`$tmp.l3-network.network-id`' />","comments":"","x":906.2679061889648,"y":338.28430461883545,"z":"d5178f42.44976","wires":[]},{"id":"a8edbe94.39dac","type":"set","name":"set onap-model-info","xml":"<set>\n<parameter name='tmp.l3-network.model-invariant-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\" />\n<parameter name='tmp.l3-network.model-version-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-version`\" />\n<parameter name='tmp.l3-network.model-customization-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\" />\n<parameter name='s-onap-model-information.model-invariant-uuid' value='`$service-model.invariant-uuid`' />\n<parameter name='s-onap-model-information.model-version' value='`$service-model.version`' />\n<parameter name='s-onap-model-information.model-uuid' value='`$service-model.service-uuid`' />\n<parameter name='s-onap-model-information.model-name' value='`$service-model.name`' />\n<parameter name='n-onap-model-information.model-invariant-uuid' value='`$network-model.invariant-uuid`' />\n<parameter name='n-onap-model-information.model-version' value='`$network-model.version`' />\n<parameter name='n-onap-model-information.model-uuid' value='`$network-model.uuid`' />\n<parameter name='n-onap-model-information.model-name' value='`$network-model.name`' />","comments":"","x":892.8668212890625,"y":372.7048645019531,"z":"d5178f42.44976","wires":[]},{"id":"d4e2ddfb.452e","type":"set","name":"set onap-model-info with mysql data","xml":"<set>\n<parameter name='service-data.networks.network[$nidx]..network-data.service-information.onap-model-information.' value=\"`$s-onap-model-information.`\" />\n<parameter name='service-data.networks.network[$nidx]..network-data.network-information.onap-model-information.' value=\"`$n-onap-model-information.`\" />\n","comments":"","x":946.2596778869629,"y":409.13341426849365,"z":"d5178f42.44976","wires":[]},{"id":"6b6b467e.e2b328","type":"set","name":"set: tmp.error-message to \"\", set tmp.l3-network","xml":"<set>\n\t<parameter name=\"tmp.error-message\" value=\"\"/>\n\t<parameter name=\"tmp.l3-network.network-instance-group-id\" value=\"`$network-topology-operation-input.network-request-input.network-instance-group-id`\" />\n\t<parameter name='tmp.l3-network.network-type' value=\"`$network-model.network-type`\" />\n\t<parameter name='tmp.l3-network.network-role' value=\"`$network-model.network-role`\" />\n\t<parameter name='tmp.l3-network.network-technology' value=\"`$network-model.network-technology`\" />","comments":"","x":981.4751014709473,"y":298.4915442466736,"z":"d5178f42.44976","wires":[]},{"id":"93ad9038.590b3","type":"set","name":"set: get-complex-resource-service-model-input.customization-uuid","xml":"<set>\n\t<parameter name=\"get-complex-resource-service-model-input.customization-uuid\" value=\"`$aaiapi.output.collection-customization-uuid`\"/>","comments":"","x":908.3611755371094,"y":1220.3469247817993,"z":"d5178f42.44976","wires":[]},{"id":"22e7595d.96a916","type":"call","name":"call aai-get-network-instance-group","xml":"<call module='GENERIC-RESOURCE-API' rpc='aai-get-network-instance-group' mode='sync' >\n","comments":"","outputs":1,"x":834.7896575927734,"y":1046.6325091720792,"z":"d5178f42.44976","wires":[[]]},{"id":"85da8119.1634e","type":"set","name":"set: get-data-from-policy-input.policy-instance-name for subnet assignment","xml":"<set>\n\t<parameter name=\"get-data-from-policy-input.policy-instance-name\" value=\"`$get-complex-resource-service-model-output.subnet-assignment-policy`\" />\n\t","comments":"","x":953.1470718383789,"y":1405.6041303275852,"z":"d5178f42.44976","wires":[]},{"id":"f05d6459.4c0c08","type":"call","name":"call get-data-from-policy","xml":"<call module='GENERIC-RESOURCE-API' rpc='get-data-from-policy' mode='sync' >\n","comments":"","outputs":1,"x":789.1469879150391,"y":1444.6040411590366,"z":"d5178f42.44976","wires":[[]]},{"id":"7a297c31.4a0a24","type":"comment","name":"Determine if subnet use is unique or shared","info":"","comments":"","x":856.1469192504883,"y":1374.604030191782,"z":"d5178f42.44976","wires":[]},{"id":"1eee48d9.dde947","type":"set","name":"set: nig.subnet-assignment-policy.subnet-use","xml":"<set>\n\t<parameter name=\"nig.subnet-assignment-policy.subnet-use\" value=\"`$get-data-from-policy-output.ip-assignment`\" />\n\t","comments":"","x":858.6469116210938,"y":1480.6040077804355,"z":"d5178f42.44976","wires":[]},{"id":"ad080ed7.e2805","type":"set","name":"set: cloud owner/region","xml":"<set>\n\t<parameter name=\"aaiapi.input.cloud-owner\" value=\"`$prop.cloud-region.cloud-owner`\" />\n\t<parameter name=\"aaiapi.input.cloud-region-id\" value=\"`$network-topology-operation-input.network-request-input.aic-cloud-region`\" />\n\n\t","comments":"","x":773.7544403076172,"y":1794.0051078796387,"z":"d5178f42.44976","wires":[]},{"id":"83f50832.31bf28","type":"call","name":"call aai-get-aic-zone","xml":"<call module='GENERIC-RESOURCE-API' rpc='aai-get-aic-zone' mode='sync' >\n","comments":"","outputs":1,"x":760.7544021606445,"y":1825.005069732666,"z":"d5178f42.44976","wires":[[]]},{"id":"ce90a809.365528","type":"set","name":"set params for mS","xml":"<set>\n\t<parameter name=\"nig.cloud-zone\" value=\"`$aaiapi.output.cloud-zone`\" />\n\t<parameter name=\"rt.aic-zone\" value=\"`$aaiapi.output.cloud-zone`\" />\n\t<parameter name=\"rt.resource\" value=\"NetworkID\" />\n\t<parameter name=\"rt.resource-value\" value=\"`$tmp.l3-network.network-id`\" />\n\t<parameter name=\"rt.network-name\" value=\"`$tmp.l3-network.network-name`\" />\n\t<parameter name=\"rt.service-instance-id\" value=\"`$network-topology-operation-input.service-information.service-instance-id`\" />\n\t<parameter name=\"rt.network-instance-group-id\" value=\"`$tmp.l3-network.network-instance-group-id`\" />","comments":"","x":751.2543869018555,"y":1886.0055103302002,"z":"d5178f42.44976","wires":[]},{"id":"eef385b1.a41f98","type":"comment","name":"Get aic zone","info":"","comments":"","x":742.0043296813965,"y":1760.0050220489502,"z":"d5178f42.44976","wires":[]},{"id":"4d821497.3ac9ac","type":"call","name":"call create-route-target-and-vpn-binding","xml":"<call module='GENERIC-RESOURCE-API' rpc='create-route-target-and-vpn-binding' mode='sync' >\n","comments":"","outputs":1,"x":818.0046463012695,"y":1922.005283355713,"z":"d5178f42.44976","wires":[[]]},{"id":"b1ce3134.3e591","type":"get-resource","name":"get AnAI - l3-network by network-id","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.l3-network\">\n","comments":"","outputs":1,"x":826.1826171875,"y":936.2040013672085,"z":"d5178f42.44976","wires":[["cd276bd4.4ec2d8","1fb23d1f.248fb3"]]},{"id":"cd276bd4.4ec2d8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1106.1826133728027,"y":936.203972756979,"z":"d5178f42.44976","wires":[["c9ac2f78.68a14"]]},{"id":"1fb23d1f.248fb3","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1109.1825408935547,"y":972.2040061355801,"z":"d5178f42.44976","wires":[[]]},{"id":"c9ac2f78.68a14","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"'Error searching for l3-network with network-id =' + $tmp.l3-network.network-id + 'from AnAI. Network should be created by MSO'\" />","comments":"","x":1258.2936973571777,"y":936.4262017608853,"z":"d5178f42.44976","wires":[]},{"id":"8417006f.508b2","type":"comment","name":"Verify the network exists in AAI, else throw error","info":"","comments":"","x":856.1826019287109,"y":892.2040490509244,"z":"d5178f42.44976","wires":[]},{"id":"fd2df853.9f51c8","type":"execute","name":"execute RestApiCallNode - Get network instance group by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.nig-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"mdsal-nig\" />\n\n","comments":"","outputs":1,"x":2543.5757904052734,"y":3081.1475110054016,"z":"d5178f42.44976","wires":[["b1af37b5.b16318","1d58b7d3.9f05e8"]]},{"id":"b1af37b5.b16318","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2882.371627807617,"y":3044.455379009247,"z":"d5178f42.44976","wires":[["851e27ab.fc1778"]]},{"id":"851e27ab.fc1778","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":3061.3716926574707,"y":3044.955325603485,"z":"d5178f42.44976","wires":[[]]},{"id":"7aa290b9.dbfb","type":"comment","name":"Delete network-instance-group from mdsal on rollback","info":"","comments":"","x":2518.979106903076,"y":3048.0269055366516,"z":"d5178f42.44976","wires":[]},{"id":"1d58b7d3.9f05e8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2880.223400115967,"y":3124.5214619636536,"z":"d5178f42.44976","wires":[["64bdc280.770b8c"]]},{"id":"64bdc280.770b8c","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":3060.2233505249023,"y":3125.188012599945,"z":"d5178f42.44976","wires":[[]]},{"id":"c535d1b3.3325f","type":"save","name":"save relationship: l3-network to instance group","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" \n\tforce=\"true\" \n\tlocal-only=\"false\">\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"instance-group\" />\n\t<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/aai/v$/network/instance-groups/instance-group/'+ $tmp.network-instance-group-id`\" />\n","comments":"","outputs":1,"x":833.0040893554688,"y":2601.004062652588,"z":"d5178f42.44976","wires":[["3203a1dc.f1b18e","b974bb76.717a98"]]},{"id":"3203a1dc.f1b18e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1118.077003479004,"y":2596.479751586914,"z":"d5178f42.44976","wires":[["e5a724d0.277648"]]},{"id":"e5a724d0.277648","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1305.969882965088,"y":2596.1158590316772,"z":"d5178f42.44976","wires":[["e6189e22.f13c9"]]},{"id":"e6189e22.f13c9","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 instance-group relationship for l3-network in AnAI where instance-group-id = ' + $tmp.network-instance-group-id`\"/>","comments":"","x":1519.069423675537,"y":2596.8657579421997,"z":"d5178f42.44976","wires":[]},{"id":"b974bb76.717a98","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1126.162940979004,"y":2639.1310234069824,"z":"d5178f42.44976","wires":[["e5a724d0.277648"]]},{"id":"750843e0.4ef3ac","type":"comment","name":"Save relationship to Network instance group","info":"","comments":"","x":825.0040893554688,"y":2566.004069328308,"z":"d5178f42.44976","wires":[]},{"id":"9695c264.9ae04","type":"set","name":"set object-path","xml":"<set>\n<parameter name='network-object-path'\n value=\"`$tmp.l3-network.self-link`\"/>\n \n","comments":"","x":749.0040817260742,"y":3179.004289627075,"z":"d5178f42.44976","wires":[]},{"id":"8576e473.d1f3e8","type":"set","name":"set networkId","xml":"<set>\n<parameter name='networkId' value='`$tmp.l3-network.network-id`' />\n","comments":"","x":745.4325790405273,"y":3135.2896909713745,"z":"d5178f42.44976","wires":[]},{"id":"48826944.8a8cc8","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name='' value='' />\n","comments":"","x":755.0040283203125,"y":3378.7184524536133,"z":"d5178f42.44976","wires":[]},{"id":"94083d5a.ebf56","type":"set","name":"set network-level-oper-status","xml":"<set>\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />\n","comments":"","x":790.2530822753906,"y":3225.5032529830933,"z":"d5178f42.44976","wires":[]},{"id":"8a263bc3.22e118","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1057.4002418518066,"y":2768.094113200903,"z":"d5178f42.44976","wires":[["8567ebd6.a38748"]]},{"id":"8567ebd6.a38748","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1237.2931213378906,"y":2767.730220645666,"z":"d5178f42.44976","wires":[["4fa520ad.fc33e"]]},{"id":"4fa520ad.fc33e","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":1475.3926887512207,"y":2767.4801433980465,"z":"d5178f42.44976","wires":[]},{"id":"3d5a9b10.7d0c54","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1065.13669374254,"y":2810.5746375819053,"z":"d5178f42.44976","wires":[["8567ebd6.a38748"]]},{"id":"43ee4152.fab5d","type":"save","name":"save relationship: service-instance","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"service-instance\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"customer.global-customer-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$service-data.service-information.global-customer-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"service-subscription.service-type\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$service-data.service-information.subscription-service-type`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"service-instance.service-instance-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$service-data.service-information.service-instance-id`\" />","comments":"","outputs":1,"x":800.3790168762207,"y":2766.5036114156246,"z":"d5178f42.44976","wires":[["8a263bc3.22e118","3d5a9b10.7d0c54"]]},{"id":"307054cf.25730c","type":"set","name":"set network in service-data","xml":"<set>\n<parameter name=\"service-data.networks.network[$nidx].network-id\" value='`$tmp.l3-network.network-id`' />\n<parameter name=\"service-data.networks.network[$nidx].network-data.network-topology.\" value='$network-topology.' />\n<parameter name=\"service-data.networks.network_length\" value='`$nidx_len`' />\n\n","comments":"","x":786.7539253234863,"y":3054.7535923421383,"z":"d5178f42.44976","wires":[]},{"id":"1618d258.7486ae","type":"set","name":"set network-topology-identifier-structure in service-data","xml":"<set>\n<parameter name='network-topology.network-topology-identifier-structure.' value='`$tmp.l3-network.`' />\n<parameter name='network-topology.tenant' value='`$network-topology-operation-input.network-request-input.tenant`' />\n<parameter name='network-topology.onap-model-information.' value='`$network-topology-operation-input.network-information.onap-model-information.`' />\n<parameter name='network-topology.network-parameters.' value='`$network-topology-operation-input.network-request-input.network-parameters.`' />\n<parameter name='network-topology.aic-cloud-region' value='`$network-topology-operation-input.network-request-input.aic-cloud-region`' />","comments":"","x":870.50390625,"y":2947.6109828948975,"z":"d5178f42.44976","wires":[]},{"id":"b93d2eef.37f8c","type":"call","name":"call get-complex-resource-service-model","xml":"<call module='GENERIC-RESOURCE-API' rpc='get-complex-resource-service-model' mode='sync' >\n","comments":"","outputs":1,"x":833.57568359375,"y":1256.3110961914062,"z":"d5178f42.44976","wires":[[]]},{"id":"a7165e9f.1f2c4","type":"comment","name":"Get complex service model info","info":"","comments":"","x":796.8969650268555,"y":1181.6325550079346,"z":"d5178f42.44976","wires":[]},{"id":"e090256e.e635b8","type":"set","name":"set aaiapi.input.network-instance-group-id","xml":"<set>\n<parameter name='aaiapi.input.network-instance-group-id' value=\"`$tmp.l3-network.network-instance-group-id`\" />","comments":"","x":854.2896728515625,"y":1011.6324462890625,"z":"d5178f42.44976","wires":[]},{"id":"1868f533.5d5d1b","type":"switchNode","name":"switch nig.subnet-assignment-policy.subnet-use","xml":"<switch test='`$nig.subnet-assignment-policy.subnet-use`'>\n","comments":"","outputs":1,"x":853.7540588378906,"y":2008.0041007995605,"z":"d5178f42.44976","wires":[["80ea04d2.713458","bb4bfbdc.3ac068","5d5a651b.69c2fc"]]},{"id":"80ea04d2.713458","type":"other","name":"outcome NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1188.7540283203125,"y":2010.004098892212,"z":"d5178f42.44976","wires":[["c40792bd.8000b"]]},{"id":"e259f887.453e58","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1395.0397911071777,"y":2082.5756874084473,"z":"d5178f42.44976","wires":[["da09529c.7bd81"]]},{"id":"bb4bfbdc.3ac068","type":"other","name":"outcome unique","xml":"<outcome value='unique'>\n","comments":"","outputs":1,"x":1191.7541580200195,"y":2046.0042152404785,"z":"d5178f42.44976","wires":[["e8c6568f.40eef8"]]},{"id":"5d5a651b.69c2fc","type":"other","name":"outcome shared","xml":"<outcome value='shared'>\n","comments":"","outputs":1,"x":1189.7540283203125,"y":2083.004098892212,"z":"d5178f42.44976","wires":[["e259f887.453e58"]]},{"id":"da09529c.7bd81","type":"switchNode","name":"switch first-network","xml":"<switch test='`$tmp.first-network`'>\n","comments":"","outputs":1,"x":1622.7540283203125,"y":2083.0041546821594,"z":"d5178f42.44976","wires":[["fab5e305.08848","a54c9af5.901b08"]]},{"id":"fab5e305.08848","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1864.754020690918,"y":1802.0040340423584,"z":"d5178f42.44976","wires":[["e8c6568f.40eef8"]]},{"id":"a54c9af5.901b08","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1885.7541704177856,"y":2639.0047483444214,"z":"d5178f42.44976","wires":[["5c068cfe.3f07a4"]]},{"id":"40a6453b.1fd08c","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=\"Subnet use not set\"/>","comments":"","x":1614.7540664672852,"y":2010.0044298171997,"z":"d5178f42.44976","wires":[]},{"id":"c1d9c0b7.72207","type":"switchNode","name":"switch tmp.nig-preexists","xml":"<switch test='`$tmp.nig-preexists`'>\n","comments":"","outputs":1,"x":1782.0039978027344,"y":3047.0039596557617,"z":"d5178f42.44976","wires":[["d00ae7b1.1e2958","b8eeae0.6645e5"]]},{"id":"d00ae7b1.1e2958","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1995.0040817260742,"y":3015.4327602386475,"z":"d5178f42.44976","wires":[["36213aaa.5381f6"]]},{"id":"b8eeae0.6645e5","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1994.004056930542,"y":3079.0040760040283,"z":"d5178f42.44976","wires":[["3ed49ae5.86c5a6"]]},{"id":"3ed49ae5.86c5a6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2180.4326934814453,"y":3079.2900104522705,"z":"d5178f42.44976","wires":[["fd2df853.9f51c8"]]},{"id":"36213aaa.5381f6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2177.7897987365723,"y":3013.8610706329346,"z":"d5178f42.44976","wires":[[]]},{"id":"c40792bd.8000b","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1383.5040283203125,"y":2011.004098892212,"z":"d5178f42.44976","wires":[["40a6453b.1fd08c","c1d9c0b7.72207"]]},{"id":"35159ac5.660f16","type":"comment","name":"Need to add more thorough rollback","info":"","comments":"","x":1789.1827850341797,"y":2985.0042428970337,"z":"d5178f42.44976","wires":[]},{"id":"f241bc6f.abe91","type":"call","name":"call naming-policy-generate-name","xml":"<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-name' mode='sync' >\n","comments":"","outputs":1,"x":821.6469955444336,"y":1620.6043549178867,"z":"d5178f42.44976","wires":[[]]},{"id":"47106adb.c7b994","type":"set","name":"set parameters for generate-unique-name","xml":"<set>\n<parameter name='naming-policy-generate-name-input.policy-instance-name' value='`$get-complex-resource-service-model-output.network-naming-policy`' />\n<parameter name='naming-policy-generate-name-input.context-id' value='`$tmp.l3-network.network-id`' />\n<parameter name='naming-policy-generate-name-input.naming-type' value='NETWORK' />\n<parameter name='naming-policy-generate-name-input.action' value='ASSIGN' />\n<parameter name='naming-policy-generate-name-input.query-parameter' value='`$network-model.customization-uuid`' />\n\n\n","comments":"","x":842.3971710205078,"y":1583.6043979524402,"z":"d5178f42.44976","wires":[]},{"id":"fe4bedce.dccf4","type":"set","name":"set network name","xml":"<set>\n<parameter name='tmp.l3-network.network-name' value='`$naming-policy-generate-name-output.network-name`' />\n\n\n\n","comments":"","x":770.8970489501953,"y":1655.604353010538,"z":"d5178f42.44976","wires":[]},{"id":"49a4db31.f771e4","type":"comment","name":"Generate a name","info":"","comments":"","x":764.64697265625,"y":1543.6043673156528,"z":"d5178f42.44976","wires":[]},{"id":"36134ff2.81826","type":"set","name":"set tmp.network-topology","xml":"<set>\n<parameter name='network-topology.network-topology-identifier-structure.network-id' value=\"`$tmp.l3-network.network-id`\" />\n<parameter name='network-topology.network-topology-identifier-structure.network-name' value=\"`$tmp.l3-network.network-name`\" />\n<parameter name='network-topology.network-topology-identifier-structure.network-instance-group-id' value=\"`$tmp.l3-network.network-instance-group-id`\" />\n<parameter name='network-topology.network-topology-identifier-structure.network-type' value=\"`$tmp.l3-network.network-type`\" />\n<parameter name='network-topology.network-topology-identifier-structure.network-role' value=\"`$tmp.l3-network.network-role`\" />\n<parameter name='network-topology.network-topology-identifier-structure.network-technology' value=\"`$tmp.l3-network.network-technology`\" />\n<parameter name='network-topology.region-identifier.tenant' value=\"`$network-topology-operation-input.network-request-input.tenant`\" />\n<parameter name='network-topology.region-identifier.aic-cloud-region' value=\"`$network-topology-operation-input.network-request-input.aic-cloud-region`\" />\n<parameter name='network-topology.region-identifier.aic-clli' value=\"`$network-topology-operation-input.network-request-input.aic-clli`\" />\n<parameter name='network-topology.onap-model-information.' value=\"`$network-topology-operation-input.network-information.onap-model-information.`\" />\n<parameter name='network-topology.network-parameters.' value=\"`$network-topology-operation-input.network-request-input.network-input-parameters.`\" />\n<parameter name='nig.network.network-id' value=\"`$tmp.l3-network.network-id`\" />","comments":"","x":795.3969892263412,"y":1690.604379713419,"z":"d5178f42.44976","wires":[]},{"id":"58f3035b.c67d9c","type":"set","name":"set: nig identifier data","xml":"<set>\n\t<parameter name=\"nig.network-instance-group-id\" value=\"`$tmp.l3-network.network-instance-group-id`\"/>\n\t<parameter name=\"nig.network-instance-group-function\" value=\"`$aaiapi.output.collection-function`\"/>\n\t<parameter name=\"nig.service-instance-id\" value=\"`$network-topology-operation-input.service-information.service-instance-id`\"/>\n","comments":"","x":770.9164733886719,"y":1301.3838511108188,"z":"d5178f42.44976","wires":[]},{"id":"c8f94428.c0f5e8","type":"set","name":"set network-id","xml":"<set>\n<parameter name='nig.networks.network[$ngnidx].network-id' value=\"`$tmp.l3-network.network-id`\" />","comments":"","x":751.8531799316406,"y":1332.3834181426791,"z":"d5178f42.44976","wires":[]},{"id":"a3dcfb29.be3be8","type":"switchNode","name":"switch tmp.nidx ","xml":"<switch test=\"`$tmp.nidx`\">\n\n","comments":"","outputs":1,"x":892.2912139892578,"y":117.14844608306885,"z":"d5178f42.44976","wires":[["30c9e880.3ebc78","7464fb80.2dd3b4"]]},{"id":"30c9e880.3ebc78","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1118.5768585205078,"y":117.14839267730713,"z":"d5178f42.44976","wires":[["9337c637.20ec98"]]},{"id":"9337c637.20ec98","type":"switchNode","name":"switch service-data.networks_length","xml":"<switch test='`$service-data.networks.network_length`'>\n","comments":"","outputs":1,"x":1367.8029518127441,"y":118.33930969238281,"z":"d5178f42.44976","wires":[["b0241fa7.69347","6cbf8a0c.d761d4"]]},{"id":"b0241fa7.69347","type":"other","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1665.898292541504,"y":102.14861726760864,"z":"d5178f42.44976","wires":[["173ed7db.4f7aa8"]]},{"id":"173ed7db.4f7aa8","type":"set","name":"set nidx","xml":"<set>\n<parameter name='nidx' value='0' />\n<parameter name='nidx_len' value='1'/>\n","comments":"","x":1836.6127471923828,"y":102.7200288772583,"z":"d5178f42.44976","wires":[]},{"id":"6cbf8a0c.d761d4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1663.7554368972778,"y":142.86289072036743,"z":"d5178f42.44976","wires":[["254ad291.d12d8e"]]},{"id":"254ad291.d12d8e","type":"set","name":"set nidx","xml":"<set>\n<parameter name='nidx' value='`$service-data.networks.network_length`' />\n<parameter name='nidx_len' value='`$service-data.networks.network_length + 1`' />\n","comments":"","x":1836.3268671035767,"y":143.72009134292603,"z":"d5178f42.44976","wires":[]},{"id":"7464fb80.2dd3b4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1120.0054931640625,"y":155.71986484527588,"z":"d5178f42.44976","wires":[["5b261be0.07e9c4"]]},{"id":"5b261be0.07e9c4","type":"set","name":"set nidx","xml":"<set>\n<parameter name='nidx' value='`$tmp.nidx`' />\n<parameter name='nidx_len' value='`$service-data.networks.network_length`' />\n","comments":"","x":1282.8626174926758,"y":155.71989059448242,"z":"d5178f42.44976","wires":[]},{"id":"44bed9f5.f8a198","type":"switchNode","name":"switch tmp.ngidx ","xml":"<switch test=\"`$tmp.ngidx`\">\n\n","comments":"","outputs":1,"x":892.8627777099609,"y":204.29132843017578,"z":"d5178f42.44976","wires":[["d6e4ec1a.e6e93","8751a27d.a5675"]]},{"id":"d6e4ec1a.e6e93","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1134.291275024414,"y":202.86267757415771,"z":"d5178f42.44976","wires":[["b03031bc.a8721"]]},{"id":"b03031bc.a8721","type":"switchNode","name":"switch service-data.network-instance-groups.network-instance-group_len","xml":"<switch test='`$service-data.network-instance-groups.network-instance-group_len`'>\n","comments":"","outputs":1,"x":1499.231704711914,"y":204.05360412597656,"z":"d5178f42.44976","wires":[["f57cf34f.7619f","d6ea05bc.20b178"]]},{"id":"f57cf34f.7619f","type":"other","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1913.7556266784668,"y":204.29148191213608,"z":"d5178f42.44976","wires":[["b0c63751.bc3848"]]},{"id":"b0c63751.bc3848","type":"set","name":"set ngidx","xml":"<set>\n<parameter name='ngidx' value='0' />\n<parameter name='ngidx_len' value='1'/>\n<parameter name=\"ngnidx\" value='0' />\n<parameter name=\"nig.preexists\" value=\"false\"/>\n<parameter name=\"nig.first-network\" value=\"true\"/>\n<parameter name=\"nig.networks.network_len\" value=\"1\" />\n\n","comments":"","x":2086.612817764282,"y":202.14860528707504,"z":"d5178f42.44976","wires":[]},{"id":"d6ea05bc.20b178","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1912.3271217346191,"y":238.57717990875244,"z":"d5178f42.44976","wires":[["9b5fbee6.21443"]]},{"id":"9b5fbee6.21443","type":"set","name":"set ngidx","xml":"<set>\n<parameter name='ngidx' value='`$service-data.network-instance-groups.network-instance-group_length`' />\n<parameter name='ngidx_len' value='`$service-data.network-instance-groups.network-instance-group_length + 1`' />\n<parameter name=\"nig.preexists\" value=\"false\"/>\n<parameter name=\"ngnidx\" value='0' />\n<parameter name=\"nig.first-network\" value=\"true\"/>\n<parameter name=\"nig.networks.network_len\" value=\"1\" />","comments":"","x":2088.041379928589,"y":237.72010797262192,"z":"d5178f42.44976","wires":[]},{"id":"8751a27d.a5675","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1135.7199096679688,"y":241.43414974212646,"z":"d5178f42.44976","wires":[["8415c5ef.359e28"]]},{"id":"16fb0168.14aadf","type":"set","name":"set ngidx","xml":"<set>\n<parameter name='ngidx' value='`$tmp.ngidx`' />\n<parameter name='ngidx_len' value='`$service-data.network-instance-groups.network-instance-group_length`' />\n<parameter name=\"nig.preexists\" value=\"false\"/>","comments":"","x":1504.2913513183594,"y":240.00561666488647,"z":"d5178f42.44976","wires":[]},{"id":"8415c5ef.359e28","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1308.5770263671875,"y":241.4341583251953,"z":"d5178f42.44976","wires":[["16fb0168.14aadf","ce6e4cc2.462f2"]]},{"id":"ce6e4cc2.462f2","type":"switchNode","name":"switch networks.network_len","xml":"<switch test='`$ctx.network-instance-group-data.networks.network_len`'>\n","comments":"","outputs":1,"x":1574.2918243408203,"y":275.71987533569336,"z":"d5178f42.44976","wires":[["4e750736.532bf8","d95056d5.924ce8","c969201f.52f67"]]},{"id":"4e750736.532bf8","type":"other","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1831.1484718322754,"y":308.8269855976105,"z":"d5178f42.44976","wires":[["c10f69b8.9aebd8"]]},{"id":"d95056d5.924ce8","type":"other","name":"null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1829.148582458496,"y":277.8270561695099,"z":"d5178f42.44976","wires":[["c10f69b8.9aebd8"]]},{"id":"c10f69b8.9aebd8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2026.1744999355742,"y":308.38727392090686,"z":"d5178f42.44976","wires":[["763b73e5.e9fa9c"]]},{"id":"763b73e5.e9fa9c","type":"set","name":"set: first-network = true","xml":"<set>\n<parameter name=\"nig.first-network\" value=\"true\" />\n<parameter name=\"ngnidx\" value=\"0\" />\n<parameter name=\"nig.networks.network_len\" value=\"1\" />","comments":"","x":2258.6746372646758,"y":307.1373034848107,"z":"d5178f42.44976","wires":[]},{"id":"c969201f.52f67","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1831.8184700012207,"y":344.0778257846832,"z":"d5178f42.44976","wires":[["4933902d.618d4"]]},{"id":"4933902d.618d4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2027.711441040039,"y":344.07779335975647,"z":"d5178f42.44976","wires":[["cdb6a15a.3212a","798af161.c715b"]]},{"id":"cdb6a15a.3212a","type":"set","name":"set: first-network = false","xml":"<set>\n<parameter name=\"nig.first-network\" value=\"false\" />\n<parameter name=\"ngnidx\" value=\"`$ctx.network-instance-group-data.networks.network_length`\" />\n<parameter name=\"nig.networks.network_len\" value=\"`$ctx.network-instance-group-data.networks.network_length + 1`\" />\n<parameter name=\"nig.\" value=\"`$ctx.network-instance-group-data.`\" />","comments":"","x":2259.2117652893066,"y":375.8278331756592,"z":"d5178f42.44976","wires":[]},{"id":"798af161.c715b","type":"set","name":"set: nig data","xml":"<set>\n<parameter name=\"nig.\" value=\"`$ctx.network-instance-group-data.`\" />","comments":"","x":2227.503879547119,"y":342.0039052963257,"z":"d5178f42.44976","wires":[]},{"id":"5c068cfe.3f07a4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2097.004189491272,"y":2639.004349708557,"z":"d5178f42.44976","wires":[["48c61180.635eb"]]},{"id":"48c61180.635eb","type":"switchNode","name":"switch ngnidx","xml":"<switch test='`$ngnidx`'>\n","comments":"","outputs":1,"x":2291.0042581558228,"y":2639.004288673401,"z":"d5178f42.44976","wires":[["aa783e80.a6c83","554f9fef.e514d"]]},{"id":"aa783e80.a6c83","type":"outcome","name":"0","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2482.004204750061,"y":2613.004267692566,"z":"d5178f42.44976","wires":[["2a71e575.36750a"]]},{"id":"554f9fef.e514d","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2483.004288673401,"y":2644.004319190979,"z":"d5178f42.44976","wires":[[]]},{"id":"2a71e575.36750a","type":"for","name":"for 0..subnet_length","xml":"<for index='sidx' start='0' end='`$tmp.l3-network.subnet_length`' >\n","comments":"","outputs":1,"x":2677.254292488098,"y":2612.0042600631714,"z":"d5178f42.44976","wires":[["46adadcf.b10ea4"]]},{"id":"46adadcf.b10ea4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2877.396858215332,"y":2616.8931579589844,"z":"d5178f42.44976","wires":[["fae75c2d.25c5c","896df025.a1fea"]]},{"id":"fae75c2d.25c5c","type":"set","name":"set: tmp.subnet-id","xml":"<set>\n<parameter name=\"tmp.subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\"/>\n\t","comments":"","x":3099.1748046875,"y":2585.7183837890625,"z":"d5178f42.44976","wires":[]},{"id":"896df025.a1fea","type":"switchNode","name":"switch dhcp-enabled","xml":"<switch test='`$tmp.l3-network.subnet[$sidx].dhcp-enabled`'>\n","comments":"","outputs":1,"x":3106.80952835083,"y":2622.015778541565,"z":"d5178f42.44976","wires":[[]]},{"id":"e8c6568f.40eef8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2041.0041122436523,"y":1624.0039863586426,"z":"d5178f42.44976","wires":[["e65e043c.0d83c8","9ab51d6.254d9e","727e503e.e99e1","76567230.ae29cc","2c47409f.cb9c7","1451a72d.c96e71","6d06e17a.7f1a2","95e4e3b2.775858"]]},{"id":"e65e043c.0d83c8","type":"set","name":"set: input for process-generic-eipam-pools","xml":"<set>\n<parameter name=\"tmp.skip-first-level\" value=\"Y\"/>\n<parameter name=\"tmp.allocate-subnet-flag\" value=\"Y\"/>\n<parameter name=\"generate-FQPN-input.aic-cloud-region\" value=\"`$aai.cloud-region.cloud-region-id`\" />\n<parameter name=\"generate-FQPN-input.network-name\" value=\"`$network-topology.network-topology-identifier-structure.network-name`\" />\n<parameter name=\"generate-FQPN-input.network-role\" value=\"`$network-topology.network-topology-identifier-structure.network-role`\" />\n<parameter name=\"generate-FQPN-input.network-collection\" value=\"`$aaiapi.output.collection-name`\" />\n<parameter name=\"generate-FQPN-input.network-id\" value=\"`$network-topology.network-topology-identifier-structure.network-id`\" />\n<parameter name=\"tmp.network-id\" value=\"`network-topology.network-topology-identifier-structure.network-id`\" />\n<parameter name=\"tmp.network-instance-group-id\" value=\"`$network-topology.network-topology-identifier-structure.network-instance-group-id`\" />\n\n<!-- the following are not set by calling dg\ngenerate-FQPN-input.subnet-role\ngenerate-FQPN-input.zone\ngenerate-FQPN-input.equipment\n-->\n<!-- network model is already in contect memory -->\n<!-- aai.cloud-region.cloud-region-id is already in contect memory -->\n\n\t","comments":"","x":2347.2537841796875,"y":1606.0040283203125,"z":"d5178f42.44976","wires":[]},{"id":"9ab51d6.254d9e","type":"switchNode","name":"switch $network-model.eipam-v4-address-plan is not null","xml":"<switch test=\"`$network-model.eipam-v4-address-plan != ''`\">\n","comments":"","outputs":1,"x":2394.25390625,"y":1723.00390625,"z":"d5178f42.44976","wires":[["c9d4cba4.24fff8"]]},{"id":"42389da4.7eb2c4","type":"comment","name":"Process v4 plan","info":"","comments":"","x":2260.254005432129,"y":1691.0040283203125,"z":"d5178f42.44976","wires":[]},{"id":"c9d4cba4.24fff8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2701.253890991211,"y":1691.0039176940918,"z":"d5178f42.44976","wires":[["1e20a4e2.74b9eb"]]},{"id":"1e20a4e2.74b9eb","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2865.2539138793945,"y":1691.0039367675781,"z":"d5178f42.44976","wires":[["8a474f48.9398f","11cb7113.5402d7"]]},{"id":"727e503e.e99e1","type":"switchNode","name":"switch $network-model.eipam-v6-address-plan is not null","xml":"<switch test=\"`$network-model.eipam-v6-address-plan != ''`\">\n","comments":"","outputs":1,"x":2394.2537841796875,"y":1816.00390625,"z":"d5178f42.44976","wires":[["e81185af.c04448"]]},{"id":"2765b6a2.a89dfa","type":"comment","name":"Process v6 plan","info":"","comments":"","x":2265.2538452148438,"y":1784.0040893554688,"z":"d5178f42.44976","wires":[]},{"id":"e81185af.c04448","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2709.253776550293,"y":1816.0038986206055,"z":"d5178f42.44976","wires":[["6635ad54.167cd4"]]},{"id":"6635ad54.167cd4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2873.2537994384766,"y":1816.0039176940918,"z":"d5178f42.44976","wires":[["3e402883.aa4e28","31489f02.5d1d88"]]},{"id":"8a474f48.9398f","type":"set","name":"set: v4plan in mdsal","xml":"<set>\n<parameter name=\"network-topology.network-identifier-structure.eipam-v4-address-plan\" value=\"`$network-model.eipam-v4-address-plan`\" />\n\t","comments":"","x":3061.254035949707,"y":1691.0039672851562,"z":"d5178f42.44976","wires":[]},{"id":"3e402883.aa4e28","type":"set","name":"set: v6plan in mdsal","xml":"<set>\n<parameter name=\"network-topology.network-identifier-structure.eipam-v6-address-plan\" value=\"`$network-model.eipam-v4-address-plan`\" />\n\t","comments":"","x":3076.2538146972656,"y":1815.0039367675781,"z":"d5178f42.44976","wires":[]},{"id":"92dee517.041028","type":"set","name":"set tmp.network-topology","xml":"<set>\n<parameter name='network-topology.region-identifier.aic-clli' value=\"`$aaiapi.output.aic-clli`\" />\n","comments":"","x":775.25390625,"y":1853.0040283203125,"z":"d5178f42.44976","wires":[]},{"id":"76567230.ae29cc","type":"call","name":"call process-generic-eipam-pools","xml":"<call module='GENERIC-RESOURCE-API' rpc='process-generic-eipam-pools' mode='sync' >\n","comments":"","outputs":1,"x":2314.8831787109375,"y":1640.88330078125,"z":"d5178f42.44976","wires":[["3ee93bff.44a3fc"]]},{"id":"3ee93bff.44a3fc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2543.41650390625,"y":1640.4832763671875,"z":"d5178f42.44976","wires":[["f0d7d581.591998"]]},{"id":"f0d7d581.591998","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\t<parameter name=\"error-message\" value=\"`'Error from process-generic-eipam-pools, ' + $error-message`\" />\n","comments":"","x":2702.1664848327637,"y":1640.4832725524902,"z":"d5178f42.44976","wires":[]},{"id":"11cb7113.5402d7","type":"for","name":"for 0..CreatePoolPlans_length","xml":"<for silentFailure='true' index='eidx' start='0' end='`$eipam-ip-block.createPoolResponse.CreatePoolPlans_length`' >\n","comments":"","outputs":1,"x":3093.88330078125,"y":1735.88330078125,"z":"d5178f42.44976","wires":[["32ce7747.c70768"]]},{"id":"32ce7747.c70768","type":"switchNode","name":"switch PlanName == network-model.eipam-v4-address-plan","xml":"<switch test=\"`$eipam-ip-block.createPoolResponse.CreatePoolPlans[$eidx].CreatePoolPlan.PlanName == $network-model.eipam-v4-address-plan`\">\n","comments":"","outputs":1,"x":3476.88330078125,"y":1735.88330078125,"z":"d5178f42.44976","wires":[["73515ea5.55cd5"]]},{"id":"31489f02.5d1d88","type":"for","name":"for 0..CreatePoolPlans_length","xml":"<for silentFailure='true' index='eidx' start='0' end='`$eipam-ip-block.createPoolResponse.CreatePoolPlans_length`' >\n","comments":"","outputs":1,"x":3111.88330078125,"y":1853.88330078125,"z":"d5178f42.44976","wires":[["39f88f1c.91ea8"]]},{"id":"39f88f1c.91ea8","type":"switchNode","name":"switch PlanName == network-model.eipam-v6-address-plan","xml":"<switch test=\"`$eipam-ip-block.createPoolResponse.CreatePoolPlans[$eidx].CreatePoolPlan.PlanName == $network-model.eipam-v6-address-plan`\">\n","comments":"","outputs":1,"x":3502.88330078125,"y":1853.88330078125,"z":"d5178f42.44976","wires":[["cff6d3ae.f1aa3"]]},{"id":"73515ea5.55cd5","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3813.883331298828,"y":1735.8833312988281,"z":"d5178f42.44976","wires":[["b96644be.0dbc98"]]},{"id":"cff6d3ae.f1aa3","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3827.88330078125,"y":1853.4832763671875,"z":"d5178f42.44976","wires":[["746695da.4b9b9c"]]},{"id":"b96644be.0dbc98","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3973.316650390625,"y":1736.0833740234375,"z":"d5178f42.44976","wires":[["5cbea0a0.58604"]]},{"id":"746695da.4b9b9c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3984.316650390625,"y":1853.0833740234375,"z":"d5178f42.44976","wires":[["31f3e12f.a943de"]]},{"id":"5cbea0a0.58604","type":"set","name":"set: v4 ip info","xml":"<set>\n<parameter name=\"v4.ip-prefix\" value=\"`$eipam-ip-block.createPoolResponse.CreatePoolPlans[$eidx].CreatePoolPlan.IPDataBlock.IPAddress`\"/>\n<parameter name=\"v4.mask\" value=\"`$eipam-ip-block.createPoolResponse.CreatePoolPlans[$eidx].CreatePoolPlan.IPDataBlock.Mask`\"/>\n<parameter name=\"v4.entity-id\" value=\"`$eipam-ip-block.createPoolResponse.CreatePoolPlans[$eidx].CreatePoolPlan.IPDataBlock.IpamPoolAllocId`\"/>","comments":"","x":4164.2666015625,"y":1736.0833740234375,"z":"d5178f42.44976","wires":[]},{"id":"31f3e12f.a943de","type":"set","name":"set: v6 ip info","xml":"<set>\n<parameter name=\"v6.ip-prefix\" value=\"`$eipam-ip-block.createPoolResponse.CreatePoolPlans[$eidx].CreatePoolPlan.IPDataBlock.IPAddress`\"/>\n<parameter name=\"v6.mask\" value=\"`$eipam-ip-block.createPoolResponse.CreatePoolPlans[$eidx].CreatePoolPlan.IPDataBlock.Mask`\"/>\n<parameter name=\"v6.entity-id\" value=\"`$eipam-ip-block.createPoolResponse.CreatePoolPlans[$eidx].CreatePoolPlan.IPDataBlock.IpamPoolAllocId`\"/>","comments":"","x":4177.88330078125,"y":1853.0833740234375,"z":"d5178f42.44976","wires":[]},{"id":"2c47409f.cb9c7","type":"call","name":"call GENERIC-RESOURCE-API:create-l3-subnet","xml":"<call module='GENERIC-RESOURCE-API' rpc='create-l3-subnet' mode='sync' >\n","comments":"tmp.level should be set to 1","outputs":1,"x":2373.0864181518555,"y":1868.0233001708984,"z":"d5178f42.44976","wires":[[]]},{"id":"889334d4.ee512","type":"save","name":"save AnAI - l3-network","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"network-name\" value=\"`$tmp.l3-network.network-name`\" />\n<parameter name=\"network-type\" value=\"`$network-model.network-type`\" />\n<parameter name=\"network-role\" value=\"`$network-model.network-role`\" />\n<parameter name=\"network-technology\" value=\"`$network-model.network-technology`\" />\n<parameter name=\"is-bound-to-vpn\" value=\"`$tmp.l3-network.is-bound-to-vpn-boolean`\" />\n<parameter name=\"tenant-id\" value=\"`$network-topology-operation-input.network-request-information.tenant`\" />\n<parameter name=\"model-invariant-id\" value=\"`$network-model.invariant_uuid`\" />\n<parameter name=\"model-version\" value=\"`$network-model.version`\" />\n<parameter name=\"model-customization-id\" value=\"`$network-model.customization-id`\" />\n<parameter name=\"physical-network-name\" value=\"`$network-model.physical-network-name`\" />\n<parameter name=\"is-provider-network\" value=\"`$tmp.l3-network.is-provider-network-boolean`\" />\n<parameter name=\"is-shared-network\" value=\"`$tmp.l3-network.is-shared-network-boolean`\" />\n<parameter name=\"is-external-network\" value=\"`$tmp.l3-network.is-external-network-boolean`\" />\n<parameter name=\"selflink\" value=\"`$tmp.l3-network.self-link`\" />\n<parameter name=\"service-id\" value=\"`$tmp.l3-network.service-id`\" />\n<parameter name=\"operational-status\" value=\"out-of-service-path\" />\n\n","comments":"","outputs":1,"x":2659.050048828125,"y":1966.2833251953125,"z":"d5178f42.44976","wires":[["fd2dffb4.626d88","166d7fb.02683"]]},{"id":"bc8ed07.0e83cb","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=\"`'Failed to save l3-network in AAI for network-id = ' + $tmp.l3-network.network-id`\" />\n","comments":"","x":3148.7292909622192,"y":1931.5768394470215,"z":"d5178f42.44976","wires":[]},{"id":"fd2dffb4.626d88","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2902.1575317382812,"y":1931.3424072265625,"z":"d5178f42.44976","wires":[["bc8ed07.0e83cb"]]},{"id":"6d06e17a.7f1a2","type":"for","name":"for 0..subnet_length","xml":"<for index='sidx' start='0' end='`$tmp.l3-network.subnet_length`' >\n","comments":"","outputs":1,"x":2277.1418199539185,"y":2072.342499732971,"z":"d5178f42.44976","wires":[["b25f750f.5ab41"]]},{"id":"b25f750f.5ab41","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2504.2845001220703,"y":2071.231451034546,"z":"d5178f42.44976","wires":[["d4bb25ae.3ce62","c577661b.70d328","b6bec758.f11a5","bedb778a.035b4"]]},{"id":"166d7fb.02683","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2907.9669799804688,"y":1959.8187255859375,"z":"d5178f42.44976","wires":[["bc8ed07.0e83cb"]]},{"id":"d4bb25ae.3ce62","type":"set","name":"set: tmp.subnet-id","xml":"<set>\n<parameter name=\"tmp.subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\"/>\n\t","comments":"","x":2726.0624465942383,"y":2040.056676864624,"z":"d5178f42.44976","wires":[]},{"id":"c577661b.70d328","type":"switchNode","name":"switch dhcp-enabled","xml":"<switch test='`$tmp.l3-network.subnet[$sidx].dhcp-enabled`'>\n","comments":"","outputs":1,"x":2733.6971702575684,"y":2076.3540716171265,"z":"d5178f42.44976","wires":[["50789132.4385b8","615683d.86d5bfc"]]},{"id":"615683d.86d5bfc","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2969.8399658203125,"y":2006.2111206054688,"z":"d5178f42.44976","wires":[["282d91de.f05ee6"]]},{"id":"50789132.4385b8","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2965.6971702575684,"y":2088.354193687439,"z":"d5178f42.44976","wires":[["6ee6838a.ca20ac"]]},{"id":"282d91de.f05ee6","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3160.7283935546875,"y":2006.4334716796875,"z":"d5178f42.44976","wires":[["7c2c5c81.31cfa4"]]},{"id":"6ee6838a.ca20ac","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3158.5858421325684,"y":2092.5765447616577,"z":"d5178f42.44976","wires":[["506e8049.8f6fc8"]]},{"id":"7c2c5c81.31cfa4","type":"switchNode","name":"switch gateway-address","xml":"<switch test='`$tmp.l3-network.subnet[$sidx].gateway-address`'>\n","comments":"","outputs":1,"x":3380.691680908203,"y":2006.7656421661377,"z":"d5178f42.44976","wires":[["72eb0aff.498254","b992c40a.e3fc88"]]},{"id":"506e8049.8f6fc8","type":"switchNode","name":"switch gateway-address","xml":"<switch test='`$tmp.l3-network.subnet[$sidx].gateway-address`'>\n","comments":"","outputs":1,"x":3389.977409362793,"y":2091.480155944824,"z":"d5178f42.44976","wires":[["f9389512.87fe1","d915319.95e925"]]},{"id":"1451a72d.c96e71","type":"switchNode","name":"switch service-id","xml":"<switch test='`$tmp.l3-network.service-id`'>\n","comments":"","outputs":1,"x":2268.9296875,"y":1952.6705322265625,"z":"d5178f42.44976","wires":[["b6d98b6a.61fe58","3902684f.6009f8"]]},{"id":"b6d98b6a.61fe58","type":"outcome","name":"outcome NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2457.9296875,"y":1931.6705322265625,"z":"d5178f42.44976","wires":[["54a47008.56e48"]]},{"id":"3902684f.6009f8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2432.9296875,"y":1966.6705322265625,"z":"d5178f42.44976","wires":[["889334d4.ee512"]]},{"id":"54a47008.56e48","type":"save","name":"save AnAI - l3-network","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"network-name\" value=\"`$tmp.l3-network.network-name`\" />\n<parameter name=\"network-type\" value=\"`$network-model.network-type`\" />\n<parameter name=\"network-role\" value=\"`$network-model.network-role`\" />\n<parameter name=\"network-technology\" value=\"`$network-model.network-technology`\" />\n<parameter name=\"is-bound-to-vpn\" value=\"`$tmp.l3-network.is-bound-to-vpn-boolean`\" />\n<parameter name=\"tenant-id\" value=\"`$network-topology-operation-input.network-request-information.tenant`\" />\n<parameter name=\"model-invariant-id\" value=\"`$network-model.invariant_uuid`\" />\n<parameter name=\"model-version\" value=\"`$network-model.version`\" />\n<parameter name=\"model-customization-id\" value=\"`$network-model.customization-id`\" />\n<parameter name=\"physical-network-name\" value=\"`$network-model.physical-network-name`\" />\n<parameter name=\"is-provider-network\" value=\"`$tmp.l3-network.is-provider-network-boolean`\" />\n<parameter name=\"is-shared-network\" value=\"`$tmp.l3-network.is-shared-network-boolean`\" />\n<parameter name=\"is-external-network\" value=\"`$tmp.l3-network.is-external-network-boolean`\" />\n<parameter name=\"selflink\" value=\"`$tmp.l3-network.self-link`\" />\n<parameter name=\"operational-status\" value=\"out-of-service-path\" />","comments":"","outputs":1,"x":2664.9296875,"y":1931.6705322265625,"z":"d5178f42.44976","wires":[["fd2dffb4.626d88","166d7fb.02683"]]},{"id":"352b0634.a770ea","type":"set","name":"set tmp.l3-network","xml":"<set>\n<parameter name='tmp.l3-network.network-type' value=\"`$network-model.network-type`\" />\n<parameter name='tmp.l3-network.network-role' value=\"`$network-model.network-role`\" />\n<parameter name='tmp.l3-network.network-technology' value=\"`$network-model.network-technology`\" />\n<parameter name='tmp.l3-network.is-bound-to-vpn' value=\"`$network-model.is-bound-to-vpn`\" />\n<parameter name='tmp.l3-network.orchestration-status' value=\"PendingCreate\" />\n<parameter name='tmp.l3-network.model-invariant-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\" />\n<parameter name='tmp.l3-network.model-version-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-version`\" />\n<parameter name='tmp.l3-network.model-customization-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\" />\n<parameter name='tmp.l3-network.is-provider-network' value=\"`$network-model.is-provider-network`\" />\n<parameter name='tmp.l3-network.is-shared-network' value=\"`$network-model.is-shared-network`\" />\n<parameter name='tmp.l3-network.is-external-network' value=\"`$network-model.is-external-network`\" />\n<parameter name='tmp.l3-network.eipam-v6-address-plan' value=\"`$network-model.eipam-v6-address-plan`\" />\n<parameter name='tmp.l3-network.eipam-v4-address-plan' value=\"`$network-model.eipam-v4-address-plan`\" />\n<parameter name='tmp.l3-network.service-id' value=\"`$service-data.service-information.service-id`\" />\n<parameter name='tmp.l3-network.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/networks/network/'\n + $tmp.l3-network.network-id\n + '/network-data/network-topology/'` \" />\n","comments":"","x":886.88330078125,"y":451.4833068847656,"z":"d5178f42.44976","wires":[]},{"id":"c252ed05.9b99f","type":"set","name":"set network instance group in service-data","xml":"<set>\n<parameter name=\"service-data.network-instance-groups.network-instance-group[$ngidx].\" value='`$nig.`' />\n\n\n","comments":"","x":828.88330078125,"y":2999.4833984375,"z":"d5178f42.44976","wires":[]},{"id":"c0d1166f.f33bd","type":"switchNode","name":"switch network--model.is-provider-network","xml":"<switch test='`$network-model.is-provider-network`'>\n","comments":"","outputs":1,"x":943.6000061035156,"y":517.8833475112915,"z":"d5178f42.44976","wires":[["2d70e649.07ae42","3835b478.0b1234"]]},{"id":"2d70e649.07ae42","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1248.7431564331055,"y":497.7087926864624,"z":"d5178f42.44976","wires":[["9294abcc.7f7ec8"]]},{"id":"9294abcc.7f7ec8","type":"set","name":"set tmp.l3-network.physical-network-name","xml":"<set>\n<parameter name='tmp.l3-network.physical-network-name' value=\"`$network-model.physical-network-name`\" />\n<parameter name='tmp.l3-network.is-provider-network-boolean' value='true' />","comments":"","x":1516.7430114746094,"y":494.708758354187,"z":"d5178f42.44976","wires":[]},{"id":"3835b478.0b1234","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1236.1082153320312,"y":528.5818138122559,"z":"d5178f42.44976","wires":[["4cb8c1ac.228e38"]]},{"id":"4cb8c1ac.228e38","type":"set","name":"set tmp.l3-network.physical-network-name","xml":"<set>\n<parameter name='tmp.l3-network.physical-network-name' value=\"\" />\n<parameter name='tmp.l3-network.is-provider-network-boolean' value='false' />","comments":"","x":1520.394172668457,"y":527.153244972229,"z":"d5178f42.44976","wires":[]},{"id":"3e6da276.1b9876","type":"switchNode","name":"switch network--model.is-shared-network","xml":"<switch test='`$network-model.is-shared-network`'>\n","comments":"","outputs":1,"x":941.2665252685547,"y":563.5181550979614,"z":"d5178f42.44976","wires":[["9f3ffa9d.8179c","76801177.35bc58"]]},{"id":"9f3ffa9d.8179c","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1246.885726928711,"y":563.58176612854,"z":"d5178f42.44976","wires":[["26f53153.826cbe"]]},{"id":"26f53153.826cbe","type":"set","name":"set tmp.l3-network.is-shared-network-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-shared-network-boolean' value='true' />","comments":"","x":1539.1714401245117,"y":563.5816135406494,"z":"d5178f42.44976","wires":[]},{"id":"76801177.35bc58","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1235.6797523498535,"y":598.8832731246948,"z":"d5178f42.44976","wires":[["f9000a6c.baff6"]]},{"id":"f9000a6c.baff6","type":"set","name":"set tmp.l3-network.is-shared-network-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-shared-network-boolean' value='false' />","comments":"","x":1539.9656715393066,"y":598.7404508590698,"z":"d5178f42.44976","wires":[]},{"id":"39ea7531.083dba","type":"switchNode","name":"switch network--model.is-external-network","xml":"<switch test='`$network-model.is-external-network`'>\n","comments":"","outputs":1,"x":949.9498291015625,"y":635.5657958984375,"z":"d5178f42.44976","wires":[["7aba3265.5fa204","c956eb87.42b64"]]},{"id":"7aba3265.5fa204","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1248.9022941589355,"y":642.2961139678955,"z":"d5178f42.44976","wires":[["d8231d31.87054"]]},{"id":"d8231d31.87054","type":"set","name":"set tmp.l3-network.is-external-network-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-external-network-boolean' value='true' />","comments":"","x":1541.1880073547363,"y":642.2959613800049,"z":"d5178f42.44976","wires":[]},{"id":"c956eb87.42b64","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1237.6963195800781,"y":677.5976209640503,"z":"d5178f42.44976","wires":[["df2c956f.5ebb7"]]},{"id":"df2c956f.5ebb7","type":"set","name":"set tmp.l3-network.is-external-network-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-external-network-boolean' value='false' />","comments":"","x":1541.9822387695312,"y":677.4547986984253,"z":"d5178f42.44976","wires":[]},{"id":"985b6687.301738","type":"switchNode","name":"switch network--model.is-bound-to-vpn","xml":"<switch test='`$network-model.is-bound-to-vpn`'>\n","comments":"","outputs":1,"x":935.5313415527344,"y":748.6398734451504,"z":"d5178f42.44976","wires":[["841de692.8816c8","92021a98.fb2718"]]},{"id":"841de692.8816c8","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1247.1505546569824,"y":716.703462600708,"z":"d5178f42.44976","wires":[["ae32e0dd.54349"]]},{"id":"ae32e0dd.54349","type":"set","name":"set tmp.l3-network.is-bound-to-vpn-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-bound-to-vpn-boolean' value='true' />","comments":"","x":1539.4362678527832,"y":716.7033100128174,"z":"d5178f42.44976","wires":[]},{"id":"92021a98.fb2718","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1235.944580078125,"y":752.0049695968628,"z":"d5178f42.44976","wires":[["53abbcde.c1e354"]]},{"id":"53abbcde.c1e354","type":"set","name":"set tmp.l3-network.is-bound-to-vpn-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-bound-to-vpn-boolean' value='false' />","comments":"","x":1540.2304992675781,"y":751.8621473312378,"z":"d5178f42.44976","wires":[]},{"id":"4e2d72ac.a20f14","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnet-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"gateway-address\" value=\"`$tmp.l3-network.subnet[$sidx].gateway-address`\" />\n<parameter name=\"network-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />","comments":"","outputs":1,"x":4070.083251953125,"y":2100.4833984375,"z":"d5178f42.44976","wires":[["c0ceef0e.0078a","1e9136c3.87ee69"]]},{"id":"c0ceef0e.0078a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":4421.638069152832,"y":2059.81626701355,"z":"d5178f42.44976","wires":[["15650c05.6d1314"]]},{"id":"1e9136c3.87ee69","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":4430.361213684082,"y":2097.4594554901123,"z":"d5178f42.44976","wires":[["15650c05.6d1314"]]},{"id":"d752adcc.20017","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving subnet relationship for l3-network in AnAI where network-id = ' + $tmp.l3-network.network-id`\"/>","comments":"","x":4861.511116027832,"y":2074.67368888855,"z":"d5178f42.44976","wires":[]},{"id":"15650c05.6d1314","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":4606.36837387085,"y":2074.102150917053,"z":"d5178f42.44976","wires":[["d752adcc.20017"]]},{"id":"461634d9.663cc4","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnet-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"gateway-address\" value=\"`$tmp.l3-network.subnet[$sidx].gateway-address`\" />\n<parameter name=\"network-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"dhcp-start\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-start`\" />\n<parameter name=\"dhcp-end\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-end`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />","comments":"","outputs":1,"x":4107.337271690369,"y":2022.2094249725342,"z":"d5178f42.44976","wires":[["1e9136c3.87ee69","c0ceef0e.0078a"]]},{"id":"72eb0aff.498254","type":"outcome","name":"outcome NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":3648.618034362793,"y":1985.7638292312622,"z":"d5178f42.44976","wires":[["94f52050.d9fb1"]]},{"id":"b992c40a.e3fc88","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":3624.332302093506,"y":2021.4782190322876,"z":"d5178f42.44976","wires":[["c9204b2d.3b077"]]},{"id":"c9204b2d.3b077","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3860.7606801986694,"y":2021.907039642334,"z":"d5178f42.44976","wires":[["461634d9.663cc4"]]},{"id":"f531428e.13ed98","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnet-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"network-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"dhcp-start\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-start`\" />\n<parameter name=\"dhcp-end\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-end`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />","comments":"","outputs":1,"x":4105.046538352966,"y":1986.7640361785889,"z":"d5178f42.44976","wires":[["c0ceef0e.0078a","1e9136c3.87ee69"]]},{"id":"94f52050.d9fb1","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3874.184100151062,"y":1988.0331344604492,"z":"d5178f42.44976","wires":[["f531428e.13ed98"]]},{"id":"f9389512.87fe1","type":"outcome","name":"outcome NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":3657.903739929199,"y":2064.7641019821167,"z":"d5178f42.44976","wires":[["ecdbbdf9.e0987"]]},{"id":"d915319.95e925","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":3633.618007659912,"y":2100.478491783142,"z":"d5178f42.44976","wires":[["2d8feac9.f46f5e"]]},{"id":"2d8feac9.f46f5e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3835.0465965270996,"y":2101.9071559906006,"z":"d5178f42.44976","wires":[["4e2d72ac.a20f14"]]},{"id":"ecdbbdf9.e0987","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3842.7557411193848,"y":2065.176050186157,"z":"d5178f42.44976","wires":[["57002b51.96ccbc"]]},{"id":"57002b51.96ccbc","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnet-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"network-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />","comments":"","outputs":1,"x":4067.9035606384277,"y":2061.90673828125,"z":"d5178f42.44976","wires":[["c0ceef0e.0078a","1e9136c3.87ee69"]]},{"id":"b6bec758.f11a5","type":"set","name":"set: subnet in mdsal","xml":"<set>\n<parameter name=\"nig.subnets[$msidx].start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"nig.subnets[$msidx].subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"nig.subnets[$msidx].subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"nig.subnets[$msidx].gateway-address\" value=\"`$tmp.l3-network.subnet[$sidx].gateway-address`\" />\n<parameter name=\"nig.subnets[$msidx].cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"nig.subnets[$msidx].ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"nig.subnets[$msidx].dhcp-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-start`\" />\n<parameter name=\"nig.subnets[$msidx].dhcp-end-address\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-end`\" />\n<parameter name=\"nig.subnets[$msidx].dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />\n\t","comments":"","x":2732.283203125,"y":2114.4833984375,"z":"d5178f42.44976","wires":[]},{"id":"95e4e3b2.775858","type":"set","name":"set: msidx","xml":"<set>\n<parameter name=\"msidx\" value=\"`$nig.subnets_length`\" />\n\t","comments":"","x":2252.2830810546875,"y":2033.4832763671875,"z":"d5178f42.44976","wires":[]},{"id":"bedb778a.035b4","type":"set","name":"set: increment msidx","xml":"<set>\n<parameter name=\"msidx\" value=\"`$msidx + 1`\" />\n<parameter name=\"nig.subnets_length\" value=\"`$nig.subnets_length + 1`\" />\n\t","comments":"","x":2729.283203125,"y":2151.4833984375,"z":"d5178f42.44976","wires":[]}]
\ No newline at end of file +[{"id":"67a53f15.ab9b6","type":"dgstart","name":"DGSTART","outputs":1,"x":133.57701110839844,"y":62.1484432220459,"z":"d5178f42.44976","wires":[["b0d5fc31.8c038"]]},{"id":"b0d5fc31.8c038","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":290.4341335296631,"y":175.6246566772461,"z":"d5178f42.44976","wires":[["366ff52e.33c5ca"]]},{"id":"366ff52e.33c5ca","type":"method","name":"network-topology-operation-assign-vlantagging-instancegroup","xml":"<method rpc='network-topology-operation-assign-vlantagging-instancegroup' mode='sync'>\n","comments":"","outputs":1,"x":336.2080764770508,"y":279.27935695648193,"z":"d5178f42.44976","wires":[["830a3a63.0a3188"]]},{"id":"23048cc0.43a9d4","type":"comment","name":"Called from assign when network instance group passed in from mso","info":"","comments":"","x":368.71986389160156,"y":139.95797157287598,"z":"d5178f42.44976","wires":[]},{"id":"830a3a63.0a3188","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":235.86273193359375,"y":576.67236328125,"z":"d5178f42.44976","wires":[["a3dcfb29.be3be8","44bed9f5.f8a198","6b6b467e.e2b328","6e7beecb.c5df7","a8edbe94.39dac","d4e2ddfb.452e","352b0634.a770ea","c0d1166f.f33bd","3e6da276.1b9876","39ea7531.083dba","985b6687.301738","b1ce3134.3e591","e090256e.e635b8","22e7595d.96a916","93ad9038.590b3","b93d2eef.37f8c","58f3035b.c67d9c","c8f94428.c0f5e8","85da8119.1634e","f05d6459.4c0c08","1eee48d9.dde947","47106adb.c7b994","f241bc6f.abe91","fe4bedce.dccf4","36134ff2.81826","ad080ed7.e2805","83f50832.31bf28","92dee517.041028","ce90a809.365528","4d821497.3ac9ac","bb175352.d3a6d","1868f533.5d5d1b","c535d1b3.3325f","43ee4152.fab5d","1618d258.7486ae","c252ed05.9b99f","307054cf.25730c","8576e473.d1f3e8","9695c264.9ae04","94083d5a.ebf56","48826944.8a8cc8"]]},{"id":"bb175352.d3a6d","type":"set","name":"set nig.vpn-bindings","xml":"<set>\n<parameter name='nig.vpn-bindings.id' value=\"`$vpn-binding.vpn-binding-id`\" />\n<parameter name='nig.vpn-bindings.global-route-target' value=\"`$vpn-binding.global-route-target`\" />\n<parameter name='nig.vpn-bindings.aic-zone' value=\"`$aaiapi.output.cloud-zone`\" />\n<parameter name='nig.vpn-bindings.route-target-role' value=\"`$vpn-binding.route-target-role`\" />\n\n","comments":"","x":755.2925186157227,"y":1952.6742695571156,"z":"d5178f42.44976","wires":[]},{"id":"6e7beecb.c5df7","type":"set","name":"copy input to service-data","xml":"<set>\n<parameter name='service-data.networks.network[$nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-request-input.' value='`$network-topology-operation-input.network-request-input.`' />\n<parameter name='service-data.networks.network[$nidx].network-id' value='`$tmp.l3-network.network-id`' />","comments":"","x":906.2679061889648,"y":338.28430461883545,"z":"d5178f42.44976","wires":[]},{"id":"a8edbe94.39dac","type":"set","name":"set onap-model-info","xml":"<set>\n<parameter name='tmp.l3-network.model-invariant-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\" />\n<parameter name='tmp.l3-network.model-version-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-version`\" />\n<parameter name='tmp.l3-network.model-customization-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\" />\n<parameter name='s-onap-model-information.model-invariant-uuid' value='`$service-model.invariant-uuid`' />\n<parameter name='s-onap-model-information.model-version' value='`$service-model.version`' />\n<parameter name='s-onap-model-information.model-uuid' value='`$service-model.service-uuid`' />\n<parameter name='s-onap-model-information.model-name' value='`$service-model.name`' />\n<parameter name='n-onap-model-information.model-invariant-uuid' value='`$network-model.invariant-uuid`' />\n<parameter name='n-onap-model-information.model-version' value='`$network-model.version`' />\n<parameter name='n-onap-model-information.model-uuid' value='`$network-model.uuid`' />\n<parameter name='n-onap-model-information.model-name' value='`$network-model.name`' />","comments":"","x":892.8668212890625,"y":372.7048645019531,"z":"d5178f42.44976","wires":[]},{"id":"d4e2ddfb.452e","type":"set","name":"set onap-model-info with mysql data","xml":"<set>\n<parameter name='service-data.networks.network[$nidx]..network-data.service-information.onap-model-information.' value=\"`$s-onap-model-information.`\" />\n<parameter name='service-data.networks.network[$nidx]..network-data.network-information.onap-model-information.' value=\"`$n-onap-model-information.`\" />\n","comments":"","x":946.2596778869629,"y":409.13341426849365,"z":"d5178f42.44976","wires":[]},{"id":"6b6b467e.e2b328","type":"set","name":"set: tmp.error-message to \"\", set tmp.l3-network","xml":"<set>\n\t<parameter name=\"tmp.error-message\" value=\"\"/>\n\t<parameter name=\"tmp.l3-network.network-instance-group-id\" value=\"`$network-topology-operation-input.network-request-input.network-instance-group-id`\" />\n\t<parameter name='tmp.l3-network.network-type' value=\"`$network-model.network-type`\" />\n\t<parameter name='tmp.l3-network.network-role' value=\"`$network-model.network-role`\" />\n\t<parameter name='tmp.l3-network.network-technology' value=\"`$network-model.network-technology`\" />","comments":"","x":981.4751014709473,"y":298.4915442466736,"z":"d5178f42.44976","wires":[]},{"id":"93ad9038.590b3","type":"set","name":"set: get-complex-resource-service-model-input.customization-uuid","xml":"<set>\n\t<parameter name=\"get-complex-resource-service-model-input.customization-uuid\" value=\"`$aaiapi.output.collection-customization-uuid`\"/>","comments":"","x":908.3611755371094,"y":1220.3469247817993,"z":"d5178f42.44976","wires":[]},{"id":"22e7595d.96a916","type":"call","name":"call aai-get-network-instance-group","xml":"<call module='GENERIC-RESOURCE-API' rpc='aai-get-network-instance-group' mode='sync' >\n","comments":"","outputs":1,"x":834.7896575927734,"y":1046.6325091720792,"z":"d5178f42.44976","wires":[[]]},{"id":"85da8119.1634e","type":"set","name":"set: get-data-from-policy-input.policy-instance-name for subnet assignment","xml":"<set>\n\t<parameter name=\"get-data-from-policy-input.policy-instance-name\" value=\"`$get-complex-resource-service-model-output.subnet-assignment-policy`\" />\n\t","comments":"","x":953.1470718383789,"y":1405.6041303275852,"z":"d5178f42.44976","wires":[]},{"id":"f05d6459.4c0c08","type":"call","name":"call get-data-from-policy","xml":"<call module='GENERIC-RESOURCE-API' rpc='get-data-from-policy' mode='sync' >\n","comments":"","outputs":1,"x":789.1469879150391,"y":1444.6040411590366,"z":"d5178f42.44976","wires":[[]]},{"id":"7a297c31.4a0a24","type":"comment","name":"Determine if subnet use is unique or shared","info":"","comments":"","x":856.1469192504883,"y":1374.604030191782,"z":"d5178f42.44976","wires":[]},{"id":"1eee48d9.dde947","type":"set","name":"set: nig.subnet-assignment-policy.subnet-use","xml":"<set>\n\t<parameter name=\"nig.subnet-assignment-policy.subnet-use\" value=\"`$get-data-from-policy-output.ip-assignment`\" />\n\t","comments":"","x":858.6469116210938,"y":1480.6040077804355,"z":"d5178f42.44976","wires":[]},{"id":"ad080ed7.e2805","type":"set","name":"set: cloud owner/region","xml":"<set>\n\t<parameter name=\"aaiapi.input.cloud-owner\" value=\"`$prop.cloud-region.cloud-owner`\" />\n\t<parameter name=\"aaiapi.input.cloud-region-id\" value=\"`$network-topology-operation-input.network-request-input.aic-cloud-region`\" />\n\n\t","comments":"","x":773.7544403076172,"y":1794.0051078796387,"z":"d5178f42.44976","wires":[]},{"id":"83f50832.31bf28","type":"call","name":"call aai-get-aic-zone","xml":"<call module='GENERIC-RESOURCE-API' rpc='aai-get-aic-zone' mode='sync' >\n","comments":"","outputs":1,"x":760.7544021606445,"y":1825.005069732666,"z":"d5178f42.44976","wires":[[]]},{"id":"ce90a809.365528","type":"set","name":"set params for mS","xml":"<set>\n\t<parameter name=\"nig.cloud-zone\" value=\"`$aaiapi.output.cloud-zone`\" />\n\t<parameter name=\"rt.aic-zone\" value=\"`$aaiapi.output.cloud-zone`\" />\n\t<parameter name=\"rt.resource\" value=\"NetworkID\" />\n\t<parameter name=\"rt.resource-value\" value=\"`$tmp.l3-network.network-id`\" />\n\t<parameter name=\"rt.network-name\" value=\"`$tmp.l3-network.network-name`\" />\n\t<parameter name=\"rt.service-instance-id\" value=\"`$network-topology-operation-input.service-information.service-instance-id`\" />\n\t<parameter name=\"rt.network-instance-group-id\" value=\"`$tmp.l3-network.network-instance-group-id`\" />","comments":"","x":751.2543869018555,"y":1886.0055103302002,"z":"d5178f42.44976","wires":[]},{"id":"eef385b1.a41f98","type":"comment","name":"Get aic zone","info":"","comments":"","x":742.0043296813965,"y":1760.0050220489502,"z":"d5178f42.44976","wires":[]},{"id":"4d821497.3ac9ac","type":"call","name":"call create-route-target-and-vpn-binding","xml":"<call module='GENERIC-RESOURCE-API' rpc='create-route-target-and-vpn-binding' mode='sync' >\n","comments":"","outputs":1,"x":818.0046463012695,"y":1922.005283355713,"z":"d5178f42.44976","wires":[[]]},{"id":"b1ce3134.3e591","type":"get-resource","name":"get AnAI - l3-network by network-id","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.l3-network\">\n","comments":"","outputs":1,"x":826.1826171875,"y":936.2040013672085,"z":"d5178f42.44976","wires":[["cd276bd4.4ec2d8","1fb23d1f.248fb3"]]},{"id":"cd276bd4.4ec2d8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1106.1826133728027,"y":936.203972756979,"z":"d5178f42.44976","wires":[["c9ac2f78.68a14"]]},{"id":"1fb23d1f.248fb3","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1109.1825408935547,"y":972.2040061355801,"z":"d5178f42.44976","wires":[[]]},{"id":"c9ac2f78.68a14","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"'Error searching for l3-network with network-id =' + $tmp.l3-network.network-id + 'from AnAI. Network should be created by MSO'\" />","comments":"","x":1258.2936973571777,"y":936.4262017608853,"z":"d5178f42.44976","wires":[]},{"id":"8417006f.508b2","type":"comment","name":"Verify the network exists in AAI, else throw error","info":"","comments":"","x":856.1826019287109,"y":892.2040490509244,"z":"d5178f42.44976","wires":[]},{"id":"fd2df853.9f51c8","type":"execute","name":"execute RestApiCallNode - Get network instance group by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.nig-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"mdsal-nig\" />\n\n","comments":"","outputs":1,"x":2543.5757904052734,"y":3081.1475110054016,"z":"d5178f42.44976","wires":[["b1af37b5.b16318","1d58b7d3.9f05e8"]]},{"id":"b1af37b5.b16318","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2882.371627807617,"y":3044.455379009247,"z":"d5178f42.44976","wires":[["851e27ab.fc1778"]]},{"id":"851e27ab.fc1778","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":3061.3716926574707,"y":3044.955325603485,"z":"d5178f42.44976","wires":[[]]},{"id":"7aa290b9.dbfb","type":"comment","name":"Delete network-instance-group from mdsal on rollback","info":"","comments":"","x":2518.979106903076,"y":3048.0269055366516,"z":"d5178f42.44976","wires":[]},{"id":"1d58b7d3.9f05e8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2880.223400115967,"y":3124.5214619636536,"z":"d5178f42.44976","wires":[["64bdc280.770b8c"]]},{"id":"64bdc280.770b8c","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":3060.2233505249023,"y":3125.188012599945,"z":"d5178f42.44976","wires":[[]]},{"id":"c535d1b3.3325f","type":"save","name":"save relationship: l3-network to instance group","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" \n\tforce=\"true\" \n\tlocal-only=\"false\">\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"instance-group\" />\n\t<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/aai/v$/network/instance-groups/instance-group/'+ $tmp.network-instance-group-id`\" />\n","comments":"","outputs":1,"x":833.0040893554688,"y":2601.004062652588,"z":"d5178f42.44976","wires":[["3203a1dc.f1b18e","b974bb76.717a98"]]},{"id":"3203a1dc.f1b18e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1118.077003479004,"y":2596.479751586914,"z":"d5178f42.44976","wires":[["e5a724d0.277648"]]},{"id":"e5a724d0.277648","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1305.969882965088,"y":2596.1158590316772,"z":"d5178f42.44976","wires":[["e6189e22.f13c9"]]},{"id":"e6189e22.f13c9","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 instance-group relationship for l3-network in AnAI where instance-group-id = ' + $tmp.network-instance-group-id`\"/>","comments":"","x":1519.069423675537,"y":2596.8657579421997,"z":"d5178f42.44976","wires":[]},{"id":"b974bb76.717a98","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1126.162940979004,"y":2639.1310234069824,"z":"d5178f42.44976","wires":[["e5a724d0.277648"]]},{"id":"750843e0.4ef3ac","type":"comment","name":"Save relationship to Network instance group","info":"","comments":"","x":825.0040893554688,"y":2566.004069328308,"z":"d5178f42.44976","wires":[]},{"id":"9695c264.9ae04","type":"set","name":"set object-path","xml":"<set>\n<parameter name='network-object-path'\n value=\"`$tmp.l3-network.self-link`\"/>\n \n","comments":"","x":749.0040817260742,"y":3179.004289627075,"z":"d5178f42.44976","wires":[]},{"id":"8576e473.d1f3e8","type":"set","name":"set networkId","xml":"<set>\n<parameter name='networkId' value='`$tmp.l3-network.network-id`' />\n","comments":"","x":745.4325790405273,"y":3135.2896909713745,"z":"d5178f42.44976","wires":[]},{"id":"48826944.8a8cc8","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name='' value='' />\n","comments":"","x":755.0040283203125,"y":3378.7184524536133,"z":"d5178f42.44976","wires":[]},{"id":"94083d5a.ebf56","type":"set","name":"set network-level-oper-status","xml":"<set>\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />\n","comments":"","x":790.2530822753906,"y":3225.5032529830933,"z":"d5178f42.44976","wires":[]},{"id":"8a263bc3.22e118","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1057.4002418518066,"y":2768.094113200903,"z":"d5178f42.44976","wires":[["8567ebd6.a38748"]]},{"id":"8567ebd6.a38748","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1237.2931213378906,"y":2767.730220645666,"z":"d5178f42.44976","wires":[["4fa520ad.fc33e"]]},{"id":"4fa520ad.fc33e","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":1475.3926887512207,"y":2767.4801433980465,"z":"d5178f42.44976","wires":[]},{"id":"3d5a9b10.7d0c54","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1065.13669374254,"y":2810.5746375819053,"z":"d5178f42.44976","wires":[["8567ebd6.a38748"]]},{"id":"43ee4152.fab5d","type":"save","name":"save relationship: service-instance","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network:relationship-list\" \n\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"service-instance\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"customer.global-customer-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$service-data.service-information.global-customer-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"service-subscription.service-type\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$service-data.service-information.subscription-service-type`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"service-instance.service-instance-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$service-data.service-information.service-instance-id`\" />","comments":"","outputs":1,"x":800.3790168762207,"y":2766.5036114156246,"z":"d5178f42.44976","wires":[["8a263bc3.22e118","3d5a9b10.7d0c54"]]},{"id":"307054cf.25730c","type":"set","name":"set network in service-data","xml":"<set>\n<parameter name=\"service-data.networks.network[$nidx].network-id\" value='`$tmp.l3-network.network-id`' />\n<parameter name=\"service-data.networks.network[$nidx].network-data.network-topology.\" value='$network-topology.' />\n<parameter name=\"service-data.networks.network_length\" value='`$nidx_len`' />\n\n","comments":"","x":786.7539253234863,"y":3054.7535923421383,"z":"d5178f42.44976","wires":[]},{"id":"1618d258.7486ae","type":"set","name":"set network-topology-identifier-structure in service-data","xml":"<set>\n<parameter name='network-topology.network-topology-identifier-structure.' value='`$tmp.l3-network.`' />\n<parameter name='network-topology.tenant' value='`$network-topology-operation-input.network-request-input.tenant`' />\n<parameter name='network-topology.onap-model-information.' value='`$network-topology-operation-input.network-information.onap-model-information.`' />\n<parameter name='network-topology.network-parameters.' value='`$network-topology-operation-input.network-request-input.network-parameters.`' />\n<parameter name='network-topology.aic-cloud-region' value='`$network-topology-operation-input.network-request-input.aic-cloud-region`' />","comments":"","x":870.50390625,"y":2947.6109828948975,"z":"d5178f42.44976","wires":[]},{"id":"b93d2eef.37f8c","type":"call","name":"call get-complex-resource-service-model","xml":"<call module='GENERIC-RESOURCE-API' rpc='get-complex-resource-service-model' mode='sync' >\n","comments":"","outputs":1,"x":833.57568359375,"y":1256.3110961914062,"z":"d5178f42.44976","wires":[[]]},{"id":"a7165e9f.1f2c4","type":"comment","name":"Get complex service model info","info":"","comments":"","x":796.8969650268555,"y":1181.6325550079346,"z":"d5178f42.44976","wires":[]},{"id":"e090256e.e635b8","type":"set","name":"set aaiapi.input.network-instance-group-id","xml":"<set>\n<parameter name='aaiapi.input.network-instance-group-id' value=\"`$tmp.l3-network.network-instance-group-id`\" />","comments":"","x":854.2896728515625,"y":1011.6324462890625,"z":"d5178f42.44976","wires":[]},{"id":"1868f533.5d5d1b","type":"switchNode","name":"switch nig.subnet-assignment-policy.subnet-use","xml":"<switch test='`$nig.subnet-assignment-policy.subnet-use`'>\n","comments":"","outputs":1,"x":853.7540588378906,"y":2008.0041007995605,"z":"d5178f42.44976","wires":[["80ea04d2.713458","bb4bfbdc.3ac068","5d5a651b.69c2fc"]]},{"id":"80ea04d2.713458","type":"other","name":"outcome NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1188.7540283203125,"y":2010.004098892212,"z":"d5178f42.44976","wires":[["c40792bd.8000b"]]},{"id":"e259f887.453e58","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1395.0397911071777,"y":2082.5756874084473,"z":"d5178f42.44976","wires":[["da09529c.7bd81"]]},{"id":"bb4bfbdc.3ac068","type":"other","name":"outcome unique","xml":"<outcome value='unique'>\n","comments":"","outputs":1,"x":1191.7541580200195,"y":2046.0042152404785,"z":"d5178f42.44976","wires":[["e8c6568f.40eef8"]]},{"id":"5d5a651b.69c2fc","type":"other","name":"outcome shared","xml":"<outcome value='shared'>\n","comments":"","outputs":1,"x":1189.7540283203125,"y":2083.004098892212,"z":"d5178f42.44976","wires":[["e259f887.453e58"]]},{"id":"da09529c.7bd81","type":"switchNode","name":"switch first-network","xml":"<switch test='`$tmp.first-network`'>\n","comments":"","outputs":1,"x":1622.7540283203125,"y":2083.0041546821594,"z":"d5178f42.44976","wires":[["fab5e305.08848","a54c9af5.901b08"]]},{"id":"fab5e305.08848","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1864.754020690918,"y":1802.0040340423584,"z":"d5178f42.44976","wires":[["e8c6568f.40eef8"]]},{"id":"a54c9af5.901b08","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1885.7541704177856,"y":2639.0047483444214,"z":"d5178f42.44976","wires":[["5c068cfe.3f07a4"]]},{"id":"40a6453b.1fd08c","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=\"Subnet use not set\"/>","comments":"","x":1614.7540664672852,"y":2010.0044298171997,"z":"d5178f42.44976","wires":[]},{"id":"c1d9c0b7.72207","type":"switchNode","name":"switch tmp.nig-preexists","xml":"<switch test='`$tmp.nig-preexists`'>\n","comments":"","outputs":1,"x":1782.0039978027344,"y":3047.0039596557617,"z":"d5178f42.44976","wires":[["d00ae7b1.1e2958","b8eeae0.6645e5"]]},{"id":"d00ae7b1.1e2958","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1995.0040817260742,"y":3015.4327602386475,"z":"d5178f42.44976","wires":[["36213aaa.5381f6"]]},{"id":"b8eeae0.6645e5","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1994.004056930542,"y":3079.0040760040283,"z":"d5178f42.44976","wires":[["3ed49ae5.86c5a6"]]},{"id":"3ed49ae5.86c5a6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2180.4326934814453,"y":3079.2900104522705,"z":"d5178f42.44976","wires":[["fd2df853.9f51c8"]]},{"id":"36213aaa.5381f6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2177.7897987365723,"y":3013.8610706329346,"z":"d5178f42.44976","wires":[[]]},{"id":"c40792bd.8000b","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1383.5040283203125,"y":2011.004098892212,"z":"d5178f42.44976","wires":[["40a6453b.1fd08c","c1d9c0b7.72207"]]},{"id":"35159ac5.660f16","type":"comment","name":"Need to add more thorough rollback","info":"","comments":"","x":1789.1827850341797,"y":2985.0042428970337,"z":"d5178f42.44976","wires":[]},{"id":"f241bc6f.abe91","type":"call","name":"call naming-policy-generate-name","xml":"<call module='GENERIC-RESOURCE-API' rpc='naming-policy-generate-name' mode='sync' >\n","comments":"","outputs":1,"x":821.6469955444336,"y":1620.6043549178867,"z":"d5178f42.44976","wires":[[]]},{"id":"47106adb.c7b994","type":"set","name":"set parameters for generate-unique-name","xml":"<set>\n<parameter name='naming-policy-generate-name-input.policy-instance-name' value='`$get-complex-resource-service-model-output.network-naming-policy`' />\n<parameter name='naming-policy-generate-name-input.context-id' value='`$tmp.l3-network.network-id`' />\n<parameter name='naming-policy-generate-name-input.naming-type' value='NETWORK' />\n<parameter name='naming-policy-generate-name-input.action' value='ASSIGN' />\n<parameter name='naming-policy-generate-name-input.query-parameter' value='`$network-model.customization-uuid`' />\n\n\n","comments":"","x":842.3971710205078,"y":1583.6043979524402,"z":"d5178f42.44976","wires":[]},{"id":"fe4bedce.dccf4","type":"set","name":"set network name","xml":"<set>\n<parameter name='tmp.l3-network.network-name' value='`$naming-policy-generate-name-output.network-name`' />\n\n\n\n","comments":"","x":770.8970489501953,"y":1655.604353010538,"z":"d5178f42.44976","wires":[]},{"id":"49a4db31.f771e4","type":"comment","name":"Generate a name","info":"","comments":"","x":764.64697265625,"y":1543.6043673156528,"z":"d5178f42.44976","wires":[]},{"id":"36134ff2.81826","type":"set","name":"set tmp.network-topology","xml":"<set>\n<parameter name='network-topology.network-topology-identifier-structure.network-id' value=\"`$tmp.l3-network.network-id`\" />\n<parameter name='network-topology.network-topology-identifier-structure.network-name' value=\"`$tmp.l3-network.network-name`\" />\n<parameter name='network-topology.network-topology-identifier-structure.network-instance-group-id' value=\"`$tmp.l3-network.network-instance-group-id`\" />\n<parameter name='network-topology.network-topology-identifier-structure.network-type' value=\"`$tmp.l3-network.network-type`\" />\n<parameter name='network-topology.network-topology-identifier-structure.network-role' value=\"`$tmp.l3-network.network-role`\" />\n<parameter name='network-topology.network-topology-identifier-structure.network-technology' value=\"`$tmp.l3-network.network-technology`\" />\n<parameter name='network-topology.region-identifier.tenant' value=\"`$network-topology-operation-input.network-request-input.tenant`\" />\n<parameter name='network-topology.region-identifier.aic-cloud-region' value=\"`$network-topology-operation-input.network-request-input.aic-cloud-region`\" />\n<parameter name='network-topology.region-identifier.aic-clli' value=\"`$network-topology-operation-input.network-request-input.aic-clli`\" />\n<parameter name='network-topology.onap-model-information.' value=\"`$network-topology-operation-input.network-information.onap-model-information.`\" />\n<parameter name='network-topology.network-parameters.' value=\"`$network-topology-operation-input.network-request-input.network-input-parameters.`\" />\n<parameter name='nig.network.network-id' value=\"`$tmp.l3-network.network-id`\" />","comments":"","x":795.3969892263412,"y":1690.604379713419,"z":"d5178f42.44976","wires":[]},{"id":"58f3035b.c67d9c","type":"set","name":"set: nig identifier data","xml":"<set>\n\t<parameter name=\"nig.network-instance-group-id\" value=\"`$tmp.l3-network.network-instance-group-id`\"/>\n\t<parameter name=\"nig.network-instance-group-function\" value=\"`$aaiapi.output.collection-function`\"/>\n\t<parameter name=\"nig.service-instance-id\" value=\"`$network-topology-operation-input.service-information.service-instance-id`\"/>\n","comments":"","x":770.9164733886719,"y":1301.3838511108188,"z":"d5178f42.44976","wires":[]},{"id":"c8f94428.c0f5e8","type":"set","name":"set network-id","xml":"<set>\n<parameter name='nig.networks.network[$ngnidx].network-id' value=\"`$tmp.l3-network.network-id`\" />","comments":"","x":751.8531799316406,"y":1332.3834181426791,"z":"d5178f42.44976","wires":[]},{"id":"a3dcfb29.be3be8","type":"switchNode","name":"switch tmp.nidx ","xml":"<switch test=\"`$tmp.nidx`\">\n\n","comments":"","outputs":1,"x":892.2912139892578,"y":117.14844608306885,"z":"d5178f42.44976","wires":[["30c9e880.3ebc78","7464fb80.2dd3b4"]]},{"id":"30c9e880.3ebc78","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1118.5768585205078,"y":117.14839267730713,"z":"d5178f42.44976","wires":[["9337c637.20ec98"]]},{"id":"9337c637.20ec98","type":"switchNode","name":"switch service-data.networks_length","xml":"<switch test='`$service-data.networks.network_length`'>\n","comments":"","outputs":1,"x":1367.8029518127441,"y":118.33930969238281,"z":"d5178f42.44976","wires":[["b0241fa7.69347","6cbf8a0c.d761d4"]]},{"id":"b0241fa7.69347","type":"other","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1665.898292541504,"y":102.14861726760864,"z":"d5178f42.44976","wires":[["173ed7db.4f7aa8"]]},{"id":"173ed7db.4f7aa8","type":"set","name":"set nidx","xml":"<set>\n<parameter name='nidx' value='0' />\n<parameter name='nidx_len' value='1'/>\n","comments":"","x":1836.6127471923828,"y":102.7200288772583,"z":"d5178f42.44976","wires":[]},{"id":"6cbf8a0c.d761d4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1663.7554368972778,"y":142.86289072036743,"z":"d5178f42.44976","wires":[["254ad291.d12d8e"]]},{"id":"254ad291.d12d8e","type":"set","name":"set nidx","xml":"<set>\n<parameter name='nidx' value='`$service-data.networks.network_length`' />\n<parameter name='nidx_len' value='`$service-data.networks.network_length + 1`' />\n","comments":"","x":1836.3268671035767,"y":143.72009134292603,"z":"d5178f42.44976","wires":[]},{"id":"7464fb80.2dd3b4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1120.0054931640625,"y":155.71986484527588,"z":"d5178f42.44976","wires":[["5b261be0.07e9c4"]]},{"id":"5b261be0.07e9c4","type":"set","name":"set nidx","xml":"<set>\n<parameter name='nidx' value='`$tmp.nidx`' />\n<parameter name='nidx_len' value='`$service-data.networks.network_length`' />\n","comments":"","x":1282.8626174926758,"y":155.71989059448242,"z":"d5178f42.44976","wires":[]},{"id":"44bed9f5.f8a198","type":"switchNode","name":"switch tmp.ngidx ","xml":"<switch test=\"`$tmp.ngidx`\">\n\n","comments":"","outputs":1,"x":892.8627777099609,"y":204.29132843017578,"z":"d5178f42.44976","wires":[["d6e4ec1a.e6e93","8751a27d.a5675"]]},{"id":"d6e4ec1a.e6e93","type":"outcome","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1134.291275024414,"y":202.86267757415771,"z":"d5178f42.44976","wires":[["b03031bc.a8721"]]},{"id":"b03031bc.a8721","type":"switchNode","name":"switch service-data.network-instance-groups.network-instance-group_len","xml":"<switch test='`$service-data.network-instance-groups.network-instance-group_len`'>\n","comments":"","outputs":1,"x":1499.231704711914,"y":204.05360412597656,"z":"d5178f42.44976","wires":[["f57cf34f.7619f","d6ea05bc.20b178"]]},{"id":"f57cf34f.7619f","type":"other","name":"Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1913.7556266784668,"y":204.29148191213608,"z":"d5178f42.44976","wires":[["b0c63751.bc3848"]]},{"id":"b0c63751.bc3848","type":"set","name":"set ngidx","xml":"<set>\n<parameter name='ngidx' value='0' />\n<parameter name='ngidx_len' value='1'/>\n<parameter name=\"ngnidx\" value='0' />\n<parameter name=\"nig.preexists\" value=\"false\"/>\n<parameter name=\"nig.first-network\" value=\"true\"/>\n<parameter name=\"nig.networks.network_len\" value=\"1\" />\n\n","comments":"","x":2086.612817764282,"y":202.14860528707504,"z":"d5178f42.44976","wires":[]},{"id":"d6ea05bc.20b178","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1912.3271217346191,"y":238.57717990875244,"z":"d5178f42.44976","wires":[["9b5fbee6.21443"]]},{"id":"9b5fbee6.21443","type":"set","name":"set ngidx","xml":"<set>\n<parameter name='ngidx' value='`$service-data.network-instance-groups.network-instance-group_length`' />\n<parameter name='ngidx_len' value='`$service-data.network-instance-groups.network-instance-group_length + 1`' />\n<parameter name=\"nig.preexists\" value=\"false\"/>\n<parameter name=\"ngnidx\" value='0' />\n<parameter name=\"nig.first-network\" value=\"true\"/>\n<parameter name=\"nig.networks.network_len\" value=\"1\" />","comments":"","x":2088.041379928589,"y":237.72010797262192,"z":"d5178f42.44976","wires":[]},{"id":"8751a27d.a5675","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1135.7199096679688,"y":241.43414974212646,"z":"d5178f42.44976","wires":[["8415c5ef.359e28"]]},{"id":"16fb0168.14aadf","type":"set","name":"set ngidx","xml":"<set>\n<parameter name='ngidx' value='`$tmp.ngidx`' />\n<parameter name='ngidx_len' value='`$service-data.network-instance-groups.network-instance-group_length`' />\n<parameter name=\"nig.preexists\" value=\"false\"/>","comments":"","x":1504.2913513183594,"y":240.00561666488647,"z":"d5178f42.44976","wires":[]},{"id":"8415c5ef.359e28","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1308.5770263671875,"y":241.4341583251953,"z":"d5178f42.44976","wires":[["16fb0168.14aadf","ce6e4cc2.462f2"]]},{"id":"ce6e4cc2.462f2","type":"switchNode","name":"switch networks.network_len","xml":"<switch test='`$ctx.network-instance-group-data.networks.network_len`'>\n","comments":"","outputs":1,"x":1574.2918243408203,"y":275.71987533569336,"z":"d5178f42.44976","wires":[["4e750736.532bf8","d95056d5.924ce8","c969201f.52f67"]]},{"id":"4e750736.532bf8","type":"other","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":1831.1484718322754,"y":308.8269855976105,"z":"d5178f42.44976","wires":[["c10f69b8.9aebd8"]]},{"id":"d95056d5.924ce8","type":"other","name":"null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1829.148582458496,"y":277.8270561695099,"z":"d5178f42.44976","wires":[["c10f69b8.9aebd8"]]},{"id":"c10f69b8.9aebd8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2026.1744999355742,"y":308.38727392090686,"z":"d5178f42.44976","wires":[["763b73e5.e9fa9c"]]},{"id":"763b73e5.e9fa9c","type":"set","name":"set: first-network = true","xml":"<set>\n<parameter name=\"nig.first-network\" value=\"true\" />\n<parameter name=\"ngnidx\" value=\"0\" />\n<parameter name=\"nig.networks.network_len\" value=\"1\" />","comments":"","x":2258.6746372646758,"y":307.1373034848107,"z":"d5178f42.44976","wires":[]},{"id":"c969201f.52f67","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1831.8184700012207,"y":344.0778257846832,"z":"d5178f42.44976","wires":[["4933902d.618d4"]]},{"id":"4933902d.618d4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2027.711441040039,"y":344.07779335975647,"z":"d5178f42.44976","wires":[["cdb6a15a.3212a","798af161.c715b"]]},{"id":"cdb6a15a.3212a","type":"set","name":"set: first-network = false","xml":"<set>\n<parameter name=\"nig.first-network\" value=\"false\" />\n<parameter name=\"ngnidx\" value=\"`$ctx.network-instance-group-data.networks.network_length`\" />\n<parameter name=\"nig.networks.network_len\" value=\"`$ctx.network-instance-group-data.networks.network_length + 1`\" />\n<parameter name=\"nig.\" value=\"`$ctx.network-instance-group-data.`\" />","comments":"","x":2259.2117652893066,"y":375.8278331756592,"z":"d5178f42.44976","wires":[]},{"id":"798af161.c715b","type":"set","name":"set: nig data","xml":"<set>\n<parameter name=\"nig.\" value=\"`$ctx.network-instance-group-data.`\" />","comments":"","x":2227.503879547119,"y":342.0039052963257,"z":"d5178f42.44976","wires":[]},{"id":"5c068cfe.3f07a4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2097.004189491272,"y":2639.004349708557,"z":"d5178f42.44976","wires":[["48c61180.635eb"]]},{"id":"48c61180.635eb","type":"switchNode","name":"switch ngnidx","xml":"<switch test='`$ngnidx`'>\n","comments":"","outputs":1,"x":2291.0042581558228,"y":2639.004288673401,"z":"d5178f42.44976","wires":[["aa783e80.a6c83","554f9fef.e514d"]]},{"id":"aa783e80.a6c83","type":"outcome","name":"0","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2482.004204750061,"y":2613.004267692566,"z":"d5178f42.44976","wires":[["2a71e575.36750a"]]},{"id":"554f9fef.e514d","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2483.004288673401,"y":2644.004319190979,"z":"d5178f42.44976","wires":[[]]},{"id":"2a71e575.36750a","type":"for","name":"for 0..subnet_length","xml":"<for index='sidx' start='0' end='`$tmp.l3-network.subnet_length`' >\n","comments":"","outputs":1,"x":2677.254292488098,"y":2612.0042600631714,"z":"d5178f42.44976","wires":[["46adadcf.b10ea4"]]},{"id":"46adadcf.b10ea4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2877.396858215332,"y":2616.8931579589844,"z":"d5178f42.44976","wires":[["fae75c2d.25c5c","896df025.a1fea"]]},{"id":"fae75c2d.25c5c","type":"set","name":"set: tmp.subnet-id","xml":"<set>\n<parameter name=\"tmp.subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\"/>\n\t","comments":"","x":3099.1748046875,"y":2585.7183837890625,"z":"d5178f42.44976","wires":[]},{"id":"896df025.a1fea","type":"switchNode","name":"switch dhcp-enabled","xml":"<switch test='`$tmp.l3-network.subnet[$sidx].dhcp-enabled`'>\n","comments":"","outputs":1,"x":3106.80952835083,"y":2622.015778541565,"z":"d5178f42.44976","wires":[[]]},{"id":"e8c6568f.40eef8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2041.0041122436523,"y":1624.0039863586426,"z":"d5178f42.44976","wires":[["e65e043c.0d83c8","9ab51d6.254d9e","727e503e.e99e1","76567230.ae29cc","2c47409f.cb9c7","1451a72d.c96e71","6d06e17a.7f1a2","95e4e3b2.775858"]]},{"id":"e65e043c.0d83c8","type":"set","name":"set: input for process-generic-eipam-pools","xml":"<set>\n<parameter name=\"tmp.skip-first-level\" value=\"Y\"/>\n<parameter name=\"tmp.allocate-subnet-flag\" value=\"Y\"/>\n<parameter name=\"generate-FQPN-input.aic-cloud-region\" value=\"`$aai.cloud-region.cloud-region-id`\" />\n<parameter name=\"generate-FQPN-input.network-name\" value=\"`$network-topology.network-topology-identifier-structure.network-name`\" />\n<parameter name=\"generate-FQPN-input.network-role\" value=\"`$network-topology.network-topology-identifier-structure.network-role`\" />\n<parameter name=\"generate-FQPN-input.network-collection\" value=\"`$aaiapi.output.collection-name`\" />\n<parameter name=\"generate-FQPN-input.network-id\" value=\"`$network-topology.network-topology-identifier-structure.network-id`\" />\n<parameter name=\"tmp.network-id\" value=\"`network-topology.network-topology-identifier-structure.network-id`\" />\n<parameter name=\"tmp.network-instance-group-id\" value=\"`$network-topology.network-topology-identifier-structure.network-instance-group-id`\" />\n\n<!-- the following are not set by calling dg\ngenerate-FQPN-input.subnet-role\ngenerate-FQPN-input.zone\ngenerate-FQPN-input.equipment\n-->\n<!-- network model is already in contect memory -->\n<!-- aai.cloud-region.cloud-region-id is already in contect memory -->\n\n\t","comments":"","x":2347.2537841796875,"y":1606.0040283203125,"z":"d5178f42.44976","wires":[]},{"id":"9ab51d6.254d9e","type":"switchNode","name":"switch $network-model.eipam-v4-address-plan is not null","xml":"<switch test=\"`$network-model.eipam-v4-address-plan != ''`\">\n","comments":"","outputs":1,"x":2394.25390625,"y":1723.00390625,"z":"d5178f42.44976","wires":[["c9d4cba4.24fff8"]]},{"id":"42389da4.7eb2c4","type":"comment","name":"Process v4 plan","info":"","comments":"","x":2260.254005432129,"y":1691.0040283203125,"z":"d5178f42.44976","wires":[]},{"id":"c9d4cba4.24fff8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2701.253890991211,"y":1691.0039176940918,"z":"d5178f42.44976","wires":[["1e20a4e2.74b9eb"]]},{"id":"1e20a4e2.74b9eb","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2865.2539138793945,"y":1691.0039367675781,"z":"d5178f42.44976","wires":[["8a474f48.9398f","11cb7113.5402d7"]]},{"id":"727e503e.e99e1","type":"switchNode","name":"switch $network-model.eipam-v6-address-plan is not null","xml":"<switch test=\"`$network-model.eipam-v6-address-plan != ''`\">\n","comments":"","outputs":1,"x":2394.2537841796875,"y":1816.00390625,"z":"d5178f42.44976","wires":[["e81185af.c04448"]]},{"id":"2765b6a2.a89dfa","type":"comment","name":"Process v6 plan","info":"","comments":"","x":2265.2538452148438,"y":1784.0040893554688,"z":"d5178f42.44976","wires":[]},{"id":"e81185af.c04448","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2709.253776550293,"y":1816.0038986206055,"z":"d5178f42.44976","wires":[["6635ad54.167cd4"]]},{"id":"6635ad54.167cd4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2873.2537994384766,"y":1816.0039176940918,"z":"d5178f42.44976","wires":[["3e402883.aa4e28","31489f02.5d1d88"]]},{"id":"8a474f48.9398f","type":"set","name":"set: v4plan in mdsal","xml":"<set>\n<parameter name=\"network-topology.network-identifier-structure.eipam-v4-address-plan\" value=\"`$network-model.eipam-v4-address-plan`\" />\n\t","comments":"","x":3061.254035949707,"y":1691.0039672851562,"z":"d5178f42.44976","wires":[]},{"id":"3e402883.aa4e28","type":"set","name":"set: v6plan in mdsal","xml":"<set>\n<parameter name=\"network-topology.network-identifier-structure.eipam-v6-address-plan\" value=\"`$network-model.eipam-v4-address-plan`\" />\n\t","comments":"","x":3076.2538146972656,"y":1815.0039367675781,"z":"d5178f42.44976","wires":[]},{"id":"92dee517.041028","type":"set","name":"set tmp.network-topology","xml":"<set>\n<parameter name='network-topology.region-identifier.aic-clli' value=\"`$aaiapi.output.aic-clli`\" />\n","comments":"","x":775.25390625,"y":1853.0040283203125,"z":"d5178f42.44976","wires":[]},{"id":"76567230.ae29cc","type":"call","name":"call process-generic-eipam-pools","xml":"<call module='GENERIC-RESOURCE-API' rpc='process-generic-eipam-pools' mode='sync' >\n","comments":"","outputs":1,"x":2314.8831787109375,"y":1640.88330078125,"z":"d5178f42.44976","wires":[["3ee93bff.44a3fc"]]},{"id":"3ee93bff.44a3fc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2543.41650390625,"y":1640.4832763671875,"z":"d5178f42.44976","wires":[["f0d7d581.591998"]]},{"id":"f0d7d581.591998","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\t<parameter name=\"error-message\" value=\"`'Error from process-generic-eipam-pools, ' + $error-message`\" />\n","comments":"","x":2702.1664848327637,"y":1640.4832725524902,"z":"d5178f42.44976","wires":[]},{"id":"11cb7113.5402d7","type":"for","name":"for 0..CreatePoolPlans_length","xml":"<for silentFailure='true' index='eidx' start='0' end='`$eipam-ip-block.createPoolResponse.CreatePoolPlans_length`' >\n","comments":"","outputs":1,"x":3093.88330078125,"y":1735.88330078125,"z":"d5178f42.44976","wires":[["32ce7747.c70768"]]},{"id":"32ce7747.c70768","type":"switchNode","name":"switch PlanName == network-model.eipam-v4-address-plan","xml":"<switch test=\"`$eipam-ip-block.createPoolResponse.CreatePoolPlans[$eidx].CreatePoolPlan.PlanName == $network-model.eipam-v4-address-plan`\">\n","comments":"","outputs":1,"x":3476.88330078125,"y":1735.88330078125,"z":"d5178f42.44976","wires":[["73515ea5.55cd5"]]},{"id":"31489f02.5d1d88","type":"for","name":"for 0..CreatePoolPlans_length","xml":"<for silentFailure='true' index='eidx' start='0' end='`$eipam-ip-block.createPoolResponse.CreatePoolPlans_length`' >\n","comments":"","outputs":1,"x":3111.88330078125,"y":1853.88330078125,"z":"d5178f42.44976","wires":[["39f88f1c.91ea8"]]},{"id":"39f88f1c.91ea8","type":"switchNode","name":"switch PlanName == network-model.eipam-v6-address-plan","xml":"<switch test=\"`$eipam-ip-block.createPoolResponse.CreatePoolPlans[$eidx].CreatePoolPlan.PlanName == $network-model.eipam-v6-address-plan`\">\n","comments":"","outputs":1,"x":3502.88330078125,"y":1853.88330078125,"z":"d5178f42.44976","wires":[["cff6d3ae.f1aa3"]]},{"id":"73515ea5.55cd5","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3813.883331298828,"y":1735.8833312988281,"z":"d5178f42.44976","wires":[["b96644be.0dbc98"]]},{"id":"cff6d3ae.f1aa3","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3827.88330078125,"y":1853.4832763671875,"z":"d5178f42.44976","wires":[["746695da.4b9b9c"]]},{"id":"b96644be.0dbc98","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3973.316650390625,"y":1736.0833740234375,"z":"d5178f42.44976","wires":[["5cbea0a0.58604"]]},{"id":"746695da.4b9b9c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3984.316650390625,"y":1853.0833740234375,"z":"d5178f42.44976","wires":[["31f3e12f.a943de"]]},{"id":"5cbea0a0.58604","type":"set","name":"set: v4 ip info","xml":"<set>\n<parameter name=\"v4.ip-prefix\" value=\"`$eipam-ip-block.createPoolResponse.CreatePoolPlans[$eidx].CreatePoolPlan.IPDataBlock.IPAddress`\"/>\n<parameter name=\"v4.mask\" value=\"`$eipam-ip-block.createPoolResponse.CreatePoolPlans[$eidx].CreatePoolPlan.IPDataBlock.Mask`\"/>\n<parameter name=\"v4.entity-id\" value=\"`$eipam-ip-block.createPoolResponse.CreatePoolPlans[$eidx].CreatePoolPlan.IPDataBlock.IpamPoolAllocId`\"/>","comments":"","x":4164.2666015625,"y":1736.0833740234375,"z":"d5178f42.44976","wires":[]},{"id":"31f3e12f.a943de","type":"set","name":"set: v6 ip info","xml":"<set>\n<parameter name=\"v6.ip-prefix\" value=\"`$eipam-ip-block.createPoolResponse.CreatePoolPlans[$eidx].CreatePoolPlan.IPDataBlock.IPAddress`\"/>\n<parameter name=\"v6.mask\" value=\"`$eipam-ip-block.createPoolResponse.CreatePoolPlans[$eidx].CreatePoolPlan.IPDataBlock.Mask`\"/>\n<parameter name=\"v6.entity-id\" value=\"`$eipam-ip-block.createPoolResponse.CreatePoolPlans[$eidx].CreatePoolPlan.IPDataBlock.IpamPoolAllocId`\"/>","comments":"","x":4177.88330078125,"y":1853.0833740234375,"z":"d5178f42.44976","wires":[]},{"id":"2c47409f.cb9c7","type":"call","name":"call GENERIC-RESOURCE-API:create-l3-subnet","xml":"<call module='GENERIC-RESOURCE-API' rpc='create-l3-subnet' mode='sync' >\n","comments":"tmp.level should be set to 1","outputs":1,"x":2373.0864181518555,"y":1868.0233001708984,"z":"d5178f42.44976","wires":[[]]},{"id":"889334d4.ee512","type":"save","name":"save AnAI - l3-network","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"network-name\" value=\"`$tmp.l3-network.network-name`\" />\n<parameter name=\"network-type\" value=\"`$network-model.network-type`\" />\n<parameter name=\"network-role\" value=\"`$network-model.network-role`\" />\n<parameter name=\"network-technology\" value=\"`$network-model.network-technology`\" />\n<parameter name=\"is-bound-to-vpn\" value=\"`$tmp.l3-network.is-bound-to-vpn-boolean`\" />\n<parameter name=\"tenant-id\" value=\"`$network-topology-operation-input.network-request-information.tenant`\" />\n<parameter name=\"model-invariant-id\" value=\"`$network-model.invariant_uuid`\" />\n<parameter name=\"model-version\" value=\"`$network-model.version`\" />\n<parameter name=\"model-customization-id\" value=\"`$network-model.customization-id`\" />\n<parameter name=\"physical-network-name\" value=\"`$network-model.physical-network-name`\" />\n<parameter name=\"is-provider-network\" value=\"`$tmp.l3-network.is-provider-network-boolean`\" />\n<parameter name=\"is-shared-network\" value=\"`$tmp.l3-network.is-shared-network-boolean`\" />\n<parameter name=\"is-external-network\" value=\"`$tmp.l3-network.is-external-network-boolean`\" />\n<parameter name=\"selflink\" value=\"`$tmp.l3-network.self-link`\" />\n<parameter name=\"service-id\" value=\"`$tmp.l3-network.service-id`\" />\n<parameter name=\"operational-status\" value=\"out-of-service-path\" />\n\n","comments":"","outputs":1,"x":2659.050048828125,"y":1966.2833251953125,"z":"d5178f42.44976","wires":[["fd2dffb4.626d88","166d7fb.02683"]]},{"id":"bc8ed07.0e83cb","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=\"`'Failed to save l3-network in AAI for network-id = ' + $tmp.l3-network.network-id`\" />\n","comments":"","x":3148.7292909622192,"y":1931.5768394470215,"z":"d5178f42.44976","wires":[]},{"id":"fd2dffb4.626d88","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2902.1575317382812,"y":1931.3424072265625,"z":"d5178f42.44976","wires":[["bc8ed07.0e83cb"]]},{"id":"6d06e17a.7f1a2","type":"for","name":"for 0..subnet_length","xml":"<for index='sidx' start='0' end='`$tmp.l3-network.subnet_length`' >\n","comments":"","outputs":1,"x":2277.1418199539185,"y":2072.342499732971,"z":"d5178f42.44976","wires":[["b25f750f.5ab41"]]},{"id":"b25f750f.5ab41","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2504.2845001220703,"y":2071.231451034546,"z":"d5178f42.44976","wires":[["d4bb25ae.3ce62","c577661b.70d328","b6bec758.f11a5","bedb778a.035b4"]]},{"id":"166d7fb.02683","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2907.9669799804688,"y":1959.8187255859375,"z":"d5178f42.44976","wires":[["bc8ed07.0e83cb"]]},{"id":"d4bb25ae.3ce62","type":"set","name":"set: tmp.subnet-id","xml":"<set>\n<parameter name=\"tmp.subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\"/>\n\t","comments":"","x":2726.0624465942383,"y":2040.056676864624,"z":"d5178f42.44976","wires":[]},{"id":"c577661b.70d328","type":"switchNode","name":"switch dhcp-enabled","xml":"<switch test='`$tmp.l3-network.subnet[$sidx].dhcp-enabled`'>\n","comments":"","outputs":1,"x":2733.6971702575684,"y":2076.3540716171265,"z":"d5178f42.44976","wires":[["50789132.4385b8","615683d.86d5bfc"]]},{"id":"615683d.86d5bfc","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2969.8399658203125,"y":2006.2111206054688,"z":"d5178f42.44976","wires":[["282d91de.f05ee6"]]},{"id":"50789132.4385b8","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2965.6971702575684,"y":2088.354193687439,"z":"d5178f42.44976","wires":[["6ee6838a.ca20ac"]]},{"id":"282d91de.f05ee6","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3160.7283935546875,"y":2006.4334716796875,"z":"d5178f42.44976","wires":[["7c2c5c81.31cfa4"]]},{"id":"6ee6838a.ca20ac","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3158.5858421325684,"y":2092.5765447616577,"z":"d5178f42.44976","wires":[["506e8049.8f6fc8"]]},{"id":"7c2c5c81.31cfa4","type":"switchNode","name":"switch gateway-address","xml":"<switch test='`$tmp.l3-network.subnet[$sidx].gateway-address`'>\n","comments":"","outputs":1,"x":3380.691680908203,"y":2006.7656421661377,"z":"d5178f42.44976","wires":[["72eb0aff.498254","b992c40a.e3fc88"]]},{"id":"506e8049.8f6fc8","type":"switchNode","name":"switch gateway-address","xml":"<switch test='`$tmp.l3-network.subnet[$sidx].gateway-address`'>\n","comments":"","outputs":1,"x":3389.977409362793,"y":2091.480155944824,"z":"d5178f42.44976","wires":[["f9389512.87fe1","d915319.95e925"]]},{"id":"1451a72d.c96e71","type":"switchNode","name":"switch service-id","xml":"<switch test='`$tmp.l3-network.service-id`'>\n","comments":"","outputs":1,"x":2268.9296875,"y":1952.6705322265625,"z":"d5178f42.44976","wires":[["b6d98b6a.61fe58","3902684f.6009f8"]]},{"id":"b6d98b6a.61fe58","type":"outcome","name":"outcome NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":2457.9296875,"y":1931.6705322265625,"z":"d5178f42.44976","wires":[["54a47008.56e48"]]},{"id":"3902684f.6009f8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2432.9296875,"y":1966.6705322265625,"z":"d5178f42.44976","wires":[["889334d4.ee512"]]},{"id":"54a47008.56e48","type":"save","name":"save AnAI - l3-network","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"network-name\" value=\"`$tmp.l3-network.network-name`\" />\n<parameter name=\"network-type\" value=\"`$network-model.network-type`\" />\n<parameter name=\"network-role\" value=\"`$network-model.network-role`\" />\n<parameter name=\"network-technology\" value=\"`$network-model.network-technology`\" />\n<parameter name=\"is-bound-to-vpn\" value=\"`$tmp.l3-network.is-bound-to-vpn-boolean`\" />\n<parameter name=\"tenant-id\" value=\"`$network-topology-operation-input.network-request-information.tenant`\" />\n<parameter name=\"model-invariant-id\" value=\"`$network-model.invariant_uuid`\" />\n<parameter name=\"model-version\" value=\"`$network-model.version`\" />\n<parameter name=\"model-customization-id\" value=\"`$network-model.customization-id`\" />\n<parameter name=\"physical-network-name\" value=\"`$network-model.physical-network-name`\" />\n<parameter name=\"is-provider-network\" value=\"`$tmp.l3-network.is-provider-network-boolean`\" />\n<parameter name=\"is-shared-network\" value=\"`$tmp.l3-network.is-shared-network-boolean`\" />\n<parameter name=\"is-external-network\" value=\"`$tmp.l3-network.is-external-network-boolean`\" />\n<parameter name=\"selflink\" value=\"`$tmp.l3-network.self-link`\" />\n<parameter name=\"operational-status\" value=\"out-of-service-path\" />","comments":"","outputs":1,"x":2664.9296875,"y":1931.6705322265625,"z":"d5178f42.44976","wires":[["fd2dffb4.626d88","166d7fb.02683"]]},{"id":"352b0634.a770ea","type":"set","name":"set tmp.l3-network","xml":"<set>\n<parameter name='tmp.l3-network.network-type' value=\"`$network-model.network-type`\" />\n<parameter name='tmp.l3-network.network-role' value=\"`$network-model.network-role`\" />\n<parameter name='tmp.l3-network.network-technology' value=\"`$network-model.network-technology`\" />\n<parameter name='tmp.l3-network.is-bound-to-vpn' value=\"`$network-model.is-bound-to-vpn`\" />\n<parameter name='tmp.l3-network.orchestration-status' value=\"PendingCreate\" />\n<parameter name='tmp.l3-network.model-invariant-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\" />\n<parameter name='tmp.l3-network.model-version-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-version`\" />\n<parameter name='tmp.l3-network.model-customization-id' value=\"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\" />\n<parameter name='tmp.l3-network.is-provider-network' value=\"`$network-model.is-provider-network`\" />\n<parameter name='tmp.l3-network.is-shared-network' value=\"`$network-model.is-shared-network`\" />\n<parameter name='tmp.l3-network.is-external-network' value=\"`$network-model.is-external-network`\" />\n<parameter name='tmp.l3-network.eipam-v6-address-plan' value=\"`$network-model.eipam-v6-address-plan`\" />\n<parameter name='tmp.l3-network.eipam-v4-address-plan' value=\"`$network-model.eipam-v4-address-plan`\" />\n<parameter name='tmp.l3-network.service-id' value=\"`$service-data.service-information.service-id`\" />\n<parameter name='tmp.l3-network.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/networks/network='\n + $tmp.l3-network.network-id\n + '/network-data/network-topology?content=config'` \" />\n","comments":"","x":886.88330078125,"y":451.4833068847656,"z":"d5178f42.44976","wires":[]},{"id":"c252ed05.9b99f","type":"set","name":"set network instance group in service-data","xml":"<set>\n<parameter name=\"service-data.network-instance-groups.network-instance-group[$ngidx].\" value='`$nig.`' />\n\n\n","comments":"","x":828.88330078125,"y":2999.4833984375,"z":"d5178f42.44976","wires":[]},{"id":"c0d1166f.f33bd","type":"switchNode","name":"switch network--model.is-provider-network","xml":"<switch test='`$network-model.is-provider-network`'>\n","comments":"","outputs":1,"x":943.6000061035156,"y":517.8833475112915,"z":"d5178f42.44976","wires":[["2d70e649.07ae42","3835b478.0b1234"]]},{"id":"2d70e649.07ae42","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1248.7431564331055,"y":497.7087926864624,"z":"d5178f42.44976","wires":[["9294abcc.7f7ec8"]]},{"id":"9294abcc.7f7ec8","type":"set","name":"set tmp.l3-network.physical-network-name","xml":"<set>\n<parameter name='tmp.l3-network.physical-network-name' value=\"`$network-model.physical-network-name`\" />\n<parameter name='tmp.l3-network.is-provider-network-boolean' value='true' />","comments":"","x":1516.7430114746094,"y":494.708758354187,"z":"d5178f42.44976","wires":[]},{"id":"3835b478.0b1234","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1236.1082153320312,"y":528.5818138122559,"z":"d5178f42.44976","wires":[["4cb8c1ac.228e38"]]},{"id":"4cb8c1ac.228e38","type":"set","name":"set tmp.l3-network.physical-network-name","xml":"<set>\n<parameter name='tmp.l3-network.physical-network-name' value=\"\" />\n<parameter name='tmp.l3-network.is-provider-network-boolean' value='false' />","comments":"","x":1520.394172668457,"y":527.153244972229,"z":"d5178f42.44976","wires":[]},{"id":"3e6da276.1b9876","type":"switchNode","name":"switch network--model.is-shared-network","xml":"<switch test='`$network-model.is-shared-network`'>\n","comments":"","outputs":1,"x":941.2665252685547,"y":563.5181550979614,"z":"d5178f42.44976","wires":[["9f3ffa9d.8179c","76801177.35bc58"]]},{"id":"9f3ffa9d.8179c","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1246.885726928711,"y":563.58176612854,"z":"d5178f42.44976","wires":[["26f53153.826cbe"]]},{"id":"26f53153.826cbe","type":"set","name":"set tmp.l3-network.is-shared-network-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-shared-network-boolean' value='true' />","comments":"","x":1539.1714401245117,"y":563.5816135406494,"z":"d5178f42.44976","wires":[]},{"id":"76801177.35bc58","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1235.6797523498535,"y":598.8832731246948,"z":"d5178f42.44976","wires":[["f9000a6c.baff6"]]},{"id":"f9000a6c.baff6","type":"set","name":"set tmp.l3-network.is-shared-network-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-shared-network-boolean' value='false' />","comments":"","x":1539.9656715393066,"y":598.7404508590698,"z":"d5178f42.44976","wires":[]},{"id":"39ea7531.083dba","type":"switchNode","name":"switch network--model.is-external-network","xml":"<switch test='`$network-model.is-external-network`'>\n","comments":"","outputs":1,"x":949.9498291015625,"y":635.5657958984375,"z":"d5178f42.44976","wires":[["7aba3265.5fa204","c956eb87.42b64"]]},{"id":"7aba3265.5fa204","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1248.9022941589355,"y":642.2961139678955,"z":"d5178f42.44976","wires":[["d8231d31.87054"]]},{"id":"d8231d31.87054","type":"set","name":"set tmp.l3-network.is-external-network-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-external-network-boolean' value='true' />","comments":"","x":1541.1880073547363,"y":642.2959613800049,"z":"d5178f42.44976","wires":[]},{"id":"c956eb87.42b64","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1237.6963195800781,"y":677.5976209640503,"z":"d5178f42.44976","wires":[["df2c956f.5ebb7"]]},{"id":"df2c956f.5ebb7","type":"set","name":"set tmp.l3-network.is-external-network-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-external-network-boolean' value='false' />","comments":"","x":1541.9822387695312,"y":677.4547986984253,"z":"d5178f42.44976","wires":[]},{"id":"985b6687.301738","type":"switchNode","name":"switch network--model.is-bound-to-vpn","xml":"<switch test='`$network-model.is-bound-to-vpn`'>\n","comments":"","outputs":1,"x":935.5313415527344,"y":748.6398734451504,"z":"d5178f42.44976","wires":[["841de692.8816c8","92021a98.fb2718"]]},{"id":"841de692.8816c8","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1247.1505546569824,"y":716.703462600708,"z":"d5178f42.44976","wires":[["ae32e0dd.54349"]]},{"id":"ae32e0dd.54349","type":"set","name":"set tmp.l3-network.is-bound-to-vpn-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-bound-to-vpn-boolean' value='true' />","comments":"","x":1539.4362678527832,"y":716.7033100128174,"z":"d5178f42.44976","wires":[]},{"id":"92021a98.fb2718","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1235.944580078125,"y":752.0049695968628,"z":"d5178f42.44976","wires":[["53abbcde.c1e354"]]},{"id":"53abbcde.c1e354","type":"set","name":"set tmp.l3-network.is-bound-to-vpn-boolean","xml":"<set>\n<parameter name='tmp.l3-network.is-bound-to-vpn-boolean' value='false' />","comments":"","x":1540.2304992675781,"y":751.8621473312378,"z":"d5178f42.44976","wires":[]},{"id":"4e2d72ac.a20f14","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnet-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"gateway-address\" value=\"`$tmp.l3-network.subnet[$sidx].gateway-address`\" />\n<parameter name=\"network-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />","comments":"","outputs":1,"x":4070.083251953125,"y":2100.4833984375,"z":"d5178f42.44976","wires":[["c0ceef0e.0078a","1e9136c3.87ee69"]]},{"id":"c0ceef0e.0078a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":4421.638069152832,"y":2059.81626701355,"z":"d5178f42.44976","wires":[["15650c05.6d1314"]]},{"id":"1e9136c3.87ee69","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":4430.361213684082,"y":2097.4594554901123,"z":"d5178f42.44976","wires":[["15650c05.6d1314"]]},{"id":"d752adcc.20017","type":"set","name":"set: tmp.error-message","xml":"<set>\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"tmp.error-message\" value=\"`'An error occurred while saving subnet relationship for l3-network in AnAI where network-id = ' + $tmp.l3-network.network-id`\"/>","comments":"","x":4861.511116027832,"y":2074.67368888855,"z":"d5178f42.44976","wires":[]},{"id":"15650c05.6d1314","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":4606.36837387085,"y":2074.102150917053,"z":"d5178f42.44976","wires":[["d752adcc.20017"]]},{"id":"461634d9.663cc4","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnet-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"gateway-address\" value=\"`$tmp.l3-network.subnet[$sidx].gateway-address`\" />\n<parameter name=\"network-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"dhcp-start\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-start`\" />\n<parameter name=\"dhcp-end\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-end`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />","comments":"","outputs":1,"x":4107.337271690369,"y":2022.2094249725342,"z":"d5178f42.44976","wires":[["1e9136c3.87ee69","c0ceef0e.0078a"]]},{"id":"72eb0aff.498254","type":"outcome","name":"outcome NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":3648.618034362793,"y":1985.7638292312622,"z":"d5178f42.44976","wires":[["94f52050.d9fb1"]]},{"id":"b992c40a.e3fc88","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":3624.332302093506,"y":2021.4782190322876,"z":"d5178f42.44976","wires":[["c9204b2d.3b077"]]},{"id":"c9204b2d.3b077","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3860.7606801986694,"y":2021.907039642334,"z":"d5178f42.44976","wires":[["461634d9.663cc4"]]},{"id":"f531428e.13ed98","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnet-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"network-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"dhcp-start\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-start`\" />\n<parameter name=\"dhcp-end\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-end`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />","comments":"","outputs":1,"x":4105.046538352966,"y":1986.7640361785889,"z":"d5178f42.44976","wires":[["c0ceef0e.0078a","1e9136c3.87ee69"]]},{"id":"94f52050.d9fb1","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3874.184100151062,"y":1988.0331344604492,"z":"d5178f42.44976","wires":[["f531428e.13ed98"]]},{"id":"f9389512.87fe1","type":"outcome","name":"outcome NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":3657.903739929199,"y":2064.7641019821167,"z":"d5178f42.44976","wires":[["ecdbbdf9.e0987"]]},{"id":"d915319.95e925","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":3633.618007659912,"y":2100.478491783142,"z":"d5178f42.44976","wires":[["2d8feac9.f46f5e"]]},{"id":"2d8feac9.f46f5e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3835.0465965270996,"y":2101.9071559906006,"z":"d5178f42.44976","wires":[["4e2d72ac.a20f14"]]},{"id":"ecdbbdf9.e0987","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3842.7557411193848,"y":2065.176050186157,"z":"d5178f42.44976","wires":[["57002b51.96ccbc"]]},{"id":"57002b51.96ccbc","type":"save","name":"save AnAI - l3-network.subnets","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $tmp.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $tmp.subnet-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$tmp.l3-network.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"network-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />","comments":"","outputs":1,"x":4067.9035606384277,"y":2061.90673828125,"z":"d5178f42.44976","wires":[["c0ceef0e.0078a","1e9136c3.87ee69"]]},{"id":"b6bec758.f11a5","type":"set","name":"set: subnet in mdsal","xml":"<set>\n<parameter name=\"nig.subnets[$msidx].start-address\" value=\"`$tmp.l3-network.subnet[$sidx].network-start-address`\" />\n<parameter name=\"nig.subnets[$msidx].subnet-id\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-id`\" />\n<parameter name=\"nig.subnets[$msidx].subnet-name\" value=\"`$tmp.l3-network.subnet[$sidx].subnet-name`\" />\n<parameter name=\"nig.subnets[$msidx].gateway-address\" value=\"`$tmp.l3-network.subnet[$sidx].gateway-address`\" />\n<parameter name=\"nig.subnets[$msidx].cidr-mask\" value=\"`$tmp.l3-network.subnet[$sidx].cidr-mask`\" />\n<parameter name=\"nig.subnets[$msidx].ip-version\" value=\"`$tmp.l3-network.subnet[$sidx].ip-version`\" />\n<parameter name=\"nig.subnets[$msidx].dhcp-start-address\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-start`\" />\n<parameter name=\"nig.subnets[$msidx].dhcp-end-address\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-end`\" />\n<parameter name=\"nig.subnets[$msidx].dhcp-enabled\" value=\"`$tmp.l3-network.subnet[$sidx].dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />\n\t","comments":"","x":2732.283203125,"y":2114.4833984375,"z":"d5178f42.44976","wires":[]},{"id":"95e4e3b2.775858","type":"set","name":"set: msidx","xml":"<set>\n<parameter name=\"msidx\" value=\"`$nig.subnets_length`\" />\n\t","comments":"","x":2252.2830810546875,"y":2033.4832763671875,"z":"d5178f42.44976","wires":[]},{"id":"bedb778a.035b4","type":"set","name":"set: increment msidx","xml":"<set>\n<parameter name=\"msidx\" value=\"`$msidx + 1`\" />\n<parameter name=\"nig.subnets_length\" value=\"`$nig.subnets_length + 1`\" />\n\t","comments":"","x":2729.283203125,"y":2151.4833984375,"z":"d5178f42.44976","wires":[]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-create.json index a952299b..ebb035e4 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-create.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-create.json @@ -1914,7 +1914,7 @@ "id": "68a6c57e.f14dec", "type": "set", "name": "set networkId and network-object-path", - "xml": "<set>\n<parameter name='networkId' value='`$prop.l3vpn.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.l3vpn.network-id + '/network-data/'` \" />", + "xml": "<set>\n<parameter name='networkId' value='`$prop.l3vpn.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service?' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.l3vpn.network-id + '/network-data?content=config'` \" />", "comments": "", "x": 754, "y": 1482, @@ -2046,7 +2046,7 @@ "id": "387886dd.77b922", "type": "save", "name": "save underlay configuration in AAI", - "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='configuration' \n key='configuration.configuration-id = $prop.l3vpn.network-id' >\n<parameter name='configuration-id' value='`$prop.l3vpn.network-id`' />\n<parameter name='configuration-type' value='underlay' />\n<parameter name='configuration-sub-type' value='l3vpn' />\n<parameter name='orchestration-status' value='Created' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$prop.l3vpn.network-id`' />\n<parameter name='configuration-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.l3vpn.network-id + '/network-data/'` \" />\n", + "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='configuration' \n key='configuration.configuration-id = $prop.l3vpn.network-id' >\n<parameter name='configuration-id' value='`$prop.l3vpn.network-id`' />\n<parameter name='configuration-type' value='underlay' />\n<parameter name='configuration-sub-type' value='l3vpn' />\n<parameter name='orchestration-status' value='Created' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$prop.l3vpn.network-id`' />\n<parameter name='configuration-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.l3vpn.network-id + '/network-data?content=config'` \" />\n", "comments": "", "outputs": 1, "x": 733, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-deactivate.json index e8251b48..59e0920d 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-deactivate.json @@ -1 +1 @@ -[{"id":"14daaafb.cfb32d","type":"dgstart","name":"DGSTART","outputs":1,"x":173.75,"y":129,"z":"77025d4d.14b56c","wires":[["f4bbcde0.af09e"]]},{"id":"f4bbcde0.af09e","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":249.03570556640625,"y":169.23811149597168,"z":"77025d4d.14b56c","wires":[["5fbb453b.4759ec"]]},{"id":"5fbb453b.4759ec","type":"method","name":"network-topology-operation-deactivate","xml":"<method rpc='network-topology-operation-deactivate' mode='sync'>\n","comments":"","outputs":1,"x":290.4286346435547,"y":212.7499942779541,"z":"77025d4d.14b56c","wires":[["7d0cac4e.a012bc"]]},{"id":"7d0cac4e.a012bc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":289.7500305175781,"y":307.4434814453125,"z":"77025d4d.14b56c","wires":[["56f1ffc8.cfe08","3307fea0.093582","1815769f.84fee9","70d42023.37ca2","ca5854c8.77f3e8","b18b10b3.ba84","fca0b4.8ea8575","52526c97.38f26c"]]},{"id":"892f2ad9.7eb3d","type":"not-found","name":"not found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":809.75,"y":303,"z":"77025d4d.14b56c","wires":[["f4ddd25b.a09008"]]},{"id":"f4ddd25b.a09008","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name=\"error-code\" value=\"404\" />\n\t<parameter name=\"error-message\" value=\"network-id not found in AAI\" />","comments":"","x":972.9443969726562,"y":303.11122131347656,"z":"77025d4d.14b56c","wires":[]},{"id":"56f1ffc8.cfe08","type":"get-resource","name":"get AnAI - l3-network by network-id","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-information.network-id\n\t\tAND depth='all'\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.l3-network\">\n","comments":"","outputs":1,"x":574.4721069335938,"y":307.48460388183594,"z":"77025d4d.14b56c","wires":[["892f2ad9.7eb3d","5598ef33.7bef78"]]},{"id":"5598ef33.7bef78","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":802.4721069335938,"y":341.48460388183594,"z":"77025d4d.14b56c","wires":[["aa29118b.944c18"]]},{"id":"aa29118b.944c18","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 retrieving l3-network with network-id=' + $network-topology-operation-input.network-request-information.network-id + 'from AnAI'\" />","comments":"","x":954.5831909179688,"y":341.7068328857422,"z":"77025d4d.14b56c","wires":[]},{"id":"c78c5de.c563b2","type":"set","name":"set entity-id and plan-name","xml":"<set>\n\t<parameter name=\"eipam-ip-block.entity-id\" value=\"`$aai.l3-network.subnets.subnet[$sidx].subnet-id`\"/>\n\t<parameter name=\"eipam-ip-block.plans[0].plan-name\" value=\"$tmp.eipam-subnet-row.plan-name\"/>\n","comments":"","x":1811.8294677734375,"y":1034.0794677734375,"z":"77025d4d.14b56c","wires":[]},{"id":"a643faf5.fe499","type":"for","name":"for 0..subnet_length","xml":"<for index='sidx' start='0' end='`$aai.l3-network.subnets.subnet_length`' >\n","comments":"","outputs":1,"x":1010.1151733398438,"y":889.2223434448242,"z":"77025d4d.14b56c","wires":[["68c43f3c.00c098"]]},{"id":"68c43f3c.00c098","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1216.1151733398438,"y":889.3651733398438,"z":"77025d4d.14b56c","wires":[["f980e441.a4f0e8","4742308d.adb84"]]},{"id":"4742308d.adb84","type":"get-resource","name":"get eipam-ip-subnet by subnet-id","xml":"<get-resource\n plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n resource='SQL'\n key=\"SELECT * from EIPAM_IP_SUBNETS where entity_id = $aai.l3-network.subnets.subnet[$sidx].subnet-id ; \"\n pfx='tmp.eipam-subnet-row'>\n\n","comments":"","outputs":1,"x":1169.258056640625,"y":1017.2222900390625,"z":"77025d4d.14b56c","wires":[["ef2c2ad7.25d89","da139eef.0a22f8","4e6832fa.59be34"]]},{"id":"7e87eaef.56d814","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Query to DB table EIPAM_IP_SUBNETS failed to find subnet matching aai subnet.\" />\n\t","comments":"","x":1577.4008483886719,"y":964.9365541636944,"z":"77025d4d.14b56c","wires":[]},{"id":"ef2c2ad7.25d89","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1427.9724426269531,"y":1032.9365245997906,"z":"77025d4d.14b56c","wires":[["dde7fe1d.76f4e8"]]},{"id":"da139eef.0a22f8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1428.2627258300781,"y":966.9365541636944,"z":"77025d4d.14b56c","wires":[["7e87eaef.56d814"]]},{"id":"4e6832fa.59be34","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":1429.1198348999023,"y":1001.2222747802734,"z":"77025d4d.14b56c","wires":[["c1fa360.29f75c8"]]},{"id":"dde7fe1d.76f4e8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1580.6865310668945,"y":1034.3651449382305,"z":"77025d4d.14b56c","wires":[["c78c5de.c563b2"]]},{"id":"c1fa360.29f75c8","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Subnet not found in EIPAM_IP_SUBNETS - deactivate failed.\" />\n\t","comments":"","x":1578.0673828125,"y":1000.5556392669678,"z":"77025d4d.14b56c","wires":[]},{"id":"f980e441.a4f0e8","type":"save","name":"update AnAI - subnet","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $aai.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $eipam-ip-block.entity-id\" >\n<parameter name=\"orchestration-status\" value=\"PendingDelete\" />\n\t\t","comments":"","outputs":1,"x":1122.4007568359375,"y":1072.2380981445312,"z":"77025d4d.14b56c","wires":[["4a6d988.b322be8","840ca69.87f17d8"]]},{"id":"3e773e43.8c9882","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet.\" />\n\t","comments":"","x":1582.1469192504883,"y":1076.0793306529522,"z":"77025d4d.14b56c","wires":[]},{"id":"237731b2.80bc3e","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1432.7185134887695,"y":1144.0793010890484,"z":"77025d4d.14b56c","wires":[["2dc84f58.c960e"]]},{"id":"4a6d988.b322be8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1421.5801601409912,"y":1082.3650610148907,"z":"77025d4d.14b56c","wires":[["3e773e43.8c9882"]]},{"id":"840ca69.87f17d8","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":1433.8659057617188,"y":1112.3650512695312,"z":"77025d4d.14b56c","wires":[["7462188c.17d9a"]]},{"id":"2dc84f58.c960e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1585.432601928711,"y":1145.5079214274883,"z":"77025d4d.14b56c","wires":[[]]},{"id":"7462188c.17d9a","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet. Subnet not found.\" />\n\t","comments":"","x":1581.1467590332031,"y":1108.3650817871094,"z":"77025d4d.14b56c","wires":[]},{"id":"70d42023.37ca2","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":565.5436744689941,"y":1408.3650598526,"z":"77025d4d.14b56c","wires":[]},{"id":"b18b10b3.ba84","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":565.5476188659668,"y":1328.5591020584106,"z":"77025d4d.14b56c","wires":[]},{"id":"3307fea0.093582","type":"set","name":"set networkId","xml":"<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n","comments":"","x":559.833251953125,"y":1291.4162101745605,"z":"77025d4d.14b56c","wires":[]},{"id":"1815769f.84fee9","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='PendingDelete' />\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":607.8333129882812,"y":1367.987564086914,"z":"77025d4d.14b56c","wires":[]},{"id":"52526c97.38f26c","type":"set","name":"copy input to service-data","xml":"<set>\n<parameter name='service-data.networks.network[$nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n","comments":"","x":601.2617874145508,"y":1254.7494916915894,"z":"77025d4d.14b56c","wires":[]},{"id":"ca5854c8.77f3e8","type":"switchNode","name":"switch $aai.l3-network.subnets.subnet_length","xml":"<switch test='`$aai.l3-network.subnets.subnet_length`'>\n","comments":"","outputs":1,"x":609.75,"y":403.0000343322754,"z":"77025d4d.14b56c","wires":[["232b1d63.e94362","6a5ead37.eada7c"]]},{"id":"232b1d63.e94362","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":905.75,"y":403.0000343322754,"z":"77025d4d.14b56c","wires":[["bc99db97.911"]]},{"id":"bc99db97.911","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=\"no networks found\" />\n","comments":"","x":1097.527587890625,"y":402.88901138305664,"z":"77025d4d.14b56c","wires":[]},{"id":"6a5ead37.eada7c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":891.75,"y":433.00006103515625,"z":"77025d4d.14b56c","wires":[["cdc25fad.e85d48"]]},{"id":"fca0b4.8ea8575","type":"save","name":"update AnAI - network","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $aai.l3-network.network-id\" >\n<parameter name=\"orchestration-status\" value=\"PendingDelete\" />\n\t\t","comments":"","outputs":1,"x":606.75,"y":1166.9998931884766,"z":"77025d4d.14b56c","wires":[["e31687c4.b37f78","c340787e.1371"]]},{"id":"fb75aff2.792f48","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for l3-network\" />\n\t","comments":"","x":1010.4961700439453,"y":1156.8411798477173,"z":"77025d4d.14b56c","wires":[]},{"id":"d509e915.753cd","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":861.0677642822266,"y":1224.8411502838135,"z":"77025d4d.14b56c","wires":[["fd8de859.5c0a58"]]},{"id":"e31687c4.b37f78","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":849.9294109344482,"y":1163.1269102096558,"z":"77025d4d.14b56c","wires":[["fb75aff2.792f48"]]},{"id":"c340787e.1371","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":862.2151565551758,"y":1193.1269004642963,"z":"77025d4d.14b56c","wires":[["fc060a13.6445d"]]},{"id":"fd8de859.5c0a58","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1013.781852722168,"y":1226.2697706222534,"z":"77025d4d.14b56c","wires":[[]]},{"id":"fc060a13.6445d","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for l3-network. Network not found.\" />\n\t","comments":"","x":1009.4960098266602,"y":1189.1269309818745,"z":"77025d4d.14b56c","wires":[]},{"id":"cdc25fad.e85d48","type":"switchNode","name":"switch network-instance-group-id","xml":"<switch test='`$network-data.network-topology.network-topology-identifier-structure.network-instance-group-id`'>\n","comments":"","outputs":1,"x":592.49609375,"y":497.74609375,"z":"77025d4d.14b56c","wires":[["18fc8322.dd2f4d","2194454c.3682ca"]]},{"id":"18fc8322.dd2f4d","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":885.49609375,"y":496.24609375,"z":"77025d4d.14b56c","wires":[["86679cd0.c293d8"]]},{"id":"2194454c.3682ca","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":876.49609375,"y":527.24609375,"z":"77025d4d.14b56c","wires":[["994f705c.0c442"]]},{"id":"994f705c.0c442","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1071.49609375,"y":526.24609375,"z":"77025d4d.14b56c","wires":[["acafc97.3adb1b8"]]},{"id":"acafc97.3adb1b8","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 collection activate failed\" />\n","comments":"","x":1272.49609375,"y":521.24609375,"z":"77025d4d.14b56c","wires":[]},{"id":"1e224df6.f166ba","type":"comment","name":"need to implement this","info":"","comments":"","x":1302.49609375,"y":489.74609375,"z":"77025d4d.14b56c","wires":[]},{"id":"86679cd0.c293d8","type":"switchNode","name":"switch from-preload","xml":"<switch test='`$service-data.networks.network[$nidx].network-data.network-information.from-preload`'>\n","comments":"","outputs":1,"x":558.49609375,"y":591.74609375,"z":"77025d4d.14b56c","wires":[["6131428b.0d8d6c","b1a3cb6c.9a95f8"]]},{"id":"6131428b.0d8d6c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":546.49609375,"y":670.24609375,"z":"77025d4d.14b56c","wires":[["aa34043d.dac1c8"]]},{"id":"b1a3cb6c.9a95f8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":568.4961547851562,"y":888.24609375,"z":"77025d4d.14b56c","wires":[["32048c62.298084"]]},{"id":"aa34043d.dac1c8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":732.74609375,"y":671.24609375,"z":"77025d4d.14b56c","wires":[["aa5a777f.f5c22"]]},{"id":"32048c62.298084","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":780.7461547851562,"y":888.24609375,"z":"77025d4d.14b56c","wires":[["a643faf5.fe499"]]},{"id":"aa5a777f.f5c22","type":"for","name":"for 0..subnet_length","xml":"<for index='sidx' start='0' end='`$aai.l3-network.subnets.subnet_length`' >\n","comments":"","outputs":1,"x":939.49609375,"y":671.74609375,"z":"77025d4d.14b56c","wires":[["aa6f6d68.9a1f58"]]},{"id":"aa6f6d68.9a1f58","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1145.49609375,"y":671.8889236450195,"z":"77025d4d.14b56c","wires":[["3f1cbdf1.3ab7ca"]]},{"id":"3f1cbdf1.3ab7ca","type":"save","name":"update AnAI - subnet","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $aai.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $aai.l3-network.subnets.subnet[$sidx].subnet-id\" >\n<parameter name=\"orchestration-status\" value=\"PendingDelete\" />\n\t\t","comments":"","outputs":1,"x":1374.49609375,"y":670.74609375,"z":"77025d4d.14b56c","wires":[["566ebc6d.9edeac","39776162.ed9356"]]},{"id":"63d5a91e.32272","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet.\" />\n\t","comments":"","x":1759.242317199707,"y":664.5873872935772,"z":"77025d4d.14b56c","wires":[]},{"id":"2c140bc5.40cc2c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1609.8139114379883,"y":732.5873577296734,"z":"77025d4d.14b56c","wires":[["1a86f56d.e7b24b"]]},{"id":"566ebc6d.9edeac","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1598.67555809021,"y":670.8731176555157,"z":"77025d4d.14b56c","wires":[["63d5a91e.32272"]]},{"id":"39776162.ed9356","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":1610.9613037109375,"y":700.8731079101562,"z":"77025d4d.14b56c","wires":[["f099c00a.ba535"]]},{"id":"1a86f56d.e7b24b","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1762.5279998779297,"y":734.0159780681133,"z":"77025d4d.14b56c","wires":[[]]},{"id":"f099c00a.ba535","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet. Subnet not found.\" />\n\t","comments":"","x":1758.2421569824219,"y":696.8731384277344,"z":"77025d4d.14b56c","wires":[]}]
\ No newline at end of file +[{"id":"14daaafb.cfb32d","type":"dgstart","name":"DGSTART","outputs":1,"x":173.75,"y":129,"z":"77025d4d.14b56c","wires":[["f4bbcde0.af09e"]]},{"id":"f4bbcde0.af09e","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":249.03570556640625,"y":169.23811149597168,"z":"77025d4d.14b56c","wires":[["5fbb453b.4759ec"]]},{"id":"5fbb453b.4759ec","type":"method","name":"network-topology-operation-deactivate","xml":"<method rpc='network-topology-operation-deactivate' mode='sync'>\n","comments":"","outputs":1,"x":290.4286346435547,"y":212.7499942779541,"z":"77025d4d.14b56c","wires":[["7d0cac4e.a012bc"]]},{"id":"7d0cac4e.a012bc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":289.7500305175781,"y":307.4434814453125,"z":"77025d4d.14b56c","wires":[["56f1ffc8.cfe08","3307fea0.093582","1815769f.84fee9","70d42023.37ca2","ca5854c8.77f3e8","b18b10b3.ba84","fca0b4.8ea8575","52526c97.38f26c"]]},{"id":"892f2ad9.7eb3d","type":"not-found","name":"not found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":809.75,"y":303,"z":"77025d4d.14b56c","wires":[["f4ddd25b.a09008"]]},{"id":"f4ddd25b.a09008","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name=\"error-code\" value=\"404\" />\n\t<parameter name=\"error-message\" value=\"network-id not found in AAI\" />","comments":"","x":972.9443969726562,"y":303.11122131347656,"z":"77025d4d.14b56c","wires":[]},{"id":"56f1ffc8.cfe08","type":"get-resource","name":"get AnAI - l3-network by network-id","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $network-topology-operation-input.network-information.network-id\n\t\tAND depth='all'\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.l3-network\">\n","comments":"","outputs":1,"x":574.4721069335938,"y":307.48460388183594,"z":"77025d4d.14b56c","wires":[["892f2ad9.7eb3d","5598ef33.7bef78"]]},{"id":"5598ef33.7bef78","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":802.4721069335938,"y":341.48460388183594,"z":"77025d4d.14b56c","wires":[["aa29118b.944c18"]]},{"id":"aa29118b.944c18","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 retrieving l3-network with network-id=' + $network-topology-operation-input.network-request-information.network-id + 'from AnAI'\" />","comments":"","x":954.5831909179688,"y":341.7068328857422,"z":"77025d4d.14b56c","wires":[]},{"id":"c78c5de.c563b2","type":"set","name":"set entity-id and plan-name","xml":"<set>\n\t<parameter name=\"eipam-ip-block.entity-id\" value=\"`$aai.l3-network.subnets.subnet[$sidx].subnet-id`\"/>\n\t<parameter name=\"eipam-ip-block.plans[0].plan-name\" value=\"$tmp.eipam-subnet-row.plan-name\"/>\n","comments":"","x":1811.8294677734375,"y":1034.0794677734375,"z":"77025d4d.14b56c","wires":[]},{"id":"a643faf5.fe499","type":"for","name":"for 0..subnet_length","xml":"<for index='sidx' start='0' end='`$aai.l3-network.subnets.subnet_length`' >\n","comments":"","outputs":1,"x":1010.1151733398438,"y":889.2223434448242,"z":"77025d4d.14b56c","wires":[["68c43f3c.00c098"]]},{"id":"68c43f3c.00c098","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1216.1151733398438,"y":889.3651733398438,"z":"77025d4d.14b56c","wires":[["f980e441.a4f0e8","4742308d.adb84"]]},{"id":"4742308d.adb84","type":"get-resource","name":"get eipam-ip-subnet by subnet-id","xml":"<get-resource\n plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n resource='SQL'\n key=\"SELECT * from EIPAM_IP_SUBNETS where entity_id = $aai.l3-network.subnets.subnet[$sidx].subnet-id ; \"\n pfx='tmp.eipam-subnet-row'>\n\n","comments":"","outputs":1,"x":1169.258056640625,"y":1017.2222900390625,"z":"77025d4d.14b56c","wires":[["ef2c2ad7.25d89","da139eef.0a22f8","4e6832fa.59be34"]]},{"id":"7e87eaef.56d814","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Query to DB table EIPAM_IP_SUBNETS failed to find subnet matching aai subnet.\" />\n\t","comments":"","x":1577.4008483886719,"y":964.9365541636944,"z":"77025d4d.14b56c","wires":[]},{"id":"ef2c2ad7.25d89","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1427.9724426269531,"y":1032.9365245997906,"z":"77025d4d.14b56c","wires":[["dde7fe1d.76f4e8"]]},{"id":"da139eef.0a22f8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1428.2627258300781,"y":966.9365541636944,"z":"77025d4d.14b56c","wires":[["7e87eaef.56d814"]]},{"id":"4e6832fa.59be34","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":1429.1198348999023,"y":1001.2222747802734,"z":"77025d4d.14b56c","wires":[["c1fa360.29f75c8"]]},{"id":"dde7fe1d.76f4e8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1580.6865310668945,"y":1034.3651449382305,"z":"77025d4d.14b56c","wires":[["c78c5de.c563b2"]]},{"id":"c1fa360.29f75c8","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Subnet not found in EIPAM_IP_SUBNETS - deactivate failed.\" />\n\t","comments":"","x":1578.0673828125,"y":1000.5556392669678,"z":"77025d4d.14b56c","wires":[]},{"id":"f980e441.a4f0e8","type":"save","name":"update AnAI - subnet","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $aai.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $eipam-ip-block.entity-id\" >\n<parameter name=\"orchestration-status\" value=\"PendingDelete\" />\n\t\t","comments":"","outputs":1,"x":1122.4007568359375,"y":1072.2380981445312,"z":"77025d4d.14b56c","wires":[["4a6d988.b322be8","840ca69.87f17d8"]]},{"id":"3e773e43.8c9882","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet.\" />\n\t","comments":"","x":1582.1469192504883,"y":1076.0793306529522,"z":"77025d4d.14b56c","wires":[]},{"id":"237731b2.80bc3e","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1432.7185134887695,"y":1144.0793010890484,"z":"77025d4d.14b56c","wires":[["2dc84f58.c960e"]]},{"id":"4a6d988.b322be8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1421.5801601409912,"y":1082.3650610148907,"z":"77025d4d.14b56c","wires":[["3e773e43.8c9882"]]},{"id":"840ca69.87f17d8","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":1433.8659057617188,"y":1112.3650512695312,"z":"77025d4d.14b56c","wires":[["7462188c.17d9a"]]},{"id":"2dc84f58.c960e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1585.432601928711,"y":1145.5079214274883,"z":"77025d4d.14b56c","wires":[[]]},{"id":"7462188c.17d9a","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet. Subnet not found.\" />\n\t","comments":"","x":1581.1467590332031,"y":1108.3650817871094,"z":"77025d4d.14b56c","wires":[]},{"id":"70d42023.37ca2","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":565.5436744689941,"y":1408.3650598526,"z":"77025d4d.14b56c","wires":[]},{"id":"b18b10b3.ba84","type":"set","name":"set object-path","xml":"<set>\n<parameter name='network-object-path' value=\"`'rests/data/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?content=config'` \" />\n \n","comments":"","x":565.5476188659668,"y":1328.5591020584106,"z":"77025d4d.14b56c","wires":[]},{"id":"3307fea0.093582","type":"set","name":"set networkId","xml":"<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n","comments":"","x":559.833251953125,"y":1291.4162101745605,"z":"77025d4d.14b56c","wires":[]},{"id":"1815769f.84fee9","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='PendingDelete' />\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":607.8333129882812,"y":1367.987564086914,"z":"77025d4d.14b56c","wires":[]},{"id":"52526c97.38f26c","type":"set","name":"copy input to service-data","xml":"<set>\n<parameter name='service-data.networks.network[$nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n","comments":"","x":601.2617874145508,"y":1254.7494916915894,"z":"77025d4d.14b56c","wires":[]},{"id":"ca5854c8.77f3e8","type":"switchNode","name":"switch $aai.l3-network.subnets.subnet_length","xml":"<switch test='`$aai.l3-network.subnets.subnet_length`'>\n","comments":"","outputs":1,"x":609.75,"y":403.0000343322754,"z":"77025d4d.14b56c","wires":[["232b1d63.e94362","6a5ead37.eada7c"]]},{"id":"232b1d63.e94362","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":905.75,"y":403.0000343322754,"z":"77025d4d.14b56c","wires":[["bc99db97.911"]]},{"id":"bc99db97.911","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=\"no networks found\" />\n","comments":"","x":1097.527587890625,"y":402.88901138305664,"z":"77025d4d.14b56c","wires":[]},{"id":"6a5ead37.eada7c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":891.75,"y":433.00006103515625,"z":"77025d4d.14b56c","wires":[["cdc25fad.e85d48"]]},{"id":"fca0b4.8ea8575","type":"save","name":"update AnAI - network","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $aai.l3-network.network-id\" >\n<parameter name=\"orchestration-status\" value=\"PendingDelete\" />\n\t\t","comments":"","outputs":1,"x":606.75,"y":1166.9998931884766,"z":"77025d4d.14b56c","wires":[["e31687c4.b37f78","c340787e.1371"]]},{"id":"fb75aff2.792f48","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for l3-network\" />\n\t","comments":"","x":1010.4961700439453,"y":1156.8411798477173,"z":"77025d4d.14b56c","wires":[]},{"id":"d509e915.753cd","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":861.0677642822266,"y":1224.8411502838135,"z":"77025d4d.14b56c","wires":[["fd8de859.5c0a58"]]},{"id":"e31687c4.b37f78","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":849.9294109344482,"y":1163.1269102096558,"z":"77025d4d.14b56c","wires":[["fb75aff2.792f48"]]},{"id":"c340787e.1371","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":862.2151565551758,"y":1193.1269004642963,"z":"77025d4d.14b56c","wires":[["fc060a13.6445d"]]},{"id":"fd8de859.5c0a58","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1013.781852722168,"y":1226.2697706222534,"z":"77025d4d.14b56c","wires":[[]]},{"id":"fc060a13.6445d","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for l3-network. Network not found.\" />\n\t","comments":"","x":1009.4960098266602,"y":1189.1269309818745,"z":"77025d4d.14b56c","wires":[]},{"id":"cdc25fad.e85d48","type":"switchNode","name":"switch network-instance-group-id","xml":"<switch test='`$network-data.network-topology.network-topology-identifier-structure.network-instance-group-id`'>\n","comments":"","outputs":1,"x":592.49609375,"y":497.74609375,"z":"77025d4d.14b56c","wires":[["18fc8322.dd2f4d","2194454c.3682ca"]]},{"id":"18fc8322.dd2f4d","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":885.49609375,"y":496.24609375,"z":"77025d4d.14b56c","wires":[["86679cd0.c293d8"]]},{"id":"2194454c.3682ca","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":876.49609375,"y":527.24609375,"z":"77025d4d.14b56c","wires":[["994f705c.0c442"]]},{"id":"994f705c.0c442","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1071.49609375,"y":526.24609375,"z":"77025d4d.14b56c","wires":[["acafc97.3adb1b8"]]},{"id":"acafc97.3adb1b8","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 collection activate failed\" />\n","comments":"","x":1272.49609375,"y":521.24609375,"z":"77025d4d.14b56c","wires":[]},{"id":"1e224df6.f166ba","type":"comment","name":"need to implement this","info":"","comments":"","x":1302.49609375,"y":489.74609375,"z":"77025d4d.14b56c","wires":[]},{"id":"86679cd0.c293d8","type":"switchNode","name":"switch from-preload","xml":"<switch test='`$service-data.networks.network[$nidx].network-data.network-information.from-preload`'>\n","comments":"","outputs":1,"x":558.49609375,"y":591.74609375,"z":"77025d4d.14b56c","wires":[["6131428b.0d8d6c","b1a3cb6c.9a95f8"]]},{"id":"6131428b.0d8d6c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":546.49609375,"y":670.24609375,"z":"77025d4d.14b56c","wires":[["aa34043d.dac1c8"]]},{"id":"b1a3cb6c.9a95f8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":568.4961547851562,"y":888.24609375,"z":"77025d4d.14b56c","wires":[["32048c62.298084"]]},{"id":"aa34043d.dac1c8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":732.74609375,"y":671.24609375,"z":"77025d4d.14b56c","wires":[["aa5a777f.f5c22"]]},{"id":"32048c62.298084","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":780.7461547851562,"y":888.24609375,"z":"77025d4d.14b56c","wires":[["a643faf5.fe499"]]},{"id":"aa5a777f.f5c22","type":"for","name":"for 0..subnet_length","xml":"<for index='sidx' start='0' end='`$aai.l3-network.subnets.subnet_length`' >\n","comments":"","outputs":1,"x":939.49609375,"y":671.74609375,"z":"77025d4d.14b56c","wires":[["aa6f6d68.9a1f58"]]},{"id":"aa6f6d68.9a1f58","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1145.49609375,"y":671.8889236450195,"z":"77025d4d.14b56c","wires":[["3f1cbdf1.3ab7ca"]]},{"id":"3f1cbdf1.3ab7ca","type":"save","name":"update AnAI - subnet","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $aai.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $aai.l3-network.subnets.subnet[$sidx].subnet-id\" >\n<parameter name=\"orchestration-status\" value=\"PendingDelete\" />\n\t\t","comments":"","outputs":1,"x":1374.49609375,"y":670.74609375,"z":"77025d4d.14b56c","wires":[["566ebc6d.9edeac","39776162.ed9356"]]},{"id":"63d5a91e.32272","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet.\" />\n\t","comments":"","x":1759.242317199707,"y":664.5873872935772,"z":"77025d4d.14b56c","wires":[]},{"id":"2c140bc5.40cc2c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1609.8139114379883,"y":732.5873577296734,"z":"77025d4d.14b56c","wires":[["1a86f56d.e7b24b"]]},{"id":"566ebc6d.9edeac","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1598.67555809021,"y":670.8731176555157,"z":"77025d4d.14b56c","wires":[["63d5a91e.32272"]]},{"id":"39776162.ed9356","type":"not-found","name":"not-found","xml":"<outcome value=\"not-found\">","comments":"","outputs":1,"x":1610.9613037109375,"y":700.8731079101562,"z":"77025d4d.14b56c","wires":[["f099c00a.ba535"]]},{"id":"1a86f56d.e7b24b","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1762.5279998779297,"y":734.0159780681133,"z":"77025d4d.14b56c","wires":[[]]},{"id":"f099c00a.ba535","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet. Subnet not found.\" />\n\t","comments":"","x":1758.2421569824219,"y":696.8731384277344,"z":"77025d4d.14b56c","wires":[]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-delete.json index 232fa5e8..8d113591 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation-delete.json @@ -1152,7 +1152,7 @@ "id": "c820d47.424eda8", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />\n \n", + "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'` \" />\n \n", "comments": "", "x": 831, "y": 1126, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation.json index 2440c43c..a31bfacc 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_network-topology-operation.json @@ -1891,7 +1891,7 @@ "id": "1ee985f4.f7191a", "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", + "xml": "<set>\n<parameter name='network-object-path' value=\"`'rests/data/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?content=config'` \" />\n \n", "comments": "", "x": 442.0486145019531, "y": 1129.528715133667, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_port-mirror-topology-operation-assign-async.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_port-mirror-topology-operation-assign-async.json index f7f79b1f..6d08c3c3 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_port-mirror-topology-operation-assign-async.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_port-mirror-topology-operation-assign-async.json @@ -1 +1 @@ -[{"id":"bb268559.fd3938","type":"dgstart","name":"DGSTART","outputs":1,"x":101.66666412353516,"y":87.41365623474121,"z":"ad46ffb1.59044","wires":[["a124bed3.35031"]]},{"id":"a124bed3.35031","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":215.6190414428711,"y":127.65177726745605,"z":"ad46ffb1.59044","wires":[["db524fe9.5dfcc"]]},{"id":"db524fe9.5dfcc","type":"method","name":"method port-mirror-topology-operation-assign-async","xml":"<method rpc='port-mirror-topology-operation-assign-async' mode='sync'>\n","comments":"","outputs":1,"x":232.95244598388672,"y":168.84222412109375,"z":"ad46ffb1.59044","wires":[["ac3d53ca.aefc2"]]},{"id":"19977dc1.9b6832","type":"comment","name":"port-mirror-topology-operation-assign-async","info":"","comments":"","x":496.0115203857422,"y":35,"z":"ad46ffb1.59044","wires":[]},{"id":"e5fd1f58.74f01","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name='error-code' value='200' />\n","comments":"","x":410.2144241333008,"y":5452.700392484665,"z":"ad46ffb1.59044","wires":[]},{"id":"ac3d53ca.aefc2","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":156.15477752685547,"y":2545.485157728195,"z":"ad46ffb1.59044","wires":[["e5fd1f58.74f01","ced2d211.53467","f9889d49.6fbf5","ce052c1a.cbe7c","8b585d79.bc124","4847ddc2.32a804","94761f86.c5ad2","bae20099.07b1f","17bc986f.814148","ac2e3332.29b9f","b4b42190.25a09","94e068c9.523098","b7f41d13.6fd4c","1b63f2c6.c9c3cd","3278f6bc.28dd4a","b0683757.70acd8","fc4ca4c9.69e018","59373ca.423e2c4","c1689047.89198","d3bec9cf.937968","39eab347.ba000c","b40e2769.9b66e8","8854e0fa.60ed8","e53b0107.99046","53a52a6c.d1cd64","1bbc7787.e7f1b8","a92de2b4.d0018","6aa6e65.77d1a18","72ac5c76.c8ab14","6e6309e.a9b13f8","ba91d904.ffefc8","7ee1327.81d79cc","b4aa58d9.1a6638","7c523201.d63ddc","6c94d29e.c7544c","f3bec0f8.38123","569bdf72.3da37","43966c.cbf36994","b26e3f0d.1d7c8","fb861ac2.aeb8b8","497d568b.0f1998","1bc76bf3.eeff44","34f89d01.613262","a44e08eb.db9948","fa51468e.921388"]]},{"id":"ced2d211.53467","type":"set","name":"set tmp variables","xml":"<set>\n<parameter name='tmp.configuration-id' value='`$port-mirror-topology-operation-input.configuration-information.configuration-id`' />\n<parameter name='tmp.src-vnf-id' value='`$port-mirror-topology-operation-input.port-mirror-configuration-request-input.source-port.vnf-information.vnf-id`' />\n<parameter name='tmp.dest-vnf-id' value='`$port-mirror-topology-operation-input.port-mirror-configuration-request-input.dest-port.vnf-information.vnf-id`' />\n<parameter name='tmp.dest-pnf-name' value='`$port-mirror-topology-operation-input.port-mirror-configuration-request-input.dest-port.pnf-information.pnf-name`' />\n<parameter name='tmp.service-instance-id' value='`$port-mirror-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='tmp.configuration-sub-type' value='`$port-mirror-topology-operation-input.configuration-information.configuration-sub-type`' />\n","comments":"","x":434.23812103271484,"y":219.31843376159668,"z":"ad46ffb1.59044","wires":[]},{"id":"f9889d49.6fbf5","type":"set","name":"set port-mirror-configuration data","xml":"<set>\n<parameter name='pm.configuration-id' value='`$tmp.configuration-id`' />\n<parameter name='pm.configuration-data.configuration-operation-information.sdnc-request-header.'\n value='`$port-mirror-topology-operation-input.sdnc-request-header.`' />\n<parameter name='pm.configuration-data.configuration-operation-information.request-information.'\n value='`$port-mirror-topology-operation-input.request-information.`' />\n<parameter name='pm.configuration-data.configuration-operation-information.service-information.'\n value='`$port-mirror-topology-operation-input.service-information.`' />\n<parameter name='pm.configuration-data.configuration-operation-information.configuration-information.'\n value='`$port-mirror-topology-operation-input.configuration-information.`' />\n<parameter name='pm.configuration-data.configuration-operation-information.port-mirror-configuration-request-input.'\n value='`$port-mirror-topology-operation-input.port-mirror-configuration-request-input.`' />\n","comments":"","x":483.38097381591797,"y":265.8898448944092,"z":"ad46ffb1.59044","wires":[]},{"id":"4847ddc2.32a804","type":"execute","name":"execute RestApiCallNode - PUT port-mirror-configuration","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.portmirrorconfig.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.pmc-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-pmc\" />\n\n","comments":"","outputs":1,"x":541.8215942382812,"y":5323.652531385422,"z":"ad46ffb1.59044","wires":[["a3f19e94.a6218","a7b211de.53d8b","a4821754.dac1f8"]]},{"id":"a3f19e94.a6218","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":943.5581283569336,"y":5366.650751829147,"z":"ad46ffb1.59044","wires":[["df3069ed.4ad628"]]},{"id":"a7b211de.53d8b","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":935.9867630004883,"y":5325.150771856308,"z":"ad46ffb1.59044","wires":[["df3069ed.4ad628"]]},{"id":"a4821754.dac1f8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":939.7367553710938,"y":5285.50786948204,"z":"ad46ffb1.59044","wires":[["803a5100.a0eb2"]]},{"id":"803a5100.a0eb2","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1077.1070251464844,"y":5284.557212591171,"z":"ad46ffb1.59044","wires":[[]]},{"id":"ce052c1a.cbe7c","type":"execute","name":"execute readProperties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":454.5238723754883,"y":312.41370940208435,"z":"ad46ffb1.59044","wires":[[]]},{"id":"8b585d79.bc124","type":"execute","name":"generate port-mirror-configuration url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.pm-configuration`\"/>\n <parameter name=\"outputPath\" value=\"tmp.pmc-url\"/>\n <parameter name=\"target\" value=\"{configuration-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.configuration-id`\"/>\n","comments":"","outputs":1,"x":478.07159423828125,"y":5273.652478933334,"z":"ad46ffb1.59044","wires":[[]]},{"id":"ab26b1cb.6c458","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":773.642858505249,"y":350.2230501174927,"z":"ad46ffb1.59044","wires":[["c1e2010f.8bc8a"]]},{"id":"853dd343.7ef44","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":782.2142944335938,"y":393.50876331329346,"z":"ad46ffb1.59044","wires":[["c1e2010f.8bc8a"]]},{"id":"54196f0f.b7bed","type":"set","name":"set src TOSCA data","xml":"<set>\n<parameter name='tmp.src-pps' value='`$db.cap[$cap-idx].pps-capacity`' />\n<parameter name='tmp.src-nfc-naming-code' value='`$db.cap[$cap-idx].nfc-naming-code`' />\n<parameter name='tmp.src-network-role' value='`$db.cap[$cap-idx].network-role`' />\n","comments":"","x":1080.3809967041016,"y":428.8422772884369,"z":"ad46ffb1.59044","wires":[]},{"id":"94761f86.c5ad2","type":"for","name":"for each capability row","xml":"<for index='cap-idx' start='0' end='`$db.cap_length`' >\n","comments":"","outputs":1,"x":453.23809814453125,"y":455.9851453304291,"z":"ad46ffb1.59044","wires":[["5484d230.220e0c"]]},{"id":"5484d230.220e0c","type":"switchNode","name":"switch role","xml":"<switch test='`$db.cap[$cap-idx].role`'>\n","comments":"","outputs":1,"x":678.9523124694824,"y":455.9851453304291,"z":"ad46ffb1.59044","wires":[["d2c1922a.92cad","43255d7c.a2b224"]]},{"id":"d2c1922a.92cad","type":"outcome","name":"source","xml":"<outcome value='source'>\n","comments":"","outputs":1,"x":883.2380627223424,"y":428.84227674347994,"z":"ad46ffb1.59044","wires":[["54196f0f.b7bed"]]},{"id":"43255d7c.a2b224","type":"outcome","name":"collector","xml":"<outcome value='collector'>\n","comments":"","outputs":1,"x":886.5714073181152,"y":474.55655813217163,"z":"ad46ffb1.59044","wires":[["1912da.1a473d27"]]},{"id":"1912da.1a473d27","type":"set","name":"set dest TOSCA data","xml":"<set>\n<parameter name='tmp.dest-pps' value='`$db.cap[$cap-idx].pps-capacity`' />\n<parameter name='tmp.dest-nfc-naming-code' value='`$db.cap[$cap-idx].nfc-naming-code`' />\n<parameter name='tmp.dest-network-role' value='`$db.cap[$cap-idx].network-role`' />\n","comments":"","x":1086.5714569091797,"y":473.1279969215393,"z":"ad46ffb1.59044","wires":[]},{"id":"465844f2.75eb6c","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Error reading PORT_MIRROR_CONFIGURATION table\" />\n","comments":"","outputs":1,"x":1106.9777603149414,"y":343.73672008514404,"z":"ad46ffb1.59044","wires":[[]]},{"id":"48ebd9fd.1aa898","type":"comment","name":"Save data in port-mirror-configurations","info":"","comments":"","x":530.9287261962891,"y":5226.50967001915,"z":"ad46ffb1.59044","wires":[]},{"id":"b08e4195.35b89","type":"for","name":"for each vnfc-instance-group","xml":"<for index='vnfc-idx' start='0' end='`$service-data.vnfc-instance-groups.vnfc-instance-group_length`' >\n","comments":"","outputs":1,"x":1086.1905822753906,"y":764.8422791957855,"z":"ad46ffb1.59044","wires":[["cfce73db.444a"]]},{"id":"bae20099.07b1f","type":"switchNode","name":"switch vnfc-instance-group length","xml":"<switch test='`$service-data.vnfc-instance-groups.vnfc-instance-group_length`'>\n","comments":"","outputs":1,"x":484.19061279296875,"y":727.1279656887054,"z":"ad46ffb1.59044","wires":[["83784130.f9a6d","3bc49b20.bc69d4"]]},{"id":"83784130.f9a6d","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":715.4762191772461,"y":626.6994416713715,"z":"ad46ffb1.59044","wires":[["ef26b095.af478"]]},{"id":"3bc49b20.bc69d4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":715.0476684570312,"y":831.9853875637054,"z":"ad46ffb1.59044","wires":[["c196ee7a.ca01e"]]},{"id":"4e1f1d25.97bcc4","type":"set","name":"set src and dest vnfc-instance-group indexes to 0 and 1","xml":"<set>\n<parameter name='tmp.src-vnfc-idx' value='0' />\n<parameter name='tmp.dest-vnfc-idx' value='1' />\n","comments":"","x":1426.666763305664,"y":596.937522649765,"z":"ad46ffb1.59044","wires":[]},{"id":"85ad272a.3311b8","type":"switchNode","name":"switch nfc-naming-code== src-nfc-naming-code","xml":"<switch test='`$service-data.vnfc-instance-groups.vnfc-instance-group[$vnfc-idx].nfc-naming-code == $tmp.src-nfc-naming-code`'>\n","comments":"","outputs":1,"x":2114.9048080444336,"y":711.0326793193817,"z":"ad46ffb1.59044","wires":[["904cff55.541c6"]]},{"id":"904cff55.541c6","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2365.952476501465,"y":709.3660762310028,"z":"ad46ffb1.59044","wires":[["d3793fdc.0a2ff"]]},{"id":"826084d1.080b38","type":"switchNode","name":"switch nfc-naming-code== dest-nfc-naming-code","xml":"<switch test='`$service-data.vnfc-instance-groups.vnfc-instance-group[$vnfc-idx].nfc-naming-code == $tmp.dest-nfc-naming-code`'>\n","comments":"","outputs":1,"x":2079.4290466308594,"y":810.0803000926971,"z":"ad46ffb1.59044","wires":[["76df0afb.11e574"]]},{"id":"76df0afb.11e574","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2363.8099822998047,"y":810.0803306102753,"z":"ad46ffb1.59044","wires":[["c21bf8.eab03408"]]},{"id":"f9f6a40c.995e38","type":"set","name":"set src and dest vnfc-instance-group indexes","xml":"<set>\n<parameter name='tmp.src-vnfc-idx' value='`$service-data.vnfc-instance-groups.vnfc-instance-group_length`' />\n<parameter name='tmp.dest-vnfc-idx' value='`$service-data.vnfc-instance-groups.vnfc-instance-group_length + 1`' />\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group_length' value='`$service-data.vnfc-instance-groups.vnfc-instance-group_length + 2`'/>\n","comments":"","x":1557.33349609375,"y":869.1279656887054,"z":"ad46ffb1.59044","wires":[]},{"id":"5497462d.218008","type":"switchNode","name":"switch instance-group-role == source network role","xml":"<switch test=\"`$service-data.vnfc-instance-groups.vnfc-instance-group[$vnfc-idx].instance-group-role == $tmp.src-network-role`\">\n","comments":"","outputs":1,"x":1599.76220703125,"y":713.1755731105804,"z":"ad46ffb1.59044","wires":[["25d48494.893ccc"]]},{"id":"25d48494.893ccc","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1858.5714683532715,"y":711.7470281124115,"z":"ad46ffb1.59044","wires":[["85ad272a.3311b8"]]},{"id":"7b66815b.00988","type":"set","name":"set vnfc-instance-group data","xml":"<set>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].instance-group-role'\n value='`$tmp.src-network-role`'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].nfc-naming-code'\n value='`$tmp.src-nfc-naming-code`'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].group-type'\n value='port-mirror-source'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].configuration-id'\n value='`$tmp.configuration-id`'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].instance-group-role'\n value='`$tmp.dest-network-role`'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].nfc-naming-code'\n value='`$tmp.dest-nfc-naming-code`'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].group-type'\n value='port-mirror-dest'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].configuration-id'\n value='`$tmp.configuration-id`'/>\n","comments":"","x":884.9523620605469,"y":2888.985690832138,"z":"ad46ffb1.59044","wires":[]},{"id":"a92de2b4.d0018","type":"save","name":"custom query: get owning entity","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.oe\">\n<parameter name=\"start[0]\" value=\"`'nodes/service-instances/service-instance?service-instance-id=' + $tmp.service-instance-id `\" />\n<parameter name=\"start_length\" value=\"1\" />\n<parameter name=\"query\" value=\"/query/owning-entity-fromService-instance\" /> \n","comments":"","outputs":1,"x":481.7143249511719,"y":1060.0568101406097,"z":"ad46ffb1.59044","wires":[["6b2910fe.e6dcc","d5b1a37.27eef6","2b7916ba.345d0a"]]},{"id":"cf8b1744.047588","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":749.6190490722656,"y":1272.1042115688324,"z":"ad46ffb1.59044","wires":[["49093ad5.e171a4"]]},{"id":"59373ca.423e2c4","type":"save","name":"custom query: get source network data","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.src-network\">\n <parameter name=\"start[0]\" value=\"`'/cloud-infrastructure/cloud-regions/cloud-region/' + $tmp.cloud-owner + '/' + $tmp.cloud-region-id`\" />\n <parameter name=\"start_length\" value=\"1\" /> \n <parameter name=\"query\" value=\"`'/query/network-name-fromNetwork-role?networkRole=' + $tmp.src-network-role`\" /> \n","comments":"","outputs":1,"x":510.4286651611328,"y":2466.6520936489105,"z":"ad46ffb1.59044","wires":[["12ac31cc.1492fe","7f7fb5ed.db5a5c"]]},{"id":"12ac31cc.1492fe","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":782.5715141296387,"y":2436.652218580246,"z":"ad46ffb1.59044","wires":[["b2ddda36.d1a248"]]},{"id":"8854e0fa.60ed8","type":"set","name":"copy A&AI data to topology","xml":"<set>\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.cloud-owner'\n value='`$tmp.cloud-owner`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.cloud-region-id'\n value='`$tmp.cloud-region-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.tenant'\n value='`$tmp.tenant`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.tenant-id'\n value='`$tmp.tenant-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-tenant'\n value='`$tmp.dest-tenant`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-tenant-id'\n value='`$tmp.dest-tenant-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.tenant-context'\n value='`$tmp.tenant-context`' />\n","comments":"","x":476.90464782714844,"y":2320.6756768226624,"z":"ad46ffb1.59044","wires":[]},{"id":"ad263b73.9e1128","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3049.762275695801,"y":707.699319601059,"z":"ad46ffb1.59044","wires":[["e719dfbc.122c1","63c03f51.fc305"]]},{"id":"a08aecf8.1164d","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3050.4767150878906,"y":806.9849908351898,"z":"ad46ffb1.59044","wires":[["ddbbed4c.69b25","63c03f51.fc305"]]},{"id":"c196ee7a.ca01e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":864.476318359375,"y":829.9851434230804,"z":"ad46ffb1.59044","wires":[["b08e4195.35b89","3f2e31c8.06f08e"]]},{"id":"c1e2010f.8bc8a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":927.8571548461914,"y":368.8422498703003,"z":"ad46ffb1.59044","wires":[["465844f2.75eb6c","63c03f51.fc305"]]},{"id":"cf05af60.13994","type":"comment","name":"rpc-port-mirror-1040","info":"","comments":"","x":414.0476379394531,"y":613.8422734737396,"z":"ad46ffb1.59044","wires":[]},{"id":"df46f124.b18a4","type":"comment","name":"step 2 - create vnfc-instance-group (done)","info":"","comments":"","x":484.0476531982422,"y":653.8422296047211,"z":"ad46ffb1.59044","wires":[]},{"id":"569cc477.0c727c","type":"comment","name":"step 3 - get owning entity (aai-port-mirror-1140)","info":"","comments":"","x":494.9524230957031,"y":973.7233216762543,"z":"ad46ffb1.59044","wires":[]},{"id":"4c7a8bad.448c34","type":"comment","name":"step 4 - get cloud-owner, cloud-region-id, and tenant (aai-port-mirror-1150)","info":"","comments":"","x":576.7618713378906,"y":1231.53280043602,"z":"ad46ffb1.59044","wires":[]},{"id":"a38b575c.8e5978","type":"comment","name":"step 5 - get network data (aai-port-mirror-1120)","info":"","comments":"","x":540.4286079406738,"y":2419.5092465877533,"z":"ad46ffb1.59044","wires":[]},{"id":"ec7724b4.2efb38","type":"comment","name":"step 6/7 - get vservers, l-interfaces, etc (aai-port-mirror-1130)","info":"","comments":"","x":577.1905212402344,"y":2627.937910795212,"z":"ad46ffb1.59044","wires":[]},{"id":"93550f20.12036","type":"comment","name":"step 8 - write data to vnfc-instance-groups","info":"","comments":"","x":511.6190185546875,"y":2848.6046578884125,"z":"ad46ffb1.59044","wires":[]},{"id":"730bd1a2.6e1bc","type":"comment","name":"step 9/10 - write instance group variables and vnf-ids to assignments","info":"","comments":"","x":591.5238265991211,"y":2987.9374301433563,"z":"ad46ffb1.59044","wires":[]},{"id":"7c9558cd.b82ff8","type":"comment","name":"rpc-port-mirror-1030","info":"","comments":"","x":431.5476760864258,"y":3526.819870710373,"z":"ad46ffb1.59044","wires":[]},{"id":"c0a00a8e.d159f8","type":"comment","name":"step 4 - write configuration identifiers to topology (done)","info":"","comments":"","x":536.5239105224609,"y":4850.438508749008,"z":"ad46ffb1.59044","wires":[]},{"id":"2578aa22.458d06","type":"comment","name":"step 5 - map source to dest (rpc-port-mirror-1050)","info":"","comments":"","x":563.6191253662109,"y":3573.604864835739,"z":"ad46ffb1.59044","wires":[]},{"id":"5307699d.4d8ca8","type":"comment","name":"step 6 - call DG to create network policy","info":"","comments":"","x":497.5001411437988,"y":3768.4856355190277,"z":"ad46ffb1.59044","wires":[]},{"id":"ddc35f62.7f936","type":"comment","name":"step 7 - create logical links (aai-port-mirror-1030)","info":"","comments":"","x":543.690616607666,"y":4180.390530347824,"z":"ad46ffb1.59044","wires":[]},{"id":"9382bde2.bd7ce","type":"comment","name":"step 8 - update configuration object (aai-port-mirror-1020) (done)","info":"","comments":"","x":564.4286499023438,"y":4651.151960134506,"z":"ad46ffb1.59044","wires":[]},{"id":"3f064715.dd5548","type":"comment","name":"step 9 - update references to configuration object (done)","info":"","comments":"","x":539.6668701171875,"y":4934.818518400192,"z":"ad46ffb1.59044","wires":[]},{"id":"5a1791a8.eaa3c","type":"comment","name":"step 10 - update oper status (done)","info":"","comments":"","x":471.6192321777344,"y":5138.676261663437,"z":"ad46ffb1.59044","wires":[]},{"id":"dda98e98.66fdf","type":"set","name":"set assignments high-level data","xml":"<set>\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.nfc-naming-code'\n value='`$tmp.src-nfc-naming-code`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.instance-group-role'\n value='`$tmp.src-network-role`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.service-instance-id'\n value='`$tmp.service-instance-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.configuration-id'\n value='`$tmp.configuration-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnf-id'\n value='`$tmp.src-vnf-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-capacity'\n value='`$tmp.src-pps`' />\n \n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-vnfc-instance-group-id.nfc-naming-code'\n value='`$tmp.dest-nfc-naming-code`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-vnfc-instance-group-id.instance-group-role'\n value='`$tmp.dest-network-role`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-vnfc-instance-group-id.service-instance-id'\n value='`$tmp.service-instance-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-vnfc-instance-group-id.configuration-id'\n value='`$tmp.configuration-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-vnf-id'\n value='`$tmp.dest-vnf-id`' />\n \n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.probe-type'\n value='vprobe' />\n \n","comments":"","x":884.0475997924805,"y":3027.5565707683563,"z":"ad46ffb1.59044","wires":[]},{"id":"ac2e3332.29b9f","type":"set","name":"write configuration identifiers to topology","xml":"<set>\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.configuration-identifiers.configuration-id'\n value='`$tmp.configuration-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.configuration-identifiers.configuration-type'\n value='`$port-mirror-topology-operation-input.configuration-information.configuration-type`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.configuration-identifiers.configuration-sub-type'\n value='`$port-mirror-topology-operation-input.configuration-information.configuration-sub-type`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.configuration-identifiers.parent-service-instance-id'\n value='`$tmp.service-instance-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.configuration-identifiers.configuration-name'\n value='`$tmp.configuration-name`' />\n","comments":"","x":497.4762268066406,"y":4894.724291563034,"z":"ad46ffb1.59044","wires":[]},{"id":"17bc986f.814148","type":"set","name":"copy A&AI data to topology","xml":"<set>\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.owning-entity' value='`$tmp.owning-entity`' />","comments":"","x":466.90484873453806,"y":1191.294898112615,"z":"ad46ffb1.59044","wires":[]},{"id":"b4b42190.25a09","type":"get-resource","name":"get-resource PORT_MIRROR_CAPABILITY","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='select role,nfc_naming_code,pps_capacity,network_role,policy_name\n from PORT_MIRROR_CAPABILITY cap, PORT_MIRROR_CONFIGURATION conf, SERVICE_PROXY sp\n where cap.port_mirror_capability_name=conf.port_mirror_capability_name\n and cap.port_mirror_service_uuid=conf.port_mirror_service_uuid\n and cap.service_proxy_name=conf.service_proxy_name\n and cap.service_proxy_name=sp.service_proxy_name\n and cap.port_mirror_service_uuid=sp.parent_service_uuid\n and conf.customization_uuid = $port-mirror-topology-operation-input.configuration-information.onap-model-information.model-customization-uuid\n and conf.port_mirror_service_uuid = $service-data.service-information.onap-model-information.model-uuid\n order by role'\n pfx='db.cap[]'>\n","comments":"","outputs":1,"x":520.7143173217773,"y":375.98510932922363,"z":"ad46ffb1.59044","wires":[["ab26b1cb.6c458","853dd343.7ef44"]]},{"id":"fc4ca4c9.69e018","type":"save","name":"custom query: get source interface data","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.src-li\">\n\t<parameter value=\"`'/network/generic-vnfs/generic-vnf/' + $tmp.src-vnf-id`\" name=\"start[0]\"/>\n\t<parameter value=\"1\" name=\"start_length\"/>\n\t<parameter value=\"`'/query/vserver-fromVnf?nfcNamingCode=' + $tmp.encoded-src-nfc-naming-code`\" name=\"query\"/>\n","comments":"","outputs":1,"x":512.2381591796875,"y":2681.937666654587,"z":"ad46ffb1.59044","wires":[["c71cf508.fbd108","bd71f446.ad9978"]]},{"id":"c71cf508.fbd108","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":783.4285697937012,"y":2662.4139783382416,"z":"ad46ffb1.59044","wires":[["864b2f27.10409"]]},{"id":"3673b9cb.5e0016","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=\"`$error-message`\" />\n","comments":"","x":1953.5473327636719,"y":6067.818812131882,"z":"ad46ffb1.59044","wires":[]},{"id":"96200486.022548","type":"configure","name":"send error to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\" value=\"`$port-mirror-topology-operation-input.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\" value=\"Y\" />\n<parameter name=\"input.response-code\" value=\"500\" />\n<parameter name=\"input.response-message\" value=\"`$error-message`\" />\n<parameter name=\"input.svc-request-id\" value=\"`$port-mirror-topology-operation-input.sdnc-request-header.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\" value=\"`$port-mirror-topology-operation-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\" value=\"`$port-mirror-topology-operation-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":1972.906379699707,"y":6019.618288755417,"z":"ad46ffb1.59044","wires":[[]]},{"id":"63c03f51.fc305","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1800.2141189575195,"y":6040.676154851913,"z":"ad46ffb1.59044","wires":[["96200486.022548","3673b9cb.5e0016"]]},{"id":"e719dfbc.122c1","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'Source nfc-naming-code of ' + $tmp.src-nfc-naming-code + ' already exists in vnfc-instance-groups for this configuration-id'`\" />\n","comments":"","outputs":1,"x":3274.0480422973633,"y":679.1278855800629,"z":"ad46ffb1.59044","wires":[[]]},{"id":"ddbbed4c.69b25","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'Dest nfc-naming-code of ' + $tmp.dest-nfc-naming-code + ' already exists in vnfc-instance-groups for this configuration-id'`\" />\n","comments":"","outputs":1,"x":3271.0480346679688,"y":776.127916097641,"z":"ad46ffb1.59044","wires":[[]]},{"id":"49093ad5.e171a4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":922.1904983520508,"y":1273.056488752365,"z":"ad46ffb1.59044","wires":[["4b208346.335cec","63c03f51.fc305"]]},{"id":"4b208346.335cec","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to AAI custom query: cloud-region-fromVnf\" />\n","comments":"","outputs":1,"x":1135.190528869629,"y":1273.0565965175629,"z":"ad46ffb1.59044","wires":[[]]},{"id":"539e08.2cbc11f8","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to AAI custom query: network-name-fromNetwork-role\" />\n","comments":"","outputs":1,"x":1156.1429634094238,"y":2429.7950398921967,"z":"ad46ffb1.59044","wires":[[]]},{"id":"3cbceaf3.21fa26","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to AAI custom query vserver-fromVnf for source vnf\" />\n","comments":"","outputs":1,"x":1172.6190490722656,"y":2662.794835805893,"z":"ad46ffb1.59044","wires":[[]]},{"id":"b2ddda36.d1a248","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":951.8096046447754,"y":2430.4615848064423,"z":"ad46ffb1.59044","wires":[["539e08.2cbc11f8","63c03f51.fc305"]]},{"id":"864b2f27.10409","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":942.9524192810059,"y":2662.128130197525,"z":"ad46ffb1.59044","wires":[["3cbceaf3.21fa26","63c03f51.fc305"]]},{"id":"39eab347.ba000c","type":"save","name":"custom query: get cloud region from vnf","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource&nodesOnly=true'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.vnf\">\n<parameter name=\"start[0]\" value=\"`'/network/generic-vnfs/generic-vnf/' + $tmp.src-vnf-id `\" />\n<parameter name=\"start_length\" value=\"1\" />\n<parameter name=\"query\" value=\"query/cloud-region-fromVnf\" /> \n","comments":"","outputs":1,"x":505.0476379394531,"y":1294.10408949852,"z":"ad46ffb1.59044","wires":[["cf8b1744.047588","d0e9d16b.5ac0d"]]},{"id":"6b2910fe.e6dcc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":731.9524116516113,"y":1013.7232768535614,"z":"ad46ffb1.59044","wires":[["3d2afe64.53a9e2"]]},{"id":"3d2afe64.53a9e2","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":899.6667404174805,"y":1013.4374158382416,"z":"ad46ffb1.59044","wires":[["6b3fecc6.167694","63c03f51.fc305"]]},{"id":"6b3fecc6.167694","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to AAI custom query: owning-entity-fromService-instance\" />\n","comments":"","outputs":1,"x":1100.2382011413574,"y":1013.1517369747162,"z":"ad46ffb1.59044","wires":[[]]},{"id":"d5b1a37.27eef6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":739.0953063964844,"y":1059.43750166893,"z":"ad46ffb1.59044","wires":[["498bf269.3bee4c"]]},{"id":"498bf269.3bee4c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":903.3810157775879,"y":1058.008983373642,"z":"ad46ffb1.59044","wires":[["ee857f71.e7279","63c03f51.fc305"]]},{"id":"ee857f71.e7279","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"No owning entity returned from AAI: owning-entity-fromService-instance\" />\n","comments":"","outputs":1,"x":1103.9524765014648,"y":1057.7233045101166,"z":"ad46ffb1.59044","wires":[[]]},{"id":"d0e9d16b.5ac0d","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":763.3333435058594,"y":1322.961267232895,"z":"ad46ffb1.59044","wires":[["7f9ea47.0a4d75c"]]},{"id":"7f9ea47.0a4d75c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":927.6190528869629,"y":1321.5327489376068,"z":"ad46ffb1.59044","wires":[["84c17964.af8038","63c03f51.fc305"]]},{"id":"84c17964.af8038","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"No cloud region returned from AAI: cloud-region-fromVnf\" />\n","comments":"","outputs":1,"x":1128.1905136108398,"y":1321.2470700740814,"z":"ad46ffb1.59044","wires":[[]]},{"id":"7f7fb5ed.db5a5c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":791.8571510314941,"y":2485.4616515636444,"z":"ad46ffb1.59044","wires":[["5d211eb.2a894e"]]},{"id":"5d211eb.2a894e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":956.1428604125977,"y":2484.0331332683563,"z":"ad46ffb1.59044","wires":[["a2e4d3b6.99b26","63c03f51.fc305"]]},{"id":"a2e4d3b6.99b26","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"No network information returned from AAI: network-name-fromNetwork-role\" />\n","comments":"","outputs":1,"x":1155.0475883483887,"y":2482.0807683467865,"z":"ad46ffb1.59044","wires":[[]]},{"id":"bd71f446.ad9978","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":791.9999694824219,"y":2716.461442708969,"z":"ad46ffb1.59044","wires":[["3ea31ed7.03df92"]]},{"id":"3ea31ed7.03df92","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":956.2856788635254,"y":2715.032924413681,"z":"ad46ffb1.59044","wires":[["7dbff819.5bfbe8","63c03f51.fc305"]]},{"id":"7dbff819.5bfbe8","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"No interface data returned from AAI vserver-fromVnf for source vnf\" />\n","comments":"","outputs":1,"x":1155.1904067993164,"y":2713.080559492111,"z":"ad46ffb1.59044","wires":[[]]},{"id":"b7f41d13.6fd4c","type":"set","name":"set provided-configuration references","xml":"<set>\n<parameter name='service-data.provided-configurations.provided-configuration[$tmp.provided-conf-idx].configuration-id'\n value='`$tmp.configuration-id`' />\n<parameter name='service-data.provided-configurations.provided-configuration[$tmp.provided-conf-idx].configuration-type'\n value='`$port-mirror-topology-operation-input.configuration-information.configuration-type`' />\n<parameter name='service-data.provided-configurations.provided-configuration[$tmp.provided-conf-idx].configuration-sub-type'\n value='`$port-mirror-topology-operation-input.configuration-information.configuration-sub-type`' />\n<parameter name='service-data.provided-configurations.provided-configuration[$tmp.provided-conf-idx].configuration-topology-link'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:port-mirror-configurations/port-mirror-configuration/' + $tmp.configuration-id + '/configuration-data/port-mirror-configuration-topology'`\" />\n","comments":"","x":485.0953826904297,"y":5088.533381223679,"z":"ad46ffb1.59044","wires":[]},{"id":"6e0f32b2.2cbbfc","type":"set","name":"set tmp.provided-conf-idx to 0","xml":"<set>\n<parameter name='tmp.provided-conf-idx' value='0' />\n","comments":"","x":935.0953140258789,"y":4983.533135175705,"z":"ad46ffb1.59044","wires":[]},{"id":"94e068c9.523098","type":"switchNode","name":"switch provided-configuration_length","xml":"<switch test='`$service-data.provided-configurations.provided-configuration_length`'>\n","comments":"","outputs":1,"x":485.0954284667969,"y":5016.866305112839,"z":"ad46ffb1.59044","wires":[["9b5988f1.682ef8","fd407f90.6b97d"]]},{"id":"9b5988f1.682ef8","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":720.0953674316406,"y":4985.199560880661,"z":"ad46ffb1.59044","wires":[["6e0f32b2.2cbbfc"]]},{"id":"fd407f90.6b97d","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":720.3334655761719,"y":5042.818625211716,"z":"ad46ffb1.59044","wires":[["b5bce153.d8e4b"]]},{"id":"b5bce153.d8e4b","type":"set","name":"set tmp.provided-conf-idx to current length","xml":"<set>\n<parameter name='tmp.provided-conf-idx' value='`$service-data.provided-configurations.provided-configuration_length`' />\n<parameter name='service-data.provided-configurations.provided-configuration_length' value='`$tmp.provided-conf-idx + 1`' />\n","comments":"","x":973.4286880493164,"y":5043.532810926437,"z":"ad46ffb1.59044","wires":[]},{"id":"1b63f2c6.c9c3cd","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='pm.configuration-data.configuration-oper-status.order-status'\n value='Created' />\n<parameter name='pm.configuration-data.configuration-oper-status.last-action'\n value='`$port-mirror-topology-operation-input.request-information.request-action`' />\n<parameter name='pm.configuration-data.configuration-oper-status.last-rpc-action'\n value='`$port-mirror-topology-operation-input.sdnc-request-header.svc-action`' />\n","comments":"","x":413.0954284667969,"y":5183.199943304062,"z":"ad46ffb1.59044","wires":[]},{"id":"7c21534.f0151ac","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Error updating md-sal for port-mirror-configuration\" />\n","comments":"","outputs":1,"x":1292.9762725830078,"y":5313.223598241806,"z":"ad46ffb1.59044","wires":[[]]},{"id":"df3069ed.4ad628","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1098.9762725830078,"y":5339.223598241806,"z":"ad46ffb1.59044","wires":[["7c21534.f0151ac","b9471f80.beb4f"]]},{"id":"3278f6bc.28dd4a","type":"save","name":"update configuration object","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"configuration\"\n key=\"configuration.configuration-id = $tmp.configuration-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"configuration-name\" value=\"`$tmp.configuration-name`\" />\n<parameter name=\"operational-status\" value=\"out-of-service-path\" />\n<parameter name=\"configuration-selflink\" value=\"`'/config/GENERIC-RESOURCE-API:port-mirror-configurations/port-mirror-configuration/'\n + $port-mirror-topology-operation-input.configuration-information.configuration-id + '/configuration-data/port-mirror-configuration-topology'`\" />\n","comments":"","outputs":1,"x":458.2381057739258,"y":4726.151884794235,"z":"ad46ffb1.59044","wires":[["5afb000a.4d7de","5869bf9c.0fe5a"]]},{"id":"5afb000a.4d7de","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":662.5954246520996,"y":4749.771194219589,"z":"ad46ffb1.59044","wires":[["69096410.56db8c"]]},{"id":"5869bf9c.0fe5a","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":671.1668395996094,"y":4699.056997060776,"z":"ad46ffb1.59044","wires":[["db67428e.c1fa4"]]},{"id":"69096410.56db8c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":844.9047698974609,"y":4751.151537656784,"z":"ad46ffb1.59044","wires":[["f4035afd.1eff48","b9471f80.beb4f"]]},{"id":"db67428e.c1fa4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":844.9047470092773,"y":4699.485204458237,"z":"ad46ffb1.59044","wires":[["37f18fcb.abe9a","b9471f80.beb4f"]]},{"id":"f4035afd.1eff48","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failure updating configuration object in AAI\" />\n","comments":"","outputs":1,"x":1031.5713958740234,"y":4751.151537656784,"z":"ad46ffb1.59044","wires":[[]]},{"id":"37f18fcb.abe9a","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Unable to find configuration object in AAI\" />\n","comments":"","outputs":1,"x":1041.5713577270508,"y":4697.818469762802,"z":"ad46ffb1.59044","wires":[[]]},{"id":"b0683757.70acd8","type":"switchNode","name":"switch input configuration-name","xml":"<switch test='`$port-mirror-topology-operation-input.configuration-information.configuration-name`'>\n","comments":"","outputs":1,"x":478.0001220703125,"y":3948.6045615673065,"z":"ad46ffb1.59044","wires":[["9aad7446.82ff88","7fbcc8b1.312ee8"]]},{"id":"9aad7446.82ff88","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":716.3334503173828,"y":3926.9377343654633,"z":"ad46ffb1.59044","wires":[["f4b25a9.9b490a8"]]},{"id":"7fbcc8b1.312ee8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":716.5715103149414,"y":3971.223790884018,"z":"ad46ffb1.59044","wires":[["1cfb2e4.fae17d2"]]},{"id":"f4b25a9.9b490a8","type":"set","name":"generate name","xml":"<set>\n<parameter name='tmp.configuration-name' value=\"`'PMC_' + $tmp.tenant + '_' + $tmp.cloud-region-id + '_' + $port-mirror-topology-operation-input.configuration-information.configuration-type + '_' + $tmp.configuration-id`\" />\n","comments":"","x":894.6667861938477,"y":3926.937853574753,"z":"ad46ffb1.59044","wires":[]},{"id":"1cfb2e4.fae17d2","type":"set","name":"copy name to tmp.configuration-name","xml":"<set>\n<parameter name='tmp.configuration-name' value='`$port-mirror-topology-operation-input.configuration-information.configuration-name`' />\n","comments":"","x":963.0000610351562,"y":3970.2711083889008,"z":"ad46ffb1.59044","wires":[]},{"id":"3f4d2f6e.a6f3f","type":"save","name":"custom query: get dest interface data","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.dest-li\">\n\t<parameter value=\"`'/network/generic-vnfs/generic-vnf/' + $tmp.dest-vnf-id`\" name=\"start[0]\"/>\n\t<parameter value=\"1\" name=\"start_length\"/>\n\t<parameter value=\"`'/query/vserver-fromVnf?nfcNamingCode=' + $tmp.encoded-dest-nfc-naming-code`\" name=\"query\"/>\n","comments":"","outputs":1,"x":900.0000152587891,"y":2779.794685125351,"z":"ad46ffb1.59044","wires":[["eabfaba8.1a1b58","e8fa0fb9.d067f"]]},{"id":"eabfaba8.1a1b58","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1171.1904258728027,"y":2760.2709968090057,"z":"ad46ffb1.59044","wires":[["645c5606.f95b48"]]},{"id":"5934b8dd.233468","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to AAI custom query vserver-fromVnf for dest vnf\" />\n","comments":"","outputs":1,"x":1560.3809051513672,"y":2760.651854276657,"z":"ad46ffb1.59044","wires":[[]]},{"id":"645c5606.f95b48","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1330.7142753601074,"y":2759.985148668289,"z":"ad46ffb1.59044","wires":[["5934b8dd.233468","63c03f51.fc305"]]},{"id":"e8fa0fb9.d067f","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1179.7618255615234,"y":2814.3184611797333,"z":"ad46ffb1.59044","wires":[["bfca4c81.3f76"]]},{"id":"bfca4c81.3f76","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1344.047534942627,"y":2812.889942884445,"z":"ad46ffb1.59044","wires":[["f19b293.d210ed8","63c03f51.fc305"]]},{"id":"f19b293.d210ed8","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"No interface data returned from AAI vserver-fromVnf for dest vnf\" />\n","comments":"","outputs":1,"x":1542.952262878418,"y":2810.9375779628754,"z":"ad46ffb1.59044","wires":[[]]},{"id":"bccb28e8.16a9b8","type":"save","name":"custom query: get dest network data","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.dest-network\">\n <parameter name=\"start[0]\" value=\"`'/cloud-infrastructure/cloud-regions/cloud-region/' + $tmp.cloud-owner + '/' + $tmp.cloud-region-id`\" />\n <parameter name=\"start_length\" value=\"1\" /> \n <parameter name=\"query\" value=\"`'/query/network-name-fromNetwork-role?networkRole=' + $tmp.dest-network-role`\" /> \n","comments":"","outputs":1,"x":905.0000457763672,"y":2559.794838666916,"z":"ad46ffb1.59044","wires":[["ee6bb08a.94728","53108b40.4bfeb4"]]},{"id":"ee6bb08a.94728","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1177.142894744873,"y":2529.7949635982513,"z":"ad46ffb1.59044","wires":[["17c66940.45d1c7"]]},{"id":"65f00856.6009c8","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to AAI custom query: network-name-fromNetwork-role\" />\n","comments":"","outputs":1,"x":1550.7143440246582,"y":2522.937784910202,"z":"ad46ffb1.59044","wires":[[]]},{"id":"17c66940.45d1c7","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1346.3809852600098,"y":2523.6043298244476,"z":"ad46ffb1.59044","wires":[["65f00856.6009c8","63c03f51.fc305"]]},{"id":"53108b40.4bfeb4","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1186.4285316467285,"y":2578.60439658165,"z":"ad46ffb1.59044","wires":[["60989e30.be117"]]},{"id":"60989e30.be117","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1350.714241027832,"y":2577.1758782863617,"z":"ad46ffb1.59044","wires":[["92a79ef5.fa3e","63c03f51.fc305"]]},{"id":"92a79ef5.fa3e","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"No network information returned from AAI: network-name-fromNetwork-role\" />\n","comments":"","outputs":1,"x":1549.618968963623,"y":2575.223513364792,"z":"ad46ffb1.59044","wires":[[]]},{"id":"30c54a00.afa5d6","type":"comment","name":"walk through the data returned from A&AI","info":"","comments":"","x":212.3333854675293,"y":3317.4135043621063,"z":"ad46ffb1.59044","wires":[]},{"id":"c1689047.89198","type":"for","name":"for each src network","xml":"<for index='src-nw-idx' start='0' end='`$tmp.AnAI-data.src-network.results_length`' >\n","comments":"","outputs":1,"x":443.0000648498535,"y":3169.4611241817474,"z":"ad46ffb1.59044","wires":[["2cd007ca.1929a8"]]},{"id":"2cd007ca.1929a8","type":"switchNode","name":"switch network-name","xml":"<switch test='`$tmp.AnAI-data.src-network.results[$src-nw-idx].l3-network.network-name`'>\n","comments":"","outputs":1,"x":671.3334274291992,"y":3166.12770819664,"z":"ad46ffb1.59044","wires":[["d7919be.53eda68","c29693c7.fb429"]]},{"id":"d7919be.53eda68","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":856.3333625793457,"y":3139.461038351059,"z":"ad46ffb1.59044","wires":[["362c8304.4cbdfc"]]},{"id":"c29693c7.fb429","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":856.3332939147949,"y":3190.8897111415863,"z":"ad46ffb1.59044","wires":[["a4a87364.b0d06"]]},{"id":"362c8304.4cbdfc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1018.0000267028809,"y":3140.1753146648407,"z":"ad46ffb1.59044","wires":[[]]},{"id":"a4a87364.b0d06","type":"switchNode","name":"switch tmp.src-network-name","xml":"<switch test='`$tmp.src-network-name`'>\n","comments":"","outputs":1,"x":1061.3334617614746,"y":3189.46128821373,"z":"ad46ffb1.59044","wires":[["605de0a1.ea25b","1fd130aa.f375ff"]]},{"id":"605de0a1.ea25b","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1267.9999885559082,"y":3162.794290304184,"z":"ad46ffb1.59044","wires":[["9fdf6659.2008e8"]]},{"id":"1fd130aa.f375ff","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1267.9999198913574,"y":3214.2229630947113,"z":"ad46ffb1.59044","wires":[["ae6d4e1c.b688b"]]},{"id":"ae6d4e1c.b688b","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1426.3333625793457,"y":3212.794290304184,"z":"ad46ffb1.59044","wires":[["8adf8a07.c692b8","63c03f51.fc305"]]},{"id":"8adf8a07.c692b8","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'More than one l3-network returned from AAI for network-role ' + $tmp.src-network-role`\" />\n","comments":"","outputs":1,"x":1628.5715026855469,"y":3210.841985464096,"z":"ad46ffb1.59044","wires":[[]]},{"id":"625b85e.683ee7c","type":"for","name":"for each dest network","xml":"<for index='dest-nw-idx' start='0' end='`$tmp.AnAI-data.dest-network.results_length`' >\n","comments":"","outputs":1,"x":1014.3333587646484,"y":3317.461047887802,"z":"ad46ffb1.59044","wires":[["f3dfbef3.6ed35"]]},{"id":"f3dfbef3.6ed35","type":"switchNode","name":"switch network-name","xml":"<switch test='`$tmp.AnAI-data.dest-network.results[$dest-nw-idx].l3-network.network-name`'>\n","comments":"","outputs":1,"x":1242.6667213439941,"y":3314.1276319026947,"z":"ad46ffb1.59044","wires":[["678c96f2.cc4388","ec3b96ff.47f7a8"]]},{"id":"678c96f2.cc4388","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1427.6666564941406,"y":3287.4609620571136,"z":"ad46ffb1.59044","wires":[["587cf5c6.ba63ec"]]},{"id":"ec3b96ff.47f7a8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1427.6665878295898,"y":3338.889634847641,"z":"ad46ffb1.59044","wires":[["9c35b414.e31698"]]},{"id":"587cf5c6.ba63ec","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1589.3333206176758,"y":3288.1752383708954,"z":"ad46ffb1.59044","wires":[[]]},{"id":"9c35b414.e31698","type":"switchNode","name":"switch tmp.dest-network-name","xml":"<switch test='`$tmp.dest-network-name`'>\n","comments":"","outputs":1,"x":1632.6667556762695,"y":3337.4612119197845,"z":"ad46ffb1.59044","wires":[["aba201a4.051ba","7a095d13.048ae4"]]},{"id":"aba201a4.051ba","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1839.3332824707031,"y":3310.7942140102386,"z":"ad46ffb1.59044","wires":[["9d76aa87.81e4e8"]]},{"id":"7a095d13.048ae4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1839.3332138061523,"y":3362.222886800766,"z":"ad46ffb1.59044","wires":[["2a5e35ab.cdec4a"]]},{"id":"2a5e35ab.cdec4a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1997.6666564941406,"y":3360.7942140102386,"z":"ad46ffb1.59044","wires":[["8bfc73ed.fc9f","63c03f51.fc305"]]},{"id":"8bfc73ed.fc9f","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'More than one l3-network returned from AAI for network-role ' + $tmp.dest-network-role`\" />\n","comments":"","outputs":1,"x":2199.904796600342,"y":3358.8419091701508,"z":"ad46ffb1.59044","wires":[[]]},{"id":"43220e3c.7f04b","type":"comment","name":"determine src and dest network names","info":"","comments":"","x":536.3333778381348,"y":3122.794374227524,"z":"ad46ffb1.59044","wires":[]},{"id":"d3bec9cf.937968","type":"switchNode","name":"switch tmp.src-network-name","xml":"<switch test='`$tmp.src-network-name`'>\n","comments":"","outputs":1,"x":468.6666717529297,"y":3249.461126089096,"z":"ad46ffb1.59044","wires":[["abaf7b95.e9d2a8"]]},{"id":"abaf7b95.e9d2a8","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":677.0000190734863,"y":3248.7944705486298,"z":"ad46ffb1.59044","wires":[["6e9098e0.3b0088"]]},{"id":"6e9098e0.3b0088","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":830.3333282470703,"y":3248.127874135971,"z":"ad46ffb1.59044","wires":[["4f6fc74.a7c5038","63c03f51.fc305"]]},{"id":"4f6fc74.a7c5038","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Cannot determine source network name from AAI data\" />\n","comments":"","outputs":1,"x":1021.9999542236328,"y":3247.794378042221,"z":"ad46ffb1.59044","wires":[[]]},{"id":"6e2daa52.cd5594","type":"switchNode","name":"switch tmp.dest-network-name","xml":"<switch test='`$tmp.dest-network-name`'>\n","comments":"","outputs":1,"x":1038.0000381469727,"y":3423.1277639865875,"z":"ad46ffb1.59044","wires":[["4c56824a.8a235c"]]},{"id":"4c56824a.8a235c","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1246.3333854675293,"y":3421.461108446121,"z":"ad46ffb1.59044","wires":[["8d7d1967.e0a578"]]},{"id":"8d7d1967.e0a578","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1399.6666946411133,"y":3419.7945120334625,"z":"ad46ffb1.59044","wires":[["fde3a27f.3918f","63c03f51.fc305"]]},{"id":"fde3a27f.3918f","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Cannot determine dest network name from AAI data\" />\n","comments":"","outputs":1,"x":1591.3333206176758,"y":3416.4610159397125,"z":"ad46ffb1.59044","wires":[[]]},{"id":"b40e2769.9b66e8","type":"for","name":"for each returned result","xml":"<for index='result-idx' start='0' end='`$tmp.AnAI-data.vnf.results_length`' >\n","comments":"","outputs":1,"x":452.0000457763672,"y":1553.294564962387,"z":"ad46ffb1.59044","wires":[["ccbe45ed.d09b58"]]},{"id":"ccbe45ed.d09b58","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":660.3333435058594,"y":1553.294564962387,"z":"ad46ffb1.59044","wires":[["a5ce191e.435038","78aa9e8c.548e","524fa73b.dde868","4dee36e.58e6bc8","7f533d3d.edc374"]]},{"id":"a5ce191e.435038","type":"switchNode","name":"switch tenant-name","xml":"<switch test='`$tmp.AnAI-data.vnf.results[$result-idx].tenant.tenant-name`'>\n","comments":"","outputs":1,"x":893.6667098999023,"y":1383.294781446457,"z":"ad46ffb1.59044","wires":[["98836081.83ee2","49da7d2e.a5da44"]]},{"id":"98836081.83ee2","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1093.6666145324707,"y":1364.961406469345,"z":"ad46ffb1.59044","wires":[["c542e7ec.b41f78"]]},{"id":"49da7d2e.a5da44","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1091.999885559082,"y":1404.72345328331,"z":"ad46ffb1.59044","wires":[["7963162e.49a188"]]},{"id":"c542e7ec.b41f78","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1235.333288192749,"y":1364.9614474773407,"z":"ad46ffb1.59044","wires":[[]]},{"id":"7963162e.49a188","type":"set","name":"set tmp.tenant from tenant-name","xml":"<set>\n<parameter name='tmp.tenant' value='`$tmp.AnAI-data.vnf.results[$result-idx].tenant.tenant-name`' />\n","comments":"","x":1315.333366394043,"y":1404.961490392685,"z":"ad46ffb1.59044","wires":[]},{"id":"78aa9e8c.548e","type":"switchNode","name":"switch cloud-owner","xml":"<switch test='`$tmp.AnAI-data.vnf.results[$result-idx].cloud-region.cloud-owner`'>\n","comments":"","outputs":1,"x":887.0002746582031,"y":1628.2948701381683,"z":"ad46ffb1.59044","wires":[["71f1efb2.58789","a0f74502.c40b78"]]},{"id":"71f1efb2.58789","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1087.0001792907715,"y":1609.9614951610565,"z":"ad46ffb1.59044","wires":[["51b8c84b.a15a58"]]},{"id":"a0f74502.c40b78","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1085.3334503173828,"y":1649.7235419750214,"z":"ad46ffb1.59044","wires":[["c5078c32.1a81b"]]},{"id":"51b8c84b.a15a58","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1228.6668529510498,"y":1609.9615361690521,"z":"ad46ffb1.59044","wires":[[]]},{"id":"c5078c32.1a81b","type":"set","name":"set tmp.cloud-owner","xml":"<set>\n<parameter name='tmp.cloud-owner' value='`$tmp.AnAI-data.vnf.results[$result-idx].cloud-region.cloud-owner`' />\n","comments":"","x":1265.3336791992188,"y":1653.2949311733246,"z":"ad46ffb1.59044","wires":[]},{"id":"524fa73b.dde868","type":"switchNode","name":"switch cloud-region-id","xml":"<switch test='`$tmp.AnAI-data.vnf.results[$result-idx].cloud-region.cloud-region-id`'>\n","comments":"","outputs":1,"x":895.3336181640625,"y":1716.6279618740082,"z":"ad46ffb1.59044","wires":[["4cd41d77.62d1d4","fd25effc.e7aca"]]},{"id":"4cd41d77.62d1d4","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1087.000186920166,"y":1696.6279199123383,"z":"ad46ffb1.59044","wires":[["99f0220c.25b96"]]},{"id":"fd25effc.e7aca","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1085.3334579467773,"y":1736.389966726303,"z":"ad46ffb1.59044","wires":[["fa8958ae.e93378"]]},{"id":"99f0220c.25b96","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1228.6668605804443,"y":1696.6279609203339,"z":"ad46ffb1.59044","wires":[[]]},{"id":"fa8958ae.e93378","type":"set","name":"set tmp.cloud-region-id","xml":"<set>\n<parameter name='tmp.cloud-region-id' value='`$tmp.AnAI-data.vnf.results[$result-idx].cloud-region.cloud-region-id`' />\n","comments":"","x":1275.3335418701172,"y":1736.627985715866,"z":"ad46ffb1.59044","wires":[]},{"id":"e53b0107.99046","type":"switchNode","name":"switch tmp.tenant","xml":"<switch test='`$tmp.tenant`'>\n","comments":"","outputs":1,"x":440.0000686645508,"y":1781.9614572525024,"z":"ad46ffb1.59044","wires":[["871be54d.651f78"]]},{"id":"871be54d.651f78","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":675.0000330607099,"y":1778.627943356832,"z":"ad46ffb1.59044","wires":[["9e59cffc.17c17"]]},{"id":"9e59cffc.17c17","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":833.3333460489912,"y":1778.627943356832,"z":"ad46ffb1.59044","wires":[["2fae4fcd.563b7","63c03f51.fc305"]]},{"id":"2fae4fcd.563b7","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to retrieve source tenant from AAI\" />\n","comments":"","outputs":1,"x":1033.9048067728681,"y":1778.3422644933066,"z":"ad46ffb1.59044","wires":[[]]},{"id":"53a52a6c.d1cd64","type":"switchNode","name":"switch tmp.cloud-region-id","xml":"<switch test='`$tmp.cloud-region-id`'>\n","comments":"","outputs":1,"x":466.00001525878906,"y":1876.9612882137299,"z":"ad46ffb1.59044","wires":[["7e86423b.eb811c"]]},{"id":"7e86423b.eb811c","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":672.6666361490888,"y":1876.961163600286,"z":"ad46ffb1.59044","wires":[["82a1ad5f.91c0a"]]},{"id":"82a1ad5f.91c0a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":830.9999491373701,"y":1876.961163600286,"z":"ad46ffb1.59044","wires":[["da9fb459.35a968","63c03f51.fc305"]]},{"id":"da9fb459.35a968","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to retrieve tenant from AAI\" />\n","comments":"","outputs":1,"x":1031.571409861247,"y":1876.6754847367606,"z":"ad46ffb1.59044","wires":[[]]},{"id":"1bbc7787.e7f1b8","type":"switchNode","name":"switch tmp.cloud-owner","xml":"<switch test='`$tmp.cloud-owner`'>\n","comments":"","outputs":1,"x":458,"y":1921.9612500667572,"z":"ad46ffb1.59044","wires":[["6d6681d5.c0eda"]]},{"id":"6d6681d5.c0eda","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":674.6666361490888,"y":1923.6277895768485,"z":"ad46ffb1.59044","wires":[["752bd23f.167a0c"]]},{"id":"752bd23f.167a0c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":832.9999491373701,"y":1923.6277895768485,"z":"ad46ffb1.59044","wires":[["9eae290b.710ba8","63c03f51.fc305"]]},{"id":"9eae290b.710ba8","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to retrieve tenant from AAI\" />\n","comments":"","outputs":1,"x":1033.571409861247,"y":1923.342110713323,"z":"ad46ffb1.59044","wires":[[]]},{"id":"6aa8217a.be7a8","type":"call","name":"call api-contrail-route-topology-operation-create","xml":"<call module='GENERIC-RESOURCE-API' rpc='api-contrail-route-topology-operation-create' mode='sync' >\n\n","comments":"","outputs":1,"x":1091.3572235107422,"y":3827.5327785015106,"z":"ad46ffb1.59044","wires":[["45726510.62287c"]]},{"id":"45726510.62287c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1362.5477600097656,"y":3826.103891134262,"z":"ad46ffb1.59044","wires":[["db838c10.6d034"]]},{"id":"cf530372.3cdf2","type":"set","name":"set parameters","xml":"<set>\n<parameter name='cto-api.parent-service-instance-id' value='`$tmp.service-instance-id`' />\n<parameter name='cto-api.port-mirror-configuration-instance-id' value='`$tmp.configuration-id`' />\n<parameter name='cto-api.source-network-role' value='`$tmp.src-network-role`' />\n<parameter name='cto-api.collector-network-role' value='`$tmp.dest-network-role`' />\n<parameter name='cto-api.default-domain' value='default-domain' />\n<parameter name='cto-api.default-project' value='`$tmp.tenant`' />\n<parameter name='cto-api.cloud-region-id' value='`$tmp.cloud-region-id`' />\n<parameter name='cto-api.cloud-owner' value='`$tmp.cloud-owner`' />\n<parameter name='cto-api.service-type' value='`$port-mirror-topology-operation-input.service-information.subscription-service-type`' />\n<parameter name='cto-api.owning-entity' value='`$tmp.owning-entity`' />\n","comments":"","x":993.6905212402344,"y":3780.866028547287,"z":"ad46ffb1.59044","wires":[]},{"id":"2b7916ba.345d0a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":734.3333841959634,"y":1103.9613708655038,"z":"ad46ffb1.59044","wires":[["e03fa6c8.93c8e8"]]},{"id":"e03fa6c8.93c8e8","type":"set","name":"set tmp.owning-entity","xml":"<set>\n<parameter name='tmp.owning-entity' value='`$tmp.AnAI-data.oe.results[0].owning-entity.owning-entity-id`' />\n","comments":"","x":922.6666717529297,"y":1102.2947480678558,"z":"ad46ffb1.59044","wires":[]},{"id":"6aa6e65.77d1a18","type":"switchNode","name":"switch tmp.owning-entity","xml":"<switch test='`$tmp.owning-entity`'>\n","comments":"","outputs":1,"x":460.66676330566406,"y":1143.9613778591156,"z":"ad46ffb1.59044","wires":[["a1f43b.6baa9bc8"]]},{"id":"a1f43b.6baa9bc8","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":697.3334376017256,"y":1150.627945025762,"z":"ad46ffb1.59044","wires":[["89c6a8e0.6ffd88"]]},{"id":"89c6a8e0.6ffd88","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":862.3333803812666,"y":1150.6278639634452,"z":"ad46ffb1.59044","wires":[["6cf20a3f.e1e824","63c03f51.fc305"]]},{"id":"6cf20a3f.e1e824","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to retrieve owning-entity from AAI\" />\n","comments":"","outputs":1,"x":1059.5715071360273,"y":1148.6754713853202,"z":"ad46ffb1.59044","wires":[[]]},{"id":"333d39df.29c386","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1049.0000305175781,"y":4139.832871198654,"z":"ad46ffb1.59044","wires":[["92eadb34.b09bc8"]]},{"id":"2899e13d.c0f5ae","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1057.571460723877,"y":4184.118584394455,"z":"ad46ffb1.59044","wires":[["92eadb34.b09bc8"]]},{"id":"6e6309e.a9b13f8","type":"for","name":"for each mapped source port","xml":"<for index='src-idx' start='0' end='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map_length`' >\n","comments":"","outputs":1,"x":464.16675186157227,"y":4325.86591219902,"z":"ad46ffb1.59044","wires":[["d1f3d5d3.3b9cf8"]]},{"id":"d1f3d5d3.3b9cf8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":687.5000801086426,"y":4327.532335996628,"z":"ad46ffb1.59044","wires":[["a717ffcc.3b10e","9f479696.018ee8","c0c9e1a0.c1dd8","a249b3c4.30176","dbd95e4a.02811"]]},{"id":"a249b3c4.30176","type":"save","name":"save logical-link","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\" \n\tkey=\"logical-link.link-name = $tmp.link-name\" >\n<parameter name=\"link-name\" value=\"`$tmp.link-name`\" />\n<parameter name=\"in-maint\" value=\"false\" />\n<parameter name=\"link-type\" value=\"port-mirror-configuration\" />\n","comments":"","outputs":1,"x":884.1666946411133,"y":4158.961284399033,"z":"ad46ffb1.59044","wires":[["333d39df.29c386","2899e13d.c0f5ae"]]},{"id":"a717ffcc.3b10e","type":"set","name":"set tmp.link-name","xml":"<set>\n<parameter name='tmp.link-name' value=\"`'PMC_' + $tmp.configuration-id\n + '_Source' + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-port-name\n + '_Dest' + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-port-name`\" />\n","comments":"","x":887.5001068115234,"y":4047.293805837631,"z":"ad46ffb1.59044","wires":[]},{"id":"a5acd743.ffb818","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'Failed to create logical link ' + $tmp.link-name\n + ' in AAI'`\" />\n","comments":"","outputs":1,"x":1405.8334426879883,"y":4153.961203336716,"z":"ad46ffb1.59044","wires":[[]]},{"id":"92eadb34.b09bc8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1217.5000534057617,"y":4153.96112704277,"z":"ad46ffb1.59044","wires":[["a5acd743.ffb818","ade54b7b.1c2f78"]]},{"id":"ade54b7b.1c2f78","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1886.952075958252,"y":5729.55632185936,"z":"ad46ffb1.59044","wires":[["4014d89b.66e348","8ab7174a.76f6c8","4877f4d7.9e8e3c","db838c10.6d034"]]},{"id":"f5553e43.be0e4","type":"comment","name":"rollback network policy","info":"","comments":"","x":2192.666328430176,"y":5643.365671873093,"z":"ad46ffb1.59044","wires":[]},{"id":"8753137e.a72be","type":"save","name":"save vprobe logical-link relationships","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"logical-link:relationship-list\"\n key=\"logical-link.link-name = $tmp.link-name\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l-interface\" />\n <parameter name=\"relationship-list.relationship[0].relationship-label\" value=\"org.onap.relationships.inventory.Source\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/cloud-infrastructure/cloud-regions/cloud-region/'\n + $tmp.cloud-owner + '/' + $tmp.cloud-region-id + '/tenants/tenant/'\n + $tmp.tenant-id + '/vservers/vserver/' \n + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-vserver-id\n + '/l-interfaces/l-interface/'\n + $tmp.encoded-source-port-name`\" />\n <parameter name=\"relationship-list.relationship[1].related-to\" value=\"l-interface\" />\n <parameter name=\"relationship-list.relationship[1].relationship-label\" value=\"org.onap.relationships.inventory.Destination\" />\n <parameter name=\"relationship-list.relationship[1].related-link\"\n value=\"`'/aai/v$/cloud-infrastructure/cloud-regions/cloud-region/'\n + $tmp.cloud-owner + '/' + $tmp.cloud-region-id + '/tenants/tenant/'\n + $tmp.dest-tenant-id + '/vservers/vserver/' \n + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-vserver-id\n + '/l-interfaces/l-interface/'\n + $tmp.encoded-dest-port-name`\" />\n","comments":"","outputs":1,"x":1626.3094787597656,"y":4375.86571764946,"z":"ad46ffb1.59044","wires":[["aca151d2.78cad","dbe217c5.2519a8"]]},{"id":"aca151d2.78cad","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1905.5952415466309,"y":4375.627018690109,"z":"ad46ffb1.59044","wires":[["81fec963.f0c378"]]},{"id":"60444368.d2d1cc","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'Failed creating relationships for logical link ' + $tmp.link-name\n + ' in AAI'`\" />\n","comments":"","outputs":1,"x":2267.4285621643066,"y":4396.422187566757,"z":"ad46ffb1.59044","wires":[[]]},{"id":"81fec963.f0c378","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2070.761848449707,"y":4396.421943426132,"z":"ad46ffb1.59044","wires":[["60444368.d2d1cc","b9471f80.beb4f"]]},{"id":"60456976.e6ca48","type":"comment","name":"delete logical links","info":"","comments":"","x":2184.3328399658203,"y":5493.365961790085,"z":"ad46ffb1.59044","wires":[]},{"id":"302fb759.f86fc8","type":"for","name":"for each mapped source port","xml":"<for index='src-idx' start='0' end='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map_length`' >\n","comments":"","outputs":1,"x":2173.856689453125,"y":5537.88894534111,"z":"ad46ffb1.59044","wires":[["cdbe21d2.0c705"]]},{"id":"cdbe21d2.0c705","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":2397.1900177001953,"y":5539.555369138718,"z":"ad46ffb1.59044","wires":[["89353571.082fa8","fff62f5.45f62d"]]},{"id":"fff62f5.45f62d","type":"save","name":"delete logical-link","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\" \n\tkey=\"logical-link.link-name = $tmp.link-name\" >\n","comments":"","outputs":1,"x":2578.6187286376953,"y":5566.222370862961,"z":"ad46ffb1.59044","wires":[[]]},{"id":"89353571.082fa8","type":"set","name":"set tmp.link-name","xml":"<set>\n<parameter name='tmp.link-name' value=\"`'PMC_' + $tmp.configuration-id\n + '_Source' + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-port-name\n + '_Dest' + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-port-name`\" />\n","comments":"","x":2582.1901092529297,"y":5514.555414915085,"z":"ad46ffb1.59044","wires":[]},{"id":"b9471f80.beb4f","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1945.9996948242188,"y":5540.032742261887,"z":"ad46ffb1.59044","wires":[["302fb759.f86fc8","ade54b7b.1c2f78"]]},{"id":"72ac5c76.c8ab14","type":"configure","name":"send success to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\" value=\"`$port-mirror-topology-operation-input.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\" value=\"Y\" />\n<parameter name=\"input.response-code\" value=\"200\" />\n<parameter name=\"input.svc-request-id\" value=\"`$port-mirror-topology-operation-input.sdnc-request-header.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\" value=\"`$port-mirror-topology-operation-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\" value=\"`$port-mirror-topology-operation-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":433.3095016479492,"y":5402.223337888718,"z":"ad46ffb1.59044","wires":[[]]},{"id":"4dee36e.58e6bc8","type":"switchNode","name":"switch tenant-id","xml":"<switch test='`$tmp.AnAI-data.vnf.results[$result-idx].tenant.tenant-id`'>\n","comments":"","outputs":1,"x":886.9999923706055,"y":1466.6281173229218,"z":"ad46ffb1.59044","wires":[["cf05309.dfe44d","9c4d114c.68b9b"]]},{"id":"cf05309.dfe44d","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1086.9998970031738,"y":1448.29474234581,"z":"ad46ffb1.59044","wires":[["b95b05a3.f39c58"]]},{"id":"9c4d114c.68b9b","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1085.3331680297852,"y":1488.0567891597748,"z":"ad46ffb1.59044","wires":[["b197215.06e19e"]]},{"id":"b95b05a3.f39c58","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1228.6665706634521,"y":1448.2947833538055,"z":"ad46ffb1.59044","wires":[[]]},{"id":"b197215.06e19e","type":"set","name":"set tmp.tenant-id from tenant-id","xml":"<set>\n<parameter name='tmp.tenant-id' value='`$tmp.AnAI-data.vnf.results[$result-idx].tenant.tenant-id`' />\n","comments":"","x":1308.666648864746,"y":1488.2948262691498,"z":"ad46ffb1.59044","wires":[]},{"id":"9f479696.018ee8","type":"save","name":"save configuration relationship to logical-link","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"configuration:relationship-list\"\n key=\"configuration.configuration-id = $tmp.configuration-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"logical-link\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/logical-links/logical-link/' + $tmp.encoded-link-name`\" />\n","comments":"","outputs":1,"x":962.9286804199219,"y":4532.532779455185,"z":"ad46ffb1.59044","wires":[["790263b6.af947c","47af693f.8cd828"]]},{"id":"790263b6.af947c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1225.8333625793457,"y":4509.675470352173,"z":"ad46ffb1.59044","wires":[["bbdabb63.782468"]]},{"id":"e22d9d06.89265","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'Failed creating logical-link relationship for configuration ' + $tmp.configuration-id\n + ' in AAI'`\" />\n","comments":"","outputs":1,"x":1598.6191215515137,"y":4530.23245215416,"z":"ad46ffb1.59044","wires":[[]]},{"id":"bbdabb63.782468","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1401.952407836914,"y":4530.232208013535,"z":"ad46ffb1.59044","wires":[["e22d9d06.89265","b9471f80.beb4f"]]},{"id":"76baa0fa.2967c","type":"save","name":"save configuration relationship to allotted-resource","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"configuration:relationship-list\"\n key=\"configuration.configuration-id = $tmp.configuration-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"allotted-resource\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/business/customers/customer/' + $service-data.service-information.global-customer-id\n + '/service-subscriptions/service-subscription/' + $port-mirror-topology-operation-input.service-information.subscription-service-type\n + '/service-instances/service-instance/' + $tmp.service-instance-id\n\t + '/allotted-resources/allotted-resource/' + $cto-api.contrail-route-allotted-instance-id`\" />\n","comments":"","outputs":1,"x":957.8332977294922,"y":4801.508413076401,"z":"ad46ffb1.59044","wires":[["fbb7f484.ef58f8"]]},{"id":"fbb7f484.ef58f8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1217.595142364502,"y":4801.508203268051,"z":"ad46ffb1.59044","wires":[["d530397.7d127c8"]]},{"id":"fa746551.40b958","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'Failed creating logical-link relationship for configuration ' + $tmp.configuration-id\n + ' in AAI'`\" />\n","comments":"","outputs":1,"x":1586.0951538085938,"y":4800.63653922081,"z":"ad46ffb1.59044","wires":[[]]},{"id":"d530397.7d127c8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1389.4284400939941,"y":4800.636295080185,"z":"ad46ffb1.59044","wires":[["fa746551.40b958","b9471f80.beb4f"]]},{"id":"c31b80a8.b4288","type":"set","name":"set allotted-resource-id","xml":"<set>\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.route-allotted-resource-id'\n value='`$cto-api.contrail-route-allotted-instance-id`' />\n","comments":"","x":1017.0238265991211,"y":3879.199120283127,"z":"ad46ffb1.59044","wires":[]},{"id":"d3793fdc.0a2ff","type":"switchNode","name":"switch configuration-id = input configuration-id","xml":"<switch test='`$service-data.vnfc-instance-groups.vnfc-instance-group[$vnfc-idx].configuration-id == $tmp.configuration-id`'>\n","comments":"","outputs":1,"x":2627.3808822631836,"y":709.1279284954071,"z":"ad46ffb1.59044","wires":[["f850adb4.3d4cc"]]},{"id":"f850adb4.3d4cc","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2894.047882080078,"y":709.1279418468475,"z":"ad46ffb1.59044","wires":[["ad263b73.9e1128"]]},{"id":"e1f68e84.fcd0a","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2891.905387878418,"y":809.84219622612,"z":"ad46ffb1.59044","wires":[["a08aecf8.1164d"]]},{"id":"8ab7174a.76f6c8","type":"call","name":"call api-contrail-route-topology-operation-delete","xml":"<call module='GENERIC-RESOURCE-API' rpc='api-contrail-route-topology-operation-delete' mode='sync' >\n\n","comments":"","outputs":1,"x":2158.49991607666,"y":5728.604483366013,"z":"ad46ffb1.59044","wires":[[]]},{"id":"4014d89b.66e348","type":"set","name":"set parameters","xml":"<set>\n<parameter name='cto-api.default-domain' value='default-domain' />\n<parameter name='cto-api.default-project' value='`$tmp.tenant`' />\n<parameter name='cto-api.cloud-region-id' value='`$tmp.cloud-region-id`' />\n<parameter name='cto-api.configuration-id' value='`$tmp.configuration-id`' />\n<parameter name='cto-api.rollback-flag' value='true' />\n<parameter name='tmp.saved-error-message' value='`$error-message`' />\n","comments":"","x":2061.3569564819336,"y":5682.17448592186,"z":"ad46ffb1.59044","wires":[]},{"id":"4877f4d7.9e8e3c","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value='`$tmp.saved-error-message`' />\n","comments":"","x":2069.3329849243164,"y":5776.223969221115,"z":"ad46ffb1.59044","wires":[]},{"id":"c21bf8.eab03408","type":"switchNode","name":"switch configuration-id = input configuration-id","xml":"<switch test='`$service-data.vnfc-instance-groups.vnfc-instance-group[$vnfc-idx].configuration-id == $tmp.configuration-id`'>\n","comments":"","outputs":1,"x":2619.0476837158203,"y":809.1279685497284,"z":"ad46ffb1.59044","wires":[["e1f68e84.fcd0a"]]},{"id":"cfce73db.444a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1305.0000610351562,"y":764.1279561519623,"z":"ad46ffb1.59044","wires":[["5497462d.218008","d391bbf3.6fb278"]]},{"id":"d391bbf3.6fb278","type":"switchNode","name":"switch instance-group-role == dest network role","xml":"<switch test=\"`$service-data.vnfc-instance-groups.vnfc-instance-group[$vnfc-idx].instance-group-role == $tmp.dest-network-role`\">\n","comments":"","outputs":1,"x":1585.000144958496,"y":812.4613530635834,"z":"ad46ffb1.59044","wires":[["ae1da850.aa5c38"]]},{"id":"ae1da850.aa5c38","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1845.0000839233398,"y":810.7946927547455,"z":"ad46ffb1.59044","wires":[["826084d1.080b38"]]},{"id":"ef26b095.af478","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":926.6667404174805,"y":625.7469708919525,"z":"ad46ffb1.59044","wires":[["366c2bd1.d0f054","e2a4a4ac.7745d8"]]},{"id":"366c2bd1.d0f054","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":1133.3333358764648,"y":597.4137017726898,"z":"ad46ffb1.59044","wires":[["4e1f1d25.97bcc4"]]},{"id":"e2a4a4ac.7745d8","type":"outcome","name":"pprobe","xml":"<outcome value='pprobe'>\n","comments":"","outputs":1,"x":1131.6665077209473,"y":650.7469975948334,"z":"ad46ffb1.59044","wires":[["fdd5e4da.854ea8"]]},{"id":"fdd5e4da.854ea8","type":"set","name":"set src vnfc-instance-group indexes to 0","xml":"<set>\n<parameter name='tmp.src-vnfc-idx' value='0' />\n","comments":"","x":1380.000015258789,"y":650.7469937801361,"z":"ad46ffb1.59044","wires":[]},{"id":"3f2e31c8.06f08e","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":1090.3333740234375,"y":898.0803582668304,"z":"ad46ffb1.59044","wires":[["46551bfb.574f74","3d428c98.dd8054"]]},{"id":"46551bfb.574f74","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":1296.9999694824219,"y":869.7470891475677,"z":"ad46ffb1.59044","wires":[["f9f6a40c.995e38"]]},{"id":"3d428c98.dd8054","type":"outcome","name":"pprobe","xml":"<outcome value='pprobe'>\n","comments":"","outputs":1,"x":1295.333137512207,"y":928.0803475379944,"z":"ad46ffb1.59044","wires":[["74f9ecf9.aaa254"]]},{"id":"74f9ecf9.aaa254","type":"set","name":"set src vnfc-instance-group index","xml":"<set>\n<parameter name='tmp.src-vnfc-idx' value='`$service-data.vnfc-instance-groups.vnfc-instance-group_length`' />\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group_length' value='`$service-data.vnfc-instance-groups.vnfc-instance-group_length + 1`'/>\n","comments":"","x":1520.3333740234375,"y":922.0803582668304,"z":"ad46ffb1.59044","wires":[]},{"id":"ba91d904.ffefc8","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":481.33335876464844,"y":2562.080483198166,"z":"ad46ffb1.59044","wires":[["a7a79641.236e88"]]},{"id":"a7a79641.236e88","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":679.3333587646484,"y":2562.080483198166,"z":"ad46ffb1.59044","wires":[["bccb28e8.16a9b8"]]},{"id":"7ee1327.81d79cc","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":480.3333282470703,"y":2781.413825750351,"z":"ad46ffb1.59044","wires":[["c029ac7.4e95f5"]]},{"id":"c029ac7.4e95f5","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":678.3333282470703,"y":2781.413825750351,"z":"ad46ffb1.59044","wires":[["3f4d2f6e.a6f3f"]]},{"id":"b4aa58d9.1a6638","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":475.3333435058594,"y":2917.747165441513,"z":"ad46ffb1.59044","wires":[["779de296.e05f0c","1c0d42a5.c3ea0d"]]},{"id":"779de296.e05f0c","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":681.9999389648438,"y":2889.4138963222504,"z":"ad46ffb1.59044","wires":[["7b66815b.00988"]]},{"id":"1c0d42a5.c3ea0d","type":"outcome","name":"pprobe","xml":"<outcome value='pprobe'>\n","comments":"","outputs":1,"x":680.3331108093262,"y":2942.747192144394,"z":"ad46ffb1.59044","wires":[["9a90328a.f8f3f"]]},{"id":"9a90328a.f8f3f","type":"set","name":"set vnfc-instance-group data","xml":"<set>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].instance-group-role'\n value='`$tmp.src-network-role`'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].nfc-naming-code'\n value='`$tmp.src-nfc-naming-code`'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].group-type'\n value='port-mirror-source'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].configuration-id'\n value='`$tmp.configuration-id`'/>\n","comments":"","x":887.3333435058594,"y":2941.747165441513,"z":"ad46ffb1.59044","wires":[]},{"id":"7c523201.d63ddc","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":470.3333053588867,"y":3056.7470004558563,"z":"ad46ffb1.59044","wires":[["c96eb82f.f93d98","2c14fac4.bb6a36"]]},{"id":"c96eb82f.f93d98","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":676.9999008178711,"y":3028.4137313365936,"z":"ad46ffb1.59044","wires":[["dda98e98.66fdf"]]},{"id":"2c14fac4.bb6a36","type":"outcome","name":"pprobe","xml":"<outcome value='pprobe'>\n","comments":"","outputs":1,"x":675.3330726623535,"y":3081.747027158737,"z":"ad46ffb1.59044","wires":[["4c1abfdf.199e8"]]},{"id":"4c1abfdf.199e8","type":"set","name":"set assignments high-level data","xml":"<set>\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.nfc-naming-code'\n value='`$tmp.src-nfc-naming-code`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.instance-group-role'\n value='`$tmp.src-network-role`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.service-instance-id'\n value='`$tmp.service-instance-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.configuration-id'\n value='`$tmp.configuration-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnf-id'\n value='`$tmp.src-vnf-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-capacity'\n value='`$tmp.src-pps`' />\n\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-pnf-name'\n value='`$tmp.dest-pnf-name`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-p-interface'\n value='`$tmp.dest-p-interface`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-pnf-port-policy-name'\n value='`$db.cap[0].policy-name`' />\n\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.probe-type'\n value='pprobe' />\n","comments":"","x":886.3332901000977,"y":3080.746999502182,"z":"ad46ffb1.59044","wires":[]},{"id":"6c94d29e.c7544c","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":469.33334732055664,"y":3370.7470166683197,"z":"ad46ffb1.59044","wires":[["1c67b9f0.492966"]]},{"id":"1c67b9f0.492966","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":667.3333473205566,"y":3370.7470166683197,"z":"ad46ffb1.59044","wires":[["ae6055fe.670a38"]]},{"id":"ae6055fe.670a38","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":811.3333473205566,"y":3370.7470166683197,"z":"ad46ffb1.59044","wires":[["625b85e.683ee7c","6e2daa52.cd5594"]]},{"id":"eef77adb.8474d8","type":"call","name":"call port-mirror-topology-operation-mapping-vprobe","xml":"<call module='GENERIC-RESOURCE-API' rpc='port-mirror-topology-operation-mapping-vprobe' mode='sync' >\n","comments":"","outputs":1,"x":953.9999542236328,"y":3615.0802524089813,"z":"ad46ffb1.59044","wires":[["627e8543.3e36bc"]]},{"id":"627e8543.3e36bc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1222.333236694336,"y":3635.0804545879364,"z":"ad46ffb1.59044","wires":[["63c03f51.fc305"]]},{"id":"f3bec0f8.38123","type":"call","name":"call port-mirror-topology-operation-create-vnfcs","xml":"<call module='GENERIC-RESOURCE-API' rpc='port-mirror-topology-operation-create-vnfcs' mode='sync' >\n","comments":"","outputs":1,"x":523.6666641235352,"y":3477.4136922359467,"z":"ad46ffb1.59044","wires":[["dfead08.322943"]]},{"id":"dfead08.322943","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":781.6666641235352,"y":3477.4136922359467,"z":"ad46ffb1.59044","wires":[["63c03f51.fc305"]]},{"id":"569bdf72.3da37","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":469.9999237060547,"y":3642.413380384445,"z":"ad46ffb1.59044","wires":[["7741ec73.021014","368bf59f.c05efa"]]},{"id":"7741ec73.021014","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":682.9999389648438,"y":3615.7467544078827,"z":"ad46ffb1.59044","wires":[["eef77adb.8474d8"]]},{"id":"368bf59f.c05efa","type":"outcome","name":"pprobe","xml":"<outcome value='pprobe'>\n","comments":"","outputs":1,"x":683.6665802001953,"y":3664.079884290695,"z":"ad46ffb1.59044","wires":[["2a760035.fd29a"]]},{"id":"2a760035.fd29a","type":"call","name":"call port-mirror-topology-operation-mapping-pprobe","xml":"<call module='GENERIC-RESOURCE-API' rpc='port-mirror-topology-operation-mapping-pprobe' mode='sync' >\n","comments":"","outputs":1,"x":952.9999389648438,"y":3664.0798423290253,"z":"ad46ffb1.59044","wires":[["627e8543.3e36bc"]]},{"id":"db838c10.6d034","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1851.1187477111816,"y":5889.080706357956,"z":"ad46ffb1.59044","wires":[["63c03f51.fc305","fc45d5c3.cb8368"]]},{"id":"a420df.c0984f2","type":"call","name":"call port-mirror-rollback-capacity-db","xml":"<call module='GENERIC-RESOURCE-API' rpc='port-mirror-rollback-capacity-db' mode='sync' >\n\n","comments":"","outputs":1,"x":2485.16609954834,"y":5887.413600683212,"z":"ad46ffb1.59044","wires":[[]]},{"id":"36218a22.f604d6","type":"call","name":"call port-mirror-get-policy","xml":"<call module='GENERIC-RESOURCE-API' rpc='port-mirror-get-policy' mode='sync' >\n","comments":"","outputs":1,"x":1113.6902923583984,"y":2369.91375041008,"z":"ad46ffb1.59044","wires":[["8ebef83f.b47318"]]},{"id":"8ebef83f.b47318","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1306.690315246582,"y":2369.91375041008,"z":"ad46ffb1.59044","wires":[["63c03f51.fc305"]]},{"id":"43966c.cbf36994","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":482.0237731933594,"y":2371.5804069042206,"z":"ad46ffb1.59044","wires":[["e3d46d1c.4449f"]]},{"id":"e3d46d1c.4449f","type":"outcome","name":"pprobe","xml":"<outcome value='pprobe'>\n","comments":"","outputs":1,"x":681.6904029846191,"y":2370.913699865341,"z":"ad46ffb1.59044","wires":[["3b89a5ce.4bc88a"]]},{"id":"7f533d3d.edc374","type":"switchNode","name":"switch tenant-context","xml":"<switch test='`$tmp.AnAI-data.vnf.results[$result-idx].tenant.tenant-context`'>\n","comments":"","outputs":1,"x":886.6666030883789,"y":1548.2469975948334,"z":"ad46ffb1.59044","wires":[["87286e2c.30f99","d66314a3.a8eb78"]]},{"id":"87286e2c.30f99","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1086.6665077209473,"y":1529.9136226177216,"z":"ad46ffb1.59044","wires":[["ecc298c.8fc9b68"]]},{"id":"d66314a3.a8eb78","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1084.9997787475586,"y":1569.6756694316864,"z":"ad46ffb1.59044","wires":[["4cf523d9.55ff7c"]]},{"id":"ecc298c.8fc9b68","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1228.3331813812256,"y":1529.9136636257172,"z":"ad46ffb1.59044","wires":[[]]},{"id":"4cf523d9.55ff7c","type":"set","name":"set tmp.tenant-context from tenant-context","xml":"<set>\n<parameter name='tmp.tenant-context' value='`$tmp.AnAI-data.vnf.results[$result-idx].tenant.tenant-context`' />\n","comments":"","x":1338.3332595825195,"y":1569.913804769516,"z":"ad46ffb1.59044","wires":[]},{"id":"b26e3f0d.1d7c8","type":"switchNode","name":"switch tmp.tenant-id","xml":"<switch test='`$tmp.tenant-id`'>\n","comments":"","outputs":1,"x":448.3333206176758,"y":1828.2468166351318,"z":"ad46ffb1.59044","wires":[["f0ddd506.47fa28"]]},{"id":"f0ddd506.47fa28","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":674.9999415079756,"y":1826.5800231297812,"z":"ad46ffb1.59044","wires":[["fceefe81.bdc8e"]]},{"id":"fceefe81.bdc8e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":833.3332544962568,"y":1826.5800231297812,"z":"ad46ffb1.59044","wires":[["df6b4834.202878","63c03f51.fc305"]]},{"id":"df6b4834.202878","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to retrieve source tenant-id from AAI\" />\n","comments":"","outputs":1,"x":1033.9047152201338,"y":1826.2943442662558,"z":"ad46ffb1.59044","wires":[[]]},{"id":"3b89a5ce.4bc88a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":831.1904144287109,"y":2370.7468860149384,"z":"ad46ffb1.59044","wires":[["36218a22.f604d6"]]},{"id":"fc45d5c3.cb8368","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":2063.4996643066406,"y":5888.7467267513275,"z":"ad46ffb1.59044","wires":[["4b208ae1.40adb4"]]},{"id":"4b208ae1.40adb4","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":2261.4996643066406,"y":5888.7467267513275,"z":"ad46ffb1.59044","wires":[["a420df.c0984f2"]]},{"id":"c0c9e1a0.c1dd8","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":918.5715026855469,"y":4324.318286657333,"z":"ad46ffb1.59044","wires":[["336ce22b.42a1ae","ee09a4eb.1fe158"]]},{"id":"336ce22b.42a1ae","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":1134.4285507202148,"y":4243.365930318832,"z":"ad46ffb1.59044","wires":[["18535f5.1200da1"]]},{"id":"ee09a4eb.1fe158","type":"outcome","name":"pprobe","xml":"<outcome value='pprobe'>\n","comments":"","outputs":1,"x":1135.0952835083008,"y":4395.984510183334,"z":"ad46ffb1.59044","wires":[["6c233b94.0bcdc4"]]},{"id":"c3f6701a.7032f","type":"save","name":"save pprobe logical-link relationships","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"logical-link:relationship-list\"\n key=\"logical-link.link-name = $tmp.link-name\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l-interface\" />\n <parameter name=\"relationship-list.relationship[0].relationship-label\" value=\"org.onap.relationships.inventory.Source\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/cloud-infrastructure/cloud-regions/cloud-region/'\n + $tmp.cloud-owner + '/' + $tmp.cloud-region-id + '/tenants/tenant/'\n + $tmp.tenant-id + '/vservers/vserver/' \n + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-vserver-id\n + '/l-interfaces/l-interface/'\n + $tmp.encoded-source-port-name`\" />\n <parameter name=\"relationship-list.relationship[1].related-to\" value=\"l-interface\" />\n <parameter name=\"relationship-list.relationship[1].relationship-label\" value=\"org.onap.relationships.inventory.Destination\" />\n <parameter name=\"relationship-list.relationship[1].related-link\"\n value=\"`'/aai/v$/network/pnfs/pnf/'\n + $tmp.dest-pnf-name + '/p-interfaces/p-interface/'\n + $tmp.encoded-dest-p-interface + '/l-interfaces/l-interface/' \n + $tmp.encoded-dest-port-name`\" />\n","comments":"","outputs":1,"x":1626.9047546386719,"y":4424.556483030319,"z":"ad46ffb1.59044","wires":[["aca151d2.78cad","dbe217c5.2519a8"]]},{"id":"fb861ac2.aeb8b8","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":471.6667175292969,"y":3834.0801408290863,"z":"ad46ffb1.59044","wires":[["ea2b6c9c.21d7f"]]},{"id":"ea2b6c9c.21d7f","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":669.6667175292969,"y":3834.0801408290863,"z":"ad46ffb1.59044","wires":[["6c7aeb00.1010d4"]]},{"id":"6c7aeb00.1010d4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":816.6666412353516,"y":3834.080167531967,"z":"ad46ffb1.59044","wires":[["6aa8217a.be7a8","c31b80a8.b4288","cf530372.3cdf2"]]},{"id":"497d568b.0f1998","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":463.1903839111328,"y":4800.794217824936,"z":"ad46ffb1.59044","wires":[["650f3d05.c7b2c4"]]},{"id":"650f3d05.c7b2c4","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":661.1903839111328,"y":4800.794217824936,"z":"ad46ffb1.59044","wires":[["76baa0fa.2967c"]]},{"id":"1bc76bf3.eeff44","type":"execute","name":"encode spaces in src-nfc-naming-code","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"replace\">\n\t<parameter name=\"source\" value=\"`$tmp.src-nfc-naming-code`\" />\n\t<parameter name=\"target\" value=\" \" />\n\t<parameter name=\"replacement\" value=\"%20\" />\n\t<parameter name=\"outputPath\" value=\"tmp.encoded-src-nfc-naming-code\" />\n","comments":"","outputs":1,"x":502.85723876953125,"y":515.9523913860321,"z":"ad46ffb1.59044","wires":[[]]},{"id":"34f89d01.613262","type":"execute","name":"encode spaces in dest-nfc-naming-code","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"replace\">\n\t<parameter name=\"source\" value=\"`$tmp.dest-nfc-naming-code`\" />\n\t<parameter name=\"target\" value=\" \" />\n\t<parameter name=\"replacement\" value=\"%20\" />\n\t<parameter name=\"outputPath\" value=\"tmp.encoded-dest-nfc-naming-code\" />\n","comments":"","outputs":1,"x":507.85709381103516,"y":564.2857167720795,"z":"ad46ffb1.59044","wires":[[]]},{"id":"a44e08eb.db9948","type":"switchNode","name":"switch source-to-dest-map_length","xml":"<switch test='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map_length`'>\n","comments":"","outputs":1,"x":482.8571319580078,"y":3722.6186966896057,"z":"ad46ffb1.59044","wires":[["f7202318.a956f","868aa975.671c78"]]},{"id":"f7202318.a956f","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":707.8571395874023,"y":3699.285307407379,"z":"ad46ffb1.59044","wires":[["e98cc52b.20adf8"]]},{"id":"868aa975.671c78","type":"other","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":706.1904525756836,"y":3739.285307407379,"z":"ad46ffb1.59044","wires":[["e98cc52b.20adf8"]]},{"id":"e98cc52b.20adf8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":859.5237655639648,"y":3720.952055454254,"z":"ad46ffb1.59044","wires":[["51295bdc.47f6c4","63c03f51.fc305"]]},{"id":"51295bdc.47f6c4","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"No usable source l-interfaces found in AAI data\" />\n","comments":"","outputs":1,"x":1056.1903915405273,"y":3719.285307407379,"z":"ad46ffb1.59044","wires":[[]]},{"id":"47af693f.8cd828","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1234.2856826782227,"y":4553.571910619736,"z":"ad46ffb1.59044","wires":[["bbdabb63.782468"]]},{"id":"4573744a.834e0c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1392.999870300293,"y":1951.2380549907684,"z":"ad46ffb1.59044","wires":[["b375f194.02676"]]},{"id":"b375f194.02676","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1565.5713195800781,"y":1952.1903321743011,"z":"ad46ffb1.59044","wires":[["437bd1a1.f2c9d","63c03f51.fc305"]]},{"id":"437bd1a1.f2c9d","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to AAI custom query: cloud-region-fromVnf, for destination vnf\" />\n","comments":"","outputs":1,"x":1778.5713500976562,"y":1952.190439939499,"z":"ad46ffb1.59044","wires":[[]]},{"id":"e6609e5f.34d39","type":"save","name":"custom query: get cloud region from dest vnf","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource&nodesOnly=true'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.dest-vnf\">\n<parameter name=\"start[0]\" value=\"`'/network/generic-vnfs/generic-vnf/' + $tmp.dest-vnf-id `\" />\n<parameter name=\"start_length\" value=\"1\" />\n<parameter name=\"query\" value=\"query/cloud-region-fromVnf\" /> \n","comments":"","outputs":1,"x":1138.428466796875,"y":1977.523785352707,"z":"ad46ffb1.59044","wires":[["4573744a.834e0c","154faeaa.368d41"]]},{"id":"154faeaa.368d41","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1406.7141647338867,"y":2002.095110654831,"z":"ad46ffb1.59044","wires":[["a89eaf11.7e0b1"]]},{"id":"a89eaf11.7e0b1","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1570.9998741149902,"y":2000.6665923595428,"z":"ad46ffb1.59044","wires":[["eb95e0ab.146cb","63c03f51.fc305"]]},{"id":"eb95e0ab.146cb","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"No cloud region returned from AAI: cloud-region-fromVnf, for destination vnf\" />\n","comments":"","outputs":1,"x":1771.5713348388672,"y":2000.3809134960175,"z":"ad46ffb1.59044","wires":[[]]},{"id":"fa51468e.921388","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":477.28565979003906,"y":2119.809517621994,"z":"ad46ffb1.59044","wires":[["ed9d1841.db2a08"]]},{"id":"ed9d1841.db2a08","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":676.9522895812988,"y":2119.1428105831146,"z":"ad46ffb1.59044","wires":[["ff18461b.76ee58"]]},{"id":"ff18461b.76ee58","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":828.7142486572266,"y":2118.3809287548065,"z":"ad46ffb1.59044","wires":[["e6609e5f.34d39","faf4a613.ee5ff8","f6377325.42056","cc1ea987.81d3e8"]]},{"id":"faf4a613.ee5ff8","type":"for","name":"for each returned result","xml":"<for index='result-idx' start='0' end='`$tmp.AnAI-data.dest-vnf.results_length`' >\n","comments":"","outputs":1,"x":1065.8570861816406,"y":2109.8095004558563,"z":"ad46ffb1.59044","wires":[["a9bff298.d99cf","38457a45.bbc4b6"]]},{"id":"a9bff298.d99cf","type":"switchNode","name":"switch tenant-name","xml":"<switch test='`$tmp.AnAI-data.dest-vnf.results[$result-idx].tenant.tenant-name`'>\n","comments":"","outputs":1,"x":1299.1903610229492,"y":2062.6665506362915,"z":"ad46ffb1.59044","wires":[["4ad4e6b8.e0e368","e71b1e71.f9183"]]},{"id":"4ad4e6b8.e0e368","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1485.8569679260254,"y":2044.3332135677338,"z":"ad46ffb1.59044","wires":[["9f17745d.6422c8"]]},{"id":"e71b1e71.f9183","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1484.1902389526367,"y":2084.0952603816986,"z":"ad46ffb1.59044","wires":[["e0c49a34.d24088"]]},{"id":"9f17745d.6422c8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1627.5236415863037,"y":2044.3332545757294,"z":"ad46ffb1.59044","wires":[[]]},{"id":"e0c49a34.d24088","type":"set","name":"set tmp.dest-tenant from tenant-name","xml":"<set>\n<parameter name='tmp.dest-tenant' value='`$tmp.AnAI-data.dest-vnf.results[$result-idx].tenant.tenant-name`' />\n","comments":"","x":1723.3808517456055,"y":2082.66651058197,"z":"ad46ffb1.59044","wires":[]},{"id":"f6377325.42056","type":"switchNode","name":"switch tmp.dest-tenant","xml":"<switch test='`$tmp.dest-tenant`'>\n","comments":"","outputs":1,"x":1059.8571166992188,"y":2221.238068342209,"z":"ad46ffb1.59044","wires":[["18391ea.86616e1"]]},{"id":"18391ea.86616e1","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1259.4284744262695,"y":2220.3329684734344,"z":"ad46ffb1.59044","wires":[["76e5f52c.7c1e9c"]]},{"id":"76e5f52c.7c1e9c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1412.0475234985352,"y":2219.904328107834,"z":"ad46ffb1.59044","wires":[["3f92a68b.6bc4fa","63c03f51.fc305"]]},{"id":"3f92a68b.6bc4fa","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to retrieve destination tenant from AAI\" />\n","comments":"","outputs":1,"x":1599.7618713378906,"y":2219.0472552776337,"z":"ad46ffb1.59044","wires":[[]]},{"id":"9fdf6659.2008e8","type":"set","name":"set tmp.src-network-name and contrail fqdn","xml":"<set>\n<parameter name='tmp.src-network-name' value='`$tmp.AnAI-data.src-network.results[$src-nw-idx].l3-network.network-name`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-network-fqdn'\n value='`$tmp.AnAI-data.src-network.results[$src-nw-idx].l3-network.contrail-network-fqdn`' />\n","comments":"","x":1516.1903686523438,"y":3162.6187646389008,"z":"ad46ffb1.59044","wires":[]},{"id":"9d76aa87.81e4e8","type":"set","name":"set tmp.dest-network-name and contrail fqdn","xml":"<set>\n<parameter name='tmp.dest-network-name' value='`$tmp.AnAI-data.dest-network.results[$dest-nw-idx].l3-network.network-name`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-network-fqdn'\n value='`$tmp.AnAI-data.dest-network.results[$dest-nw-idx].l3-network.contrail-network-fqdn`' />\n","comments":"","x":2094.5237197875977,"y":3309.6187703609467,"z":"ad46ffb1.59044","wires":[]},{"id":"dbe217c5.2519a8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1909.047695159912,"y":4424.523663282394,"z":"ad46ffb1.59044","wires":[["81fec963.f0c378"]]},{"id":"dbd95e4a.02811","type":"execute","name":"urlEncode tmp.encoded-link-name","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"urlEncode\">\n\t<parameter name=\"source\" value=\"`$tmp.link-name`\" />\n\t<parameter name=\"outputPath\" value=\"tmp.encoded-link-name\" />\n","comments":"","outputs":1,"x":940.2381286621094,"y":4094.9998967647552,"z":"ad46ffb1.59044","wires":[[]]},{"id":"18535f5.1200da1","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1284.5238037109375,"y":4243.571359395981,"z":"ad46ffb1.59044","wires":[["c7ea99b1.29bf58","1ad1135d.a56a9d","8753137e.a72be"]]},{"id":"6c233b94.0bcdc4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1284.523754119873,"y":4396.428431272507,"z":"ad46ffb1.59044","wires":[["c7ea99b1.29bf58","dc67e39d.28897","c3f6701a.7032f","1ad1135d.a56a9d"]]},{"id":"1ad1135d.a56a9d","type":"execute","name":"urlEncode tmp.encoded-dest-port-name","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"urlEncode\">\n\t<parameter name=\"source\" value=\"`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-port-name`\" />\n\t<parameter name=\"outputPath\" value=\"tmp.encoded-dest-port-name\" />\n","comments":"","outputs":1,"x":1633.0952606201172,"y":4276.428080320358,"z":"ad46ffb1.59044","wires":[[]]},{"id":"c7ea99b1.29bf58","type":"execute","name":"urlEncode tmp.encoded-source-port-name","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"urlEncode\">\n\t<parameter name=\"source\" value=\"`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-port-name`\" />\n\t<parameter name=\"outputPath\" value=\"tmp.encoded-source-port-name\" />\n","comments":"","outputs":1,"x":1638.8096389770508,"y":4226.428150892258,"z":"ad46ffb1.59044","wires":[[]]},{"id":"dc67e39d.28897","type":"execute","name":"urlEncode tmp.encoded-dest-p-interface","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"urlEncode\">\n\t<parameter name=\"source\" value=\"`$tmp.dest-p-interface`\" />\n\t<parameter name=\"outputPath\" value=\"tmp.encoded-dest-p-interface\" />\n","comments":"","outputs":1,"x":1633.0952377319336,"y":4324.999651670456,"z":"ad46ffb1.59044","wires":[[]]},{"id":"38457a45.bbc4b6","type":"switchNode","name":"switch tenant-id","xml":"<switch test='`$tmp.AnAI-data.dest-vnf.results[$result-idx].tenant.tenant-id`'>\n","comments":"","outputs":1,"x":1287.3809661865234,"y":2140.7142856121063,"z":"ad46ffb1.59044","wires":[["8241f9f.db88c08","b6dabfd4.14d6f"]]},{"id":"8241f9f.db88c08","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1487.3808708190918,"y":2122.3809106349945,"z":"ad46ffb1.59044","wires":[["3d4e5fe7.561ce"]]},{"id":"b6dabfd4.14d6f","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1485.7141418457031,"y":2162.1429574489594,"z":"ad46ffb1.59044","wires":[["d1261b6b.8c1048"]]},{"id":"3d4e5fe7.561ce","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1629.0475444793701,"y":2122.38095164299,"z":"ad46ffb1.59044","wires":[[]]},{"id":"d1261b6b.8c1048","type":"set","name":"set tmp.dest-tenant-id from tenant-id","xml":"<set>\n<parameter name='tmp.dest-tenant-id' value='`$tmp.AnAI-data.dest-vnf.results[$result-idx].tenant.tenant-id`' />\n","comments":"","x":1721.9047088623047,"y":2162.3809468746185,"z":"ad46ffb1.59044","wires":[]},{"id":"cc1ea987.81d3e8","type":"switchNode","name":"switch tmp.dest-tenant-id","xml":"<switch test='`$tmp.dest-tenant-id`'>\n","comments":"","outputs":1,"x":1065.952377319336,"y":2267.8571078777313,"z":"ad46ffb1.59044","wires":[["8bb3d822.e12b08"]]},{"id":"8bb3d822.e12b08","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1259.5237350463867,"y":2266.952008008957,"z":"ad46ffb1.59044","wires":[["1a002ab2.dc1e45"]]},{"id":"1a002ab2.dc1e45","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1412.1427841186523,"y":2266.5233676433563,"z":"ad46ffb1.59044","wires":[["f1e988bd.457508"]]},{"id":"f1e988bd.457508","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to retrieve destination tenant-id from AAI\" />\n","comments":"","outputs":1,"x":1599.8571319580078,"y":2265.666294813156,"z":"ad46ffb1.59044","wires":[[]]}]
\ No newline at end of file +[{"id":"bb268559.fd3938","type":"dgstart","name":"DGSTART","outputs":1,"x":101.66666412353516,"y":87.41365623474121,"z":"ad46ffb1.59044","wires":[["a124bed3.35031"]]},{"id":"a124bed3.35031","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":215.6190414428711,"y":127.65177726745605,"z":"ad46ffb1.59044","wires":[["db524fe9.5dfcc"]]},{"id":"db524fe9.5dfcc","type":"method","name":"method port-mirror-topology-operation-assign-async","xml":"<method rpc='port-mirror-topology-operation-assign-async' mode='sync'>\n","comments":"","outputs":1,"x":232.95244598388672,"y":168.84222412109375,"z":"ad46ffb1.59044","wires":[["ac3d53ca.aefc2"]]},{"id":"19977dc1.9b6832","type":"comment","name":"port-mirror-topology-operation-assign-async","info":"","comments":"","x":496.0115203857422,"y":35,"z":"ad46ffb1.59044","wires":[]},{"id":"e5fd1f58.74f01","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name='error-code' value='200' />\n","comments":"","x":410.2144241333008,"y":5452.700392484665,"z":"ad46ffb1.59044","wires":[]},{"id":"ac3d53ca.aefc2","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":156.15477752685547,"y":2545.485157728195,"z":"ad46ffb1.59044","wires":[["e5fd1f58.74f01","ced2d211.53467","f9889d49.6fbf5","ce052c1a.cbe7c","8b585d79.bc124","4847ddc2.32a804","94761f86.c5ad2","bae20099.07b1f","17bc986f.814148","ac2e3332.29b9f","b4b42190.25a09","94e068c9.523098","b7f41d13.6fd4c","1b63f2c6.c9c3cd","3278f6bc.28dd4a","b0683757.70acd8","fc4ca4c9.69e018","59373ca.423e2c4","c1689047.89198","d3bec9cf.937968","39eab347.ba000c","b40e2769.9b66e8","8854e0fa.60ed8","e53b0107.99046","53a52a6c.d1cd64","1bbc7787.e7f1b8","a92de2b4.d0018","6aa6e65.77d1a18","72ac5c76.c8ab14","6e6309e.a9b13f8","ba91d904.ffefc8","7ee1327.81d79cc","b4aa58d9.1a6638","7c523201.d63ddc","6c94d29e.c7544c","f3bec0f8.38123","569bdf72.3da37","43966c.cbf36994","b26e3f0d.1d7c8","fb861ac2.aeb8b8","497d568b.0f1998","1bc76bf3.eeff44","34f89d01.613262","a44e08eb.db9948","fa51468e.921388"]]},{"id":"ced2d211.53467","type":"set","name":"set tmp variables","xml":"<set>\n<parameter name='tmp.configuration-id' value='`$port-mirror-topology-operation-input.configuration-information.configuration-id`' />\n<parameter name='tmp.src-vnf-id' value='`$port-mirror-topology-operation-input.port-mirror-configuration-request-input.source-port.vnf-information.vnf-id`' />\n<parameter name='tmp.dest-vnf-id' value='`$port-mirror-topology-operation-input.port-mirror-configuration-request-input.dest-port.vnf-information.vnf-id`' />\n<parameter name='tmp.dest-pnf-name' value='`$port-mirror-topology-operation-input.port-mirror-configuration-request-input.dest-port.pnf-information.pnf-name`' />\n<parameter name='tmp.service-instance-id' value='`$port-mirror-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='tmp.configuration-sub-type' value='`$port-mirror-topology-operation-input.configuration-information.configuration-sub-type`' />\n","comments":"","x":434.23812103271484,"y":219.31843376159668,"z":"ad46ffb1.59044","wires":[]},{"id":"f9889d49.6fbf5","type":"set","name":"set port-mirror-configuration data","xml":"<set>\n<parameter name='pm.configuration-id' value='`$tmp.configuration-id`' />\n<parameter name='pm.configuration-data.configuration-operation-information.sdnc-request-header.'\n value='`$port-mirror-topology-operation-input.sdnc-request-header.`' />\n<parameter name='pm.configuration-data.configuration-operation-information.request-information.'\n value='`$port-mirror-topology-operation-input.request-information.`' />\n<parameter name='pm.configuration-data.configuration-operation-information.service-information.'\n value='`$port-mirror-topology-operation-input.service-information.`' />\n<parameter name='pm.configuration-data.configuration-operation-information.configuration-information.'\n value='`$port-mirror-topology-operation-input.configuration-information.`' />\n<parameter name='pm.configuration-data.configuration-operation-information.port-mirror-configuration-request-input.'\n value='`$port-mirror-topology-operation-input.port-mirror-configuration-request-input.`' />\n","comments":"","x":483.38097381591797,"y":265.8898448944092,"z":"ad46ffb1.59044","wires":[]},{"id":"4847ddc2.32a804","type":"execute","name":"execute RestApiCallNode - PUT port-mirror-configuration","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.portmirrorconfig.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.pmc-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-pmc\" />\n\n","comments":"","outputs":1,"x":541.8215942382812,"y":5323.652531385422,"z":"ad46ffb1.59044","wires":[["a3f19e94.a6218","a7b211de.53d8b","a4821754.dac1f8"]]},{"id":"a3f19e94.a6218","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":943.5581283569336,"y":5366.650751829147,"z":"ad46ffb1.59044","wires":[["df3069ed.4ad628"]]},{"id":"a7b211de.53d8b","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":935.9867630004883,"y":5325.150771856308,"z":"ad46ffb1.59044","wires":[["df3069ed.4ad628"]]},{"id":"a4821754.dac1f8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":939.7367553710938,"y":5285.50786948204,"z":"ad46ffb1.59044","wires":[["803a5100.a0eb2"]]},{"id":"803a5100.a0eb2","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1077.1070251464844,"y":5284.557212591171,"z":"ad46ffb1.59044","wires":[[]]},{"id":"ce052c1a.cbe7c","type":"execute","name":"execute readProperties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":454.5238723754883,"y":312.41370940208435,"z":"ad46ffb1.59044","wires":[[]]},{"id":"8b585d79.bc124","type":"execute","name":"generate port-mirror-configuration url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.pm-configuration`\"/>\n <parameter name=\"outputPath\" value=\"tmp.pmc-url\"/>\n <parameter name=\"target\" value=\"{configuration-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.configuration-id`\"/>\n","comments":"","outputs":1,"x":478.07159423828125,"y":5273.652478933334,"z":"ad46ffb1.59044","wires":[[]]},{"id":"ab26b1cb.6c458","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":773.642858505249,"y":350.2230501174927,"z":"ad46ffb1.59044","wires":[["c1e2010f.8bc8a"]]},{"id":"853dd343.7ef44","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":782.2142944335938,"y":393.50876331329346,"z":"ad46ffb1.59044","wires":[["c1e2010f.8bc8a"]]},{"id":"54196f0f.b7bed","type":"set","name":"set src TOSCA data","xml":"<set>\n<parameter name='tmp.src-pps' value='`$db.cap[$cap-idx].pps-capacity`' />\n<parameter name='tmp.src-nfc-naming-code' value='`$db.cap[$cap-idx].nfc-naming-code`' />\n<parameter name='tmp.src-network-role' value='`$db.cap[$cap-idx].network-role`' />\n","comments":"","x":1080.3809967041016,"y":428.8422772884369,"z":"ad46ffb1.59044","wires":[]},{"id":"94761f86.c5ad2","type":"for","name":"for each capability row","xml":"<for index='cap-idx' start='0' end='`$db.cap_length`' >\n","comments":"","outputs":1,"x":453.23809814453125,"y":455.9851453304291,"z":"ad46ffb1.59044","wires":[["5484d230.220e0c"]]},{"id":"5484d230.220e0c","type":"switchNode","name":"switch role","xml":"<switch test='`$db.cap[$cap-idx].role`'>\n","comments":"","outputs":1,"x":678.9523124694824,"y":455.9851453304291,"z":"ad46ffb1.59044","wires":[["d2c1922a.92cad","43255d7c.a2b224"]]},{"id":"d2c1922a.92cad","type":"outcome","name":"source","xml":"<outcome value='source'>\n","comments":"","outputs":1,"x":883.2380627223424,"y":428.84227674347994,"z":"ad46ffb1.59044","wires":[["54196f0f.b7bed"]]},{"id":"43255d7c.a2b224","type":"outcome","name":"collector","xml":"<outcome value='collector'>\n","comments":"","outputs":1,"x":886.5714073181152,"y":474.55655813217163,"z":"ad46ffb1.59044","wires":[["1912da.1a473d27"]]},{"id":"1912da.1a473d27","type":"set","name":"set dest TOSCA data","xml":"<set>\n<parameter name='tmp.dest-pps' value='`$db.cap[$cap-idx].pps-capacity`' />\n<parameter name='tmp.dest-nfc-naming-code' value='`$db.cap[$cap-idx].nfc-naming-code`' />\n<parameter name='tmp.dest-network-role' value='`$db.cap[$cap-idx].network-role`' />\n","comments":"","x":1086.5714569091797,"y":473.1279969215393,"z":"ad46ffb1.59044","wires":[]},{"id":"465844f2.75eb6c","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Error reading PORT_MIRROR_CONFIGURATION table\" />\n","comments":"","outputs":1,"x":1106.9777603149414,"y":343.73672008514404,"z":"ad46ffb1.59044","wires":[[]]},{"id":"48ebd9fd.1aa898","type":"comment","name":"Save data in port-mirror-configurations","info":"","comments":"","x":530.9287261962891,"y":5226.50967001915,"z":"ad46ffb1.59044","wires":[]},{"id":"b08e4195.35b89","type":"for","name":"for each vnfc-instance-group","xml":"<for index='vnfc-idx' start='0' end='`$service-data.vnfc-instance-groups.vnfc-instance-group_length`' >\n","comments":"","outputs":1,"x":1086.1905822753906,"y":764.8422791957855,"z":"ad46ffb1.59044","wires":[["cfce73db.444a"]]},{"id":"bae20099.07b1f","type":"switchNode","name":"switch vnfc-instance-group length","xml":"<switch test='`$service-data.vnfc-instance-groups.vnfc-instance-group_length`'>\n","comments":"","outputs":1,"x":484.19061279296875,"y":727.1279656887054,"z":"ad46ffb1.59044","wires":[["83784130.f9a6d","3bc49b20.bc69d4"]]},{"id":"83784130.f9a6d","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":715.4762191772461,"y":626.6994416713715,"z":"ad46ffb1.59044","wires":[["ef26b095.af478"]]},{"id":"3bc49b20.bc69d4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":715.0476684570312,"y":831.9853875637054,"z":"ad46ffb1.59044","wires":[["c196ee7a.ca01e"]]},{"id":"4e1f1d25.97bcc4","type":"set","name":"set src and dest vnfc-instance-group indexes to 0 and 1","xml":"<set>\n<parameter name='tmp.src-vnfc-idx' value='0' />\n<parameter name='tmp.dest-vnfc-idx' value='1' />\n","comments":"","x":1426.666763305664,"y":596.937522649765,"z":"ad46ffb1.59044","wires":[]},{"id":"85ad272a.3311b8","type":"switchNode","name":"switch nfc-naming-code== src-nfc-naming-code","xml":"<switch test='`$service-data.vnfc-instance-groups.vnfc-instance-group[$vnfc-idx].nfc-naming-code == $tmp.src-nfc-naming-code`'>\n","comments":"","outputs":1,"x":2114.9048080444336,"y":711.0326793193817,"z":"ad46ffb1.59044","wires":[["904cff55.541c6"]]},{"id":"904cff55.541c6","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2365.952476501465,"y":709.3660762310028,"z":"ad46ffb1.59044","wires":[["d3793fdc.0a2ff"]]},{"id":"826084d1.080b38","type":"switchNode","name":"switch nfc-naming-code== dest-nfc-naming-code","xml":"<switch test='`$service-data.vnfc-instance-groups.vnfc-instance-group[$vnfc-idx].nfc-naming-code == $tmp.dest-nfc-naming-code`'>\n","comments":"","outputs":1,"x":2079.4290466308594,"y":810.0803000926971,"z":"ad46ffb1.59044","wires":[["76df0afb.11e574"]]},{"id":"76df0afb.11e574","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2363.8099822998047,"y":810.0803306102753,"z":"ad46ffb1.59044","wires":[["c21bf8.eab03408"]]},{"id":"f9f6a40c.995e38","type":"set","name":"set src and dest vnfc-instance-group indexes","xml":"<set>\n<parameter name='tmp.src-vnfc-idx' value='`$service-data.vnfc-instance-groups.vnfc-instance-group_length`' />\n<parameter name='tmp.dest-vnfc-idx' value='`$service-data.vnfc-instance-groups.vnfc-instance-group_length + 1`' />\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group_length' value='`$service-data.vnfc-instance-groups.vnfc-instance-group_length + 2`'/>\n","comments":"","x":1557.33349609375,"y":869.1279656887054,"z":"ad46ffb1.59044","wires":[]},{"id":"5497462d.218008","type":"switchNode","name":"switch instance-group-role == source network role","xml":"<switch test=\"`$service-data.vnfc-instance-groups.vnfc-instance-group[$vnfc-idx].instance-group-role == $tmp.src-network-role`\">\n","comments":"","outputs":1,"x":1599.76220703125,"y":713.1755731105804,"z":"ad46ffb1.59044","wires":[["25d48494.893ccc"]]},{"id":"25d48494.893ccc","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1858.5714683532715,"y":711.7470281124115,"z":"ad46ffb1.59044","wires":[["85ad272a.3311b8"]]},{"id":"7b66815b.00988","type":"set","name":"set vnfc-instance-group data","xml":"<set>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].instance-group-role'\n value='`$tmp.src-network-role`'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].nfc-naming-code'\n value='`$tmp.src-nfc-naming-code`'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].group-type'\n value='port-mirror-source'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].configuration-id'\n value='`$tmp.configuration-id`'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].instance-group-role'\n value='`$tmp.dest-network-role`'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].nfc-naming-code'\n value='`$tmp.dest-nfc-naming-code`'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].group-type'\n value='port-mirror-dest'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.dest-vnfc-idx].configuration-id'\n value='`$tmp.configuration-id`'/>\n","comments":"","x":884.9523620605469,"y":2888.985690832138,"z":"ad46ffb1.59044","wires":[]},{"id":"a92de2b4.d0018","type":"save","name":"custom query: get owning entity","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.oe\">\n<parameter name=\"start[0]\" value=\"`'nodes/service-instances/service-instance?service-instance-id=' + $tmp.service-instance-id `\" />\n<parameter name=\"start_length\" value=\"1\" />\n<parameter name=\"query\" value=\"/query/owning-entity-fromService-instance\" /> \n","comments":"","outputs":1,"x":481.7143249511719,"y":1060.0568101406097,"z":"ad46ffb1.59044","wires":[["6b2910fe.e6dcc","d5b1a37.27eef6","2b7916ba.345d0a"]]},{"id":"cf8b1744.047588","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":749.6190490722656,"y":1272.1042115688324,"z":"ad46ffb1.59044","wires":[["49093ad5.e171a4"]]},{"id":"59373ca.423e2c4","type":"save","name":"custom query: get source network data","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.src-network\">\n <parameter name=\"start[0]\" value=\"`'/cloud-infrastructure/cloud-regions/cloud-region/' + $tmp.cloud-owner + '/' + $tmp.cloud-region-id`\" />\n <parameter name=\"start_length\" value=\"1\" /> \n <parameter name=\"query\" value=\"`'/query/network-name-fromNetwork-role?networkRole=' + $tmp.src-network-role`\" /> \n","comments":"","outputs":1,"x":510.4286651611328,"y":2466.6520936489105,"z":"ad46ffb1.59044","wires":[["12ac31cc.1492fe","7f7fb5ed.db5a5c"]]},{"id":"12ac31cc.1492fe","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":782.5715141296387,"y":2436.652218580246,"z":"ad46ffb1.59044","wires":[["b2ddda36.d1a248"]]},{"id":"8854e0fa.60ed8","type":"set","name":"copy A&AI data to topology","xml":"<set>\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.cloud-owner'\n value='`$tmp.cloud-owner`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.cloud-region-id'\n value='`$tmp.cloud-region-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.tenant'\n value='`$tmp.tenant`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.tenant-id'\n value='`$tmp.tenant-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-tenant'\n value='`$tmp.dest-tenant`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-tenant-id'\n value='`$tmp.dest-tenant-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.tenant-context'\n value='`$tmp.tenant-context`' />\n","comments":"","x":476.90464782714844,"y":2320.6756768226624,"z":"ad46ffb1.59044","wires":[]},{"id":"ad263b73.9e1128","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3049.762275695801,"y":707.699319601059,"z":"ad46ffb1.59044","wires":[["e719dfbc.122c1","63c03f51.fc305"]]},{"id":"a08aecf8.1164d","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3050.4767150878906,"y":806.9849908351898,"z":"ad46ffb1.59044","wires":[["ddbbed4c.69b25","63c03f51.fc305"]]},{"id":"c196ee7a.ca01e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":864.476318359375,"y":829.9851434230804,"z":"ad46ffb1.59044","wires":[["b08e4195.35b89","3f2e31c8.06f08e"]]},{"id":"c1e2010f.8bc8a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":927.8571548461914,"y":368.8422498703003,"z":"ad46ffb1.59044","wires":[["465844f2.75eb6c","63c03f51.fc305"]]},{"id":"cf05af60.13994","type":"comment","name":"rpc-port-mirror-1040","info":"","comments":"","x":414.0476379394531,"y":613.8422734737396,"z":"ad46ffb1.59044","wires":[]},{"id":"df46f124.b18a4","type":"comment","name":"step 2 - create vnfc-instance-group (done)","info":"","comments":"","x":484.0476531982422,"y":653.8422296047211,"z":"ad46ffb1.59044","wires":[]},{"id":"569cc477.0c727c","type":"comment","name":"step 3 - get owning entity (aai-port-mirror-1140)","info":"","comments":"","x":494.9524230957031,"y":973.7233216762543,"z":"ad46ffb1.59044","wires":[]},{"id":"4c7a8bad.448c34","type":"comment","name":"step 4 - get cloud-owner, cloud-region-id, and tenant (aai-port-mirror-1150)","info":"","comments":"","x":576.7618713378906,"y":1231.53280043602,"z":"ad46ffb1.59044","wires":[]},{"id":"a38b575c.8e5978","type":"comment","name":"step 5 - get network data (aai-port-mirror-1120)","info":"","comments":"","x":540.4286079406738,"y":2419.5092465877533,"z":"ad46ffb1.59044","wires":[]},{"id":"ec7724b4.2efb38","type":"comment","name":"step 6/7 - get vservers, l-interfaces, etc (aai-port-mirror-1130)","info":"","comments":"","x":577.1905212402344,"y":2627.937910795212,"z":"ad46ffb1.59044","wires":[]},{"id":"93550f20.12036","type":"comment","name":"step 8 - write data to vnfc-instance-groups","info":"","comments":"","x":511.6190185546875,"y":2848.6046578884125,"z":"ad46ffb1.59044","wires":[]},{"id":"730bd1a2.6e1bc","type":"comment","name":"step 9/10 - write instance group variables and vnf-ids to assignments","info":"","comments":"","x":591.5238265991211,"y":2987.9374301433563,"z":"ad46ffb1.59044","wires":[]},{"id":"7c9558cd.b82ff8","type":"comment","name":"rpc-port-mirror-1030","info":"","comments":"","x":431.5476760864258,"y":3526.819870710373,"z":"ad46ffb1.59044","wires":[]},{"id":"c0a00a8e.d159f8","type":"comment","name":"step 4 - write configuration identifiers to topology (done)","info":"","comments":"","x":536.5239105224609,"y":4850.438508749008,"z":"ad46ffb1.59044","wires":[]},{"id":"2578aa22.458d06","type":"comment","name":"step 5 - map source to dest (rpc-port-mirror-1050)","info":"","comments":"","x":563.6191253662109,"y":3573.604864835739,"z":"ad46ffb1.59044","wires":[]},{"id":"5307699d.4d8ca8","type":"comment","name":"step 6 - call DG to create network policy","info":"","comments":"","x":497.5001411437988,"y":3768.4856355190277,"z":"ad46ffb1.59044","wires":[]},{"id":"ddc35f62.7f936","type":"comment","name":"step 7 - create logical links (aai-port-mirror-1030)","info":"","comments":"","x":543.690616607666,"y":4180.390530347824,"z":"ad46ffb1.59044","wires":[]},{"id":"9382bde2.bd7ce","type":"comment","name":"step 8 - update configuration object (aai-port-mirror-1020) (done)","info":"","comments":"","x":564.4286499023438,"y":4651.151960134506,"z":"ad46ffb1.59044","wires":[]},{"id":"3f064715.dd5548","type":"comment","name":"step 9 - update references to configuration object (done)","info":"","comments":"","x":539.6668701171875,"y":4934.818518400192,"z":"ad46ffb1.59044","wires":[]},{"id":"5a1791a8.eaa3c","type":"comment","name":"step 10 - update oper status (done)","info":"","comments":"","x":471.6192321777344,"y":5138.676261663437,"z":"ad46ffb1.59044","wires":[]},{"id":"dda98e98.66fdf","type":"set","name":"set assignments high-level data","xml":"<set>\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.nfc-naming-code'\n value='`$tmp.src-nfc-naming-code`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.instance-group-role'\n value='`$tmp.src-network-role`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.service-instance-id'\n value='`$tmp.service-instance-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.configuration-id'\n value='`$tmp.configuration-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnf-id'\n value='`$tmp.src-vnf-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-capacity'\n value='`$tmp.src-pps`' />\n \n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-vnfc-instance-group-id.nfc-naming-code'\n value='`$tmp.dest-nfc-naming-code`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-vnfc-instance-group-id.instance-group-role'\n value='`$tmp.dest-network-role`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-vnfc-instance-group-id.service-instance-id'\n value='`$tmp.service-instance-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-vnfc-instance-group-id.configuration-id'\n value='`$tmp.configuration-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-vnf-id'\n value='`$tmp.dest-vnf-id`' />\n \n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.probe-type'\n value='vprobe' />\n \n","comments":"","x":884.0475997924805,"y":3027.5565707683563,"z":"ad46ffb1.59044","wires":[]},{"id":"ac2e3332.29b9f","type":"set","name":"write configuration identifiers to topology","xml":"<set>\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.configuration-identifiers.configuration-id'\n value='`$tmp.configuration-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.configuration-identifiers.configuration-type'\n value='`$port-mirror-topology-operation-input.configuration-information.configuration-type`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.configuration-identifiers.configuration-sub-type'\n value='`$port-mirror-topology-operation-input.configuration-information.configuration-sub-type`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.configuration-identifiers.parent-service-instance-id'\n value='`$tmp.service-instance-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.configuration-identifiers.configuration-name'\n value='`$tmp.configuration-name`' />\n","comments":"","x":497.4762268066406,"y":4894.724291563034,"z":"ad46ffb1.59044","wires":[]},{"id":"17bc986f.814148","type":"set","name":"copy A&AI data to topology","xml":"<set>\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.owning-entity' value='`$tmp.owning-entity`' />","comments":"","x":466.90484873453806,"y":1191.294898112615,"z":"ad46ffb1.59044","wires":[]},{"id":"b4b42190.25a09","type":"get-resource","name":"get-resource PORT_MIRROR_CAPABILITY","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='select role,nfc_naming_code,pps_capacity,network_role,policy_name\n from PORT_MIRROR_CAPABILITY cap, PORT_MIRROR_CONFIGURATION conf, SERVICE_PROXY sp\n where cap.port_mirror_capability_name=conf.port_mirror_capability_name\n and cap.port_mirror_service_uuid=conf.port_mirror_service_uuid\n and cap.service_proxy_name=conf.service_proxy_name\n and cap.service_proxy_name=sp.service_proxy_name\n and cap.port_mirror_service_uuid=sp.parent_service_uuid\n and conf.customization_uuid = $port-mirror-topology-operation-input.configuration-information.onap-model-information.model-customization-uuid\n and conf.port_mirror_service_uuid = $service-data.service-information.onap-model-information.model-uuid\n order by role'\n pfx='db.cap[]'>\n","comments":"","outputs":1,"x":520.7143173217773,"y":375.98510932922363,"z":"ad46ffb1.59044","wires":[["ab26b1cb.6c458","853dd343.7ef44"]]},{"id":"fc4ca4c9.69e018","type":"save","name":"custom query: get source interface data","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.src-li\">\n\t<parameter value=\"`'/network/generic-vnfs/generic-vnf/' + $tmp.src-vnf-id`\" name=\"start[0]\"/>\n\t<parameter value=\"1\" name=\"start_length\"/>\n\t<parameter value=\"`'/query/vserver-fromVnf?nfcNamingCode=' + $tmp.encoded-src-nfc-naming-code`\" name=\"query\"/>\n","comments":"","outputs":1,"x":512.2381591796875,"y":2681.937666654587,"z":"ad46ffb1.59044","wires":[["c71cf508.fbd108","bd71f446.ad9978"]]},{"id":"c71cf508.fbd108","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":783.4285697937012,"y":2662.4139783382416,"z":"ad46ffb1.59044","wires":[["864b2f27.10409"]]},{"id":"3673b9cb.5e0016","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=\"`$error-message`\" />\n","comments":"","x":1953.5473327636719,"y":6067.818812131882,"z":"ad46ffb1.59044","wires":[]},{"id":"96200486.022548","type":"configure","name":"send error to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\" value=\"`$port-mirror-topology-operation-input.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\" value=\"Y\" />\n<parameter name=\"input.response-code\" value=\"500\" />\n<parameter name=\"input.response-message\" value=\"`$error-message`\" />\n<parameter name=\"input.svc-request-id\" value=\"`$port-mirror-topology-operation-input.sdnc-request-header.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\" value=\"`$port-mirror-topology-operation-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\" value=\"`$port-mirror-topology-operation-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":1972.906379699707,"y":6019.618288755417,"z":"ad46ffb1.59044","wires":[[]]},{"id":"63c03f51.fc305","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1800.2141189575195,"y":6040.676154851913,"z":"ad46ffb1.59044","wires":[["96200486.022548","3673b9cb.5e0016"]]},{"id":"e719dfbc.122c1","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'Source nfc-naming-code of ' + $tmp.src-nfc-naming-code + ' already exists in vnfc-instance-groups for this configuration-id'`\" />\n","comments":"","outputs":1,"x":3274.0480422973633,"y":679.1278855800629,"z":"ad46ffb1.59044","wires":[[]]},{"id":"ddbbed4c.69b25","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'Dest nfc-naming-code of ' + $tmp.dest-nfc-naming-code + ' already exists in vnfc-instance-groups for this configuration-id'`\" />\n","comments":"","outputs":1,"x":3271.0480346679688,"y":776.127916097641,"z":"ad46ffb1.59044","wires":[[]]},{"id":"49093ad5.e171a4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":922.1904983520508,"y":1273.056488752365,"z":"ad46ffb1.59044","wires":[["4b208346.335cec","63c03f51.fc305"]]},{"id":"4b208346.335cec","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to AAI custom query: cloud-region-fromVnf\" />\n","comments":"","outputs":1,"x":1135.190528869629,"y":1273.0565965175629,"z":"ad46ffb1.59044","wires":[[]]},{"id":"539e08.2cbc11f8","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to AAI custom query: network-name-fromNetwork-role\" />\n","comments":"","outputs":1,"x":1156.1429634094238,"y":2429.7950398921967,"z":"ad46ffb1.59044","wires":[[]]},{"id":"3cbceaf3.21fa26","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to AAI custom query vserver-fromVnf for source vnf\" />\n","comments":"","outputs":1,"x":1172.6190490722656,"y":2662.794835805893,"z":"ad46ffb1.59044","wires":[[]]},{"id":"b2ddda36.d1a248","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":951.8096046447754,"y":2430.4615848064423,"z":"ad46ffb1.59044","wires":[["539e08.2cbc11f8","63c03f51.fc305"]]},{"id":"864b2f27.10409","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":942.9524192810059,"y":2662.128130197525,"z":"ad46ffb1.59044","wires":[["3cbceaf3.21fa26","63c03f51.fc305"]]},{"id":"39eab347.ba000c","type":"save","name":"custom query: get cloud region from vnf","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource&nodesOnly=true'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.vnf\">\n<parameter name=\"start[0]\" value=\"`'/network/generic-vnfs/generic-vnf/' + $tmp.src-vnf-id `\" />\n<parameter name=\"start_length\" value=\"1\" />\n<parameter name=\"query\" value=\"query/cloud-region-fromVnf\" /> \n","comments":"","outputs":1,"x":505.0476379394531,"y":1294.10408949852,"z":"ad46ffb1.59044","wires":[["cf8b1744.047588","d0e9d16b.5ac0d"]]},{"id":"6b2910fe.e6dcc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":731.9524116516113,"y":1013.7232768535614,"z":"ad46ffb1.59044","wires":[["3d2afe64.53a9e2"]]},{"id":"3d2afe64.53a9e2","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":899.6667404174805,"y":1013.4374158382416,"z":"ad46ffb1.59044","wires":[["6b3fecc6.167694","63c03f51.fc305"]]},{"id":"6b3fecc6.167694","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to AAI custom query: owning-entity-fromService-instance\" />\n","comments":"","outputs":1,"x":1100.2382011413574,"y":1013.1517369747162,"z":"ad46ffb1.59044","wires":[[]]},{"id":"d5b1a37.27eef6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":739.0953063964844,"y":1059.43750166893,"z":"ad46ffb1.59044","wires":[["498bf269.3bee4c"]]},{"id":"498bf269.3bee4c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":903.3810157775879,"y":1058.008983373642,"z":"ad46ffb1.59044","wires":[["ee857f71.e7279","63c03f51.fc305"]]},{"id":"ee857f71.e7279","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"No owning entity returned from AAI: owning-entity-fromService-instance\" />\n","comments":"","outputs":1,"x":1103.9524765014648,"y":1057.7233045101166,"z":"ad46ffb1.59044","wires":[[]]},{"id":"d0e9d16b.5ac0d","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":763.3333435058594,"y":1322.961267232895,"z":"ad46ffb1.59044","wires":[["7f9ea47.0a4d75c"]]},{"id":"7f9ea47.0a4d75c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":927.6190528869629,"y":1321.5327489376068,"z":"ad46ffb1.59044","wires":[["84c17964.af8038","63c03f51.fc305"]]},{"id":"84c17964.af8038","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"No cloud region returned from AAI: cloud-region-fromVnf\" />\n","comments":"","outputs":1,"x":1128.1905136108398,"y":1321.2470700740814,"z":"ad46ffb1.59044","wires":[[]]},{"id":"7f7fb5ed.db5a5c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":791.8571510314941,"y":2485.4616515636444,"z":"ad46ffb1.59044","wires":[["5d211eb.2a894e"]]},{"id":"5d211eb.2a894e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":956.1428604125977,"y":2484.0331332683563,"z":"ad46ffb1.59044","wires":[["a2e4d3b6.99b26","63c03f51.fc305"]]},{"id":"a2e4d3b6.99b26","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"No network information returned from AAI: network-name-fromNetwork-role\" />\n","comments":"","outputs":1,"x":1155.0475883483887,"y":2482.0807683467865,"z":"ad46ffb1.59044","wires":[[]]},{"id":"bd71f446.ad9978","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":791.9999694824219,"y":2716.461442708969,"z":"ad46ffb1.59044","wires":[["3ea31ed7.03df92"]]},{"id":"3ea31ed7.03df92","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":956.2856788635254,"y":2715.032924413681,"z":"ad46ffb1.59044","wires":[["7dbff819.5bfbe8","63c03f51.fc305"]]},{"id":"7dbff819.5bfbe8","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"No interface data returned from AAI vserver-fromVnf for source vnf\" />\n","comments":"","outputs":1,"x":1155.1904067993164,"y":2713.080559492111,"z":"ad46ffb1.59044","wires":[[]]},{"id":"b7f41d13.6fd4c","type":"set","name":"set provided-configuration references","xml":"<set>\n<parameter name='service-data.provided-configurations.provided-configuration[$tmp.provided-conf-idx].configuration-id'\n value='`$tmp.configuration-id`' />\n<parameter name='service-data.provided-configurations.provided-configuration[$tmp.provided-conf-idx].configuration-type'\n value='`$port-mirror-topology-operation-input.configuration-information.configuration-type`' />\n<parameter name='service-data.provided-configurations.provided-configuration[$tmp.provided-conf-idx].configuration-sub-type'\n value='`$port-mirror-topology-operation-input.configuration-information.configuration-sub-type`' />\n<parameter name='service-data.provided-configurations.provided-configuration[$tmp.provided-conf-idx].configuration-topology-link'\n value=\"`'/rests/data/GENERIC-RESOURCE-API:port-mirror-configurations/port-mirror-configuration=' + $tmp.configuration-id + '/configuration-data/port-mirror-configuration-topology?content=config'`\" />\n","comments":"","x":485.0953826904297,"y":5088.533381223679,"z":"ad46ffb1.59044","wires":[]},{"id":"6e0f32b2.2cbbfc","type":"set","name":"set tmp.provided-conf-idx to 0","xml":"<set>\n<parameter name='tmp.provided-conf-idx' value='0' />\n","comments":"","x":935.0953140258789,"y":4983.533135175705,"z":"ad46ffb1.59044","wires":[]},{"id":"94e068c9.523098","type":"switchNode","name":"switch provided-configuration_length","xml":"<switch test='`$service-data.provided-configurations.provided-configuration_length`'>\n","comments":"","outputs":1,"x":485.0954284667969,"y":5016.866305112839,"z":"ad46ffb1.59044","wires":[["9b5988f1.682ef8","fd407f90.6b97d"]]},{"id":"9b5988f1.682ef8","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":720.0953674316406,"y":4985.199560880661,"z":"ad46ffb1.59044","wires":[["6e0f32b2.2cbbfc"]]},{"id":"fd407f90.6b97d","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":720.3334655761719,"y":5042.818625211716,"z":"ad46ffb1.59044","wires":[["b5bce153.d8e4b"]]},{"id":"b5bce153.d8e4b","type":"set","name":"set tmp.provided-conf-idx to current length","xml":"<set>\n<parameter name='tmp.provided-conf-idx' value='`$service-data.provided-configurations.provided-configuration_length`' />\n<parameter name='service-data.provided-configurations.provided-configuration_length' value='`$tmp.provided-conf-idx + 1`' />\n","comments":"","x":973.4286880493164,"y":5043.532810926437,"z":"ad46ffb1.59044","wires":[]},{"id":"1b63f2c6.c9c3cd","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='pm.configuration-data.configuration-oper-status.order-status'\n value='Created' />\n<parameter name='pm.configuration-data.configuration-oper-status.last-action'\n value='`$port-mirror-topology-operation-input.request-information.request-action`' />\n<parameter name='pm.configuration-data.configuration-oper-status.last-rpc-action'\n value='`$port-mirror-topology-operation-input.sdnc-request-header.svc-action`' />\n","comments":"","x":413.0954284667969,"y":5183.199943304062,"z":"ad46ffb1.59044","wires":[]},{"id":"7c21534.f0151ac","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Error updating md-sal for port-mirror-configuration\" />\n","comments":"","outputs":1,"x":1292.9762725830078,"y":5313.223598241806,"z":"ad46ffb1.59044","wires":[[]]},{"id":"df3069ed.4ad628","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1098.9762725830078,"y":5339.223598241806,"z":"ad46ffb1.59044","wires":[["7c21534.f0151ac","b9471f80.beb4f"]]},{"id":"3278f6bc.28dd4a","type":"save","name":"update configuration object","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"configuration\"\n key=\"configuration.configuration-id = $tmp.configuration-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"configuration-name\" value=\"`$tmp.configuration-name`\" />\n<parameter name=\"operational-status\" value=\"out-of-service-path\" />\n<parameter name=\"configuration-selflink\" value=\"`'/rests/data/GENERIC-RESOURCE-API:port-mirror-configurations/port-mirror-configuration='\n + $port-mirror-topology-operation-input.configuration-information.configuration-id + '/configuration-data/port-mirror-configuration-topology?content=config'`\" />\n","comments":"","outputs":1,"x":458.2381057739258,"y":4726.151884794235,"z":"ad46ffb1.59044","wires":[["5afb000a.4d7de","5869bf9c.0fe5a"]]},{"id":"5afb000a.4d7de","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":662.5954246520996,"y":4749.771194219589,"z":"ad46ffb1.59044","wires":[["69096410.56db8c"]]},{"id":"5869bf9c.0fe5a","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":671.1668395996094,"y":4699.056997060776,"z":"ad46ffb1.59044","wires":[["db67428e.c1fa4"]]},{"id":"69096410.56db8c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":844.9047698974609,"y":4751.151537656784,"z":"ad46ffb1.59044","wires":[["f4035afd.1eff48","b9471f80.beb4f"]]},{"id":"db67428e.c1fa4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":844.9047470092773,"y":4699.485204458237,"z":"ad46ffb1.59044","wires":[["37f18fcb.abe9a","b9471f80.beb4f"]]},{"id":"f4035afd.1eff48","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failure updating configuration object in AAI\" />\n","comments":"","outputs":1,"x":1031.5713958740234,"y":4751.151537656784,"z":"ad46ffb1.59044","wires":[[]]},{"id":"37f18fcb.abe9a","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Unable to find configuration object in AAI\" />\n","comments":"","outputs":1,"x":1041.5713577270508,"y":4697.818469762802,"z":"ad46ffb1.59044","wires":[[]]},{"id":"b0683757.70acd8","type":"switchNode","name":"switch input configuration-name","xml":"<switch test='`$port-mirror-topology-operation-input.configuration-information.configuration-name`'>\n","comments":"","outputs":1,"x":478.0001220703125,"y":3948.6045615673065,"z":"ad46ffb1.59044","wires":[["9aad7446.82ff88","7fbcc8b1.312ee8"]]},{"id":"9aad7446.82ff88","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":716.3334503173828,"y":3926.9377343654633,"z":"ad46ffb1.59044","wires":[["f4b25a9.9b490a8"]]},{"id":"7fbcc8b1.312ee8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":716.5715103149414,"y":3971.223790884018,"z":"ad46ffb1.59044","wires":[["1cfb2e4.fae17d2"]]},{"id":"f4b25a9.9b490a8","type":"set","name":"generate name","xml":"<set>\n<parameter name='tmp.configuration-name' value=\"`'PMC_' + $tmp.tenant + '_' + $tmp.cloud-region-id + '_' + $port-mirror-topology-operation-input.configuration-information.configuration-type + '_' + $tmp.configuration-id`\" />\n","comments":"","x":894.6667861938477,"y":3926.937853574753,"z":"ad46ffb1.59044","wires":[]},{"id":"1cfb2e4.fae17d2","type":"set","name":"copy name to tmp.configuration-name","xml":"<set>\n<parameter name='tmp.configuration-name' value='`$port-mirror-topology-operation-input.configuration-information.configuration-name`' />\n","comments":"","x":963.0000610351562,"y":3970.2711083889008,"z":"ad46ffb1.59044","wires":[]},{"id":"3f4d2f6e.a6f3f","type":"save","name":"custom query: get dest interface data","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.dest-li\">\n\t<parameter value=\"`'/network/generic-vnfs/generic-vnf/' + $tmp.dest-vnf-id`\" name=\"start[0]\"/>\n\t<parameter value=\"1\" name=\"start_length\"/>\n\t<parameter value=\"`'/query/vserver-fromVnf?nfcNamingCode=' + $tmp.encoded-dest-nfc-naming-code`\" name=\"query\"/>\n","comments":"","outputs":1,"x":900.0000152587891,"y":2779.794685125351,"z":"ad46ffb1.59044","wires":[["eabfaba8.1a1b58","e8fa0fb9.d067f"]]},{"id":"eabfaba8.1a1b58","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1171.1904258728027,"y":2760.2709968090057,"z":"ad46ffb1.59044","wires":[["645c5606.f95b48"]]},{"id":"5934b8dd.233468","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to AAI custom query vserver-fromVnf for dest vnf\" />\n","comments":"","outputs":1,"x":1560.3809051513672,"y":2760.651854276657,"z":"ad46ffb1.59044","wires":[[]]},{"id":"645c5606.f95b48","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1330.7142753601074,"y":2759.985148668289,"z":"ad46ffb1.59044","wires":[["5934b8dd.233468","63c03f51.fc305"]]},{"id":"e8fa0fb9.d067f","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1179.7618255615234,"y":2814.3184611797333,"z":"ad46ffb1.59044","wires":[["bfca4c81.3f76"]]},{"id":"bfca4c81.3f76","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1344.047534942627,"y":2812.889942884445,"z":"ad46ffb1.59044","wires":[["f19b293.d210ed8","63c03f51.fc305"]]},{"id":"f19b293.d210ed8","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"No interface data returned from AAI vserver-fromVnf for dest vnf\" />\n","comments":"","outputs":1,"x":1542.952262878418,"y":2810.9375779628754,"z":"ad46ffb1.59044","wires":[[]]},{"id":"bccb28e8.16a9b8","type":"save","name":"custom query: get dest network data","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.dest-network\">\n <parameter name=\"start[0]\" value=\"`'/cloud-infrastructure/cloud-regions/cloud-region/' + $tmp.cloud-owner + '/' + $tmp.cloud-region-id`\" />\n <parameter name=\"start_length\" value=\"1\" /> \n <parameter name=\"query\" value=\"`'/query/network-name-fromNetwork-role?networkRole=' + $tmp.dest-network-role`\" /> \n","comments":"","outputs":1,"x":905.0000457763672,"y":2559.794838666916,"z":"ad46ffb1.59044","wires":[["ee6bb08a.94728","53108b40.4bfeb4"]]},{"id":"ee6bb08a.94728","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1177.142894744873,"y":2529.7949635982513,"z":"ad46ffb1.59044","wires":[["17c66940.45d1c7"]]},{"id":"65f00856.6009c8","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to AAI custom query: network-name-fromNetwork-role\" />\n","comments":"","outputs":1,"x":1550.7143440246582,"y":2522.937784910202,"z":"ad46ffb1.59044","wires":[[]]},{"id":"17c66940.45d1c7","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1346.3809852600098,"y":2523.6043298244476,"z":"ad46ffb1.59044","wires":[["65f00856.6009c8","63c03f51.fc305"]]},{"id":"53108b40.4bfeb4","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1186.4285316467285,"y":2578.60439658165,"z":"ad46ffb1.59044","wires":[["60989e30.be117"]]},{"id":"60989e30.be117","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1350.714241027832,"y":2577.1758782863617,"z":"ad46ffb1.59044","wires":[["92a79ef5.fa3e","63c03f51.fc305"]]},{"id":"92a79ef5.fa3e","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"No network information returned from AAI: network-name-fromNetwork-role\" />\n","comments":"","outputs":1,"x":1549.618968963623,"y":2575.223513364792,"z":"ad46ffb1.59044","wires":[[]]},{"id":"30c54a00.afa5d6","type":"comment","name":"walk through the data returned from A&AI","info":"","comments":"","x":212.3333854675293,"y":3317.4135043621063,"z":"ad46ffb1.59044","wires":[]},{"id":"c1689047.89198","type":"for","name":"for each src network","xml":"<for index='src-nw-idx' start='0' end='`$tmp.AnAI-data.src-network.results_length`' >\n","comments":"","outputs":1,"x":443.0000648498535,"y":3169.4611241817474,"z":"ad46ffb1.59044","wires":[["2cd007ca.1929a8"]]},{"id":"2cd007ca.1929a8","type":"switchNode","name":"switch network-name","xml":"<switch test='`$tmp.AnAI-data.src-network.results[$src-nw-idx].l3-network.network-name`'>\n","comments":"","outputs":1,"x":671.3334274291992,"y":3166.12770819664,"z":"ad46ffb1.59044","wires":[["d7919be.53eda68","c29693c7.fb429"]]},{"id":"d7919be.53eda68","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":856.3333625793457,"y":3139.461038351059,"z":"ad46ffb1.59044","wires":[["362c8304.4cbdfc"]]},{"id":"c29693c7.fb429","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":856.3332939147949,"y":3190.8897111415863,"z":"ad46ffb1.59044","wires":[["a4a87364.b0d06"]]},{"id":"362c8304.4cbdfc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1018.0000267028809,"y":3140.1753146648407,"z":"ad46ffb1.59044","wires":[[]]},{"id":"a4a87364.b0d06","type":"switchNode","name":"switch tmp.src-network-name","xml":"<switch test='`$tmp.src-network-name`'>\n","comments":"","outputs":1,"x":1061.3334617614746,"y":3189.46128821373,"z":"ad46ffb1.59044","wires":[["605de0a1.ea25b","1fd130aa.f375ff"]]},{"id":"605de0a1.ea25b","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1267.9999885559082,"y":3162.794290304184,"z":"ad46ffb1.59044","wires":[["9fdf6659.2008e8"]]},{"id":"1fd130aa.f375ff","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1267.9999198913574,"y":3214.2229630947113,"z":"ad46ffb1.59044","wires":[["ae6d4e1c.b688b"]]},{"id":"ae6d4e1c.b688b","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1426.3333625793457,"y":3212.794290304184,"z":"ad46ffb1.59044","wires":[["8adf8a07.c692b8","63c03f51.fc305"]]},{"id":"8adf8a07.c692b8","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'More than one l3-network returned from AAI for network-role ' + $tmp.src-network-role`\" />\n","comments":"","outputs":1,"x":1628.5715026855469,"y":3210.841985464096,"z":"ad46ffb1.59044","wires":[[]]},{"id":"625b85e.683ee7c","type":"for","name":"for each dest network","xml":"<for index='dest-nw-idx' start='0' end='`$tmp.AnAI-data.dest-network.results_length`' >\n","comments":"","outputs":1,"x":1014.3333587646484,"y":3317.461047887802,"z":"ad46ffb1.59044","wires":[["f3dfbef3.6ed35"]]},{"id":"f3dfbef3.6ed35","type":"switchNode","name":"switch network-name","xml":"<switch test='`$tmp.AnAI-data.dest-network.results[$dest-nw-idx].l3-network.network-name`'>\n","comments":"","outputs":1,"x":1242.6667213439941,"y":3314.1276319026947,"z":"ad46ffb1.59044","wires":[["678c96f2.cc4388","ec3b96ff.47f7a8"]]},{"id":"678c96f2.cc4388","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1427.6666564941406,"y":3287.4609620571136,"z":"ad46ffb1.59044","wires":[["587cf5c6.ba63ec"]]},{"id":"ec3b96ff.47f7a8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1427.6665878295898,"y":3338.889634847641,"z":"ad46ffb1.59044","wires":[["9c35b414.e31698"]]},{"id":"587cf5c6.ba63ec","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1589.3333206176758,"y":3288.1752383708954,"z":"ad46ffb1.59044","wires":[[]]},{"id":"9c35b414.e31698","type":"switchNode","name":"switch tmp.dest-network-name","xml":"<switch test='`$tmp.dest-network-name`'>\n","comments":"","outputs":1,"x":1632.6667556762695,"y":3337.4612119197845,"z":"ad46ffb1.59044","wires":[["aba201a4.051ba","7a095d13.048ae4"]]},{"id":"aba201a4.051ba","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1839.3332824707031,"y":3310.7942140102386,"z":"ad46ffb1.59044","wires":[["9d76aa87.81e4e8"]]},{"id":"7a095d13.048ae4","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1839.3332138061523,"y":3362.222886800766,"z":"ad46ffb1.59044","wires":[["2a5e35ab.cdec4a"]]},{"id":"2a5e35ab.cdec4a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1997.6666564941406,"y":3360.7942140102386,"z":"ad46ffb1.59044","wires":[["8bfc73ed.fc9f","63c03f51.fc305"]]},{"id":"8bfc73ed.fc9f","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'More than one l3-network returned from AAI for network-role ' + $tmp.dest-network-role`\" />\n","comments":"","outputs":1,"x":2199.904796600342,"y":3358.8419091701508,"z":"ad46ffb1.59044","wires":[[]]},{"id":"43220e3c.7f04b","type":"comment","name":"determine src and dest network names","info":"","comments":"","x":536.3333778381348,"y":3122.794374227524,"z":"ad46ffb1.59044","wires":[]},{"id":"d3bec9cf.937968","type":"switchNode","name":"switch tmp.src-network-name","xml":"<switch test='`$tmp.src-network-name`'>\n","comments":"","outputs":1,"x":468.6666717529297,"y":3249.461126089096,"z":"ad46ffb1.59044","wires":[["abaf7b95.e9d2a8"]]},{"id":"abaf7b95.e9d2a8","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":677.0000190734863,"y":3248.7944705486298,"z":"ad46ffb1.59044","wires":[["6e9098e0.3b0088"]]},{"id":"6e9098e0.3b0088","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":830.3333282470703,"y":3248.127874135971,"z":"ad46ffb1.59044","wires":[["4f6fc74.a7c5038","63c03f51.fc305"]]},{"id":"4f6fc74.a7c5038","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Cannot determine source network name from AAI data\" />\n","comments":"","outputs":1,"x":1021.9999542236328,"y":3247.794378042221,"z":"ad46ffb1.59044","wires":[[]]},{"id":"6e2daa52.cd5594","type":"switchNode","name":"switch tmp.dest-network-name","xml":"<switch test='`$tmp.dest-network-name`'>\n","comments":"","outputs":1,"x":1038.0000381469727,"y":3423.1277639865875,"z":"ad46ffb1.59044","wires":[["4c56824a.8a235c"]]},{"id":"4c56824a.8a235c","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1246.3333854675293,"y":3421.461108446121,"z":"ad46ffb1.59044","wires":[["8d7d1967.e0a578"]]},{"id":"8d7d1967.e0a578","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1399.6666946411133,"y":3419.7945120334625,"z":"ad46ffb1.59044","wires":[["fde3a27f.3918f","63c03f51.fc305"]]},{"id":"fde3a27f.3918f","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Cannot determine dest network name from AAI data\" />\n","comments":"","outputs":1,"x":1591.3333206176758,"y":3416.4610159397125,"z":"ad46ffb1.59044","wires":[[]]},{"id":"b40e2769.9b66e8","type":"for","name":"for each returned result","xml":"<for index='result-idx' start='0' end='`$tmp.AnAI-data.vnf.results_length`' >\n","comments":"","outputs":1,"x":452.0000457763672,"y":1553.294564962387,"z":"ad46ffb1.59044","wires":[["ccbe45ed.d09b58"]]},{"id":"ccbe45ed.d09b58","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":660.3333435058594,"y":1553.294564962387,"z":"ad46ffb1.59044","wires":[["a5ce191e.435038","78aa9e8c.548e","524fa73b.dde868","4dee36e.58e6bc8","7f533d3d.edc374"]]},{"id":"a5ce191e.435038","type":"switchNode","name":"switch tenant-name","xml":"<switch test='`$tmp.AnAI-data.vnf.results[$result-idx].tenant.tenant-name`'>\n","comments":"","outputs":1,"x":893.6667098999023,"y":1383.294781446457,"z":"ad46ffb1.59044","wires":[["98836081.83ee2","49da7d2e.a5da44"]]},{"id":"98836081.83ee2","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1093.6666145324707,"y":1364.961406469345,"z":"ad46ffb1.59044","wires":[["c542e7ec.b41f78"]]},{"id":"49da7d2e.a5da44","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1091.999885559082,"y":1404.72345328331,"z":"ad46ffb1.59044","wires":[["7963162e.49a188"]]},{"id":"c542e7ec.b41f78","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1235.333288192749,"y":1364.9614474773407,"z":"ad46ffb1.59044","wires":[[]]},{"id":"7963162e.49a188","type":"set","name":"set tmp.tenant from tenant-name","xml":"<set>\n<parameter name='tmp.tenant' value='`$tmp.AnAI-data.vnf.results[$result-idx].tenant.tenant-name`' />\n","comments":"","x":1315.333366394043,"y":1404.961490392685,"z":"ad46ffb1.59044","wires":[]},{"id":"78aa9e8c.548e","type":"switchNode","name":"switch cloud-owner","xml":"<switch test='`$tmp.AnAI-data.vnf.results[$result-idx].cloud-region.cloud-owner`'>\n","comments":"","outputs":1,"x":887.0002746582031,"y":1628.2948701381683,"z":"ad46ffb1.59044","wires":[["71f1efb2.58789","a0f74502.c40b78"]]},{"id":"71f1efb2.58789","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1087.0001792907715,"y":1609.9614951610565,"z":"ad46ffb1.59044","wires":[["51b8c84b.a15a58"]]},{"id":"a0f74502.c40b78","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1085.3334503173828,"y":1649.7235419750214,"z":"ad46ffb1.59044","wires":[["c5078c32.1a81b"]]},{"id":"51b8c84b.a15a58","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1228.6668529510498,"y":1609.9615361690521,"z":"ad46ffb1.59044","wires":[[]]},{"id":"c5078c32.1a81b","type":"set","name":"set tmp.cloud-owner","xml":"<set>\n<parameter name='tmp.cloud-owner' value='`$tmp.AnAI-data.vnf.results[$result-idx].cloud-region.cloud-owner`' />\n","comments":"","x":1265.3336791992188,"y":1653.2949311733246,"z":"ad46ffb1.59044","wires":[]},{"id":"524fa73b.dde868","type":"switchNode","name":"switch cloud-region-id","xml":"<switch test='`$tmp.AnAI-data.vnf.results[$result-idx].cloud-region.cloud-region-id`'>\n","comments":"","outputs":1,"x":895.3336181640625,"y":1716.6279618740082,"z":"ad46ffb1.59044","wires":[["4cd41d77.62d1d4","fd25effc.e7aca"]]},{"id":"4cd41d77.62d1d4","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1087.000186920166,"y":1696.6279199123383,"z":"ad46ffb1.59044","wires":[["99f0220c.25b96"]]},{"id":"fd25effc.e7aca","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1085.3334579467773,"y":1736.389966726303,"z":"ad46ffb1.59044","wires":[["fa8958ae.e93378"]]},{"id":"99f0220c.25b96","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1228.6668605804443,"y":1696.6279609203339,"z":"ad46ffb1.59044","wires":[[]]},{"id":"fa8958ae.e93378","type":"set","name":"set tmp.cloud-region-id","xml":"<set>\n<parameter name='tmp.cloud-region-id' value='`$tmp.AnAI-data.vnf.results[$result-idx].cloud-region.cloud-region-id`' />\n","comments":"","x":1275.3335418701172,"y":1736.627985715866,"z":"ad46ffb1.59044","wires":[]},{"id":"e53b0107.99046","type":"switchNode","name":"switch tmp.tenant","xml":"<switch test='`$tmp.tenant`'>\n","comments":"","outputs":1,"x":440.0000686645508,"y":1781.9614572525024,"z":"ad46ffb1.59044","wires":[["871be54d.651f78"]]},{"id":"871be54d.651f78","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":675.0000330607099,"y":1778.627943356832,"z":"ad46ffb1.59044","wires":[["9e59cffc.17c17"]]},{"id":"9e59cffc.17c17","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":833.3333460489912,"y":1778.627943356832,"z":"ad46ffb1.59044","wires":[["2fae4fcd.563b7","63c03f51.fc305"]]},{"id":"2fae4fcd.563b7","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to retrieve source tenant from AAI\" />\n","comments":"","outputs":1,"x":1033.9048067728681,"y":1778.3422644933066,"z":"ad46ffb1.59044","wires":[[]]},{"id":"53a52a6c.d1cd64","type":"switchNode","name":"switch tmp.cloud-region-id","xml":"<switch test='`$tmp.cloud-region-id`'>\n","comments":"","outputs":1,"x":466.00001525878906,"y":1876.9612882137299,"z":"ad46ffb1.59044","wires":[["7e86423b.eb811c"]]},{"id":"7e86423b.eb811c","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":672.6666361490888,"y":1876.961163600286,"z":"ad46ffb1.59044","wires":[["82a1ad5f.91c0a"]]},{"id":"82a1ad5f.91c0a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":830.9999491373701,"y":1876.961163600286,"z":"ad46ffb1.59044","wires":[["da9fb459.35a968","63c03f51.fc305"]]},{"id":"da9fb459.35a968","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to retrieve tenant from AAI\" />\n","comments":"","outputs":1,"x":1031.571409861247,"y":1876.6754847367606,"z":"ad46ffb1.59044","wires":[[]]},{"id":"1bbc7787.e7f1b8","type":"switchNode","name":"switch tmp.cloud-owner","xml":"<switch test='`$tmp.cloud-owner`'>\n","comments":"","outputs":1,"x":458,"y":1921.9612500667572,"z":"ad46ffb1.59044","wires":[["6d6681d5.c0eda"]]},{"id":"6d6681d5.c0eda","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":674.6666361490888,"y":1923.6277895768485,"z":"ad46ffb1.59044","wires":[["752bd23f.167a0c"]]},{"id":"752bd23f.167a0c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":832.9999491373701,"y":1923.6277895768485,"z":"ad46ffb1.59044","wires":[["9eae290b.710ba8","63c03f51.fc305"]]},{"id":"9eae290b.710ba8","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to retrieve tenant from AAI\" />\n","comments":"","outputs":1,"x":1033.571409861247,"y":1923.342110713323,"z":"ad46ffb1.59044","wires":[[]]},{"id":"6aa8217a.be7a8","type":"call","name":"call api-contrail-route-topology-operation-create","xml":"<call module='GENERIC-RESOURCE-API' rpc='api-contrail-route-topology-operation-create' mode='sync' >\n\n","comments":"","outputs":1,"x":1091.3572235107422,"y":3827.5327785015106,"z":"ad46ffb1.59044","wires":[["45726510.62287c"]]},{"id":"45726510.62287c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1362.5477600097656,"y":3826.103891134262,"z":"ad46ffb1.59044","wires":[["db838c10.6d034"]]},{"id":"cf530372.3cdf2","type":"set","name":"set parameters","xml":"<set>\n<parameter name='cto-api.parent-service-instance-id' value='`$tmp.service-instance-id`' />\n<parameter name='cto-api.port-mirror-configuration-instance-id' value='`$tmp.configuration-id`' />\n<parameter name='cto-api.source-network-role' value='`$tmp.src-network-role`' />\n<parameter name='cto-api.collector-network-role' value='`$tmp.dest-network-role`' />\n<parameter name='cto-api.default-domain' value='default-domain' />\n<parameter name='cto-api.default-project' value='`$tmp.tenant`' />\n<parameter name='cto-api.cloud-region-id' value='`$tmp.cloud-region-id`' />\n<parameter name='cto-api.cloud-owner' value='`$tmp.cloud-owner`' />\n<parameter name='cto-api.service-type' value='`$port-mirror-topology-operation-input.service-information.subscription-service-type`' />\n<parameter name='cto-api.owning-entity' value='`$tmp.owning-entity`' />\n","comments":"","x":993.6905212402344,"y":3780.866028547287,"z":"ad46ffb1.59044","wires":[]},{"id":"2b7916ba.345d0a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":734.3333841959634,"y":1103.9613708655038,"z":"ad46ffb1.59044","wires":[["e03fa6c8.93c8e8"]]},{"id":"e03fa6c8.93c8e8","type":"set","name":"set tmp.owning-entity","xml":"<set>\n<parameter name='tmp.owning-entity' value='`$tmp.AnAI-data.oe.results[0].owning-entity.owning-entity-id`' />\n","comments":"","x":922.6666717529297,"y":1102.2947480678558,"z":"ad46ffb1.59044","wires":[]},{"id":"6aa6e65.77d1a18","type":"switchNode","name":"switch tmp.owning-entity","xml":"<switch test='`$tmp.owning-entity`'>\n","comments":"","outputs":1,"x":460.66676330566406,"y":1143.9613778591156,"z":"ad46ffb1.59044","wires":[["a1f43b.6baa9bc8"]]},{"id":"a1f43b.6baa9bc8","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":697.3334376017256,"y":1150.627945025762,"z":"ad46ffb1.59044","wires":[["89c6a8e0.6ffd88"]]},{"id":"89c6a8e0.6ffd88","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":862.3333803812666,"y":1150.6278639634452,"z":"ad46ffb1.59044","wires":[["6cf20a3f.e1e824","63c03f51.fc305"]]},{"id":"6cf20a3f.e1e824","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to retrieve owning-entity from AAI\" />\n","comments":"","outputs":1,"x":1059.5715071360273,"y":1148.6754713853202,"z":"ad46ffb1.59044","wires":[[]]},{"id":"333d39df.29c386","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1049.0000305175781,"y":4139.832871198654,"z":"ad46ffb1.59044","wires":[["92eadb34.b09bc8"]]},{"id":"2899e13d.c0f5ae","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1057.571460723877,"y":4184.118584394455,"z":"ad46ffb1.59044","wires":[["92eadb34.b09bc8"]]},{"id":"6e6309e.a9b13f8","type":"for","name":"for each mapped source port","xml":"<for index='src-idx' start='0' end='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map_length`' >\n","comments":"","outputs":1,"x":464.16675186157227,"y":4325.86591219902,"z":"ad46ffb1.59044","wires":[["d1f3d5d3.3b9cf8"]]},{"id":"d1f3d5d3.3b9cf8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":687.5000801086426,"y":4327.532335996628,"z":"ad46ffb1.59044","wires":[["a717ffcc.3b10e","9f479696.018ee8","c0c9e1a0.c1dd8","a249b3c4.30176","dbd95e4a.02811"]]},{"id":"a249b3c4.30176","type":"save","name":"save logical-link","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\" \n\tkey=\"logical-link.link-name = $tmp.link-name\" >\n<parameter name=\"link-name\" value=\"`$tmp.link-name`\" />\n<parameter name=\"in-maint\" value=\"false\" />\n<parameter name=\"link-type\" value=\"port-mirror-configuration\" />\n","comments":"","outputs":1,"x":884.1666946411133,"y":4158.961284399033,"z":"ad46ffb1.59044","wires":[["333d39df.29c386","2899e13d.c0f5ae"]]},{"id":"a717ffcc.3b10e","type":"set","name":"set tmp.link-name","xml":"<set>\n<parameter name='tmp.link-name' value=\"`'PMC_' + $tmp.configuration-id\n + '_Source' + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-port-name\n + '_Dest' + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-port-name`\" />\n","comments":"","x":887.5001068115234,"y":4047.293805837631,"z":"ad46ffb1.59044","wires":[]},{"id":"a5acd743.ffb818","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'Failed to create logical link ' + $tmp.link-name\n + ' in AAI'`\" />\n","comments":"","outputs":1,"x":1405.8334426879883,"y":4153.961203336716,"z":"ad46ffb1.59044","wires":[[]]},{"id":"92eadb34.b09bc8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1217.5000534057617,"y":4153.96112704277,"z":"ad46ffb1.59044","wires":[["a5acd743.ffb818","ade54b7b.1c2f78"]]},{"id":"ade54b7b.1c2f78","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1886.952075958252,"y":5729.55632185936,"z":"ad46ffb1.59044","wires":[["4014d89b.66e348","8ab7174a.76f6c8","4877f4d7.9e8e3c","db838c10.6d034"]]},{"id":"f5553e43.be0e4","type":"comment","name":"rollback network policy","info":"","comments":"","x":2192.666328430176,"y":5643.365671873093,"z":"ad46ffb1.59044","wires":[]},{"id":"8753137e.a72be","type":"save","name":"save vprobe logical-link relationships","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"logical-link:relationship-list\"\n key=\"logical-link.link-name = $tmp.link-name\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l-interface\" />\n <parameter name=\"relationship-list.relationship[0].relationship-label\" value=\"org.onap.relationships.inventory.Source\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/cloud-infrastructure/cloud-regions/cloud-region/'\n + $tmp.cloud-owner + '/' + $tmp.cloud-region-id + '/tenants/tenant/'\n + $tmp.tenant-id + '/vservers/vserver/' \n + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-vserver-id\n + '/l-interfaces/l-interface/'\n + $tmp.encoded-source-port-name`\" />\n <parameter name=\"relationship-list.relationship[1].related-to\" value=\"l-interface\" />\n <parameter name=\"relationship-list.relationship[1].relationship-label\" value=\"org.onap.relationships.inventory.Destination\" />\n <parameter name=\"relationship-list.relationship[1].related-link\"\n value=\"`'/aai/v$/cloud-infrastructure/cloud-regions/cloud-region/'\n + $tmp.cloud-owner + '/' + $tmp.cloud-region-id + '/tenants/tenant/'\n + $tmp.dest-tenant-id + '/vservers/vserver/' \n + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-vserver-id\n + '/l-interfaces/l-interface/'\n + $tmp.encoded-dest-port-name`\" />\n","comments":"","outputs":1,"x":1626.3094787597656,"y":4375.86571764946,"z":"ad46ffb1.59044","wires":[["aca151d2.78cad","dbe217c5.2519a8"]]},{"id":"aca151d2.78cad","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1905.5952415466309,"y":4375.627018690109,"z":"ad46ffb1.59044","wires":[["81fec963.f0c378"]]},{"id":"60444368.d2d1cc","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'Failed creating relationships for logical link ' + $tmp.link-name\n + ' in AAI'`\" />\n","comments":"","outputs":1,"x":2267.4285621643066,"y":4396.422187566757,"z":"ad46ffb1.59044","wires":[[]]},{"id":"81fec963.f0c378","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2070.761848449707,"y":4396.421943426132,"z":"ad46ffb1.59044","wires":[["60444368.d2d1cc","b9471f80.beb4f"]]},{"id":"60456976.e6ca48","type":"comment","name":"delete logical links","info":"","comments":"","x":2184.3328399658203,"y":5493.365961790085,"z":"ad46ffb1.59044","wires":[]},{"id":"302fb759.f86fc8","type":"for","name":"for each mapped source port","xml":"<for index='src-idx' start='0' end='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map_length`' >\n","comments":"","outputs":1,"x":2173.856689453125,"y":5537.88894534111,"z":"ad46ffb1.59044","wires":[["cdbe21d2.0c705"]]},{"id":"cdbe21d2.0c705","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":2397.1900177001953,"y":5539.555369138718,"z":"ad46ffb1.59044","wires":[["89353571.082fa8","fff62f5.45f62d"]]},{"id":"fff62f5.45f62d","type":"save","name":"delete logical-link","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"logical-link\" \n\tkey=\"logical-link.link-name = $tmp.link-name\" >\n","comments":"","outputs":1,"x":2578.6187286376953,"y":5566.222370862961,"z":"ad46ffb1.59044","wires":[[]]},{"id":"89353571.082fa8","type":"set","name":"set tmp.link-name","xml":"<set>\n<parameter name='tmp.link-name' value=\"`'PMC_' + $tmp.configuration-id\n + '_Source' + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-port-name\n + '_Dest' + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-port-name`\" />\n","comments":"","x":2582.1901092529297,"y":5514.555414915085,"z":"ad46ffb1.59044","wires":[]},{"id":"b9471f80.beb4f","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1945.9996948242188,"y":5540.032742261887,"z":"ad46ffb1.59044","wires":[["302fb759.f86fc8","ade54b7b.1c2f78"]]},{"id":"72ac5c76.c8ab14","type":"configure","name":"send success to MSO","xml":"<configure activate=\"true\" adaptor=\"com.att.sdnctl.sli.adaptor.mso.MSOAdaptor\" key=\"__READ_FROM_PARAMETERS__\">\n<parameter name=\"notification-url\" value=\"`$port-mirror-topology-operation-input.sdnc-request-header.svc-notification-url`\" />\n<parameter name=\"input.ack-final-indicator\" value=\"Y\" />\n<parameter name=\"input.response-code\" value=\"200\" />\n<parameter name=\"input.svc-request-id\" value=\"`$port-mirror-topology-operation-input.sdnc-request-header.svc-request-id`\" />\n<parameter name=\"input.service-information.service-type\" value=\"`$port-mirror-topology-operation-input.service-information.subscription-service-type`\" />\n<parameter name=\"input.service-information.service-instance-id\" value=\"`$port-mirror-topology-operation-input.service-information.service-instance-id`\" />\n","comments":"","outputs":1,"x":433.3095016479492,"y":5402.223337888718,"z":"ad46ffb1.59044","wires":[[]]},{"id":"4dee36e.58e6bc8","type":"switchNode","name":"switch tenant-id","xml":"<switch test='`$tmp.AnAI-data.vnf.results[$result-idx].tenant.tenant-id`'>\n","comments":"","outputs":1,"x":886.9999923706055,"y":1466.6281173229218,"z":"ad46ffb1.59044","wires":[["cf05309.dfe44d","9c4d114c.68b9b"]]},{"id":"cf05309.dfe44d","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1086.9998970031738,"y":1448.29474234581,"z":"ad46ffb1.59044","wires":[["b95b05a3.f39c58"]]},{"id":"9c4d114c.68b9b","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1085.3331680297852,"y":1488.0567891597748,"z":"ad46ffb1.59044","wires":[["b197215.06e19e"]]},{"id":"b95b05a3.f39c58","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1228.6665706634521,"y":1448.2947833538055,"z":"ad46ffb1.59044","wires":[[]]},{"id":"b197215.06e19e","type":"set","name":"set tmp.tenant-id from tenant-id","xml":"<set>\n<parameter name='tmp.tenant-id' value='`$tmp.AnAI-data.vnf.results[$result-idx].tenant.tenant-id`' />\n","comments":"","x":1308.666648864746,"y":1488.2948262691498,"z":"ad46ffb1.59044","wires":[]},{"id":"9f479696.018ee8","type":"save","name":"save configuration relationship to logical-link","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"configuration:relationship-list\"\n key=\"configuration.configuration-id = $tmp.configuration-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"logical-link\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/network/logical-links/logical-link/' + $tmp.encoded-link-name`\" />\n","comments":"","outputs":1,"x":962.9286804199219,"y":4532.532779455185,"z":"ad46ffb1.59044","wires":[["790263b6.af947c","47af693f.8cd828"]]},{"id":"790263b6.af947c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1225.8333625793457,"y":4509.675470352173,"z":"ad46ffb1.59044","wires":[["bbdabb63.782468"]]},{"id":"e22d9d06.89265","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'Failed creating logical-link relationship for configuration ' + $tmp.configuration-id\n + ' in AAI'`\" />\n","comments":"","outputs":1,"x":1598.6191215515137,"y":4530.23245215416,"z":"ad46ffb1.59044","wires":[[]]},{"id":"bbdabb63.782468","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1401.952407836914,"y":4530.232208013535,"z":"ad46ffb1.59044","wires":[["e22d9d06.89265","b9471f80.beb4f"]]},{"id":"76baa0fa.2967c","type":"save","name":"save configuration relationship to allotted-resource","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"configuration:relationship-list\"\n key=\"configuration.configuration-id = $tmp.configuration-id\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"allotted-resource\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/business/customers/customer/' + $service-data.service-information.global-customer-id\n + '/service-subscriptions/service-subscription/' + $port-mirror-topology-operation-input.service-information.subscription-service-type\n + '/service-instances/service-instance/' + $tmp.service-instance-id\n\t + '/allotted-resources/allotted-resource/' + $cto-api.contrail-route-allotted-instance-id`\" />\n","comments":"","outputs":1,"x":957.8332977294922,"y":4801.508413076401,"z":"ad46ffb1.59044","wires":[["fbb7f484.ef58f8"]]},{"id":"fbb7f484.ef58f8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1217.595142364502,"y":4801.508203268051,"z":"ad46ffb1.59044","wires":[["d530397.7d127c8"]]},{"id":"fa746551.40b958","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"`'Failed creating logical-link relationship for configuration ' + $tmp.configuration-id\n + ' in AAI'`\" />\n","comments":"","outputs":1,"x":1586.0951538085938,"y":4800.63653922081,"z":"ad46ffb1.59044","wires":[[]]},{"id":"d530397.7d127c8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1389.4284400939941,"y":4800.636295080185,"z":"ad46ffb1.59044","wires":[["fa746551.40b958","b9471f80.beb4f"]]},{"id":"c31b80a8.b4288","type":"set","name":"set allotted-resource-id","xml":"<set>\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.route-allotted-resource-id'\n value='`$cto-api.contrail-route-allotted-instance-id`' />\n","comments":"","x":1017.0238265991211,"y":3879.199120283127,"z":"ad46ffb1.59044","wires":[]},{"id":"d3793fdc.0a2ff","type":"switchNode","name":"switch configuration-id = input configuration-id","xml":"<switch test='`$service-data.vnfc-instance-groups.vnfc-instance-group[$vnfc-idx].configuration-id == $tmp.configuration-id`'>\n","comments":"","outputs":1,"x":2627.3808822631836,"y":709.1279284954071,"z":"ad46ffb1.59044","wires":[["f850adb4.3d4cc"]]},{"id":"f850adb4.3d4cc","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2894.047882080078,"y":709.1279418468475,"z":"ad46ffb1.59044","wires":[["ad263b73.9e1128"]]},{"id":"e1f68e84.fcd0a","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2891.905387878418,"y":809.84219622612,"z":"ad46ffb1.59044","wires":[["a08aecf8.1164d"]]},{"id":"8ab7174a.76f6c8","type":"call","name":"call api-contrail-route-topology-operation-delete","xml":"<call module='GENERIC-RESOURCE-API' rpc='api-contrail-route-topology-operation-delete' mode='sync' >\n\n","comments":"","outputs":1,"x":2158.49991607666,"y":5728.604483366013,"z":"ad46ffb1.59044","wires":[[]]},{"id":"4014d89b.66e348","type":"set","name":"set parameters","xml":"<set>\n<parameter name='cto-api.default-domain' value='default-domain' />\n<parameter name='cto-api.default-project' value='`$tmp.tenant`' />\n<parameter name='cto-api.cloud-region-id' value='`$tmp.cloud-region-id`' />\n<parameter name='cto-api.configuration-id' value='`$tmp.configuration-id`' />\n<parameter name='cto-api.rollback-flag' value='true' />\n<parameter name='tmp.saved-error-message' value='`$error-message`' />\n","comments":"","x":2061.3569564819336,"y":5682.17448592186,"z":"ad46ffb1.59044","wires":[]},{"id":"4877f4d7.9e8e3c","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value='`$tmp.saved-error-message`' />\n","comments":"","x":2069.3329849243164,"y":5776.223969221115,"z":"ad46ffb1.59044","wires":[]},{"id":"c21bf8.eab03408","type":"switchNode","name":"switch configuration-id = input configuration-id","xml":"<switch test='`$service-data.vnfc-instance-groups.vnfc-instance-group[$vnfc-idx].configuration-id == $tmp.configuration-id`'>\n","comments":"","outputs":1,"x":2619.0476837158203,"y":809.1279685497284,"z":"ad46ffb1.59044","wires":[["e1f68e84.fcd0a"]]},{"id":"cfce73db.444a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1305.0000610351562,"y":764.1279561519623,"z":"ad46ffb1.59044","wires":[["5497462d.218008","d391bbf3.6fb278"]]},{"id":"d391bbf3.6fb278","type":"switchNode","name":"switch instance-group-role == dest network role","xml":"<switch test=\"`$service-data.vnfc-instance-groups.vnfc-instance-group[$vnfc-idx].instance-group-role == $tmp.dest-network-role`\">\n","comments":"","outputs":1,"x":1585.000144958496,"y":812.4613530635834,"z":"ad46ffb1.59044","wires":[["ae1da850.aa5c38"]]},{"id":"ae1da850.aa5c38","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1845.0000839233398,"y":810.7946927547455,"z":"ad46ffb1.59044","wires":[["826084d1.080b38"]]},{"id":"ef26b095.af478","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":926.6667404174805,"y":625.7469708919525,"z":"ad46ffb1.59044","wires":[["366c2bd1.d0f054","e2a4a4ac.7745d8"]]},{"id":"366c2bd1.d0f054","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":1133.3333358764648,"y":597.4137017726898,"z":"ad46ffb1.59044","wires":[["4e1f1d25.97bcc4"]]},{"id":"e2a4a4ac.7745d8","type":"outcome","name":"pprobe","xml":"<outcome value='pprobe'>\n","comments":"","outputs":1,"x":1131.6665077209473,"y":650.7469975948334,"z":"ad46ffb1.59044","wires":[["fdd5e4da.854ea8"]]},{"id":"fdd5e4da.854ea8","type":"set","name":"set src vnfc-instance-group indexes to 0","xml":"<set>\n<parameter name='tmp.src-vnfc-idx' value='0' />\n","comments":"","x":1380.000015258789,"y":650.7469937801361,"z":"ad46ffb1.59044","wires":[]},{"id":"3f2e31c8.06f08e","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":1090.3333740234375,"y":898.0803582668304,"z":"ad46ffb1.59044","wires":[["46551bfb.574f74","3d428c98.dd8054"]]},{"id":"46551bfb.574f74","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":1296.9999694824219,"y":869.7470891475677,"z":"ad46ffb1.59044","wires":[["f9f6a40c.995e38"]]},{"id":"3d428c98.dd8054","type":"outcome","name":"pprobe","xml":"<outcome value='pprobe'>\n","comments":"","outputs":1,"x":1295.333137512207,"y":928.0803475379944,"z":"ad46ffb1.59044","wires":[["74f9ecf9.aaa254"]]},{"id":"74f9ecf9.aaa254","type":"set","name":"set src vnfc-instance-group index","xml":"<set>\n<parameter name='tmp.src-vnfc-idx' value='`$service-data.vnfc-instance-groups.vnfc-instance-group_length`' />\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group_length' value='`$service-data.vnfc-instance-groups.vnfc-instance-group_length + 1`'/>\n","comments":"","x":1520.3333740234375,"y":922.0803582668304,"z":"ad46ffb1.59044","wires":[]},{"id":"ba91d904.ffefc8","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":481.33335876464844,"y":2562.080483198166,"z":"ad46ffb1.59044","wires":[["a7a79641.236e88"]]},{"id":"a7a79641.236e88","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":679.3333587646484,"y":2562.080483198166,"z":"ad46ffb1.59044","wires":[["bccb28e8.16a9b8"]]},{"id":"7ee1327.81d79cc","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":480.3333282470703,"y":2781.413825750351,"z":"ad46ffb1.59044","wires":[["c029ac7.4e95f5"]]},{"id":"c029ac7.4e95f5","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":678.3333282470703,"y":2781.413825750351,"z":"ad46ffb1.59044","wires":[["3f4d2f6e.a6f3f"]]},{"id":"b4aa58d9.1a6638","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":475.3333435058594,"y":2917.747165441513,"z":"ad46ffb1.59044","wires":[["779de296.e05f0c","1c0d42a5.c3ea0d"]]},{"id":"779de296.e05f0c","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":681.9999389648438,"y":2889.4138963222504,"z":"ad46ffb1.59044","wires":[["7b66815b.00988"]]},{"id":"1c0d42a5.c3ea0d","type":"outcome","name":"pprobe","xml":"<outcome value='pprobe'>\n","comments":"","outputs":1,"x":680.3331108093262,"y":2942.747192144394,"z":"ad46ffb1.59044","wires":[["9a90328a.f8f3f"]]},{"id":"9a90328a.f8f3f","type":"set","name":"set vnfc-instance-group data","xml":"<set>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].instance-group-role'\n value='`$tmp.src-network-role`'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].nfc-naming-code'\n value='`$tmp.src-nfc-naming-code`'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].group-type'\n value='port-mirror-source'/>\n<parameter name='service-data.vnfc-instance-groups.vnfc-instance-group[$tmp.src-vnfc-idx].configuration-id'\n value='`$tmp.configuration-id`'/>\n","comments":"","x":887.3333435058594,"y":2941.747165441513,"z":"ad46ffb1.59044","wires":[]},{"id":"7c523201.d63ddc","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":470.3333053588867,"y":3056.7470004558563,"z":"ad46ffb1.59044","wires":[["c96eb82f.f93d98","2c14fac4.bb6a36"]]},{"id":"c96eb82f.f93d98","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":676.9999008178711,"y":3028.4137313365936,"z":"ad46ffb1.59044","wires":[["dda98e98.66fdf"]]},{"id":"2c14fac4.bb6a36","type":"outcome","name":"pprobe","xml":"<outcome value='pprobe'>\n","comments":"","outputs":1,"x":675.3330726623535,"y":3081.747027158737,"z":"ad46ffb1.59044","wires":[["4c1abfdf.199e8"]]},{"id":"4c1abfdf.199e8","type":"set","name":"set assignments high-level data","xml":"<set>\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.nfc-naming-code'\n value='`$tmp.src-nfc-naming-code`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.instance-group-role'\n value='`$tmp.src-network-role`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.service-instance-id'\n value='`$tmp.service-instance-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnfc-instance-group-id.configuration-id'\n value='`$tmp.configuration-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-vnf-id'\n value='`$tmp.src-vnf-id`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-capacity'\n value='`$tmp.src-pps`' />\n\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-pnf-name'\n value='`$tmp.dest-pnf-name`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-p-interface'\n value='`$tmp.dest-p-interface`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-pnf-port-policy-name'\n value='`$db.cap[0].policy-name`' />\n\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.probe-type'\n value='pprobe' />\n","comments":"","x":886.3332901000977,"y":3080.746999502182,"z":"ad46ffb1.59044","wires":[]},{"id":"6c94d29e.c7544c","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":469.33334732055664,"y":3370.7470166683197,"z":"ad46ffb1.59044","wires":[["1c67b9f0.492966"]]},{"id":"1c67b9f0.492966","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":667.3333473205566,"y":3370.7470166683197,"z":"ad46ffb1.59044","wires":[["ae6055fe.670a38"]]},{"id":"ae6055fe.670a38","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":811.3333473205566,"y":3370.7470166683197,"z":"ad46ffb1.59044","wires":[["625b85e.683ee7c","6e2daa52.cd5594"]]},{"id":"eef77adb.8474d8","type":"call","name":"call port-mirror-topology-operation-mapping-vprobe","xml":"<call module='GENERIC-RESOURCE-API' rpc='port-mirror-topology-operation-mapping-vprobe' mode='sync' >\n","comments":"","outputs":1,"x":953.9999542236328,"y":3615.0802524089813,"z":"ad46ffb1.59044","wires":[["627e8543.3e36bc"]]},{"id":"627e8543.3e36bc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1222.333236694336,"y":3635.0804545879364,"z":"ad46ffb1.59044","wires":[["63c03f51.fc305"]]},{"id":"f3bec0f8.38123","type":"call","name":"call port-mirror-topology-operation-create-vnfcs","xml":"<call module='GENERIC-RESOURCE-API' rpc='port-mirror-topology-operation-create-vnfcs' mode='sync' >\n","comments":"","outputs":1,"x":523.6666641235352,"y":3477.4136922359467,"z":"ad46ffb1.59044","wires":[["dfead08.322943"]]},{"id":"dfead08.322943","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":781.6666641235352,"y":3477.4136922359467,"z":"ad46ffb1.59044","wires":[["63c03f51.fc305"]]},{"id":"569bdf72.3da37","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":469.9999237060547,"y":3642.413380384445,"z":"ad46ffb1.59044","wires":[["7741ec73.021014","368bf59f.c05efa"]]},{"id":"7741ec73.021014","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":682.9999389648438,"y":3615.7467544078827,"z":"ad46ffb1.59044","wires":[["eef77adb.8474d8"]]},{"id":"368bf59f.c05efa","type":"outcome","name":"pprobe","xml":"<outcome value='pprobe'>\n","comments":"","outputs":1,"x":683.6665802001953,"y":3664.079884290695,"z":"ad46ffb1.59044","wires":[["2a760035.fd29a"]]},{"id":"2a760035.fd29a","type":"call","name":"call port-mirror-topology-operation-mapping-pprobe","xml":"<call module='GENERIC-RESOURCE-API' rpc='port-mirror-topology-operation-mapping-pprobe' mode='sync' >\n","comments":"","outputs":1,"x":952.9999389648438,"y":3664.0798423290253,"z":"ad46ffb1.59044","wires":[["627e8543.3e36bc"]]},{"id":"db838c10.6d034","type":"block","name":"block","xml":"<block>","atomic":"true","comments":"","outputs":1,"x":1851.1187477111816,"y":5889.080706357956,"z":"ad46ffb1.59044","wires":[["63c03f51.fc305","fc45d5c3.cb8368"]]},{"id":"a420df.c0984f2","type":"call","name":"call port-mirror-rollback-capacity-db","xml":"<call module='GENERIC-RESOURCE-API' rpc='port-mirror-rollback-capacity-db' mode='sync' >\n\n","comments":"","outputs":1,"x":2485.16609954834,"y":5887.413600683212,"z":"ad46ffb1.59044","wires":[[]]},{"id":"36218a22.f604d6","type":"call","name":"call port-mirror-get-policy","xml":"<call module='GENERIC-RESOURCE-API' rpc='port-mirror-get-policy' mode='sync' >\n","comments":"","outputs":1,"x":1113.6902923583984,"y":2369.91375041008,"z":"ad46ffb1.59044","wires":[["8ebef83f.b47318"]]},{"id":"8ebef83f.b47318","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1306.690315246582,"y":2369.91375041008,"z":"ad46ffb1.59044","wires":[["63c03f51.fc305"]]},{"id":"43966c.cbf36994","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":482.0237731933594,"y":2371.5804069042206,"z":"ad46ffb1.59044","wires":[["e3d46d1c.4449f"]]},{"id":"e3d46d1c.4449f","type":"outcome","name":"pprobe","xml":"<outcome value='pprobe'>\n","comments":"","outputs":1,"x":681.6904029846191,"y":2370.913699865341,"z":"ad46ffb1.59044","wires":[["3b89a5ce.4bc88a"]]},{"id":"7f533d3d.edc374","type":"switchNode","name":"switch tenant-context","xml":"<switch test='`$tmp.AnAI-data.vnf.results[$result-idx].tenant.tenant-context`'>\n","comments":"","outputs":1,"x":886.6666030883789,"y":1548.2469975948334,"z":"ad46ffb1.59044","wires":[["87286e2c.30f99","d66314a3.a8eb78"]]},{"id":"87286e2c.30f99","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1086.6665077209473,"y":1529.9136226177216,"z":"ad46ffb1.59044","wires":[["ecc298c.8fc9b68"]]},{"id":"d66314a3.a8eb78","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1084.9997787475586,"y":1569.6756694316864,"z":"ad46ffb1.59044","wires":[["4cf523d9.55ff7c"]]},{"id":"ecc298c.8fc9b68","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1228.3331813812256,"y":1529.9136636257172,"z":"ad46ffb1.59044","wires":[[]]},{"id":"4cf523d9.55ff7c","type":"set","name":"set tmp.tenant-context from tenant-context","xml":"<set>\n<parameter name='tmp.tenant-context' value='`$tmp.AnAI-data.vnf.results[$result-idx].tenant.tenant-context`' />\n","comments":"","x":1338.3332595825195,"y":1569.913804769516,"z":"ad46ffb1.59044","wires":[]},{"id":"b26e3f0d.1d7c8","type":"switchNode","name":"switch tmp.tenant-id","xml":"<switch test='`$tmp.tenant-id`'>\n","comments":"","outputs":1,"x":448.3333206176758,"y":1828.2468166351318,"z":"ad46ffb1.59044","wires":[["f0ddd506.47fa28"]]},{"id":"f0ddd506.47fa28","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":674.9999415079756,"y":1826.5800231297812,"z":"ad46ffb1.59044","wires":[["fceefe81.bdc8e"]]},{"id":"fceefe81.bdc8e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":833.3332544962568,"y":1826.5800231297812,"z":"ad46ffb1.59044","wires":[["df6b4834.202878","63c03f51.fc305"]]},{"id":"df6b4834.202878","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to retrieve source tenant-id from AAI\" />\n","comments":"","outputs":1,"x":1033.9047152201338,"y":1826.2943442662558,"z":"ad46ffb1.59044","wires":[[]]},{"id":"3b89a5ce.4bc88a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":831.1904144287109,"y":2370.7468860149384,"z":"ad46ffb1.59044","wires":[["36218a22.f604d6"]]},{"id":"fc45d5c3.cb8368","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":2063.4996643066406,"y":5888.7467267513275,"z":"ad46ffb1.59044","wires":[["4b208ae1.40adb4"]]},{"id":"4b208ae1.40adb4","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":2261.4996643066406,"y":5888.7467267513275,"z":"ad46ffb1.59044","wires":[["a420df.c0984f2"]]},{"id":"c0c9e1a0.c1dd8","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":918.5715026855469,"y":4324.318286657333,"z":"ad46ffb1.59044","wires":[["336ce22b.42a1ae","ee09a4eb.1fe158"]]},{"id":"336ce22b.42a1ae","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":1134.4285507202148,"y":4243.365930318832,"z":"ad46ffb1.59044","wires":[["18535f5.1200da1"]]},{"id":"ee09a4eb.1fe158","type":"outcome","name":"pprobe","xml":"<outcome value='pprobe'>\n","comments":"","outputs":1,"x":1135.0952835083008,"y":4395.984510183334,"z":"ad46ffb1.59044","wires":[["6c233b94.0bcdc4"]]},{"id":"c3f6701a.7032f","type":"save","name":"save pprobe logical-link relationships","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"logical-link:relationship-list\"\n key=\"logical-link.link-name = $tmp.link-name\"\n force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"relationship-list.relationship[0].related-to\" value=\"l-interface\" />\n <parameter name=\"relationship-list.relationship[0].relationship-label\" value=\"org.onap.relationships.inventory.Source\" />\n <parameter name=\"relationship-list.relationship[0].related-link\"\n value=\"`'/aai/v$/cloud-infrastructure/cloud-regions/cloud-region/'\n + $tmp.cloud-owner + '/' + $tmp.cloud-region-id + '/tenants/tenant/'\n + $tmp.tenant-id + '/vservers/vserver/' \n + $pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-vserver-id\n + '/l-interfaces/l-interface/'\n + $tmp.encoded-source-port-name`\" />\n <parameter name=\"relationship-list.relationship[1].related-to\" value=\"l-interface\" />\n <parameter name=\"relationship-list.relationship[1].relationship-label\" value=\"org.onap.relationships.inventory.Destination\" />\n <parameter name=\"relationship-list.relationship[1].related-link\"\n value=\"`'/aai/v$/network/pnfs/pnf/'\n + $tmp.dest-pnf-name + '/p-interfaces/p-interface/'\n + $tmp.encoded-dest-p-interface + '/l-interfaces/l-interface/' \n + $tmp.encoded-dest-port-name`\" />\n","comments":"","outputs":1,"x":1626.9047546386719,"y":4424.556483030319,"z":"ad46ffb1.59044","wires":[["aca151d2.78cad","dbe217c5.2519a8"]]},{"id":"fb861ac2.aeb8b8","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":471.6667175292969,"y":3834.0801408290863,"z":"ad46ffb1.59044","wires":[["ea2b6c9c.21d7f"]]},{"id":"ea2b6c9c.21d7f","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":669.6667175292969,"y":3834.0801408290863,"z":"ad46ffb1.59044","wires":[["6c7aeb00.1010d4"]]},{"id":"6c7aeb00.1010d4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":816.6666412353516,"y":3834.080167531967,"z":"ad46ffb1.59044","wires":[["6aa8217a.be7a8","c31b80a8.b4288","cf530372.3cdf2"]]},{"id":"497d568b.0f1998","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":463.1903839111328,"y":4800.794217824936,"z":"ad46ffb1.59044","wires":[["650f3d05.c7b2c4"]]},{"id":"650f3d05.c7b2c4","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":661.1903839111328,"y":4800.794217824936,"z":"ad46ffb1.59044","wires":[["76baa0fa.2967c"]]},{"id":"1bc76bf3.eeff44","type":"execute","name":"encode spaces in src-nfc-naming-code","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"replace\">\n\t<parameter name=\"source\" value=\"`$tmp.src-nfc-naming-code`\" />\n\t<parameter name=\"target\" value=\" \" />\n\t<parameter name=\"replacement\" value=\"%20\" />\n\t<parameter name=\"outputPath\" value=\"tmp.encoded-src-nfc-naming-code\" />\n","comments":"","outputs":1,"x":502.85723876953125,"y":515.9523913860321,"z":"ad46ffb1.59044","wires":[[]]},{"id":"34f89d01.613262","type":"execute","name":"encode spaces in dest-nfc-naming-code","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"replace\">\n\t<parameter name=\"source\" value=\"`$tmp.dest-nfc-naming-code`\" />\n\t<parameter name=\"target\" value=\" \" />\n\t<parameter name=\"replacement\" value=\"%20\" />\n\t<parameter name=\"outputPath\" value=\"tmp.encoded-dest-nfc-naming-code\" />\n","comments":"","outputs":1,"x":507.85709381103516,"y":564.2857167720795,"z":"ad46ffb1.59044","wires":[[]]},{"id":"a44e08eb.db9948","type":"switchNode","name":"switch source-to-dest-map_length","xml":"<switch test='`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map_length`'>\n","comments":"","outputs":1,"x":482.8571319580078,"y":3722.6186966896057,"z":"ad46ffb1.59044","wires":[["f7202318.a956f","868aa975.671c78"]]},{"id":"f7202318.a956f","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":707.8571395874023,"y":3699.285307407379,"z":"ad46ffb1.59044","wires":[["e98cc52b.20adf8"]]},{"id":"868aa975.671c78","type":"other","name":"0","xml":"<outcome value='0'>\n","comments":"","outputs":1,"x":706.1904525756836,"y":3739.285307407379,"z":"ad46ffb1.59044","wires":[["e98cc52b.20adf8"]]},{"id":"e98cc52b.20adf8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":859.5237655639648,"y":3720.952055454254,"z":"ad46ffb1.59044","wires":[["51295bdc.47f6c4","63c03f51.fc305"]]},{"id":"51295bdc.47f6c4","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"No usable source l-interfaces found in AAI data\" />\n","comments":"","outputs":1,"x":1056.1903915405273,"y":3719.285307407379,"z":"ad46ffb1.59044","wires":[[]]},{"id":"47af693f.8cd828","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1234.2856826782227,"y":4553.571910619736,"z":"ad46ffb1.59044","wires":[["bbdabb63.782468"]]},{"id":"4573744a.834e0c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1392.999870300293,"y":1951.2380549907684,"z":"ad46ffb1.59044","wires":[["b375f194.02676"]]},{"id":"b375f194.02676","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1565.5713195800781,"y":1952.1903321743011,"z":"ad46ffb1.59044","wires":[["437bd1a1.f2c9d","63c03f51.fc305"]]},{"id":"437bd1a1.f2c9d","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to AAI custom query: cloud-region-fromVnf, for destination vnf\" />\n","comments":"","outputs":1,"x":1778.5713500976562,"y":1952.190439939499,"z":"ad46ffb1.59044","wires":[[]]},{"id":"e6609e5f.34d39","type":"save","name":"custom query: get cloud region from dest vnf","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"custom-query\"\n key=\"format = 'resource&nodesOnly=true'\"\n force=\"true\"\n local-only=\"false\"\n pfx=\"tmp.AnAI-data.dest-vnf\">\n<parameter name=\"start[0]\" value=\"`'/network/generic-vnfs/generic-vnf/' + $tmp.dest-vnf-id `\" />\n<parameter name=\"start_length\" value=\"1\" />\n<parameter name=\"query\" value=\"query/cloud-region-fromVnf\" /> \n","comments":"","outputs":1,"x":1138.428466796875,"y":1977.523785352707,"z":"ad46ffb1.59044","wires":[["4573744a.834e0c","154faeaa.368d41"]]},{"id":"154faeaa.368d41","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1406.7141647338867,"y":2002.095110654831,"z":"ad46ffb1.59044","wires":[["a89eaf11.7e0b1"]]},{"id":"a89eaf11.7e0b1","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1570.9998741149902,"y":2000.6665923595428,"z":"ad46ffb1.59044","wires":[["eb95e0ab.146cb","63c03f51.fc305"]]},{"id":"eb95e0ab.146cb","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"No cloud region returned from AAI: cloud-region-fromVnf, for destination vnf\" />\n","comments":"","outputs":1,"x":1771.5713348388672,"y":2000.3809134960175,"z":"ad46ffb1.59044","wires":[[]]},{"id":"fa51468e.921388","type":"switchNode","name":"switch configuration-sub-type","xml":"<switch test='`$tmp.configuration-sub-type`'>\n","comments":"","outputs":1,"x":477.28565979003906,"y":2119.809517621994,"z":"ad46ffb1.59044","wires":[["ed9d1841.db2a08"]]},{"id":"ed9d1841.db2a08","type":"outcome","name":"vprobe","xml":"<outcome value='vprobe'>\n","comments":"","outputs":1,"x":676.9522895812988,"y":2119.1428105831146,"z":"ad46ffb1.59044","wires":[["ff18461b.76ee58"]]},{"id":"ff18461b.76ee58","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":828.7142486572266,"y":2118.3809287548065,"z":"ad46ffb1.59044","wires":[["e6609e5f.34d39","faf4a613.ee5ff8","f6377325.42056","cc1ea987.81d3e8"]]},{"id":"faf4a613.ee5ff8","type":"for","name":"for each returned result","xml":"<for index='result-idx' start='0' end='`$tmp.AnAI-data.dest-vnf.results_length`' >\n","comments":"","outputs":1,"x":1065.8570861816406,"y":2109.8095004558563,"z":"ad46ffb1.59044","wires":[["a9bff298.d99cf","38457a45.bbc4b6"]]},{"id":"a9bff298.d99cf","type":"switchNode","name":"switch tenant-name","xml":"<switch test='`$tmp.AnAI-data.dest-vnf.results[$result-idx].tenant.tenant-name`'>\n","comments":"","outputs":1,"x":1299.1903610229492,"y":2062.6665506362915,"z":"ad46ffb1.59044","wires":[["4ad4e6b8.e0e368","e71b1e71.f9183"]]},{"id":"4ad4e6b8.e0e368","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1485.8569679260254,"y":2044.3332135677338,"z":"ad46ffb1.59044","wires":[["9f17745d.6422c8"]]},{"id":"e71b1e71.f9183","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1484.1902389526367,"y":2084.0952603816986,"z":"ad46ffb1.59044","wires":[["e0c49a34.d24088"]]},{"id":"9f17745d.6422c8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1627.5236415863037,"y":2044.3332545757294,"z":"ad46ffb1.59044","wires":[[]]},{"id":"e0c49a34.d24088","type":"set","name":"set tmp.dest-tenant from tenant-name","xml":"<set>\n<parameter name='tmp.dest-tenant' value='`$tmp.AnAI-data.dest-vnf.results[$result-idx].tenant.tenant-name`' />\n","comments":"","x":1723.3808517456055,"y":2082.66651058197,"z":"ad46ffb1.59044","wires":[]},{"id":"f6377325.42056","type":"switchNode","name":"switch tmp.dest-tenant","xml":"<switch test='`$tmp.dest-tenant`'>\n","comments":"","outputs":1,"x":1059.8571166992188,"y":2221.238068342209,"z":"ad46ffb1.59044","wires":[["18391ea.86616e1"]]},{"id":"18391ea.86616e1","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1259.4284744262695,"y":2220.3329684734344,"z":"ad46ffb1.59044","wires":[["76e5f52c.7c1e9c"]]},{"id":"76e5f52c.7c1e9c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1412.0475234985352,"y":2219.904328107834,"z":"ad46ffb1.59044","wires":[["3f92a68b.6bc4fa","63c03f51.fc305"]]},{"id":"3f92a68b.6bc4fa","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to retrieve destination tenant from AAI\" />\n","comments":"","outputs":1,"x":1599.7618713378906,"y":2219.0472552776337,"z":"ad46ffb1.59044","wires":[[]]},{"id":"9fdf6659.2008e8","type":"set","name":"set tmp.src-network-name and contrail fqdn","xml":"<set>\n<parameter name='tmp.src-network-name' value='`$tmp.AnAI-data.src-network.results[$src-nw-idx].l3-network.network-name`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-network-fqdn'\n value='`$tmp.AnAI-data.src-network.results[$src-nw-idx].l3-network.contrail-network-fqdn`' />\n","comments":"","x":1516.1903686523438,"y":3162.6187646389008,"z":"ad46ffb1.59044","wires":[]},{"id":"9d76aa87.81e4e8","type":"set","name":"set tmp.dest-network-name and contrail fqdn","xml":"<set>\n<parameter name='tmp.dest-network-name' value='`$tmp.AnAI-data.dest-network.results[$dest-nw-idx].l3-network.network-name`' />\n<parameter name='pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.dest-network-fqdn'\n value='`$tmp.AnAI-data.dest-network.results[$dest-nw-idx].l3-network.contrail-network-fqdn`' />\n","comments":"","x":2094.5237197875977,"y":3309.6187703609467,"z":"ad46ffb1.59044","wires":[]},{"id":"dbe217c5.2519a8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1909.047695159912,"y":4424.523663282394,"z":"ad46ffb1.59044","wires":[["81fec963.f0c378"]]},{"id":"dbd95e4a.02811","type":"execute","name":"urlEncode tmp.encoded-link-name","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"urlEncode\">\n\t<parameter name=\"source\" value=\"`$tmp.link-name`\" />\n\t<parameter name=\"outputPath\" value=\"tmp.encoded-link-name\" />\n","comments":"","outputs":1,"x":940.2381286621094,"y":4094.9998967647552,"z":"ad46ffb1.59044","wires":[[]]},{"id":"18535f5.1200da1","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1284.5238037109375,"y":4243.571359395981,"z":"ad46ffb1.59044","wires":[["c7ea99b1.29bf58","1ad1135d.a56a9d","8753137e.a72be"]]},{"id":"6c233b94.0bcdc4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1284.523754119873,"y":4396.428431272507,"z":"ad46ffb1.59044","wires":[["c7ea99b1.29bf58","dc67e39d.28897","c3f6701a.7032f","1ad1135d.a56a9d"]]},{"id":"1ad1135d.a56a9d","type":"execute","name":"urlEncode tmp.encoded-dest-port-name","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"urlEncode\">\n\t<parameter name=\"source\" value=\"`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].dest-port-name`\" />\n\t<parameter name=\"outputPath\" value=\"tmp.encoded-dest-port-name\" />\n","comments":"","outputs":1,"x":1633.0952606201172,"y":4276.428080320358,"z":"ad46ffb1.59044","wires":[[]]},{"id":"c7ea99b1.29bf58","type":"execute","name":"urlEncode tmp.encoded-source-port-name","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"urlEncode\">\n\t<parameter name=\"source\" value=\"`$pm.configuration-data.port-mirror-configuration-topology.port-mirror-configuration-assignments.source-to-dest-maps.source-to-dest-map[$src-idx].source-port-name`\" />\n\t<parameter name=\"outputPath\" value=\"tmp.encoded-source-port-name\" />\n","comments":"","outputs":1,"x":1638.8096389770508,"y":4226.428150892258,"z":"ad46ffb1.59044","wires":[[]]},{"id":"dc67e39d.28897","type":"execute","name":"urlEncode tmp.encoded-dest-p-interface","xml":"<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"urlEncode\">\n\t<parameter name=\"source\" value=\"`$tmp.dest-p-interface`\" />\n\t<parameter name=\"outputPath\" value=\"tmp.encoded-dest-p-interface\" />\n","comments":"","outputs":1,"x":1633.0952377319336,"y":4324.999651670456,"z":"ad46ffb1.59044","wires":[[]]},{"id":"38457a45.bbc4b6","type":"switchNode","name":"switch tenant-id","xml":"<switch test='`$tmp.AnAI-data.dest-vnf.results[$result-idx].tenant.tenant-id`'>\n","comments":"","outputs":1,"x":1287.3809661865234,"y":2140.7142856121063,"z":"ad46ffb1.59044","wires":[["8241f9f.db88c08","b6dabfd4.14d6f"]]},{"id":"8241f9f.db88c08","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1487.3808708190918,"y":2122.3809106349945,"z":"ad46ffb1.59044","wires":[["3d4e5fe7.561ce"]]},{"id":"b6dabfd4.14d6f","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1485.7141418457031,"y":2162.1429574489594,"z":"ad46ffb1.59044","wires":[["d1261b6b.8c1048"]]},{"id":"3d4e5fe7.561ce","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1629.0475444793701,"y":2122.38095164299,"z":"ad46ffb1.59044","wires":[[]]},{"id":"d1261b6b.8c1048","type":"set","name":"set tmp.dest-tenant-id from tenant-id","xml":"<set>\n<parameter name='tmp.dest-tenant-id' value='`$tmp.AnAI-data.dest-vnf.results[$result-idx].tenant.tenant-id`' />\n","comments":"","x":1721.9047088623047,"y":2162.3809468746185,"z":"ad46ffb1.59044","wires":[]},{"id":"cc1ea987.81d3e8","type":"switchNode","name":"switch tmp.dest-tenant-id","xml":"<switch test='`$tmp.dest-tenant-id`'>\n","comments":"","outputs":1,"x":1065.952377319336,"y":2267.8571078777313,"z":"ad46ffb1.59044","wires":[["8bb3d822.e12b08"]]},{"id":"8bb3d822.e12b08","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1259.5237350463867,"y":2266.952008008957,"z":"ad46ffb1.59044","wires":[["1a002ab2.dc1e45"]]},{"id":"1a002ab2.dc1e45","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1412.1427841186523,"y":2266.5233676433563,"z":"ad46ffb1.59044","wires":[["f1e988bd.457508"]]},{"id":"f1e988bd.457508","type":"configure","name":"set error-message","xml":"<set>\n<parameter name=\"error-message\" value=\"Failed call to retrieve destination tenant-id from AAI\" />\n","comments":"","outputs":1,"x":1599.8571319580078,"y":2265.666294813156,"z":"ad46ffb1.59044","wires":[[]]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_port-mirror-topology-operation.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_port-mirror-topology-operation.json index cf675fb6..65c2b832 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_port-mirror-topology-operation.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_port-mirror-topology-operation.json @@ -628,7 +628,7 @@ "id": "f41c1b7a.2417f8", "type": "set", "name": "set response paths", - "xml": "<set>\n<parameter name='service-object-path' value=\"`'/config/GENERIC-RESOURCE-API:services/service/'\n + $port-mirror-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology'`\" />\n<parameter name='port-mirror-object-path' value=\"`'/config/GENERIC-RESOURCE-API:port-mirror-configurations/port-mirror-configuration/'\n + $port-mirror-topology-operation-input.configuration-information.configuration-id + '/configuration-data/port-mirror-configuration-topology'`\" />\n", + "xml": "<set>\n<parameter name='service-object-path' value=\"`'/rests/data/GENERIC-RESOURCE-API:services/service='\n + $port-mirror-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology?content=config'`\" />\n<parameter name='port-mirror-object-path' value=\"`'/rests/data/GENERIC-RESOURCE-API:port-mirror-configurations/port-mirror-configuration='\n + $port-mirror-topology-operation-input.configuration-information.configuration-id + '/configuration-data/port-mirror-configuration-topology?content=config'`\" />\n", "comments": "", "x": 533.3333206176758, "y": 668.3333396911621, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-activate.json index bdba9feb..633f04fe 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-activate.json @@ -90,7 +90,7 @@ "id": "3dde4199.1c9e2e", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments": "", "x": 512.8968772888184, "y": 934.7656240463257, @@ -112,7 +112,7 @@ "id": "6861327d.73bc7c", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology?content=config'` \" />\n\n", "comments": "", "x": 479.880916595459, "y": 274.76189517974854, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-assign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-assign.json index 740e7ed0..d6fb4d2f 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-assign.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-assign.json @@ -105,7 +105,7 @@ "id": "da8bc6b3.f36008", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments": "", "x": 409.51063537597656, "y": 2265.855498313904, @@ -127,7 +127,7 @@ "id": "7ff7d11f.c2ff8", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology?content=config'` \" />\n\n", "comments": "", "x": 426.49468994140625, "y": 261.85183906555176, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-create.json index e11de448..f20552db 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-create.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-create.json @@ -89,7 +89,7 @@ "id": "bd924d4b.6ac3d", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments": "", "x": 640.7540245056152, "y": 1063.3370542526245, @@ -111,7 +111,7 @@ "id": "24e1c2bf.f38e3e", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology?content=config'` \" />\n\n", "comments": "", "x": 607.7380638122559, "y": 403.33332538604736, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-deactivate.json index f6358bf2..e4b50a3d 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-deactivate.json @@ -90,7 +90,7 @@ "id": "e886f0a3.d1a26", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service/'\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments": "", "x": 530.0397453308105, "y": 929.0513410568237, @@ -112,7 +112,7 @@ "id": "32c0247b.626e1c", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology?content=config'` \" />\n\n", "comments": "", "x": 497.0237846374512, "y": 269.0476121902466, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-delete.json index 65acd709..d709eeaa 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-delete.json @@ -90,7 +90,7 @@ "id": "d473982e.2073e8", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments": "", "x": 532.7540245056152, "y": 957.3370542526245, @@ -112,7 +112,7 @@ "id": "67dca0c.5203f6", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology?content=config'` \" />\n\n", "comments": "", "x": 499.73806381225586, "y": 297.33332538604736, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-unassign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-unassign.json index 1edf25f3..7e6269a1 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-unassign.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_security-zone-topology-operation-unassign.json @@ -86,7 +86,7 @@ "id": "ac546d04.a44e3", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments": "", "x": 530.7540245056152, "y": 983.3370542526245, @@ -97,7 +97,7 @@ "id": "16719562.f89cfb", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology?content=config'` \" />\n\n", "comments": "", "x": 497.73806381225586, "y": 323.33332538604736, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-aai-pnf-put.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-aai-pnf-put.json index 40b49cff..cee8436f 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-aai-pnf-put.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-aai-pnf-put.json @@ -584,7 +584,7 @@ "id": "45a19896.9c1308",
"type": "set",
"name": "set ss.selflink",
- "xml": "<set>\n<parameter name=\"ss.selflink\" \n\tvalue=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + \n\t$service-data.pnfs.pnf[$pnf-index].pnf-data.service-information.service-instance-id + \n\t'/service-data/pnfs/pnf/' + \n\t$ss.param.pnf-id + \n\t'/pnf-data/pnf-topology/'`\" />\n",
+ "xml": "<set>\n<parameter name=\"ss.selflink\" \n\tvalue=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + \n\t$service-data.pnfs.pnf[$pnf-index].pnf-data.service-information.service-instance-id + \n\t'/service-data/pnfs/pnf=' + \n\t$ss.param.pnf-id + \n\t'/pnf-data/pnf-topology?content=config'`\" />\n",
"comments": "",
"x": 1065.9999618530273,
"y": 808.5714473724365,
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-aai-vf-module-put.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-aai-vf-module-put.json index d8bec7ea..236e3ec1 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-aai-vf-module-put.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-aai-vf-module-put.json @@ -1 +1 @@ -[{"id":"544113b5.3263fc","type":"dgstart","name":"DGSTART","outputs":1,"x":104.99999237060547,"y":48.33333206176758,"z":"8068ded9.ccc26","wires":[["1404c879.0f3058"]]},{"id":"d2b6c403.dde578","type":"method","name":"method self-serve-aai-vf-module-put","xml":"<method rpc='self-serve-aai-vf-module-put' mode='sync'>\n","comments":"","outputs":1,"x":237.21428680419922,"y":99.50794315338135,"z":"8068ded9.ccc26","wires":[["28d4af4a.f0cdb"]]},{"id":"28d4af4a.f0cdb","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":124.89287567138672,"y":174.8571548461914,"z":"8068ded9.ccc26","wires":[["f217d7f2.7c62d8","d7b740fc.6831a","9669e0ca.90c8f","3b0adeb0.0eb082"]]},{"id":"1404c879.0f3058","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":377.85713958740234,"y":47.7618989944458,"z":"8068ded9.ccc26","wires":[["d2b6c403.dde578"]]},{"id":"f217d7f2.7c62d8","type":"switchNode","name":"switch: ss.capability-action","xml":"<switch test='`$ss.capability-action`'>\n","comments":"","outputs":1,"x":362.8571662902832,"y":227.08332681655884,"z":"8068ded9.ccc26","wires":[["2cbb79a9.c1eea6","d1160c49.4176","43c0a50b.639d9c"]]},{"id":"2cbb79a9.c1eea6","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":571.3571624755859,"y":227.33332681655884,"z":"8068ded9.ccc26","wires":[["5ae95a45.5debe4"]]},{"id":"5ae95a45.5debe4","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\t<parameter name=\"error-message\" value=\"ss.capability-action is null\" />\n","comments":"","x":727.2738342285156,"y":227.44442558288574,"z":"8068ded9.ccc26","wires":[]},{"id":"d1160c49.4176","type":"outcome","name":"assign","xml":"<outcome value='assign'>","comments":"","outputs":1,"x":571.1071586608887,"y":276.33333015441895,"z":"8068ded9.ccc26","wires":[["a7cac65d.e914d8"]]},{"id":"d7b740fc.6831a","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-aai-vfput.log' />\n","comments":"","outputs":1,"x":319.8214340209961,"y":1210.9523258209229,"z":"8068ded9.ccc26","wires":[[]]},{"id":"27de274a.88c098","type":"save","name":"update generic-vnf","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"ipv4-loopback0-address\" value='`$ss.param.ipv4-loopback0-address`' />\n","comments":"","outputs":1,"x":2390.6071739196777,"y":1895.2024598121643,"z":"8068ded9.ccc26","wires":[["3979b1d5.6677ee","7a101d16.ff8574","d5eb2c25.f7bf1"]]},{"id":"3979b1d5.6677ee","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2590.857204437256,"y":1895.559506893158,"z":"8068ded9.ccc26","wires":[["d2c445d.5b0a2b8"]]},{"id":"7a101d16.ff8574","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2597.1072158813477,"y":1946.3095412254333,"z":"8068ded9.ccc26","wires":[["b17925c2.0a32d8"]]},{"id":"d2c445d.5b0a2b8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf.ipv4-loopback0-address in AnAI with ipv4-loopback0-address=' + $ss.param.ipv4-loopback0-address + '; ' + $error-message`\" />\n","comments":"","x":2768.726161956787,"y":1895.34521150589,"z":"8068ded9.ccc26","wires":[]},{"id":"b17925c2.0a32d8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf because vnf-id =' + $ss.param.vnf-id + ' is not found in AAI. ' + $error-message`\" />\n","comments":"","x":2769.297679901123,"y":1945.583387851715,"z":"8068ded9.ccc26","wires":[]},{"id":"2bb84732.4581c8","type":"save","name":"update volume-group","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"volume-group\"\n\t\tkey=\"cloud-region.cloud-owner = $prop.cloud-owner \n\t\t\tAND cloud-region.cloud-region-id = $ss.param.aic-cloud-region \n\t\t\tAND cloud-region.cloud-owner = $prop.cloud-region.cloud-owner \n\t\t\tAND volume-group-id = $ss.param.volume-group-id\" >\n<parameter name=\"volume-group-name\" value='`$ss.param.volume-group-name`' />\n<parameter name=\"volume-group-id\" value='`$ss.param.volume-group-id`' />\n","comments":"","outputs":1,"x":1675.523941040039,"y":4008.690396785736,"z":"8068ded9.ccc26","wires":[["990ce64e.9c6758","603a3397.22016c"]]},{"id":"990ce64e.9c6758","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1883.523941040039,"y":4008.690396785736,"z":"8068ded9.ccc26","wires":[["4c1c1d74.1517f4"]]},{"id":"5f17c4a8.0dac0c","type":"save","name":"Rollback generic-vnf update","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"ipv4-loopback0-address\" value='`$tmp.aai.vnf.ipv4-loopback0-address`' />\n<parameter name=\"ipv4-oam-address\" value='`$tmp.aai.vnf.ipv4-oam-address`' />\n<parameter name=\"as-number\" value='`$tmp.aai.vnf.as-number`' />\n<parameter name=\"vlan-id-outer\" value='`$tmp.aai.vnf.vlan-id-outer`' />","comments":"","outputs":1,"x":6086.120388031006,"y":3156.1444816589355,"z":"8068ded9.ccc26","wires":[["cd5787f3.1adc68","11863adb.b84605","a0326122.57c02"]]},{"id":"cd5787f3.1adc68","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":6324.370372772217,"y":3155.644426345825,"z":"8068ded9.ccc26","wires":[["2f247634.a3188a"]]},{"id":"11863adb.b84605","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":6330.620384216309,"y":3207.3944606781006,"z":"8068ded9.ccc26","wires":[["d35c334f.7cfba"]]},{"id":"cdbfc33f.d52a7","type":"save","name":"get generic-vnf","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \"\n\tpfx=\"tmp.aai.vnf\" >\n\n","comments":"","outputs":1,"x":1271.607234954834,"y":1643.833396911621,"z":"8068ded9.ccc26","wires":[["7c2ec187.5782e","d05d85c0.e9b768"]]},{"id":"7c2ec187.5782e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1480.1428680419922,"y":1643.3333177566528,"z":"8068ded9.ccc26","wires":[["83c73051.c3a32"]]},{"id":"d05d85c0.e9b768","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1486.3927879333496,"y":1742.2262258529663,"z":"8068ded9.ccc26","wires":[["486062c6.b9a65c"]]},{"id":"3a748bec.06c474","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Encountered error to get generic-vnf with vnf-id=' + $ss.param.vnf-id + ' from AnAI'`\" />\n","comments":"","x":1922.5830726623535,"y":1688.8333368301392,"z":"8068ded9.ccc26","wires":[]},{"id":"f79a10de.f96ed","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'generic-vnf.vnf-name with vnf-id=' + $ss.param.vnf-id + ' not found in AAI. '`\" />\n","comments":"","x":1924.2975463867188,"y":1742.785894393921,"z":"8068ded9.ccc26","wires":[]},{"id":"fd633781.1bf9c8","type":"save","name":"update volume-group","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"volume-group\"\n\t\tkey=\"cloud-region.cloud-owner = $prop.cloud-owner \n\t\t\tAND cloud-region.cloud-region-id = $ss.param.aic-cloud-region \n\t\t\tAND cloud-region.cloud-owner = $prop.cloud-region.cloud-owner \n\t\t\tAND volume-group-id = $ss.param.volume-group-id\" >\n<parameter name=\"volume-group-name\" value='`$tmp.aai.volume-group.volume-group-name`' />","comments":"","outputs":1,"x":5744.548473358154,"y":3776.048948287964,"z":"8068ded9.ccc26","wires":[["e4fa8909.4dd298","e6cf9e60.36c21","1a42d1bd.7e06ae"]]},{"id":"4c1c1d74.1517f4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2078.2739334106445,"y":4008.690370082855,"z":"8068ded9.ccc26","wires":[["c1b8579b.771458","5baa82ec.dffecc"]]},{"id":"a7cac65d.e914d8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":724.8571548461914,"y":276.5833263397217,"z":"8068ded9.ccc26","wires":[["d16edcfb.a2216","81d44ce6.28309","1e19f844.9c0ec8","a393fb3d.925a18","c0feb185.c5348","f10164da.04f358","40f8f017.2403a","4fcc988.d1ea868","310596e2.42bc4a"]]},{"id":"d16edcfb.a2216","type":"set","name":"set resource-resolution-data.status, parm[].value = SUCCESS","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='SUCCESS' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].value' \n\tvalue='SUCCESS' />\n","comments":"","x":1096.2739639282227,"y":6504.09578037262,"z":"8068ded9.ccc26","wires":[]},{"id":"83c73051.c3a32","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1651.714454650879,"y":1643.3691110610962,"z":"8068ded9.ccc26","wires":[["531e351c.fe55bc","3a748bec.06c474"]]},{"id":"486062c6.b9a65c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1652.571533203125,"y":1742.3691110610962,"z":"8068ded9.ccc26","wires":[["531e351c.fe55bc","f79a10de.f96ed"]]},{"id":"531e351c.fe55bc","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.param.aai-vnf-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":2019.2858428955078,"y":1643.0834226608276,"z":"8068ded9.ccc26","wires":[]},{"id":"32c37498.d5047c","type":"for","name":"for bidx in param_length (VF-MODULE)","xml":"<for silentFailure='true' index=\"bidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`\" >\n","comments":"","outputs":1,"x":1288.7617721557617,"y":360.57139682769775,"z":"8068ded9.ccc26","wires":[["930c302f.87d9a"]]},{"id":"a1dc9b53.b001a8","type":"switchNode","name":"switch param[].name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].name`'>\n","comments":"","outputs":1,"x":2028.1904602050781,"y":881.0000171661377,"z":"8068ded9.ccc26","wires":[["eda336f5.cd2b28","7e8f8098.f3aac","82245a01.d9d5d8","9a172f5.4d216d","1635f3c2.d64ecc","7b910270.aa145c","a7a813a9.685fe","4a38191a.665008","68af07a3.16ce88","91d6d0e4.e2cc2","8f404e48.285a6","133a1544.17dc0b","ec83fc2d.1db1b","ca7c357a.02aee8","f5541fce.c9fc9","2b83386b.477738","593dcc0e.8e3134","26c08944.595276","982628c3.cc5ec8","b7a3bc44.8c264","10ef55c1.e5abda"]]},{"id":"eda336f5.cd2b28","type":"outcome","name":"vf_module_id","xml":"<outcome value='vf_module_id'>\n","comments":"","outputs":1,"x":2322.1904525756836,"y":451.8571300506592,"z":"8068ded9.ccc26","wires":[["45675dfb.d48574"]]},{"id":"45675dfb.d48574","type":"set","name":"set ss.param.vf-module-id","xml":"<set>\n<parameter name='ss.param.vf-module-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n","comments":"","x":2660.619083404541,"y":452.7142939567566,"z":"8068ded9.ccc26","wires":[]},{"id":"7e8f8098.f3aac","type":"outcome","name":"vf-module-name","xml":"<outcome value='vf-module-name'>\n","comments":"","outputs":1,"x":2333.6189918518066,"y":494.7142791748047,"z":"8068ded9.ccc26","wires":[["4f7b07c.b10dcf8"]]},{"id":"4f7b07c.b10dcf8","type":"set","name":"set ss.param.vf-module-name","xml":"<set>\n<parameter name='ss.param.vf-module-name' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n","comments":"","x":2671.9047470092773,"y":495.28573751449585,"z":"8068ded9.ccc26","wires":[]},{"id":"82245a01.d9d5d8","type":"outcome","name":"volume-group-name","xml":"<outcome value='volume-group-name'>\n","comments":"","outputs":1,"x":2342.9047241210938,"y":579.5714559555054,"z":"8068ded9.ccc26","wires":[["f508bd0c.d0dc8"]]},{"id":"f508bd0c.d0dc8","type":"set","name":"set ss.param.volume-group-name","xml":"<set>\n<parameter name='ss.param.volume-group-name' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n","comments":"","x":2685.9047470092773,"y":580.2857375144958,"z":"8068ded9.ccc26","wires":[]},{"id":"9a172f5.4d216d","type":"outcome","name":"aic-cloud-region","xml":"<outcome value='aic-cloud-region'>\n","comments":"","outputs":1,"x":2328.904773712158,"y":621.5714359283447,"z":"8068ded9.ccc26","wires":[["ffb319f8.7a0188"]]},{"id":"ffb319f8.7a0188","type":"set","name":"set ss.param.aic-cloud-region","xml":"<set>\n<parameter name='ss.param.aic-cloud-region' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n","comments":"","x":2674.190528869629,"y":622.1428942680359,"z":"8068ded9.ccc26","wires":[]},{"id":"1635f3c2.d64ecc","type":"outcome","name":"volume-group-id","xml":"<outcome value='volume-group-id'>\n","comments":"","outputs":1,"x":2334.1904678344727,"y":536.8571701049805,"z":"8068ded9.ccc26","wires":[["3675b335.dbe54c"]]},{"id":"3675b335.dbe54c","type":"set","name":"set ss.param.volume-group-id","xml":"<set>\n<parameter name='ss.param.volume-group-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n","comments":"","x":2672.4762229919434,"y":537.4286284446716,"z":"8068ded9.ccc26","wires":[]},{"id":"e53f3779.d51718","type":"save","name":"update vf-module","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vf-module\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \n\t\t\tAND vf-module.vf-module-id = $ss.param.vf-module-id \" >\n<parameter name=\"vf-module-name\" value='`$ss.param.vf-module-name`' />\n<parameter name=\"selflink\" value='`$ss.selflink`' />\n","comments":"","outputs":1,"x":1680.0717315673828,"y":3563.9885816574097,"z":"8068ded9.ccc26","wires":[["afb215fc.55dad8","656edb50.29a904"]]},{"id":"afb215fc.55dad8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1873.3217163085938,"y":3563.4885263442993,"z":"8068ded9.ccc26","wires":[["a40c159f.2d73b8"]]},{"id":"656edb50.29a904","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1879.5717277526855,"y":3615.2385606765747,"z":"8068ded9.ccc26","wires":[["f18e9019.bd386"]]},{"id":"b02b7bf8.605ee8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'vf-module not found in AnAI with vf-module-id=' + $ss.param.vf-module-id + $error-message`\" />\n","comments":"","x":2223.7383728027344,"y":3453.857497215271,"z":"8068ded9.ccc26","wires":[]},{"id":"fff7178f.f6b028","type":"save","name":"get vf-module","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vf-module\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \n\t\t\tAND vf-module.vf-module-id = $ss.param.vf-module-id \"\n\tpfx=\"tmp.aai.vfmdoule\" >\n\n","comments":"","outputs":1,"x":1666.3218803405762,"y":3363.5716791152954,"z":"8068ded9.ccc26","wires":[["33df8cfd.d9e204","7ca5615.b5bdba"]]},{"id":"33df8cfd.d9e204","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1855.571865081787,"y":3363.071623802185,"z":"8068ded9.ccc26","wires":[["3a7cd486.8bb8bc"]]},{"id":"7ca5615.b5bdba","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1863.2503471374512,"y":3419.1073150634766,"z":"8068ded9.ccc26","wires":[["946f5847.827928"]]},{"id":"a40c159f.2d73b8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2070.7502822875977,"y":3563.5600509643555,"z":"8068ded9.ccc26","wires":[["fb61694.f0eee98","e9ef052a.050278"]]},{"id":"f18e9019.bd386","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2073.6074981689453,"y":3614.4171924591064,"z":"8068ded9.ccc26","wires":[["8d0b8b24.ceee48","e9ef052a.050278"]]},{"id":"1fa7644b.ffce9c","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":6137.54887008667,"y":3110.5131034851074,"z":"8068ded9.ccc26","wires":[]},{"id":"a0326122.57c02","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":6328.441631317139,"y":3255.656030654907,"z":"8068ded9.ccc26","wires":[["16cfd259.a82d8e"]]},{"id":"1c8efb54.0d2e25","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":5828.72732925415,"y":3066.906047821045,"z":"8068ded9.ccc26","wires":[["1fa7644b.ffce9c","5f17c4a8.0dac0c","c5a30c47.4e84c"]]},{"id":"d11853ad.952b6","type":"save","name":"Rollback vf-module update","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vf-module\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \n\t\t\tAND vf-module.vf-module-id = $ss.param.vf-module-id \" >\n<parameter name=\"vf-module-name\" value='`$tmp.aai.vfmdoule.vf-module-name`' />\n<parameter name=\"selflink\" value='`$tmp.aai.vfmdoule.selflink`' />","comments":"","outputs":1,"x":5913.00138092041,"y":3500.2506856918335,"z":"8068ded9.ccc26","wires":[["900b7985.d88088","d5f6460b.1a20b8","98d622a6.0af76"]]},{"id":"900b7985.d88088","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":6151.251365661621,"y":3499.750630378723,"z":"8068ded9.ccc26","wires":[["dfd2d7b3.3404f8"]]},{"id":"d5f6460b.1a20b8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":6159.501377105713,"y":3542.5006647109985,"z":"8068ded9.ccc26","wires":[["c4a7132d.b535c"]]},{"id":"98d622a6.0af76","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":6156.322624206543,"y":3585.762234687805,"z":"8068ded9.ccc26","wires":[["a9be3e4a.97414"]]},{"id":"7b910270.aa145c","type":"outcome","name":"vnfc-name","xml":"<outcome value='vnfc-name'>","comments":"","outputs":1,"x":2312.238136291504,"y":666.6665997505188,"z":"8068ded9.ccc26","wires":[["71eabe9b.2eb27"]]},{"id":"71eabe9b.2eb27","type":"set","name":"set ss.param.vnfc-name, index","xml":"<set>\n<parameter name='ss.param.vnfc-name' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.vnfc-name-index' value='`$bidx`' />","comments":"","x":2678.3453636169434,"y":667.416672706604,"z":"8068ded9.ccc26","wires":[]},{"id":"87beb09a.09ea7","type":"comment","name":"vf-module params","info":"","comments":"","x":1945.9046783447266,"y":543.9523286819458,"z":"8068ded9.ccc26","wires":[]},{"id":"22799e1.3c96862","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to get vf-module in AnAI with vf-module-id = ' + $ss.param.vf-module-id + '; ' + $error-message`\" />\n","comments":"","x":2223.869354248047,"y":3399.0717306137085,"z":"8068ded9.ccc26","wires":[]},{"id":"3a7cd486.8bb8bc","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2027.5361137390137,"y":3363.5717878341675,"z":"8068ded9.ccc26","wires":[["22799e1.3c96862","e9ef052a.050278"]]},{"id":"946f5847.827928","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2027.7860946655273,"y":3419.0717668533325,"z":"8068ded9.ccc26","wires":[["b02b7bf8.605ee8","e9ef052a.050278"]]},{"id":"2f247634.a3188a","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf update in AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6507.191570281982,"y":3155.7631006240845,"z":"8068ded9.ccc26","wires":[]},{"id":"d35c334f.7cfba","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf update because generic-vnf with vnf-id=' + $ss.param.vnf-id + ' is not found in AAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6509.691570281982,"y":3207.013102531433,"z":"8068ded9.ccc26","wires":[]},{"id":"16cfd259.a82d8e","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of generic-vnf update completed. '`\" />\n","comments":"","x":6512.191570281982,"y":3256.0131006240845,"z":"8068ded9.ccc26","wires":[]},{"id":"fb61694.f0eee98","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update vf-module-name with vf-module-id = ' + $ss.param.vf-module-id + ' in AnAI; ' + $error-message`\" />\n","comments":"","x":2263.631217956543,"y":3588.881335258484,"z":"8068ded9.ccc26","wires":[]},{"id":"8d0b8b24.ceee48","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update vf-module-name with vf-module-id =' + $ss.param.vf-module-id + ' because vf-module is not found in AAI' + $error-message`\" />\n","comments":"","x":2264.881217956543,"y":3639.6313371658325,"z":"8068ded9.ccc26","wires":[]},{"id":"c1b8579b.771458","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to update volume-group with volume-group-id =' + $ss.param.volume-group-id + ' and volume-group-name = ' + $ss.param.volume-group-name + ' in AnAI.' + $error-message`\" />\n","comments":"","x":2271.4525833129883,"y":4009.0239968299866,"z":"8068ded9.ccc26","wires":[]},{"id":"dfd2d7b3.3404f8","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback volume-group with volume-group-id = ' + $ss.param.volume-group-id + ' in AnAI. MANUAL ROLLBACK IS REQUIRED!'`\" />\n","comments":"","x":6332.679847717285,"y":3499.215039253235,"z":"8068ded9.ccc26","wires":[]},{"id":"c4a7132d.b535c","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback vf-module update with vf-module-id=' + $ss.param.vf-module-id + ' because vf-module not found in AAI. MANUAL ROLLBACK IS REQUIRED!'`\" />\n","comments":"","x":6351.679847717285,"y":3541.715039253235,"z":"8068ded9.ccc26","wires":[]},{"id":"c5a30c47.4e84c","type":"record","name":"record generic-vnf ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK generic-vnf update\"/>","comments":"","outputs":1,"x":6091.691570281982,"y":3066.013101577759,"z":"8068ded9.ccc26","wires":[[]]},{"id":"68e7f351.24dd5c","type":"record","name":"record vf-module ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK vf-module update\"/>","comments":"","outputs":1,"x":5920.929847717285,"y":3455.7150382995605,"z":"8068ded9.ccc26","wires":[[]]},{"id":"3d611339.da18cc","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":5676.929817199707,"y":3455.965012550354,"z":"8068ded9.ccc26","wires":[["68e7f351.24dd5c","d11853ad.952b6"]]},{"id":"a9be3e4a.97414","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of vf-module update completed.'`\" />\n","comments":"","x":6339.42985534668,"y":3585.2150373458862,"z":"8068ded9.ccc26","wires":[]},{"id":"e4fa8909.4dd298","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5951.6198387146,"y":3776.524684906006,"z":"8068ded9.ccc26","wires":[["599748a7.318d38"]]},{"id":"e6cf9e60.36c21","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5959.869850158691,"y":3819.2747192382812,"z":"8068ded9.ccc26","wires":[["f362ddc.8a3be2"]]},{"id":"1a42d1bd.7e06ae","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5956.6910972595215,"y":3862.536289215088,"z":"8068ded9.ccc26","wires":[["a0127c63.8e7e9"]]},{"id":"599748a7.318d38","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to UPDATE volume-group with volume-group-id=' + $ss.param.volume-group-id + ' from AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6133.048320770264,"y":3775.9890937805176,"z":"8068ded9.ccc26","wires":[]},{"id":"f362ddc.8a3be2","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' volume-group with volume-group-id = ' + $ss.param.volume-group-id + ' not found in AAI. Consider silent success!'`\" />\n","comments":"","x":6152.048320770264,"y":3819.4890937805176,"z":"8068ded9.ccc26","wires":[]},{"id":"eb495056.566df","type":"record","name":"record volume-group ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK volume-group update\"/>","comments":"","outputs":1,"x":5783.298320770264,"y":3732.4890928268433,"z":"8068ded9.ccc26","wires":[[]]},{"id":"5688630b.c730bc","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":5528.298290252686,"y":3732.7390670776367,"z":"8068ded9.ccc26","wires":[["eb495056.566df","fd633781.1bf9c8"]]},{"id":"a0127c63.8e7e9","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of volume_group completed.'`\" />\n","comments":"","x":6139.798328399658,"y":3862.989091873169,"z":"8068ded9.ccc26","wires":[]},{"id":"6e76a93a.5e0588","type":"save","name":"save VNFC","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vnfc\"\n\t\tkey=\"vnfc.vnfc-name = $ss.param.vnfc-name\" >\n<parameter name=\"nfc-naming-code\" value='`$ss.param.nfc-naming-code`' />\n<parameter name=\"nfc-function\" value='`$ss.param.nfc-function`' />\n<parameter name=\"model-customization-id\" value='`$ss.param.vnfc-model-customization-uuid`' />\n<parameter name=\"model-invariant-id\" value='`$ss.param.vnfc-model-invariant-uuid`' />\n<parameter name=\"model-version-id\" value='`$ss.param.vnfc-model-version`' />\n","comments":"","outputs":1,"x":1367.1668243408203,"y":4289.833667755127,"z":"8068ded9.ccc26","wires":[["d8805021.0b8d1","1a8d278c.ff1d48"]]},{"id":"d8805021.0b8d1","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1556.1668243408203,"y":4289.833667755127,"z":"8068ded9.ccc26","wires":[["95d6f18e.5f4b6"]]},{"id":"95d6f18e.5f4b6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1758.9168167114258,"y":4289.833641052246,"z":"8068ded9.ccc26","wires":[["6b1f5790.4f6e98","4c4f8f77.4d5e8"]]},{"id":"6b1f5790.4f6e98","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create vnfc with vnfc-name =' + $ss.param.vnfc-name + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":1969.9526290893555,"y":4333.024550437927,"z":"8068ded9.ccc26","wires":[]},{"id":"a48e88aa.092058","type":"save","name":"delete vnfc","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vnfc\"\n\t\tkey=\"vnfc.vnfc-name = $ss.param.vnfc-name\" >","comments":"","outputs":1,"x":5535.810607910156,"y":4058.9404010772705,"z":"8068ded9.ccc26","wires":[["59027b46.55df94","f9986c81.947e2","e0dbfb82.72b598"]]},{"id":"59027b46.55df94","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5742.881973266602,"y":4059.4161376953125,"z":"8068ded9.ccc26","wires":[["6a891b2f.3bef34"]]},{"id":"f9986c81.947e2","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5751.131984710693,"y":4102.166172027588,"z":"8068ded9.ccc26","wires":[["56f5e4c5.27919c"]]},{"id":"e0dbfb82.72b598","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5747.953231811523,"y":4145.4277420043945,"z":"8068ded9.ccc26","wires":[["f4aa6356.d4417"]]},{"id":"d76a7da6.218ec","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to delete vnfc with vnfc-name=' + $ss.param.vnfc-name + ' from AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6180.310455322266,"y":4058.880546569824,"z":"8068ded9.ccc26","wires":[]},{"id":"56f5e4c5.27919c","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' vnfc with vnfc-name=' + $ss.param.vnfc-name + ' not found in AAI. Consider silent success!'`\" />\n","comments":"","x":5943.310455322266,"y":4102.380546569824,"z":"8068ded9.ccc26","wires":[]},{"id":"eac4f91c.88d308","type":"record","name":"record vnfc ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK vnfc save\"/>","comments":"","outputs":1,"x":5573.560455322266,"y":4010.38054561615,"z":"8068ded9.ccc26","wires":[[]]},{"id":"35fbb6bd.1fe98a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":5330.560405731201,"y":4010.0591592788696,"z":"8068ded9.ccc26","wires":[["eac4f91c.88d308","a48e88aa.092058"]]},{"id":"f4aa6356.d4417","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback (delete) of vnfc with vnfc-name=' + $ss.param.vnfc-name + ' completed.'`\" />\n","comments":"","x":5931.06046295166,"y":4145.880544662476,"z":"8068ded9.ccc26","wires":[]},{"id":"507e9295.282f3c","type":"save","name":"save connection-point","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"cp\"\n\t\tkey=\"cp.cp-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.connection-point-id \n\t\tAND vnfc.vnfc-name = $ss.param.vnfc-name\" >\n<parameter name=\"cp-instance-id\" \n\tvalue='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.connection-point-id`' />","comments":"","outputs":1,"x":1392.6549758911133,"y":4722.262181758881,"z":"8068ded9.ccc26","wires":[["8ed5705c.d927b","97aa540.9690fb","bd216744.2e7838"]]},{"id":"8ed5705c.d927b","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1613.6549758911133,"y":4722.262181758881,"z":"8068ded9.ccc26","wires":[["f28efc5d.8666"]]},{"id":"f28efc5d.8666","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1807.4049682617188,"y":4722.262155056,"z":"8068ded9.ccc26","wires":[["faf8768d.f51cd8","f742ee1.12f671"]]},{"id":"faf8768d.f51cd8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create connection-point with cp-instance-id =' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.connection-point-id + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":1991.5836181640625,"y":4722.595781803131,"z":"8068ded9.ccc26","wires":[]},{"id":"b7dc825b.8fad","type":"for","name":"for i in vnfc-network-data_length","xml":"<for silentFailure='true' index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data_length`' >\n","comments":"","outputs":1,"x":1111.3691940307617,"y":4721.762137889862,"z":"8068ded9.ccc26","wires":[["507e9295.282f3c"]]},{"id":"896eec17.9592f","type":"save","name":"save vlan-tag","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vlan-tag\"\n\t\tkey=\"vlan-tag.vlan-tag-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid\" >\n<parameter name=\"vlan-tag-id\" \n\tvalue='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid`' />\n<parameter name=\"vlan-tag-role\" \n\tvalue='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-tag-description`' />\n<parameter name=\"vlan-id-outer\" \n\tvalue='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-tag-id`' />\n","comments":"","outputs":1,"x":2053.964241027832,"y":4818.345309019089,"z":"8068ded9.ccc26","wires":[["90f51779.f5ecd8","c0d3b01c.95c65","d246ced9.39264"]]},{"id":"90f51779.f5ecd8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2245.9643630981445,"y":4970.012247085571,"z":"8068ded9.ccc26","wires":[["1a95aa75.a66626"]]},{"id":"1a95aa75.a66626","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2437.71435546875,"y":4970.01222038269,"z":"8068ded9.ccc26","wires":[["8c5a2a75.a586c8","42ba330d.da466c"]]},{"id":"8c5a2a75.a586c8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create vlan-tag with vlan-tag-id =' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":2617.8930053710938,"y":4970.345847129822,"z":"8068ded9.ccc26","wires":[]},{"id":"4fa2d7bb.85da48","type":"save","name":"save l-interface","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"l-interface\"\n\t\tkey=\"l-interface.interface-name = $ss.param.oam-interface-name\n\t\tAND generic-vnf.vnf-id = $ss.param.vnf-id\" >\n<parameter name=\"interface-name\" value='`$ss.param.oam-interface-name`' />\n<parameter name=\"interface-role\" value='OAM' />\n","comments":"","outputs":1,"x":2010.8334274291992,"y":5397.713664054871,"z":"8068ded9.ccc26","wires":[["224508bf.eb67c8","3ac567fb.ca3628"]]},{"id":"224508bf.eb67c8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2183.833427429199,"y":5397.713664054871,"z":"8068ded9.ccc26","wires":[["438d491f.6bf318"]]},{"id":"438d491f.6bf318","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2353.5834197998047,"y":5397.71363735199,"z":"8068ded9.ccc26","wires":[["1dcac7c7.528ac8","42ba330d.da466c"]]},{"id":"1dcac7c7.528ac8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create l-interface with interface-name = ' + $ss.param.oam-interface-name + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":2537.7620697021484,"y":5398.047264099121,"z":"8068ded9.ccc26","wires":[]},{"id":"8b4528ae.6e6858","type":"for","name":"for j in in vlan-data_length","xml":"<for silentFailure='true' index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data_length`' >\n","comments":"","outputs":1,"x":1831.9284744262695,"y":4818.095413923264,"z":"8068ded9.ccc26","wires":[["896eec17.9592f"]]},{"id":"97aa540.9690fb","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1622.1192169189453,"y":4767.762180805206,"z":"8068ded9.ccc26","wires":[["f28efc5d.8666"]]},{"id":"9d96ee38.6074","type":"save","name":"delete vlan-tag","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vlan-tag\"\n\t\tkey=\"vlan-tag.vlan-tag-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid\" >","comments":"","outputs":1,"x":5547.858245849609,"y":4404.714177131653,"z":"8068ded9.ccc26","wires":[["7d9dc434.97b09c","dffb9406.38c898","9773800c.66ae6"]]},{"id":"7d9dc434.97b09c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5754.929611206055,"y":4405.189913749695,"z":"8068ded9.ccc26","wires":[["395726ee.6fab7a"]]},{"id":"dffb9406.38c898","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5763.1796226501465,"y":4447.93994808197,"z":"8068ded9.ccc26","wires":[["b21b98a6.1ff6e8"]]},{"id":"9773800c.66ae6","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5760.000869750977,"y":4491.201518058777,"z":"8068ded9.ccc26","wires":[["386810b6.14634"]]},{"id":"f8e8b37a.dee57","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to delete vlan-tag with vlan-tag-id =' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid + ' from AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6193.02498626709,"y":4403.987699985504,"z":"8068ded9.ccc26","wires":[]},{"id":"b21b98a6.1ff6e8","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' vlan-tag with vlan-tag-id =' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid + ' not found in AAI. Consider silent success!'`\" />\n","comments":"","x":5955.358093261719,"y":4448.1543226242065,"z":"8068ded9.ccc26","wires":[]},{"id":"a26d40b4.008af","type":"record","name":"record vlan-tag ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK vlan-tag save\"/>","comments":"","outputs":1,"x":5008.322776794434,"y":4355.43992805481,"z":"8068ded9.ccc26","wires":[[]]},{"id":"470ddb4b.ffbda4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":4746.3227462768555,"y":4355.689902305603,"z":"8068ded9.ccc26","wires":[["a26d40b4.008af","c9166e05.d9ebc"]]},{"id":"386810b6.14634","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback (delete) of vlan-tag with vlan-tag-id =' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid + ' completed.'`\" />\n","comments":"","x":5943.108100891113,"y":4491.654320716858,"z":"8068ded9.ccc26","wires":[]},{"id":"f488880c.8a9458","type":"comment","name":"Deleting vnfc will delete connection-point (cp)","info":"","comments":"","x":1916.6429901123047,"y":4669.309711933136,"z":"8068ded9.ccc26","wires":[]},{"id":"c0d3b01c.95c65","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2254.285804748535,"y":5016.333622932434,"z":"8068ded9.ccc26","wires":[["1a95aa75.a66626"]]},{"id":"c9166e05.d9ebc","type":"for","name":"for i in vnfc-network-data_len","xml":"<for silentFailure='true' index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data_length`' >\n","comments":"","outputs":1,"x":5013.429954528809,"y":4405.285639762878,"z":"8068ded9.ccc26","wires":[["6be8fd40.579294"]]},{"id":"6be8fd40.579294","type":"for","name":"for j in in vlan-data_length","xml":"<for silentFailure='true' index='j' start='0' end='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data_length`' >\n","comments":"","outputs":1,"x":5309.858543395996,"y":4405.142817497253,"z":"8068ded9.ccc26","wires":[["9d96ee38.6074"]]},{"id":"2f9cf95b.a79726","type":"save","name":"save cp relationship","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vlan-tag:relationship-list\"\n\t\tkey=\"vlan-tag.vlan-tag-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"cp\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`$ss.cp.related-link`\" />","comments":"","outputs":1,"x":2627.2376022338867,"y":4866.238368272781,"z":"8068ded9.ccc26","wires":[["6ec967b.2c20298","11ee6506.d86e0b"]]},{"id":"6ec967b.2c20298","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2836.5233764648438,"y":4865.809748888016,"z":"8068ded9.ccc26","wires":[["a92d33a0.72b72"]]},{"id":"a92d33a0.72b72","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3028.5589179992676,"y":4865.809715509415,"z":"8068ded9.ccc26","wires":[["c5386653.0ce498","42ba330d.da466c"]]},{"id":"c5386653.0ce498","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create cp relationship for vlan-tag with vlan-tag-id =' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":3208.7375679016113,"y":4866.143342256546,"z":"8068ded9.ccc26","wires":[]},{"id":"bd216744.2e7838","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1618.9524230957031,"y":4818.1908004283905,"z":"8068ded9.ccc26","wires":[["8b4528ae.6e6858"]]},{"id":"a7a813a9.685fe","type":"outcome","name":"oam-interface-name","xml":"<outcome value='oam-interface-name'>","comments":"","outputs":1,"x":2343.238121032715,"y":709.476101398468,"z":"8068ded9.ccc26","wires":[["82258c34.cd46e"]]},{"id":"82258c34.cd46e","type":"set","name":"set ss.param.oam-interface-name, index","xml":"<set>\n<parameter name='ss.param.oam-interface-name' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.oam-interface-name-index' value='`$bidx`' />","comments":"","x":2706.3453483581543,"y":710.2261743545532,"z":"8068ded9.ccc26","wires":[]},{"id":"4a38191a.665008","type":"outcome","name":"lo0-interface-name","xml":"<outcome value='=âlo0-interface-name'>","comments":"","outputs":1,"x":2339.952323913574,"y":752.19047498703,"z":"8068ded9.ccc26","wires":[["d1e11e09.3c6"]]},{"id":"d1e11e09.3c6","type":"set","name":"set ss.param.lo0-interface-name, index","xml":"<set>\n<parameter name='ss.param.lo0-interface-name' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.lo0-interface-name-index' value='`$bidx`' />","comments":"","x":2701.0595512390137,"y":752.9405479431152,"z":"8068ded9.ccc26","wires":[]},{"id":"4c4f8f77.4d5e8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4858.048778533936,"y":3553.6912155151367,"z":"8068ded9.ccc26","wires":[["1dadc5fe.f7b3aa","5baa82ec.dffecc"]]},{"id":"f742ee1.12f671","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":4703.0722579956055,"y":3806.166953086853,"z":"8068ded9.ccc26","wires":[["4c4f8f77.4d5e8","b6293e2c.6351f"]]},{"id":"42ba330d.da466c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4545.6201095581055,"y":4096.262167930603,"z":"8068ded9.ccc26","wires":[["f742ee1.12f671","470ddb4b.ffbda4"]]},{"id":"d246ced9.39264","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2244.618579864502,"y":4818.047558784485,"z":"8068ded9.ccc26","wires":[["998e8a86.fc6368"]]},{"id":"75214bc4.1bbaa4","type":"switchNode","name":"switch: ss.param.oam-interface-name != NULL","xml":"<switch test=\"`$ss.param.oam-interface-name != ''`\">\n","comments":"","outputs":1,"x":1358.1906280517578,"y":5397.285633087158,"z":"8068ded9.ccc26","wires":[["ccf9556c.f89178"]]},{"id":"ccf9556c.f89178","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":1621.1906509399414,"y":5397.785631656647,"z":"8068ded9.ccc26","wires":[["e90d4fd9.29402"]]},{"id":"c64f4bcd.8c05f8","type":"save","name":"save l-interface","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"l-interface\"\n\t\tkey=\"l-interface.interface-name = $ss.param.lo0-interface-name\n\t\tAND generic-vnf.vnf-id = $ss.param.vnf-id\" >\n<parameter name=\"interface-name\" value='`$ss.param.lo0-interface-name`' />\n<parameter name=\"interface-role\" value='loopback' />\n","comments":"","outputs":1,"x":1990.7620086669922,"y":5735.571220397949,"z":"8068ded9.ccc26","wires":[["4e5bd967.48b608","3510ef13.90d34"]]},{"id":"4e5bd967.48b608","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2163.762008666992,"y":5735.571220397949,"z":"8068ded9.ccc26","wires":[["c67b407c.73c1a"]]},{"id":"c67b407c.73c1a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2333.5120010375977,"y":5735.571193695068,"z":"8068ded9.ccc26","wires":[["f0cb5410.f03658","75ee05f7.6473bc"]]},{"id":"f0cb5410.f03658","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create l-interface with interface-name = ' + $ss.param.lo0-interface-name + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":2517.6906509399414,"y":5735.9048204422,"z":"8068ded9.ccc26","wires":[]},{"id":"3d7d185.baa90e8","type":"switchNode","name":"switch: ss.param.lo0-interface-name != NULL","xml":"<switch test=\"`$ss.param.lo0-interface-name != ''`\">\n","comments":"","outputs":1,"x":1335.5476608276367,"y":5735.571606636047,"z":"8068ded9.ccc26","wires":[["9e2c16cf.876d78"]]},{"id":"9e2c16cf.876d78","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":1598.5476837158203,"y":5736.071605205536,"z":"8068ded9.ccc26","wires":[["4852b9cd.b1f178"]]},{"id":"dbc07084.be7f5","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1060.9048385620117,"y":5397.714184761047,"z":"8068ded9.ccc26","wires":[["75214bc4.1bbaa4","3d7d185.baa90e8"]]},{"id":"68af07a3.16ce88","type":"outcome","name":"ipv4-oam-address","xml":"<outcome value='ipv4-oam-address'>","comments":"","outputs":1,"x":2335.7143173217773,"y":796.3809504508972,"z":"8068ded9.ccc26","wires":[["999cc01d.893d6"]]},{"id":"999cc01d.893d6","type":"set","name":"set ss.param.ipv4-oam-address, index","xml":"<set>\n<parameter name='ss.param.ipv4-oam-address' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.ipv4-oam-address-index' value='`$bidx`' />","comments":"","x":2699.678642272949,"y":797.1309986114502,"z":"8068ded9.ccc26","wires":[]},{"id":"10ef55c1.e5abda","type":"outcome","name":"loopback0_ipv4_address","xml":"<outcome value='loopback0_ipv4_address'>","comments":"","outputs":1,"x":2358.1428451538086,"y":880.6666750907898,"z":"8068ded9.ccc26","wires":[["2d6cf27a.9e02fe"]]},{"id":"2d6cf27a.9e02fe","type":"set","name":"set ss.param.loopback0-ipv4-address, index","xml":"<set>\n<parameter name='ss.param.loopback0-ipv4-address' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.loopback0-ipv4-address-index' value='`$bidx`' />","comments":"","x":2719.3930130004883,"y":880.2738108634949,"z":"8068ded9.ccc26","wires":[]},{"id":"ae3cb914.642ab8","type":"save","name":"delete l-interface (oam)","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"l-interface\"\n\t\tkey=\"l-interface.interface-name = $ss.param.oam-interface-name\n\t\tAND generic-vnf.vnf-id = $ss.param.vnf-id\" >","comments":"","outputs":1,"x":5804.525096893311,"y":4807.285605430603,"z":"8068ded9.ccc26","wires":[["88e8efea.35169","99eafa73.541068","3d9cbb53.db7764"]]},{"id":"88e8efea.35169","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":6012.596462249756,"y":4807.761342048645,"z":"8068ded9.ccc26","wires":[["ba1b62f2.0c98"]]},{"id":"99eafa73.541068","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":6020.846473693848,"y":4850.51137638092,"z":"8068ded9.ccc26","wires":[["46d515d3.0378ac"]]},{"id":"3d9cbb53.db7764","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":6017.667720794678,"y":4893.772946357727,"z":"8068ded9.ccc26","wires":[["f05862ba.8abb5"]]},{"id":"8c6a392a.c8ded8","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to delete l-interface.interface-name = ' + $ss.param.oam-interface-name + ' from AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6455.692127227783,"y":4808.225975036621,"z":"8068ded9.ccc26","wires":[]},{"id":"46d515d3.0378ac","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' l-interface.interface-name = ' + $ss.param.oam-interface-name + ' not found in AAI. Consider silent success!'`\" />\n","comments":"","x":6213.02494430542,"y":4850.725750923157,"z":"8068ded9.ccc26","wires":[]},{"id":"cf73d4b9.868fc8","type":"record","name":"record OAM l-interface ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK l-interface (oam) save\"/>","comments":"","outputs":1,"x":5321.274875640869,"y":4758.868654251099,"z":"8068ded9.ccc26","wires":[[]]},{"id":"5de01092.e1692","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":5061.274826049805,"y":4758.547267913818,"z":"8068ded9.ccc26","wires":[["cf73d4b9.868fc8","8981860f.667448"]]},{"id":"f05862ba.8abb5","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback (delete) of l-interface with interface-name = ' + $ss.param.oam-interface-name + ' completed.'`\" />\n","comments":"","x":6200.774951934814,"y":4894.225749015808,"z":"8068ded9.ccc26","wires":[]},{"id":"8981860f.667448","type":"switchNode","name":"switch: ss.param.oam-interface-name != NULL","xml":"<switch test=\"`$ss.param.oam-interface-name != ''`\">\n","comments":"","outputs":1,"x":5356.525089263916,"y":4808.142771720886,"z":"8068ded9.ccc26","wires":[["48c1dee3.50f7f"]]},{"id":"48c1dee3.50f7f","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":5615.382266998291,"y":4807.142771720886,"z":"8068ded9.ccc26","wires":[["ae3cb914.642ab8"]]},{"id":"6fca57ea.3397e8","type":"save","name":"delete l-interface (oam)","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"l-interface\"\n\t\tkey=\"l-interface.interface-name = $ss.param.lo0-interface-name\n\t\tAND generic-vnf.vnf-id = $ss.param.vnf-id\" >","comments":"","outputs":1,"x":5709.619335174561,"y":5214.714804649353,"z":"8068ded9.ccc26","wires":[["3fbb9856.3afac8","21a87462.f4342c","d4c7d7a5.d0fbd8"]]},{"id":"3fbb9856.3afac8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5917.690700531006,"y":5215.190541267395,"z":"8068ded9.ccc26","wires":[["e857a6e0.098918"]]},{"id":"21a87462.f4342c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5925.940711975098,"y":5257.94057559967,"z":"8068ded9.ccc26","wires":[["cc064c02.22a01"]]},{"id":"d4c7d7a5.d0fbd8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5922.761959075928,"y":5301.202145576477,"z":"8068ded9.ccc26","wires":[["1e79dbee.93e174"]]},{"id":"9c8d41ed.27a7c","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to delete l-interface.interface-name = ' + $ss.param.lo0-interface-name + ' from AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6372.4523277282715,"y":5213.321630477905,"z":"8068ded9.ccc26","wires":[]},{"id":"cc064c02.22a01","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' l-interface.interface-name = ' + $ss.param.lo0-interface-name + ' not found in AAI. Consider silent success!'`\" />\n","comments":"","x":6118.11918258667,"y":5258.154950141907,"z":"8068ded9.ccc26","wires":[]},{"id":"a5d6d0ff.1e13d","type":"record","name":"record LOOPBACK l-interface ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK l-interface (oam) save\"/>","comments":"","outputs":1,"x":5250.369113922119,"y":5166.297853469849,"z":"8068ded9.ccc26","wires":[[]]},{"id":"3199093e.07e6f6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":4966.369064331055,"y":5165.976467132568,"z":"8068ded9.ccc26","wires":[["a5d6d0ff.1e13d","3475a838.9659a8"]]},{"id":"1e79dbee.93e174","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback (delete) of l-interface with interface-name = ' + $ss.param.lo0-interface-name + ' completed.'`\" />\n","comments":"","x":6105.869190216064,"y":5301.654948234558,"z":"8068ded9.ccc26","wires":[]},{"id":"b614f632.2d7158","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":5520.476505279541,"y":5214.571970939636,"z":"8068ded9.ccc26","wires":[["6fca57ea.3397e8"]]},{"id":"3475a838.9659a8","type":"switchNode","name":"switch: ss.param.lo0-interface-name != NULL","xml":"<switch test=\"`$ss.param.lo0-interface-name != ''`\">\n","comments":"","outputs":1,"x":5259.619167327881,"y":5215.14351940155,"z":"8068ded9.ccc26","wires":[["b614f632.2d7158"]]},{"id":"75ee05f7.6473bc","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4416.81022644043,"y":4415.476540565491,"z":"8068ded9.ccc26","wires":[["42ba330d.da466c","47592f63.65ff8"]]},{"id":"3ac567fb.ca3628","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2191.9047927856445,"y":5439.999988555908,"z":"8068ded9.ccc26","wires":[["438d491f.6bf318"]]},{"id":"3510ef13.90d34","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2170.7619094848633,"y":5778.142643928528,"z":"8068ded9.ccc26","wires":[["c67b407c.73c1a"]]},{"id":"5713a33e.10386c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4285.38126373291,"y":4891.666825294495,"z":"8068ded9.ccc26","wires":[["75ee05f7.6473bc","16cd30f3.c7e79f"]]},{"id":"91d6d0e4.e2cc2","type":"outcome","name":"ipv4-oam-address-prefix","xml":"<outcome value='ipv4-oam-address-prefix'>","comments":"","outputs":1,"x":2355.7143173217773,"y":838.3810153007507,"z":"8068ded9.ccc26","wires":[["8eb30e9d.19d4b"]]},{"id":"8eb30e9d.19d4b","type":"set","name":"set ss.param.ipv4-oam-address-prefix, index","xml":"<set>\n<parameter name='ss.param.ipv4-oam-address-prefix' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.ipv4-oam-address-prefix-index' value='`$bidx`' />","comments":"","x":2718.3928871154785,"y":838.5596051216125,"z":"8068ded9.ccc26","wires":[]},{"id":"e90d4fd9.29402","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1781.0476303100586,"y":5397.285304069519,"z":"8068ded9.ccc26","wires":[["4fa2d7bb.85da48","f10bbb20.7f4fc8"]]},{"id":"4852b9cd.b1f178","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1760.1904983520508,"y":5736.142643928528,"z":"8068ded9.ccc26","wires":[["c64f4bcd.8c05f8","e8551427.6b64e8"]]},{"id":"f10bbb20.7f4fc8","type":"save","name":"save l3-interface-ipv4-address","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"l3-interface-ipv4-address-list\"\n\t\tkey=\"l3-interface-ipv4-address-list.l3-interface-ipv4-address = $ss.param.ipv4-oam-address \n\t\tAND generic-vnf.vnf-id = $ss.param.vnf-id \n\t\tAND l-interface.interface-name = $ss.param.oam-interface-name\" >\n<parameter name=\"l3-interface-ipv4-address\" value='`$ss.param.ipv4-oam-address`' />\n<parameter name=\"l3-interface-ipv4-prefix-length\" value='`$ss.param.ipv4-oam-address-prefix`' />\n","comments":"","outputs":1,"x":2057.619125366211,"y":5542.999936103821,"z":"8068ded9.ccc26","wires":[["a8aab5fb.8eca68","93c4ee1c.dd6d6"]]},{"id":"a8aab5fb.8eca68","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2278.619125366211,"y":5542.999936103821,"z":"8068ded9.ccc26","wires":[["402e134b.ab039c"]]},{"id":"402e134b.ab039c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2448.3691177368164,"y":5542.99990940094,"z":"8068ded9.ccc26","wires":[["c292c4a4.2a1388","75ee05f7.6473bc"]]},{"id":"c292c4a4.2a1388","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create l3-interface-ipv4-address-list with l3-interface-ipv4-address = ' + $ss.param.ipv4-oam-address + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":2632.54776763916,"y":5543.333536148071,"z":"8068ded9.ccc26","wires":[]},{"id":"93c4ee1c.dd6d6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2286.6904907226562,"y":5585.286260604858,"z":"8068ded9.ccc26","wires":[["402e134b.ab039c"]]},{"id":"e8551427.6b64e8","type":"save","name":"save l3-interface-ipv4-address","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"l3-interface-ipv4-address-list\"\n\t\tkey=\"l3-interface-ipv4-address-list.l3-interface-ipv4-address = $ss.param.ipv4-loopback0-address \n\t\tAND generic-vnf.vnf-id = $ss.param.vnf-id \n\t\tAND l-interface.interface-name = $ss.param.lo0-interface-name\" >\n<parameter name=\"l3-interface-ipv4-address\" value='`$ss.param.ipv4-loopback0-address`' />\n<parameter name=\"l3-interface-ipv4-prefix-length\" value='32' />\n","comments":"","outputs":1,"x":2034.6191024780273,"y":5852.713961601257,"z":"8068ded9.ccc26","wires":[["2cfc8fb5.b92c4","a3b0bac1.66c468"]]},{"id":"2cfc8fb5.b92c4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2255.6191024780273,"y":5852.713961601257,"z":"8068ded9.ccc26","wires":[["7b9df773.727b78"]]},{"id":"7b9df773.727b78","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2425.369094848633,"y":5852.7139348983765,"z":"8068ded9.ccc26","wires":[["7a983387.d8620c","5713a33e.10386c"]]},{"id":"7a983387.d8620c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create l3-interface-ipv4-address-list with l3-interface-ipv4-address = ' + $ss.param.loopback0-ipv4-address + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":2609.5477447509766,"y":5853.047561645508,"z":"8068ded9.ccc26","wires":[]},{"id":"a3b0bac1.66c468","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2263.6904678344727,"y":5895.000286102295,"z":"8068ded9.ccc26","wires":[["7b9df773.727b78"]]},{"id":"1bae6e26.b48422","type":"comment","name":"Delete l-interface will delete l3-interface-ipv4-address-list","info":"","comments":"","x":4662.333908081055,"y":4894.429103851318,"z":"8068ded9.ccc26","wires":[]},{"id":"930c302f.87d9a","type":"execute","name":"param[].name startsWith 'sriov'","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='startsWith' emitsOutcome='true' >\n <parameter name=\"source\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].name`\" />\n\t<parameter name=\"target\" value=\"sriov\"/>\n","comments":"","outputs":1,"x":1611.0475387573242,"y":360.666711807251,"z":"8068ded9.ccc26","wires":[["d36b238f.c2eeb","136cf5dd.278b9a"]]},{"id":"d36b238f.c2eeb","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1821.2975387573242,"y":360.916711807251,"z":"8068ded9.ccc26","wires":[["71ba3468.524d5c"]]},{"id":"71ba3468.524d5c","type":"execute","name":"param[].name endsWith 'sriov'","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='endsWith' emitsOutcome='true' >\n <parameter name=\"source\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].name`\" />\n\t<parameter name=\"target\" value=\"_net_id\"/>\n","comments":"","outputs":1,"x":2038.1903686523438,"y":360.6667175292969,"z":"8068ded9.ccc26","wires":[["f28d4124.551b2"]]},{"id":"f28d4124.551b2","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2248.1902389526367,"y":360.2381229400635,"z":"8068ded9.ccc26","wires":[["892a94df.748008"]]},{"id":"b1277757.3b3778","type":"set","name":"set ss.network[$nidx].netid","xml":"<set>\n<parameter name='ss.network[$nidx].netid' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n","comments":"","x":2599.618574142456,"y":359.66666984558105,"z":"8068ded9.ccc26","wires":[]},{"id":"8447582e.713cf8","type":"set","name":"nidx++","xml":"<set>\n<parameter name='nidx' value='`$nidx + 1`' />\n","comments":"","x":2539.618682861328,"y":403.09529304504395,"z":"8068ded9.ccc26","wires":[]},{"id":"823c2354.c6c5","type":"set","name":"set nidx = 0","xml":"<set>\n<parameter name='nidx' value='0' />\n","comments":"","x":1208.190185546875,"y":277.2380828857422,"z":"8068ded9.ccc26","wires":[]},{"id":"892a94df.748008","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2386.761890411377,"y":360.52386569976807,"z":"8068ded9.ccc26","wires":[["b1277757.3b3778","8447582e.713cf8"]]},{"id":"136cf5dd.278b9a","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1822.4762840270996,"y":403.80954360961914,"z":"8068ded9.ccc26","wires":[["a1dc9b53.b001a8"]]},{"id":"b307f248.13b72","type":"for","name":"for n in nidx","xml":"<for silentFailure='true' index='n' start='0' end='`$nidx`' >\n","comments":"","outputs":1,"x":1454.952407836914,"y":6171.667496681213,"z":"8068ded9.ccc26","wires":[["2dbbe18d.9f749e"]]},{"id":"4933575b.c49bc8","type":"save","name":"save l3-network relationships for VNF","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf:relationship-list\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`$ss.l3-network.related-link`\" />\n<!--\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$ss.network[$n].netid`\" />\n-->","comments":"","outputs":1,"x":1898.1426467895508,"y":6219.333839416504,"z":"8068ded9.ccc26","wires":[["5f1ee172.8d495","f18a8eef.b86b4"]]},{"id":"11ee6506.d86e0b","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2845.761329650879,"y":4910.857924699783,"z":"8068ded9.ccc26","wires":[["a92d33a0.72b72"]]},{"id":"5f1ee172.8d495","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2173.857063293457,"y":6220.048072814941,"z":"8068ded9.ccc26","wires":[["61369a55.267e34"]]},{"id":"61369a55.267e34","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2370.6070556640625,"y":6220.048046112061,"z":"8068ded9.ccc26","wires":[["b7e15b92.6b9328","a7686c4c.48a2b"]]},{"id":"b7e15b92.6b9328","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create generic-vnf releationship for l3-network with network-id =' + $ss.network[$n].netid + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":2550.7857055664062,"y":6220.381672859192,"z":"8068ded9.ccc26","wires":[]},{"id":"f18a8eef.b86b4","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2183.095016479492,"y":6265.096248626709,"z":"8068ded9.ccc26","wires":[["61369a55.267e34"]]},{"id":"48809820.da73e8","type":"save","name":"delete VNF l3-network relationships","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf:relationship-list\" \n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \n\t\tAND related-to = l3-network \n\t\tAND relationship.related-link = $tmp.related-link\" >","comments":"","outputs":1,"x":5329.524971008301,"y":5635.285350322723,"z":"8068ded9.ccc26","wires":[["88a59c9a.2b00b","de38bac1.0b21e8","71f6c03f.9af32"]]},{"id":"88a59c9a.2b00b","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5592.596336364746,"y":5635.761086940765,"z":"8068ded9.ccc26","wires":[["7d871113.d9d1b"]]},{"id":"de38bac1.0b21e8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5600.846347808838,"y":5678.511121273041,"z":"8068ded9.ccc26","wires":[["ea95c949.66b368"]]},{"id":"71f6c03f.9af32","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5597.667594909668,"y":5721.772691249847,"z":"8068ded9.ccc26","wires":[["ad0bb67e.3bf9b8"]]},{"id":"ffea8954.bee348","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to delete VNF l3-network relationship for generic-vnf.vnfid = ' + $ss.param.vnf-id + ' from AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6059.02445602417,"y":5634.891801357269,"z":"8068ded9.ccc26","wires":[]},{"id":"ea95c949.66b368","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' l3-network relationship with related-path = ' + $tmp.related-path + ' not found in AAI. Consider silent success!'`\" />\n","comments":"","x":5793.02481842041,"y":5678.725495815277,"z":"8068ded9.ccc26","wires":[]},{"id":"fc646437.90d098","type":"record","name":"record VNF l3-network relationship ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK VNF l3-network relationship\"/>","comments":"","outputs":1,"x":5173.512390136719,"y":5526.345165252686,"z":"8068ded9.ccc26","wires":[[]]},{"id":"e665f06b.96f35","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":4855.9888916015625,"y":5527.166730880737,"z":"8068ded9.ccc26","wires":[["fc646437.90d098","2f789ede.6f8722"]]},{"id":"ad0bb67e.3bf9b8","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback (delete) of generic-vnf l3-network relationships completed.'`\" />\n","comments":"","x":5780.774826049805,"y":5722.2254939079285,"z":"8068ded9.ccc26","wires":[]},{"id":"2f789ede.6f8722","type":"for","name":"for n in nidx","xml":"<for silentFailure='true' index='n' start='0' end='`$nidx`' >\n","comments":"","outputs":1,"x":5061.143711090088,"y":5587.381254673004,"z":"8068ded9.ccc26","wires":[["48809820.da73e8","4faa8555.6c3d7c"]]},{"id":"a7686c4c.48a2b","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4141.334602355957,"y":5268.095029830933,"z":"8068ded9.ccc26","wires":[["5713a33e.10386c","ecb6efb1.19ad9"]]},{"id":"603a3397.22016c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1893.3812103271484,"y":4058.47643327713,"z":"8068ded9.ccc26","wires":[["5819b51f.e401ec"]]},{"id":"8f404e48.285a6","type":"outcome","name":"aai-vf-module-put","xml":"<outcome value='aai-vf-module-put'>\n","comments":"","outputs":1,"x":2342.5713500976562,"y":1310.7143058776855,"z":"8068ded9.ccc26","wires":[["11703c8e.d0e733"]]},{"id":"51b14fbd.75b3e","type":"set","name":"set ss.param.aai-vf-module-put-index","xml":"<set>\n<parameter name='ss.param.aai-vf-module-put-index' value='`$bidx`' />\n","comments":"","x":2784.714401245117,"y":1310.5714855194092,"z":"8068ded9.ccc26","wires":[]},{"id":"43c0a50b.639d9c","type":"outcome","name":"unassign","xml":"<outcome value='unassign'>","comments":"","outputs":1,"x":469.1074523925781,"y":798.2615756988525,"z":"8068ded9.ccc26","wires":[["255c7c9f.01ed14"]]},{"id":"81d44ce6.28309","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":1025.5951538085938,"y":276.8809232711792,"z":"8068ded9.ccc26","wires":[["823c2354.c6c5","32c37498.d5047c","385ba57a.8df6da"]]},{"id":"11ac6461.2c5e7c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3352.3096084594727,"y":2988.3092212677,"z":"8068ded9.ccc26","wires":[["b6293e2c.6351f","470ddb4b.ffbda4","ecb6efb1.19ad9","47592f63.65ff8","16cd30f3.c7e79f"]]},{"id":"255c7c9f.01ed14","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":632.1905670166016,"y":797.7618198394775,"z":"8068ded9.ccc26","wires":[["11ac6461.2c5e7c","81d44ce6.28309","15d745ea.7fb6ba","b07947b2.6ba8c8"]]},{"id":"15d745ea.7fb6ba","type":"set","name":"set tmp.return-failure = true","xml":"<set>\n<parameter name='tmp.return-failure' value ='true' />","comments":"","x":1116.047607421875,"y":796.3332469463348,"z":"8068ded9.ccc26","wires":[]},{"id":"19fd6e4b.a54a02","type":"switchNode","name":"switch tmp.return-failure","xml":"<switch test='`$tmp.return-failure`'>\n","comments":"","outputs":1,"x":6194.024250030518,"y":4233.785830497742,"z":"8068ded9.ccc26","wires":[["e9f416b9.bf4c78"]]},{"id":"6a891b2f.3bef34","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":5944.691295623779,"y":4058.7855892181396,"z":"8068ded9.ccc26","wires":[["d76a7da6.218ec","19fd6e4b.a54a02"]]},{"id":"e9f416b9.bf4c78","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":6387.691581726074,"y":4233.7856702804565,"z":"8068ded9.ccc26","wires":[["bcf9460c.c83dd8"]]},{"id":"db5e8538.a78a48","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$error-message`' />\n","comments":"","x":6762.691753387451,"y":4285.1189222335815,"z":"8068ded9.ccc26","wires":[]},{"id":"395726ee.6fab7a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":5954.024467468262,"y":4404.7858057022095,"z":"8068ded9.ccc26","wires":[["4031474c.e3e268","f8e8b37a.dee57"]]},{"id":"4031474c.e3e268","type":"switchNode","name":"switch tmp.return-failure","xml":"<switch test='`$tmp.return-failure`'>\n","comments":"","outputs":1,"x":6203.357421875,"y":4579.7860469818115,"z":"8068ded9.ccc26","wires":[["f7d354b0.a531b8"]]},{"id":"ba1b62f2.0c98","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":6237.691120147705,"y":4808.1190395355225,"z":"8068ded9.ccc26","wires":[["d37f00eb.31762","8c6a392a.c8ded8"]]},{"id":"d37f00eb.31762","type":"switchNode","name":"switch tmp.return-failure","xml":"<switch test='`$tmp.return-failure`'>\n","comments":"","outputs":1,"x":6487.024074554443,"y":4979.1192808151245,"z":"8068ded9.ccc26","wires":[["9c9b56a.2f3efa8"]]},{"id":"9c9b56a.2f3efa8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":6680.69140625,"y":4979.119120597839,"z":"8068ded9.ccc26","wires":[["6aab8121.6a61f"]]},{"id":"e857a6e0.098918","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":6149.690906524658,"y":5213.785968780518,"z":"8068ded9.ccc26","wires":[["63a5e50e.8c1fac","9c8d41ed.27a7c"]]},{"id":"63a5e50e.8c1fac","type":"switchNode","name":"switch tmp.return-failure","xml":"<switch test='`$tmp.return-failure`'>\n","comments":"","outputs":1,"x":6399.0238609313965,"y":5388.78621006012,"z":"8068ded9.ccc26","wires":[["2a23691a.d2dc36"]]},{"id":"2a23691a.d2dc36","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":6592.691192626953,"y":5388.7860498428345,"z":"8068ded9.ccc26","wires":[["303089b7.8759a6"]]},{"id":"7d871113.d9d1b","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":5828.2629737854,"y":5634.880418300629,"z":"8068ded9.ccc26","wires":[["9f47089c.1b3508","ffea8954.bee348"]]},{"id":"9f47089c.1b3508","type":"switchNode","name":"switch tmp.return-failure","xml":"<switch test='`$tmp.return-failure`'>\n","comments":"","outputs":1,"x":6077.595928192139,"y":5809.880659580231,"z":"8068ded9.ccc26","wires":[["5173c626.5e8d58"]]},{"id":"5173c626.5e8d58","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":6271.263259887695,"y":5809.880499362946,"z":"8068ded9.ccc26","wires":[["d589e67a.08f778"]]},{"id":"b07947b2.6ba8c8","type":"set","name":"set resource-resolution-data.status = DELETED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='DELETED' />\n","comments":"","x":966.9048004150391,"y":6656.333566665649,"z":"8068ded9.ccc26","wires":[]},{"id":"72952054.933dc","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":6860.024913787842,"y":4232.785665035248,"z":"8068ded9.ccc26","wires":[]},{"id":"bcf9460c.c83dd8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":6548.691387176514,"y":4233.118878364563,"z":"8068ded9.ccc26","wires":[["72952054.933dc","db5e8538.a78a48"]]},{"id":"f7d354b0.a531b8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":6397.024753570557,"y":4579.785886764526,"z":"8068ded9.ccc26","wires":[["eca1d6d8.eda8c8"]]},{"id":"20de2c42.a3d634","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$error-message`' />\n","comments":"","x":6775.691108703613,"y":4631.452404975891,"z":"8068ded9.ccc26","wires":[]},{"id":"7c8af4c6.8e0ccc","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":6873.024269104004,"y":4579.119147777557,"z":"8068ded9.ccc26","wires":[]},{"id":"eca1d6d8.eda8c8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":6561.690742492676,"y":4579.452361106873,"z":"8068ded9.ccc26","wires":[["7c8af4c6.8e0ccc","20de2c42.a3d634"]]},{"id":"935f61e6.451d4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$error-message`' />\n","comments":"","x":7069.357624053955,"y":5031.1190395355225,"z":"8068ded9.ccc26","wires":[]},{"id":"6d4ca687.6e4358","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":7166.690784454346,"y":4978.785782337189,"z":"8068ded9.ccc26","wires":[]},{"id":"6aab8121.6a61f","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":6855.357257843018,"y":4979.118995666504,"z":"8068ded9.ccc26","wires":[["6d4ca687.6e4358","935f61e6.451d4"]]},{"id":"40d75454.77644c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$error-message`' />\n","comments":"","x":6976.357410430908,"y":5441.119464874268,"z":"8068ded9.ccc26","wires":[]},{"id":"51fd880c.bcbaf8","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":7073.690570831299,"y":5388.786207675934,"z":"8068ded9.ccc26","wires":[]},{"id":"303089b7.8759a6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":6762.357044219971,"y":5389.119421005249,"z":"8068ded9.ccc26","wires":[["51fd880c.bcbaf8","40d75454.77644c"]]},{"id":"cafc31da.005e7","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$error-message`' />\n","comments":"","x":6661.596378326416,"y":5861.214030742645,"z":"8068ded9.ccc26","wires":[]},{"id":"dfaf7e7b.49ee9","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":6758.929538726807,"y":5808.8807735443115,"z":"8068ded9.ccc26","wires":[]},{"id":"d589e67a.08f778","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":6447.5960121154785,"y":5809.213986873627,"z":"8068ded9.ccc26","wires":[["dfaf7e7b.49ee9","cafc31da.005e7"]]},{"id":"133a1544.17dc0b","type":"outcome","name":"nfc-naming-code","xml":"<outcome value='nfc-naming-code'>","comments":"","outputs":1,"x":2334.3572387695312,"y":968.976146697998,"z":"8068ded9.ccc26","wires":[["25e3fff7.35115"]]},{"id":"25e3fff7.35115","type":"set","name":"set ss.param.vnfc-name, indexnfc-naming-code","xml":"<set>\n<parameter name='ss.param.nfc-naming-code' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.nfc-naming-code-index' value='`$bidx`' />","comments":"","x":2731.1787109375,"y":969.1547613143921,"z":"8068ded9.ccc26","wires":[]},{"id":"ec83fc2d.1db1b","type":"outcome","name":"nfc-function","xml":"<outcome value='nfc-function'>","comments":"","outputs":1,"x":2319.071521759033,"y":1010.4047336578369,"z":"8068ded9.ccc26","wires":[["79ed605a.86905"]]},{"id":"79ed605a.86905","type":"set","name":"set ss.param.nfc-function, index","xml":"<set>\n<parameter name='ss.param.nfc-function' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.nfc-function-index' value='`$bidx`' />","comments":"","x":2681.3215522766113,"y":1010.4405193328857,"z":"8068ded9.ccc26","wires":[]},{"id":"ca7c357a.02aee8","type":"outcome","name":"vnfc-model-customization-uuid","xml":"<outcome value='vnfc-model-customization-uuid'>","comments":"","outputs":1,"x":2378.500198364258,"y":1050.4047679901123,"z":"8068ded9.ccc26","wires":[["94c3f286.c2c34"]]},{"id":"94c3f286.c2c34","type":"set","name":"set ss.param.vnfc-model-customization-uuid, index","xml":"<set>\n<parameter name='ss.param.vnfc-model-customization-uuid' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.vnfc-model-customization-uuid-index' value='`$bidx`' />","comments":"","x":2738.750228881836,"y":1050.4405536651611,"z":"8068ded9.ccc26","wires":[]},{"id":"f5541fce.c9fc9","type":"outcome","name":"vnfc-model-invariant-uuid","xml":"<outcome value='vnfc-model-invariant-uuid'>","comments":"","outputs":1,"x":2363.2144508361816,"y":1091.8333730697632,"z":"8068ded9.ccc26","wires":[["dbebcefd.68335"]]},{"id":"dbebcefd.68335","type":"set","name":"set ss.param.vnfc-model-invariant-uuid, index","xml":"<set>\n<parameter name='ss.param.vnfc-model-invariant-uuid' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.vnfc-model-invariant-uuid-index' value='`$bidx`' />","comments":"","x":2722.4644813537598,"y":1091.869158744812,"z":"8068ded9.ccc26","wires":[]},{"id":"2b83386b.477738","type":"outcome","name":"vnfc-model-version","xml":"<outcome value='vnfc-model-version'>","comments":"","outputs":1,"x":2343.643020629883,"y":1133.261926651001,"z":"8068ded9.ccc26","wires":[["dfca8723.2b1448"]]},{"id":"dfca8723.2b1448","type":"set","name":"set ss.param.vnfc-model-version, index","xml":"<set>\n<parameter name='ss.param.vnfc-model-version' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.vnfc-model-version-index' value='`$bidx`' />","comments":"","x":2703.893051147461,"y":1133.2977123260498,"z":"8068ded9.ccc26","wires":[]},{"id":"43435160.6954c","type":"set","name":"set TEST DATA","xml":"<set>\n<parameter name='vnf-index' value='0' />\n<parameter name='vf-module-index' value='0' />\n<parameter name='ss.capability-name' value='aai-vf-module-put' />\n<parameter name='ss.capability-action' value='unassign' />\n<parameter name='service-data.vnfs.vnf[0].vnf-id' value = '7324200933' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vnf-topology.vnf-parameters-data.param[0].name' value = 'vnf_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vnf-topology.vnf-parameters-data.param[0].value' value = '7324200933' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vnf-topology.sdnc-generated-cloud-resources' value='true' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.service-information.service-instance-id' value='11' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vnf-information.vnf-id' value='7324200933' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-topology.sdnc-generated-cloud-resources' value = 'true' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param_length' value = '36' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].name' value = 'vlan-tag-1' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].value' value = '${vlan-tag-1v}' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[0].name' value = 'policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[0].value' value = 'JQIN1810SRIOV.Config_MS_SRIOV_VlanTag_1810_ADIOD_VPE.*' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[1].name' value = 'resource-name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[1].value' value = 'vlan-tag-1' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[2].name' value = 'resource-value' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[2].value' value = '' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[3].name' value = 'scope-id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[3].value' value = 'MTCLL2238F' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[4].name' value = 'vlan-tag-key' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[4].value' value = 'dvncom4003' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[5].name' value = 'vlan-type' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[5].value' value = 'vlan-id-outer' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[6].name' value = 'vnfc-network-role' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[6].value' value = 'network-role-1' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key_length' value = '7' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.status' value = 'SUCCESS' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.capability-name' value = 'mS-vlan-tag-assign' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].name' value = 'vlan-tag-2' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].value' value = 'manually-assigned-vlan-tag-2v' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[0].name' value = 'policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[0].value' value = 'JQIN1810SRIOV.Config_MS_SRIOV_VlanTag_1810_ADIOD_VPE.*' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[1].name' value = 'resource-name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[1].value' value = 'vlan-tag-2' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[2].name' value = 'resource-value' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[2].value' value = 'manually-assigned-vlan-tag-2v' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[3].name' value = 'scope-id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[3].value' value = 'MTCLL2238F' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[4].name' value = 'vlan-tag-key' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[4].value' value = 'dvncom4003' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[5].name' value = 'vlan-type' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[5].value' value = 'vlan-id-filter' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[6].name' value = 'vnfc-network-role' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[6].value' value = 'network-role-2' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key_length' value = '7' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.status' value = 'SUCCESS' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.capability-name' value = 'INPUT' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[2].name' value = 'bogus1' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[2].value' value = 'bogus1' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[3].name' value = 'bogus2' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[3].value' value = 'bogus2' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[4].name' value = 'bogus3' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[4].value' value = 'bogus3' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[5].name' value = 'bogus4' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[5].value' value = 'bogus4' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[6].name' value = 'bogus5' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[6].value' value = 'bogus5' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[7].name' value = 'aic-cloud-region' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[7].value' value = 'mtn6' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[8].name' value = 'ipv4-loopback0-address' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[8].value' value = '1.1.1.1' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[9].name' value = 'ipv4-oam-address' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[9].value' value = '2.2.2.2' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[10].name' value = 'as-number' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[10].value' value = '11' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[11].name' value = 'vlan-id-outer' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[11].value' value = '[999]' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[12].name' value = 'bad_vnf_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[12].value' value = '7324200933' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[13].name' value = 'vf_module_name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[13].value' value = 'NEW_SELF_SERVE_VF_MODULE_TEST_1' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[14].name' value = 'volume-group-name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[14].value' value = 'dummyvolumegroupname' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[15].name' value = 'volume_group_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[15].value' value = 'vg-1-999' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[16].name' value = 'vf_module_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[16].value' value = '7323683661' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[17].name' value = 'vf_module_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[17].value' value = '7323683661' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[18].name' value = 'vnfc-name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[18].value' value = 'bogus-vnfc-name' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[19].name' value = 'vm_name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[19].value' value = 'bogus-vnfc-name' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[20].name' value = 'vm-type' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[20].value' value = 'oam' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[21].name' value = 'nfc-function' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[21].value' value = 'data' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[22].name' value = 'nfc-naming-code' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[22].value' value = 'dummy-naming-code' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[23].name' value = 'vnfc-model-customization-uuid' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[23].value' value = 'bbbb-99999' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[24].name' value = 'vnfc-model-invariant-uuid' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[24].value' value = 'aaaaa-10000' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[25].name' value = 'vnfc-model-version' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[25].value' value = 'model1' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[26].name' value = 'oam-interface-name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[26].value' value = 'oamintfname' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[27].name' value = 'lo0-interface-name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[27].value' value = 'lo0intfname' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[28].name' value = 'sriov41_net_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[28].value' value = '4141414141' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[29].name' value = 'sriov42_net_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[29].value' value = '4242424242' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[30].name' value = 'sriov43_net_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[30].value' value = '4343434343' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[31].name' value = 'sriov44_net_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[31].value' value = '4444444444' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[32].name' value = 'sriov21_net_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[32].value' value = '2121212121' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[33].name' value = 'sriov22_net_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[33].value' value = '2222222222' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].name' value = 'aai-vf-module-put' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].value' value = '${status}' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[0].name' value = 'generic-vnf' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[0].value' value = 'generic-vnf' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[1].name' value = 'vf-module' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[1].value' value = 'vf-module' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[2].name' value = 'volume-group' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[2].value' value = 'volume-group' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[3].name' value = 'vnfc' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[3].value' value = 'vnfc' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[4].name' value = 'connection-points' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[4].value' value = 'connection-points' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[5].name' value = 'l-interface' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[5].value' value = 'l-interface' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[6].name' value = 'l3-network' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[6].value' value = 'l3-network' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key_length' value = '7' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.status' value = 'PENDING' />\n\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[35].name' value = 'availability_zone_0' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[35].value' value = 'nova0' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].onap-model-information.model-customization-uuid' value = 'bbbb-99999' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].onap-model-information.model-invariant-uuid' value = 'aaaaa-10000' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].onap-model-information.model-version' value = 'model1' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-type' value = 'oam' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-name' value = 'bogus-vnfc-name' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data_length' value = '2' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[0].vnfc-network-role' value = 'network-role-1' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[0].connection-point.connection-point-id' value = '789cddfa-58ba-4095-addc-8f7181186380' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[0].connection-point.vlan-data[0].vlan-role' value = '' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[0].connection-point.vlan-data[0].vlan-tag-description' value = 'VPE-Cust' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[0].connection-point.vlan-data[0].vlan-tag-id' value = '3553' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[0].connection-point.vlan-data[0].vlan-uuid' value = '56034624-9296-426c-8103-79a09c23e872' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].vnfc-network-role' value = 'network-role-2' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.connection-point-id' value = 'd1bdc1ae-4e67-42c3-ad25-2051ddae65a7' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[0].vlan-role' value = 'outer-tag' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[0].vlan-tag-description' value = 'VPE-Cust-Outer' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[0].vlan-tag-id' value = '3503' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[0].vlan-uuid' value = 'fdc089af-0c00-41c0-a403-1501fb06909f' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[1].vlan-role' value = 'outer-tag' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[1].vlan-tag-description' value = 'VPE-Core1' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[1].vlan-tag-id' value = '4001' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[1].vlan-uuid' value = 'f48473ff-fc11-4c38-bcf7-7dec483d81da' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[2].vlan-role' value = 'outer-tag' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[2].vlan-tag-description' value = 'VPE-Core2' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[2].vlan-tag-id' value = '4002' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[2].vlan-uuid' value = '147afe9e-81d3-4872-a298-f470999ba915' />","comments":"","x":953.2142868041992,"y":92.40475368499756,"z":"8068ded9.ccc26","wires":[]},{"id":"593dcc0e.8e3134","type":"outcome","name":"ipv4-loopback0-address","xml":"<outcome value='ipv4-loopback0-address'>","comments":"","outputs":1,"x":2355.3572692871094,"y":925.2618856430054,"z":"8068ded9.ccc26","wires":[["ef23ff6.9991e"]]},{"id":"ef23ff6.9991e","type":"set","name":"set ss.param.ipv4-loopback0-address, index","xml":"<set>\n<parameter name='ss.param.ipv4-loopback0-address' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.ipv4-loopback0-address-index' value='`bidx`' />","comments":"","x":2715.607292175293,"y":925.0119018554688,"z":"8068ded9.ccc26","wires":[]},{"id":"982628c3.cc5ec8","type":"outcome","name":"vlan-id-outer","xml":"<outcome value='vlan-id-outer'>","comments":"","outputs":1,"x":2324.8928451538086,"y":1220.0476179122925,"z":"8068ded9.ccc26","wires":[["bf23dba.cbde728"]]},{"id":"26c08944.595276","type":"outcome","name":"as-number","xml":"<outcome value='as-number'>","comments":"","outputs":1,"x":2319.678535461426,"y":1177.869029045105,"z":"8068ded9.ccc26","wires":[["104fad01.672133"]]},{"id":"104fad01.672133","type":"set","name":"set ss.param.as-number, index","xml":"<set>\n<parameter name='ss.param.as-number' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.as-number-index' value='`$bidx`' />","comments":"","x":2679.178512573242,"y":1178.3690299987793,"z":"8068ded9.ccc26","wires":[]},{"id":"bf23dba.cbde728","type":"set","name":"set vlan-id-outer, indexss.param.","xml":"<set>\n<parameter name='ss.param.vlan-id-outer' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.vlan-id-outer-index' value='`$bidx`' />","comments":"","x":2687.392822265625,"y":1219.7976169586182,"z":"8068ded9.ccc26","wires":[]},{"id":"385ba57a.8df6da","type":"set","name":"set ss.param.vnf-id","xml":"<set>\n<parameter name='ss.param.vnf-id' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-id`' />","comments":"","x":1228.6903991699219,"y":464.7856855392456,"z":"8068ded9.ccc26","wires":[]},{"id":"90cb9541.006378","type":"execute","name":"execute PropertiesNode","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":975.3570785522461,"y":141.4523696899414,"z":"8068ded9.ccc26","wires":[[]]},{"id":"369fedc4.640742","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":738.6903991699219,"y":114.78570365905762,"z":"8068ded9.ccc26","wires":[["43435160.6954c","90cb9541.006378"]]},{"id":"b3dc72d7.6c11b","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'volume-group not found in AnAI with volume-group-id=' + $ss.param.volume-group-id + '; ' + $error-message`\" />\n","comments":"","x":2223.5953254699707,"y":3915.5000128746033,"z":"8068ded9.ccc26","wires":[]},{"id":"be71747e.761fd8","type":"save","name":"get volume-group","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"volume-group\"\n\t\tkey=\"cloud-region.cloud-owner = $prop.cloud-owner \n\t\t\tAND cloud-region.cloud-region-id = $ss.param.aic-cloud-region \n\t\t\tAND cloud-region.cloud-owner = $prop.cloud-region.cloud-owner \n\t\t\tAND volume-group-id = $ss.param.volume-group-id\" \n\tpfx=\"tmp.aai.volume-group\" >\n","comments":"","outputs":1,"x":1666.1788330078125,"y":3825.2141947746277,"z":"8068ded9.ccc26","wires":[["ab7cc2ae.b3122","491c18b8.279c08"]]},{"id":"ab7cc2ae.b3122","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1855.4288177490234,"y":3824.7141394615173,"z":"8068ded9.ccc26","wires":[["dd469fcd.ed1f6"]]},{"id":"491c18b8.279c08","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1863.1072998046875,"y":3880.749830722809,"z":"8068ded9.ccc26","wires":[["5df59ce5.ec4624"]]},{"id":"f712058.ba8fdf8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to get volume-group in AnAI with volume-group-id = ' + $ss.param.volume-group-id + '; ' + $error-message`\" />\n","comments":"","x":2223.726306915283,"y":3860.7142462730408,"z":"8068ded9.ccc26","wires":[]},{"id":"dd469fcd.ed1f6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2027.39306640625,"y":3825.2143034934998,"z":"8068ded9.ccc26","wires":[["f712058.ba8fdf8","5baa82ec.dffecc"]]},{"id":"5df59ce5.ec4624","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2027.6430473327637,"y":3880.714282512665,"z":"8068ded9.ccc26","wires":[["b3dc72d7.6c11b","5baa82ec.dffecc"]]},{"id":"4faa8555.6c3d7c","type":"set","name":"set tmp.related-link","xml":"<set>\n<parameter name='tmp.related-link' value=\"`'/aai/v$/network/l3-networks/l3-network/' + $ss.network[$n].netid`\" />\n<!--\n<parameter name='tmp.related-link' value=\"`'/aai/' + $prop.aai.version + '/network/l3-networks/l3-network/' + $ss.network[$n].netid`\" />\n-->","comments":"","x":5282.429328918457,"y":5587.7142329216,"z":"8068ded9.ccc26","wires":[]},{"id":"9669e0ca.90c8f","type":"switchNode","name":"switch: ss.capability-name","xml":"<switch test='`$ss.capability-name`'>\n","comments":"","outputs":1,"x":363.5715103149414,"y":176.33332633972168,"z":"8068ded9.ccc26","wires":[["e32786de.9df318"]]},{"id":"e32786de.9df318","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":570.571533203125,"y":176.8333249092102,"z":"8068ded9.ccc26","wires":[["7197124b.04b54c"]]},{"id":"7197124b.04b54c","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\t<parameter name=\"error-message\" value=\"ss.capability-name is null\" />\n","comments":"","x":730.4882049560547,"y":176.9444236755371,"z":"8068ded9.ccc26","wires":[]},{"id":"3b0adeb0.0eb082","type":"set","name":"set param[$ss.param.aai-vnf-put-index].value = SUCCESS","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].value' \n\tvalue='SUCCESS' />\n","comments":"","x":467.5714569091797,"y":1141.8094778060913,"z":"8068ded9.ccc26","wires":[]},{"id":"b9bf0de4.48018","type":"switchNode","name":"ss.param.ipv4-loopback0-address != NULL","xml":"<switch test=\"`$ss.param.ipv4-loopback0-address != ''`\">\n\n\n","comments":"","outputs":1,"x":1357.5237159729004,"y":1846.4284987449646,"z":"8068ded9.ccc26","wires":[["ceaf4524.23f4d8"]]},{"id":"ceaf4524.23f4d8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1625.9520988464355,"y":1845.8570322990417,"z":"8068ded9.ccc26","wires":[["43f75d58.570a74"]]},{"id":"43f75d58.570a74","type":"execute","name":"ss.param.ipv4-loopback0-address contains $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name='source' value='`$ss.param.ipv4-loopback0-address`' />\n <parameter name='target' value='$' />\n","comments":"","outputs":1,"x":1897.761646270752,"y":1846.2380146980286,"z":"8068ded9.ccc26","wires":[["38011e7f.dd8f82","dcbb8012.d1394"]]},{"id":"38011e7f.dd8f82","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2184.7615852355957,"y":1845.5235419273376,"z":"8068ded9.ccc26","wires":[["1622e59b.0a538a"]]},{"id":"dcbb8012.d1394","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2185.2384243011475,"y":1894.380756855011,"z":"8068ded9.ccc26","wires":[["27de274a.88c098"]]},{"id":"1622e59b.0a538a","type":"record","name":"record ipv4-loopback0-address","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'ss.param.ipv4-loopback0-address = ' + $ss.param.ipv4-loopback0-address`\"/>\n<parameter name=\"field3\" value=\"__SKIP ipv4-loopback0-address update for generic-vnf in AnAI__\"/>","comments":"","outputs":1,"x":2427.285556793213,"y":1845.9524359703064,"z":"8068ded9.ccc26","wires":[[]]},{"id":"7327e39b.b7381c","type":"save","name":"update generic-vnf","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"ipv4-oam-address\" value='`$ss.param.ipv4-oam-address`' />\n","comments":"","outputs":1,"x":2275.5120964050293,"y":2121.7620272636414,"z":"8068ded9.ccc26","wires":[["7a590d98.438b34","45273777.668128","a8611fe4.861fc"]]},{"id":"7a590d98.438b34","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2475.7621269226074,"y":2122.119074344635,"z":"8068ded9.ccc26","wires":[["ecf0ba29.86e7a8"]]},{"id":"45273777.668128","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2482.012138366699,"y":2172.8691086769104,"z":"8068ded9.ccc26","wires":[["bdb288a7.c9e8f8"]]},{"id":"276849b.b8825b6","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf.ipv4-oam-address in AnAI with ipv4-oam-address=' + $ss.param.ipv4-oam-address + '; ' + $error-message`\" />\n","comments":"","x":2851.6310844421387,"y":2121.904778957367,"z":"8068ded9.ccc26","wires":[]},{"id":"ff10d38d.f4ef5","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf because vnf-id =' + $ss.param.vnf-id + ' is not found in AAI' + '; ' + $error-message`\" />\n","comments":"","x":2852.2026023864746,"y":2172.142955303192,"z":"8068ded9.ccc26","wires":[]},{"id":"ecf0ba29.86e7a8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2649.1906929016113,"y":2122.190598964691,"z":"8068ded9.ccc26","wires":[["276849b.b8825b6","71faeb89.83a694"]]},{"id":"bdb288a7.c9e8f8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2652.047908782959,"y":2173.047740459442,"z":"8068ded9.ccc26","wires":[["ff10d38d.f4ef5","71faeb89.83a694"]]},{"id":"26afdd51.b0c082","type":"switchNode","name":"ss.param.ipv4-oam-address != NULL","xml":"<switch test=\"`$ss.param.ipv4-oam-address != ''`\">\n\n\n","comments":"","outputs":1,"x":1333.428638458252,"y":2071.9880661964417,"z":"8068ded9.ccc26","wires":[["1b81e3ed.85387c"]]},{"id":"1b81e3ed.85387c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1569.857021331787,"y":2072.416599750519,"z":"8068ded9.ccc26","wires":[["6a5b7911.12efb8"]]},{"id":"6a5b7911.12efb8","type":"execute","name":"ss.param.ipv4-oam-address contains $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name='source' value='`$ss.param.ipv4-oam-address`' />\n <parameter name='target' value='$' />\n","comments":"","outputs":1,"x":1813.6665687561035,"y":2072.7975821495056,"z":"8068ded9.ccc26","wires":[["e4511a53.c7e968","c52ae99f.811838"]]},{"id":"e4511a53.c7e968","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2069.6665077209473,"y":2072.0831093788147,"z":"8068ded9.ccc26","wires":[["cf116e57.4d2d6"]]},{"id":"c52ae99f.811838","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2070.143346786499,"y":2120.940324306488,"z":"8068ded9.ccc26","wires":[["7327e39b.b7381c"]]},{"id":"cf116e57.4d2d6","type":"record","name":"record ipv4-oam-address","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'ss.param.ipv4-oam-address = ' + $ss.param.ipv4-oam-address`\"/>\n<parameter name=\"field3\" value=\"__SKIP ipv4-oam-address update for generic-vnf in AnAI__\"/>","comments":"","outputs":1,"x":2293.1904792785645,"y":2072.5120034217834,"z":"8068ded9.ccc26","wires":[[]]},{"id":"e5889051.c0258","type":"save","name":"Rollback generic-vnf update","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"ipv4-loopback0-address\" value='`$tmp.aai.vnf.ipv4-loopback0-address`' />","comments":"","outputs":1,"x":5601.476459503174,"y":1553.7621817588806,"z":"8068ded9.ccc26","wires":[["22af1de1.3fb9e2","8bf8665b.1437d8","c2c65d3e.5dfc2"]]},{"id":"22af1de1.3fb9e2","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5839.726444244385,"y":1553.2621264457703,"z":"8068ded9.ccc26","wires":[["5e63f4b2.4ac3cc"]]},{"id":"8bf8665b.1437d8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5845.976455688477,"y":1605.0121607780457,"z":"8068ded9.ccc26","wires":[["ad206450.c1ee18"]]},{"id":"2d67b279.3df1de","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":5652.904941558838,"y":1508.1308035850525,"z":"8068ded9.ccc26","wires":[]},{"id":"c2c65d3e.5dfc2","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5843.797702789307,"y":1653.2737307548523,"z":"8068ded9.ccc26","wires":[["ec787945.492e18"]]},{"id":"47e8bd96.8ba9d4","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":5331.226184844971,"y":1463.5237832069397,"z":"8068ded9.ccc26","wires":[["2d67b279.3df1de","e5889051.c0258","384189da.b5f976"]]},{"id":"5e63f4b2.4ac3cc","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf.ipv4-loopback0-address update in AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6022.54764175415,"y":1553.3808007240295,"z":"8068ded9.ccc26","wires":[]},{"id":"ad206450.c1ee18","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf update because generic-vnf with vnf-id=' + $ss.param.vnf-id + ' is not found in AAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6025.04764175415,"y":1604.6308026313782,"z":"8068ded9.ccc26","wires":[]},{"id":"ec787945.492e18","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of generic-vnf.ipv4-loopback0-address update completed. '`\" />\n","comments":"","x":6027.54764175415,"y":1653.6308007240295,"z":"8068ded9.ccc26","wires":[]},{"id":"384189da.b5f976","type":"record","name":"record generic-vnf ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK generic-vnf.ipv4-loopback0-address update\"/>","comments":"","outputs":1,"x":5607.04764175415,"y":1463.6308016777039,"z":"8068ded9.ccc26","wires":[[]]},{"id":"da76951d.afdea8","type":"comment","name":"ROLLBACK STARET HERE","info":"","comments":"","x":4691.0475997924805,"y":1417.7256727218628,"z":"8068ded9.ccc26","wires":[]},{"id":"bb524829.b73d08","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4512.619209289551,"y":1588.9048280715942,"z":"8068ded9.ccc26","wires":[["e2e1d228.1cac","71faeb89.83a694"]]},{"id":"e4a213fe.1cb","type":"save","name":"update generic-vnf","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"as-number\" value='`$ss.param.as-number`' />","comments":"","outputs":1,"x":2249.000072479248,"y":2371.190616130829,"z":"8068ded9.ccc26","wires":[["4efbae39.8c274","da35a4e3.507258","4bc8cbf7.d420c4"]]},{"id":"4efbae39.8c274","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2449.250102996826,"y":2371.5476632118225,"z":"8068ded9.ccc26","wires":[["a1700ab5.e0ada8"]]},{"id":"da35a4e3.507258","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2455.500114440918,"y":2422.297697544098,"z":"8068ded9.ccc26","wires":[["cd623d9e.bad95"]]},{"id":"2c15727.a84458e","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf.as-number in AnAI with as-number=' + $ss.param.as-number + '; ' + $error-message`\" />\n","comments":"","x":2825.1190605163574,"y":2371.3333678245544,"z":"8068ded9.ccc26","wires":[]},{"id":"41bc64c.41bf29c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf because vnf-id =' + $ss.param.vnf-id + ' is not found in AAI. ' + $error-message`\" />\n","comments":"","x":2825.6905784606934,"y":2421.5715441703796,"z":"8068ded9.ccc26","wires":[]},{"id":"a1700ab5.e0ada8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2622.67866897583,"y":2371.6191878318787,"z":"8068ded9.ccc26","wires":[["2c15727.a84458e","bb524829.b73d08"]]},{"id":"cd623d9e.bad95","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2625.5358848571777,"y":2422.4763293266296,"z":"8068ded9.ccc26","wires":[["41bc64c.41bf29c","bb524829.b73d08"]]},{"id":"908814ee.d3c7b8","type":"switchNode","name":"ss.param.as-number != NULL","xml":"<switch test=\"`$ss.param.as-number != ''`\">\n\n\n","comments":"","outputs":1,"x":1306.9166145324707,"y":2321.416655063629,"z":"8068ded9.ccc26","wires":[["737e972.985f168"]]},{"id":"737e972.985f168","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1543.3449974060059,"y":2321.8451886177063,"z":"8068ded9.ccc26","wires":[["1c5589e.b307676"]]},{"id":"1c5589e.b307676","type":"execute","name":"ss.param.as-number contains $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name='source' value='`$ss.param.as-number`' />\n <parameter name='target' value='$' />\n","comments":"","outputs":1,"x":1787.1545448303223,"y":2322.226171016693,"z":"8068ded9.ccc26","wires":[["497ff762.9d1748","992db45d.438d38"]]},{"id":"497ff762.9d1748","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2043.154483795166,"y":2321.511698246002,"z":"8068ded9.ccc26","wires":[["deaa07b.61227f8"]]},{"id":"992db45d.438d38","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2043.6313228607178,"y":2370.3689131736755,"z":"8068ded9.ccc26","wires":[["e4a213fe.1cb"]]},{"id":"deaa07b.61227f8","type":"record","name":"record as-number","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'ss.param.as-number = ' + $ss.param.as-number`\"/>\n<parameter name=\"field3\" value=\"__SKIP as-number update for generic-vnf in AnAI__\"/>","comments":"","outputs":1,"x":2246.678455352783,"y":2321.940543651581,"z":"8068ded9.ccc26","wires":[[]]},{"id":"74f743f6.6c2a9c","type":"save","name":"Rollback generic-vnf update","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"ipv4-oam-address\" value='`$tmp.aai.vnf.ipv4-oam-address`' />","comments":"","outputs":1,"x":5424.047866821289,"y":1822.1906266212463,"z":"8068ded9.ccc26","wires":[["8ab667c6.6dc778","127a91f5.5edaee","6dc5a4c1.0050bc"]]},{"id":"8ab667c6.6dc778","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5662.2978515625,"y":1821.690571308136,"z":"8068ded9.ccc26","wires":[["ca5f07de.46aa38"]]},{"id":"127a91f5.5edaee","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5668.547863006592,"y":1873.4406056404114,"z":"8068ded9.ccc26","wires":[["7d6b1b6d.e73344"]]},{"id":"a407c233.f5534","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":5475.476348876953,"y":1776.5592484474182,"z":"8068ded9.ccc26","wires":[]},{"id":"6dc5a4c1.0050bc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5666.369110107422,"y":1921.702175617218,"z":"8068ded9.ccc26","wires":[["79516859.473258"]]},{"id":"768b08a.664faf8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":5166.654808044434,"y":1732.9521927833557,"z":"8068ded9.ccc26","wires":[["a407c233.f5534","74f743f6.6c2a9c","9082c4e7.fb2758"]]},{"id":"ca5f07de.46aa38","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf.ipv4-oam-address update in AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":5845.119049072266,"y":1821.8092455863953,"z":"8068ded9.ccc26","wires":[]},{"id":"7d6b1b6d.e73344","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf update because generic-vnf with vnf-id=' + $ss.param.vnf-id + ' is not found in AAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":5847.619049072266,"y":1873.059247493744,"z":"8068ded9.ccc26","wires":[]},{"id":"79516859.473258","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of generic-vnf.ipv4-oam-address update completed. '`\" />\n","comments":"","x":5850.119049072266,"y":1922.0592455863953,"z":"8068ded9.ccc26","wires":[]},{"id":"9082c4e7.fb2758","type":"record","name":"record generic-vnf ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK generic-vnf.ipv4-oam-address update\"/>","comments":"","outputs":1,"x":5429.619049072266,"y":1732.0592465400696,"z":"8068ded9.ccc26","wires":[[]]},{"id":"cb879e8.7659c6","type":"save","name":"update generic-vnf","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"vlan-id-outer\" value='`$ss.param.vlan-id-outer`' />","comments":"","outputs":1,"x":2255.2262687683105,"y":2602.619082927704,"z":"8068ded9.ccc26","wires":[["6f7ecbf3.9e2ac4","747eeb7.c55af14","39d08edc.6b6b42"]]},{"id":"6f7ecbf3.9e2ac4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2455.4762992858887,"y":2602.9761300086975,"z":"8068ded9.ccc26","wires":[["2c7b95a3.b6cfda"]]},{"id":"747eeb7.c55af14","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2461.7263107299805,"y":2653.726164340973,"z":"8068ded9.ccc26","wires":[["e8fe8375.a7f86"]]},{"id":"22896c5.57d9394","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf.vlan-id-outer in AnAI with as-number=' + $ss.param.as-number + '; ' + $error-message`\" />\n","comments":"","x":2831.34525680542,"y":2602.7618346214294,"z":"8068ded9.ccc26","wires":[]},{"id":"1bdd53be.37f77c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf because vnf-id =' + $ss.param.vnf-id + ' is not found in AAI. ' + $error-message`\" />\n","comments":"","x":2831.916774749756,"y":2653.0000109672546,"z":"8068ded9.ccc26","wires":[]},{"id":"2c7b95a3.b6cfda","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2628.9048652648926,"y":2603.0476546287537,"z":"8068ded9.ccc26","wires":[["22896c5.57d9394","d65ee09f.37cd9"]]},{"id":"e8fe8375.a7f86","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2631.7620811462402,"y":2653.9047961235046,"z":"8068ded9.ccc26","wires":[["1bdd53be.37f77c","d65ee09f.37cd9"]]},{"id":"c975e01d.234e2","type":"switchNode","name":"ss.param.vlan-id-outer != NULL","xml":"<switch test=\"`$ss.param.vlan-id-outer != ''`\">\n\n\n","comments":"","outputs":1,"x":1313.1428108215332,"y":2552.845121860504,"z":"8068ded9.ccc26","wires":[["93830daa.215c2"]]},{"id":"93830daa.215c2","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1549.5711936950684,"y":2553.2736554145813,"z":"8068ded9.ccc26","wires":[["27539cc9.080cc4"]]},{"id":"27539cc9.080cc4","type":"execute","name":"ss.param.vlan-id-outer contains $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name='source' value='`$ss.param.vlan-id-outer`' />\n <parameter name='target' value='$' />\n","comments":"","outputs":1,"x":1793.3807411193848,"y":2553.654637813568,"z":"8068ded9.ccc26","wires":[["105606fa.800439","2247889c.578818"]]},{"id":"105606fa.800439","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2049.3806800842285,"y":2552.940165042877,"z":"8068ded9.ccc26","wires":[["531a6486.a6295c"]]},{"id":"2247889c.578818","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2049.8575191497803,"y":2601.7973799705505,"z":"8068ded9.ccc26","wires":[["cb879e8.7659c6"]]},{"id":"531a6486.a6295c","type":"record","name":"record vlan-id-outer","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'ss.param.vlan-id-outer = ' + $ss.param.vlan-id-outer`\"/>\n<parameter name=\"field3\" value=\"__SKIP vlan-id-outer update for generic-vnf in AnAI__\"/>","comments":"","outputs":1,"x":2255.761905670166,"y":2552.7977175712585,"z":"8068ded9.ccc26","wires":[[]]},{"id":"e5473ddc.047be","type":"save","name":"Rollback generic-vnf update","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"as-number\" value='`$tmp.aai.vnf.as-number`' />","comments":"","outputs":1,"x":5173.047737121582,"y":2097.0475330352783,"z":"8068ded9.ccc26","wires":[["285f2e24.1586f2","83023384.2b811","8076ba5d.d50338"]]},{"id":"285f2e24.1586f2","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5411.297721862793,"y":2096.547477722168,"z":"8068ded9.ccc26","wires":[["fa907b6a.b7f9e8"]]},{"id":"83023384.2b811","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5417.547733306885,"y":2148.2975120544434,"z":"8068ded9.ccc26","wires":[["f07a54b8.00eae8"]]},{"id":"e1190313.df098","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":5224.476219177246,"y":2051.41615486145,"z":"8068ded9.ccc26","wires":[]},{"id":"8076ba5d.d50338","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5415.368980407715,"y":2196.55908203125,"z":"8068ded9.ccc26","wires":[["ebf1b213.e06bf"]]},{"id":"b0942bbb.c31398","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":4922.226112365723,"y":2002.9517307281494,"z":"8068ded9.ccc26","wires":[["e1190313.df098","e5473ddc.047be","25ff6863.c55cb8"]]},{"id":"fa907b6a.b7f9e8","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf.as-number update in AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":5594.118919372559,"y":2096.6661520004272,"z":"8068ded9.ccc26","wires":[]},{"id":"f07a54b8.00eae8","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf update because generic-vnf with vnf-id=' + $ss.param.vnf-id + ' is not found in AAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":5596.618919372559,"y":2147.916153907776,"z":"8068ded9.ccc26","wires":[]},{"id":"ebf1b213.e06bf","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of generic-vnf.as-number update completed. '`\" />\n","comments":"","x":5599.118919372559,"y":2196.9161520004272,"z":"8068ded9.ccc26","wires":[]},{"id":"25ff6863.c55cb8","type":"record","name":"record generic-vnf ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK generic-vnf.as-number update\"/>","comments":"","outputs":1,"x":5177.190353393555,"y":2002.0587844848633,"z":"8068ded9.ccc26","wires":[[]]},{"id":"34d61ff5.579e6","type":"save","name":"Rollback generic-vnf update","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"vlan-id-outer\" value='`$tmp.aai.vnf.vlan-id-outer`' />","comments":"","outputs":1,"x":5037.905044555664,"y":2414.761951446533,"z":"8068ded9.ccc26","wires":[["629cce5b.29146","7a205153.d31fb","a1d97f77.5519b"]]},{"id":"629cce5b.29146","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5276.155029296875,"y":2414.261896133423,"z":"8068ded9.ccc26","wires":[["89392aae.d68578"]]},{"id":"7a205153.d31fb","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5282.405040740967,"y":2466.0119304656982,"z":"8068ded9.ccc26","wires":[["6d7e4c44.4dfcc4"]]},{"id":"5195e96f.8c0d38","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":5089.333526611328,"y":2369.130573272705,"z":"8068ded9.ccc26","wires":[]},{"id":"a1d97f77.5519b","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5279.226287841797,"y":2514.273500442505,"z":"8068ded9.ccc26","wires":[["9a615e51.2921d"]]},{"id":"d49362f8.a641c","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":4786.511985778809,"y":2325.5235176086426,"z":"8068ded9.ccc26","wires":[["5195e96f.8c0d38","34d61ff5.579e6","502f025d.7ed22c"]]},{"id":"89392aae.d68578","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf.vlan-id-outer update in AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":5458.976226806641,"y":2414.380570411682,"z":"8068ded9.ccc26","wires":[]},{"id":"6d7e4c44.4dfcc4","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf update because generic-vnf with vnf-id=' + $ss.param.vnf-id + ' is not found in AAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":5461.476226806641,"y":2465.6305723190308,"z":"8068ded9.ccc26","wires":[]},{"id":"9a615e51.2921d","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of generic-vnf.vlan-id-outer update completed. '`\" />\n","comments":"","x":5462.976226806641,"y":2514.630570411682,"z":"8068ded9.ccc26","wires":[]},{"id":"502f025d.7ed22c","type":"record","name":"record generic-vnf ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK generic-vnf.vlan-id-outer update\"/>","comments":"","outputs":1,"x":5043.476226806641,"y":2324.6305713653564,"z":"8068ded9.ccc26","wires":[[]]},{"id":"a8611fe4.861fc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2479.8570671081543,"y":2224.6192326545715,"z":"8068ded9.ccc26","wires":[["9662e07e.fc4a8"]]},{"id":"9662e07e.fc4a8","type":"set","name":"set ss.ipv4-oam-address-updated = true","xml":"<set>\n<parameter name='ss.ipv4-oam-address-updated' value='true' />\n","comments":"","x":2734.9998893737793,"y":2224.0476994514465,"z":"8068ded9.ccc26","wires":[]},{"id":"39d08edc.6b6b42","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2460.999927520752,"y":2706.904727458954,"z":"8068ded9.ccc26","wires":[["e4253280.219b1"]]},{"id":"e4253280.219b1","type":"set","name":"set ss.vlan-id-outer-updated = true","xml":"<set>\n<parameter name='ss.vlan-id-outer-updated' value='true' />\n","comments":"","x":2697.142749786377,"y":2706.333194255829,"z":"8068ded9.ccc26","wires":[]},{"id":"d5eb2c25.f7bf1","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2594.428638458252,"y":1994.0476365089417,"z":"8068ded9.ccc26","wires":[["25b6966a.a2a8ca"]]},{"id":"25b6966a.a2a8ca","type":"set","name":"set ss.ipv4-loopback0-address-updated = true","xml":"<set>\n<parameter name='ss.ipv4-loopback0-address-updated' value='true' />\n","comments":"","x":2867.571460723877,"y":1993.4761033058167,"z":"8068ded9.ccc26","wires":[]},{"id":"4bc8cbf7.d420c4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2451.4286613464355,"y":2474.047793865204,"z":"8068ded9.ccc26","wires":[["f06d656f.af5598"]]},{"id":"f06d656f.af5598","type":"set","name":"set ss.as-number-updated = true","xml":"<set>\n<parameter name='ss.as-number-updated' value='true' />\n","comments":"","x":2686.5714836120605,"y":2473.476260662079,"z":"8068ded9.ccc26","wires":[]},{"id":"1efb2ace.960c85","type":"switchNode","name":"ss.ipv4-loopback0-address-updated","xml":"<switch test=\"`$ss.ipv4-loopback0-address-updated`\">\n\n\n","comments":"","outputs":1,"x":4926.33345413208,"y":1463.4764018058777,"z":"8068ded9.ccc26","wires":[["30f66413.98e80c"]]},{"id":"30f66413.98e80c","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":5161.47624206543,"y":1463.0478825569153,"z":"8068ded9.ccc26","wires":[["47e8bd96.8ba9d4"]]},{"id":"e2e1d228.1cac","type":"switchNode","name":"ss.ipv4-oam-address-updated","xml":"<switch test=\"`$ss.ipv4-oam-address-updated`\">\n\n\n","comments":"","outputs":1,"x":4762.619338989258,"y":1733.4761872291565,"z":"8068ded9.ccc26","wires":[["161a1549.8e506b"]]},{"id":"161a1549.8e506b","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":4991.190628051758,"y":1732.904776096344,"z":"8068ded9.ccc26","wires":[["768b08a.664faf8"]]},{"id":"6e213c89.99cdc4","type":"switchNode","name":"ss.as-number-updated","xml":"<switch test=\"`$ss.as-number-updated`\">\n\n\n","comments":"","outputs":1,"x":4573.190734863281,"y":2002.0476455688477,"z":"8068ded9.ccc26","wires":[["c40b28e0.f8bd18"]]},{"id":"c40b28e0.f8bd18","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":4764.762023925781,"y":2002.4762344360352,"z":"8068ded9.ccc26","wires":[["b0942bbb.c31398"]]},{"id":"dab326d4.4c5188","type":"switchNode","name":"ss.vlan-id-outer-updated","xml":"<switch test=\"`$ss.vlan-id-outer-updated`\">\n\n\n","comments":"","outputs":1,"x":4435.619369506836,"y":2325.47625541687,"z":"8068ded9.ccc26","wires":[["615d0461.0886fc"]]},{"id":"615d0461.0886fc","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":4622.190658569336,"y":2325.9048442840576,"z":"8068ded9.ccc26","wires":[["d49362f8.a641c"]]},{"id":"d65ee09f.37cd9","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4358.333808898926,"y":1811.3334674835205,"z":"8068ded9.ccc26","wires":[["bb524829.b73d08","6e213c89.99cdc4"]]},{"id":"7102730.01d478c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4204.905014038086,"y":2084.76189994812,"z":"8068ded9.ccc26","wires":[["d65ee09f.37cd9","dab326d4.4c5188"]]},{"id":"71faeb89.83a694","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4691.762203216553,"y":1463.7620449066162,"z":"8068ded9.ccc26","wires":[["1efb2ace.960c85"]]},{"id":"11703c8e.d0e733","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2534.9999504089355,"y":1310.4761638641357,"z":"8068ded9.ccc26","wires":[["51b14fbd.75b3e","812c36d9.0a3ac8"]]},{"id":"e9f498df.26a9b8","type":"switchNode","name":"switch: resource-key[].name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key[$kidx].name`'>\n","comments":"","outputs":1,"x":3044.4289016723633,"y":1386.4762229919434,"z":"8068ded9.ccc26","wires":[["1f45c3a7.b75a7c","51073227.b22b1c","289fcfcb.8ee7","3c596d6c.b48dd2","b9f013b2.25b3f","3565db8d.625714","be2c548e.1c4a58"]]},{"id":"1f45c3a7.b75a7c","type":"outcome","name":"vf-module","xml":"<outcome value='vf-module'>\n","comments":"","outputs":1,"x":3305.448585510254,"y":1296.6546630859375,"z":"8068ded9.ccc26","wires":[["ca74e487.dcffc8"]]},{"id":"812c36d9.0a3ac8","type":"for","name":"for kidx in resource-key_length","xml":"<for silentFailure='true' index=\"kidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key_length`\">","comments":"","outputs":1,"x":2765.2899780273438,"y":1386.3373336791992,"z":"8068ded9.ccc26","wires":[["e9f498df.26a9b8"]]},{"id":"51073227.b22b1c","type":"outcome","name":"generic-vnf","xml":"<outcome value='generic-vnf'>\n","comments":"","outputs":1,"x":3306.9087677001953,"y":1250.6903667449951,"z":"8068ded9.ccc26","wires":[["a2bddea8.fee28"]]},{"id":"a2bddea8.fee28","type":"set","name":"set ss.resource-key.generic-vnf","xml":"<set>\n<parameter name='ss.resource-key.generic-vnf' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key[$kidx].value`' />\n","comments":"","x":3609.4126205444336,"y":1250.944284439087,"z":"8068ded9.ccc26","wires":[]},{"id":"289fcfcb.8ee7","type":"outcome","name":"volume-group","xml":"<outcome value='volume-group'>\n","comments":"","outputs":1,"x":3320.571662902832,"y":1341.1905689239502,"z":"8068ded9.ccc26","wires":[["532ce28c.3776ac"]]},{"id":"3c596d6c.b48dd2","type":"outcome","name":"vnfc","xml":"<outcome value='vnfc'>\n","comments":"","outputs":1,"x":3300.000442504883,"y":1385.4763507843018,"z":"8068ded9.ccc26","wires":[["c4bd3f7e.1c8b5"]]},{"id":"b9f013b2.25b3f","type":"outcome","name":"connection-points","xml":"<outcome value='connection-points'>\n","comments":"","outputs":1,"x":3334.7143173217773,"y":1429.7620134353638,"z":"8068ded9.ccc26","wires":[["5e1b7935.47e818"]]},{"id":"3565db8d.625714","type":"outcome","name":"l-interface","xml":"<outcome value='l-interface'>\n","comments":"","outputs":1,"x":3311.2858123779297,"y":1475.333511352539,"z":"8068ded9.ccc26","wires":[["8c93fc68.5c60f"]]},{"id":"be2c548e.1c4a58","type":"outcome","name":"l3-network","xml":"<outcome value='l3-netework'>\n","comments":"","outputs":1,"x":3314.1430587768555,"y":1519.761960029602,"z":"8068ded9.ccc26","wires":[["c92bdf18.2a6ef"]]},{"id":"ca74e487.dcffc8","type":"set","name":"set ss.resource-key.vf-module","xml":"<set>\n<parameter name='ss.resource-key.vf-module' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key[$kidx].value`' />\n","comments":"","x":3607.000015258789,"y":1296.6191234588623,"z":"8068ded9.ccc26","wires":[]},{"id":"c4bd3f7e.1c8b5","type":"set","name":"set ss.resource-key.vnfc","xml":"<set>\n<parameter name='ss.resource-key.vnfc' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key[$kidx].value`' />\n","comments":"","x":3593.0003051757812,"y":1385.6191215515137,"z":"8068ded9.ccc26","wires":[]},{"id":"5e1b7935.47e818","type":"set","name":"set ss.resource-key.connection-points","xml":"<set>\n<parameter name='ss.resource-key.connection-points' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key[$kidx].value`' />\n","comments":"","x":3635.143081665039,"y":1429.9048519134521,"z":"8068ded9.ccc26","wires":[]},{"id":"532ce28c.3776ac","type":"set","name":"set ss.resource-key.volume-group","xml":"<set>\n<parameter name='ss.resource-key.volume-group' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key[$kidx].value`' />\n","comments":"","x":3622.428939819336,"y":1341.1904468536377,"z":"8068ded9.ccc26","wires":[]},{"id":"8c93fc68.5c60f","type":"set","name":"set ss.resource-key.l-interface","xml":"<set>\n<parameter name='ss.resource-key.l-interface' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key[$kidx].value`' />\n","comments":"","x":3611.5715560913086,"y":1474.0477256774902,"z":"8068ded9.ccc26","wires":[]},{"id":"c92bdf18.2a6ef","type":"set","name":"set ss.resource-key.l3-network","xml":"<set>\n<parameter name='ss.resource-key.l3-network' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key[$kidx].value`' />\n","comments":"","x":3614.143165588379,"y":1520.9047985076904,"z":"8068ded9.ccc26","wires":[]},{"id":"1e19f844.9c0ec8","type":"switchNode","name":"switch: ss.resource-key.generic-vnf","xml":"<switch test=\"`$ss.resource-key.generic-vnf`\">\n\n\n","comments":"","outputs":1,"x":1004.285888671875,"y":1415.8333263397217,"z":"8068ded9.ccc26","wires":[["22799027.e77b3"]]},{"id":"22799027.e77b3","type":"outcome","name":"generic-vnf","xml":"<outcome value='generic-vnf'>\n","comments":"","outputs":1,"x":1258.3174285888672,"y":1415.5832529067993,"z":"8068ded9.ccc26","wires":[["e09c2dd9.09452"]]},{"id":"8d88acea.3f4ec","type":"outcome","name":"volume-group","xml":"<outcome value='volume-group'>\n","comments":"","outputs":1,"x":1275.2182846069336,"y":3825.154559135437,"z":"8068ded9.ccc26","wires":[["2d857037.91483"]]},{"id":"6b9d6bf5.bbd334","type":"outcome","name":"vnfc","xml":"<outcome value='vnfc'>\n","comments":"","outputs":1,"x":1189.9327087402344,"y":4289.536512374878,"z":"8068ded9.ccc26","wires":[["6e76a93a.5e0588"]]},{"id":"6caebe95.cbe41","type":"outcome","name":"connection-points","xml":"<outcome value='connection-points'>\n","comments":"","outputs":1,"x":1308.7895584106445,"y":4614.012176275253,"z":"8068ded9.ccc26","wires":[["b7dc825b.8fad"]]},{"id":"7b7e9ace.8bcdd4","type":"outcome","name":"l-interface","xml":"<outcome value='l-interface'>\n","comments":"","outputs":1,"x":1249.0278244018555,"y":5281.91733455658,"z":"8068ded9.ccc26","wires":[["dbc07084.be7f5"]]},{"id":"4c582c8b.e26454","type":"outcome","name":"l3-network","xml":"<outcome value='l3-netework'>\n","comments":"","outputs":1,"x":1267.741928100586,"y":6171.630530357361,"z":"8068ded9.ccc26","wires":[["b307f248.13b72"]]},{"id":"e09c2dd9.09452","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1043.74995803833,"y":1644.6191158294678,"z":"8068ded9.ccc26","wires":[["cdbfc33f.d52a7","b9bf0de4.48018","26afdd51.b0c082","908814ee.d3c7b8","c975e01d.234e2","70689778.84aa08"]]},{"id":"b7a3bc44.8c264","type":"outcome","name":"availability_zone_0","xml":"<outcome value='availability_zone_0'>","comments":"","outputs":1,"x":2346.4286346435547,"y":1263.6190452575684,"z":"8068ded9.ccc26","wires":[["edac9821.fddc48"]]},{"id":"edac9821.fddc48","type":"set","name":"set ss.param.availability-zone-0, index","xml":"<set>\n<parameter name='ss.param.availability-zone-0' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.availability-zone-0-index' value='`$bidx`' />","comments":"","x":2702.928611755371,"y":1263.369044303894,"z":"8068ded9.ccc26","wires":[]},{"id":"b6529101.23526","type":"save","name":"save availability-zone relationship","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf:relationship-list\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"availability-zone\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`$ss.availability-zone.related-link`\" />\n<!--\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"availability-zone\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"cloud-region.cloud-owner\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.cloud-region.cloud-owner`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$ss.param.aic-cloud-region`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"availability-zone.availability-zone-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$ss.param.availability-zone-0`\" />\n-->","comments":"","outputs":1,"x":2502.2857818603516,"y":2878.3335857391357,"z":"8068ded9.ccc26","wires":[["eff6042e.114c48","d6c66a3.e397a98","d3081601.d09528"]]},{"id":"eff6042e.114c48","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2751.5358123779297,"y":2878.6906328201294,"z":"8068ded9.ccc26","wires":[["7582c90f.6e1e58"]]},{"id":"d6c66a3.e397a98","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2757.7858238220215,"y":2929.440667152405,"z":"8068ded9.ccc26","wires":[["285dd4bf.b8919c"]]},{"id":"f35164aa.6c0648","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to save availability-zone relationship for generic-vnf in AnAI with availability-zone-name =' + $ss.param.as-number + '; ' + $error-message`\" />\n","comments":"","x":3127.404769897461,"y":2878.4763374328613,"z":"8068ded9.ccc26","wires":[]},{"id":"ef238623.db9c18","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to create availability-zone relationship because generic-vnf with vnf-id =' + $ss.param.vnf-id + ' is not found in AAI. ' + $error-message`\" />\n","comments":"","x":3127.976287841797,"y":2928.7145137786865,"z":"8068ded9.ccc26","wires":[]},{"id":"7582c90f.6e1e58","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2924.9643783569336,"y":2878.7621574401855,"z":"8068ded9.ccc26","wires":[["f35164aa.6c0648","7102730.01d478c"]]},{"id":"285dd4bf.b8919c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2927.8215942382812,"y":2929.6192989349365,"z":"8068ded9.ccc26","wires":[["ef238623.db9c18","7102730.01d478c"]]},{"id":"70689778.84aa08","type":"switchNode","name":"ss.param.availability-zone-0 != NULL","xml":"<switch test=\"`$ss.param.availability-zone-0 != ''`\">\n\n\n","comments":"","outputs":1,"x":1326.7736320495605,"y":2782.845057487488,"z":"8068ded9.ccc26","wires":[["2be7ec40.58f454"]]},{"id":"2be7ec40.58f454","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1563.2020149230957,"y":2783.273591041565,"z":"8068ded9.ccc26","wires":[["8780edee.3bd45"]]},{"id":"8780edee.3bd45","type":"execute","name":"ss.param.availability-zone-0 contains $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name='source' value='`$ss.param.availability-zone-0`' />\n <parameter name='target' value='$' />\n","comments":"","outputs":1,"x":1807.011562347412,"y":2783.6545734405518,"z":"8068ded9.ccc26","wires":[["4bde0e1f.c32f9","bf9059c2.977898"]]},{"id":"4bde0e1f.c32f9","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2063.011501312256,"y":2782.940100669861,"z":"8068ded9.ccc26","wires":[["95fe6fb0.516f"]]},{"id":"bf9059c2.977898","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2063.4883403778076,"y":2831.797315597534,"z":"8068ded9.ccc26","wires":[["f23554a3.c0f0c8"]]},{"id":"95fe6fb0.516f","type":"record","name":"availability_zone_0","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'ss.param.availability-zone-0 = ' + $ss.param.availability-zone-0`\"/>\n<parameter name=\"field3\" value=\"__SKIP availability-zone-0 update for generic-vnf in AnAI__\"/>","comments":"","outputs":1,"x":2253.535655975342,"y":2783.2263259887695,"z":"8068ded9.ccc26","wires":[[]]},{"id":"d3081601.d09528","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2759.0594635009766,"y":2981.6192302703857,"z":"8068ded9.ccc26","wires":[["abfe1557.59faf8"]]},{"id":"abfe1557.59faf8","type":"set","name":"set availability-zone-0-updated = true","xml":"<set>\n<parameter name='ss.availability-zone-0-updated' value='true' />\n","comments":"","x":3001.2022857666016,"y":2981.0476970672607,"z":"8068ded9.ccc26","wires":[]},{"id":"96bf497d.7c0b58","type":"save","name":"Rollback generic-vnf update","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf:relationship-list\" \n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \n\t\tAND related-to = availability-zone \n\t\tAND relationship.related-link = $tmp.related-link\" >","comments":"","outputs":1,"x":4930.714065551758,"y":2756.9527320861816,"z":"8068ded9.ccc26","wires":[["518876d5.324a98","4baf9d28.7def04","d702b2c2.0eebd"]]},{"id":"518876d5.324a98","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5167.964050292969,"y":2756.4526767730713,"z":"8068ded9.ccc26","wires":[["97aeb615.ee80a8"]]},{"id":"4baf9d28.7def04","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5174.214061737061,"y":2808.2027111053467,"z":"8068ded9.ccc26","wires":[["6bbd2d7b.4fd744"]]},{"id":"84056dd2.6ed0f","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":4981.142532348633,"y":2659.6545724868774,"z":"8068ded9.ccc26","wires":[]},{"id":"d702b2c2.0eebd","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5172.035308837891,"y":2856.4642810821533,"z":"8068ded9.ccc26","wires":[["5d7ab32b.2f0aac"]]},{"id":"e5f99cea.bb11a","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":4678.320991516113,"y":2616.047516822815,"z":"8068ded9.ccc26","wires":[["84056dd2.6ed0f","96bf497d.7c0b58","b1f6477e.336b08","49a4a067.9c036"]]},{"id":"97aeb615.ee80a8","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf availability-zone relationship from AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":5350.785247802734,"y":2756.5713510513306,"z":"8068ded9.ccc26","wires":[]},{"id":"6bbd2d7b.4fd744","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf availability-zone relationship because generic-vnf with vnf-id=' + $ss.param.vnf-id + ' is not found in AAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":5353.285247802734,"y":2807.821352958679,"z":"8068ded9.ccc26","wires":[]},{"id":"5d7ab32b.2f0aac","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of generic-vnf availability-zone relationship completed. '`\" />\n","comments":"","x":5355.785247802734,"y":2856.8213510513306,"z":"8068ded9.ccc26","wires":[]},{"id":"b1f6477e.336b08","type":"record","name":"record generic-vnf relationship ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK availability-zone relationship\"/>","comments":"","outputs":1,"x":4973.285232543945,"y":2615.154570579529,"z":"8068ded9.ccc26","wires":[[]]},{"id":"48bbb5d3.ee15fc","type":"switchNode","name":"ss.availability-zone-0-updated","xml":"<switch test=\"`$ss.availability-zone-0-updated`\">\n\n\n","comments":"","outputs":1,"x":4297.428375244141,"y":2616.0002546310425,"z":"8068ded9.ccc26","wires":[["caa3d3a3.6b923"]]},{"id":"caa3d3a3.6b923","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":4513.999664306641,"y":2616.42884349823,"z":"8068ded9.ccc26","wires":[["e5f99cea.bb11a"]]},{"id":"40e8fb80.4fe434","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4059.0478286743164,"y":2410.9524269104004,"z":"8068ded9.ccc26","wires":[["48bbb5d3.ee15fc","7102730.01d478c"]]},{"id":"49a4a067.9c036","type":"set","name":"set tmp.related-link","xml":"<set>\n<parameter name='tmp.related-link' \n\tvalue=\"`'/aai/v$/cloud-infrastructure/cloud-regions/cloud-region/' + \n\t$prop.cloud-region.cloud-owner + \n\t'/' + \n\t$ss.param.aic-cloud-region + \n\t'/availability-zones/availability-zone/' + \n\t$ss.param.availability-zone-0`\" /> ","comments":"","x":4901.380401611328,"y":2708.6194067001343,"z":"8068ded9.ccc26","wires":[]},{"id":"a393fb3d.925a18","type":"switchNode","name":"switch: ss.resource-key.vf-module","xml":"<switch test=\"`$ss.resource-key.vf-module`\">\n\n\n","comments":"","outputs":1,"x":993.0477256774902,"y":3363.7859120368958,"z":"8068ded9.ccc26","wires":[["212cb7fa.9054e8"]]},{"id":"212cb7fa.9054e8","type":"outcome","name":"vf-module","xml":"<outcome value='vf-module'>\n","comments":"","outputs":1,"x":1246.8410301208496,"y":3363.4166798591614,"z":"8068ded9.ccc26","wires":[["f0e5f31a.7af32"]]},{"id":"f0e5f31a.7af32","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1438.7499465942383,"y":3363.9762563705444,"z":"8068ded9.ccc26","wires":[["fff7178f.f6b028","e53f3779.d51718","61212051.1f615"]]},{"id":"12288572.4b441b","type":"switchNode","name":"switch: ss.resource-key.generic-vnf","xml":"<switch test=\"`$ss.resource-key.generic-vnf`\">\n\n\n","comments":"","outputs":1,"x":5412.858173370361,"y":3067.3337631225586,"z":"8068ded9.ccc26","wires":[["2de67d2d.eaa8c2"]]},{"id":"2de67d2d.eaa8c2","type":"outcome","name":"generic-vnf","xml":"<outcome value='generic-vnf'>\n","comments":"","outputs":1,"x":5666.8897132873535,"y":3067.0836896896362,"z":"8068ded9.ccc26","wires":[["1c8efb54.0d2e25"]]},{"id":"e9ef052a.050278","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":5172.8579177856445,"y":3067.762412071228,"z":"8068ded9.ccc26","wires":[["12288572.4b441b"]]},{"id":"310596e2.42bc4a","type":"switchNode","name":"switch: ss.resource-key.volume-group","xml":"<switch test=\"`$ss.resource-key.volume-group`\">\n\n\n","comments":"","outputs":1,"x":1000.2382659912109,"y":3824.571523666382,"z":"8068ded9.ccc26","wires":[["8d88acea.3f4ec"]]},{"id":"2d857037.91483","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1464.368953704834,"y":3825.5235500335693,"z":"8068ded9.ccc26","wires":[["be71747e.761fd8","2bb84732.4581c8"]]},{"id":"5a1044bf.9a5c0c","type":"switchNode","name":"switch: ss.resource-key.vf-module","xml":"<switch test=\"`$ss.resource-key.vf-module`\">\n\n\n","comments":"","outputs":1,"x":5263.715049743652,"y":3456.6194343566895,"z":"8068ded9.ccc26","wires":[["2202a5e9.5bf9ba"]]},{"id":"2202a5e9.5bf9ba","type":"outcome","name":"vf-module","xml":"<outcome value='vf-module'>\n","comments":"","outputs":1,"x":5507.508354187012,"y":3456.250202178955,"z":"8068ded9.ccc26","wires":[["3d611339.da18cc"]]},{"id":"5baa82ec.dffecc","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":5016.715049743652,"y":3282.6194343566895,"z":"8068ded9.ccc26","wires":[["e9ef052a.050278","5a1044bf.9a5c0c"]]},{"id":"61212051.1f615","type":"set","name":"set ss.selflink","xml":"<set>\n<parameter name='ss.selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + \n$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.service-information.service-instance-id + \n'/service-data/vnfs/vnf/' + \n$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vnf-information.vnf-id + \n'/vnf-data/vf-modules/vf-module/' + \n$ss.param.vf-module-id + \n'/vf-module-data/vf-module-topology/'`\" />\n","comments":"","x":1667.333381652832,"y":3496.237877845764,"z":"8068ded9.ccc26","wires":[]},{"id":"c0feb185.c5348","type":"switchNode","name":"switch: ss.resource-key.vnfc","xml":"<switch test=\"`$ss.resource-key.vnfc`\">\n\n\n","comments":"","outputs":1,"x":967.3056488037109,"y":4289.608148574829,"z":"8068ded9.ccc26","wires":[["6b9d6bf5.bbd334"]]},{"id":"f10164da.04f358","type":"switchNode","name":"switch: ss.resource-key.connection-points","xml":"<switch test=\"`$ss.resource-key.connection-points`\">\n\n\n","comments":"","outputs":1,"x":1014.3810577392578,"y":4614.28610253334,"z":"8068ded9.ccc26","wires":[["6caebe95.cbe41"]]},{"id":"40f8f017.2403a","type":"switchNode","name":"switch: ss.resource-key.l-interface","xml":"<switch test=\"`$ss.resource-key.l-interface`\">\n\n\n","comments":"","outputs":1,"x":995.7143478393555,"y":5281.61899471283,"z":"8068ded9.ccc26","wires":[["7b7e9ace.8bcdd4"]]},{"id":"4fcc988.d1ea868","type":"switchNode","name":"switch: ss.resource-key.l3-network","xml":"<switch test=\"`$ss.resource-key.l3-network`\">\n\n\n","comments":"","outputs":1,"x":1004.9998321533203,"y":6172.333167076111,"z":"8068ded9.ccc26","wires":[["4c582c8b.e26454"]]},{"id":"5819b51f.e401ec","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2080.2382049560547,"y":4058.3332056999207,"z":"8068ded9.ccc26","wires":[["270b03e3.958a6c","5baa82ec.dffecc"]]},{"id":"270b03e3.958a6c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'volume-group not found in AnAI with volume-group-id=' + $ss.param.volume-group-id + '; ' + $error-message`\" />\n","comments":"","x":2271.9048805236816,"y":4057.4047617912292,"z":"8068ded9.ccc26","wires":[]},{"id":"2da1393.d2f90c6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1758.4762687683105,"y":4334.190864562988,"z":"8068ded9.ccc26","wires":[["6b1f5790.4f6e98","4c4f8f77.4d5e8"]]},{"id":"1a8d278c.ff1d48","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1567.6667938232422,"y":4334.476434707642,"z":"8068ded9.ccc26","wires":[["2da1393.d2f90c6"]]},{"id":"1dadc5fe.f7b3aa","type":"switchNode","name":"switch: ss.resource-key.volume-group","xml":"<switch test=\"`$ss.resource-key.volume-group`\">\n\n\n","comments":"","outputs":1,"x":5108.714794158936,"y":3733.9529342651367,"z":"8068ded9.ccc26","wires":[["e0077fc8.8ce35"]]},{"id":"e0077fc8.8ce35","type":"outcome","name":"volume-group","xml":"<outcome value='volume-group'>\n","comments":"","outputs":1,"x":5365.508098602295,"y":3733.5837020874023,"z":"8068ded9.ccc26","wires":[["5688630b.c730bc"]]},{"id":"8bd683f0.0ff8a","type":"outcome","name":"vnfc","xml":"<outcome value='vnfc'>\n","comments":"","outputs":1,"x":5170.715019226074,"y":4010.6193017959595,"z":"8068ded9.ccc26","wires":[["35fbb6bd.1fe98a"]]},{"id":"b6293e2c.6351f","type":"switchNode","name":"switch: ss.resource-key.vnfc","xml":"<switch test=\"`$ss.resource-key.vnfc`\">\n\n\n","comments":"","outputs":1,"x":4948.087959289551,"y":4010.6909379959106,"z":"8068ded9.ccc26","wires":[["8bd683f0.0ff8a"]]},{"id":"6686e089.e3643","type":"comment","name":"UNASSIGN","info":"","comments":"","x":3334.7619705200195,"y":2942.61895942688,"z":"8068ded9.ccc26","wires":[]},{"id":"db46c464.eb3478","type":"outcome","name":"l-interface","xml":"<outcome value='l-interface'>\n","comments":"","outputs":1,"x":4883.857345581055,"y":4758.047756195068,"z":"8068ded9.ccc26","wires":[["5de01092.e1692"]]},{"id":"47592f63.65ff8","type":"switchNode","name":"switch: ss.resource-key.l-interface","xml":"<switch test=\"`$ss.resource-key.l-interface`\">\n\n\n","comments":"","outputs":1,"x":4650.543869018555,"y":4757.749416351318,"z":"8068ded9.ccc26","wires":[["db46c464.eb3478"]]},{"id":"1c0b6aa6.c62445","type":"outcome","name":"l3-network","xml":"<outcome value='l3-netework'>\n","comments":"","outputs":1,"x":4667.61856842041,"y":5527.523387908936,"z":"8068ded9.ccc26","wires":[["e665f06b.96f35"]]},{"id":"ecb6efb1.19ad9","type":"switchNode","name":"switch: ss.resource-key.l3-network","xml":"<switch test=\"`$ss.resource-key.l3-network`\">\n","comments":"","outputs":1,"x":4404.8764724731445,"y":5528.226024627686,"z":"8068ded9.ccc26","wires":[["1c0b6aa6.c62445"]]},{"id":"3b70420c.dc52de","type":"outcome","name":"l-interface","xml":"<outcome value='l-interface'>\n","comments":"","outputs":1,"x":4778.714279174805,"y":5166.619045257568,"z":"8068ded9.ccc26","wires":[["3199093e.07e6f6"]]},{"id":"16cd30f3.c7e79f","type":"switchNode","name":"switch: ss.resource-key.l-interface","xml":"<switch test=\"`$ss.resource-key.l-interface`\">\n\n\n","comments":"","outputs":1,"x":4545.400802612305,"y":5166.320705413818,"z":"8068ded9.ccc26","wires":[["3b70420c.dc52de"]]},{"id":"408e0f2b.32827","type":"set","name":"set ss.cp.related-link","xml":"<set>\n<parameter name='ss.cp.related-link' \n\tvalue=\"`'/aai/v$/network/vnfcs/vnfc/' + \n\t$ss.param.vnfc-name + \n\t'/cps/cp/' + \n\t$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.connection-point-id`\" />","comments":"","x":2628.666618347168,"y":4817.666753053665,"z":"8068ded9.ccc26","wires":[]},{"id":"998e8a86.fc6368","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2416.666435241699,"y":4817.999890565872,"z":"8068ded9.ccc26","wires":[["408e0f2b.32827","2f9cf95b.a79726"]]},{"id":"8725d510.792668","type":"set","name":"set ss.l3-network.related-link","xml":"<set>\n<parameter name='ss.l3-network.related-link' \n\tvalue=\"`'/aai/v$/network/l3-networks/l3-network/' + $ss.network[$n].netid`\" />","comments":"","x":1869.9998779296875,"y":6171.000082015991,"z":"8068ded9.ccc26","wires":[]},{"id":"2dbbe18d.9f749e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1631.666618347168,"y":6171.333102226257,"z":"8068ded9.ccc26","wires":[["8725d510.792668","4933575b.c49bc8"]]},{"id":"ed90b580.692598","type":"set","name":"set ss.availability-zone.related-link","xml":"<set>\n<parameter name='ss.availability-zone.related-link' \n\tvalue=\"`'/aai/v$/cloud-infrastructure/cloud-regions/cloud-region/' + \n\t$prop.cloud-region.cloud-owner + '/' + $ss.param.aic-cloud-region + \n\t'/availability-zones/availability-zone/' + \n\t$ss.param.availability-zone-0`\" />\n","comments":"","x":2502.7144470214844,"y":2831.857195854187,"z":"8068ded9.ccc26","wires":[]},{"id":"f23554a3.c0f0c8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2240.571601867676,"y":2832.2856311798096,"z":"8068ded9.ccc26","wires":[["ed90b580.692598","b6529101.23526"]]}] +[{"id":"544113b5.3263fc","type":"dgstart","name":"DGSTART","outputs":1,"x":104.99999237060547,"y":48.33333206176758,"z":"8068ded9.ccc26","wires":[["1404c879.0f3058"]]},{"id":"d2b6c403.dde578","type":"method","name":"method self-serve-aai-vf-module-put","xml":"<method rpc='self-serve-aai-vf-module-put' mode='sync'>\n","comments":"","outputs":1,"x":237.21428680419922,"y":99.50794315338135,"z":"8068ded9.ccc26","wires":[["28d4af4a.f0cdb"]]},{"id":"28d4af4a.f0cdb","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":124.89287567138672,"y":174.8571548461914,"z":"8068ded9.ccc26","wires":[["f217d7f2.7c62d8","d7b740fc.6831a","9669e0ca.90c8f","3b0adeb0.0eb082"]]},{"id":"1404c879.0f3058","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":377.85713958740234,"y":47.7618989944458,"z":"8068ded9.ccc26","wires":[["d2b6c403.dde578"]]},{"id":"f217d7f2.7c62d8","type":"switchNode","name":"switch: ss.capability-action","xml":"<switch test='`$ss.capability-action`'>\n","comments":"","outputs":1,"x":362.8571662902832,"y":227.08332681655884,"z":"8068ded9.ccc26","wires":[["2cbb79a9.c1eea6","d1160c49.4176","43c0a50b.639d9c"]]},{"id":"2cbb79a9.c1eea6","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":571.3571624755859,"y":227.33332681655884,"z":"8068ded9.ccc26","wires":[["5ae95a45.5debe4"]]},{"id":"5ae95a45.5debe4","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\t<parameter name=\"error-message\" value=\"ss.capability-action is null\" />\n","comments":"","x":727.2738342285156,"y":227.44442558288574,"z":"8068ded9.ccc26","wires":[]},{"id":"d1160c49.4176","type":"outcome","name":"assign","xml":"<outcome value='assign'>","comments":"","outputs":1,"x":571.1071586608887,"y":276.33333015441895,"z":"8068ded9.ccc26","wires":[["a7cac65d.e914d8"]]},{"id":"d7b740fc.6831a","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-aai-vfput.log' />\n","comments":"","outputs":1,"x":319.8214340209961,"y":1210.9523258209229,"z":"8068ded9.ccc26","wires":[[]]},{"id":"27de274a.88c098","type":"save","name":"update generic-vnf","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"ipv4-loopback0-address\" value='`$ss.param.ipv4-loopback0-address`' />\n","comments":"","outputs":1,"x":2390.6071739196777,"y":1895.2024598121643,"z":"8068ded9.ccc26","wires":[["3979b1d5.6677ee","7a101d16.ff8574","d5eb2c25.f7bf1"]]},{"id":"3979b1d5.6677ee","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2590.857204437256,"y":1895.559506893158,"z":"8068ded9.ccc26","wires":[["d2c445d.5b0a2b8"]]},{"id":"7a101d16.ff8574","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2597.1072158813477,"y":1946.3095412254333,"z":"8068ded9.ccc26","wires":[["b17925c2.0a32d8"]]},{"id":"d2c445d.5b0a2b8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf.ipv4-loopback0-address in AnAI with ipv4-loopback0-address=' + $ss.param.ipv4-loopback0-address + '; ' + $error-message`\" />\n","comments":"","x":2768.726161956787,"y":1895.34521150589,"z":"8068ded9.ccc26","wires":[]},{"id":"b17925c2.0a32d8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf because vnf-id =' + $ss.param.vnf-id + ' is not found in AAI. ' + $error-message`\" />\n","comments":"","x":2769.297679901123,"y":1945.583387851715,"z":"8068ded9.ccc26","wires":[]},{"id":"2bb84732.4581c8","type":"save","name":"update volume-group","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"volume-group\"\n\t\tkey=\"cloud-region.cloud-owner = $prop.cloud-owner \n\t\t\tAND cloud-region.cloud-region-id = $ss.param.aic-cloud-region \n\t\t\tAND cloud-region.cloud-owner = $prop.cloud-region.cloud-owner \n\t\t\tAND volume-group-id = $ss.param.volume-group-id\" >\n<parameter name=\"volume-group-name\" value='`$ss.param.volume-group-name`' />\n<parameter name=\"volume-group-id\" value='`$ss.param.volume-group-id`' />\n","comments":"","outputs":1,"x":1675.523941040039,"y":4008.690396785736,"z":"8068ded9.ccc26","wires":[["990ce64e.9c6758","603a3397.22016c"]]},{"id":"990ce64e.9c6758","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1883.523941040039,"y":4008.690396785736,"z":"8068ded9.ccc26","wires":[["4c1c1d74.1517f4"]]},{"id":"5f17c4a8.0dac0c","type":"save","name":"Rollback generic-vnf update","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"ipv4-loopback0-address\" value='`$tmp.aai.vnf.ipv4-loopback0-address`' />\n<parameter name=\"ipv4-oam-address\" value='`$tmp.aai.vnf.ipv4-oam-address`' />\n<parameter name=\"as-number\" value='`$tmp.aai.vnf.as-number`' />\n<parameter name=\"vlan-id-outer\" value='`$tmp.aai.vnf.vlan-id-outer`' />","comments":"","outputs":1,"x":6086.120388031006,"y":3156.1444816589355,"z":"8068ded9.ccc26","wires":[["cd5787f3.1adc68","11863adb.b84605","a0326122.57c02"]]},{"id":"cd5787f3.1adc68","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":6324.370372772217,"y":3155.644426345825,"z":"8068ded9.ccc26","wires":[["2f247634.a3188a"]]},{"id":"11863adb.b84605","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":6330.620384216309,"y":3207.3944606781006,"z":"8068ded9.ccc26","wires":[["d35c334f.7cfba"]]},{"id":"cdbfc33f.d52a7","type":"save","name":"get generic-vnf","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \"\n\tpfx=\"tmp.aai.vnf\" >\n\n","comments":"","outputs":1,"x":1271.607234954834,"y":1643.833396911621,"z":"8068ded9.ccc26","wires":[["7c2ec187.5782e","d05d85c0.e9b768"]]},{"id":"7c2ec187.5782e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1480.1428680419922,"y":1643.3333177566528,"z":"8068ded9.ccc26","wires":[["83c73051.c3a32"]]},{"id":"d05d85c0.e9b768","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1486.3927879333496,"y":1742.2262258529663,"z":"8068ded9.ccc26","wires":[["486062c6.b9a65c"]]},{"id":"3a748bec.06c474","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Encountered error to get generic-vnf with vnf-id=' + $ss.param.vnf-id + ' from AnAI'`\" />\n","comments":"","x":1922.5830726623535,"y":1688.8333368301392,"z":"8068ded9.ccc26","wires":[]},{"id":"f79a10de.f96ed","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'generic-vnf.vnf-name with vnf-id=' + $ss.param.vnf-id + ' not found in AAI. '`\" />\n","comments":"","x":1924.2975463867188,"y":1742.785894393921,"z":"8068ded9.ccc26","wires":[]},{"id":"fd633781.1bf9c8","type":"save","name":"update volume-group","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"volume-group\"\n\t\tkey=\"cloud-region.cloud-owner = $prop.cloud-owner \n\t\t\tAND cloud-region.cloud-region-id = $ss.param.aic-cloud-region \n\t\t\tAND cloud-region.cloud-owner = $prop.cloud-region.cloud-owner \n\t\t\tAND volume-group-id = $ss.param.volume-group-id\" >\n<parameter name=\"volume-group-name\" value='`$tmp.aai.volume-group.volume-group-name`' />","comments":"","outputs":1,"x":5744.548473358154,"y":3776.048948287964,"z":"8068ded9.ccc26","wires":[["e4fa8909.4dd298","e6cf9e60.36c21","1a42d1bd.7e06ae"]]},{"id":"4c1c1d74.1517f4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2078.2739334106445,"y":4008.690370082855,"z":"8068ded9.ccc26","wires":[["c1b8579b.771458","5baa82ec.dffecc"]]},{"id":"a7cac65d.e914d8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":724.8571548461914,"y":276.5833263397217,"z":"8068ded9.ccc26","wires":[["d16edcfb.a2216","81d44ce6.28309","1e19f844.9c0ec8","a393fb3d.925a18","c0feb185.c5348","f10164da.04f358","40f8f017.2403a","4fcc988.d1ea868","310596e2.42bc4a"]]},{"id":"d16edcfb.a2216","type":"set","name":"set resource-resolution-data.status, parm[].value = SUCCESS","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='SUCCESS' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].value' \n\tvalue='SUCCESS' />\n","comments":"","x":1096.2739639282227,"y":6504.09578037262,"z":"8068ded9.ccc26","wires":[]},{"id":"83c73051.c3a32","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1651.714454650879,"y":1643.3691110610962,"z":"8068ded9.ccc26","wires":[["531e351c.fe55bc","3a748bec.06c474"]]},{"id":"486062c6.b9a65c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1652.571533203125,"y":1742.3691110610962,"z":"8068ded9.ccc26","wires":[["531e351c.fe55bc","f79a10de.f96ed"]]},{"id":"531e351c.fe55bc","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.param.aai-vnf-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":2019.2858428955078,"y":1643.0834226608276,"z":"8068ded9.ccc26","wires":[]},{"id":"32c37498.d5047c","type":"for","name":"for bidx in param_length (VF-MODULE)","xml":"<for silentFailure='true' index=\"bidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`\" >\n","comments":"","outputs":1,"x":1288.7617721557617,"y":360.57139682769775,"z":"8068ded9.ccc26","wires":[["930c302f.87d9a"]]},{"id":"a1dc9b53.b001a8","type":"switchNode","name":"switch param[].name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].name`'>\n","comments":"","outputs":1,"x":2028.1904602050781,"y":881.0000171661377,"z":"8068ded9.ccc26","wires":[["eda336f5.cd2b28","7e8f8098.f3aac","82245a01.d9d5d8","9a172f5.4d216d","1635f3c2.d64ecc","7b910270.aa145c","a7a813a9.685fe","4a38191a.665008","68af07a3.16ce88","91d6d0e4.e2cc2","8f404e48.285a6","133a1544.17dc0b","ec83fc2d.1db1b","ca7c357a.02aee8","f5541fce.c9fc9","2b83386b.477738","593dcc0e.8e3134","26c08944.595276","982628c3.cc5ec8","b7a3bc44.8c264","10ef55c1.e5abda"]]},{"id":"eda336f5.cd2b28","type":"outcome","name":"vf_module_id","xml":"<outcome value='vf_module_id'>\n","comments":"","outputs":1,"x":2322.1904525756836,"y":451.8571300506592,"z":"8068ded9.ccc26","wires":[["45675dfb.d48574"]]},{"id":"45675dfb.d48574","type":"set","name":"set ss.param.vf-module-id","xml":"<set>\n<parameter name='ss.param.vf-module-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n","comments":"","x":2660.619083404541,"y":452.7142939567566,"z":"8068ded9.ccc26","wires":[]},{"id":"7e8f8098.f3aac","type":"outcome","name":"vf-module-name","xml":"<outcome value='vf-module-name'>\n","comments":"","outputs":1,"x":2333.6189918518066,"y":494.7142791748047,"z":"8068ded9.ccc26","wires":[["4f7b07c.b10dcf8"]]},{"id":"4f7b07c.b10dcf8","type":"set","name":"set ss.param.vf-module-name","xml":"<set>\n<parameter name='ss.param.vf-module-name' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n","comments":"","x":2671.9047470092773,"y":495.28573751449585,"z":"8068ded9.ccc26","wires":[]},{"id":"82245a01.d9d5d8","type":"outcome","name":"volume-group-name","xml":"<outcome value='volume-group-name'>\n","comments":"","outputs":1,"x":2342.9047241210938,"y":579.5714559555054,"z":"8068ded9.ccc26","wires":[["f508bd0c.d0dc8"]]},{"id":"f508bd0c.d0dc8","type":"set","name":"set ss.param.volume-group-name","xml":"<set>\n<parameter name='ss.param.volume-group-name' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n","comments":"","x":2685.9047470092773,"y":580.2857375144958,"z":"8068ded9.ccc26","wires":[]},{"id":"9a172f5.4d216d","type":"outcome","name":"aic-cloud-region","xml":"<outcome value='aic-cloud-region'>\n","comments":"","outputs":1,"x":2328.904773712158,"y":621.5714359283447,"z":"8068ded9.ccc26","wires":[["ffb319f8.7a0188"]]},{"id":"ffb319f8.7a0188","type":"set","name":"set ss.param.aic-cloud-region","xml":"<set>\n<parameter name='ss.param.aic-cloud-region' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n","comments":"","x":2674.190528869629,"y":622.1428942680359,"z":"8068ded9.ccc26","wires":[]},{"id":"1635f3c2.d64ecc","type":"outcome","name":"volume-group-id","xml":"<outcome value='volume-group-id'>\n","comments":"","outputs":1,"x":2334.1904678344727,"y":536.8571701049805,"z":"8068ded9.ccc26","wires":[["3675b335.dbe54c"]]},{"id":"3675b335.dbe54c","type":"set","name":"set ss.param.volume-group-id","xml":"<set>\n<parameter name='ss.param.volume-group-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n","comments":"","x":2672.4762229919434,"y":537.4286284446716,"z":"8068ded9.ccc26","wires":[]},{"id":"e53f3779.d51718","type":"save","name":"update vf-module","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vf-module\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \n\t\t\tAND vf-module.vf-module-id = $ss.param.vf-module-id \" >\n<parameter name=\"vf-module-name\" value='`$ss.param.vf-module-name`' />\n<parameter name=\"selflink\" value='`$ss.selflink`' />\n","comments":"","outputs":1,"x":1680.0717315673828,"y":3563.9885816574097,"z":"8068ded9.ccc26","wires":[["afb215fc.55dad8","656edb50.29a904"]]},{"id":"afb215fc.55dad8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1873.3217163085938,"y":3563.4885263442993,"z":"8068ded9.ccc26","wires":[["a40c159f.2d73b8"]]},{"id":"656edb50.29a904","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1879.5717277526855,"y":3615.2385606765747,"z":"8068ded9.ccc26","wires":[["f18e9019.bd386"]]},{"id":"b02b7bf8.605ee8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'vf-module not found in AnAI with vf-module-id=' + $ss.param.vf-module-id + $error-message`\" />\n","comments":"","x":2223.7383728027344,"y":3453.857497215271,"z":"8068ded9.ccc26","wires":[]},{"id":"fff7178f.f6b028","type":"save","name":"get vf-module","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vf-module\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \n\t\t\tAND vf-module.vf-module-id = $ss.param.vf-module-id \"\n\tpfx=\"tmp.aai.vfmdoule\" >\n\n","comments":"","outputs":1,"x":1666.3218803405762,"y":3363.5716791152954,"z":"8068ded9.ccc26","wires":[["33df8cfd.d9e204","7ca5615.b5bdba"]]},{"id":"33df8cfd.d9e204","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1855.571865081787,"y":3363.071623802185,"z":"8068ded9.ccc26","wires":[["3a7cd486.8bb8bc"]]},{"id":"7ca5615.b5bdba","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1863.2503471374512,"y":3419.1073150634766,"z":"8068ded9.ccc26","wires":[["946f5847.827928"]]},{"id":"a40c159f.2d73b8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2070.7502822875977,"y":3563.5600509643555,"z":"8068ded9.ccc26","wires":[["fb61694.f0eee98","e9ef052a.050278"]]},{"id":"f18e9019.bd386","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2073.6074981689453,"y":3614.4171924591064,"z":"8068ded9.ccc26","wires":[["8d0b8b24.ceee48","e9ef052a.050278"]]},{"id":"1fa7644b.ffce9c","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":6137.54887008667,"y":3110.5131034851074,"z":"8068ded9.ccc26","wires":[]},{"id":"a0326122.57c02","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":6328.441631317139,"y":3255.656030654907,"z":"8068ded9.ccc26","wires":[["16cfd259.a82d8e"]]},{"id":"1c8efb54.0d2e25","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":5828.72732925415,"y":3066.906047821045,"z":"8068ded9.ccc26","wires":[["1fa7644b.ffce9c","5f17c4a8.0dac0c","c5a30c47.4e84c"]]},{"id":"d11853ad.952b6","type":"save","name":"Rollback vf-module update","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vf-module\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \n\t\t\tAND vf-module.vf-module-id = $ss.param.vf-module-id \" >\n<parameter name=\"vf-module-name\" value='`$tmp.aai.vfmdoule.vf-module-name`' />\n<parameter name=\"selflink\" value='`$tmp.aai.vfmdoule.selflink`' />","comments":"","outputs":1,"x":5913.00138092041,"y":3500.2506856918335,"z":"8068ded9.ccc26","wires":[["900b7985.d88088","d5f6460b.1a20b8","98d622a6.0af76"]]},{"id":"900b7985.d88088","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":6151.251365661621,"y":3499.750630378723,"z":"8068ded9.ccc26","wires":[["dfd2d7b3.3404f8"]]},{"id":"d5f6460b.1a20b8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":6159.501377105713,"y":3542.5006647109985,"z":"8068ded9.ccc26","wires":[["c4a7132d.b535c"]]},{"id":"98d622a6.0af76","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":6156.322624206543,"y":3585.762234687805,"z":"8068ded9.ccc26","wires":[["a9be3e4a.97414"]]},{"id":"7b910270.aa145c","type":"outcome","name":"vnfc-name","xml":"<outcome value='vnfc-name'>","comments":"","outputs":1,"x":2312.238136291504,"y":666.6665997505188,"z":"8068ded9.ccc26","wires":[["71eabe9b.2eb27"]]},{"id":"71eabe9b.2eb27","type":"set","name":"set ss.param.vnfc-name, index","xml":"<set>\n<parameter name='ss.param.vnfc-name' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.vnfc-name-index' value='`$bidx`' />","comments":"","x":2678.3453636169434,"y":667.416672706604,"z":"8068ded9.ccc26","wires":[]},{"id":"87beb09a.09ea7","type":"comment","name":"vf-module params","info":"","comments":"","x":1945.9046783447266,"y":543.9523286819458,"z":"8068ded9.ccc26","wires":[]},{"id":"22799e1.3c96862","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to get vf-module in AnAI with vf-module-id = ' + $ss.param.vf-module-id + '; ' + $error-message`\" />\n","comments":"","x":2223.869354248047,"y":3399.0717306137085,"z":"8068ded9.ccc26","wires":[]},{"id":"3a7cd486.8bb8bc","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2027.5361137390137,"y":3363.5717878341675,"z":"8068ded9.ccc26","wires":[["22799e1.3c96862","e9ef052a.050278"]]},{"id":"946f5847.827928","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2027.7860946655273,"y":3419.0717668533325,"z":"8068ded9.ccc26","wires":[["b02b7bf8.605ee8","e9ef052a.050278"]]},{"id":"2f247634.a3188a","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf update in AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6507.191570281982,"y":3155.7631006240845,"z":"8068ded9.ccc26","wires":[]},{"id":"d35c334f.7cfba","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf update because generic-vnf with vnf-id=' + $ss.param.vnf-id + ' is not found in AAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6509.691570281982,"y":3207.013102531433,"z":"8068ded9.ccc26","wires":[]},{"id":"16cfd259.a82d8e","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of generic-vnf update completed. '`\" />\n","comments":"","x":6512.191570281982,"y":3256.0131006240845,"z":"8068ded9.ccc26","wires":[]},{"id":"fb61694.f0eee98","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update vf-module-name with vf-module-id = ' + $ss.param.vf-module-id + ' in AnAI; ' + $error-message`\" />\n","comments":"","x":2263.631217956543,"y":3588.881335258484,"z":"8068ded9.ccc26","wires":[]},{"id":"8d0b8b24.ceee48","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update vf-module-name with vf-module-id =' + $ss.param.vf-module-id + ' because vf-module is not found in AAI' + $error-message`\" />\n","comments":"","x":2264.881217956543,"y":3639.6313371658325,"z":"8068ded9.ccc26","wires":[]},{"id":"c1b8579b.771458","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to update volume-group with volume-group-id =' + $ss.param.volume-group-id + ' and volume-group-name = ' + $ss.param.volume-group-name + ' in AnAI.' + $error-message`\" />\n","comments":"","x":2271.4525833129883,"y":4009.0239968299866,"z":"8068ded9.ccc26","wires":[]},{"id":"dfd2d7b3.3404f8","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback volume-group with volume-group-id = ' + $ss.param.volume-group-id + ' in AnAI. MANUAL ROLLBACK IS REQUIRED!'`\" />\n","comments":"","x":6332.679847717285,"y":3499.215039253235,"z":"8068ded9.ccc26","wires":[]},{"id":"c4a7132d.b535c","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback vf-module update with vf-module-id=' + $ss.param.vf-module-id + ' because vf-module not found in AAI. MANUAL ROLLBACK IS REQUIRED!'`\" />\n","comments":"","x":6351.679847717285,"y":3541.715039253235,"z":"8068ded9.ccc26","wires":[]},{"id":"c5a30c47.4e84c","type":"record","name":"record generic-vnf ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK generic-vnf update\"/>","comments":"","outputs":1,"x":6091.691570281982,"y":3066.013101577759,"z":"8068ded9.ccc26","wires":[[]]},{"id":"68e7f351.24dd5c","type":"record","name":"record vf-module ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK vf-module update\"/>","comments":"","outputs":1,"x":5920.929847717285,"y":3455.7150382995605,"z":"8068ded9.ccc26","wires":[[]]},{"id":"3d611339.da18cc","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":5676.929817199707,"y":3455.965012550354,"z":"8068ded9.ccc26","wires":[["68e7f351.24dd5c","d11853ad.952b6"]]},{"id":"a9be3e4a.97414","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of vf-module update completed.'`\" />\n","comments":"","x":6339.42985534668,"y":3585.2150373458862,"z":"8068ded9.ccc26","wires":[]},{"id":"e4fa8909.4dd298","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5951.6198387146,"y":3776.524684906006,"z":"8068ded9.ccc26","wires":[["599748a7.318d38"]]},{"id":"e6cf9e60.36c21","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5959.869850158691,"y":3819.2747192382812,"z":"8068ded9.ccc26","wires":[["f362ddc.8a3be2"]]},{"id":"1a42d1bd.7e06ae","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5956.6910972595215,"y":3862.536289215088,"z":"8068ded9.ccc26","wires":[["a0127c63.8e7e9"]]},{"id":"599748a7.318d38","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to UPDATE volume-group with volume-group-id=' + $ss.param.volume-group-id + ' from AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6133.048320770264,"y":3775.9890937805176,"z":"8068ded9.ccc26","wires":[]},{"id":"f362ddc.8a3be2","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' volume-group with volume-group-id = ' + $ss.param.volume-group-id + ' not found in AAI. Consider silent success!'`\" />\n","comments":"","x":6152.048320770264,"y":3819.4890937805176,"z":"8068ded9.ccc26","wires":[]},{"id":"eb495056.566df","type":"record","name":"record volume-group ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK volume-group update\"/>","comments":"","outputs":1,"x":5783.298320770264,"y":3732.4890928268433,"z":"8068ded9.ccc26","wires":[[]]},{"id":"5688630b.c730bc","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":5528.298290252686,"y":3732.7390670776367,"z":"8068ded9.ccc26","wires":[["eb495056.566df","fd633781.1bf9c8"]]},{"id":"a0127c63.8e7e9","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of volume_group completed.'`\" />\n","comments":"","x":6139.798328399658,"y":3862.989091873169,"z":"8068ded9.ccc26","wires":[]},{"id":"6e76a93a.5e0588","type":"save","name":"save VNFC","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vnfc\"\n\t\tkey=\"vnfc.vnfc-name = $ss.param.vnfc-name\" >\n<parameter name=\"nfc-naming-code\" value='`$ss.param.nfc-naming-code`' />\n<parameter name=\"nfc-function\" value='`$ss.param.nfc-function`' />\n<parameter name=\"model-customization-id\" value='`$ss.param.vnfc-model-customization-uuid`' />\n<parameter name=\"model-invariant-id\" value='`$ss.param.vnfc-model-invariant-uuid`' />\n<parameter name=\"model-version-id\" value='`$ss.param.vnfc-model-version`' />\n","comments":"","outputs":1,"x":1367.1668243408203,"y":4289.833667755127,"z":"8068ded9.ccc26","wires":[["d8805021.0b8d1","1a8d278c.ff1d48"]]},{"id":"d8805021.0b8d1","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1556.1668243408203,"y":4289.833667755127,"z":"8068ded9.ccc26","wires":[["95d6f18e.5f4b6"]]},{"id":"95d6f18e.5f4b6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1758.9168167114258,"y":4289.833641052246,"z":"8068ded9.ccc26","wires":[["6b1f5790.4f6e98","4c4f8f77.4d5e8"]]},{"id":"6b1f5790.4f6e98","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create vnfc with vnfc-name =' + $ss.param.vnfc-name + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":1969.9526290893555,"y":4333.024550437927,"z":"8068ded9.ccc26","wires":[]},{"id":"a48e88aa.092058","type":"save","name":"delete vnfc","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vnfc\"\n\t\tkey=\"vnfc.vnfc-name = $ss.param.vnfc-name\" >","comments":"","outputs":1,"x":5535.810607910156,"y":4058.9404010772705,"z":"8068ded9.ccc26","wires":[["59027b46.55df94","f9986c81.947e2","e0dbfb82.72b598"]]},{"id":"59027b46.55df94","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5742.881973266602,"y":4059.4161376953125,"z":"8068ded9.ccc26","wires":[["6a891b2f.3bef34"]]},{"id":"f9986c81.947e2","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5751.131984710693,"y":4102.166172027588,"z":"8068ded9.ccc26","wires":[["56f5e4c5.27919c"]]},{"id":"e0dbfb82.72b598","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5747.953231811523,"y":4145.4277420043945,"z":"8068ded9.ccc26","wires":[["f4aa6356.d4417"]]},{"id":"d76a7da6.218ec","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to delete vnfc with vnfc-name=' + $ss.param.vnfc-name + ' from AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6180.310455322266,"y":4058.880546569824,"z":"8068ded9.ccc26","wires":[]},{"id":"56f5e4c5.27919c","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' vnfc with vnfc-name=' + $ss.param.vnfc-name + ' not found in AAI. Consider silent success!'`\" />\n","comments":"","x":5943.310455322266,"y":4102.380546569824,"z":"8068ded9.ccc26","wires":[]},{"id":"eac4f91c.88d308","type":"record","name":"record vnfc ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK vnfc save\"/>","comments":"","outputs":1,"x":5573.560455322266,"y":4010.38054561615,"z":"8068ded9.ccc26","wires":[[]]},{"id":"35fbb6bd.1fe98a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":5330.560405731201,"y":4010.0591592788696,"z":"8068ded9.ccc26","wires":[["eac4f91c.88d308","a48e88aa.092058"]]},{"id":"f4aa6356.d4417","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback (delete) of vnfc with vnfc-name=' + $ss.param.vnfc-name + ' completed.'`\" />\n","comments":"","x":5931.06046295166,"y":4145.880544662476,"z":"8068ded9.ccc26","wires":[]},{"id":"507e9295.282f3c","type":"save","name":"save connection-point","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"cp\"\n\t\tkey=\"cp.cp-instance-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.connection-point-id \n\t\tAND vnfc.vnfc-name = $ss.param.vnfc-name\" >\n<parameter name=\"cp-instance-id\" \n\tvalue='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.connection-point-id`' />","comments":"","outputs":1,"x":1392.6549758911133,"y":4722.262181758881,"z":"8068ded9.ccc26","wires":[["8ed5705c.d927b","97aa540.9690fb","bd216744.2e7838"]]},{"id":"8ed5705c.d927b","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1613.6549758911133,"y":4722.262181758881,"z":"8068ded9.ccc26","wires":[["f28efc5d.8666"]]},{"id":"f28efc5d.8666","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1807.4049682617188,"y":4722.262155056,"z":"8068ded9.ccc26","wires":[["faf8768d.f51cd8","f742ee1.12f671"]]},{"id":"faf8768d.f51cd8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create connection-point with cp-instance-id =' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.connection-point-id + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":1991.5836181640625,"y":4722.595781803131,"z":"8068ded9.ccc26","wires":[]},{"id":"b7dc825b.8fad","type":"for","name":"for i in vnfc-network-data_length","xml":"<for silentFailure='true' index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data_length`' >\n","comments":"","outputs":1,"x":1111.3691940307617,"y":4721.762137889862,"z":"8068ded9.ccc26","wires":[["507e9295.282f3c"]]},{"id":"896eec17.9592f","type":"save","name":"save vlan-tag","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vlan-tag\"\n\t\tkey=\"vlan-tag.vlan-tag-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid\" >\n<parameter name=\"vlan-tag-id\" \n\tvalue='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid`' />\n<parameter name=\"vlan-tag-role\" \n\tvalue='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-tag-description`' />\n<parameter name=\"vlan-id-outer\" \n\tvalue='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-tag-id`' />\n","comments":"","outputs":1,"x":2053.964241027832,"y":4818.345309019089,"z":"8068ded9.ccc26","wires":[["90f51779.f5ecd8","c0d3b01c.95c65","d246ced9.39264"]]},{"id":"90f51779.f5ecd8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2245.9643630981445,"y":4970.012247085571,"z":"8068ded9.ccc26","wires":[["1a95aa75.a66626"]]},{"id":"1a95aa75.a66626","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2437.71435546875,"y":4970.01222038269,"z":"8068ded9.ccc26","wires":[["8c5a2a75.a586c8","42ba330d.da466c"]]},{"id":"8c5a2a75.a586c8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create vlan-tag with vlan-tag-id =' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":2617.8930053710938,"y":4970.345847129822,"z":"8068ded9.ccc26","wires":[]},{"id":"4fa2d7bb.85da48","type":"save","name":"save l-interface","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"l-interface\"\n\t\tkey=\"l-interface.interface-name = $ss.param.oam-interface-name\n\t\tAND generic-vnf.vnf-id = $ss.param.vnf-id\" >\n<parameter name=\"interface-name\" value='`$ss.param.oam-interface-name`' />\n<parameter name=\"interface-role\" value='OAM' />\n","comments":"","outputs":1,"x":2010.8334274291992,"y":5397.713664054871,"z":"8068ded9.ccc26","wires":[["224508bf.eb67c8","3ac567fb.ca3628"]]},{"id":"224508bf.eb67c8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2183.833427429199,"y":5397.713664054871,"z":"8068ded9.ccc26","wires":[["438d491f.6bf318"]]},{"id":"438d491f.6bf318","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2353.5834197998047,"y":5397.71363735199,"z":"8068ded9.ccc26","wires":[["1dcac7c7.528ac8","42ba330d.da466c"]]},{"id":"1dcac7c7.528ac8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create l-interface with interface-name = ' + $ss.param.oam-interface-name + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":2537.7620697021484,"y":5398.047264099121,"z":"8068ded9.ccc26","wires":[]},{"id":"8b4528ae.6e6858","type":"for","name":"for j in in vlan-data_length","xml":"<for silentFailure='true' index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data_length`' >\n","comments":"","outputs":1,"x":1831.9284744262695,"y":4818.095413923264,"z":"8068ded9.ccc26","wires":[["896eec17.9592f"]]},{"id":"97aa540.9690fb","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1622.1192169189453,"y":4767.762180805206,"z":"8068ded9.ccc26","wires":[["f28efc5d.8666"]]},{"id":"9d96ee38.6074","type":"save","name":"delete vlan-tag","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vlan-tag\"\n\t\tkey=\"vlan-tag.vlan-tag-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid\" >","comments":"","outputs":1,"x":5547.858245849609,"y":4404.714177131653,"z":"8068ded9.ccc26","wires":[["7d9dc434.97b09c","dffb9406.38c898","9773800c.66ae6"]]},{"id":"7d9dc434.97b09c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5754.929611206055,"y":4405.189913749695,"z":"8068ded9.ccc26","wires":[["395726ee.6fab7a"]]},{"id":"dffb9406.38c898","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5763.1796226501465,"y":4447.93994808197,"z":"8068ded9.ccc26","wires":[["b21b98a6.1ff6e8"]]},{"id":"9773800c.66ae6","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5760.000869750977,"y":4491.201518058777,"z":"8068ded9.ccc26","wires":[["386810b6.14634"]]},{"id":"f8e8b37a.dee57","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to delete vlan-tag with vlan-tag-id =' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid + ' from AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6193.02498626709,"y":4403.987699985504,"z":"8068ded9.ccc26","wires":[]},{"id":"b21b98a6.1ff6e8","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' vlan-tag with vlan-tag-id =' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid + ' not found in AAI. Consider silent success!'`\" />\n","comments":"","x":5955.358093261719,"y":4448.1543226242065,"z":"8068ded9.ccc26","wires":[]},{"id":"a26d40b4.008af","type":"record","name":"record vlan-tag ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK vlan-tag save\"/>","comments":"","outputs":1,"x":5008.322776794434,"y":4355.43992805481,"z":"8068ded9.ccc26","wires":[[]]},{"id":"470ddb4b.ffbda4","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":4746.3227462768555,"y":4355.689902305603,"z":"8068ded9.ccc26","wires":[["a26d40b4.008af","c9166e05.d9ebc"]]},{"id":"386810b6.14634","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback (delete) of vlan-tag with vlan-tag-id =' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid + ' completed.'`\" />\n","comments":"","x":5943.108100891113,"y":4491.654320716858,"z":"8068ded9.ccc26","wires":[]},{"id":"f488880c.8a9458","type":"comment","name":"Deleting vnfc will delete connection-point (cp)","info":"","comments":"","x":1916.6429901123047,"y":4669.309711933136,"z":"8068ded9.ccc26","wires":[]},{"id":"c0d3b01c.95c65","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2254.285804748535,"y":5016.333622932434,"z":"8068ded9.ccc26","wires":[["1a95aa75.a66626"]]},{"id":"c9166e05.d9ebc","type":"for","name":"for i in vnfc-network-data_len","xml":"<for silentFailure='true' index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data_length`' >\n","comments":"","outputs":1,"x":5013.429954528809,"y":4405.285639762878,"z":"8068ded9.ccc26","wires":[["6be8fd40.579294"]]},{"id":"6be8fd40.579294","type":"for","name":"for j in in vlan-data_length","xml":"<for silentFailure='true' index='j' start='0' end='$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data_length`' >\n","comments":"","outputs":1,"x":5309.858543395996,"y":4405.142817497253,"z":"8068ded9.ccc26","wires":[["9d96ee38.6074"]]},{"id":"2f9cf95b.a79726","type":"save","name":"save cp relationship","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"vlan-tag:relationship-list\"\n\t\tkey=\"vlan-tag.vlan-tag-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"cp\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`$ss.cp.related-link`\" />","comments":"","outputs":1,"x":2627.2376022338867,"y":4866.238368272781,"z":"8068ded9.ccc26","wires":[["6ec967b.2c20298","11ee6506.d86e0b"]]},{"id":"6ec967b.2c20298","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2836.5233764648438,"y":4865.809748888016,"z":"8068ded9.ccc26","wires":[["a92d33a0.72b72"]]},{"id":"a92d33a0.72b72","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3028.5589179992676,"y":4865.809715509415,"z":"8068ded9.ccc26","wires":[["c5386653.0ce498","42ba330d.da466c"]]},{"id":"c5386653.0ce498","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create cp relationship for vlan-tag with vlan-tag-id =' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.vlan-data[$j].vlan-uuid + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":3208.7375679016113,"y":4866.143342256546,"z":"8068ded9.ccc26","wires":[]},{"id":"bd216744.2e7838","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1618.9524230957031,"y":4818.1908004283905,"z":"8068ded9.ccc26","wires":[["8b4528ae.6e6858"]]},{"id":"a7a813a9.685fe","type":"outcome","name":"oam-interface-name","xml":"<outcome value='oam-interface-name'>","comments":"","outputs":1,"x":2343.238121032715,"y":709.476101398468,"z":"8068ded9.ccc26","wires":[["82258c34.cd46e"]]},{"id":"82258c34.cd46e","type":"set","name":"set ss.param.oam-interface-name, index","xml":"<set>\n<parameter name='ss.param.oam-interface-name' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.oam-interface-name-index' value='`$bidx`' />","comments":"","x":2706.3453483581543,"y":710.2261743545532,"z":"8068ded9.ccc26","wires":[]},{"id":"4a38191a.665008","type":"outcome","name":"lo0-interface-name","xml":"<outcome value='=âlo0-interface-name'>","comments":"","outputs":1,"x":2339.952323913574,"y":752.19047498703,"z":"8068ded9.ccc26","wires":[["d1e11e09.3c6"]]},{"id":"d1e11e09.3c6","type":"set","name":"set ss.param.lo0-interface-name, index","xml":"<set>\n<parameter name='ss.param.lo0-interface-name' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.lo0-interface-name-index' value='`$bidx`' />","comments":"","x":2701.0595512390137,"y":752.9405479431152,"z":"8068ded9.ccc26","wires":[]},{"id":"4c4f8f77.4d5e8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4858.048778533936,"y":3553.6912155151367,"z":"8068ded9.ccc26","wires":[["1dadc5fe.f7b3aa","5baa82ec.dffecc"]]},{"id":"f742ee1.12f671","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":4703.0722579956055,"y":3806.166953086853,"z":"8068ded9.ccc26","wires":[["4c4f8f77.4d5e8","b6293e2c.6351f"]]},{"id":"42ba330d.da466c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4545.6201095581055,"y":4096.262167930603,"z":"8068ded9.ccc26","wires":[["f742ee1.12f671","470ddb4b.ffbda4"]]},{"id":"d246ced9.39264","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2244.618579864502,"y":4818.047558784485,"z":"8068ded9.ccc26","wires":[["998e8a86.fc6368"]]},{"id":"75214bc4.1bbaa4","type":"switchNode","name":"switch: ss.param.oam-interface-name != NULL","xml":"<switch test=\"`$ss.param.oam-interface-name != ''`\">\n","comments":"","outputs":1,"x":1358.1906280517578,"y":5397.285633087158,"z":"8068ded9.ccc26","wires":[["ccf9556c.f89178"]]},{"id":"ccf9556c.f89178","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":1621.1906509399414,"y":5397.785631656647,"z":"8068ded9.ccc26","wires":[["e90d4fd9.29402"]]},{"id":"c64f4bcd.8c05f8","type":"save","name":"save l-interface","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"l-interface\"\n\t\tkey=\"l-interface.interface-name = $ss.param.lo0-interface-name\n\t\tAND generic-vnf.vnf-id = $ss.param.vnf-id\" >\n<parameter name=\"interface-name\" value='`$ss.param.lo0-interface-name`' />\n<parameter name=\"interface-role\" value='loopback' />\n","comments":"","outputs":1,"x":1990.7620086669922,"y":5735.571220397949,"z":"8068ded9.ccc26","wires":[["4e5bd967.48b608","3510ef13.90d34"]]},{"id":"4e5bd967.48b608","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2163.762008666992,"y":5735.571220397949,"z":"8068ded9.ccc26","wires":[["c67b407c.73c1a"]]},{"id":"c67b407c.73c1a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2333.5120010375977,"y":5735.571193695068,"z":"8068ded9.ccc26","wires":[["f0cb5410.f03658","75ee05f7.6473bc"]]},{"id":"f0cb5410.f03658","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create l-interface with interface-name = ' + $ss.param.lo0-interface-name + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":2517.6906509399414,"y":5735.9048204422,"z":"8068ded9.ccc26","wires":[]},{"id":"3d7d185.baa90e8","type":"switchNode","name":"switch: ss.param.lo0-interface-name != NULL","xml":"<switch test=\"`$ss.param.lo0-interface-name != ''`\">\n","comments":"","outputs":1,"x":1335.5476608276367,"y":5735.571606636047,"z":"8068ded9.ccc26","wires":[["9e2c16cf.876d78"]]},{"id":"9e2c16cf.876d78","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":1598.5476837158203,"y":5736.071605205536,"z":"8068ded9.ccc26","wires":[["4852b9cd.b1f178"]]},{"id":"dbc07084.be7f5","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1060.9048385620117,"y":5397.714184761047,"z":"8068ded9.ccc26","wires":[["75214bc4.1bbaa4","3d7d185.baa90e8"]]},{"id":"68af07a3.16ce88","type":"outcome","name":"ipv4-oam-address","xml":"<outcome value='ipv4-oam-address'>","comments":"","outputs":1,"x":2335.7143173217773,"y":796.3809504508972,"z":"8068ded9.ccc26","wires":[["999cc01d.893d6"]]},{"id":"999cc01d.893d6","type":"set","name":"set ss.param.ipv4-oam-address, index","xml":"<set>\n<parameter name='ss.param.ipv4-oam-address' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.ipv4-oam-address-index' value='`$bidx`' />","comments":"","x":2699.678642272949,"y":797.1309986114502,"z":"8068ded9.ccc26","wires":[]},{"id":"10ef55c1.e5abda","type":"outcome","name":"loopback0_ipv4_address","xml":"<outcome value='loopback0_ipv4_address'>","comments":"","outputs":1,"x":2358.1428451538086,"y":880.6666750907898,"z":"8068ded9.ccc26","wires":[["2d6cf27a.9e02fe"]]},{"id":"2d6cf27a.9e02fe","type":"set","name":"set ss.param.loopback0-ipv4-address, index","xml":"<set>\n<parameter name='ss.param.loopback0-ipv4-address' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.loopback0-ipv4-address-index' value='`$bidx`' />","comments":"","x":2719.3930130004883,"y":880.2738108634949,"z":"8068ded9.ccc26","wires":[]},{"id":"ae3cb914.642ab8","type":"save","name":"delete l-interface (oam)","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"l-interface\"\n\t\tkey=\"l-interface.interface-name = $ss.param.oam-interface-name\n\t\tAND generic-vnf.vnf-id = $ss.param.vnf-id\" >","comments":"","outputs":1,"x":5804.525096893311,"y":4807.285605430603,"z":"8068ded9.ccc26","wires":[["88e8efea.35169","99eafa73.541068","3d9cbb53.db7764"]]},{"id":"88e8efea.35169","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":6012.596462249756,"y":4807.761342048645,"z":"8068ded9.ccc26","wires":[["ba1b62f2.0c98"]]},{"id":"99eafa73.541068","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":6020.846473693848,"y":4850.51137638092,"z":"8068ded9.ccc26","wires":[["46d515d3.0378ac"]]},{"id":"3d9cbb53.db7764","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":6017.667720794678,"y":4893.772946357727,"z":"8068ded9.ccc26","wires":[["f05862ba.8abb5"]]},{"id":"8c6a392a.c8ded8","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to delete l-interface.interface-name = ' + $ss.param.oam-interface-name + ' from AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6455.692127227783,"y":4808.225975036621,"z":"8068ded9.ccc26","wires":[]},{"id":"46d515d3.0378ac","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' l-interface.interface-name = ' + $ss.param.oam-interface-name + ' not found in AAI. Consider silent success!'`\" />\n","comments":"","x":6213.02494430542,"y":4850.725750923157,"z":"8068ded9.ccc26","wires":[]},{"id":"cf73d4b9.868fc8","type":"record","name":"record OAM l-interface ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK l-interface (oam) save\"/>","comments":"","outputs":1,"x":5321.274875640869,"y":4758.868654251099,"z":"8068ded9.ccc26","wires":[[]]},{"id":"5de01092.e1692","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":5061.274826049805,"y":4758.547267913818,"z":"8068ded9.ccc26","wires":[["cf73d4b9.868fc8","8981860f.667448"]]},{"id":"f05862ba.8abb5","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback (delete) of l-interface with interface-name = ' + $ss.param.oam-interface-name + ' completed.'`\" />\n","comments":"","x":6200.774951934814,"y":4894.225749015808,"z":"8068ded9.ccc26","wires":[]},{"id":"8981860f.667448","type":"switchNode","name":"switch: ss.param.oam-interface-name != NULL","xml":"<switch test=\"`$ss.param.oam-interface-name != ''`\">\n","comments":"","outputs":1,"x":5356.525089263916,"y":4808.142771720886,"z":"8068ded9.ccc26","wires":[["48c1dee3.50f7f"]]},{"id":"48c1dee3.50f7f","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":5615.382266998291,"y":4807.142771720886,"z":"8068ded9.ccc26","wires":[["ae3cb914.642ab8"]]},{"id":"6fca57ea.3397e8","type":"save","name":"delete l-interface (oam)","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"l-interface\"\n\t\tkey=\"l-interface.interface-name = $ss.param.lo0-interface-name\n\t\tAND generic-vnf.vnf-id = $ss.param.vnf-id\" >","comments":"","outputs":1,"x":5709.619335174561,"y":5214.714804649353,"z":"8068ded9.ccc26","wires":[["3fbb9856.3afac8","21a87462.f4342c","d4c7d7a5.d0fbd8"]]},{"id":"3fbb9856.3afac8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5917.690700531006,"y":5215.190541267395,"z":"8068ded9.ccc26","wires":[["e857a6e0.098918"]]},{"id":"21a87462.f4342c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5925.940711975098,"y":5257.94057559967,"z":"8068ded9.ccc26","wires":[["cc064c02.22a01"]]},{"id":"d4c7d7a5.d0fbd8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5922.761959075928,"y":5301.202145576477,"z":"8068ded9.ccc26","wires":[["1e79dbee.93e174"]]},{"id":"9c8d41ed.27a7c","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to delete l-interface.interface-name = ' + $ss.param.lo0-interface-name + ' from AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6372.4523277282715,"y":5213.321630477905,"z":"8068ded9.ccc26","wires":[]},{"id":"cc064c02.22a01","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' l-interface.interface-name = ' + $ss.param.lo0-interface-name + ' not found in AAI. Consider silent success!'`\" />\n","comments":"","x":6118.11918258667,"y":5258.154950141907,"z":"8068ded9.ccc26","wires":[]},{"id":"a5d6d0ff.1e13d","type":"record","name":"record LOOPBACK l-interface ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK l-interface (oam) save\"/>","comments":"","outputs":1,"x":5250.369113922119,"y":5166.297853469849,"z":"8068ded9.ccc26","wires":[[]]},{"id":"3199093e.07e6f6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":4966.369064331055,"y":5165.976467132568,"z":"8068ded9.ccc26","wires":[["a5d6d0ff.1e13d","3475a838.9659a8"]]},{"id":"1e79dbee.93e174","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback (delete) of l-interface with interface-name = ' + $ss.param.lo0-interface-name + ' completed.'`\" />\n","comments":"","x":6105.869190216064,"y":5301.654948234558,"z":"8068ded9.ccc26","wires":[]},{"id":"b614f632.2d7158","type":"outcome","name":"true","xml":"<outcome value='true'>","comments":"","outputs":1,"x":5520.476505279541,"y":5214.571970939636,"z":"8068ded9.ccc26","wires":[["6fca57ea.3397e8"]]},{"id":"3475a838.9659a8","type":"switchNode","name":"switch: ss.param.lo0-interface-name != NULL","xml":"<switch test=\"`$ss.param.lo0-interface-name != ''`\">\n","comments":"","outputs":1,"x":5259.619167327881,"y":5215.14351940155,"z":"8068ded9.ccc26","wires":[["b614f632.2d7158"]]},{"id":"75ee05f7.6473bc","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4416.81022644043,"y":4415.476540565491,"z":"8068ded9.ccc26","wires":[["42ba330d.da466c","47592f63.65ff8"]]},{"id":"3ac567fb.ca3628","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2191.9047927856445,"y":5439.999988555908,"z":"8068ded9.ccc26","wires":[["438d491f.6bf318"]]},{"id":"3510ef13.90d34","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2170.7619094848633,"y":5778.142643928528,"z":"8068ded9.ccc26","wires":[["c67b407c.73c1a"]]},{"id":"5713a33e.10386c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4285.38126373291,"y":4891.666825294495,"z":"8068ded9.ccc26","wires":[["75ee05f7.6473bc","16cd30f3.c7e79f"]]},{"id":"91d6d0e4.e2cc2","type":"outcome","name":"ipv4-oam-address-prefix","xml":"<outcome value='ipv4-oam-address-prefix'>","comments":"","outputs":1,"x":2355.7143173217773,"y":838.3810153007507,"z":"8068ded9.ccc26","wires":[["8eb30e9d.19d4b"]]},{"id":"8eb30e9d.19d4b","type":"set","name":"set ss.param.ipv4-oam-address-prefix, index","xml":"<set>\n<parameter name='ss.param.ipv4-oam-address-prefix' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.ipv4-oam-address-prefix-index' value='`$bidx`' />","comments":"","x":2718.3928871154785,"y":838.5596051216125,"z":"8068ded9.ccc26","wires":[]},{"id":"e90d4fd9.29402","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1781.0476303100586,"y":5397.285304069519,"z":"8068ded9.ccc26","wires":[["4fa2d7bb.85da48","f10bbb20.7f4fc8"]]},{"id":"4852b9cd.b1f178","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1760.1904983520508,"y":5736.142643928528,"z":"8068ded9.ccc26","wires":[["c64f4bcd.8c05f8","e8551427.6b64e8"]]},{"id":"f10bbb20.7f4fc8","type":"save","name":"save l3-interface-ipv4-address","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"l3-interface-ipv4-address-list\"\n\t\tkey=\"l3-interface-ipv4-address-list.l3-interface-ipv4-address = $ss.param.ipv4-oam-address \n\t\tAND generic-vnf.vnf-id = $ss.param.vnf-id \n\t\tAND l-interface.interface-name = $ss.param.oam-interface-name\" >\n<parameter name=\"l3-interface-ipv4-address\" value='`$ss.param.ipv4-oam-address`' />\n<parameter name=\"l3-interface-ipv4-prefix-length\" value='`$ss.param.ipv4-oam-address-prefix`' />\n","comments":"","outputs":1,"x":2057.619125366211,"y":5542.999936103821,"z":"8068ded9.ccc26","wires":[["a8aab5fb.8eca68","93c4ee1c.dd6d6"]]},{"id":"a8aab5fb.8eca68","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2278.619125366211,"y":5542.999936103821,"z":"8068ded9.ccc26","wires":[["402e134b.ab039c"]]},{"id":"402e134b.ab039c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2448.3691177368164,"y":5542.99990940094,"z":"8068ded9.ccc26","wires":[["c292c4a4.2a1388","75ee05f7.6473bc"]]},{"id":"c292c4a4.2a1388","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create l3-interface-ipv4-address-list with l3-interface-ipv4-address = ' + $ss.param.ipv4-oam-address + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":2632.54776763916,"y":5543.333536148071,"z":"8068ded9.ccc26","wires":[]},{"id":"93c4ee1c.dd6d6","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2286.6904907226562,"y":5585.286260604858,"z":"8068ded9.ccc26","wires":[["402e134b.ab039c"]]},{"id":"e8551427.6b64e8","type":"save","name":"save l3-interface-ipv4-address","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"l3-interface-ipv4-address-list\"\n\t\tkey=\"l3-interface-ipv4-address-list.l3-interface-ipv4-address = $ss.param.ipv4-loopback0-address \n\t\tAND generic-vnf.vnf-id = $ss.param.vnf-id \n\t\tAND l-interface.interface-name = $ss.param.lo0-interface-name\" >\n<parameter name=\"l3-interface-ipv4-address\" value='`$ss.param.ipv4-loopback0-address`' />\n<parameter name=\"l3-interface-ipv4-prefix-length\" value='32' />\n","comments":"","outputs":1,"x":2034.6191024780273,"y":5852.713961601257,"z":"8068ded9.ccc26","wires":[["2cfc8fb5.b92c4","a3b0bac1.66c468"]]},{"id":"2cfc8fb5.b92c4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2255.6191024780273,"y":5852.713961601257,"z":"8068ded9.ccc26","wires":[["7b9df773.727b78"]]},{"id":"7b9df773.727b78","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2425.369094848633,"y":5852.7139348983765,"z":"8068ded9.ccc26","wires":[["7a983387.d8620c","5713a33e.10386c"]]},{"id":"7a983387.d8620c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create l3-interface-ipv4-address-list with l3-interface-ipv4-address = ' + $ss.param.loopback0-ipv4-address + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":2609.5477447509766,"y":5853.047561645508,"z":"8068ded9.ccc26","wires":[]},{"id":"a3b0bac1.66c468","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2263.6904678344727,"y":5895.000286102295,"z":"8068ded9.ccc26","wires":[["7b9df773.727b78"]]},{"id":"1bae6e26.b48422","type":"comment","name":"Delete l-interface will delete l3-interface-ipv4-address-list","info":"","comments":"","x":4662.333908081055,"y":4894.429103851318,"z":"8068ded9.ccc26","wires":[]},{"id":"930c302f.87d9a","type":"execute","name":"param[].name startsWith 'sriov'","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='startsWith' emitsOutcome='true' >\n <parameter name=\"source\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].name`\" />\n\t<parameter name=\"target\" value=\"sriov\"/>\n","comments":"","outputs":1,"x":1611.0475387573242,"y":360.666711807251,"z":"8068ded9.ccc26","wires":[["d36b238f.c2eeb","136cf5dd.278b9a"]]},{"id":"d36b238f.c2eeb","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1821.2975387573242,"y":360.916711807251,"z":"8068ded9.ccc26","wires":[["71ba3468.524d5c"]]},{"id":"71ba3468.524d5c","type":"execute","name":"param[].name endsWith 'sriov'","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='endsWith' emitsOutcome='true' >\n <parameter name=\"source\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].name`\" />\n\t<parameter name=\"target\" value=\"_net_id\"/>\n","comments":"","outputs":1,"x":2038.1903686523438,"y":360.6667175292969,"z":"8068ded9.ccc26","wires":[["f28d4124.551b2"]]},{"id":"f28d4124.551b2","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2248.1902389526367,"y":360.2381229400635,"z":"8068ded9.ccc26","wires":[["892a94df.748008"]]},{"id":"b1277757.3b3778","type":"set","name":"set ss.network[$nidx].netid","xml":"<set>\n<parameter name='ss.network[$nidx].netid' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n","comments":"","x":2599.618574142456,"y":359.66666984558105,"z":"8068ded9.ccc26","wires":[]},{"id":"8447582e.713cf8","type":"set","name":"nidx++","xml":"<set>\n<parameter name='nidx' value='`$nidx + 1`' />\n","comments":"","x":2539.618682861328,"y":403.09529304504395,"z":"8068ded9.ccc26","wires":[]},{"id":"823c2354.c6c5","type":"set","name":"set nidx = 0","xml":"<set>\n<parameter name='nidx' value='0' />\n","comments":"","x":1208.190185546875,"y":277.2380828857422,"z":"8068ded9.ccc26","wires":[]},{"id":"892a94df.748008","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2386.761890411377,"y":360.52386569976807,"z":"8068ded9.ccc26","wires":[["b1277757.3b3778","8447582e.713cf8"]]},{"id":"136cf5dd.278b9a","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1822.4762840270996,"y":403.80954360961914,"z":"8068ded9.ccc26","wires":[["a1dc9b53.b001a8"]]},{"id":"b307f248.13b72","type":"for","name":"for n in nidx","xml":"<for silentFailure='true' index='n' start='0' end='`$nidx`' >\n","comments":"","outputs":1,"x":1454.952407836914,"y":6171.667496681213,"z":"8068ded9.ccc26","wires":[["2dbbe18d.9f749e"]]},{"id":"4933575b.c49bc8","type":"save","name":"save l3-network relationships for VNF","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf:relationship-list\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`$ss.l3-network.related-link`\" />\n<!--\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$ss.network[$n].netid`\" />\n-->","comments":"","outputs":1,"x":1898.1426467895508,"y":6219.333839416504,"z":"8068ded9.ccc26","wires":[["5f1ee172.8d495","f18a8eef.b86b4"]]},{"id":"11ee6506.d86e0b","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2845.761329650879,"y":4910.857924699783,"z":"8068ded9.ccc26","wires":[["a92d33a0.72b72"]]},{"id":"5f1ee172.8d495","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2173.857063293457,"y":6220.048072814941,"z":"8068ded9.ccc26","wires":[["61369a55.267e34"]]},{"id":"61369a55.267e34","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2370.6070556640625,"y":6220.048046112061,"z":"8068ded9.ccc26","wires":[["b7e15b92.6b9328","a7686c4c.48a2b"]]},{"id":"b7e15b92.6b9328","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`' Failed to create generic-vnf releationship for l3-network with network-id =' + $ss.network[$n].netid + ' in AnAI. ' + $error-message`\" />\n","comments":"","x":2550.7857055664062,"y":6220.381672859192,"z":"8068ded9.ccc26","wires":[]},{"id":"f18a8eef.b86b4","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2183.095016479492,"y":6265.096248626709,"z":"8068ded9.ccc26","wires":[["61369a55.267e34"]]},{"id":"48809820.da73e8","type":"save","name":"delete VNF l3-network relationships","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf:relationship-list\" \n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \n\t\tAND related-to = l3-network \n\t\tAND relationship.related-link = $tmp.related-link\" >","comments":"","outputs":1,"x":5329.524971008301,"y":5635.285350322723,"z":"8068ded9.ccc26","wires":[["88a59c9a.2b00b","de38bac1.0b21e8","71f6c03f.9af32"]]},{"id":"88a59c9a.2b00b","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5592.596336364746,"y":5635.761086940765,"z":"8068ded9.ccc26","wires":[["7d871113.d9d1b"]]},{"id":"de38bac1.0b21e8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5600.846347808838,"y":5678.511121273041,"z":"8068ded9.ccc26","wires":[["ea95c949.66b368"]]},{"id":"71f6c03f.9af32","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5597.667594909668,"y":5721.772691249847,"z":"8068ded9.ccc26","wires":[["ad0bb67e.3bf9b8"]]},{"id":"ffea8954.bee348","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to delete VNF l3-network relationship for generic-vnf.vnfid = ' + $ss.param.vnf-id + ' from AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6059.02445602417,"y":5634.891801357269,"z":"8068ded9.ccc26","wires":[]},{"id":"ea95c949.66b368","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' l3-network relationship with related-path = ' + $tmp.related-path + ' not found in AAI. Consider silent success!'`\" />\n","comments":"","x":5793.02481842041,"y":5678.725495815277,"z":"8068ded9.ccc26","wires":[]},{"id":"fc646437.90d098","type":"record","name":"record VNF l3-network relationship ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK VNF l3-network relationship\"/>","comments":"","outputs":1,"x":5173.512390136719,"y":5526.345165252686,"z":"8068ded9.ccc26","wires":[[]]},{"id":"e665f06b.96f35","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":4855.9888916015625,"y":5527.166730880737,"z":"8068ded9.ccc26","wires":[["fc646437.90d098","2f789ede.6f8722"]]},{"id":"ad0bb67e.3bf9b8","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback (delete) of generic-vnf l3-network relationships completed.'`\" />\n","comments":"","x":5780.774826049805,"y":5722.2254939079285,"z":"8068ded9.ccc26","wires":[]},{"id":"2f789ede.6f8722","type":"for","name":"for n in nidx","xml":"<for silentFailure='true' index='n' start='0' end='`$nidx`' >\n","comments":"","outputs":1,"x":5061.143711090088,"y":5587.381254673004,"z":"8068ded9.ccc26","wires":[["48809820.da73e8","4faa8555.6c3d7c"]]},{"id":"a7686c4c.48a2b","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4141.334602355957,"y":5268.095029830933,"z":"8068ded9.ccc26","wires":[["5713a33e.10386c","ecb6efb1.19ad9"]]},{"id":"603a3397.22016c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1893.3812103271484,"y":4058.47643327713,"z":"8068ded9.ccc26","wires":[["5819b51f.e401ec"]]},{"id":"8f404e48.285a6","type":"outcome","name":"aai-vf-module-put","xml":"<outcome value='aai-vf-module-put'>\n","comments":"","outputs":1,"x":2342.5713500976562,"y":1310.7143058776855,"z":"8068ded9.ccc26","wires":[["11703c8e.d0e733"]]},{"id":"51b14fbd.75b3e","type":"set","name":"set ss.param.aai-vf-module-put-index","xml":"<set>\n<parameter name='ss.param.aai-vf-module-put-index' value='`$bidx`' />\n","comments":"","x":2784.714401245117,"y":1310.5714855194092,"z":"8068ded9.ccc26","wires":[]},{"id":"43c0a50b.639d9c","type":"outcome","name":"unassign","xml":"<outcome value='unassign'>","comments":"","outputs":1,"x":469.1074523925781,"y":798.2615756988525,"z":"8068ded9.ccc26","wires":[["255c7c9f.01ed14"]]},{"id":"81d44ce6.28309","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":1025.5951538085938,"y":276.8809232711792,"z":"8068ded9.ccc26","wires":[["823c2354.c6c5","32c37498.d5047c","385ba57a.8df6da"]]},{"id":"11ac6461.2c5e7c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":3352.3096084594727,"y":2988.3092212677,"z":"8068ded9.ccc26","wires":[["b6293e2c.6351f","470ddb4b.ffbda4","ecb6efb1.19ad9","47592f63.65ff8","16cd30f3.c7e79f"]]},{"id":"255c7c9f.01ed14","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":632.1905670166016,"y":797.7618198394775,"z":"8068ded9.ccc26","wires":[["11ac6461.2c5e7c","81d44ce6.28309","15d745ea.7fb6ba","b07947b2.6ba8c8"]]},{"id":"15d745ea.7fb6ba","type":"set","name":"set tmp.return-failure = true","xml":"<set>\n<parameter name='tmp.return-failure' value ='true' />","comments":"","x":1116.047607421875,"y":796.3332469463348,"z":"8068ded9.ccc26","wires":[]},{"id":"19fd6e4b.a54a02","type":"switchNode","name":"switch tmp.return-failure","xml":"<switch test='`$tmp.return-failure`'>\n","comments":"","outputs":1,"x":6194.024250030518,"y":4233.785830497742,"z":"8068ded9.ccc26","wires":[["e9f416b9.bf4c78"]]},{"id":"6a891b2f.3bef34","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":5944.691295623779,"y":4058.7855892181396,"z":"8068ded9.ccc26","wires":[["d76a7da6.218ec","19fd6e4b.a54a02"]]},{"id":"e9f416b9.bf4c78","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":6387.691581726074,"y":4233.7856702804565,"z":"8068ded9.ccc26","wires":[["bcf9460c.c83dd8"]]},{"id":"db5e8538.a78a48","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$error-message`' />\n","comments":"","x":6762.691753387451,"y":4285.1189222335815,"z":"8068ded9.ccc26","wires":[]},{"id":"395726ee.6fab7a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":5954.024467468262,"y":4404.7858057022095,"z":"8068ded9.ccc26","wires":[["4031474c.e3e268","f8e8b37a.dee57"]]},{"id":"4031474c.e3e268","type":"switchNode","name":"switch tmp.return-failure","xml":"<switch test='`$tmp.return-failure`'>\n","comments":"","outputs":1,"x":6203.357421875,"y":4579.7860469818115,"z":"8068ded9.ccc26","wires":[["f7d354b0.a531b8"]]},{"id":"ba1b62f2.0c98","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":6237.691120147705,"y":4808.1190395355225,"z":"8068ded9.ccc26","wires":[["d37f00eb.31762","8c6a392a.c8ded8"]]},{"id":"d37f00eb.31762","type":"switchNode","name":"switch tmp.return-failure","xml":"<switch test='`$tmp.return-failure`'>\n","comments":"","outputs":1,"x":6487.024074554443,"y":4979.1192808151245,"z":"8068ded9.ccc26","wires":[["9c9b56a.2f3efa8"]]},{"id":"9c9b56a.2f3efa8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":6680.69140625,"y":4979.119120597839,"z":"8068ded9.ccc26","wires":[["6aab8121.6a61f"]]},{"id":"e857a6e0.098918","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":6149.690906524658,"y":5213.785968780518,"z":"8068ded9.ccc26","wires":[["63a5e50e.8c1fac","9c8d41ed.27a7c"]]},{"id":"63a5e50e.8c1fac","type":"switchNode","name":"switch tmp.return-failure","xml":"<switch test='`$tmp.return-failure`'>\n","comments":"","outputs":1,"x":6399.0238609313965,"y":5388.78621006012,"z":"8068ded9.ccc26","wires":[["2a23691a.d2dc36"]]},{"id":"2a23691a.d2dc36","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":6592.691192626953,"y":5388.7860498428345,"z":"8068ded9.ccc26","wires":[["303089b7.8759a6"]]},{"id":"7d871113.d9d1b","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":5828.2629737854,"y":5634.880418300629,"z":"8068ded9.ccc26","wires":[["9f47089c.1b3508","ffea8954.bee348"]]},{"id":"9f47089c.1b3508","type":"switchNode","name":"switch tmp.return-failure","xml":"<switch test='`$tmp.return-failure`'>\n","comments":"","outputs":1,"x":6077.595928192139,"y":5809.880659580231,"z":"8068ded9.ccc26","wires":[["5173c626.5e8d58"]]},{"id":"5173c626.5e8d58","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":6271.263259887695,"y":5809.880499362946,"z":"8068ded9.ccc26","wires":[["d589e67a.08f778"]]},{"id":"b07947b2.6ba8c8","type":"set","name":"set resource-resolution-data.status = DELETED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='DELETED' />\n","comments":"","x":966.9048004150391,"y":6656.333566665649,"z":"8068ded9.ccc26","wires":[]},{"id":"72952054.933dc","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":6860.024913787842,"y":4232.785665035248,"z":"8068ded9.ccc26","wires":[]},{"id":"bcf9460c.c83dd8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":6548.691387176514,"y":4233.118878364563,"z":"8068ded9.ccc26","wires":[["72952054.933dc","db5e8538.a78a48"]]},{"id":"f7d354b0.a531b8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":6397.024753570557,"y":4579.785886764526,"z":"8068ded9.ccc26","wires":[["eca1d6d8.eda8c8"]]},{"id":"20de2c42.a3d634","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$error-message`' />\n","comments":"","x":6775.691108703613,"y":4631.452404975891,"z":"8068ded9.ccc26","wires":[]},{"id":"7c8af4c6.8e0ccc","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":6873.024269104004,"y":4579.119147777557,"z":"8068ded9.ccc26","wires":[]},{"id":"eca1d6d8.eda8c8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":6561.690742492676,"y":4579.452361106873,"z":"8068ded9.ccc26","wires":[["7c8af4c6.8e0ccc","20de2c42.a3d634"]]},{"id":"935f61e6.451d4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$error-message`' />\n","comments":"","x":7069.357624053955,"y":5031.1190395355225,"z":"8068ded9.ccc26","wires":[]},{"id":"6d4ca687.6e4358","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":7166.690784454346,"y":4978.785782337189,"z":"8068ded9.ccc26","wires":[]},{"id":"6aab8121.6a61f","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":6855.357257843018,"y":4979.118995666504,"z":"8068ded9.ccc26","wires":[["6d4ca687.6e4358","935f61e6.451d4"]]},{"id":"40d75454.77644c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$error-message`' />\n","comments":"","x":6976.357410430908,"y":5441.119464874268,"z":"8068ded9.ccc26","wires":[]},{"id":"51fd880c.bcbaf8","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":7073.690570831299,"y":5388.786207675934,"z":"8068ded9.ccc26","wires":[]},{"id":"303089b7.8759a6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":6762.357044219971,"y":5389.119421005249,"z":"8068ded9.ccc26","wires":[["51fd880c.bcbaf8","40d75454.77644c"]]},{"id":"cafc31da.005e7","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='`$error-message`' />\n","comments":"","x":6661.596378326416,"y":5861.214030742645,"z":"8068ded9.ccc26","wires":[]},{"id":"dfaf7e7b.49ee9","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":6758.929538726807,"y":5808.8807735443115,"z":"8068ded9.ccc26","wires":[]},{"id":"d589e67a.08f778","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":6447.5960121154785,"y":5809.213986873627,"z":"8068ded9.ccc26","wires":[["dfaf7e7b.49ee9","cafc31da.005e7"]]},{"id":"133a1544.17dc0b","type":"outcome","name":"nfc-naming-code","xml":"<outcome value='nfc-naming-code'>","comments":"","outputs":1,"x":2334.3572387695312,"y":968.976146697998,"z":"8068ded9.ccc26","wires":[["25e3fff7.35115"]]},{"id":"25e3fff7.35115","type":"set","name":"set ss.param.vnfc-name, indexnfc-naming-code","xml":"<set>\n<parameter name='ss.param.nfc-naming-code' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.nfc-naming-code-index' value='`$bidx`' />","comments":"","x":2731.1787109375,"y":969.1547613143921,"z":"8068ded9.ccc26","wires":[]},{"id":"ec83fc2d.1db1b","type":"outcome","name":"nfc-function","xml":"<outcome value='nfc-function'>","comments":"","outputs":1,"x":2319.071521759033,"y":1010.4047336578369,"z":"8068ded9.ccc26","wires":[["79ed605a.86905"]]},{"id":"79ed605a.86905","type":"set","name":"set ss.param.nfc-function, index","xml":"<set>\n<parameter name='ss.param.nfc-function' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.nfc-function-index' value='`$bidx`' />","comments":"","x":2681.3215522766113,"y":1010.4405193328857,"z":"8068ded9.ccc26","wires":[]},{"id":"ca7c357a.02aee8","type":"outcome","name":"vnfc-model-customization-uuid","xml":"<outcome value='vnfc-model-customization-uuid'>","comments":"","outputs":1,"x":2378.500198364258,"y":1050.4047679901123,"z":"8068ded9.ccc26","wires":[["94c3f286.c2c34"]]},{"id":"94c3f286.c2c34","type":"set","name":"set ss.param.vnfc-model-customization-uuid, index","xml":"<set>\n<parameter name='ss.param.vnfc-model-customization-uuid' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.vnfc-model-customization-uuid-index' value='`$bidx`' />","comments":"","x":2738.750228881836,"y":1050.4405536651611,"z":"8068ded9.ccc26","wires":[]},{"id":"f5541fce.c9fc9","type":"outcome","name":"vnfc-model-invariant-uuid","xml":"<outcome value='vnfc-model-invariant-uuid'>","comments":"","outputs":1,"x":2363.2144508361816,"y":1091.8333730697632,"z":"8068ded9.ccc26","wires":[["dbebcefd.68335"]]},{"id":"dbebcefd.68335","type":"set","name":"set ss.param.vnfc-model-invariant-uuid, index","xml":"<set>\n<parameter name='ss.param.vnfc-model-invariant-uuid' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.vnfc-model-invariant-uuid-index' value='`$bidx`' />","comments":"","x":2722.4644813537598,"y":1091.869158744812,"z":"8068ded9.ccc26","wires":[]},{"id":"2b83386b.477738","type":"outcome","name":"vnfc-model-version","xml":"<outcome value='vnfc-model-version'>","comments":"","outputs":1,"x":2343.643020629883,"y":1133.261926651001,"z":"8068ded9.ccc26","wires":[["dfca8723.2b1448"]]},{"id":"dfca8723.2b1448","type":"set","name":"set ss.param.vnfc-model-version, index","xml":"<set>\n<parameter name='ss.param.vnfc-model-version' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.vnfc-model-version-index' value='`$bidx`' />","comments":"","x":2703.893051147461,"y":1133.2977123260498,"z":"8068ded9.ccc26","wires":[]},{"id":"43435160.6954c","type":"set","name":"set TEST DATA","xml":"<set>\n<parameter name='vnf-index' value='0' />\n<parameter name='vf-module-index' value='0' />\n<parameter name='ss.capability-name' value='aai-vf-module-put' />\n<parameter name='ss.capability-action' value='unassign' />\n<parameter name='service-data.vnfs.vnf[0].vnf-id' value = '7324200933' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vnf-topology.vnf-parameters-data.param[0].name' value = 'vnf_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vnf-topology.vnf-parameters-data.param[0].value' value = '7324200933' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vnf-topology.sdnc-generated-cloud-resources' value='true' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.service-information.service-instance-id' value='11' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vnf-information.vnf-id' value='7324200933' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-topology.sdnc-generated-cloud-resources' value = 'true' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param_length' value = '36' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].name' value = 'vlan-tag-1' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].value' value = '${vlan-tag-1v}' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[0].name' value = 'policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[0].value' value = 'JQIN1810SRIOV.Config_MS_SRIOV_VlanTag_1810_ADIOD_VPE.*' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[1].name' value = 'resource-name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[1].value' value = 'vlan-tag-1' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[2].name' value = 'resource-value' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[2].value' value = '' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[3].name' value = 'scope-id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[3].value' value = 'MTCLL2238F' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[4].name' value = 'vlan-tag-key' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[4].value' value = 'dvncom4003' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[5].name' value = 'vlan-type' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[5].value' value = 'vlan-id-outer' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[6].name' value = 'vnfc-network-role' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key[6].value' value = 'network-role-1' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.resource-key_length' value = '7' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.status' value = 'SUCCESS' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[0].resource-resolution-data.capability-name' value = 'mS-vlan-tag-assign' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].name' value = 'vlan-tag-2' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].value' value = 'manually-assigned-vlan-tag-2v' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[0].name' value = 'policy-instance-name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[0].value' value = 'JQIN1810SRIOV.Config_MS_SRIOV_VlanTag_1810_ADIOD_VPE.*' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[1].name' value = 'resource-name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[1].value' value = 'vlan-tag-2' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[2].name' value = 'resource-value' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[2].value' value = 'manually-assigned-vlan-tag-2v' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[3].name' value = 'scope-id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[3].value' value = 'MTCLL2238F' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[4].name' value = 'vlan-tag-key' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[4].value' value = 'dvncom4003' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[5].name' value = 'vlan-type' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[5].value' value = 'vlan-id-filter' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[6].name' value = 'vnfc-network-role' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key[6].value' value = 'network-role-2' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.resource-key_length' value = '7' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.status' value = 'SUCCESS' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[1].resource-resolution-data.capability-name' value = 'INPUT' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[2].name' value = 'bogus1' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[2].value' value = 'bogus1' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[3].name' value = 'bogus2' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[3].value' value = 'bogus2' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[4].name' value = 'bogus3' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[4].value' value = 'bogus3' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[5].name' value = 'bogus4' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[5].value' value = 'bogus4' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[6].name' value = 'bogus5' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[6].value' value = 'bogus5' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[7].name' value = 'aic-cloud-region' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[7].value' value = 'mtn6' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[8].name' value = 'ipv4-loopback0-address' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[8].value' value = '1.1.1.1' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[9].name' value = 'ipv4-oam-address' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[9].value' value = '2.2.2.2' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[10].name' value = 'as-number' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[10].value' value = '11' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[11].name' value = 'vlan-id-outer' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[11].value' value = '[999]' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[12].name' value = 'bad_vnf_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[12].value' value = '7324200933' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[13].name' value = 'vf_module_name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[13].value' value = 'NEW_SELF_SERVE_VF_MODULE_TEST_1' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[14].name' value = 'volume-group-name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[14].value' value = 'dummyvolumegroupname' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[15].name' value = 'volume_group_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[15].value' value = 'vg-1-999' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[16].name' value = 'vf_module_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[16].value' value = '7323683661' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[17].name' value = 'vf_module_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[17].value' value = '7323683661' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[18].name' value = 'vnfc-name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[18].value' value = 'bogus-vnfc-name' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[19].name' value = 'vm_name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[19].value' value = 'bogus-vnfc-name' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[20].name' value = 'vm-type' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[20].value' value = 'oam' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[21].name' value = 'nfc-function' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[21].value' value = 'data' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[22].name' value = 'nfc-naming-code' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[22].value' value = 'dummy-naming-code' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[23].name' value = 'vnfc-model-customization-uuid' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[23].value' value = 'bbbb-99999' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[24].name' value = 'vnfc-model-invariant-uuid' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[24].value' value = 'aaaaa-10000' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[25].name' value = 'vnfc-model-version' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[25].value' value = 'model1' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[26].name' value = 'oam-interface-name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[26].value' value = 'oamintfname' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[27].name' value = 'lo0-interface-name' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[27].value' value = 'lo0intfname' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[28].name' value = 'sriov41_net_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[28].value' value = '4141414141' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[29].name' value = 'sriov42_net_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[29].value' value = '4242424242' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[30].name' value = 'sriov43_net_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[30].value' value = '4343434343' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[31].name' value = 'sriov44_net_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[31].value' value = '4444444444' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[32].name' value = 'sriov21_net_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[32].value' value = '2121212121' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[33].name' value = 'sriov22_net_id' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[33].value' value = '2222222222' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].name' value = 'aai-vf-module-put' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].value' value = '${status}' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[0].name' value = 'generic-vnf' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[0].value' value = 'generic-vnf' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[1].name' value = 'vf-module' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[1].value' value = 'vf-module' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[2].name' value = 'volume-group' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[2].value' value = 'volume-group' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[3].name' value = 'vnfc' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[3].value' value = 'vnfc' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[4].name' value = 'connection-points' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[4].value' value = 'connection-points' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[5].name' value = 'l-interface' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[5].value' value = 'l-interface' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[6].name' value = 'l3-network' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key[6].value' value = 'l3-network' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.resource-key_length' value = '7' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[34].resource-resolution-data.status' value = 'PENDING' />\n\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[35].name' value = 'availability_zone_0' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.param[35].value' value = 'nova0' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].onap-model-information.model-customization-uuid' value = 'bbbb-99999' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].onap-model-information.model-invariant-uuid' value = 'aaaaa-10000' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].onap-model-information.model-version' value = 'model1' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-type' value = 'oam' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-name' value = 'bogus-vnfc-name' />\n\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data_length' value = '2' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[0].vnfc-network-role' value = 'network-role-1' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[0].connection-point.connection-point-id' value = '789cddfa-58ba-4095-addc-8f7181186380' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[0].connection-point.vlan-data[0].vlan-role' value = '' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[0].connection-point.vlan-data[0].vlan-tag-description' value = 'VPE-Cust' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[0].connection-point.vlan-data[0].vlan-tag-id' value = '3553' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[0].connection-point.vlan-data[0].vlan-uuid' value = '56034624-9296-426c-8103-79a09c23e872' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].vnfc-network-role' value = 'network-role-2' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.connection-point-id' value = 'd1bdc1ae-4e67-42c3-ad25-2051ddae65a7' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[0].vlan-role' value = 'outer-tag' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[0].vlan-tag-description' value = 'VPE-Cust-Outer' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[0].vlan-tag-id' value = '3503' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[0].vlan-uuid' value = 'fdc089af-0c00-41c0-a403-1501fb06909f' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[1].vlan-role' value = 'outer-tag' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[1].vlan-tag-description' value = 'VPE-Core1' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[1].vlan-tag-id' value = '4001' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[1].vlan-uuid' value = 'f48473ff-fc11-4c38-bcf7-7dec483d81da' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[2].vlan-role' value = 'outer-tag' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[2].vlan-tag-description' value = 'VPE-Core2' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[2].vlan-tag-id' value = '4002' />\n<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[1].connection-point.vlan-data[2].vlan-uuid' value = '147afe9e-81d3-4872-a298-f470999ba915' />","comments":"","x":953.2142868041992,"y":92.40475368499756,"z":"8068ded9.ccc26","wires":[]},{"id":"593dcc0e.8e3134","type":"outcome","name":"ipv4-loopback0-address","xml":"<outcome value='ipv4-loopback0-address'>","comments":"","outputs":1,"x":2355.3572692871094,"y":925.2618856430054,"z":"8068ded9.ccc26","wires":[["ef23ff6.9991e"]]},{"id":"ef23ff6.9991e","type":"set","name":"set ss.param.ipv4-loopback0-address, index","xml":"<set>\n<parameter name='ss.param.ipv4-loopback0-address' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.ipv4-loopback0-address-index' value='`bidx`' />","comments":"","x":2715.607292175293,"y":925.0119018554688,"z":"8068ded9.ccc26","wires":[]},{"id":"982628c3.cc5ec8","type":"outcome","name":"vlan-id-outer","xml":"<outcome value='vlan-id-outer'>","comments":"","outputs":1,"x":2324.8928451538086,"y":1220.0476179122925,"z":"8068ded9.ccc26","wires":[["bf23dba.cbde728"]]},{"id":"26c08944.595276","type":"outcome","name":"as-number","xml":"<outcome value='as-number'>","comments":"","outputs":1,"x":2319.678535461426,"y":1177.869029045105,"z":"8068ded9.ccc26","wires":[["104fad01.672133"]]},{"id":"104fad01.672133","type":"set","name":"set ss.param.as-number, index","xml":"<set>\n<parameter name='ss.param.as-number' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.as-number-index' value='`$bidx`' />","comments":"","x":2679.178512573242,"y":1178.3690299987793,"z":"8068ded9.ccc26","wires":[]},{"id":"bf23dba.cbde728","type":"set","name":"set vlan-id-outer, indexss.param.","xml":"<set>\n<parameter name='ss.param.vlan-id-outer' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.vlan-id-outer-index' value='`$bidx`' />","comments":"","x":2687.392822265625,"y":1219.7976169586182,"z":"8068ded9.ccc26","wires":[]},{"id":"385ba57a.8df6da","type":"set","name":"set ss.param.vnf-id","xml":"<set>\n<parameter name='ss.param.vnf-id' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-id`' />","comments":"","x":1228.6903991699219,"y":464.7856855392456,"z":"8068ded9.ccc26","wires":[]},{"id":"90cb9541.006378","type":"execute","name":"execute PropertiesNode","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":975.3570785522461,"y":141.4523696899414,"z":"8068ded9.ccc26","wires":[[]]},{"id":"369fedc4.640742","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":738.6903991699219,"y":114.78570365905762,"z":"8068ded9.ccc26","wires":[["43435160.6954c","90cb9541.006378"]]},{"id":"b3dc72d7.6c11b","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'volume-group not found in AnAI with volume-group-id=' + $ss.param.volume-group-id + '; ' + $error-message`\" />\n","comments":"","x":2223.5953254699707,"y":3915.5000128746033,"z":"8068ded9.ccc26","wires":[]},{"id":"be71747e.761fd8","type":"save","name":"get volume-group","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"volume-group\"\n\t\tkey=\"cloud-region.cloud-owner = $prop.cloud-owner \n\t\t\tAND cloud-region.cloud-region-id = $ss.param.aic-cloud-region \n\t\t\tAND cloud-region.cloud-owner = $prop.cloud-region.cloud-owner \n\t\t\tAND volume-group-id = $ss.param.volume-group-id\" \n\tpfx=\"tmp.aai.volume-group\" >\n","comments":"","outputs":1,"x":1666.1788330078125,"y":3825.2141947746277,"z":"8068ded9.ccc26","wires":[["ab7cc2ae.b3122","491c18b8.279c08"]]},{"id":"ab7cc2ae.b3122","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1855.4288177490234,"y":3824.7141394615173,"z":"8068ded9.ccc26","wires":[["dd469fcd.ed1f6"]]},{"id":"491c18b8.279c08","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1863.1072998046875,"y":3880.749830722809,"z":"8068ded9.ccc26","wires":[["5df59ce5.ec4624"]]},{"id":"f712058.ba8fdf8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to get volume-group in AnAI with volume-group-id = ' + $ss.param.volume-group-id + '; ' + $error-message`\" />\n","comments":"","x":2223.726306915283,"y":3860.7142462730408,"z":"8068ded9.ccc26","wires":[]},{"id":"dd469fcd.ed1f6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2027.39306640625,"y":3825.2143034934998,"z":"8068ded9.ccc26","wires":[["f712058.ba8fdf8","5baa82ec.dffecc"]]},{"id":"5df59ce5.ec4624","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2027.6430473327637,"y":3880.714282512665,"z":"8068ded9.ccc26","wires":[["b3dc72d7.6c11b","5baa82ec.dffecc"]]},{"id":"4faa8555.6c3d7c","type":"set","name":"set tmp.related-link","xml":"<set>\n<parameter name='tmp.related-link' value=\"`'/aai/v$/network/l3-networks/l3-network/' + $ss.network[$n].netid`\" />\n<!--\n<parameter name='tmp.related-link' value=\"`'/aai/' + $prop.aai.version + '/network/l3-networks/l3-network/' + $ss.network[$n].netid`\" />\n-->","comments":"","x":5282.429328918457,"y":5587.7142329216,"z":"8068ded9.ccc26","wires":[]},{"id":"9669e0ca.90c8f","type":"switchNode","name":"switch: ss.capability-name","xml":"<switch test='`$ss.capability-name`'>\n","comments":"","outputs":1,"x":363.5715103149414,"y":176.33332633972168,"z":"8068ded9.ccc26","wires":[["e32786de.9df318"]]},{"id":"e32786de.9df318","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":570.571533203125,"y":176.8333249092102,"z":"8068ded9.ccc26","wires":[["7197124b.04b54c"]]},{"id":"7197124b.04b54c","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\t<parameter name=\"error-message\" value=\"ss.capability-name is null\" />\n","comments":"","x":730.4882049560547,"y":176.9444236755371,"z":"8068ded9.ccc26","wires":[]},{"id":"3b0adeb0.0eb082","type":"set","name":"set param[$ss.param.aai-vnf-put-index].value = SUCCESS","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].value' \n\tvalue='SUCCESS' />\n","comments":"","x":467.5714569091797,"y":1141.8094778060913,"z":"8068ded9.ccc26","wires":[]},{"id":"b9bf0de4.48018","type":"switchNode","name":"ss.param.ipv4-loopback0-address != NULL","xml":"<switch test=\"`$ss.param.ipv4-loopback0-address != ''`\">\n\n\n","comments":"","outputs":1,"x":1357.5237159729004,"y":1846.4284987449646,"z":"8068ded9.ccc26","wires":[["ceaf4524.23f4d8"]]},{"id":"ceaf4524.23f4d8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1625.9520988464355,"y":1845.8570322990417,"z":"8068ded9.ccc26","wires":[["43f75d58.570a74"]]},{"id":"43f75d58.570a74","type":"execute","name":"ss.param.ipv4-loopback0-address contains $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name='source' value='`$ss.param.ipv4-loopback0-address`' />\n <parameter name='target' value='$' />\n","comments":"","outputs":1,"x":1897.761646270752,"y":1846.2380146980286,"z":"8068ded9.ccc26","wires":[["38011e7f.dd8f82","dcbb8012.d1394"]]},{"id":"38011e7f.dd8f82","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2184.7615852355957,"y":1845.5235419273376,"z":"8068ded9.ccc26","wires":[["1622e59b.0a538a"]]},{"id":"dcbb8012.d1394","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2185.2384243011475,"y":1894.380756855011,"z":"8068ded9.ccc26","wires":[["27de274a.88c098"]]},{"id":"1622e59b.0a538a","type":"record","name":"record ipv4-loopback0-address","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'ss.param.ipv4-loopback0-address = ' + $ss.param.ipv4-loopback0-address`\"/>\n<parameter name=\"field3\" value=\"__SKIP ipv4-loopback0-address update for generic-vnf in AnAI__\"/>","comments":"","outputs":1,"x":2427.285556793213,"y":1845.9524359703064,"z":"8068ded9.ccc26","wires":[[]]},{"id":"7327e39b.b7381c","type":"save","name":"update generic-vnf","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"ipv4-oam-address\" value='`$ss.param.ipv4-oam-address`' />\n","comments":"","outputs":1,"x":2275.5120964050293,"y":2121.7620272636414,"z":"8068ded9.ccc26","wires":[["7a590d98.438b34","45273777.668128","a8611fe4.861fc"]]},{"id":"7a590d98.438b34","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2475.7621269226074,"y":2122.119074344635,"z":"8068ded9.ccc26","wires":[["ecf0ba29.86e7a8"]]},{"id":"45273777.668128","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2482.012138366699,"y":2172.8691086769104,"z":"8068ded9.ccc26","wires":[["bdb288a7.c9e8f8"]]},{"id":"276849b.b8825b6","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf.ipv4-oam-address in AnAI with ipv4-oam-address=' + $ss.param.ipv4-oam-address + '; ' + $error-message`\" />\n","comments":"","x":2851.6310844421387,"y":2121.904778957367,"z":"8068ded9.ccc26","wires":[]},{"id":"ff10d38d.f4ef5","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf because vnf-id =' + $ss.param.vnf-id + ' is not found in AAI' + '; ' + $error-message`\" />\n","comments":"","x":2852.2026023864746,"y":2172.142955303192,"z":"8068ded9.ccc26","wires":[]},{"id":"ecf0ba29.86e7a8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2649.1906929016113,"y":2122.190598964691,"z":"8068ded9.ccc26","wires":[["276849b.b8825b6","71faeb89.83a694"]]},{"id":"bdb288a7.c9e8f8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2652.047908782959,"y":2173.047740459442,"z":"8068ded9.ccc26","wires":[["ff10d38d.f4ef5","71faeb89.83a694"]]},{"id":"26afdd51.b0c082","type":"switchNode","name":"ss.param.ipv4-oam-address != NULL","xml":"<switch test=\"`$ss.param.ipv4-oam-address != ''`\">\n\n\n","comments":"","outputs":1,"x":1333.428638458252,"y":2071.9880661964417,"z":"8068ded9.ccc26","wires":[["1b81e3ed.85387c"]]},{"id":"1b81e3ed.85387c","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1569.857021331787,"y":2072.416599750519,"z":"8068ded9.ccc26","wires":[["6a5b7911.12efb8"]]},{"id":"6a5b7911.12efb8","type":"execute","name":"ss.param.ipv4-oam-address contains $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name='source' value='`$ss.param.ipv4-oam-address`' />\n <parameter name='target' value='$' />\n","comments":"","outputs":1,"x":1813.6665687561035,"y":2072.7975821495056,"z":"8068ded9.ccc26","wires":[["e4511a53.c7e968","c52ae99f.811838"]]},{"id":"e4511a53.c7e968","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2069.6665077209473,"y":2072.0831093788147,"z":"8068ded9.ccc26","wires":[["cf116e57.4d2d6"]]},{"id":"c52ae99f.811838","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2070.143346786499,"y":2120.940324306488,"z":"8068ded9.ccc26","wires":[["7327e39b.b7381c"]]},{"id":"cf116e57.4d2d6","type":"record","name":"record ipv4-oam-address","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'ss.param.ipv4-oam-address = ' + $ss.param.ipv4-oam-address`\"/>\n<parameter name=\"field3\" value=\"__SKIP ipv4-oam-address update for generic-vnf in AnAI__\"/>","comments":"","outputs":1,"x":2293.1904792785645,"y":2072.5120034217834,"z":"8068ded9.ccc26","wires":[[]]},{"id":"e5889051.c0258","type":"save","name":"Rollback generic-vnf update","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"ipv4-loopback0-address\" value='`$tmp.aai.vnf.ipv4-loopback0-address`' />","comments":"","outputs":1,"x":5601.476459503174,"y":1553.7621817588806,"z":"8068ded9.ccc26","wires":[["22af1de1.3fb9e2","8bf8665b.1437d8","c2c65d3e.5dfc2"]]},{"id":"22af1de1.3fb9e2","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5839.726444244385,"y":1553.2621264457703,"z":"8068ded9.ccc26","wires":[["5e63f4b2.4ac3cc"]]},{"id":"8bf8665b.1437d8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5845.976455688477,"y":1605.0121607780457,"z":"8068ded9.ccc26","wires":[["ad206450.c1ee18"]]},{"id":"2d67b279.3df1de","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":5652.904941558838,"y":1508.1308035850525,"z":"8068ded9.ccc26","wires":[]},{"id":"c2c65d3e.5dfc2","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5843.797702789307,"y":1653.2737307548523,"z":"8068ded9.ccc26","wires":[["ec787945.492e18"]]},{"id":"47e8bd96.8ba9d4","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":5331.226184844971,"y":1463.5237832069397,"z":"8068ded9.ccc26","wires":[["2d67b279.3df1de","e5889051.c0258","384189da.b5f976"]]},{"id":"5e63f4b2.4ac3cc","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf.ipv4-loopback0-address update in AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6022.54764175415,"y":1553.3808007240295,"z":"8068ded9.ccc26","wires":[]},{"id":"ad206450.c1ee18","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf update because generic-vnf with vnf-id=' + $ss.param.vnf-id + ' is not found in AAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":6025.04764175415,"y":1604.6308026313782,"z":"8068ded9.ccc26","wires":[]},{"id":"ec787945.492e18","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of generic-vnf.ipv4-loopback0-address update completed. '`\" />\n","comments":"","x":6027.54764175415,"y":1653.6308007240295,"z":"8068ded9.ccc26","wires":[]},{"id":"384189da.b5f976","type":"record","name":"record generic-vnf ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK generic-vnf.ipv4-loopback0-address update\"/>","comments":"","outputs":1,"x":5607.04764175415,"y":1463.6308016777039,"z":"8068ded9.ccc26","wires":[[]]},{"id":"da76951d.afdea8","type":"comment","name":"ROLLBACK STARET HERE","info":"","comments":"","x":4691.0475997924805,"y":1417.7256727218628,"z":"8068ded9.ccc26","wires":[]},{"id":"bb524829.b73d08","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4512.619209289551,"y":1588.9048280715942,"z":"8068ded9.ccc26","wires":[["e2e1d228.1cac","71faeb89.83a694"]]},{"id":"e4a213fe.1cb","type":"save","name":"update generic-vnf","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"as-number\" value='`$ss.param.as-number`' />","comments":"","outputs":1,"x":2249.000072479248,"y":2371.190616130829,"z":"8068ded9.ccc26","wires":[["4efbae39.8c274","da35a4e3.507258","4bc8cbf7.d420c4"]]},{"id":"4efbae39.8c274","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2449.250102996826,"y":2371.5476632118225,"z":"8068ded9.ccc26","wires":[["a1700ab5.e0ada8"]]},{"id":"da35a4e3.507258","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2455.500114440918,"y":2422.297697544098,"z":"8068ded9.ccc26","wires":[["cd623d9e.bad95"]]},{"id":"2c15727.a84458e","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf.as-number in AnAI with as-number=' + $ss.param.as-number + '; ' + $error-message`\" />\n","comments":"","x":2825.1190605163574,"y":2371.3333678245544,"z":"8068ded9.ccc26","wires":[]},{"id":"41bc64c.41bf29c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf because vnf-id =' + $ss.param.vnf-id + ' is not found in AAI. ' + $error-message`\" />\n","comments":"","x":2825.6905784606934,"y":2421.5715441703796,"z":"8068ded9.ccc26","wires":[]},{"id":"a1700ab5.e0ada8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2622.67866897583,"y":2371.6191878318787,"z":"8068ded9.ccc26","wires":[["2c15727.a84458e","bb524829.b73d08"]]},{"id":"cd623d9e.bad95","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2625.5358848571777,"y":2422.4763293266296,"z":"8068ded9.ccc26","wires":[["41bc64c.41bf29c","bb524829.b73d08"]]},{"id":"908814ee.d3c7b8","type":"switchNode","name":"ss.param.as-number != NULL","xml":"<switch test=\"`$ss.param.as-number != ''`\">\n\n\n","comments":"","outputs":1,"x":1306.9166145324707,"y":2321.416655063629,"z":"8068ded9.ccc26","wires":[["737e972.985f168"]]},{"id":"737e972.985f168","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1543.3449974060059,"y":2321.8451886177063,"z":"8068ded9.ccc26","wires":[["1c5589e.b307676"]]},{"id":"1c5589e.b307676","type":"execute","name":"ss.param.as-number contains $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name='source' value='`$ss.param.as-number`' />\n <parameter name='target' value='$' />\n","comments":"","outputs":1,"x":1787.1545448303223,"y":2322.226171016693,"z":"8068ded9.ccc26","wires":[["497ff762.9d1748","992db45d.438d38"]]},{"id":"497ff762.9d1748","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2043.154483795166,"y":2321.511698246002,"z":"8068ded9.ccc26","wires":[["deaa07b.61227f8"]]},{"id":"992db45d.438d38","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2043.6313228607178,"y":2370.3689131736755,"z":"8068ded9.ccc26","wires":[["e4a213fe.1cb"]]},{"id":"deaa07b.61227f8","type":"record","name":"record as-number","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'ss.param.as-number = ' + $ss.param.as-number`\"/>\n<parameter name=\"field3\" value=\"__SKIP as-number update for generic-vnf in AnAI__\"/>","comments":"","outputs":1,"x":2246.678455352783,"y":2321.940543651581,"z":"8068ded9.ccc26","wires":[[]]},{"id":"74f743f6.6c2a9c","type":"save","name":"Rollback generic-vnf update","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"ipv4-oam-address\" value='`$tmp.aai.vnf.ipv4-oam-address`' />","comments":"","outputs":1,"x":5424.047866821289,"y":1822.1906266212463,"z":"8068ded9.ccc26","wires":[["8ab667c6.6dc778","127a91f5.5edaee","6dc5a4c1.0050bc"]]},{"id":"8ab667c6.6dc778","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5662.2978515625,"y":1821.690571308136,"z":"8068ded9.ccc26","wires":[["ca5f07de.46aa38"]]},{"id":"127a91f5.5edaee","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5668.547863006592,"y":1873.4406056404114,"z":"8068ded9.ccc26","wires":[["7d6b1b6d.e73344"]]},{"id":"a407c233.f5534","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":5475.476348876953,"y":1776.5592484474182,"z":"8068ded9.ccc26","wires":[]},{"id":"6dc5a4c1.0050bc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5666.369110107422,"y":1921.702175617218,"z":"8068ded9.ccc26","wires":[["79516859.473258"]]},{"id":"768b08a.664faf8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":5166.654808044434,"y":1732.9521927833557,"z":"8068ded9.ccc26","wires":[["a407c233.f5534","74f743f6.6c2a9c","9082c4e7.fb2758"]]},{"id":"ca5f07de.46aa38","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf.ipv4-oam-address update in AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":5845.119049072266,"y":1821.8092455863953,"z":"8068ded9.ccc26","wires":[]},{"id":"7d6b1b6d.e73344","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf update because generic-vnf with vnf-id=' + $ss.param.vnf-id + ' is not found in AAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":5847.619049072266,"y":1873.059247493744,"z":"8068ded9.ccc26","wires":[]},{"id":"79516859.473258","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of generic-vnf.ipv4-oam-address update completed. '`\" />\n","comments":"","x":5850.119049072266,"y":1922.0592455863953,"z":"8068ded9.ccc26","wires":[]},{"id":"9082c4e7.fb2758","type":"record","name":"record generic-vnf ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK generic-vnf.ipv4-oam-address update\"/>","comments":"","outputs":1,"x":5429.619049072266,"y":1732.0592465400696,"z":"8068ded9.ccc26","wires":[[]]},{"id":"cb879e8.7659c6","type":"save","name":"update generic-vnf","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"vlan-id-outer\" value='`$ss.param.vlan-id-outer`' />","comments":"","outputs":1,"x":2255.2262687683105,"y":2602.619082927704,"z":"8068ded9.ccc26","wires":[["6f7ecbf3.9e2ac4","747eeb7.c55af14","39d08edc.6b6b42"]]},{"id":"6f7ecbf3.9e2ac4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2455.4762992858887,"y":2602.9761300086975,"z":"8068ded9.ccc26","wires":[["2c7b95a3.b6cfda"]]},{"id":"747eeb7.c55af14","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2461.7263107299805,"y":2653.726164340973,"z":"8068ded9.ccc26","wires":[["e8fe8375.a7f86"]]},{"id":"22896c5.57d9394","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf.vlan-id-outer in AnAI with as-number=' + $ss.param.as-number + '; ' + $error-message`\" />\n","comments":"","x":2831.34525680542,"y":2602.7618346214294,"z":"8068ded9.ccc26","wires":[]},{"id":"1bdd53be.37f77c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf because vnf-id =' + $ss.param.vnf-id + ' is not found in AAI. ' + $error-message`\" />\n","comments":"","x":2831.916774749756,"y":2653.0000109672546,"z":"8068ded9.ccc26","wires":[]},{"id":"2c7b95a3.b6cfda","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2628.9048652648926,"y":2603.0476546287537,"z":"8068ded9.ccc26","wires":[["22896c5.57d9394","d65ee09f.37cd9"]]},{"id":"e8fe8375.a7f86","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2631.7620811462402,"y":2653.9047961235046,"z":"8068ded9.ccc26","wires":[["1bdd53be.37f77c","d65ee09f.37cd9"]]},{"id":"c975e01d.234e2","type":"switchNode","name":"ss.param.vlan-id-outer != NULL","xml":"<switch test=\"`$ss.param.vlan-id-outer != ''`\">\n\n\n","comments":"","outputs":1,"x":1313.1428108215332,"y":2552.845121860504,"z":"8068ded9.ccc26","wires":[["93830daa.215c2"]]},{"id":"93830daa.215c2","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1549.5711936950684,"y":2553.2736554145813,"z":"8068ded9.ccc26","wires":[["27539cc9.080cc4"]]},{"id":"27539cc9.080cc4","type":"execute","name":"ss.param.vlan-id-outer contains $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name='source' value='`$ss.param.vlan-id-outer`' />\n <parameter name='target' value='$' />\n","comments":"","outputs":1,"x":1793.3807411193848,"y":2553.654637813568,"z":"8068ded9.ccc26","wires":[["105606fa.800439","2247889c.578818"]]},{"id":"105606fa.800439","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2049.3806800842285,"y":2552.940165042877,"z":"8068ded9.ccc26","wires":[["531a6486.a6295c"]]},{"id":"2247889c.578818","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2049.8575191497803,"y":2601.7973799705505,"z":"8068ded9.ccc26","wires":[["cb879e8.7659c6"]]},{"id":"531a6486.a6295c","type":"record","name":"record vlan-id-outer","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'ss.param.vlan-id-outer = ' + $ss.param.vlan-id-outer`\"/>\n<parameter name=\"field3\" value=\"__SKIP vlan-id-outer update for generic-vnf in AnAI__\"/>","comments":"","outputs":1,"x":2255.761905670166,"y":2552.7977175712585,"z":"8068ded9.ccc26","wires":[[]]},{"id":"e5473ddc.047be","type":"save","name":"Rollback generic-vnf update","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"as-number\" value='`$tmp.aai.vnf.as-number`' />","comments":"","outputs":1,"x":5173.047737121582,"y":2097.0475330352783,"z":"8068ded9.ccc26","wires":[["285f2e24.1586f2","83023384.2b811","8076ba5d.d50338"]]},{"id":"285f2e24.1586f2","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5411.297721862793,"y":2096.547477722168,"z":"8068ded9.ccc26","wires":[["fa907b6a.b7f9e8"]]},{"id":"83023384.2b811","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5417.547733306885,"y":2148.2975120544434,"z":"8068ded9.ccc26","wires":[["f07a54b8.00eae8"]]},{"id":"e1190313.df098","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":5224.476219177246,"y":2051.41615486145,"z":"8068ded9.ccc26","wires":[]},{"id":"8076ba5d.d50338","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5415.368980407715,"y":2196.55908203125,"z":"8068ded9.ccc26","wires":[["ebf1b213.e06bf"]]},{"id":"b0942bbb.c31398","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":4922.226112365723,"y":2002.9517307281494,"z":"8068ded9.ccc26","wires":[["e1190313.df098","e5473ddc.047be","25ff6863.c55cb8"]]},{"id":"fa907b6a.b7f9e8","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf.as-number update in AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":5594.118919372559,"y":2096.6661520004272,"z":"8068ded9.ccc26","wires":[]},{"id":"f07a54b8.00eae8","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf update because generic-vnf with vnf-id=' + $ss.param.vnf-id + ' is not found in AAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":5596.618919372559,"y":2147.916153907776,"z":"8068ded9.ccc26","wires":[]},{"id":"ebf1b213.e06bf","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of generic-vnf.as-number update completed. '`\" />\n","comments":"","x":5599.118919372559,"y":2196.9161520004272,"z":"8068ded9.ccc26","wires":[]},{"id":"25ff6863.c55cb8","type":"record","name":"record generic-vnf ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK generic-vnf.as-number update\"/>","comments":"","outputs":1,"x":5177.190353393555,"y":2002.0587844848633,"z":"8068ded9.ccc26","wires":[[]]},{"id":"34d61ff5.579e6","type":"save","name":"Rollback generic-vnf update","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"vlan-id-outer\" value='`$tmp.aai.vnf.vlan-id-outer`' />","comments":"","outputs":1,"x":5037.905044555664,"y":2414.761951446533,"z":"8068ded9.ccc26","wires":[["629cce5b.29146","7a205153.d31fb","a1d97f77.5519b"]]},{"id":"629cce5b.29146","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5276.155029296875,"y":2414.261896133423,"z":"8068ded9.ccc26","wires":[["89392aae.d68578"]]},{"id":"7a205153.d31fb","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5282.405040740967,"y":2466.0119304656982,"z":"8068ded9.ccc26","wires":[["6d7e4c44.4dfcc4"]]},{"id":"5195e96f.8c0d38","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":5089.333526611328,"y":2369.130573272705,"z":"8068ded9.ccc26","wires":[]},{"id":"a1d97f77.5519b","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5279.226287841797,"y":2514.273500442505,"z":"8068ded9.ccc26","wires":[["9a615e51.2921d"]]},{"id":"d49362f8.a641c","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":4786.511985778809,"y":2325.5235176086426,"z":"8068ded9.ccc26","wires":[["5195e96f.8c0d38","34d61ff5.579e6","502f025d.7ed22c"]]},{"id":"89392aae.d68578","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf.vlan-id-outer update in AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":5458.976226806641,"y":2414.380570411682,"z":"8068ded9.ccc26","wires":[]},{"id":"6d7e4c44.4dfcc4","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf update because generic-vnf with vnf-id=' + $ss.param.vnf-id + ' is not found in AAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":5461.476226806641,"y":2465.6305723190308,"z":"8068ded9.ccc26","wires":[]},{"id":"9a615e51.2921d","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of generic-vnf.vlan-id-outer update completed. '`\" />\n","comments":"","x":5462.976226806641,"y":2514.630570411682,"z":"8068ded9.ccc26","wires":[]},{"id":"502f025d.7ed22c","type":"record","name":"record generic-vnf ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK generic-vnf.vlan-id-outer update\"/>","comments":"","outputs":1,"x":5043.476226806641,"y":2324.6305713653564,"z":"8068ded9.ccc26","wires":[[]]},{"id":"a8611fe4.861fc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2479.8570671081543,"y":2224.6192326545715,"z":"8068ded9.ccc26","wires":[["9662e07e.fc4a8"]]},{"id":"9662e07e.fc4a8","type":"set","name":"set ss.ipv4-oam-address-updated = true","xml":"<set>\n<parameter name='ss.ipv4-oam-address-updated' value='true' />\n","comments":"","x":2734.9998893737793,"y":2224.0476994514465,"z":"8068ded9.ccc26","wires":[]},{"id":"39d08edc.6b6b42","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2460.999927520752,"y":2706.904727458954,"z":"8068ded9.ccc26","wires":[["e4253280.219b1"]]},{"id":"e4253280.219b1","type":"set","name":"set ss.vlan-id-outer-updated = true","xml":"<set>\n<parameter name='ss.vlan-id-outer-updated' value='true' />\n","comments":"","x":2697.142749786377,"y":2706.333194255829,"z":"8068ded9.ccc26","wires":[]},{"id":"d5eb2c25.f7bf1","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2594.428638458252,"y":1994.0476365089417,"z":"8068ded9.ccc26","wires":[["25b6966a.a2a8ca"]]},{"id":"25b6966a.a2a8ca","type":"set","name":"set ss.ipv4-loopback0-address-updated = true","xml":"<set>\n<parameter name='ss.ipv4-loopback0-address-updated' value='true' />\n","comments":"","x":2867.571460723877,"y":1993.4761033058167,"z":"8068ded9.ccc26","wires":[]},{"id":"4bc8cbf7.d420c4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2451.4286613464355,"y":2474.047793865204,"z":"8068ded9.ccc26","wires":[["f06d656f.af5598"]]},{"id":"f06d656f.af5598","type":"set","name":"set ss.as-number-updated = true","xml":"<set>\n<parameter name='ss.as-number-updated' value='true' />\n","comments":"","x":2686.5714836120605,"y":2473.476260662079,"z":"8068ded9.ccc26","wires":[]},{"id":"1efb2ace.960c85","type":"switchNode","name":"ss.ipv4-loopback0-address-updated","xml":"<switch test=\"`$ss.ipv4-loopback0-address-updated`\">\n\n\n","comments":"","outputs":1,"x":4926.33345413208,"y":1463.4764018058777,"z":"8068ded9.ccc26","wires":[["30f66413.98e80c"]]},{"id":"30f66413.98e80c","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":5161.47624206543,"y":1463.0478825569153,"z":"8068ded9.ccc26","wires":[["47e8bd96.8ba9d4"]]},{"id":"e2e1d228.1cac","type":"switchNode","name":"ss.ipv4-oam-address-updated","xml":"<switch test=\"`$ss.ipv4-oam-address-updated`\">\n\n\n","comments":"","outputs":1,"x":4762.619338989258,"y":1733.4761872291565,"z":"8068ded9.ccc26","wires":[["161a1549.8e506b"]]},{"id":"161a1549.8e506b","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":4991.190628051758,"y":1732.904776096344,"z":"8068ded9.ccc26","wires":[["768b08a.664faf8"]]},{"id":"6e213c89.99cdc4","type":"switchNode","name":"ss.as-number-updated","xml":"<switch test=\"`$ss.as-number-updated`\">\n\n\n","comments":"","outputs":1,"x":4573.190734863281,"y":2002.0476455688477,"z":"8068ded9.ccc26","wires":[["c40b28e0.f8bd18"]]},{"id":"c40b28e0.f8bd18","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":4764.762023925781,"y":2002.4762344360352,"z":"8068ded9.ccc26","wires":[["b0942bbb.c31398"]]},{"id":"dab326d4.4c5188","type":"switchNode","name":"ss.vlan-id-outer-updated","xml":"<switch test=\"`$ss.vlan-id-outer-updated`\">\n\n\n","comments":"","outputs":1,"x":4435.619369506836,"y":2325.47625541687,"z":"8068ded9.ccc26","wires":[["615d0461.0886fc"]]},{"id":"615d0461.0886fc","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":4622.190658569336,"y":2325.9048442840576,"z":"8068ded9.ccc26","wires":[["d49362f8.a641c"]]},{"id":"d65ee09f.37cd9","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4358.333808898926,"y":1811.3334674835205,"z":"8068ded9.ccc26","wires":[["bb524829.b73d08","6e213c89.99cdc4"]]},{"id":"7102730.01d478c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4204.905014038086,"y":2084.76189994812,"z":"8068ded9.ccc26","wires":[["d65ee09f.37cd9","dab326d4.4c5188"]]},{"id":"71faeb89.83a694","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4691.762203216553,"y":1463.7620449066162,"z":"8068ded9.ccc26","wires":[["1efb2ace.960c85"]]},{"id":"11703c8e.d0e733","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2534.9999504089355,"y":1310.4761638641357,"z":"8068ded9.ccc26","wires":[["51b14fbd.75b3e","812c36d9.0a3ac8"]]},{"id":"e9f498df.26a9b8","type":"switchNode","name":"switch: resource-key[].name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key[$kidx].name`'>\n","comments":"","outputs":1,"x":3044.4289016723633,"y":1386.4762229919434,"z":"8068ded9.ccc26","wires":[["1f45c3a7.b75a7c","51073227.b22b1c","289fcfcb.8ee7","3c596d6c.b48dd2","b9f013b2.25b3f","3565db8d.625714","be2c548e.1c4a58"]]},{"id":"1f45c3a7.b75a7c","type":"outcome","name":"vf-module","xml":"<outcome value='vf-module'>\n","comments":"","outputs":1,"x":3305.448585510254,"y":1296.6546630859375,"z":"8068ded9.ccc26","wires":[["ca74e487.dcffc8"]]},{"id":"812c36d9.0a3ac8","type":"for","name":"for kidx in resource-key_length","xml":"<for silentFailure='true' index=\"kidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key_length`\">","comments":"","outputs":1,"x":2765.2899780273438,"y":1386.3373336791992,"z":"8068ded9.ccc26","wires":[["e9f498df.26a9b8"]]},{"id":"51073227.b22b1c","type":"outcome","name":"generic-vnf","xml":"<outcome value='generic-vnf'>\n","comments":"","outputs":1,"x":3306.9087677001953,"y":1250.6903667449951,"z":"8068ded9.ccc26","wires":[["a2bddea8.fee28"]]},{"id":"a2bddea8.fee28","type":"set","name":"set ss.resource-key.generic-vnf","xml":"<set>\n<parameter name='ss.resource-key.generic-vnf' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key[$kidx].value`' />\n","comments":"","x":3609.4126205444336,"y":1250.944284439087,"z":"8068ded9.ccc26","wires":[]},{"id":"289fcfcb.8ee7","type":"outcome","name":"volume-group","xml":"<outcome value='volume-group'>\n","comments":"","outputs":1,"x":3320.571662902832,"y":1341.1905689239502,"z":"8068ded9.ccc26","wires":[["532ce28c.3776ac"]]},{"id":"3c596d6c.b48dd2","type":"outcome","name":"vnfc","xml":"<outcome value='vnfc'>\n","comments":"","outputs":1,"x":3300.000442504883,"y":1385.4763507843018,"z":"8068ded9.ccc26","wires":[["c4bd3f7e.1c8b5"]]},{"id":"b9f013b2.25b3f","type":"outcome","name":"connection-points","xml":"<outcome value='connection-points'>\n","comments":"","outputs":1,"x":3334.7143173217773,"y":1429.7620134353638,"z":"8068ded9.ccc26","wires":[["5e1b7935.47e818"]]},{"id":"3565db8d.625714","type":"outcome","name":"l-interface","xml":"<outcome value='l-interface'>\n","comments":"","outputs":1,"x":3311.2858123779297,"y":1475.333511352539,"z":"8068ded9.ccc26","wires":[["8c93fc68.5c60f"]]},{"id":"be2c548e.1c4a58","type":"outcome","name":"l3-network","xml":"<outcome value='l3-netework'>\n","comments":"","outputs":1,"x":3314.1430587768555,"y":1519.761960029602,"z":"8068ded9.ccc26","wires":[["c92bdf18.2a6ef"]]},{"id":"ca74e487.dcffc8","type":"set","name":"set ss.resource-key.vf-module","xml":"<set>\n<parameter name='ss.resource-key.vf-module' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key[$kidx].value`' />\n","comments":"","x":3607.000015258789,"y":1296.6191234588623,"z":"8068ded9.ccc26","wires":[]},{"id":"c4bd3f7e.1c8b5","type":"set","name":"set ss.resource-key.vnfc","xml":"<set>\n<parameter name='ss.resource-key.vnfc' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key[$kidx].value`' />\n","comments":"","x":3593.0003051757812,"y":1385.6191215515137,"z":"8068ded9.ccc26","wires":[]},{"id":"5e1b7935.47e818","type":"set","name":"set ss.resource-key.connection-points","xml":"<set>\n<parameter name='ss.resource-key.connection-points' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key[$kidx].value`' />\n","comments":"","x":3635.143081665039,"y":1429.9048519134521,"z":"8068ded9.ccc26","wires":[]},{"id":"532ce28c.3776ac","type":"set","name":"set ss.resource-key.volume-group","xml":"<set>\n<parameter name='ss.resource-key.volume-group' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key[$kidx].value`' />\n","comments":"","x":3622.428939819336,"y":1341.1904468536377,"z":"8068ded9.ccc26","wires":[]},{"id":"8c93fc68.5c60f","type":"set","name":"set ss.resource-key.l-interface","xml":"<set>\n<parameter name='ss.resource-key.l-interface' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key[$kidx].value`' />\n","comments":"","x":3611.5715560913086,"y":1474.0477256774902,"z":"8068ded9.ccc26","wires":[]},{"id":"c92bdf18.2a6ef","type":"set","name":"set ss.resource-key.l3-network","xml":"<set>\n<parameter name='ss.resource-key.l3-network' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].resource-resolution-data.resource-key[$kidx].value`' />\n","comments":"","x":3614.143165588379,"y":1520.9047985076904,"z":"8068ded9.ccc26","wires":[]},{"id":"1e19f844.9c0ec8","type":"switchNode","name":"switch: ss.resource-key.generic-vnf","xml":"<switch test=\"`$ss.resource-key.generic-vnf`\">\n\n\n","comments":"","outputs":1,"x":1004.285888671875,"y":1415.8333263397217,"z":"8068ded9.ccc26","wires":[["22799027.e77b3"]]},{"id":"22799027.e77b3","type":"outcome","name":"generic-vnf","xml":"<outcome value='generic-vnf'>\n","comments":"","outputs":1,"x":1258.3174285888672,"y":1415.5832529067993,"z":"8068ded9.ccc26","wires":[["e09c2dd9.09452"]]},{"id":"8d88acea.3f4ec","type":"outcome","name":"volume-group","xml":"<outcome value='volume-group'>\n","comments":"","outputs":1,"x":1275.2182846069336,"y":3825.154559135437,"z":"8068ded9.ccc26","wires":[["2d857037.91483"]]},{"id":"6b9d6bf5.bbd334","type":"outcome","name":"vnfc","xml":"<outcome value='vnfc'>\n","comments":"","outputs":1,"x":1189.9327087402344,"y":4289.536512374878,"z":"8068ded9.ccc26","wires":[["6e76a93a.5e0588"]]},{"id":"6caebe95.cbe41","type":"outcome","name":"connection-points","xml":"<outcome value='connection-points'>\n","comments":"","outputs":1,"x":1308.7895584106445,"y":4614.012176275253,"z":"8068ded9.ccc26","wires":[["b7dc825b.8fad"]]},{"id":"7b7e9ace.8bcdd4","type":"outcome","name":"l-interface","xml":"<outcome value='l-interface'>\n","comments":"","outputs":1,"x":1249.0278244018555,"y":5281.91733455658,"z":"8068ded9.ccc26","wires":[["dbc07084.be7f5"]]},{"id":"4c582c8b.e26454","type":"outcome","name":"l3-network","xml":"<outcome value='l3-netework'>\n","comments":"","outputs":1,"x":1267.741928100586,"y":6171.630530357361,"z":"8068ded9.ccc26","wires":[["b307f248.13b72"]]},{"id":"e09c2dd9.09452","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1043.74995803833,"y":1644.6191158294678,"z":"8068ded9.ccc26","wires":[["cdbfc33f.d52a7","b9bf0de4.48018","26afdd51.b0c082","908814ee.d3c7b8","c975e01d.234e2","70689778.84aa08"]]},{"id":"b7a3bc44.8c264","type":"outcome","name":"availability_zone_0","xml":"<outcome value='availability_zone_0'>","comments":"","outputs":1,"x":2346.4286346435547,"y":1263.6190452575684,"z":"8068ded9.ccc26","wires":[["edac9821.fddc48"]]},{"id":"edac9821.fddc48","type":"set","name":"set ss.param.availability-zone-0, index","xml":"<set>\n<parameter name='ss.param.availability-zone-0' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$bidx].value`' />\n<parameter name='ss.param.availability-zone-0-index' value='`$bidx`' />","comments":"","x":2702.928611755371,"y":1263.369044303894,"z":"8068ded9.ccc26","wires":[]},{"id":"b6529101.23526","type":"save","name":"save availability-zone relationship","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf:relationship-list\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id\" >\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"availability-zone\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`$ss.availability-zone.related-link`\" />\n<!--\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"availability-zone\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"cloud-region.cloud-owner\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.cloud-region.cloud-owner`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-key\" value=\"cloud-region.cloud-region-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[1].relationship-value\" value=\"`$ss.param.aic-cloud-region`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-key\" value=\"availability-zone.availability-zone-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[2].relationship-value\" value=\"`$ss.param.availability-zone-0`\" />\n-->","comments":"","outputs":1,"x":2502.2857818603516,"y":2878.3335857391357,"z":"8068ded9.ccc26","wires":[["eff6042e.114c48","d6c66a3.e397a98","d3081601.d09528"]]},{"id":"eff6042e.114c48","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2751.5358123779297,"y":2878.6906328201294,"z":"8068ded9.ccc26","wires":[["7582c90f.6e1e58"]]},{"id":"d6c66a3.e397a98","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2757.7858238220215,"y":2929.440667152405,"z":"8068ded9.ccc26","wires":[["285dd4bf.b8919c"]]},{"id":"f35164aa.6c0648","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to save availability-zone relationship for generic-vnf in AnAI with availability-zone-name =' + $ss.param.as-number + '; ' + $error-message`\" />\n","comments":"","x":3127.404769897461,"y":2878.4763374328613,"z":"8068ded9.ccc26","wires":[]},{"id":"ef238623.db9c18","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to create availability-zone relationship because generic-vnf with vnf-id =' + $ss.param.vnf-id + ' is not found in AAI. ' + $error-message`\" />\n","comments":"","x":3127.976287841797,"y":2928.7145137786865,"z":"8068ded9.ccc26","wires":[]},{"id":"7582c90f.6e1e58","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2924.9643783569336,"y":2878.7621574401855,"z":"8068ded9.ccc26","wires":[["f35164aa.6c0648","7102730.01d478c"]]},{"id":"285dd4bf.b8919c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2927.8215942382812,"y":2929.6192989349365,"z":"8068ded9.ccc26","wires":[["ef238623.db9c18","7102730.01d478c"]]},{"id":"70689778.84aa08","type":"switchNode","name":"ss.param.availability-zone-0 != NULL","xml":"<switch test=\"`$ss.param.availability-zone-0 != ''`\">\n\n\n","comments":"","outputs":1,"x":1326.7736320495605,"y":2782.845057487488,"z":"8068ded9.ccc26","wires":[["2be7ec40.58f454"]]},{"id":"2be7ec40.58f454","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1563.2020149230957,"y":2783.273591041565,"z":"8068ded9.ccc26","wires":[["8780edee.3bd45"]]},{"id":"8780edee.3bd45","type":"execute","name":"ss.param.availability-zone-0 contains $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name='source' value='`$ss.param.availability-zone-0`' />\n <parameter name='target' value='$' />\n","comments":"","outputs":1,"x":1807.011562347412,"y":2783.6545734405518,"z":"8068ded9.ccc26","wires":[["4bde0e1f.c32f9","bf9059c2.977898"]]},{"id":"4bde0e1f.c32f9","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2063.011501312256,"y":2782.940100669861,"z":"8068ded9.ccc26","wires":[["95fe6fb0.516f"]]},{"id":"bf9059c2.977898","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2063.4883403778076,"y":2831.797315597534,"z":"8068ded9.ccc26","wires":[["f23554a3.c0f0c8"]]},{"id":"95fe6fb0.516f","type":"record","name":"availability_zone_0","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'ss.param.availability-zone-0 = ' + $ss.param.availability-zone-0`\"/>\n<parameter name=\"field3\" value=\"__SKIP availability-zone-0 update for generic-vnf in AnAI__\"/>","comments":"","outputs":1,"x":2253.535655975342,"y":2783.2263259887695,"z":"8068ded9.ccc26","wires":[[]]},{"id":"d3081601.d09528","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2759.0594635009766,"y":2981.6192302703857,"z":"8068ded9.ccc26","wires":[["abfe1557.59faf8"]]},{"id":"abfe1557.59faf8","type":"set","name":"set availability-zone-0-updated = true","xml":"<set>\n<parameter name='ss.availability-zone-0-updated' value='true' />\n","comments":"","x":3001.2022857666016,"y":2981.0476970672607,"z":"8068ded9.ccc26","wires":[]},{"id":"96bf497d.7c0b58","type":"save","name":"Rollback generic-vnf update","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf:relationship-list\" \n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \n\t\tAND related-to = availability-zone \n\t\tAND relationship.related-link = $tmp.related-link\" >","comments":"","outputs":1,"x":4930.714065551758,"y":2756.9527320861816,"z":"8068ded9.ccc26","wires":[["518876d5.324a98","4baf9d28.7def04","d702b2c2.0eebd"]]},{"id":"518876d5.324a98","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":5167.964050292969,"y":2756.4526767730713,"z":"8068ded9.ccc26","wires":[["97aeb615.ee80a8"]]},{"id":"4baf9d28.7def04","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":5174.214061737061,"y":2808.2027111053467,"z":"8068ded9.ccc26","wires":[["6bbd2d7b.4fd744"]]},{"id":"84056dd2.6ed0f","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-module-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":4981.142532348633,"y":2659.6545724868774,"z":"8068ded9.ccc26","wires":[]},{"id":"d702b2c2.0eebd","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":5172.035308837891,"y":2856.4642810821533,"z":"8068ded9.ccc26","wires":[["5d7ab32b.2f0aac"]]},{"id":"e5f99cea.bb11a","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":4678.320991516113,"y":2616.047516822815,"z":"8068ded9.ccc26","wires":[["84056dd2.6ed0f","96bf497d.7c0b58","b1f6477e.336b08","49a4a067.9c036"]]},{"id":"97aeb615.ee80a8","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf availability-zone relationship from AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":5350.785247802734,"y":2756.5713510513306,"z":"8068ded9.ccc26","wires":[]},{"id":"6bbd2d7b.4fd744","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf availability-zone relationship because generic-vnf with vnf-id=' + $ss.param.vnf-id + ' is not found in AAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":5353.285247802734,"y":2807.821352958679,"z":"8068ded9.ccc26","wires":[]},{"id":"5d7ab32b.2f0aac","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of generic-vnf availability-zone relationship completed. '`\" />\n","comments":"","x":5355.785247802734,"y":2856.8213510513306,"z":"8068ded9.ccc26","wires":[]},{"id":"b1f6477e.336b08","type":"record","name":"record generic-vnf relationship ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK availability-zone relationship\"/>","comments":"","outputs":1,"x":4973.285232543945,"y":2615.154570579529,"z":"8068ded9.ccc26","wires":[[]]},{"id":"48bbb5d3.ee15fc","type":"switchNode","name":"ss.availability-zone-0-updated","xml":"<switch test=\"`$ss.availability-zone-0-updated`\">\n\n\n","comments":"","outputs":1,"x":4297.428375244141,"y":2616.0002546310425,"z":"8068ded9.ccc26","wires":[["caa3d3a3.6b923"]]},{"id":"caa3d3a3.6b923","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":4513.999664306641,"y":2616.42884349823,"z":"8068ded9.ccc26","wires":[["e5f99cea.bb11a"]]},{"id":"40e8fb80.4fe434","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":4059.0478286743164,"y":2410.9524269104004,"z":"8068ded9.ccc26","wires":[["48bbb5d3.ee15fc","7102730.01d478c"]]},{"id":"49a4a067.9c036","type":"set","name":"set tmp.related-link","xml":"<set>\n<parameter name='tmp.related-link' \n\tvalue=\"`'/aai/v$/cloud-infrastructure/cloud-regions/cloud-region/' + \n\t$prop.cloud-region.cloud-owner + \n\t'/' + \n\t$ss.param.aic-cloud-region + \n\t'/availability-zones/availability-zone/' + \n\t$ss.param.availability-zone-0`\" /> ","comments":"","x":4901.380401611328,"y":2708.6194067001343,"z":"8068ded9.ccc26","wires":[]},{"id":"a393fb3d.925a18","type":"switchNode","name":"switch: ss.resource-key.vf-module","xml":"<switch test=\"`$ss.resource-key.vf-module`\">\n\n\n","comments":"","outputs":1,"x":993.0477256774902,"y":3363.7859120368958,"z":"8068ded9.ccc26","wires":[["212cb7fa.9054e8"]]},{"id":"212cb7fa.9054e8","type":"outcome","name":"vf-module","xml":"<outcome value='vf-module'>\n","comments":"","outputs":1,"x":1246.8410301208496,"y":3363.4166798591614,"z":"8068ded9.ccc26","wires":[["f0e5f31a.7af32"]]},{"id":"f0e5f31a.7af32","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1438.7499465942383,"y":3363.9762563705444,"z":"8068ded9.ccc26","wires":[["fff7178f.f6b028","e53f3779.d51718","61212051.1f615"]]},{"id":"12288572.4b441b","type":"switchNode","name":"switch: ss.resource-key.generic-vnf","xml":"<switch test=\"`$ss.resource-key.generic-vnf`\">\n\n\n","comments":"","outputs":1,"x":5412.858173370361,"y":3067.3337631225586,"z":"8068ded9.ccc26","wires":[["2de67d2d.eaa8c2"]]},{"id":"2de67d2d.eaa8c2","type":"outcome","name":"generic-vnf","xml":"<outcome value='generic-vnf'>\n","comments":"","outputs":1,"x":5666.8897132873535,"y":3067.0836896896362,"z":"8068ded9.ccc26","wires":[["1c8efb54.0d2e25"]]},{"id":"e9ef052a.050278","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":5172.8579177856445,"y":3067.762412071228,"z":"8068ded9.ccc26","wires":[["12288572.4b441b"]]},{"id":"310596e2.42bc4a","type":"switchNode","name":"switch: ss.resource-key.volume-group","xml":"<switch test=\"`$ss.resource-key.volume-group`\">\n\n\n","comments":"","outputs":1,"x":1000.2382659912109,"y":3824.571523666382,"z":"8068ded9.ccc26","wires":[["8d88acea.3f4ec"]]},{"id":"2d857037.91483","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1464.368953704834,"y":3825.5235500335693,"z":"8068ded9.ccc26","wires":[["be71747e.761fd8","2bb84732.4581c8"]]},{"id":"5a1044bf.9a5c0c","type":"switchNode","name":"switch: ss.resource-key.vf-module","xml":"<switch test=\"`$ss.resource-key.vf-module`\">\n\n\n","comments":"","outputs":1,"x":5263.715049743652,"y":3456.6194343566895,"z":"8068ded9.ccc26","wires":[["2202a5e9.5bf9ba"]]},{"id":"2202a5e9.5bf9ba","type":"outcome","name":"vf-module","xml":"<outcome value='vf-module'>\n","comments":"","outputs":1,"x":5507.508354187012,"y":3456.250202178955,"z":"8068ded9.ccc26","wires":[["3d611339.da18cc"]]},{"id":"5baa82ec.dffecc","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":5016.715049743652,"y":3282.6194343566895,"z":"8068ded9.ccc26","wires":[["e9ef052a.050278","5a1044bf.9a5c0c"]]},{"id":"61212051.1f615","type":"set","name":"set ss.selflink","xml":"<set>\n<parameter name='ss.selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + \n$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.service-information.service-instance-id + \n'/service-data/vnfs/vnf=' + \n$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vnf-information.vnf-id + \n'/vnf-data/vf-modules/vf-module=' + \n$ss.param.vf-module-id + \n'/vf-module-data/vf-module-topology?content=config'`\" />\n","comments":"","x":1667.333381652832,"y":3496.237877845764,"z":"8068ded9.ccc26","wires":[]},{"id":"c0feb185.c5348","type":"switchNode","name":"switch: ss.resource-key.vnfc","xml":"<switch test=\"`$ss.resource-key.vnfc`\">\n\n\n","comments":"","outputs":1,"x":967.3056488037109,"y":4289.608148574829,"z":"8068ded9.ccc26","wires":[["6b9d6bf5.bbd334"]]},{"id":"f10164da.04f358","type":"switchNode","name":"switch: ss.resource-key.connection-points","xml":"<switch test=\"`$ss.resource-key.connection-points`\">\n\n\n","comments":"","outputs":1,"x":1014.3810577392578,"y":4614.28610253334,"z":"8068ded9.ccc26","wires":[["6caebe95.cbe41"]]},{"id":"40f8f017.2403a","type":"switchNode","name":"switch: ss.resource-key.l-interface","xml":"<switch test=\"`$ss.resource-key.l-interface`\">\n\n\n","comments":"","outputs":1,"x":995.7143478393555,"y":5281.61899471283,"z":"8068ded9.ccc26","wires":[["7b7e9ace.8bcdd4"]]},{"id":"4fcc988.d1ea868","type":"switchNode","name":"switch: ss.resource-key.l3-network","xml":"<switch test=\"`$ss.resource-key.l3-network`\">\n\n\n","comments":"","outputs":1,"x":1004.9998321533203,"y":6172.333167076111,"z":"8068ded9.ccc26","wires":[["4c582c8b.e26454"]]},{"id":"5819b51f.e401ec","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2080.2382049560547,"y":4058.3332056999207,"z":"8068ded9.ccc26","wires":[["270b03e3.958a6c","5baa82ec.dffecc"]]},{"id":"270b03e3.958a6c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'volume-group not found in AnAI with volume-group-id=' + $ss.param.volume-group-id + '; ' + $error-message`\" />\n","comments":"","x":2271.9048805236816,"y":4057.4047617912292,"z":"8068ded9.ccc26","wires":[]},{"id":"2da1393.d2f90c6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1758.4762687683105,"y":4334.190864562988,"z":"8068ded9.ccc26","wires":[["6b1f5790.4f6e98","4c4f8f77.4d5e8"]]},{"id":"1a8d278c.ff1d48","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1567.6667938232422,"y":4334.476434707642,"z":"8068ded9.ccc26","wires":[["2da1393.d2f90c6"]]},{"id":"1dadc5fe.f7b3aa","type":"switchNode","name":"switch: ss.resource-key.volume-group","xml":"<switch test=\"`$ss.resource-key.volume-group`\">\n\n\n","comments":"","outputs":1,"x":5108.714794158936,"y":3733.9529342651367,"z":"8068ded9.ccc26","wires":[["e0077fc8.8ce35"]]},{"id":"e0077fc8.8ce35","type":"outcome","name":"volume-group","xml":"<outcome value='volume-group'>\n","comments":"","outputs":1,"x":5365.508098602295,"y":3733.5837020874023,"z":"8068ded9.ccc26","wires":[["5688630b.c730bc"]]},{"id":"8bd683f0.0ff8a","type":"outcome","name":"vnfc","xml":"<outcome value='vnfc'>\n","comments":"","outputs":1,"x":5170.715019226074,"y":4010.6193017959595,"z":"8068ded9.ccc26","wires":[["35fbb6bd.1fe98a"]]},{"id":"b6293e2c.6351f","type":"switchNode","name":"switch: ss.resource-key.vnfc","xml":"<switch test=\"`$ss.resource-key.vnfc`\">\n\n\n","comments":"","outputs":1,"x":4948.087959289551,"y":4010.6909379959106,"z":"8068ded9.ccc26","wires":[["8bd683f0.0ff8a"]]},{"id":"6686e089.e3643","type":"comment","name":"UNASSIGN","info":"","comments":"","x":3334.7619705200195,"y":2942.61895942688,"z":"8068ded9.ccc26","wires":[]},{"id":"db46c464.eb3478","type":"outcome","name":"l-interface","xml":"<outcome value='l-interface'>\n","comments":"","outputs":1,"x":4883.857345581055,"y":4758.047756195068,"z":"8068ded9.ccc26","wires":[["5de01092.e1692"]]},{"id":"47592f63.65ff8","type":"switchNode","name":"switch: ss.resource-key.l-interface","xml":"<switch test=\"`$ss.resource-key.l-interface`\">\n\n\n","comments":"","outputs":1,"x":4650.543869018555,"y":4757.749416351318,"z":"8068ded9.ccc26","wires":[["db46c464.eb3478"]]},{"id":"1c0b6aa6.c62445","type":"outcome","name":"l3-network","xml":"<outcome value='l3-netework'>\n","comments":"","outputs":1,"x":4667.61856842041,"y":5527.523387908936,"z":"8068ded9.ccc26","wires":[["e665f06b.96f35"]]},{"id":"ecb6efb1.19ad9","type":"switchNode","name":"switch: ss.resource-key.l3-network","xml":"<switch test=\"`$ss.resource-key.l3-network`\">\n","comments":"","outputs":1,"x":4404.8764724731445,"y":5528.226024627686,"z":"8068ded9.ccc26","wires":[["1c0b6aa6.c62445"]]},{"id":"3b70420c.dc52de","type":"outcome","name":"l-interface","xml":"<outcome value='l-interface'>\n","comments":"","outputs":1,"x":4778.714279174805,"y":5166.619045257568,"z":"8068ded9.ccc26","wires":[["3199093e.07e6f6"]]},{"id":"16cd30f3.c7e79f","type":"switchNode","name":"switch: ss.resource-key.l-interface","xml":"<switch test=\"`$ss.resource-key.l-interface`\">\n\n\n","comments":"","outputs":1,"x":4545.400802612305,"y":5166.320705413818,"z":"8068ded9.ccc26","wires":[["3b70420c.dc52de"]]},{"id":"408e0f2b.32827","type":"set","name":"set ss.cp.related-link","xml":"<set>\n<parameter name='ss.cp.related-link' \n\tvalue=\"`'/aai/v$/network/vnfcs/vnfc/' + \n\t$ss.param.vnfc-name + \n\t'/cps/cp/' + \n\t$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-assignments.vms.vm[0].vm-names.vnfc-names[0].vnfc-networks.vnfc-network-data[$i].connection-point.connection-point-id`\" />","comments":"","x":2628.666618347168,"y":4817.666753053665,"z":"8068ded9.ccc26","wires":[]},{"id":"998e8a86.fc6368","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2416.666435241699,"y":4817.999890565872,"z":"8068ded9.ccc26","wires":[["408e0f2b.32827","2f9cf95b.a79726"]]},{"id":"8725d510.792668","type":"set","name":"set ss.l3-network.related-link","xml":"<set>\n<parameter name='ss.l3-network.related-link' \n\tvalue=\"`'/aai/v$/network/l3-networks/l3-network/' + $ss.network[$n].netid`\" />","comments":"","x":1869.9998779296875,"y":6171.000082015991,"z":"8068ded9.ccc26","wires":[]},{"id":"2dbbe18d.9f749e","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1631.666618347168,"y":6171.333102226257,"z":"8068ded9.ccc26","wires":[["8725d510.792668","4933575b.c49bc8"]]},{"id":"ed90b580.692598","type":"set","name":"set ss.availability-zone.related-link","xml":"<set>\n<parameter name='ss.availability-zone.related-link' \n\tvalue=\"`'/aai/v$/cloud-infrastructure/cloud-regions/cloud-region/' + \n\t$prop.cloud-region.cloud-owner + '/' + $ss.param.aic-cloud-region + \n\t'/availability-zones/availability-zone/' + \n\t$ss.param.availability-zone-0`\" />\n","comments":"","x":2502.7144470214844,"y":2831.857195854187,"z":"8068ded9.ccc26","wires":[]},{"id":"f23554a3.c0f0c8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2240.571601867676,"y":2832.2856311798096,"z":"8068ded9.ccc26","wires":[["ed90b580.692598","b6529101.23526"]]}] diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-aai-vnf-put.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-aai-vnf-put.json index 044dac70..1c2f40eb 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-aai-vnf-put.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-aai-vnf-put.json @@ -1 +1 @@ -[{"id":"55d0537a.aad9ac","type":"dgstart","name":"DGSTART","outputs":1,"x":140,"y":37.14285659790039,"z":"85bef54a.63a4f8","wires":[["d3d5c485.a4c258"]]},{"id":"3fcd67d7.8f74e8","type":"method","name":"method self-serve-aai-vnf-put","xml":"<method rpc='self-serve-aai-vnf-put' mode='sync'>\n","comments":"","outputs":1,"x":270.7857208251953,"y":112.60317993164062,"z":"85bef54a.63a4f8","wires":[["dfd5ae04.f32e3"]]},{"id":"dfd5ae04.f32e3","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":159.46430206298828,"y":259.09527111053467,"z":"85bef54a.63a4f8","wires":[["1ef56451.f805fc","c307398e.690a88","43d1bc2b.422f64","ac85cbde.bc5418"]]},{"id":"d3d5c485.a4c258","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":412.8571472167969,"y":36.57142353057861,"z":"85bef54a.63a4f8","wires":[["3fcd67d7.8f74e8"]]},{"id":"1ef56451.f805fc","type":"switchNode","name":"switch: ss.capability-action","xml":"<switch test='`$ss.capability-action`'>\n","comments":"","outputs":1,"x":402.5000305175781,"y":313.03571128845215,"z":"85bef54a.63a4f8","wires":[["f78a5ca3.c9ff1","545c7cf1.7eb664"]]},{"id":"f78a5ca3.c9ff1","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":626.0000267028809,"y":313.28571128845215,"z":"85bef54a.63a4f8","wires":[["d3b4d1fc.2a362"]]},{"id":"d3b4d1fc.2a362","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\t<parameter name=\"error-message\" value=\"ss.capability-action is null\" />\n","comments":"","x":785.9166984558105,"y":313.39681005477905,"z":"85bef54a.63a4f8","wires":[]},{"id":"545c7cf1.7eb664","type":"outcome","name":"assign","xml":"<outcome value='assign'>","comments":"","outputs":1,"x":625.7500228881836,"y":362.28571462631226,"z":"85bef54a.63a4f8","wires":[["72205822.388d68"]]},{"id":"df1f48c5.e7d9e8","type":"for","name":"for aidx in param_length (VNF)","xml":"<for silentFailure='true' index=\"aidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`\">","comments":"","outputs":1,"x":1047.7420234680176,"y":362.2460980415344,"z":"85bef54a.63a4f8","wires":[["37dfb14b.c1f7be"]]},{"id":"c307398e.690a88","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-aai-vnfput.log' />\n","comments":"","outputs":1,"x":358.9880828857422,"y":544.523811340332,"z":"85bef54a.63a4f8","wires":[[]]},{"id":"37dfb14b.c1f7be","type":"switchNode","name":"switch: param[].name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$aidx].name`'>\n","comments":"","outputs":1,"x":1310.2857093811035,"y":362.5000042915344,"z":"85bef54a.63a4f8","wires":[["c5a32a56.cd5118","c689826d.88f7f","58892a1d.521944","b4a84036.4788c","29e202.a7a62dfe","d7859900.1cb0d8","5c6dfc03.287a34"]]},{"id":"c5a32a56.cd5118","type":"outcome","name":"vnf_name","xml":"<outcome value='vnf_name'>","comments":"","outputs":1,"x":1531.3215599060059,"y":362.28569984436035,"z":"85bef54a.63a4f8","wires":[["55a24330.b52acc"]]},{"id":"c689826d.88f7f","type":"outcome","name":"vnf_id","xml":"<outcome value='vnf_id'>","comments":"","outputs":1,"x":1523.9645042419434,"y":404.1071581840515,"z":"85bef54a.63a4f8","wires":[["aa844c30.45db1"]]},{"id":"55a24330.b52acc","type":"set","name":"set vnf-name, index","xml":"<set>\n<parameter name='ss.param.vnf-name' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$aidx].value`' />\n<parameter name='ss.param.vnf-name-index' value='`$aidx`' />","comments":"","x":1722.3215675354004,"y":362.7857155799866,"z":"85bef54a.63a4f8","wires":[]},{"id":"aa844c30.45db1","type":"set","name":"set vnf-id, index","xml":"<set>\n<parameter name='ss.param.vnf-id' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$aidx].value`' />\n<parameter name='ss.param.vnf-id-index' value='`$aidx`' />","comments":"","x":1699.4645156860352,"y":403.85715913772583,"z":"85bef54a.63a4f8","wires":[]},{"id":"86241a75.30e1b8","type":"save","name":"update generic-vnf","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"vnf-name\" value=\"`$ss.param.vnf-name`\" />\n<parameter name=\"prov-status\" value=\"PREPROV\" />\n<parameter name=\"operational-status\" value=\"out-of-service-path\" />\n<parameter name=\"selflink\" value=\"`$ss.selflink`\" />\n<parameter name=\"model-customization-id\" \n\tvalue=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.onap-model-information.model-customization-uuid`\" />\n<parameter name=\"model-invariant-id\" \n\tvalue=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.onap-model-information.model-invariant-uuid`\" />\n<parameter name=\"model-version-id\" \n\tvalue=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.onap-model-information.model-uuid`\" />","comments":"","outputs":1,"x":1012.1784973144531,"y":963.1072387695312,"z":"85bef54a.63a4f8","wires":[["4c5244df.ce970c","7dd9e5a8.f30c7c"]]},{"id":"4c5244df.ce970c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1212.4285278320312,"y":963.4642858505249,"z":"85bef54a.63a4f8","wires":[["e6a6591.117aea8"]]},{"id":"7dd9e5a8.f30c7c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1218.678539276123,"y":1015.2143201828003,"z":"85bef54a.63a4f8","wires":[["684c9c20.1ac634"]]},{"id":"80d924b7.aface8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf.vnf-name in AnAI with vnf-name=' + $ss.param.vnf-name`\" />\n","comments":"","x":1650.2974853515625,"y":963.2499904632568,"z":"85bef54a.63a4f8","wires":[]},{"id":"facbfa08.015888","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'generic-vnf with vnf-id =' + $ss.param.vnf-id + ' is not found in AAI'`\" />\n","comments":"","x":1650.8690032958984,"y":1013.488166809082,"z":"85bef54a.63a4f8","wires":[]},{"id":"8157040a.eb58e8","type":"save","name":"get generic-vnf","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \"\n\tpfx=\"tmp.aai.vnf\" >\n\n","comments":"","outputs":1,"x":1003.4642219543457,"y":748.0000066757202,"z":"85bef54a.63a4f8","wires":[["ef982b26.77f938","75c917ec.7702b8"]]},{"id":"ef982b26.77f938","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1211.999855041504,"y":747.499927520752,"z":"85bef54a.63a4f8","wires":[["b75ef25a.515e5"]]},{"id":"75c917ec.7702b8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1220.2497749328613,"y":846.3928356170654,"z":"85bef54a.63a4f8","wires":[["63c26544.05168c"]]},{"id":"a4abae3c.5acf","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Encountered error to get generic-vnf with vnf-id=' + $ss.param.vnf-id + ' from AnAI'`\" />\n","comments":"","x":1656.4400596618652,"y":792.9999465942383,"z":"85bef54a.63a4f8","wires":[]},{"id":"e95a3d2d.d5c19","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'generic-vnf.vnf-name with vnf-id=' + $ss.param.vnf-id + ' not found in AAI'`\" />\n","comments":"","x":1658.1545333862305,"y":846.95250415802,"z":"85bef54a.63a4f8","wires":[]},{"id":"72205822.388d68","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":783.5000190734863,"y":362.535710811615,"z":"85bef54a.63a4f8","wires":[["df1f48c5.e7d9e8","8157040a.eb58e8","86241a75.30e1b8","47acecfe.290644","3d3628a4.f5f868","110e04e.b280ffb","c62e5711.65deb8"]]},{"id":"b75ef25a.515e5","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1383.5714416503906,"y":747.5357208251953,"z":"85bef54a.63a4f8","wires":[["8eb3ba4a.2df338","a4abae3c.5acf"]]},{"id":"e6a6591.117aea8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1385.8570938110352,"y":963.535810470581,"z":"85bef54a.63a4f8","wires":[["8eb3ba4a.2df338","80d924b7.aface8"]]},{"id":"684c9c20.1ac634","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1388.7143096923828,"y":1014.392951965332,"z":"85bef54a.63a4f8","wires":[["8eb3ba4a.2df338","facbfa08.015888"]]},{"id":"63c26544.05168c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1386.4285202026367,"y":846.5357208251953,"z":"85bef54a.63a4f8","wires":[["8eb3ba4a.2df338","e95a3d2d.d5c19"]]},{"id":"8eb3ba4a.2df338","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.param.aai-vnf-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":1753.1428298950195,"y":747.2500324249268,"z":"85bef54a.63a4f8","wires":[]},{"id":"56dac433.4ebe4c","type":"comment","name":"VNF params","info":"","comments":"","x":1021.785717010498,"y":312.6190495491028,"z":"85bef54a.63a4f8","wires":[]},{"id":"58892a1d.521944","type":"outcome","name":"license-assignment-group-uuid","xml":"<outcome value='license-assignment-group-uuid'>","comments":"","outputs":1,"x":1601.0000267028809,"y":447.1428647041321,"z":"85bef54a.63a4f8","wires":[["33858d6f.c508c2"]]},{"id":"33858d6f.c508c2","type":"set","name":"set license-assignment-group-uuid, index","xml":"<set>\n<parameter name='ss.param.license-assignment-group-uuid' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$aidx].value`' />\n<parameter name='ss.param.license-assignment-group-uuid-index' value='`$aidx`' />","comments":"","x":1944.5000381469727,"y":446.8928656578064,"z":"85bef54a.63a4f8","wires":[]},{"id":"b4a84036.4788c","type":"outcome","name":"entitlement-assignment-group-uuid","xml":"<outcome value='entitlement-assignment-group-uuid'>","comments":"","outputs":1,"x":1616.0000267028809,"y":489.6428647041321,"z":"85bef54a.63a4f8","wires":[["6b87d852.7227f8"]]},{"id":"6b87d852.7227f8","type":"set","name":"set entitlement-assignment-group-uuid, index","xml":"<set>\n<parameter name='ss.param.entitlement-assignment-group-uuid' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$aidx].value`' />\n<parameter name='ss.param.entitlement-assignment-group-uuid-index' value='`$aidx`' />","comments":"","x":1959.5000381469727,"y":489.3928656578064,"z":"85bef54a.63a4f8","wires":[]},{"id":"c6893659.48b0a8","type":"save","name":"Rollback generic-vnf update","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"vnf-name\" value='`$tmp.aai.vnf.vnf-anme`' />","comments":"","outputs":1,"x":3439.0000076293945,"y":978.928617477417,"z":"85bef54a.63a4f8","wires":[["5b3c33f6.ebd2cc","5d1a7d88.ced424","c0606087.f6dec"]]},{"id":"5b3c33f6.ebd2cc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3677.2499923706055,"y":978.4285621643066,"z":"85bef54a.63a4f8","wires":[["19c115b9.1a8d5a"]]},{"id":"5d1a7d88.ced424","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":3687.250045776367,"y":1018.928632736206,"z":"85bef54a.63a4f8","wires":[["9038539f.5722d"]]},{"id":"d601c3d4.6d50b","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":3490.4284896850586,"y":933.2972393035889,"z":"85bef54a.63a4f8","wires":[]},{"id":"c0606087.f6dec","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3685.071334838867,"y":1059.6902294158936,"z":"85bef54a.63a4f8","wires":[["7acb4638.07b6a8"]]},{"id":"c470bf3f.ce10b","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":3189.606948852539,"y":889.6901836395264,"z":"85bef54a.63a4f8","wires":[["d601c3d4.6d50b","c6893659.48b0a8","7f2cc0f0.2fb8"]]},{"id":"19c115b9.1a8d5a","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf update in AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":3860.071189880371,"y":978.5472364425659,"z":"85bef54a.63a4f8","wires":[]},{"id":"9038539f.5722d","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf update because generic-vnf with vnf-id = ' + $ss.param.vnf-id + ' is not found in AAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":3866.321231842041,"y":1018.5472745895386,"z":"85bef54a.63a4f8","wires":[]},{"id":"7acb4638.07b6a8","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of generic-vnf update completed. '`\" />\n","comments":"","x":3868.821273803711,"y":1060.0472993850708,"z":"85bef54a.63a4f8","wires":[]},{"id":"7f2cc0f0.2fb8","type":"record","name":"record generic-vnf ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK generic-vnf update\"/>","comments":"","outputs":1,"x":3444.571189880371,"y":888.7972373962402,"z":"85bef54a.63a4f8","wires":[[]]},{"id":"b21660af.9463e","type":"comment","name":"ROLLBACK STARET HERE","info":"","comments":"","x":3213.14266204834,"y":834.7495536804199,"z":"85bef54a.63a4f8","wires":[]},{"id":"c68671d5.40c25","type":"save","name":"save license","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"license\"\n\t\tkey=\"license.group-uuid = $ss.param.license-assignment-group-uuid \n\t\tAND license.resource-uuid = $ss.param.license-key\n\t\tAND generic-vnf.vnf-id = $ss.param.vnf-id\" >\n<parameter name=\"group-uuid\" value='`$ss.param.license-assignment-group-uuid`' />\n<parameter name=\"resource-uuid\" value='`$ss.param.license-key`' />","comments":"","outputs":1,"x":2126.321647644043,"y":1164.821494102478,"z":"85bef54a.63a4f8","wires":[["596f2794.29bd08","3babeea8.206f12","d8ad3e8c.2f704"]]},{"id":"596f2794.29bd08","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2326.571678161621,"y":1165.1785411834717,"z":"85bef54a.63a4f8","wires":[["d5f43627.b5ce68"]]},{"id":"3babeea8.206f12","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2332.821689605713,"y":1216.928575515747,"z":"85bef54a.63a4f8","wires":[["379e1f2a.c8bb6"]]},{"id":"ba258248.c8735","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to save license with group-uuid = ' + $ss.param.license-assignment-group-uuid + ' AND license.resource-uuid = ' + $ss.param.license-key + ' in AA. ' + $error-message`\" />\n","comments":"","x":2701.4406356811523,"y":1164.9642457962036,"z":"85bef54a.63a4f8","wires":[]},{"id":"37505579.aeb93a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'license with group-uuid = ' + $ss.param.license-assignment-group-uuid + ' AND license.resource-uuid = ' + $ss.param.license-key + ' is not found in AAI. ' + $error-message`\" />\n","comments":"","x":2702.0121536254883,"y":1215.2024221420288,"z":"85bef54a.63a4f8","wires":[]},{"id":"d5f43627.b5ce68","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2500.000244140625,"y":1165.2500658035278,"z":"85bef54a.63a4f8","wires":[["ba258248.c8735","c470bf3f.ce10b"]]},{"id":"379e1f2a.c8bb6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2502.8574600219727,"y":1216.1072072982788,"z":"85bef54a.63a4f8","wires":[["37505579.aeb93a","c470bf3f.ce10b"]]},{"id":"25fd194b.69a846","type":"save","name":"save entitlement","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"entitlement\"\n\t\tkey=\"entitlement.group-uuid = $ss.param.entitlement-assignment-group-uuid \n\t\tAND entitlement.resource-uuid = $ss.param.entitlement-key\n\t\tAND generic-vnf.vnf-id = $ss.param.vnf-id\" >\n<parameter name=\"group-uuid\" value='`$ss.param.entitlement-assignment-group-uuid`' />\n<parameter name=\"resource-uuid\" value='`$ss.param.entitlement-key`' />","comments":"","outputs":1,"x":2148.583366394043,"y":1518.2499980926514,"z":"85bef54a.63a4f8","wires":[["6aa55b3.95b14a4","c6d02bd0.b0edd8"]]},{"id":"6aa55b3.95b14a4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2348.833396911621,"y":1518.607045173645,"z":"85bef54a.63a4f8","wires":[["71ccf768.2c3b38"]]},{"id":"c6d02bd0.b0edd8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2355.083408355713,"y":1570.3570795059204,"z":"85bef54a.63a4f8","wires":[["67dfc015.a0271"]]},{"id":"d3bfd616.246fd8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to save entitlement with group-uuid = ' + $ss.param.entitlement-assignment-group-uuid + ' AND entitlement.resource-uuid = ' + $ss.param.entitlement-key + ' in AAI. ' + $error-message`\" />\n","comments":"","x":2717.98819732666,"y":1518.3926372528076,"z":"85bef54a.63a4f8","wires":[]},{"id":"18dde61b.aca13a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'entitlement with group-uuid = ' + $ss.param.entitlement-assignment-group-uuid + ' AND entitlement.resource-uuid = ' + $ss.param.entitlement-key + ' is not found in AAI. ' + $error-message`\" />\n","comments":"","x":2724.2738723754883,"y":1568.6309261322021,"z":"85bef54a.63a4f8","wires":[]},{"id":"71ccf768.2c3b38","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2522.261962890625,"y":1518.6785697937012,"z":"85bef54a.63a4f8","wires":[["d3bfd616.246fd8","479bbe95.38113"]]},{"id":"67dfc015.a0271","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2525.1191787719727,"y":1569.5357112884521,"z":"85bef54a.63a4f8","wires":[["18dde61b.aca13a","479bbe95.38113"]]},{"id":"85eb871.2640978","type":"save","name":"Rollback license save","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"license\"\n\t\tkey=\"license.group-uuid = $ss.param.license-assignment-group-uuid \n\t\tAND license.resource-uuid = $ss.param.license-key\" >","comments":"","outputs":1,"x":3809.3573417663574,"y":1243.6072721481323,"z":"85bef54a.63a4f8","wires":[["6ce1b45f.4ed2bc","93d8b7a8.2141d8","d4c04554.422618"]]},{"id":"6ce1b45f.4ed2bc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":4047.6073265075684,"y":1243.107216835022,"z":"85bef54a.63a4f8","wires":[["1e973b6a.3ecc25"]]},{"id":"93d8b7a8.2141d8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":4056.3573417663574,"y":1282.3572721481323,"z":"85bef54a.63a4f8","wires":[["d0cb4d6e.6f6cf"]]},{"id":"d4c04554.422618","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":4054.1786346435547,"y":1320.6188688278198,"z":"85bef54a.63a4f8","wires":[["dae35973.8abc38"]]},{"id":"d86b3e46.6b4fb","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":3573.2142448425293,"y":1201.8688192367554,"z":"85bef54a.63a4f8","wires":[["85eb871.2640978","7905671f.4688f8"]]},{"id":"1e973b6a.3ecc25","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback license with group-uuid = ' + $ss.param.license-assignment-group-uuid + ' AND license.resource-uuid = ' + $ss.param.license-key + ' in AAI. MANUAL ROLLBACK IS REQUIRED!'`\" />\n","comments":"","x":4230.428524017334,"y":1243.2258911132812,"z":"85bef54a.63a4f8","wires":[]},{"id":"d0cb4d6e.6f6cf","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback license because license with group-uuid = ' + $ss.param.license-assignment-group-uuid + ' AND license.resource-uuid = ' + $ss.param.license-key + ' NOT FOUND in AAI. SILENT SUCCESS! '`\" />\n","comments":"","x":4235.428527832031,"y":1281.9759140014648,"z":"85bef54a.63a4f8","wires":[]},{"id":"dae35973.8abc38","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of license completed. '`\" />\n","comments":"","x":4237.928573608398,"y":1320.975938796997,"z":"85bef54a.63a4f8","wires":[]},{"id":"7905671f.4688f8","type":"record","name":"record license ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK license\"/>","comments":"","outputs":1,"x":3824.1784858703613,"y":1200.9758729934692,"z":"85bef54a.63a4f8","wires":[[]]},{"id":"479bbe95.38113","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":3030.428451538086,"y":1063.9285678863525,"z":"85bef54a.63a4f8","wires":[["c470bf3f.ce10b","b081f7f0.a01508"]]},{"id":"47acecfe.290644","type":"set","name":"set resource-resolution-data.status = SUCCESS","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.param.aai-vnf-put-index].resource-resolution-data.status' \n\tvalue='SUCCESS' />\n","comments":"","x":1090.845458984375,"y":1695.5354652404785,"z":"85bef54a.63a4f8","wires":[]},{"id":"29e202.a7a62dfe","type":"outcome","name":"aai-vnf-put","xml":"<outcome value='aai-vnf-put'>","comments":"","outputs":1,"x":1543.2500038146973,"y":533.3928589820862,"z":"85bef54a.63a4f8","wires":[["5d6926ab.0be6e8"]]},{"id":"5d6926ab.0be6e8","type":"set","name":"set ss.param.aai-vnf-put-index","xml":"<set>\n<parameter name='ss.param.aai-vnf-put-index' value='`$aidx`' />","comments":"","x":1776.750015258789,"y":533.1428599357605,"z":"85bef54a.63a4f8","wires":[]},{"id":"43d1bc2b.422f64","type":"switchNode","name":"switch: ss.capability-name","xml":"<switch test='`$ss.capability-name`'>\n","comments":"","outputs":1,"x":400.8928451538086,"y":258.75000953674316,"z":"85bef54a.63a4f8","wires":[["760bd716.8d2598"]]},{"id":"760bd716.8d2598","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":625.8928680419922,"y":259.2500081062317,"z":"85bef54a.63a4f8","wires":[["53678390.0ec93c"]]},{"id":"53678390.0ec93c","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\t<parameter name=\"error-message\" value=\"ss.capability-name is null\" />\n","comments":"","x":785.8095397949219,"y":259.3611068725586,"z":"85bef54a.63a4f8","wires":[]},{"id":"ac85cbde.bc5418","type":"set","name":"set param[$ss.param.aai-vnf-put-index].value = SUCCESS","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.param.aai-vnf-put-index].value' \n\tvalue='SUCCESS' />\n","comments":"","x":505.6071472167969,"y":483.0357093811035,"z":"85bef54a.63a4f8","wires":[]},{"id":"d7859900.1cb0d8","type":"outcome","name":"license-key","xml":"<outcome value='license-key'>","comments":"","outputs":1,"x":1545.71439743042,"y":579.999979019165,"z":"85bef54a.63a4f8","wires":[["ef0d6945.2d36b8"]]},{"id":"ef0d6945.2d36b8","type":"set","name":"set license-key, index","xml":"<set>\n<parameter name='ss.param.license-key' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$aidx].value`' />\n<parameter name='ss.param.license-key-index' value='`$aidx`' />","comments":"","x":1781.2144088745117,"y":579.7499799728394,"z":"85bef54a.63a4f8","wires":[]},{"id":"5c6dfc03.287a34","type":"outcome","name":"entitlement-key","xml":"<outcome value='entitlement-key'>","comments":"","outputs":1,"x":1558.71439743042,"y":622.499979019165,"z":"85bef54a.63a4f8","wires":[["27af300f.e5eac"]]},{"id":"27af300f.e5eac","type":"set","name":"set entitlement-key, index","xml":"<set>\n<parameter name='ss.param.entitlement-key' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$aidx].value`' />\n<parameter name='ss.param.entitlement-key-index' value='`$aidx`' />","comments":"","x":1796.2144088745117,"y":622.2499799728394,"z":"85bef54a.63a4f8","wires":[]},{"id":"3d3628a4.f5f868","type":"switchNode","name":"ss.param.license-assignment-group-uuid != NULL","xml":"<switch test=\"`$ss.param.license-assignment-group-uuid != ''`\">\n","comments":"","outputs":1,"x":1107.1427612304688,"y":1118.428671836853,"z":"85bef54a.63a4f8","wires":[["70116375.debe9c"]]},{"id":"bea6d364.081b4","type":"execute","name":"ss.param.license-assignment-group-uuid contains $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name='source' value='`$ss.param.license-assignment-group-uuid`' />\n <parameter name='target' value='$' />\n","comments":"","outputs":1,"x":1677.5238494873047,"y":1117.8572483062744,"z":"85bef54a.63a4f8","wires":[["535af96b.aeb4e8","970650fa.244cd"]]},{"id":"535af96b.aeb4e8","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1972.5237884521484,"y":1117.1427755355835,"z":"85bef54a.63a4f8","wires":[["3ca8f5ac.1ddeda"]]},{"id":"70116375.debe9c","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1398.8095016479492,"y":1117.857219696045,"z":"85bef54a.63a4f8","wires":[["bea6d364.081b4"]]},{"id":"970650fa.244cd","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1973.0006275177002,"y":1164.9999904632568,"z":"85bef54a.63a4f8","wires":[["c68671d5.40c25"]]},{"id":"3ca8f5ac.1ddeda","type":"record","name":"record ss.param.license-assignment-group-uuid","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'ss.param.license-assignment-group-uuid = ' + $ss.param.license-assignment-group-uuid`\"/>\n<parameter name=\"field3\" value=\"__SKIP saving license object in AnAI__\"/>","comments":"","outputs":1,"x":2235.952377319336,"y":1116.4285945892334,"z":"85bef54a.63a4f8","wires":[[]]},{"id":"110e04e.b280ffb","type":"switchNode","name":"ss.param.entitlement-assignment-group-uuid NULL","xml":"<switch test=\"`$ss.param.entitlement-assignment-group-uuid != ''`\">\n","comments":"","outputs":1,"x":1108.0952453613281,"y":1469.4286861419678,"z":"85bef54a.63a4f8","wires":[["f6c3383e.93cd68"]]},{"id":"99866447.2f71e8","type":"execute","name":"ss.param.license-assignment-group-uuid contains $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name='source' value='`$ss.param.entitlement-assignment-group-uuid`' />\n <parameter name='target' value='$' />\n","comments":"","outputs":1,"x":1680.1428680419922,"y":1469.1905555725098,"z":"85bef54a.63a4f8","wires":[["723da42a.d12fec","285fe0d2.3ca42"]]},{"id":"723da42a.d12fec","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1975.142807006836,"y":1468.4760828018188,"z":"85bef54a.63a4f8","wires":[["cecb74d6.760fe8"]]},{"id":"f6c3383e.93cd68","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1401.4285202026367,"y":1469.1905269622803,"z":"85bef54a.63a4f8","wires":[["99866447.2f71e8"]]},{"id":"285fe0d2.3ca42","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1975.6195335388184,"y":1518.3333625793457,"z":"85bef54a.63a4f8","wires":[["25fd194b.69a846"]]},{"id":"cecb74d6.760fe8","type":"record","name":"record ss.param.entitlement-assignment-group-uuid","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'ss.param.entitlement-assignment-group-uuid = ' + $ss.param.entitlement-assignment-group-uuid`\"/>\n<parameter name=\"field3\" value=\"__SKIP saving entitlement object in AnAI__\"/>","comments":"","outputs":1,"x":2259.5713958740234,"y":1467.7619018554688,"z":"85bef54a.63a4f8","wires":[[]]},{"id":"d8ad3e8c.2f704","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2330,"y":1265.7143535614014,"z":"85bef54a.63a4f8","wires":[["7e08d129.12734"]]},{"id":"7e08d129.12734","type":"set","name":"set ss.license-updated = true","xml":"<set>\n<parameter name='ss.license-updated' value='true' />\n","comments":"","x":2550.142822265625,"y":1265.1428203582764,"z":"85bef54a.63a4f8","wires":[]},{"id":"b081f7f0.a01508","type":"switchNode","name":"ss.ss.license-updated","xml":"<switch test=\"`$ss.license-updated`\">\n\n\n","comments":"","outputs":1,"x":3238.5715103149414,"y":1202.4286546707153,"z":"85bef54a.63a4f8","wires":[["eaef5990.271bf8"]]},{"id":"eaef5990.271bf8","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3430.1427993774414,"y":1201.8572435379028,"z":"85bef54a.63a4f8","wires":[["d86b3e46.6b4fb"]]},{"id":"c62e5711.65deb8","type":"set","name":"set ss.selflink","xml":"<set>\n<parameter name=\"ss.selflink\" \n\tvalue=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + \n\t$service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id + \n\t'/service-data/vnfs/vnf/' + \n\t$ss.param.vnf-id + \n\t'/vnf-data/vnf-topology/'`\" />\n","comments":"","x":995.9999771118164,"y":892.8571701049805,"z":"85bef54a.63a4f8","wires":[]}]
\ No newline at end of file +[{"id":"55d0537a.aad9ac","type":"dgstart","name":"DGSTART","outputs":1,"x":140,"y":37.14285659790039,"z":"85bef54a.63a4f8","wires":[["d3d5c485.a4c258"]]},{"id":"3fcd67d7.8f74e8","type":"method","name":"method self-serve-aai-vnf-put","xml":"<method rpc='self-serve-aai-vnf-put' mode='sync'>\n","comments":"","outputs":1,"x":270.7857208251953,"y":112.60317993164062,"z":"85bef54a.63a4f8","wires":[["dfd5ae04.f32e3"]]},{"id":"dfd5ae04.f32e3","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":159.46430206298828,"y":259.09527111053467,"z":"85bef54a.63a4f8","wires":[["1ef56451.f805fc","c307398e.690a88","43d1bc2b.422f64","ac85cbde.bc5418"]]},{"id":"d3d5c485.a4c258","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":412.8571472167969,"y":36.57142353057861,"z":"85bef54a.63a4f8","wires":[["3fcd67d7.8f74e8"]]},{"id":"1ef56451.f805fc","type":"switchNode","name":"switch: ss.capability-action","xml":"<switch test='`$ss.capability-action`'>\n","comments":"","outputs":1,"x":402.5000305175781,"y":313.03571128845215,"z":"85bef54a.63a4f8","wires":[["f78a5ca3.c9ff1","545c7cf1.7eb664"]]},{"id":"f78a5ca3.c9ff1","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":626.0000267028809,"y":313.28571128845215,"z":"85bef54a.63a4f8","wires":[["d3b4d1fc.2a362"]]},{"id":"d3b4d1fc.2a362","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\t<parameter name=\"error-message\" value=\"ss.capability-action is null\" />\n","comments":"","x":785.9166984558105,"y":313.39681005477905,"z":"85bef54a.63a4f8","wires":[]},{"id":"545c7cf1.7eb664","type":"outcome","name":"assign","xml":"<outcome value='assign'>","comments":"","outputs":1,"x":625.7500228881836,"y":362.28571462631226,"z":"85bef54a.63a4f8","wires":[["72205822.388d68"]]},{"id":"df1f48c5.e7d9e8","type":"for","name":"for aidx in param_length (VNF)","xml":"<for silentFailure='true' index=\"aidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`\">","comments":"","outputs":1,"x":1047.7420234680176,"y":362.2460980415344,"z":"85bef54a.63a4f8","wires":[["37dfb14b.c1f7be"]]},{"id":"c307398e.690a88","type":"execute","name":"printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-aai-vnfput.log' />\n","comments":"","outputs":1,"x":358.9880828857422,"y":544.523811340332,"z":"85bef54a.63a4f8","wires":[[]]},{"id":"37dfb14b.c1f7be","type":"switchNode","name":"switch: param[].name","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$aidx].name`'>\n","comments":"","outputs":1,"x":1310.2857093811035,"y":362.5000042915344,"z":"85bef54a.63a4f8","wires":[["c5a32a56.cd5118","c689826d.88f7f","58892a1d.521944","b4a84036.4788c","29e202.a7a62dfe","d7859900.1cb0d8","5c6dfc03.287a34"]]},{"id":"c5a32a56.cd5118","type":"outcome","name":"vnf_name","xml":"<outcome value='vnf_name'>","comments":"","outputs":1,"x":1531.3215599060059,"y":362.28569984436035,"z":"85bef54a.63a4f8","wires":[["55a24330.b52acc"]]},{"id":"c689826d.88f7f","type":"outcome","name":"vnf_id","xml":"<outcome value='vnf_id'>","comments":"","outputs":1,"x":1523.9645042419434,"y":404.1071581840515,"z":"85bef54a.63a4f8","wires":[["aa844c30.45db1"]]},{"id":"55a24330.b52acc","type":"set","name":"set vnf-name, index","xml":"<set>\n<parameter name='ss.param.vnf-name' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$aidx].value`' />\n<parameter name='ss.param.vnf-name-index' value='`$aidx`' />","comments":"","x":1722.3215675354004,"y":362.7857155799866,"z":"85bef54a.63a4f8","wires":[]},{"id":"aa844c30.45db1","type":"set","name":"set vnf-id, index","xml":"<set>\n<parameter name='ss.param.vnf-id' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$aidx].value`' />\n<parameter name='ss.param.vnf-id-index' value='`$aidx`' />","comments":"","x":1699.4645156860352,"y":403.85715913772583,"z":"85bef54a.63a4f8","wires":[]},{"id":"86241a75.30e1b8","type":"save","name":"update generic-vnf","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"vnf-name\" value=\"`$ss.param.vnf-name`\" />\n<parameter name=\"prov-status\" value=\"PREPROV\" />\n<parameter name=\"operational-status\" value=\"out-of-service-path\" />\n<parameter name=\"selflink\" value=\"`$ss.selflink`\" />\n<parameter name=\"model-customization-id\" \n\tvalue=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.onap-model-information.model-customization-uuid`\" />\n<parameter name=\"model-invariant-id\" \n\tvalue=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.onap-model-information.model-invariant-uuid`\" />\n<parameter name=\"model-version-id\" \n\tvalue=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.onap-model-information.model-uuid`\" />","comments":"","outputs":1,"x":1012.1784973144531,"y":963.1072387695312,"z":"85bef54a.63a4f8","wires":[["4c5244df.ce970c","7dd9e5a8.f30c7c"]]},{"id":"4c5244df.ce970c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1212.4285278320312,"y":963.4642858505249,"z":"85bef54a.63a4f8","wires":[["e6a6591.117aea8"]]},{"id":"7dd9e5a8.f30c7c","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1218.678539276123,"y":1015.2143201828003,"z":"85bef54a.63a4f8","wires":[["684c9c20.1ac634"]]},{"id":"80d924b7.aface8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to update generic-vnf.vnf-name in AnAI with vnf-name=' + $ss.param.vnf-name`\" />\n","comments":"","x":1650.2974853515625,"y":963.2499904632568,"z":"85bef54a.63a4f8","wires":[]},{"id":"facbfa08.015888","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'generic-vnf with vnf-id =' + $ss.param.vnf-id + ' is not found in AAI'`\" />\n","comments":"","x":1650.8690032958984,"y":1013.488166809082,"z":"85bef54a.63a4f8","wires":[]},{"id":"8157040a.eb58e8","type":"save","name":"get generic-vnf","xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \"\n\tpfx=\"tmp.aai.vnf\" >\n\n","comments":"","outputs":1,"x":1003.4642219543457,"y":748.0000066757202,"z":"85bef54a.63a4f8","wires":[["ef982b26.77f938","75c917ec.7702b8"]]},{"id":"ef982b26.77f938","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1211.999855041504,"y":747.499927520752,"z":"85bef54a.63a4f8","wires":[["b75ef25a.515e5"]]},{"id":"75c917ec.7702b8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1220.2497749328613,"y":846.3928356170654,"z":"85bef54a.63a4f8","wires":[["63c26544.05168c"]]},{"id":"a4abae3c.5acf","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Encountered error to get generic-vnf with vnf-id=' + $ss.param.vnf-id + ' from AnAI'`\" />\n","comments":"","x":1656.4400596618652,"y":792.9999465942383,"z":"85bef54a.63a4f8","wires":[]},{"id":"e95a3d2d.d5c19","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'generic-vnf.vnf-name with vnf-id=' + $ss.param.vnf-id + ' not found in AAI'`\" />\n","comments":"","x":1658.1545333862305,"y":846.95250415802,"z":"85bef54a.63a4f8","wires":[]},{"id":"72205822.388d68","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":783.5000190734863,"y":362.535710811615,"z":"85bef54a.63a4f8","wires":[["df1f48c5.e7d9e8","8157040a.eb58e8","86241a75.30e1b8","47acecfe.290644","3d3628a4.f5f868","110e04e.b280ffb","c62e5711.65deb8"]]},{"id":"b75ef25a.515e5","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1383.5714416503906,"y":747.5357208251953,"z":"85bef54a.63a4f8","wires":[["8eb3ba4a.2df338","a4abae3c.5acf"]]},{"id":"e6a6591.117aea8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1385.8570938110352,"y":963.535810470581,"z":"85bef54a.63a4f8","wires":[["8eb3ba4a.2df338","80d924b7.aface8"]]},{"id":"684c9c20.1ac634","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1388.7143096923828,"y":1014.392951965332,"z":"85bef54a.63a4f8","wires":[["8eb3ba4a.2df338","facbfa08.015888"]]},{"id":"63c26544.05168c","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1386.4285202026367,"y":846.5357208251953,"z":"85bef54a.63a4f8","wires":[["8eb3ba4a.2df338","e95a3d2d.d5c19"]]},{"id":"8eb3ba4a.2df338","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.param.aai-vnf-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":1753.1428298950195,"y":747.2500324249268,"z":"85bef54a.63a4f8","wires":[]},{"id":"56dac433.4ebe4c","type":"comment","name":"VNF params","info":"","comments":"","x":1021.785717010498,"y":312.6190495491028,"z":"85bef54a.63a4f8","wires":[]},{"id":"58892a1d.521944","type":"outcome","name":"license-assignment-group-uuid","xml":"<outcome value='license-assignment-group-uuid'>","comments":"","outputs":1,"x":1601.0000267028809,"y":447.1428647041321,"z":"85bef54a.63a4f8","wires":[["33858d6f.c508c2"]]},{"id":"33858d6f.c508c2","type":"set","name":"set license-assignment-group-uuid, index","xml":"<set>\n<parameter name='ss.param.license-assignment-group-uuid' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$aidx].value`' />\n<parameter name='ss.param.license-assignment-group-uuid-index' value='`$aidx`' />","comments":"","x":1944.5000381469727,"y":446.8928656578064,"z":"85bef54a.63a4f8","wires":[]},{"id":"b4a84036.4788c","type":"outcome","name":"entitlement-assignment-group-uuid","xml":"<outcome value='entitlement-assignment-group-uuid'>","comments":"","outputs":1,"x":1616.0000267028809,"y":489.6428647041321,"z":"85bef54a.63a4f8","wires":[["6b87d852.7227f8"]]},{"id":"6b87d852.7227f8","type":"set","name":"set entitlement-assignment-group-uuid, index","xml":"<set>\n<parameter name='ss.param.entitlement-assignment-group-uuid' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$aidx].value`' />\n<parameter name='ss.param.entitlement-assignment-group-uuid-index' value='`$aidx`' />","comments":"","x":1959.5000381469727,"y":489.3928656578064,"z":"85bef54a.63a4f8","wires":[]},{"id":"c6893659.48b0a8","type":"save","name":"Rollback generic-vnf update","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"generic-vnf\"\n\t\tkey=\"generic-vnf.vnf-id = $ss.param.vnf-id \" >\n<parameter name=\"vnf-name\" value='`$tmp.aai.vnf.vnf-anme`' />","comments":"","outputs":1,"x":3439.0000076293945,"y":978.928617477417,"z":"85bef54a.63a4f8","wires":[["5b3c33f6.ebd2cc","5d1a7d88.ced424","c0606087.f6dec"]]},{"id":"5b3c33f6.ebd2cc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":3677.2499923706055,"y":978.4285621643066,"z":"85bef54a.63a4f8","wires":[["19c115b9.1a8d5a"]]},{"id":"5d1a7d88.ced424","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":3687.250045776367,"y":1018.928632736206,"z":"85bef54a.63a4f8","wires":[["9038539f.5722d"]]},{"id":"d601c3d4.6d50b","type":"set","name":"set resource-resolution-data.status = FAILED","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$ss.param.aai-vf-put-index].resource-resolution-data.status' \n\tvalue='FAILED' />\n","comments":"","x":3490.4284896850586,"y":933.2972393035889,"z":"85bef54a.63a4f8","wires":[]},{"id":"c0606087.f6dec","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":3685.071334838867,"y":1059.6902294158936,"z":"85bef54a.63a4f8","wires":[["7acb4638.07b6a8"]]},{"id":"c470bf3f.ce10b","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":3189.606948852539,"y":889.6901836395264,"z":"85bef54a.63a4f8","wires":[["d601c3d4.6d50b","c6893659.48b0a8","7f2cc0f0.2fb8"]]},{"id":"19c115b9.1a8d5a","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf update in AnAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":3860.071189880371,"y":978.5472364425659,"z":"85bef54a.63a4f8","wires":[]},{"id":"9038539f.5722d","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback generic-vnf update because generic-vnf with vnf-id = ' + $ss.param.vnf-id + ' is not found in AAI. MANUAL ROLLBACK IS REQUIRED! '`\" />\n","comments":"","x":3866.321231842041,"y":1018.5472745895386,"z":"85bef54a.63a4f8","wires":[]},{"id":"7acb4638.07b6a8","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of generic-vnf update completed. '`\" />\n","comments":"","x":3868.821273803711,"y":1060.0472993850708,"z":"85bef54a.63a4f8","wires":[]},{"id":"7f2cc0f0.2fb8","type":"record","name":"record generic-vnf ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK generic-vnf update\"/>","comments":"","outputs":1,"x":3444.571189880371,"y":888.7972373962402,"z":"85bef54a.63a4f8","wires":[[]]},{"id":"b21660af.9463e","type":"comment","name":"ROLLBACK STARET HERE","info":"","comments":"","x":3213.14266204834,"y":834.7495536804199,"z":"85bef54a.63a4f8","wires":[]},{"id":"c68671d5.40c25","type":"save","name":"save license","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"license\"\n\t\tkey=\"license.group-uuid = $ss.param.license-assignment-group-uuid \n\t\tAND license.resource-uuid = $ss.param.license-key\n\t\tAND generic-vnf.vnf-id = $ss.param.vnf-id\" >\n<parameter name=\"group-uuid\" value='`$ss.param.license-assignment-group-uuid`' />\n<parameter name=\"resource-uuid\" value='`$ss.param.license-key`' />","comments":"","outputs":1,"x":2126.321647644043,"y":1164.821494102478,"z":"85bef54a.63a4f8","wires":[["596f2794.29bd08","3babeea8.206f12","d8ad3e8c.2f704"]]},{"id":"596f2794.29bd08","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2326.571678161621,"y":1165.1785411834717,"z":"85bef54a.63a4f8","wires":[["d5f43627.b5ce68"]]},{"id":"3babeea8.206f12","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2332.821689605713,"y":1216.928575515747,"z":"85bef54a.63a4f8","wires":[["379e1f2a.c8bb6"]]},{"id":"ba258248.c8735","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to save license with group-uuid = ' + $ss.param.license-assignment-group-uuid + ' AND license.resource-uuid = ' + $ss.param.license-key + ' in AA. ' + $error-message`\" />\n","comments":"","x":2701.4406356811523,"y":1164.9642457962036,"z":"85bef54a.63a4f8","wires":[]},{"id":"37505579.aeb93a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'license with group-uuid = ' + $ss.param.license-assignment-group-uuid + ' AND license.resource-uuid = ' + $ss.param.license-key + ' is not found in AAI. ' + $error-message`\" />\n","comments":"","x":2702.0121536254883,"y":1215.2024221420288,"z":"85bef54a.63a4f8","wires":[]},{"id":"d5f43627.b5ce68","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2500.000244140625,"y":1165.2500658035278,"z":"85bef54a.63a4f8","wires":[["ba258248.c8735","c470bf3f.ce10b"]]},{"id":"379e1f2a.c8bb6","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2502.8574600219727,"y":1216.1072072982788,"z":"85bef54a.63a4f8","wires":[["37505579.aeb93a","c470bf3f.ce10b"]]},{"id":"25fd194b.69a846","type":"save","name":"save entitlement","xml":"<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"entitlement\"\n\t\tkey=\"entitlement.group-uuid = $ss.param.entitlement-assignment-group-uuid \n\t\tAND entitlement.resource-uuid = $ss.param.entitlement-key\n\t\tAND generic-vnf.vnf-id = $ss.param.vnf-id\" >\n<parameter name=\"group-uuid\" value='`$ss.param.entitlement-assignment-group-uuid`' />\n<parameter name=\"resource-uuid\" value='`$ss.param.entitlement-key`' />","comments":"","outputs":1,"x":2148.583366394043,"y":1518.2499980926514,"z":"85bef54a.63a4f8","wires":[["6aa55b3.95b14a4","c6d02bd0.b0edd8"]]},{"id":"6aa55b3.95b14a4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2348.833396911621,"y":1518.607045173645,"z":"85bef54a.63a4f8","wires":[["71ccf768.2c3b38"]]},{"id":"c6d02bd0.b0edd8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2355.083408355713,"y":1570.3570795059204,"z":"85bef54a.63a4f8","wires":[["67dfc015.a0271"]]},{"id":"d3bfd616.246fd8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to save entitlement with group-uuid = ' + $ss.param.entitlement-assignment-group-uuid + ' AND entitlement.resource-uuid = ' + $ss.param.entitlement-key + ' in AAI. ' + $error-message`\" />\n","comments":"","x":2717.98819732666,"y":1518.3926372528076,"z":"85bef54a.63a4f8","wires":[]},{"id":"18dde61b.aca13a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'entitlement with group-uuid = ' + $ss.param.entitlement-assignment-group-uuid + ' AND entitlement.resource-uuid = ' + $ss.param.entitlement-key + ' is not found in AAI. ' + $error-message`\" />\n","comments":"","x":2724.2738723754883,"y":1568.6309261322021,"z":"85bef54a.63a4f8","wires":[]},{"id":"71ccf768.2c3b38","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2522.261962890625,"y":1518.6785697937012,"z":"85bef54a.63a4f8","wires":[["d3bfd616.246fd8","479bbe95.38113"]]},{"id":"67dfc015.a0271","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":2525.1191787719727,"y":1569.5357112884521,"z":"85bef54a.63a4f8","wires":[["18dde61b.aca13a","479bbe95.38113"]]},{"id":"85eb871.2640978","type":"save","name":"Rollback license save","xml":"<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n\tresource=\"license\"\n\t\tkey=\"license.group-uuid = $ss.param.license-assignment-group-uuid \n\t\tAND license.resource-uuid = $ss.param.license-key\" >","comments":"","outputs":1,"x":3809.3573417663574,"y":1243.6072721481323,"z":"85bef54a.63a4f8","wires":[["6ce1b45f.4ed2bc","93d8b7a8.2141d8","d4c04554.422618"]]},{"id":"6ce1b45f.4ed2bc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":4047.6073265075684,"y":1243.107216835022,"z":"85bef54a.63a4f8","wires":[["1e973b6a.3ecc25"]]},{"id":"93d8b7a8.2141d8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":4056.3573417663574,"y":1282.3572721481323,"z":"85bef54a.63a4f8","wires":[["d0cb4d6e.6f6cf"]]},{"id":"d4c04554.422618","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":4054.1786346435547,"y":1320.6188688278198,"z":"85bef54a.63a4f8","wires":[["dae35973.8abc38"]]},{"id":"d86b3e46.6b4fb","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":3573.2142448425293,"y":1201.8688192367554,"z":"85bef54a.63a4f8","wires":[["85eb871.2640978","7905671f.4688f8"]]},{"id":"1e973b6a.3ecc25","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback license with group-uuid = ' + $ss.param.license-assignment-group-uuid + ' AND license.resource-uuid = ' + $ss.param.license-key + ' in AAI. MANUAL ROLLBACK IS REQUIRED!'`\" />\n","comments":"","x":4230.428524017334,"y":1243.2258911132812,"z":"85bef54a.63a4f8","wires":[]},{"id":"d0cb4d6e.6f6cf","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Failed to rollback license because license with group-uuid = ' + $ss.param.license-assignment-group-uuid + ' AND license.resource-uuid = ' + $ss.param.license-key + ' NOT FOUND in AAI. SILENT SUCCESS! '`\" />\n","comments":"","x":4235.428527832031,"y":1281.9759140014648,"z":"85bef54a.63a4f8","wires":[]},{"id":"dae35973.8abc38","type":"set","name":"set error-message","xml":"<set>\n<parameter name='error-message' value=\"`$error-message + ' Rollback of license completed. '`\" />\n","comments":"","x":4237.928573608398,"y":1320.975938796997,"z":"85bef54a.63a4f8","wires":[]},{"id":"7905671f.4688f8","type":"record","name":"record license ROLLBACK","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"ROLLBACK license\"/>","comments":"","outputs":1,"x":3824.1784858703613,"y":1200.9758729934692,"z":"85bef54a.63a4f8","wires":[[]]},{"id":"479bbe95.38113","type":"block","name":"block","xml":"<block>","atomic":"false","comments":"","outputs":1,"x":3030.428451538086,"y":1063.9285678863525,"z":"85bef54a.63a4f8","wires":[["c470bf3f.ce10b","b081f7f0.a01508"]]},{"id":"47acecfe.290644","type":"set","name":"set resource-resolution-data.status = SUCCESS","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.param.aai-vnf-put-index].resource-resolution-data.status' \n\tvalue='SUCCESS' />\n","comments":"","x":1090.845458984375,"y":1695.5354652404785,"z":"85bef54a.63a4f8","wires":[]},{"id":"29e202.a7a62dfe","type":"outcome","name":"aai-vnf-put","xml":"<outcome value='aai-vnf-put'>","comments":"","outputs":1,"x":1543.2500038146973,"y":533.3928589820862,"z":"85bef54a.63a4f8","wires":[["5d6926ab.0be6e8"]]},{"id":"5d6926ab.0be6e8","type":"set","name":"set ss.param.aai-vnf-put-index","xml":"<set>\n<parameter name='ss.param.aai-vnf-put-index' value='`$aidx`' />","comments":"","x":1776.750015258789,"y":533.1428599357605,"z":"85bef54a.63a4f8","wires":[]},{"id":"43d1bc2b.422f64","type":"switchNode","name":"switch: ss.capability-name","xml":"<switch test='`$ss.capability-name`'>\n","comments":"","outputs":1,"x":400.8928451538086,"y":258.75000953674316,"z":"85bef54a.63a4f8","wires":[["760bd716.8d2598"]]},{"id":"760bd716.8d2598","type":"outcome","name":"NULL","xml":"<outcome value=''>","outputs":1,"x":625.8928680419922,"y":259.2500081062317,"z":"85bef54a.63a4f8","wires":[["53678390.0ec93c"]]},{"id":"53678390.0ec93c","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\t<parameter name=\"error-message\" value=\"ss.capability-name is null\" />\n","comments":"","x":785.8095397949219,"y":259.3611068725586,"z":"85bef54a.63a4f8","wires":[]},{"id":"ac85cbde.bc5418","type":"set","name":"set param[$ss.param.aai-vnf-put-index].value = SUCCESS","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$ss.param.aai-vnf-put-index].value' \n\tvalue='SUCCESS' />\n","comments":"","x":505.6071472167969,"y":483.0357093811035,"z":"85bef54a.63a4f8","wires":[]},{"id":"d7859900.1cb0d8","type":"outcome","name":"license-key","xml":"<outcome value='license-key'>","comments":"","outputs":1,"x":1545.71439743042,"y":579.999979019165,"z":"85bef54a.63a4f8","wires":[["ef0d6945.2d36b8"]]},{"id":"ef0d6945.2d36b8","type":"set","name":"set license-key, index","xml":"<set>\n<parameter name='ss.param.license-key' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$aidx].value`' />\n<parameter name='ss.param.license-key-index' value='`$aidx`' />","comments":"","x":1781.2144088745117,"y":579.7499799728394,"z":"85bef54a.63a4f8","wires":[]},{"id":"5c6dfc03.287a34","type":"outcome","name":"entitlement-key","xml":"<outcome value='entitlement-key'>","comments":"","outputs":1,"x":1558.71439743042,"y":622.499979019165,"z":"85bef54a.63a4f8","wires":[["27af300f.e5eac"]]},{"id":"27af300f.e5eac","type":"set","name":"set entitlement-key, index","xml":"<set>\n<parameter name='ss.param.entitlement-key' value ='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$aidx].value`' />\n<parameter name='ss.param.entitlement-key-index' value='`$aidx`' />","comments":"","x":1796.2144088745117,"y":622.2499799728394,"z":"85bef54a.63a4f8","wires":[]},{"id":"3d3628a4.f5f868","type":"switchNode","name":"ss.param.license-assignment-group-uuid != NULL","xml":"<switch test=\"`$ss.param.license-assignment-group-uuid != ''`\">\n","comments":"","outputs":1,"x":1107.1427612304688,"y":1118.428671836853,"z":"85bef54a.63a4f8","wires":[["70116375.debe9c"]]},{"id":"bea6d364.081b4","type":"execute","name":"ss.param.license-assignment-group-uuid contains $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name='source' value='`$ss.param.license-assignment-group-uuid`' />\n <parameter name='target' value='$' />\n","comments":"","outputs":1,"x":1677.5238494873047,"y":1117.8572483062744,"z":"85bef54a.63a4f8","wires":[["535af96b.aeb4e8","970650fa.244cd"]]},{"id":"535af96b.aeb4e8","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1972.5237884521484,"y":1117.1427755355835,"z":"85bef54a.63a4f8","wires":[["3ca8f5ac.1ddeda"]]},{"id":"70116375.debe9c","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1398.8095016479492,"y":1117.857219696045,"z":"85bef54a.63a4f8","wires":[["bea6d364.081b4"]]},{"id":"970650fa.244cd","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1973.0006275177002,"y":1164.9999904632568,"z":"85bef54a.63a4f8","wires":[["c68671d5.40c25"]]},{"id":"3ca8f5ac.1ddeda","type":"record","name":"record ss.param.license-assignment-group-uuid","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'ss.param.license-assignment-group-uuid = ' + $ss.param.license-assignment-group-uuid`\"/>\n<parameter name=\"field3\" value=\"__SKIP saving license object in AnAI__\"/>","comments":"","outputs":1,"x":2235.952377319336,"y":1116.4285945892334,"z":"85bef54a.63a4f8","wires":[[]]},{"id":"110e04e.b280ffb","type":"switchNode","name":"ss.param.entitlement-assignment-group-uuid NULL","xml":"<switch test=\"`$ss.param.entitlement-assignment-group-uuid != ''`\">\n","comments":"","outputs":1,"x":1108.0952453613281,"y":1469.4286861419678,"z":"85bef54a.63a4f8","wires":[["f6c3383e.93cd68"]]},{"id":"99866447.2f71e8","type":"execute","name":"ss.param.license-assignment-group-uuid contains $","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' emitsOutcome='true' >\n <parameter name='source' value='`$ss.param.entitlement-assignment-group-uuid`' />\n <parameter name='target' value='$' />\n","comments":"","outputs":1,"x":1680.1428680419922,"y":1469.1905555725098,"z":"85bef54a.63a4f8","wires":[["723da42a.d12fec","285fe0d2.3ca42"]]},{"id":"723da42a.d12fec","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1975.142807006836,"y":1468.4760828018188,"z":"85bef54a.63a4f8","wires":[["cecb74d6.760fe8"]]},{"id":"f6c3383e.93cd68","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1401.4285202026367,"y":1469.1905269622803,"z":"85bef54a.63a4f8","wires":[["99866447.2f71e8"]]},{"id":"285fe0d2.3ca42","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1975.6195335388184,"y":1518.3333625793457,"z":"85bef54a.63a4f8","wires":[["25fd194b.69a846"]]},{"id":"cecb74d6.760fe8","type":"record","name":"record ss.param.entitlement-assignment-group-uuid","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'ss.param.entitlement-assignment-group-uuid = ' + $ss.param.entitlement-assignment-group-uuid`\"/>\n<parameter name=\"field3\" value=\"__SKIP saving entitlement object in AnAI__\"/>","comments":"","outputs":1,"x":2259.5713958740234,"y":1467.7619018554688,"z":"85bef54a.63a4f8","wires":[[]]},{"id":"d8ad3e8c.2f704","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2330,"y":1265.7143535614014,"z":"85bef54a.63a4f8","wires":[["7e08d129.12734"]]},{"id":"7e08d129.12734","type":"set","name":"set ss.license-updated = true","xml":"<set>\n<parameter name='ss.license-updated' value='true' />\n","comments":"","x":2550.142822265625,"y":1265.1428203582764,"z":"85bef54a.63a4f8","wires":[]},{"id":"b081f7f0.a01508","type":"switchNode","name":"ss.ss.license-updated","xml":"<switch test=\"`$ss.license-updated`\">\n\n\n","comments":"","outputs":1,"x":3238.5715103149414,"y":1202.4286546707153,"z":"85bef54a.63a4f8","wires":[["eaef5990.271bf8"]]},{"id":"eaef5990.271bf8","type":"outcomeFalse","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":3430.1427993774414,"y":1201.8572435379028,"z":"85bef54a.63a4f8","wires":[["d86b3e46.6b4fb"]]},{"id":"c62e5711.65deb8","type":"set","name":"set ss.selflink","xml":"<set>\n<parameter name=\"ss.selflink\" \n\tvalue=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + \n\t$service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id + \n\t'/service-data/vnfs/vnf=' + \n\t$ss.param.vnf-id + \n\t'/vnf-data/vnf-topology?content=config'`\" />\n","comments":"","x":995.9999771118164,"y":892.8571701049805,"z":"85bef54a.63a4f8","wires":[]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation-assign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation-assign.json index 15639e10..e57dd71e 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation-assign.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation-assign.json @@ -414,7 +414,7 @@ "id": "be564011.84b1f",
"type": "set",
"name": "set service-object-path",
- "xml": "<set>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $service-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $service-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 1748.4839096069336,
"y": 1177.318284034729,
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation-changeassign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation-changeassign.json index 748630e6..73540218 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation-changeassign.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation-changeassign.json @@ -1 +1 @@ -[{"id":"1f9dbb81.bd6b84","type":"dgstart","name":"DGSTART","outputs":1,"x":102.85714721679688,"y":86.69937062263489,"z":"9aaf200d.92f26","wires":[["633701bf.7e227"]]},{"id":"633701bf.7e227","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":215.28570556640625,"y":126.93748116493225,"z":"9aaf200d.92f26","wires":[["eda99e12.c4db9"]]},{"id":"eda99e12.c4db9","type":"method","name":"method service-topology-operation-changeassign","xml":"<method rpc='service-topology-operation-changeassign' mode='sync'>\n","comments":"","outputs":1,"x":225.00005340576172,"y":166.69936871528625,"z":"9aaf200d.92f26","wires":[["c174c97e.d13f68"]]},{"id":"b3b27563.3aac08","type":"comment","name":"service-topology-operation-changeassign","info":"","comments":"","x":497.2020034790039,"y":34.28571438789368,"z":"9aaf200d.92f26","wires":[]},{"id":"90ec9992.f85358","type":"switchNode","name":"switch request-action","xml":"<switch test='`$service-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":502.0952606201172,"y":268.4136621952057,"z":"9aaf200d.92f26","wires":[["6050b73d.61ab98","86976390.b2c"]]},{"id":"6050b73d.61ab98","type":"outcome","name":"CreateServiceInstance","xml":"<outcome value='CreateServiceInstance'>\n","comments":"","outputs":1,"x":739.2380752563477,"y":242.6993706226349,"z":"9aaf200d.92f26","wires":[["a56cc43.e39ad38"]]},{"id":"86976390.b2c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":689.2380981445312,"y":286.74700951576233,"z":"9aaf200d.92f26","wires":[["f64c64f0.f401b8"]]},{"id":"a56cc43.e39ad38","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":917.8095321655273,"y":242.6994059085846,"z":"9aaf200d.92f26","wires":[[]]},{"id":"f64c64f0.f401b8","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=\"If svc-action is 'changeassign' then request-action must be 'CreateServiceInstance'\" />\n","comments":"","x":896.6190452575684,"y":286.7470209598541,"z":"9aaf200d.92f26","wires":[]},{"id":"7d55c8d3.17c188","type":"switchNode","name":"switch order-status","xml":"<switch test='`$service-data.service-level-oper-status.order-status`'>\n","comments":"","outputs":1,"x":491.5237731933594,"y":372.22328305244446,"z":"9aaf200d.92f26","wires":[["1522dee0.b2ff41","864651dc.ec881"]]},{"id":"1522dee0.b2ff41","type":"other","name":"PendingDelete","xml":"<outcome value='PendingDelete'>\n","comments":"","outputs":1,"x":711.8571548461914,"y":401.60411953926086,"z":"9aaf200d.92f26","wires":[["df498389.23c5"]]},{"id":"bdf58d56.1da1b","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=\"The requested service must be pending deletion\" />\n","comments":"","x":879.6666412353516,"y":354.9374897480011,"z":"9aaf200d.92f26","wires":[]},{"id":"df498389.23c5","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":861.0952320098877,"y":401.4612829685211,"z":"9aaf200d.92f26","wires":[[]]},{"id":"c174c97e.d13f68","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":218.5714340209961,"y":498.1279442310333,"z":"9aaf200d.92f26","wires":[["90ec9992.f85358","43f598e8.2f76a8","64240d58.77b674","6aa8a1e3.471d2","564d8b67.29a674","d4393bc9.1da258","b59d8a67.f68d98"]]},{"id":"43f598e8.2f76a8","type":"switchNode","name":"switch service-data service-instance-id","xml":"<switch test='`$service-data.service-topology.service-topology-identifier.service-instance-id`'>\n","comments":"","outputs":1,"x":557.1428451538086,"y":468.1279442310333,"z":"9aaf200d.92f26","wires":[["317bcd9d.d17c42"]]},{"id":"317bcd9d.d17c42","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":786.9047508239746,"y":468.12796425819397,"z":"9aaf200d.92f26","wires":[["86266550.a49cb8"]]},{"id":"86266550.a49cb8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"`'Service ' + $service-topology-operation-input.service-information.service-instance-id + ' is not found'`\" />\n","comments":"","x":942.6189956665039,"y":468.1279594898224,"z":"9aaf200d.92f26","wires":[]},{"id":"864651dc.ec881","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":690.0000038146973,"y":355.2707989215851,"z":"9aaf200d.92f26","wires":[["bdf58d56.1da1b"]]},{"id":"64240d58.77b674","type":"get-resource","name":"get-resource SERVICE_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from SERVICE_MODEL WHERE service_uuid = $service-topology-operation-input.service-information.onap-model-information.model-uuid'\n pfx='db.service-model'>\n\n","comments":"","outputs":1,"x":538.5714340209961,"y":535.2707970142365,"z":"9aaf200d.92f26","wires":[["259cb40b.e98c0c","9746c605.856688"]]},{"id":"8c3f516c.ce487","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=\"`'No model found for service UUID ' + $service-topology-operation-input.service-information.onap-model-information.model-uuid`\" />\n","comments":"","x":952.8571014404297,"y":560.127846956253,"z":"9aaf200d.92f26","wires":[]},{"id":"259cb40b.e98c0c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":779.3571357727051,"y":516.6516621112823,"z":"9aaf200d.92f26","wires":[["ac9e8e69.ada9e"]]},{"id":"9746c605.856688","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":787.9285659790039,"y":559.9373753070831,"z":"9aaf200d.92f26","wires":[["8c3f516c.ce487"]]},{"id":"ac9e8e69.ada9e","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=\"Error reading SERVICE_MODEL table\" />\n","comments":"","x":952.2143020629883,"y":515.2231056690216,"z":"9aaf200d.92f26","wires":[]},{"id":"6aa8a1e3.471d2","type":"set","name":"set service-topology onap-model-information","xml":"<set>\n<parameter name='service-data.service-topology.onap-model-information.'\n value='`$service-topology-operation-input.service-information.onap-model-information.`' />\n","comments":"","x":574.2857284545898,"y":602.4136803150177,"z":"9aaf200d.92f26","wires":[]},{"id":"564d8b67.29a674","type":"set","name":"set service-level-oper-status to Created","xml":"<set>\n<parameter name='service-data.service-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.service-level-oper-status.last-rpc-action' value='changeassign' />\n<parameter name='service-data.service-level-oper-status.last-action' value='CreateServiceInstance' />\n","comments":"","x":558.5714340209961,"y":646.699385881424,"z":"9aaf200d.92f26","wires":[]},{"id":"d4393bc9.1da258","type":"set","name":"set service-object-path","xml":"<set>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $service-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n","comments":"","x":508.5714340209961,"y":690.9850914478302,"z":"9aaf200d.92f26","wires":[]},{"id":"b59d8a67.f68d98","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":482.8571357727051,"y":733.8422300815582,"z":"9aaf200d.92f26","wires":[]},{"id":"8fc79b5e.b3f178","type":"comment","name":"check removed with US622450","info":"","comments":"","x":354.2857208251953,"y":334.28571701049805,"z":"9aaf200d.92f26","wires":[]}]
\ No newline at end of file +[{"id":"1f9dbb81.bd6b84","type":"dgstart","name":"DGSTART","outputs":1,"x":102.85714721679688,"y":86.69937062263489,"z":"9aaf200d.92f26","wires":[["633701bf.7e227"]]},{"id":"633701bf.7e227","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":215.28570556640625,"y":126.93748116493225,"z":"9aaf200d.92f26","wires":[["eda99e12.c4db9"]]},{"id":"eda99e12.c4db9","type":"method","name":"method service-topology-operation-changeassign","xml":"<method rpc='service-topology-operation-changeassign' mode='sync'>\n","comments":"","outputs":1,"x":225.00005340576172,"y":166.69936871528625,"z":"9aaf200d.92f26","wires":[["c174c97e.d13f68"]]},{"id":"b3b27563.3aac08","type":"comment","name":"service-topology-operation-changeassign","info":"","comments":"","x":497.2020034790039,"y":34.28571438789368,"z":"9aaf200d.92f26","wires":[]},{"id":"90ec9992.f85358","type":"switchNode","name":"switch request-action","xml":"<switch test='`$service-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":502.0952606201172,"y":268.4136621952057,"z":"9aaf200d.92f26","wires":[["6050b73d.61ab98","86976390.b2c"]]},{"id":"6050b73d.61ab98","type":"outcome","name":"CreateServiceInstance","xml":"<outcome value='CreateServiceInstance'>\n","comments":"","outputs":1,"x":739.2380752563477,"y":242.6993706226349,"z":"9aaf200d.92f26","wires":[["a56cc43.e39ad38"]]},{"id":"86976390.b2c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":689.2380981445312,"y":286.74700951576233,"z":"9aaf200d.92f26","wires":[["f64c64f0.f401b8"]]},{"id":"a56cc43.e39ad38","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":917.8095321655273,"y":242.6994059085846,"z":"9aaf200d.92f26","wires":[[]]},{"id":"f64c64f0.f401b8","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=\"If svc-action is 'changeassign' then request-action must be 'CreateServiceInstance'\" />\n","comments":"","x":896.6190452575684,"y":286.7470209598541,"z":"9aaf200d.92f26","wires":[]},{"id":"7d55c8d3.17c188","type":"switchNode","name":"switch order-status","xml":"<switch test='`$service-data.service-level-oper-status.order-status`'>\n","comments":"","outputs":1,"x":491.5237731933594,"y":372.22328305244446,"z":"9aaf200d.92f26","wires":[["1522dee0.b2ff41","864651dc.ec881"]]},{"id":"1522dee0.b2ff41","type":"other","name":"PendingDelete","xml":"<outcome value='PendingDelete'>\n","comments":"","outputs":1,"x":711.8571548461914,"y":401.60411953926086,"z":"9aaf200d.92f26","wires":[["df498389.23c5"]]},{"id":"bdf58d56.1da1b","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=\"The requested service must be pending deletion\" />\n","comments":"","x":879.6666412353516,"y":354.9374897480011,"z":"9aaf200d.92f26","wires":[]},{"id":"df498389.23c5","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":861.0952320098877,"y":401.4612829685211,"z":"9aaf200d.92f26","wires":[[]]},{"id":"c174c97e.d13f68","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":218.5714340209961,"y":498.1279442310333,"z":"9aaf200d.92f26","wires":[["90ec9992.f85358","43f598e8.2f76a8","64240d58.77b674","6aa8a1e3.471d2","564d8b67.29a674","d4393bc9.1da258","b59d8a67.f68d98"]]},{"id":"43f598e8.2f76a8","type":"switchNode","name":"switch service-data service-instance-id","xml":"<switch test='`$service-data.service-topology.service-topology-identifier.service-instance-id`'>\n","comments":"","outputs":1,"x":557.1428451538086,"y":468.1279442310333,"z":"9aaf200d.92f26","wires":[["317bcd9d.d17c42"]]},{"id":"317bcd9d.d17c42","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":786.9047508239746,"y":468.12796425819397,"z":"9aaf200d.92f26","wires":[["86266550.a49cb8"]]},{"id":"86266550.a49cb8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"`'Service ' + $service-topology-operation-input.service-information.service-instance-id + ' is not found'`\" />\n","comments":"","x":942.6189956665039,"y":468.1279594898224,"z":"9aaf200d.92f26","wires":[]},{"id":"864651dc.ec881","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":690.0000038146973,"y":355.2707989215851,"z":"9aaf200d.92f26","wires":[["bdf58d56.1da1b"]]},{"id":"64240d58.77b674","type":"get-resource","name":"get-resource SERVICE_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from SERVICE_MODEL WHERE service_uuid = $service-topology-operation-input.service-information.onap-model-information.model-uuid'\n pfx='db.service-model'>\n\n","comments":"","outputs":1,"x":538.5714340209961,"y":535.2707970142365,"z":"9aaf200d.92f26","wires":[["259cb40b.e98c0c","9746c605.856688"]]},{"id":"8c3f516c.ce487","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=\"`'No model found for service UUID ' + $service-topology-operation-input.service-information.onap-model-information.model-uuid`\" />\n","comments":"","x":952.8571014404297,"y":560.127846956253,"z":"9aaf200d.92f26","wires":[]},{"id":"259cb40b.e98c0c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":779.3571357727051,"y":516.6516621112823,"z":"9aaf200d.92f26","wires":[["ac9e8e69.ada9e"]]},{"id":"9746c605.856688","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":787.9285659790039,"y":559.9373753070831,"z":"9aaf200d.92f26","wires":[["8c3f516c.ce487"]]},{"id":"ac9e8e69.ada9e","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=\"Error reading SERVICE_MODEL table\" />\n","comments":"","x":952.2143020629883,"y":515.2231056690216,"z":"9aaf200d.92f26","wires":[]},{"id":"6aa8a1e3.471d2","type":"set","name":"set service-topology onap-model-information","xml":"<set>\n<parameter name='service-data.service-topology.onap-model-information.'\n value='`$service-topology-operation-input.service-information.onap-model-information.`' />\n","comments":"","x":574.2857284545898,"y":602.4136803150177,"z":"9aaf200d.92f26","wires":[]},{"id":"564d8b67.29a674","type":"set","name":"set service-level-oper-status to Created","xml":"<set>\n<parameter name='service-data.service-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.service-level-oper-status.last-rpc-action' value='changeassign' />\n<parameter name='service-data.service-level-oper-status.last-action' value='CreateServiceInstance' />\n","comments":"","x":558.5714340209961,"y":646.699385881424,"z":"9aaf200d.92f26","wires":[]},{"id":"d4393bc9.1da258","type":"set","name":"set service-object-path","xml":"<set>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $service-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n","comments":"","x":508.5714340209961,"y":690.9850914478302,"z":"9aaf200d.92f26","wires":[]},{"id":"b59d8a67.f68d98","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":482.8571357727051,"y":733.8422300815582,"z":"9aaf200d.92f26","wires":[]},{"id":"8fc79b5e.b3f178","type":"comment","name":"check removed with US622450","info":"","comments":"","x":354.2857208251953,"y":334.28571701049805,"z":"9aaf200d.92f26","wires":[]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-activate.json index dc299bb8..f67b9da4 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-activate.json @@ -1 +1 @@ -[{"id":"981e056f.00e92","type":"dgstart","name":"DGSTART","outputs":1,"x":144,"y":93,"z":"58a990e2.9c1408","wires":[["cd88fdf4.d26cb8"]]},{"id":"cd88fdf4.d26cb8","type":"service-logic","name":"GENERIC-RESOURCE-API 1.1.0-SNAPSHOT-111701","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":240.23807907104492,"y":153.95239067077637,"z":"58a990e2.9c1408","wires":[["deb4f99a.917d9"]]},{"id":"deb4f99a.917d9","type":"method","name":"tunnelxconn-topology-operation-activate","xml":"<method rpc='tunnelxconn-topology-operation-activate' mode='sync'>\n","comments":"","outputs":1,"x":286.15485763549805,"y":189.19044589996338,"z":"58a990e2.9c1408","wires":[["1b3faaa6.b124c5"]]},{"id":"1b3faaa6.b124c5","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":194.47619247436523,"y":332.5237879753113,"z":"58a990e2.9c1408","wires":[["1307f869.2b6cd8","809972ef.32aa68","abd5e0c.9a04a2","3a16a190.19236e","7c15294.f6d20d8","a59e6cd5.d18278","4659a1a.641356","5581c8c3.58ae58","a8fc0526.9f7d6","a061c39.68b194","e19d9646.79311","a072200f.8e7178"]]},{"id":"809972ef.32aa68","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":461.0001106262207,"y":1002.2145080566406,"z":"58a990e2.9c1408","wires":[]},{"id":"1307f869.2b6cd8","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n","comments":"","x":489.75402450561523,"y":966.3370542526245,"z":"58a990e2.9c1408","wires":[]},{"id":"a061c39.68b194","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Active' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tunnelxconn-topology-operation-input.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":500.7542190551758,"y":713.0514001846313,"z":"58a990e2.9c1408","wires":[]},{"id":"3a16a190.19236e","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology/'` \" />\n\n","comments":"","x":453.73805236816406,"y":324.33332443237305,"z":"58a990e2.9c1408","wires":[]},{"id":"abd5e0c.9a04a2","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.brg-vnf-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.tunnelxconn-vnf-id`' />\n\n\n","comments":"","x":500.997314453125,"y":290.59259033203125,"z":"58a990e2.9c1408","wires":[]},{"id":"7c15294.f6d20d8","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":459.993408203125,"y":360.23152351379395,"z":"58a990e2.9c1408","wires":[[]]},{"id":"4659a1a.641356","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":525.5187530517578,"y":503.4594917297363,"z":"58a990e2.9c1408","wires":[["d5420c75.e1a068","8c63e091.1c25a"]]},{"id":"a59e6cd5.d18278","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.tx-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":488.0648422241211,"y":420.0172281265259,"z":"58a990e2.9c1408","wires":[[]]},{"id":"d5420c75.e1a068","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":782.8148918151855,"y":502.26725220680237,"z":"58a990e2.9c1408","wires":[["35fdf191.06bf8e"]]},{"id":"5581c8c3.58ae58","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.tx.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":533.5293121337891,"y":856.4341316223145,"z":"58a990e2.9c1408","wires":[["777acde7.9ef674","20c6b40.7c54d4c","933655b0.cd72e8"]]},{"id":"777acde7.9ef674","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":803.837329864502,"y":909.432332418859,"z":"58a990e2.9c1408","wires":[["b19ae1f0.49793"]]},{"id":"20c6b40.7c54d4c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":794.8373794555664,"y":877.9323581680655,"z":"58a990e2.9c1408","wires":[["b19ae1f0.49793"]]},{"id":"933655b0.cd72e8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":798.5874176025391,"y":848.2894630432129,"z":"58a990e2.9c1408","wires":[["5ddd3ee.6ad194"]]},{"id":"b19ae1f0.49793","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=\"Error updating md-sal for tunnelxconn-allotted-resource\" />\n","comments":"","x":964.5874176025391,"y":878.6823820099235,"z":"58a990e2.9c1408","wires":[]},{"id":"35fdf191.06bf8e","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":963.8148460388184,"y":502.7672016620636,"z":"58a990e2.9c1408","wires":[["7b5dcd10.39bc8c","e690203.d87676"]]},{"id":"7b5dcd10.39bc8c","type":"switchNode","name":"switch tx length","xml":"<switch test='`$mdsal-ar.tunnelxconn-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1209.6720924377441,"y":537.052964925766,"z":"58a990e2.9c1408","wires":[["6c133fab.55436"]]},{"id":"6c133fab.55436","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1400.6720962524414,"y":537.0529625415802,"z":"58a990e2.9c1408","wires":[["29b0d828.00bad"]]},{"id":"77bfd621.2d5df8","type":"set","name":"set tx-ar from get","xml":"<set>\n<parameter name='tx-ar.' value='$mdsal-ar.tunnelxconn-allotted-resource[0].' />\n","comments":"","x":1800.5292320251465,"y":537.6243867874146,"z":"58a990e2.9c1408","wires":[]},{"id":"29b0d828.00bad","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1571.5290794372559,"y":537.6244316101074,"z":"58a990e2.9c1408","wires":[["77bfd621.2d5df8","c0f2542e.da588","9bfcca3f.570378"]]},{"id":"c0f2542e.da588","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tx-ar.allotted-resource-status.rpc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1798.5294761657715,"y":605.0529508590698,"z":"58a990e2.9c1408","wires":[]},{"id":"81df98f1.37d4d","type":"comment","name":"GET tunnelxconn-allotted-resource from mdsal","info":"","comments":"","x":550.8148155212402,"y":466.7671926021576,"z":"58a990e2.9c1408","wires":[]},{"id":"9bfcca3f.570378","type":"switchNode","name":"switch order-status","xml":"<switch test='`$tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1808.52925491333,"y":570.6243848800659,"z":"58a990e2.9c1408","wires":[["a1591402.ef402","263fbca1.ee9e44"]]},{"id":"a1591402.ef402","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2020.1292114257812,"y":531.6243848800659,"z":"58a990e2.9c1408","wires":[["dcaba266.f2c058"]]},{"id":"263fbca1.ee9e44","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2045.8435859680176,"y":567.052975654602,"z":"58a990e2.9c1408","wires":[["dcaba266.f2c058"]]},{"id":"868474a4.fe42d","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":506.33863830566406,"y":557.3386459350586,"z":"58a990e2.9c1408","wires":[]},{"id":"e690203.d87676","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-tx-ar' value='$mdsal-ar.' />\n","comments":"","x":1289.3864250183105,"y":502.76729369163513,"z":"58a990e2.9c1408","wires":[]},{"id":"15b321eb.5032de","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":458.95764923095703,"y":389.6243553161621,"z":"58a990e2.9c1408","wires":[]},{"id":"5ddd3ee.6ad194","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":940.2433853149414,"y":844.481632232666,"z":"58a990e2.9c1408","wires":[[]]},{"id":"dc646785.b390d","type":"comment","name":"TO DO: vnf/put parent","info":"","comments":"","x":464.2433776855469,"y":745.1481952667236,"z":"58a990e2.9c1408","wires":[]},{"id":"a8fc0526.9f7d6","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":448.24338150024414,"y":674.4815549850464,"z":"58a990e2.9c1408","wires":[[]]},{"id":"8c63e091.1c25a","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":782.5766868591309,"y":538.4814250469208,"z":"58a990e2.9c1408","wires":[["55d3815f.d40af8"]]},{"id":"55d3815f.d40af8","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":962.5766372680664,"y":539.1479756832123,"z":"58a990e2.9c1408","wires":[[]]},{"id":"e19d9646.79311","type":"set","name":"set id","xml":"<set>\n<parameter name='tx-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='tx-ar.allotted-resource-status.action' value=\"`$tunnelxconn-topology-operation-input.request-information.request-action` \" />\n<parameter name='tx-ar.allotted-resource-status.rpc-name' value=\"tunnelxconn-topology-operation\" />\n<parameter name='tx-ar.allotted-resource-status.rpc-action' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$tunnelxconn-topology-operation-input.request-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$tunnelxconn-topology-operation-input.service-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.' value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.` \" />","comments":"","x":431.24342346191406,"y":594.1481666564941,"z":"58a990e2.9c1408","wires":[]},{"id":"dcaba266.f2c058","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2234.5997276306152,"y":533.0000190734863,"z":"58a990e2.9c1408","wires":[[]]},{"id":"a072200f.8e7178","type":"update","name":"update AAI allotted-resource","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $tunnelxconn-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $tunnelxconn-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"operational-status\" value=\"in-service-path\" />\n\n\n<!--\n\n<set>\n$tunnelxconn-topology-operation-input.service-information.global-customer-id\n$tunnelxconn-topology-operation-input.service-information.subscription-service-type\n\n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n\t\t\t\n\t\t\t$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id\n\t\t\t\n-->","comments":"","outputs":1,"x":491.85716247558594,"y":778.2380628585815,"z":"58a990e2.9c1408","wires":[["d29c55c2.14d6","287d76d.31b2f0a"]]},{"id":"d29c55c2.14d6","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":747.6190567016602,"y":761.1905598640442,"z":"58a990e2.9c1408","wires":[["2918b200.d40266"]]},{"id":"2918b200.d40266","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=\"AAI failed\" />\n","comments":"","x":914.142936706543,"y":772.8096308708191,"z":"58a990e2.9c1408","wires":[]},{"id":"287d76d.31b2f0a","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":754.7143440246582,"y":793.9525275230408,"z":"58a990e2.9c1408","wires":[["2918b200.d40266"]]},{"id":"be5072e4.33f558","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":236,"y":785,"z":"58a990e2.9c1408","wires":[]}] +[{"id":"981e056f.00e92","type":"dgstart","name":"DGSTART","outputs":1,"x":144,"y":93,"z":"58a990e2.9c1408","wires":[["cd88fdf4.d26cb8"]]},{"id":"cd88fdf4.d26cb8","type":"service-logic","name":"GENERIC-RESOURCE-API 1.1.0-SNAPSHOT-111701","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":240.23807907104492,"y":153.95239067077637,"z":"58a990e2.9c1408","wires":[["deb4f99a.917d9"]]},{"id":"deb4f99a.917d9","type":"method","name":"tunnelxconn-topology-operation-activate","xml":"<method rpc='tunnelxconn-topology-operation-activate' mode='sync'>\n","comments":"","outputs":1,"x":286.15485763549805,"y":189.19044589996338,"z":"58a990e2.9c1408","wires":[["1b3faaa6.b124c5"]]},{"id":"1b3faaa6.b124c5","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":194.47619247436523,"y":332.5237879753113,"z":"58a990e2.9c1408","wires":[["1307f869.2b6cd8","809972ef.32aa68","abd5e0c.9a04a2","3a16a190.19236e","7c15294.f6d20d8","a59e6cd5.d18278","4659a1a.641356","5581c8c3.58ae58","a8fc0526.9f7d6","a061c39.68b194","e19d9646.79311","a072200f.8e7178"]]},{"id":"809972ef.32aa68","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":461.0001106262207,"y":1002.2145080566406,"z":"58a990e2.9c1408","wires":[]},{"id":"1307f869.2b6cd8","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service?'\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n","comments":"","x":489.75402450561523,"y":966.3370542526245,"z":"58a990e2.9c1408","wires":[]},{"id":"a061c39.68b194","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Active' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tunnelxconn-topology-operation-input.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":500.7542190551758,"y":713.0514001846313,"z":"58a990e2.9c1408","wires":[]},{"id":"3a16a190.19236e","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology?content=config'` \" />\n\n","comments":"","x":453.73805236816406,"y":324.33332443237305,"z":"58a990e2.9c1408","wires":[]},{"id":"abd5e0c.9a04a2","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.brg-vnf-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.tunnelxconn-vnf-id`' />\n\n\n","comments":"","x":500.997314453125,"y":290.59259033203125,"z":"58a990e2.9c1408","wires":[]},{"id":"7c15294.f6d20d8","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":459.993408203125,"y":360.23152351379395,"z":"58a990e2.9c1408","wires":[[]]},{"id":"4659a1a.641356","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":525.5187530517578,"y":503.4594917297363,"z":"58a990e2.9c1408","wires":[["d5420c75.e1a068","8c63e091.1c25a"]]},{"id":"a59e6cd5.d18278","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.tx-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":488.0648422241211,"y":420.0172281265259,"z":"58a990e2.9c1408","wires":[[]]},{"id":"d5420c75.e1a068","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":782.8148918151855,"y":502.26725220680237,"z":"58a990e2.9c1408","wires":[["35fdf191.06bf8e"]]},{"id":"5581c8c3.58ae58","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.tx.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":533.5293121337891,"y":856.4341316223145,"z":"58a990e2.9c1408","wires":[["777acde7.9ef674","20c6b40.7c54d4c","933655b0.cd72e8"]]},{"id":"777acde7.9ef674","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":803.837329864502,"y":909.432332418859,"z":"58a990e2.9c1408","wires":[["b19ae1f0.49793"]]},{"id":"20c6b40.7c54d4c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":794.8373794555664,"y":877.9323581680655,"z":"58a990e2.9c1408","wires":[["b19ae1f0.49793"]]},{"id":"933655b0.cd72e8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":798.5874176025391,"y":848.2894630432129,"z":"58a990e2.9c1408","wires":[["5ddd3ee.6ad194"]]},{"id":"b19ae1f0.49793","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=\"Error updating md-sal for tunnelxconn-allotted-resource\" />\n","comments":"","x":964.5874176025391,"y":878.6823820099235,"z":"58a990e2.9c1408","wires":[]},{"id":"35fdf191.06bf8e","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":963.8148460388184,"y":502.7672016620636,"z":"58a990e2.9c1408","wires":[["7b5dcd10.39bc8c","e690203.d87676"]]},{"id":"7b5dcd10.39bc8c","type":"switchNode","name":"switch tx length","xml":"<switch test='`$mdsal-ar.tunnelxconn-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1209.6720924377441,"y":537.052964925766,"z":"58a990e2.9c1408","wires":[["6c133fab.55436"]]},{"id":"6c133fab.55436","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1400.6720962524414,"y":537.0529625415802,"z":"58a990e2.9c1408","wires":[["29b0d828.00bad"]]},{"id":"77bfd621.2d5df8","type":"set","name":"set tx-ar from get","xml":"<set>\n<parameter name='tx-ar.' value='$mdsal-ar.tunnelxconn-allotted-resource[0].' />\n","comments":"","x":1800.5292320251465,"y":537.6243867874146,"z":"58a990e2.9c1408","wires":[]},{"id":"29b0d828.00bad","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1571.5290794372559,"y":537.6244316101074,"z":"58a990e2.9c1408","wires":[["77bfd621.2d5df8","c0f2542e.da588","9bfcca3f.570378"]]},{"id":"c0f2542e.da588","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tx-ar.allotted-resource-status.rpc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1798.5294761657715,"y":605.0529508590698,"z":"58a990e2.9c1408","wires":[]},{"id":"81df98f1.37d4d","type":"comment","name":"GET tunnelxconn-allotted-resource from mdsal","info":"","comments":"","x":550.8148155212402,"y":466.7671926021576,"z":"58a990e2.9c1408","wires":[]},{"id":"9bfcca3f.570378","type":"switchNode","name":"switch order-status","xml":"<switch test='`$tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1808.52925491333,"y":570.6243848800659,"z":"58a990e2.9c1408","wires":[["a1591402.ef402","263fbca1.ee9e44"]]},{"id":"a1591402.ef402","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2020.1292114257812,"y":531.6243848800659,"z":"58a990e2.9c1408","wires":[["dcaba266.f2c058"]]},{"id":"263fbca1.ee9e44","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2045.8435859680176,"y":567.052975654602,"z":"58a990e2.9c1408","wires":[["dcaba266.f2c058"]]},{"id":"868474a4.fe42d","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":506.33863830566406,"y":557.3386459350586,"z":"58a990e2.9c1408","wires":[]},{"id":"e690203.d87676","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-tx-ar' value='$mdsal-ar.' />\n","comments":"","x":1289.3864250183105,"y":502.76729369163513,"z":"58a990e2.9c1408","wires":[]},{"id":"15b321eb.5032de","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":458.95764923095703,"y":389.6243553161621,"z":"58a990e2.9c1408","wires":[]},{"id":"5ddd3ee.6ad194","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":940.2433853149414,"y":844.481632232666,"z":"58a990e2.9c1408","wires":[[]]},{"id":"dc646785.b390d","type":"comment","name":"TO DO: vnf/put parent","info":"","comments":"","x":464.2433776855469,"y":745.1481952667236,"z":"58a990e2.9c1408","wires":[]},{"id":"a8fc0526.9f7d6","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":448.24338150024414,"y":674.4815549850464,"z":"58a990e2.9c1408","wires":[[]]},{"id":"8c63e091.1c25a","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":782.5766868591309,"y":538.4814250469208,"z":"58a990e2.9c1408","wires":[["55d3815f.d40af8"]]},{"id":"55d3815f.d40af8","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":962.5766372680664,"y":539.1479756832123,"z":"58a990e2.9c1408","wires":[[]]},{"id":"e19d9646.79311","type":"set","name":"set id","xml":"<set>\n<parameter name='tx-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='tx-ar.allotted-resource-status.action' value=\"`$tunnelxconn-topology-operation-input.request-information.request-action` \" />\n<parameter name='tx-ar.allotted-resource-status.rpc-name' value=\"tunnelxconn-topology-operation\" />\n<parameter name='tx-ar.allotted-resource-status.rpc-action' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$tunnelxconn-topology-operation-input.request-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$tunnelxconn-topology-operation-input.service-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.' value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.` \" />","comments":"","x":431.24342346191406,"y":594.1481666564941,"z":"58a990e2.9c1408","wires":[]},{"id":"dcaba266.f2c058","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2234.5997276306152,"y":533.0000190734863,"z":"58a990e2.9c1408","wires":[[]]},{"id":"a072200f.8e7178","type":"update","name":"update AAI allotted-resource","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $tunnelxconn-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $tunnelxconn-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"operational-status\" value=\"in-service-path\" />\n\n\n<!--\n\n<set>\n$tunnelxconn-topology-operation-input.service-information.global-customer-id\n$tunnelxconn-topology-operation-input.service-information.subscription-service-type\n\n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n\t\t\t\n\t\t\t$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id\n\t\t\t\n-->","comments":"","outputs":1,"x":491.85716247558594,"y":778.2380628585815,"z":"58a990e2.9c1408","wires":[["d29c55c2.14d6","287d76d.31b2f0a"]]},{"id":"d29c55c2.14d6","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":747.6190567016602,"y":761.1905598640442,"z":"58a990e2.9c1408","wires":[["2918b200.d40266"]]},{"id":"2918b200.d40266","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=\"AAI failed\" />\n","comments":"","x":914.142936706543,"y":772.8096308708191,"z":"58a990e2.9c1408","wires":[]},{"id":"287d76d.31b2f0a","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":754.7143440246582,"y":793.9525275230408,"z":"58a990e2.9c1408","wires":[["2918b200.d40266"]]},{"id":"be5072e4.33f558","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":236,"y":785,"z":"58a990e2.9c1408","wires":[]}] diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-assign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-assign.json index 534d0c50..44501d75 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-assign.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-assign.json @@ -1 +1 @@ -[{"id":"7d9b54af.272da4","type":"dgstart","name":"DGSTART","outputs":1,"x":263.8833312988281,"y":143,"z":"7fadb4ab.c53bec","wires":[["919a0a7b.5333b"]]},{"id":"919a0a7b.5333b","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":360.12141036987305,"y":203.95239067077637,"z":"7fadb4ab.c53bec","wires":[["7f78c9a2.2df718"]]},{"id":"7f78c9a2.2df718","type":"method","name":"tunnelxconn-topology-operation-assign","xml":"<method rpc='tunnelxconn-topology-operation-assign' mode='sync'>\n","comments":"","outputs":1,"x":411.0381889343262,"y":239.19044589996338,"z":"7fadb4ab.c53bec","wires":[["ae21d4fb.c30b38"]]},{"id":"ae21d4fb.c30b38","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":314.35952377319336,"y":382.5237879753113,"z":"7fadb4ab.c53bec","wires":[["83f83b2b.016708","767a3049.d08f1","af2f1a45.adbd08","9f48afd3.f6e63","d28ebab3.9126c"]]},{"id":"13ab7d5.78d2b03","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":1157.5499877929688,"y":2309.5477046966553,"z":"7fadb4ab.c53bec","wires":[]},{"id":"dab5dce8.609ec8","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n","comments":"","x":1194.6373863220215,"y":2188.432439804077,"z":"7fadb4ab.c53bec","wires":[]},{"id":"3cee9d90.ad9fb2","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingCreate' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tunnelxconn-topology-operation-input.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":1283.7961730957031,"y":1536.0673828125,"z":"7fadb4ab.c53bec","wires":[]},{"id":"767a3049.d08f1","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology/'` \" />\n\n","comments":"","x":760.6213684082031,"y":250.33331298828125,"z":"7fadb4ab.c53bec","wires":[]},{"id":"83f83b2b.016708","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.search.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n\n","comments":"","x":808.8806457519531,"y":206.59259033203125,"z":"7fadb4ab.c53bec","wires":[]},{"id":"e45cb65d.492d9","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":947.6982116699219,"y":422.26727294921875,"z":"7fadb4ab.c53bec","wires":[["66a3f98d.ffa7d8"]]},{"id":"c7e2e195.80b4c","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.tx.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":1287.7459564208984,"y":1830.1008231639862,"z":"7fadb4ab.c53bec","wires":[["160f416c.c5ff07","798a20bf.db2ba","9b6cbfce.dded58"]]},{"id":"160f416c.c5ff07","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1556.3873329162598,"y":1881.4322349056602,"z":"7fadb4ab.c53bec","wires":[["81b5b1b4.388b98"]]},{"id":"798a20bf.db2ba","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1547.3873825073242,"y":1849.9322606548667,"z":"7fadb4ab.c53bec","wires":[["81b5b1b4.388b98"]]},{"id":"9b6cbfce.dded58","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1551.1374206542969,"y":1820.289365530014,"z":"7fadb4ab.c53bec","wires":[["a48fe088.c8a28"]]},{"id":"81b5b1b4.388b98","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=\"Error updating md-sal for tunnelxconn-allotted-resource\" />\n","comments":"","x":1713.1374816894531,"y":1877.6822509765625,"z":"7fadb4ab.c53bec","wires":[]},{"id":"fd7f6b9b.715c08","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tx-ar.allotted-resource-status.rpc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1295.4127197265625,"y":539.0529174804688,"z":"7fadb4ab.c53bec","wires":[]},{"id":"9e693e8b.6d829","type":"comment","name":"Save consumed-allotted-resources to mdsal","info":"","comments":"","x":1324.1268615722656,"y":1345.7196044921875,"z":"7fadb4ab.c53bec","wires":[]},{"id":"4f968092.a4f4e8","type":"comment","name":"GET tunnelxconn-allotted-resource from mdsal","info":"","comments":"","x":670.6981506347656,"y":392.7672119140625,"z":"7fadb4ab.c53bec","wires":[]},{"id":"66a3f98d.ffa7d8","type":"returnFailure","name":"return failure - tunnelxconn already exists","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\" \n value=\"`'Existing tunnelxconn-allotted-resource with order status of ' + $mdsal-ar.tunnelxconn-allotted-resource.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n","comments":"","x":1257.0124816894531,"y":417.6243896484375,"z":"7fadb4ab.c53bec","wires":[]},{"id":"a9cf7967.8dc92","type":"set","name":"set tx-ar-identifiers","xml":"<set>\n<parameter name='tx-ar-identifiers.consuming-service-instance-id' value=\"`$tunnelxconn-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='tx-ar-identifiers.parent-service-instance-id' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='tx-ar-identifiers.allotted-resource-type' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='tx-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n","comments":"","x":1307.2695617675781,"y":616.6243896484375,"z":"7fadb4ab.c53bec","wires":[]},{"id":"ca14b507.29986","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":1334.2219543457031,"y":575.338623046875,"z":"7fadb4ab.c53bec","wires":[]},{"id":"535c6ca9.04b234","type":"set","name":"set identifiers in overall structure","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.allotted-resource-identifiers.' value=\"`$tx-ar-identifiers.`\" />\n\n\n","comments":"","x":1324.2695617675781,"y":924.910400390625,"z":"7fadb4ab.c53bec","wires":[]},{"id":"cc85212.a969c6","type":"set","name":"set ecomp model information from input","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.' \nvalue=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.onap-model-information.`\" />\n\n\n","comments":"","x":1352.8410949707031,"y":659.9100952148438,"z":"7fadb4ab.c53bec","wires":[]},{"id":"6ca7d4e3.5c66dc","type":"switchNode","name":"switch model-invariant-uuid is null","xml":"<switch test='$tunnelxconn-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid'>\n","comments":"","outputs":1,"x":1333.6981506347656,"y":699.195809841156,"z":"7fadb4ab.c53bec","wires":[["67ca668d.30b6d"]]},{"id":"67ca668d.30b6d","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1560.8410301208496,"y":700.6243271827698,"z":"7fadb4ab.c53bec","wires":[["89650115.f7bf4"]]},{"id":"89650115.f7bf4","type":"set","name":"set model-invariant-uuid","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.model-invariant-uuid' \nvalue=\"`$ar-model.invariant-uuid`\" />\n\n\n","comments":"","x":1762.269603729248,"y":700.0528798103333,"z":"7fadb4ab.c53bec","wires":[]},{"id":"bab20b2d.5ec94","type":"switchNode","name":"switch model-uuid is null","xml":"<switch test='$tunnelxconn-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid'>\n","comments":"","outputs":1,"x":1305.1267471313477,"y":733.4815106391907,"z":"7fadb4ab.c53bec","wires":[["1e018b1c.8ec1b5"]]},{"id":"1e018b1c.8ec1b5","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1506.5553131103516,"y":734.0529322624207,"z":"7fadb4ab.c53bec","wires":[["85a72f0b.6be43"]]},{"id":"85a72f0b.6be43","type":"set","name":"set model-uuid","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.model-uuid' \nvalue=\"`$ar-model.uuid`\" />\n\n\n","comments":"","x":1699.4124717712402,"y":734.0528540611267,"z":"7fadb4ab.c53bec","wires":[]},{"id":"b22d9542.13c138","type":"switchNode","name":"switch model-version is null","xml":"<switch test='$tunnelxconn-topology-operation-input.allotted-resource-information.onap-model-information.model-version'>\n","comments":"","outputs":1,"x":1313.6981506347656,"y":775.338623046875,"z":"7fadb4ab.c53bec","wires":[["12fa49ff.c356ce"]]},{"id":"12fa49ff.c356ce","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1563.6981315612793,"y":766.3386225700378,"z":"7fadb4ab.c53bec","wires":[["8190eb5d.8dacd"]]},{"id":"8190eb5d.8dacd","type":"set","name":"set model-version","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.model-version' \nvalue=\"`$ar-model.version`\" />\n\n\n","comments":"","x":1756.555290222168,"y":766.3385443687439,"z":"7fadb4ab.c53bec","wires":[]},{"id":"6bf23401.01e8ac","type":"switchNode","name":"switch ar-model.ecomp-generated-naming","xml":"<switch test='`$ar-model.ecomp-generated-naming`'>\n","comments":"","outputs":1,"x":1377.2695617675781,"y":868.7672729492188,"z":"7fadb4ab.c53bec","wires":[["3a7c67cc.e92438","4f05c4e2.66085c"]]},{"id":"3a7c67cc.e92438","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1663.2696228027344,"y":868.1958618164062,"z":"7fadb4ab.c53bec","wires":[["d04b0076.d8ee"]]},{"id":"d04b0076.d8ee","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"true","comments":"","outputs":1,"x":1817.0196838378906,"y":870.69580078125,"z":"7fadb4ab.c53bec","wires":[["1e20163.4688aea"]]},{"id":"4f05c4e2.66085c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1682.4919738769531,"y":957.1958618164062,"z":"7fadb4ab.c53bec","wires":[["c0aa79c6.3f38"]]},{"id":"c0aa79c6.3f38","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=\"Error in allotted-resource-model data. Ecomp-generated-naming should be true\" />\n\n","comments":"","x":1865.4919738769531,"y":962.1958618164062,"z":"7fadb4ab.c53bec","wires":[]},{"id":"1e20163.4688aea","type":"switchNode","name":"switch ar-model.ecomp-generated-naming","xml":"<switch test='`$ar-model.naming-policy`'>\n","comments":"","outputs":1,"x":1953.2695617675781,"y":919.767333984375,"z":"7fadb4ab.c53bec","wires":[["605d4ebf.646cc","ecc0b48f.93f14"]]},{"id":"605d4ebf.646cc","type":"other","name":"outcome oam_network_policy","xml":"<outcome value='oam_network_policy'>\n","comments":"","outputs":1,"x":2328.127471923828,"y":923.3453369140625,"z":"7fadb4ab.c53bec","wires":[["1401e9bb.56aa2e"]]},{"id":"ecc0b48f.93f14","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2242.555206298828,"y":1000.1958618164062,"z":"7fadb4ab.c53bec","wires":[["1401e9bb.56aa2e"]]},{"id":"2b53ceb6.6d45a2","type":"set","name":"set ar_name","xml":"<set>\n<parameter name='tmp.ar-name' value='$TenantOAMNetworkRole_$LandingNetworkRole_SZ' />\n","comments":"","x":2633.984161376953,"y":958.7672729492188,"z":"7fadb4ab.c53bec","wires":[]},{"id":"772444e4.c57dbc","type":"execute","name":"execute SliStringUtils - replace TenantOAMNetworkRole","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$TenantOAMNetworkRole\"/>\n <parameter name=\"replacement\" value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.untrusted-network-role`\"/>\n\n","comments":"","outputs":1,"x":2778.1271171569824,"y":1002.6244196891785,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"fe7b7b65.196628","type":"execute","name":"execute SliStringUtils - replace LandingNetworkRole","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$LandingNetworkRole\"/>\n <parameter name=\"replacement\" value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.trusted-network-role`\"/>\n\n","comments":"","outputs":1,"x":2765.127227783203,"y":1042.7672729492188,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"1401e9bb.56aa2e","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":2442.4125328063965,"y":998.3387522697449,"z":"7fadb4ab.c53bec","wires":[["2b53ceb6.6d45a2","772444e4.c57dbc","fe7b7b65.196628","c9f08b8c.4541c"]]},{"id":"c9f08b8c.4541c","type":"set","name":"set identifiers.allotted-resource-name","xml":"<set>\n<parameter name='tx-ar-identifiers.allotted-resource-name' value='`$tmp.ar-name`' />\n","comments":"","x":2722.983917236328,"y":1093.052978515625,"z":"7fadb4ab.c53bec","wires":[]},{"id":"53be8c2a.7ac224","type":"set","name":"set assignments in overall structure","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.' \nvalue=\"`$tx-ar-assignments.`\" />\n\n\n","comments":"","x":1299.7457580566406,"y":1301.6246337890625,"z":"7fadb4ab.c53bec","wires":[]},{"id":"218ac52a.07c662","type":"set","name":"Handle tx-ar-assignments","xml":"<set>\n<parameter name='tx-ar-assignments.vni' value='`$tmp.manageVni.vni`'/>\n<parameter name='tx-ar-assignments.vgmux-bearer-ip' value='`$tmp.vgmux-bearer-ip`'/>\n<parameter name='tx-ar-assignments.vgmux-lan-ip' value='`$tmp.vgmux-lan-ip`'/>\n<parameter name='tx-ar-assignments.vg-ip' value='`$tmp.manageIpaddr.ip`'/>\n\n","comments":"","x":1277.4123840332031,"y":1204.052978515625,"z":"7fadb4ab.c53bec","wires":[]},{"id":"2dd46ad.0c3ba16","type":"for","name":"for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]","xml":"<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n","comments":"","outputs":1,"x":2350.6989135742188,"y":1403.0411586761475,"z":"7fadb4ab.c53bec","wires":[["c650df17.95a668"]]},{"id":"542e8fbf.9a4fc8","type":"switchNode","name":"switch service-data.consumed-allotted-resources_length","xml":"<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1356.6981506347656,"y":1396.505126953125,"z":"7fadb4ab.c53bec","wires":[["76a078bc.3ec0c","82bdee16.337b7"]]},{"id":"76a078bc.3ec0c","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1757.0910949707031,"y":1375.1124267578125,"z":"7fadb4ab.c53bec","wires":[["351b39ac.6117b6"]]},{"id":"82bdee16.337b7","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1749.8410949707031,"y":1456.1124267578125,"z":"7fadb4ab.c53bec","wires":[["c7cbb99.60f3748"]]},{"id":"c650df17.95a668","type":"switchNode","name":"switch allotted-resource-id","xml":"<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n","comments":"","outputs":1,"x":2785.294013977051,"y":1404.85085105896,"z":"7fadb4ab.c53bec","wires":[["4ad63d89.544fbc"]]},{"id":"4ad63d89.544fbc","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2992.1037063598633,"y":1408.064962387085,"z":"7fadb4ab.c53bec","wires":[["3a240ab.9d348f6"]]},{"id":"c7cbb99.60f3748","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1916.7182922363281,"y":1450.488525390625,"z":"7fadb4ab.c53bec","wires":[["2dd46ad.0c3ba16","6f8a4fa6.cf948"]]},{"id":"3a240ab.9d348f6","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3160.365058898926,"y":1412.9222631454468,"z":"7fadb4ab.c53bec","wires":[["85ecd49e.fdba4"]]},{"id":"351b39ac.6117b6","type":"set","name":"set cidx","xml":"<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n","comments":"","x":1941.9481506347656,"y":1378.32666015625,"z":"7fadb4ab.c53bec","wires":[]},{"id":"85ecd49e.fdba4","type":"set","name":"set tmp.cidx and ctx.consumed-ar","xml":"<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n<parameter name='ctx.consumed-ar.' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].`' />\n<parameter name='tmp.found-cidx' value='true' />","comments":"","x":3406.2225189208984,"y":1407.4937419891357,"z":"7fadb4ab.c53bec","wires":[]},{"id":"774f0d4b.22566c","type":"set","name":"set consumed allotted resources","xml":"<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n","comments":"","x":1292.5553436279297,"y":1455.826681137085,"z":"7fadb4ab.c53bec","wires":[]},{"id":"a48fe088.c8a28","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1692.7933883666992,"y":1816.4815347194672,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"10b88a1b.e65316","type":"comment","name":"Add SZ AR to mdsal","info":"","comments":"","x":1219.0315246582031,"y":1766.1956787109375,"z":"7fadb4ab.c53bec","wires":[]},{"id":"28f2d6f4.76e162","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":1236.4758605957031,"y":1497.2275390625,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"fdad46b0.e22b48","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":953.4599914550781,"y":473.4814453125,"z":"7fadb4ab.c53bec","wires":[["11866c15.7f8684"]]},{"id":"5d145909.4e99d","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":901.4599914550781,"y":969.2908325195312,"z":"7fadb4ab.c53bec","wires":[["774f0d4b.22566c","28f2d6f4.76e162","3cee9d90.ad9fb2","c7e2e195.80b4c","dab5dce8.609ec8","13ab7d5.78d2b03","47bc1534.f83334","fd7f6b9b.715c08","a9cf7967.8dc92","cc85212.a969c6","6ca7d4e3.5c66dc","bab20b2d.5ec94","b22d9542.13c138","6bf23401.01e8ac","535c6ca9.04b234","ba744afc.3e2d2","cea14761.18e528","648b662c.092ab","218ac52a.07c662","53be8c2a.7ac224","542e8fbf.9a4fc8","f5672e19.d9acf8","883befdb.8069d","c7292ce.87518d","66b81cf7.857b44","364d0b19.d4c844"]]},{"id":"47bc1534.f83334","type":"set","name":"set id","xml":"<set>\n<parameter name='tx-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='tx-ar.allotted-resource-status.action' value=\"`$tunnelxconn-topology-operation-input.request-information.request-action` \" />\n<parameter name='tx-ar.allotted-resource-status.rpc-name' value=\"tunnelxconn-topology-operation\" />\n<parameter name='tx-ar.allotted-resource-status.rpc-action' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$tunnelxconn-topology-operation-input.request-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$tunnelxconn-topology-operation-input.service-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.' value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.` \" />","comments":"","x":1270.1267395019531,"y":495.433837890625,"z":"7fadb4ab.c53bec","wires":[]},{"id":"66b81cf7.857b44","type":"update","name":"update AAI allotted-resource","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$ar-model.invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$ar-model.uuid`\" />\n\t<parameter name=\"operational-status\" value=\"null\" />","comments":"","outputs":1,"x":1259.2695617675781,"y":1693.799072265625,"z":"7fadb4ab.c53bec","wires":[["d58aab1e.918b38","9847d7ac.37a148"]]},{"id":"d58aab1e.918b38","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1509.6981735229492,"y":1680.5292553901672,"z":"7fadb4ab.c53bec","wires":[["e8d78986.f604c8"]]},{"id":"e8d78986.f604c8","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=\"AAI failed\" />\n","comments":"","x":1678.2220764160156,"y":1682.1483154296875,"z":"7fadb4ab.c53bec","wires":[]},{"id":"9847d7ac.37a148","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1520.7934875488281,"y":1735.291259765625,"z":"7fadb4ab.c53bec","wires":[["e8d78986.f604c8"]]},{"id":"6f8a4fa6.cf948","type":"switchNode","name":"switch tmp.found-cidx","xml":"<switch test='`$tmp.found-cidx`'>\n","comments":"","outputs":1,"x":2165.626754760742,"y":1649.2315921783447,"z":"7fadb4ab.c53bec","wires":[["2eecb5f.b469fca"]]},{"id":"2eecb5f.b469fca","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2355.626708984375,"y":1649.2315292358398,"z":"7fadb4ab.c53bec","wires":[["b6b35321.fd9c3"]]},{"id":"b6b35321.fd9c3","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2521.626708984375,"y":1649.2315292358398,"z":"7fadb4ab.c53bec","wires":[["644bef93.9b3f2"]]},{"id":"644bef93.9b3f2","type":"set","name":"set tmp.cidx ","xml":"<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n","comments":"","x":2767.484037399292,"y":1649.8030033111572,"z":"7fadb4ab.c53bec","wires":[]},{"id":"dbbca874.430ae","type":"break","name":"break","xml":"<break/>\n","comments":"","x":3325.126739501953,"y":1452.731689453125,"z":"7fadb4ab.c53bec","wires":[]},{"id":"6ca0741e.7e7cf4","type":"execute","name":"execute RestApiCallNode - Update parent provided service AR","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n","comments":"","outputs":1,"x":2043.8355293273926,"y":1816.1904199123383,"z":"7fadb4ab.c53bec","wires":[["fb20c3bf.cc2948","c8aded03.c3dc58","ec52b720.3f0e88"]]},{"id":"5a078a4b.dbcdac","type":"comment","name":"Rollback parent","info":"","comments":"","x":1887.8354568481445,"y":1785.8570504188538,"z":"7fadb4ab.c53bec","wires":[]},{"id":"fb20c3bf.cc2948","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2415.1435775756836,"y":1876.8553862571716,"z":"7fadb4ab.c53bec","wires":[["a380b8a1.d6156"]]},{"id":"c8aded03.c3dc58","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2406.143627166748,"y":1845.3554120063782,"z":"7fadb4ab.c53bec","wires":[["a380b8a1.d6156"]]},{"id":"ec52b720.3f0e88","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2409.8936653137207,"y":1815.7125168815255,"z":"7fadb4ab.c53bec","wires":[["a380b8a1.d6156"]]},{"id":"a380b8a1.d6156","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2551.549633026123,"y":1811.9046860709786,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"87327a3.b272b08","type":"comment","name":"Generate naming","info":"","comments":"","x":1308.2696075439453,"y":826.7672252655029,"z":"7fadb4ab.c53bec","wires":[]},{"id":"af2f1a45.adbd08","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":752.8833312988281,"y":295,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"319efc36.8b7e94","type":"get-resource","name":"get-resource parent service instance","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='vnfs/vnf-list/$tmp.ar.parent-service-instance-id/service-data/' pfx='parent-service-instance' >\n","comments":"","outputs":1,"x":509.8833312988281,"y":634,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"64cce46e.263344","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1028.8833312988281,"y":570,"z":"7fadb4ab.c53bec","wires":[["5d145909.4e99d"]]},{"id":"24d078da.a6c4b8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":841.8833312988281,"y":671,"z":"7fadb4ab.c53bec","wires":[["d574aab6.f0cbf8"]]},{"id":"d574aab6.f0cbf8","type":"returnFailure","name":"return failure - parent service instance not found","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\" \n value=\"`'No entry found for parent service instance id ' + $tmp.ar.parent-service-instance-id + '.'`\" />\n","comments":"","x":768.8833312988281,"y":732,"z":"7fadb4ab.c53bec","wires":[]},{"id":"212a1f09.95555","type":"for","name":"for parent vnf parameters","xml":"<for index='curidx' start='0' end='`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters_length`' >\n","comments":"","outputs":1,"x":1818.8833312988281,"y":1016,"z":"7fadb4ab.c53bec","wires":[["b1789936.524ea8"]]},{"id":"b1789936.524ea8","type":"switchNode","name":"switch parameter name","xml":"<switch test='`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters[$curidx].vnf-parameter-name`'>\n","comments":"","outputs":1,"x":1940.8833312988281,"y":1108,"z":"7fadb4ab.c53bec","wires":[["127e3224.65c8ae","e9081b35.fae1"]]},{"id":"127e3224.65c8ae","type":"other","name":"vgmux_private_ip_0","xml":"<outcome value='vgmux_private_ip_0'>\n","comments":"","outputs":1,"x":2166.883331298828,"y":1112,"z":"7fadb4ab.c53bec","wires":[["bd74febf.bbf42"]]},{"id":"eb282786.5e9aa","type":"set","name":"set tmp.vgmux-bearer-ip","xml":"<set>\n<parameter name='tmp.vgmux-bearer-ip' value='`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters[$curidx].vnf-parameter-value`'/>\n\n","comments":"","x":2399.8833084106445,"y":1173.0000400543213,"z":"7fadb4ab.c53bec","wires":[]},{"id":"e9081b35.fae1","type":"other","name":"vgmux_private_ip_2","xml":"<outcome value='vgmux_private_ip_2'>\n","comments":"","outputs":1,"x":2168.883331298828,"y":1172,"z":"7fadb4ab.c53bec","wires":[["eb282786.5e9aa"]]},{"id":"bd74febf.bbf42","type":"set","name":"set tmp.vgmux-lan-ip","xml":"<set>\n<parameter name='tmp.vgmux-lan-ip' value='`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters[$curidx].vnf-parameter-value`'/>\n\n","comments":"","x":2389.8833084106445,"y":1115.0000381469727,"z":"7fadb4ab.c53bec","wires":[]},{"id":"ba744afc.3e2d2","type":"set","name":"set default assignments","xml":"<set>\n<parameter name='tmp.vni' value='123' />\n<parameter name='tmp.vgmux-bearer-ip' value='127.0.0.1' />\n<parameter name='tmp.vgmux-lan-ip' value='127.0.0.1' />","comments":"","x":1298.8833312988281,"y":970,"z":"7fadb4ab.c53bec","wires":[]},{"id":"9f48afd3.f6e63","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.tx-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":748.8833312988281,"y":338,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"648b662c.092ab","type":"call","name":"call GENERIC-RESOURCE-API:manage-vni-assignment","xml":"<call module='GENERIC-RESOURCE-API' rpc='manage-vni-assignment' mode='sync' >\n","comments":"","outputs":1,"x":1364.8833312988281,"y":1091,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"cea14761.18e528","type":"set","name":"set actions = reserve, pools = VNI, VGW","xml":"<set>\n<parameter name='tmp.manageVni.action' value='reserve' />\n<parameter name='tmp.manageIpaddr.action' value='reserve' />\n<parameter name='tmp.manageVni.pool' value='VNI'/>\n<parameter name='tmp.manageIpaddr.pool' value='VGW'/>","comments":"","x":1317.8833312988281,"y":1054,"z":"7fadb4ab.c53bec","wires":[]},{"id":"d28ebab3.9126c","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":672.8833312988281,"y":473,"z":"7fadb4ab.c53bec","wires":[["fdad46b0.e22b48"]]},{"id":"f5672e19.d9acf8","type":"switchNode","name":"Does parent service instance have vnf parameters?","xml":"<switch test=\"`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters_length != ''`\">\n","comments":"","outputs":1,"x":1365.8833312988281,"y":1011,"z":"7fadb4ab.c53bec","wires":[["7a68d005.89872"]]},{"id":"7a68d005.89872","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1627.8833312988281,"y":1013,"z":"7fadb4ab.c53bec","wires":[["212a1f09.95555"]]},{"id":"883befdb.8069d","type":"call","name":"call GENERIC-RESOURCE-API:manage-ipaddr-assignment","xml":"<call module='GENERIC-RESOURCE-API' rpc='manage-ipaddr-assignment' mode='sync' >\n","comments":"","outputs":1,"x":1376.8833312988281,"y":1132,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"c7292ce.87518d","type":"set","name":"Handle tx parameters","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[0].name' value='VNI'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[0].value' value='`$tmp.manageVni.vni`'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[1].name' value='vgmux_private_ip_2'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[1].value' value='`$tmp.vgmux-bearer-ip`'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[2].name' value='vgmux_private_ip_0'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[2].value' value='`$tmp.vgmux-lan-ip`'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[3].name' value='vgw_private_ip_0'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[3].value' value='`$tmp.manageIpaddr.ip`'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters_length' value='4'/>\n\n","comments":"","x":1263.8833312988281,"y":1261,"z":"7fadb4ab.c53bec","wires":[]},{"id":"74818acd.58d15c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":371.8833312988281,"y":551,"z":"7fadb4ab.c53bec","wires":[]},{"id":"11866c15.7f8684","type":"call","name":"call get-vnf-api-parent-instance","xml":"\n<call module='GENERIC-RESOURCE-API' rpc='get-vnf-api-parent-instance' mode='sync' >\n","comments":"","outputs":1,"x":768.8833312988281,"y":570,"z":"7fadb4ab.c53bec","wires":[["64cce46e.263344","24d078da.a6c4b8"]]},{"id":"364d0b19.d4c844","type":"set","name":"setservice data custid, svc instance, svc type","xml":"<set>\n<parameter name='service-data.service-information.global-customer-id' value='`$tunnelxconn-topology-operation-input.service-information.global-customer-id`' />\n<parameter name='service-data.service-information.subscription-service-type' value='`$tunnelxconn-topology-operation-input.service-information.subscription-service-type`' />\n<!--\n<parameter name='service-data.service-information.service-instance-id' value='`$tunnelxconn-topology-operation-input.service-information.service-instance-id`' />\n-->\n<parameter name='service-data.service-information.service-instance-id' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`\"/>","comments":"","x":1313.3277282714844,"y":1628.666748046875,"z":"7fadb4ab.c53bec","wires":[]},{"id":"2fde6d00.c59b54","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":918.772220187717,"y":1631.3333333333333,"z":"7fadb4ab.c53bec","wires":[]},{"id":"907398df.8f102","type":"comment","name":"map input to service-data request info","info":"","comments":"","x":1593.2167663574219,"y":1606.888671875,"z":"7fadb4ab.c53bec","wires":[]},{"id":"e263ec19.259ad8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":912.8833312988281,"y":1216,"z":"7fadb4ab.c53bec","wires":[]},{"id":"dfb35317.cfab08","type":"comment","name":"404 is mapping to success ?","info":"","comments":"","x":1018.8833312988281,"y":381,"z":"7fadb4ab.c53bec","wires":[]},{"id":"318d5bd3.5fa6a4","type":"set","name":"set SDN-ETHERNET-INTERNET/VCPE work around","xml":"<set>\n<parameter name='tunnelxconn-topology-operation-input.service-information.global-customer-id' value = 'SDN-ETHERNET-INTERNET' />\n<parameter name='tunnelxconn-topology-operation-input.service-information.subscription-service-type' value = \"vCPE\" />\n","comments":"","x":1410.8833312988281,"y":458,"z":"7fadb4ab.c53bec","wires":[]},{"id":"df19f205.8b091","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1632.8833312988281,"y":434,"z":"7fadb4ab.c53bec","wires":[]},{"id":"84103406.7c3b2","type":"comment","name":"took out link on RestAPICall","info":"","comments":"","x":1116.8833312988281,"y":162,"z":"7fadb4ab.c53bec","wires":[]},{"id":"a25cbec5.783d2","type":"comment","name":"Added SDN-E-I and vCPE ot INPUT","info":"","comments":"","x":1146.8833312988281,"y":198,"z":"7fadb4ab.c53bec","wires":[]},{"id":"1d3e9851.fc557","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1130.8833312988281,"y":128,"z":"7fadb4ab.c53bec","wires":[]},{"id":"dc66d348.388cb8","type":"execute","name":"execute printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/tx-conn-assign.log' />\n\n","comments":"","outputs":1,"x":1495.8833312988281,"y":1170,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"e725812a.6fd338","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1094.8833312988281,"y":997,"z":"7fadb4ab.c53bec","wires":[]},{"id":"ae525f08.510b6","type":"comment","name":"vnf-parameters_lenght is null","info":"parent-service-instance.service-data.vnf-topology-information.vnf-parameters_length","comments":"","x":1037.8833312988281,"y":1025,"z":"7fadb4ab.c53bec","wires":[]}] +[{"id":"7d9b54af.272da4","type":"dgstart","name":"DGSTART","outputs":1,"x":263.8833312988281,"y":143,"z":"7fadb4ab.c53bec","wires":[["919a0a7b.5333b"]]},{"id":"919a0a7b.5333b","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":360.12141036987305,"y":203.95239067077637,"z":"7fadb4ab.c53bec","wires":[["7f78c9a2.2df718"]]},{"id":"7f78c9a2.2df718","type":"method","name":"tunnelxconn-topology-operation-assign","xml":"<method rpc='tunnelxconn-topology-operation-assign' mode='sync'>\n","comments":"","outputs":1,"x":411.0381889343262,"y":239.19044589996338,"z":"7fadb4ab.c53bec","wires":[["ae21d4fb.c30b38"]]},{"id":"ae21d4fb.c30b38","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":314.35952377319336,"y":382.5237879753113,"z":"7fadb4ab.c53bec","wires":[["83f83b2b.016708","767a3049.d08f1","af2f1a45.adbd08","9f48afd3.f6e63","d28ebab3.9126c"]]},{"id":"13ab7d5.78d2b03","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":1157.5499877929688,"y":2309.5477046966553,"z":"7fadb4ab.c53bec","wires":[]},{"id":"dab5dce8.609ec8","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n","comments":"","x":1194.6373863220215,"y":2188.432439804077,"z":"7fadb4ab.c53bec","wires":[]},{"id":"3cee9d90.ad9fb2","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingCreate' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tunnelxconn-topology-operation-input.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":1283.7961730957031,"y":1536.0673828125,"z":"7fadb4ab.c53bec","wires":[]},{"id":"767a3049.d08f1","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology?content=config'` \" />\n\n","comments":"","x":760.6213684082031,"y":250.33331298828125,"z":"7fadb4ab.c53bec","wires":[]},{"id":"83f83b2b.016708","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.search.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n\n","comments":"","x":808.8806457519531,"y":206.59259033203125,"z":"7fadb4ab.c53bec","wires":[]},{"id":"e45cb65d.492d9","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":947.6982116699219,"y":422.26727294921875,"z":"7fadb4ab.c53bec","wires":[["66a3f98d.ffa7d8"]]},{"id":"c7e2e195.80b4c","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.tx.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":1287.7459564208984,"y":1830.1008231639862,"z":"7fadb4ab.c53bec","wires":[["160f416c.c5ff07","798a20bf.db2ba","9b6cbfce.dded58"]]},{"id":"160f416c.c5ff07","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1556.3873329162598,"y":1881.4322349056602,"z":"7fadb4ab.c53bec","wires":[["81b5b1b4.388b98"]]},{"id":"798a20bf.db2ba","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1547.3873825073242,"y":1849.9322606548667,"z":"7fadb4ab.c53bec","wires":[["81b5b1b4.388b98"]]},{"id":"9b6cbfce.dded58","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1551.1374206542969,"y":1820.289365530014,"z":"7fadb4ab.c53bec","wires":[["a48fe088.c8a28"]]},{"id":"81b5b1b4.388b98","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=\"Error updating md-sal for tunnelxconn-allotted-resource\" />\n","comments":"","x":1713.1374816894531,"y":1877.6822509765625,"z":"7fadb4ab.c53bec","wires":[]},{"id":"fd7f6b9b.715c08","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tx-ar.allotted-resource-status.rpc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1295.4127197265625,"y":539.0529174804688,"z":"7fadb4ab.c53bec","wires":[]},{"id":"9e693e8b.6d829","type":"comment","name":"Save consumed-allotted-resources to mdsal","info":"","comments":"","x":1324.1268615722656,"y":1345.7196044921875,"z":"7fadb4ab.c53bec","wires":[]},{"id":"4f968092.a4f4e8","type":"comment","name":"GET tunnelxconn-allotted-resource from mdsal","info":"","comments":"","x":670.6981506347656,"y":392.7672119140625,"z":"7fadb4ab.c53bec","wires":[]},{"id":"66a3f98d.ffa7d8","type":"returnFailure","name":"return failure - tunnelxconn already exists","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\" \n value=\"`'Existing tunnelxconn-allotted-resource with order status of ' + $mdsal-ar.tunnelxconn-allotted-resource.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n","comments":"","x":1257.0124816894531,"y":417.6243896484375,"z":"7fadb4ab.c53bec","wires":[]},{"id":"a9cf7967.8dc92","type":"set","name":"set tx-ar-identifiers","xml":"<set>\n<parameter name='tx-ar-identifiers.consuming-service-instance-id' value=\"`$tunnelxconn-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='tx-ar-identifiers.parent-service-instance-id' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='tx-ar-identifiers.allotted-resource-type' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='tx-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n","comments":"","x":1307.2695617675781,"y":616.6243896484375,"z":"7fadb4ab.c53bec","wires":[]},{"id":"ca14b507.29986","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":1334.2219543457031,"y":575.338623046875,"z":"7fadb4ab.c53bec","wires":[]},{"id":"535c6ca9.04b234","type":"set","name":"set identifiers in overall structure","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.allotted-resource-identifiers.' value=\"`$tx-ar-identifiers.`\" />\n\n\n","comments":"","x":1324.2695617675781,"y":924.910400390625,"z":"7fadb4ab.c53bec","wires":[]},{"id":"cc85212.a969c6","type":"set","name":"set ecomp model information from input","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.' \nvalue=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.onap-model-information.`\" />\n\n\n","comments":"","x":1352.8410949707031,"y":659.9100952148438,"z":"7fadb4ab.c53bec","wires":[]},{"id":"6ca7d4e3.5c66dc","type":"switchNode","name":"switch model-invariant-uuid is null","xml":"<switch test='$tunnelxconn-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid'>\n","comments":"","outputs":1,"x":1333.6981506347656,"y":699.195809841156,"z":"7fadb4ab.c53bec","wires":[["67ca668d.30b6d"]]},{"id":"67ca668d.30b6d","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1560.8410301208496,"y":700.6243271827698,"z":"7fadb4ab.c53bec","wires":[["89650115.f7bf4"]]},{"id":"89650115.f7bf4","type":"set","name":"set model-invariant-uuid","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.model-invariant-uuid' \nvalue=\"`$ar-model.invariant-uuid`\" />\n\n\n","comments":"","x":1762.269603729248,"y":700.0528798103333,"z":"7fadb4ab.c53bec","wires":[]},{"id":"bab20b2d.5ec94","type":"switchNode","name":"switch model-uuid is null","xml":"<switch test='$tunnelxconn-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid'>\n","comments":"","outputs":1,"x":1305.1267471313477,"y":733.4815106391907,"z":"7fadb4ab.c53bec","wires":[["1e018b1c.8ec1b5"]]},{"id":"1e018b1c.8ec1b5","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1506.5553131103516,"y":734.0529322624207,"z":"7fadb4ab.c53bec","wires":[["85a72f0b.6be43"]]},{"id":"85a72f0b.6be43","type":"set","name":"set model-uuid","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.model-uuid' \nvalue=\"`$ar-model.uuid`\" />\n\n\n","comments":"","x":1699.4124717712402,"y":734.0528540611267,"z":"7fadb4ab.c53bec","wires":[]},{"id":"b22d9542.13c138","type":"switchNode","name":"switch model-version is null","xml":"<switch test='$tunnelxconn-topology-operation-input.allotted-resource-information.onap-model-information.model-version'>\n","comments":"","outputs":1,"x":1313.6981506347656,"y":775.338623046875,"z":"7fadb4ab.c53bec","wires":[["12fa49ff.c356ce"]]},{"id":"12fa49ff.c356ce","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1563.6981315612793,"y":766.3386225700378,"z":"7fadb4ab.c53bec","wires":[["8190eb5d.8dacd"]]},{"id":"8190eb5d.8dacd","type":"set","name":"set model-version","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.onap-model-information.model-version' \nvalue=\"`$ar-model.version`\" />\n\n\n","comments":"","x":1756.555290222168,"y":766.3385443687439,"z":"7fadb4ab.c53bec","wires":[]},{"id":"6bf23401.01e8ac","type":"switchNode","name":"switch ar-model.ecomp-generated-naming","xml":"<switch test='`$ar-model.ecomp-generated-naming`'>\n","comments":"","outputs":1,"x":1377.2695617675781,"y":868.7672729492188,"z":"7fadb4ab.c53bec","wires":[["3a7c67cc.e92438","4f05c4e2.66085c"]]},{"id":"3a7c67cc.e92438","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1663.2696228027344,"y":868.1958618164062,"z":"7fadb4ab.c53bec","wires":[["d04b0076.d8ee"]]},{"id":"d04b0076.d8ee","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"true","comments":"","outputs":1,"x":1817.0196838378906,"y":870.69580078125,"z":"7fadb4ab.c53bec","wires":[["1e20163.4688aea"]]},{"id":"4f05c4e2.66085c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1682.4919738769531,"y":957.1958618164062,"z":"7fadb4ab.c53bec","wires":[["c0aa79c6.3f38"]]},{"id":"c0aa79c6.3f38","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=\"Error in allotted-resource-model data. Ecomp-generated-naming should be true\" />\n\n","comments":"","x":1865.4919738769531,"y":962.1958618164062,"z":"7fadb4ab.c53bec","wires":[]},{"id":"1e20163.4688aea","type":"switchNode","name":"switch ar-model.ecomp-generated-naming","xml":"<switch test='`$ar-model.naming-policy`'>\n","comments":"","outputs":1,"x":1953.2695617675781,"y":919.767333984375,"z":"7fadb4ab.c53bec","wires":[["605d4ebf.646cc","ecc0b48f.93f14"]]},{"id":"605d4ebf.646cc","type":"other","name":"outcome oam_network_policy","xml":"<outcome value='oam_network_policy'>\n","comments":"","outputs":1,"x":2328.127471923828,"y":923.3453369140625,"z":"7fadb4ab.c53bec","wires":[["1401e9bb.56aa2e"]]},{"id":"ecc0b48f.93f14","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2242.555206298828,"y":1000.1958618164062,"z":"7fadb4ab.c53bec","wires":[["1401e9bb.56aa2e"]]},{"id":"2b53ceb6.6d45a2","type":"set","name":"set ar_name","xml":"<set>\n<parameter name='tmp.ar-name' value='$TenantOAMNetworkRole_$LandingNetworkRole_SZ' />\n","comments":"","x":2633.984161376953,"y":958.7672729492188,"z":"7fadb4ab.c53bec","wires":[]},{"id":"772444e4.c57dbc","type":"execute","name":"execute SliStringUtils - replace TenantOAMNetworkRole","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$TenantOAMNetworkRole\"/>\n <parameter name=\"replacement\" value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.untrusted-network-role`\"/>\n\n","comments":"","outputs":1,"x":2778.1271171569824,"y":1002.6244196891785,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"fe7b7b65.196628","type":"execute","name":"execute SliStringUtils - replace LandingNetworkRole","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n <parameter name=\"target\" value=\"$LandingNetworkRole\"/>\n <parameter name=\"replacement\" value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.trusted-network-role`\"/>\n\n","comments":"","outputs":1,"x":2765.127227783203,"y":1042.7672729492188,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"1401e9bb.56aa2e","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":2442.4125328063965,"y":998.3387522697449,"z":"7fadb4ab.c53bec","wires":[["2b53ceb6.6d45a2","772444e4.c57dbc","fe7b7b65.196628","c9f08b8c.4541c"]]},{"id":"c9f08b8c.4541c","type":"set","name":"set identifiers.allotted-resource-name","xml":"<set>\n<parameter name='tx-ar-identifiers.allotted-resource-name' value='`$tmp.ar-name`' />\n","comments":"","x":2722.983917236328,"y":1093.052978515625,"z":"7fadb4ab.c53bec","wires":[]},{"id":"53be8c2a.7ac224","type":"set","name":"set assignments in overall structure","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.' \nvalue=\"`$tx-ar-assignments.`\" />\n\n\n","comments":"","x":1299.7457580566406,"y":1301.6246337890625,"z":"7fadb4ab.c53bec","wires":[]},{"id":"218ac52a.07c662","type":"set","name":"Handle tx-ar-assignments","xml":"<set>\n<parameter name='tx-ar-assignments.vni' value='`$tmp.manageVni.vni`'/>\n<parameter name='tx-ar-assignments.vgmux-bearer-ip' value='`$tmp.vgmux-bearer-ip`'/>\n<parameter name='tx-ar-assignments.vgmux-lan-ip' value='`$tmp.vgmux-lan-ip`'/>\n<parameter name='tx-ar-assignments.vg-ip' value='`$tmp.manageIpaddr.ip`'/>\n\n","comments":"","x":1277.4123840332031,"y":1204.052978515625,"z":"7fadb4ab.c53bec","wires":[]},{"id":"2dd46ad.0c3ba16","type":"for","name":"for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]","xml":"<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n","comments":"","outputs":1,"x":2350.6989135742188,"y":1403.0411586761475,"z":"7fadb4ab.c53bec","wires":[["c650df17.95a668"]]},{"id":"542e8fbf.9a4fc8","type":"switchNode","name":"switch service-data.consumed-allotted-resources_length","xml":"<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1356.6981506347656,"y":1396.505126953125,"z":"7fadb4ab.c53bec","wires":[["76a078bc.3ec0c","82bdee16.337b7"]]},{"id":"76a078bc.3ec0c","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1757.0910949707031,"y":1375.1124267578125,"z":"7fadb4ab.c53bec","wires":[["351b39ac.6117b6"]]},{"id":"82bdee16.337b7","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1749.8410949707031,"y":1456.1124267578125,"z":"7fadb4ab.c53bec","wires":[["c7cbb99.60f3748"]]},{"id":"c650df17.95a668","type":"switchNode","name":"switch allotted-resource-id","xml":"<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n","comments":"","outputs":1,"x":2785.294013977051,"y":1404.85085105896,"z":"7fadb4ab.c53bec","wires":[["4ad63d89.544fbc"]]},{"id":"4ad63d89.544fbc","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2992.1037063598633,"y":1408.064962387085,"z":"7fadb4ab.c53bec","wires":[["3a240ab.9d348f6"]]},{"id":"c7cbb99.60f3748","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1916.7182922363281,"y":1450.488525390625,"z":"7fadb4ab.c53bec","wires":[["2dd46ad.0c3ba16","6f8a4fa6.cf948"]]},{"id":"3a240ab.9d348f6","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3160.365058898926,"y":1412.9222631454468,"z":"7fadb4ab.c53bec","wires":[["85ecd49e.fdba4"]]},{"id":"351b39ac.6117b6","type":"set","name":"set cidx","xml":"<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n","comments":"","x":1941.9481506347656,"y":1378.32666015625,"z":"7fadb4ab.c53bec","wires":[]},{"id":"85ecd49e.fdba4","type":"set","name":"set tmp.cidx and ctx.consumed-ar","xml":"<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n<parameter name='ctx.consumed-ar.' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].`' />\n<parameter name='tmp.found-cidx' value='true' />","comments":"","x":3406.2225189208984,"y":1407.4937419891357,"z":"7fadb4ab.c53bec","wires":[]},{"id":"774f0d4b.22566c","type":"set","name":"set consumed allotted resources","xml":"<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n","comments":"","x":1292.5553436279297,"y":1455.826681137085,"z":"7fadb4ab.c53bec","wires":[]},{"id":"a48fe088.c8a28","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1692.7933883666992,"y":1816.4815347194672,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"10b88a1b.e65316","type":"comment","name":"Add SZ AR to mdsal","info":"","comments":"","x":1219.0315246582031,"y":1766.1956787109375,"z":"7fadb4ab.c53bec","wires":[]},{"id":"28f2d6f4.76e162","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":1236.4758605957031,"y":1497.2275390625,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"fdad46b0.e22b48","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":953.4599914550781,"y":473.4814453125,"z":"7fadb4ab.c53bec","wires":[["11866c15.7f8684"]]},{"id":"5d145909.4e99d","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":901.4599914550781,"y":969.2908325195312,"z":"7fadb4ab.c53bec","wires":[["774f0d4b.22566c","28f2d6f4.76e162","3cee9d90.ad9fb2","c7e2e195.80b4c","dab5dce8.609ec8","13ab7d5.78d2b03","47bc1534.f83334","fd7f6b9b.715c08","a9cf7967.8dc92","cc85212.a969c6","6ca7d4e3.5c66dc","bab20b2d.5ec94","b22d9542.13c138","6bf23401.01e8ac","535c6ca9.04b234","ba744afc.3e2d2","cea14761.18e528","648b662c.092ab","218ac52a.07c662","53be8c2a.7ac224","542e8fbf.9a4fc8","f5672e19.d9acf8","883befdb.8069d","c7292ce.87518d","66b81cf7.857b44","364d0b19.d4c844"]]},{"id":"47bc1534.f83334","type":"set","name":"set id","xml":"<set>\n<parameter name='tx-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='tx-ar.allotted-resource-status.action' value=\"`$tunnelxconn-topology-operation-input.request-information.request-action` \" />\n<parameter name='tx-ar.allotted-resource-status.rpc-name' value=\"tunnelxconn-topology-operation\" />\n<parameter name='tx-ar.allotted-resource-status.rpc-action' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$tunnelxconn-topology-operation-input.request-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$tunnelxconn-topology-operation-input.service-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.' value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.` \" />","comments":"","x":1270.1267395019531,"y":495.433837890625,"z":"7fadb4ab.c53bec","wires":[]},{"id":"66b81cf7.857b44","type":"update","name":"update AAI allotted-resource","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$ar-model.invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$ar-model.uuid`\" />\n\t<parameter name=\"operational-status\" value=\"null\" />","comments":"","outputs":1,"x":1259.2695617675781,"y":1693.799072265625,"z":"7fadb4ab.c53bec","wires":[["d58aab1e.918b38","9847d7ac.37a148"]]},{"id":"d58aab1e.918b38","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1509.6981735229492,"y":1680.5292553901672,"z":"7fadb4ab.c53bec","wires":[["e8d78986.f604c8"]]},{"id":"e8d78986.f604c8","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=\"AAI failed\" />\n","comments":"","x":1678.2220764160156,"y":1682.1483154296875,"z":"7fadb4ab.c53bec","wires":[]},{"id":"9847d7ac.37a148","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1520.7934875488281,"y":1735.291259765625,"z":"7fadb4ab.c53bec","wires":[["e8d78986.f604c8"]]},{"id":"6f8a4fa6.cf948","type":"switchNode","name":"switch tmp.found-cidx","xml":"<switch test='`$tmp.found-cidx`'>\n","comments":"","outputs":1,"x":2165.626754760742,"y":1649.2315921783447,"z":"7fadb4ab.c53bec","wires":[["2eecb5f.b469fca"]]},{"id":"2eecb5f.b469fca","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2355.626708984375,"y":1649.2315292358398,"z":"7fadb4ab.c53bec","wires":[["b6b35321.fd9c3"]]},{"id":"b6b35321.fd9c3","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2521.626708984375,"y":1649.2315292358398,"z":"7fadb4ab.c53bec","wires":[["644bef93.9b3f2"]]},{"id":"644bef93.9b3f2","type":"set","name":"set tmp.cidx ","xml":"<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n","comments":"","x":2767.484037399292,"y":1649.8030033111572,"z":"7fadb4ab.c53bec","wires":[]},{"id":"dbbca874.430ae","type":"break","name":"break","xml":"<break/>\n","comments":"","x":3325.126739501953,"y":1452.731689453125,"z":"7fadb4ab.c53bec","wires":[]},{"id":"6ca0741e.7e7cf4","type":"execute","name":"execute RestApiCallNode - Update parent provided service AR","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"parent\" />\n\n","comments":"","outputs":1,"x":2043.8355293273926,"y":1816.1904199123383,"z":"7fadb4ab.c53bec","wires":[["fb20c3bf.cc2948","c8aded03.c3dc58","ec52b720.3f0e88"]]},{"id":"5a078a4b.dbcdac","type":"comment","name":"Rollback parent","info":"","comments":"","x":1887.8354568481445,"y":1785.8570504188538,"z":"7fadb4ab.c53bec","wires":[]},{"id":"fb20c3bf.cc2948","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2415.1435775756836,"y":1876.8553862571716,"z":"7fadb4ab.c53bec","wires":[["a380b8a1.d6156"]]},{"id":"c8aded03.c3dc58","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2406.143627166748,"y":1845.3554120063782,"z":"7fadb4ab.c53bec","wires":[["a380b8a1.d6156"]]},{"id":"ec52b720.3f0e88","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2409.8936653137207,"y":1815.7125168815255,"z":"7fadb4ab.c53bec","wires":[["a380b8a1.d6156"]]},{"id":"a380b8a1.d6156","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2551.549633026123,"y":1811.9046860709786,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"87327a3.b272b08","type":"comment","name":"Generate naming","info":"","comments":"","x":1308.2696075439453,"y":826.7672252655029,"z":"7fadb4ab.c53bec","wires":[]},{"id":"af2f1a45.adbd08","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":752.8833312988281,"y":295,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"319efc36.8b7e94","type":"get-resource","name":"get-resource parent service instance","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='vnfs/vnf-list/$tmp.ar.parent-service-instance-id/service-data/' pfx='parent-service-instance' >\n","comments":"","outputs":1,"x":509.8833312988281,"y":634,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"64cce46e.263344","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1028.8833312988281,"y":570,"z":"7fadb4ab.c53bec","wires":[["5d145909.4e99d"]]},{"id":"24d078da.a6c4b8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":841.8833312988281,"y":671,"z":"7fadb4ab.c53bec","wires":[["d574aab6.f0cbf8"]]},{"id":"d574aab6.f0cbf8","type":"returnFailure","name":"return failure - parent service instance not found","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\" \n value=\"`'No entry found for parent service instance id ' + $tmp.ar.parent-service-instance-id + '.'`\" />\n","comments":"","x":768.8833312988281,"y":732,"z":"7fadb4ab.c53bec","wires":[]},{"id":"212a1f09.95555","type":"for","name":"for parent vnf parameters","xml":"<for index='curidx' start='0' end='`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters_length`' >\n","comments":"","outputs":1,"x":1818.8833312988281,"y":1016,"z":"7fadb4ab.c53bec","wires":[["b1789936.524ea8"]]},{"id":"b1789936.524ea8","type":"switchNode","name":"switch parameter name","xml":"<switch test='`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters[$curidx].vnf-parameter-name`'>\n","comments":"","outputs":1,"x":1940.8833312988281,"y":1108,"z":"7fadb4ab.c53bec","wires":[["127e3224.65c8ae","e9081b35.fae1"]]},{"id":"127e3224.65c8ae","type":"other","name":"vgmux_private_ip_0","xml":"<outcome value='vgmux_private_ip_0'>\n","comments":"","outputs":1,"x":2166.883331298828,"y":1112,"z":"7fadb4ab.c53bec","wires":[["bd74febf.bbf42"]]},{"id":"eb282786.5e9aa","type":"set","name":"set tmp.vgmux-bearer-ip","xml":"<set>\n<parameter name='tmp.vgmux-bearer-ip' value='`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters[$curidx].vnf-parameter-value`'/>\n\n","comments":"","x":2399.8833084106445,"y":1173.0000400543213,"z":"7fadb4ab.c53bec","wires":[]},{"id":"e9081b35.fae1","type":"other","name":"vgmux_private_ip_2","xml":"<outcome value='vgmux_private_ip_2'>\n","comments":"","outputs":1,"x":2168.883331298828,"y":1172,"z":"7fadb4ab.c53bec","wires":[["eb282786.5e9aa"]]},{"id":"bd74febf.bbf42","type":"set","name":"set tmp.vgmux-lan-ip","xml":"<set>\n<parameter name='tmp.vgmux-lan-ip' value='`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters[$curidx].vnf-parameter-value`'/>\n\n","comments":"","x":2389.8833084106445,"y":1115.0000381469727,"z":"7fadb4ab.c53bec","wires":[]},{"id":"ba744afc.3e2d2","type":"set","name":"set default assignments","xml":"<set>\n<parameter name='tmp.vni' value='123' />\n<parameter name='tmp.vgmux-bearer-ip' value='127.0.0.1' />\n<parameter name='tmp.vgmux-lan-ip' value='127.0.0.1' />","comments":"","x":1298.8833312988281,"y":970,"z":"7fadb4ab.c53bec","wires":[]},{"id":"9f48afd3.f6e63","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.tx-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":748.8833312988281,"y":338,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"648b662c.092ab","type":"call","name":"call GENERIC-RESOURCE-API:manage-vni-assignment","xml":"<call module='GENERIC-RESOURCE-API' rpc='manage-vni-assignment' mode='sync' >\n","comments":"","outputs":1,"x":1364.8833312988281,"y":1091,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"cea14761.18e528","type":"set","name":"set actions = reserve, pools = VNI, VGW","xml":"<set>\n<parameter name='tmp.manageVni.action' value='reserve' />\n<parameter name='tmp.manageIpaddr.action' value='reserve' />\n<parameter name='tmp.manageVni.pool' value='VNI'/>\n<parameter name='tmp.manageIpaddr.pool' value='VGW'/>","comments":"","x":1317.8833312988281,"y":1054,"z":"7fadb4ab.c53bec","wires":[]},{"id":"d28ebab3.9126c","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":672.8833312988281,"y":473,"z":"7fadb4ab.c53bec","wires":[["fdad46b0.e22b48"]]},{"id":"f5672e19.d9acf8","type":"switchNode","name":"Does parent service instance have vnf parameters?","xml":"<switch test=\"`$parent-service-instance.service-data.vnf-topology-information.vnf-parameters_length != ''`\">\n","comments":"","outputs":1,"x":1365.8833312988281,"y":1011,"z":"7fadb4ab.c53bec","wires":[["7a68d005.89872"]]},{"id":"7a68d005.89872","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1627.8833312988281,"y":1013,"z":"7fadb4ab.c53bec","wires":[["212a1f09.95555"]]},{"id":"883befdb.8069d","type":"call","name":"call GENERIC-RESOURCE-API:manage-ipaddr-assignment","xml":"<call module='GENERIC-RESOURCE-API' rpc='manage-ipaddr-assignment' mode='sync' >\n","comments":"","outputs":1,"x":1376.8833312988281,"y":1132,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"c7292ce.87518d","type":"set","name":"Handle tx parameters","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[0].name' value='VNI'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[0].value' value='`$tmp.manageVni.vni`'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[1].name' value='vgmux_private_ip_2'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[1].value' value='`$tmp.vgmux-bearer-ip`'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[2].name' value='vgmux_private_ip_0'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[2].value' value='`$tmp.vgmux-lan-ip`'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[3].name' value='vgw_private_ip_0'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters.param[3].value' value='`$tmp.manageIpaddr.ip`'/>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-parameters_length' value='4'/>\n\n","comments":"","x":1263.8833312988281,"y":1261,"z":"7fadb4ab.c53bec","wires":[]},{"id":"74818acd.58d15c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":371.8833312988281,"y":551,"z":"7fadb4ab.c53bec","wires":[]},{"id":"11866c15.7f8684","type":"call","name":"call get-vnf-api-parent-instance","xml":"\n<call module='GENERIC-RESOURCE-API' rpc='get-vnf-api-parent-instance' mode='sync' >\n","comments":"","outputs":1,"x":768.8833312988281,"y":570,"z":"7fadb4ab.c53bec","wires":[["64cce46e.263344","24d078da.a6c4b8"]]},{"id":"364d0b19.d4c844","type":"set","name":"setservice data custid, svc instance, svc type","xml":"<set>\n<parameter name='service-data.service-information.global-customer-id' value='`$tunnelxconn-topology-operation-input.service-information.global-customer-id`' />\n<parameter name='service-data.service-information.subscription-service-type' value='`$tunnelxconn-topology-operation-input.service-information.subscription-service-type`' />\n<!--\n<parameter name='service-data.service-information.service-instance-id' value='`$tunnelxconn-topology-operation-input.service-information.service-instance-id`' />\n-->\n<parameter name='service-data.service-information.service-instance-id' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`\"/>","comments":"","x":1313.3277282714844,"y":1628.666748046875,"z":"7fadb4ab.c53bec","wires":[]},{"id":"2fde6d00.c59b54","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":918.772220187717,"y":1631.3333333333333,"z":"7fadb4ab.c53bec","wires":[]},{"id":"907398df.8f102","type":"comment","name":"map input to service-data request info","info":"","comments":"","x":1593.2167663574219,"y":1606.888671875,"z":"7fadb4ab.c53bec","wires":[]},{"id":"e263ec19.259ad8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":912.8833312988281,"y":1216,"z":"7fadb4ab.c53bec","wires":[]},{"id":"dfb35317.cfab08","type":"comment","name":"404 is mapping to success ?","info":"","comments":"","x":1018.8833312988281,"y":381,"z":"7fadb4ab.c53bec","wires":[]},{"id":"318d5bd3.5fa6a4","type":"set","name":"set SDN-ETHERNET-INTERNET/VCPE work around","xml":"<set>\n<parameter name='tunnelxconn-topology-operation-input.service-information.global-customer-id' value = 'SDN-ETHERNET-INTERNET' />\n<parameter name='tunnelxconn-topology-operation-input.service-information.subscription-service-type' value = \"vCPE\" />\n","comments":"","x":1410.8833312988281,"y":458,"z":"7fadb4ab.c53bec","wires":[]},{"id":"df19f205.8b091","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1632.8833312988281,"y":434,"z":"7fadb4ab.c53bec","wires":[]},{"id":"84103406.7c3b2","type":"comment","name":"took out link on RestAPICall","info":"","comments":"","x":1116.8833312988281,"y":162,"z":"7fadb4ab.c53bec","wires":[]},{"id":"a25cbec5.783d2","type":"comment","name":"Added SDN-E-I and vCPE ot INPUT","info":"","comments":"","x":1146.8833312988281,"y":198,"z":"7fadb4ab.c53bec","wires":[]},{"id":"1d3e9851.fc557","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1130.8833312988281,"y":128,"z":"7fadb4ab.c53bec","wires":[]},{"id":"dc66d348.388cb8","type":"execute","name":"execute printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/tx-conn-assign.log' />\n\n","comments":"","outputs":1,"x":1495.8833312988281,"y":1170,"z":"7fadb4ab.c53bec","wires":[[]]},{"id":"e725812a.6fd338","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1094.8833312988281,"y":997,"z":"7fadb4ab.c53bec","wires":[]},{"id":"ae525f08.510b6","type":"comment","name":"vnf-parameters_lenght is null","info":"parent-service-instance.service-data.vnf-topology-information.vnf-parameters_length","comments":"","x":1037.8833312988281,"y":1025,"z":"7fadb4ab.c53bec","wires":[]}] diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-create.json index 07b4875a..1c461777 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-create.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-create.json @@ -110,7 +110,7 @@ "id":"32cfcb41.379404", "type":"set", "name":"set output to api handler", - "xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments":"", "x":433.4208984375, "y":2449.670654296875, @@ -136,7 +136,7 @@ "id":"488f5b92.19e194", "type":"set", "name":"set tmp.ar.self-link", - "xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology/'` \" />\n\n", + "xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology?content=config'` \" />\n\n", "comments":"", "x":439.73806381225586, "y":279.33332538604736, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-deactivate.json index 403c1ff3..eecf7cee 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-deactivate.json @@ -1 +1 @@ -[{"id":"77e7c41f.d39b2c","type":"dgstart","name":"DGSTART","outputs":1,"x":129,"y":77,"z":"2b82a97f.11e4ee","wires":[["eb62acdc.bba158"]]},{"id":"eb62acdc.bba158","type":"service-logic","name":"GENERIC-RESOURCE-API ${project.version}","module":"GENERIC-RESOURCE-API","version":"${project.version}","comments":"","xml":"<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>","outputs":1,"x":225.23807907104492,"y":137.95239067077637,"z":"2b82a97f.11e4ee","wires":[["6dbf8ba8.4b789c"]]},{"id":"6dbf8ba8.4b789c","type":"method","name":"tunnelxconn-topology-operation-deactivate","xml":"<method rpc='tunnelxconn-topology-operation-deactivate' mode='sync'>\n","comments":"","outputs":1,"x":271.15485763549805,"y":173.19044589996338,"z":"2b82a97f.11e4ee","wires":[["12e90cec.9889bb"]]},{"id":"12e90cec.9889bb","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":179.47619247436523,"y":316.5237879753113,"z":"2b82a97f.11e4ee","wires":[["bfde80e.cd9818","a9f3bbe1.8e6458","2ebe5fb6.6deef","a139db86.7c9fb","50a44a6b.6f304c","f5391cda.7ebb38","7dc1b11b.7bf04","4e75d792.04ff58","5fcf2002.dc2648","6bad160a.61f6c8","63f6549a.034eec","17f54773.35cae9"]]},{"id":"a9f3bbe1.8e6458","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":446.0001106262207,"y":986.2145080566406,"z":"2b82a97f.11e4ee","wires":[]},{"id":"bfde80e.cd9818","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n","comments":"","x":474.7540283203125,"y":949.3370361328125,"z":"2b82a97f.11e4ee","wires":[]},{"id":"6bad160a.61f6c8","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tunnelxconn-topology-operation-input.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":485.7542419433594,"y":697.0514221191406,"z":"2b82a97f.11e4ee","wires":[]},{"id":"a139db86.7c9fb","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology/'` \" />\n\n","comments":"","x":441.73806381225586,"y":290.33332538604736,"z":"2b82a97f.11e4ee","wires":[]},{"id":"2ebe5fb6.6deef","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n","comments":"","x":488.9973258972168,"y":256.59259128570557,"z":"2b82a97f.11e4ee","wires":[]},{"id":"50a44a6b.6f304c","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":447.9934196472168,"y":326.23152446746826,"z":"2b82a97f.11e4ee","wires":[[]]},{"id":"7dc1b11b.7bf04","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":510.5187530517578,"y":487.4594917297363,"z":"2b82a97f.11e4ee","wires":[["a6b8e311.5d4ba","ed37dff8.8e4478"]]},{"id":"f5391cda.7ebb38","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.tx-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":476.0648536682129,"y":386.0172290802002,"z":"2b82a97f.11e4ee","wires":[[]]},{"id":"a6b8e311.5d4ba","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":767.8148918151855,"y":486.26725220680237,"z":"2b82a97f.11e4ee","wires":[["78a50574.e49954"]]},{"id":"4e75d792.04ff58","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.tx.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":518.5293121337891,"y":840.4341316223145,"z":"2b82a97f.11e4ee","wires":[["2ed02149.4dd00e","a6a159ad.147bc","820e27ec.2ca21"]]},{"id":"2ed02149.4dd00e","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":788.837329864502,"y":893.432332418859,"z":"2b82a97f.11e4ee","wires":[["275cb7a4.5d6a28"]]},{"id":"a6a159ad.147bc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":779.8373794555664,"y":861.9323581680655,"z":"2b82a97f.11e4ee","wires":[["275cb7a4.5d6a28"]]},{"id":"820e27ec.2ca21","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":783.5874176025391,"y":832.2894630432129,"z":"2b82a97f.11e4ee","wires":[["e3974867.1ad8f8"]]},{"id":"275cb7a4.5d6a28","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=\"Error updating md-sal for tunnelxconn-allotted-resource\" />\n","comments":"","x":949.5874176025391,"y":862.6823820099235,"z":"2b82a97f.11e4ee","wires":[]},{"id":"78a50574.e49954","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":948.8148460388184,"y":486.7672016620636,"z":"2b82a97f.11e4ee","wires":[["495c50c0.877d7","15865c28.4b50bc"]]},{"id":"495c50c0.877d7","type":"switchNode","name":"switch tx length","xml":"<switch test='`$mdsal-ar.tunnelxconn-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1194.6720924377441,"y":521.052964925766,"z":"2b82a97f.11e4ee","wires":[["17c51ecf.7cd569"]]},{"id":"17c51ecf.7cd569","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1385.6720962524414,"y":521.0529625415802,"z":"2b82a97f.11e4ee","wires":[["68fb786b.6c9068"]]},{"id":"f91188db.7ca6","type":"set","name":"set tx-ar from get","xml":"<set>\n<parameter name='tx-ar.' value='$mdsal-ar.tunnelxconn-allotted-resource[0].' />\n","comments":"","x":1785.5292320251465,"y":521.6243867874146,"z":"2b82a97f.11e4ee","wires":[]},{"id":"68fb786b.6c9068","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1556.5290794372559,"y":521.6244316101074,"z":"2b82a97f.11e4ee","wires":[["f91188db.7ca6","24a63c38.36bad4","ed06370.898bd48"]]},{"id":"24a63c38.36bad4","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tx-ar.allotted-resource-status.rpc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1783.5294761657715,"y":589.0529508590698,"z":"2b82a97f.11e4ee","wires":[]},{"id":"480b8187.423d28","type":"comment","name":"GET tunnelxconn-allotted-resource from mdsal","info":"","comments":"","x":535.8148155212402,"y":450.7671926021576,"z":"2b82a97f.11e4ee","wires":[]},{"id":"ed06370.898bd48","type":"switchNode","name":"switch order-status","xml":"<switch test='`$tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1793.52925491333,"y":554.6243848800659,"z":"2b82a97f.11e4ee","wires":[["8b637658.dc76d","523ac249.9cee14"]]},{"id":"8b637658.dc76d","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2005.1292114257812,"y":515.6243848800659,"z":"2b82a97f.11e4ee","wires":[["ae90d88c.f247e"]]},{"id":"523ac249.9cee14","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2030.8435859680176,"y":551.052975654602,"z":"2b82a97f.11e4ee","wires":[["ae90d88c.f247e"]]},{"id":"8ab3497c.81651","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":491.33863830566406,"y":541.3386459350586,"z":"2b82a97f.11e4ee","wires":[]},{"id":"15865c28.4b50bc","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-tx-ar' value='$mdsal-ar.' />\n","comments":"","x":1274.3864250183105,"y":486.76729369163513,"z":"2b82a97f.11e4ee","wires":[]},{"id":"667a59da.7e3228","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":446.9576606750488,"y":355.6243562698364,"z":"2b82a97f.11e4ee","wires":[]},{"id":"e3974867.1ad8f8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":925.2433853149414,"y":828.481632232666,"z":"2b82a97f.11e4ee","wires":[[]]},{"id":"877979d2.d0cc48","type":"comment","name":"TO DO: vnf/put parent","info":"","comments":"","x":453.52909088134766,"y":733.9101696014404,"z":"2b82a97f.11e4ee","wires":[]},{"id":"5fcf2002.dc2648","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":433.24338150024414,"y":658.4815549850464,"z":"2b82a97f.11e4ee","wires":[[]]},{"id":"ed37dff8.8e4478","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":767.5766868591309,"y":522.4814250469208,"z":"2b82a97f.11e4ee","wires":[["4ddae737.3112d"]]},{"id":"4ddae737.3112d","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":947.5766372680664,"y":523.1479756832123,"z":"2b82a97f.11e4ee","wires":[[]]},{"id":"63f6549a.034eec","type":"set","name":"set id","xml":"<set>\n<parameter name='tx-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='tx-ar.allotted-resource-status.action' value=\"`$tunnelxconn-topology-operation-input.request-information.request-action` \" />\n<parameter name='tx-ar.allotted-resource-status.rpc-name' value=\"tunnelxconn-topology-operation\" />\n<parameter name='tx-ar.allotted-resource-status.rpc-action' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$tunnelxconn-topology-operation-input.request-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$tunnelxconn-topology-operation-input.service-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.' value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.` \" />","comments":"","x":416.24342346191406,"y":578.1481666564941,"z":"2b82a97f.11e4ee","wires":[]},{"id":"ae90d88c.f247e","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2219.5997276306152,"y":517.0000190734863,"z":"2b82a97f.11e4ee","wires":[[]]},{"id":"17f54773.35cae9","type":"update","name":"update AAI allotted-resource","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"operational-status\" value=\"out-of-service-path\" />\n","comments":"","outputs":1,"x":480.42857360839844,"y":775.571418762207,"z":"2b82a97f.11e4ee","wires":[["5bc14f2f.834cb","dcde8ae.d8a6c78"]]},{"id":"5bc14f2f.834cb","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":736.1904830932617,"y":758.5239224433899,"z":"2b82a97f.11e4ee","wires":[["11d358d.8f25ba7"]]},{"id":"11d358d.8f25ba7","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=\"AAI failed\" />\n","comments":"","x":902.7143630981445,"y":770.1429934501648,"z":"2b82a97f.11e4ee","wires":[]},{"id":"dcde8ae.d8a6c78","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":743.2857704162598,"y":791.2858901023865,"z":"2b82a97f.11e4ee","wires":[["11d358d.8f25ba7"]]}] +[{"id":"77e7c41f.d39b2c","type":"dgstart","name":"DGSTART","outputs":1,"x":129,"y":77,"z":"2b82a97f.11e4ee","wires":[["eb62acdc.bba158"]]},{"id":"eb62acdc.bba158","type":"service-logic","name":"GENERIC-RESOURCE-API ${project.version}","module":"GENERIC-RESOURCE-API","version":"${project.version}","comments":"","xml":"<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>","outputs":1,"x":225.23807907104492,"y":137.95239067077637,"z":"2b82a97f.11e4ee","wires":[["6dbf8ba8.4b789c"]]},{"id":"6dbf8ba8.4b789c","type":"method","name":"tunnelxconn-topology-operation-deactivate","xml":"<method rpc='tunnelxconn-topology-operation-deactivate' mode='sync'>\n","comments":"","outputs":1,"x":271.15485763549805,"y":173.19044589996338,"z":"2b82a97f.11e4ee","wires":[["12e90cec.9889bb"]]},{"id":"12e90cec.9889bb","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":179.47619247436523,"y":316.5237879753113,"z":"2b82a97f.11e4ee","wires":[["bfde80e.cd9818","a9f3bbe1.8e6458","2ebe5fb6.6deef","a139db86.7c9fb","50a44a6b.6f304c","f5391cda.7ebb38","7dc1b11b.7bf04","4e75d792.04ff58","5fcf2002.dc2648","6bad160a.61f6c8","63f6549a.034eec","17f54773.35cae9"]]},{"id":"a9f3bbe1.8e6458","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":446.0001106262207,"y":986.2145080566406,"z":"2b82a97f.11e4ee","wires":[]},{"id":"bfde80e.cd9818","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n","comments":"","x":474.7540283203125,"y":949.3370361328125,"z":"2b82a97f.11e4ee","wires":[]},{"id":"6bad160a.61f6c8","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tunnelxconn-topology-operation-input.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":485.7542419433594,"y":697.0514221191406,"z":"2b82a97f.11e4ee","wires":[]},{"id":"a139db86.7c9fb","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology?content=config'` \" />\n\n","comments":"","x":441.73806381225586,"y":290.33332538604736,"z":"2b82a97f.11e4ee","wires":[]},{"id":"2ebe5fb6.6deef","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n","comments":"","x":488.9973258972168,"y":256.59259128570557,"z":"2b82a97f.11e4ee","wires":[]},{"id":"50a44a6b.6f304c","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":447.9934196472168,"y":326.23152446746826,"z":"2b82a97f.11e4ee","wires":[[]]},{"id":"7dc1b11b.7bf04","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":510.5187530517578,"y":487.4594917297363,"z":"2b82a97f.11e4ee","wires":[["a6b8e311.5d4ba","ed37dff8.8e4478"]]},{"id":"f5391cda.7ebb38","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.tx-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":476.0648536682129,"y":386.0172290802002,"z":"2b82a97f.11e4ee","wires":[[]]},{"id":"a6b8e311.5d4ba","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":767.8148918151855,"y":486.26725220680237,"z":"2b82a97f.11e4ee","wires":[["78a50574.e49954"]]},{"id":"4e75d792.04ff58","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.tx.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":518.5293121337891,"y":840.4341316223145,"z":"2b82a97f.11e4ee","wires":[["2ed02149.4dd00e","a6a159ad.147bc","820e27ec.2ca21"]]},{"id":"2ed02149.4dd00e","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":788.837329864502,"y":893.432332418859,"z":"2b82a97f.11e4ee","wires":[["275cb7a4.5d6a28"]]},{"id":"a6a159ad.147bc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":779.8373794555664,"y":861.9323581680655,"z":"2b82a97f.11e4ee","wires":[["275cb7a4.5d6a28"]]},{"id":"820e27ec.2ca21","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":783.5874176025391,"y":832.2894630432129,"z":"2b82a97f.11e4ee","wires":[["e3974867.1ad8f8"]]},{"id":"275cb7a4.5d6a28","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=\"Error updating md-sal for tunnelxconn-allotted-resource\" />\n","comments":"","x":949.5874176025391,"y":862.6823820099235,"z":"2b82a97f.11e4ee","wires":[]},{"id":"78a50574.e49954","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":948.8148460388184,"y":486.7672016620636,"z":"2b82a97f.11e4ee","wires":[["495c50c0.877d7","15865c28.4b50bc"]]},{"id":"495c50c0.877d7","type":"switchNode","name":"switch tx length","xml":"<switch test='`$mdsal-ar.tunnelxconn-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1194.6720924377441,"y":521.052964925766,"z":"2b82a97f.11e4ee","wires":[["17c51ecf.7cd569"]]},{"id":"17c51ecf.7cd569","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1385.6720962524414,"y":521.0529625415802,"z":"2b82a97f.11e4ee","wires":[["68fb786b.6c9068"]]},{"id":"f91188db.7ca6","type":"set","name":"set tx-ar from get","xml":"<set>\n<parameter name='tx-ar.' value='$mdsal-ar.tunnelxconn-allotted-resource[0].' />\n","comments":"","x":1785.5292320251465,"y":521.6243867874146,"z":"2b82a97f.11e4ee","wires":[]},{"id":"68fb786b.6c9068","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1556.5290794372559,"y":521.6244316101074,"z":"2b82a97f.11e4ee","wires":[["f91188db.7ca6","24a63c38.36bad4","ed06370.898bd48"]]},{"id":"24a63c38.36bad4","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tx-ar.allotted-resource-status.rpc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1783.5294761657715,"y":589.0529508590698,"z":"2b82a97f.11e4ee","wires":[]},{"id":"480b8187.423d28","type":"comment","name":"GET tunnelxconn-allotted-resource from mdsal","info":"","comments":"","x":535.8148155212402,"y":450.7671926021576,"z":"2b82a97f.11e4ee","wires":[]},{"id":"ed06370.898bd48","type":"switchNode","name":"switch order-status","xml":"<switch test='`$tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1793.52925491333,"y":554.6243848800659,"z":"2b82a97f.11e4ee","wires":[["8b637658.dc76d","523ac249.9cee14"]]},{"id":"8b637658.dc76d","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2005.1292114257812,"y":515.6243848800659,"z":"2b82a97f.11e4ee","wires":[["ae90d88c.f247e"]]},{"id":"523ac249.9cee14","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2030.8435859680176,"y":551.052975654602,"z":"2b82a97f.11e4ee","wires":[["ae90d88c.f247e"]]},{"id":"8ab3497c.81651","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":491.33863830566406,"y":541.3386459350586,"z":"2b82a97f.11e4ee","wires":[]},{"id":"15865c28.4b50bc","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-tx-ar' value='$mdsal-ar.' />\n","comments":"","x":1274.3864250183105,"y":486.76729369163513,"z":"2b82a97f.11e4ee","wires":[]},{"id":"667a59da.7e3228","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":446.9576606750488,"y":355.6243562698364,"z":"2b82a97f.11e4ee","wires":[]},{"id":"e3974867.1ad8f8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":925.2433853149414,"y":828.481632232666,"z":"2b82a97f.11e4ee","wires":[[]]},{"id":"877979d2.d0cc48","type":"comment","name":"TO DO: vnf/put parent","info":"","comments":"","x":453.52909088134766,"y":733.9101696014404,"z":"2b82a97f.11e4ee","wires":[]},{"id":"5fcf2002.dc2648","type":"execute","name":"execute getTime","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n","comments":"","outputs":1,"x":433.24338150024414,"y":658.4815549850464,"z":"2b82a97f.11e4ee","wires":[[]]},{"id":"ed37dff8.8e4478","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":767.5766868591309,"y":522.4814250469208,"z":"2b82a97f.11e4ee","wires":[["4ddae737.3112d"]]},{"id":"4ddae737.3112d","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":947.5766372680664,"y":523.1479756832123,"z":"2b82a97f.11e4ee","wires":[[]]},{"id":"63f6549a.034eec","type":"set","name":"set id","xml":"<set>\n<parameter name='tx-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='tx-ar.allotted-resource-status.action' value=\"`$tunnelxconn-topology-operation-input.request-information.request-action` \" />\n<parameter name='tx-ar.allotted-resource-status.rpc-name' value=\"tunnelxconn-topology-operation\" />\n<parameter name='tx-ar.allotted-resource-status.rpc-action' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$tunnelxconn-topology-operation-input.request-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$tunnelxconn-topology-operation-input.service-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.' value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.` \" />","comments":"","x":416.24342346191406,"y":578.1481666564941,"z":"2b82a97f.11e4ee","wires":[]},{"id":"ae90d88c.f247e","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2219.5997276306152,"y":517.0000190734863,"z":"2b82a97f.11e4ee","wires":[[]]},{"id":"17f54773.35cae9","type":"update","name":"update AAI allotted-resource","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"operational-status\" value=\"out-of-service-path\" />\n","comments":"","outputs":1,"x":480.42857360839844,"y":775.571418762207,"z":"2b82a97f.11e4ee","wires":[["5bc14f2f.834cb","dcde8ae.d8a6c78"]]},{"id":"5bc14f2f.834cb","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":736.1904830932617,"y":758.5239224433899,"z":"2b82a97f.11e4ee","wires":[["11d358d.8f25ba7"]]},{"id":"11d358d.8f25ba7","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=\"AAI failed\" />\n","comments":"","x":902.7143630981445,"y":770.1429934501648,"z":"2b82a97f.11e4ee","wires":[]},{"id":"dcde8ae.d8a6c78","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":743.2857704162598,"y":791.2858901023865,"z":"2b82a97f.11e4ee","wires":[["11d358d.8f25ba7"]]}] diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-delete.json index 6030e9ea..a2abe8ff 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-delete.json @@ -106,7 +106,7 @@ "id":"57095392.42df9c", "type":"set", "name":"set output to api handler", - "xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments":"", "x":460.7540702819824, "y":2167.0036573410034, @@ -132,7 +132,7 @@ "id":"b1b79d47.5b712", "type":"set", "name":"set tmp.ar.self-link", - "xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology/'` \" />\n\n", + "xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology?content=config'` \" />\n\n", "comments":"", "x":440.73806381225586, "y":329.33332538604736, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-unassign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-unassign.json index d1895cf0..b0f50375 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-unassign.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-unassign.json @@ -1 +1 @@ -[{"id":"d0df0900.4fcd5","type":"dgstart","name":"DGSTART","outputs":1,"x":133,"y":56,"z":"7c97bedb.1d31f","wires":[["c6ff669a.26cce"]]},{"id":"c6ff669a.26cce","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":229.23807907104492,"y":116.95239067077637,"z":"7c97bedb.1d31f","wires":[["a36cb8ff.96247"]]},{"id":"a36cb8ff.96247","type":"method","name":"tunnelxconn-topology-operation-unassign","xml":"<method rpc='tunnelxconn-topology-operation-unassign' mode='sync'>\n","comments":"","outputs":1,"x":273.15489196777344,"y":156.190447807312,"z":"7c97bedb.1d31f","wires":[["80d4d61f.2e5f5"]]},{"id":"80d4d61f.2e5f5","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":183.47619247436523,"y":295.5237879753113,"z":"7c97bedb.1d31f","wires":[["f43956d6.a61ab","78019473.89211c","56e75d3b.d9027c","399e93b8.1efa3c","87471e8d.32c7a8","b069670d.e3fd9","8def1fff.634bf","763bc49e.756a84"]]},{"id":"78019473.89211c","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":450.0001106262207,"y":965.2145080566406,"z":"7c97bedb.1d31f","wires":[]},{"id":"f43956d6.a61ab","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n","comments":"","x":478.75402450561523,"y":929.3370542526245,"z":"7c97bedb.1d31f","wires":[]},{"id":"399e93b8.1efa3c","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology/'` \" />\n\n","comments":"","x":445.73806381225586,"y":269.33332538604736,"z":"7c97bedb.1d31f","wires":[]},{"id":"56e75d3b.d9027c","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n","comments":"","x":492.9973258972168,"y":235.59259128570557,"z":"7c97bedb.1d31f","wires":[]},{"id":"87471e8d.32c7a8","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":451.9934196472168,"y":305.23152446746826,"z":"7c97bedb.1d31f","wires":[[]]},{"id":"8def1fff.634bf","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":514.5187530517578,"y":466.4594917297363,"z":"7c97bedb.1d31f","wires":[["2879f807.c2d608","c9414c31.18699"]]},{"id":"b069670d.e3fd9","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.tx-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":480.0648536682129,"y":365.0172290802002,"z":"7c97bedb.1d31f","wires":[[]]},{"id":"2879f807.c2d608","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":771.8148918151855,"y":465.26725220680237,"z":"7c97bedb.1d31f","wires":[["f4855ff6.0b3b"]]},{"id":"14a648.1d9f09b9","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":792.837329864502,"y":872.432332418859,"z":"7c97bedb.1d31f","wires":[["c4ba90bf.2de4a"]]},{"id":"d473f1de.148fe8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":783.8373794555664,"y":840.9323581680655,"z":"7c97bedb.1d31f","wires":[["c4ba90bf.2de4a"]]},{"id":"a8e7182f.312998","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":787.5874176025391,"y":811.2894630432129,"z":"7c97bedb.1d31f","wires":[["4057dc1e.4aac64"]]},{"id":"c4ba90bf.2de4a","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=\"Error updating md-sal for tunnelxconn-allotted-resource\" />\n","comments":"","x":953.5874176025391,"y":841.6823820099235,"z":"7c97bedb.1d31f","wires":[]},{"id":"f4855ff6.0b3b","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":952.8148460388184,"y":465.7672016620636,"z":"7c97bedb.1d31f","wires":[["cffd4ec6.6adda","db8e227c.028b78"]]},{"id":"cffd4ec6.6adda","type":"switchNode","name":"switch tx length","xml":"<switch test='`$mdsal-ar.tunnelxconn-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1198.6720924377441,"y":500.052964925766,"z":"7c97bedb.1d31f","wires":[["5cecfc03.3b3404"]]},{"id":"5cecfc03.3b3404","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1389.6720962524414,"y":500.0529625415802,"z":"7c97bedb.1d31f","wires":[["51b6d859.ea7e28"]]},{"id":"a96ddd82.3a31d","type":"set","name":"set tx-ar from get","xml":"<set>\n<parameter name='tx-ar.' value='$mdsal-ar.tunnelxconn-allotted-resource[0].' />\n","comments":"","x":1789.5292320251465,"y":500.62438678741455,"z":"7c97bedb.1d31f","wires":[]},{"id":"51b6d859.ea7e28","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1560.5290794372559,"y":500.6244316101074,"z":"7c97bedb.1d31f","wires":[["a96ddd82.3a31d","ec99f86c.00d618","23d29c1b.fb536c"]]},{"id":"ec99f86c.00d618","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tx-ar.allotted-resource-status.rpc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1787.5294761657715,"y":568.0529508590698,"z":"7c97bedb.1d31f","wires":[]},{"id":"6c17e931.0e29b","type":"comment","name":"GET tunnelxconn-allotted-resource from mdsal","info":"","comments":"","x":539.8148155212402,"y":429.7671926021576,"z":"7c97bedb.1d31f","wires":[]},{"id":"23d29c1b.fb536c","type":"switchNode","name":"switch order-status","xml":"<switch test='`$tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1797.52925491333,"y":533.6243848800659,"z":"7c97bedb.1d31f","wires":[["5f932a1c.5e9fdc","72c9269a.8f042"]]},{"id":"5f932a1c.5e9fdc","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2009.1292114257812,"y":494.6243848800659,"z":"7c97bedb.1d31f","wires":[["44c6766b.392c3"]]},{"id":"72c9269a.8f042","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2034.8435859680176,"y":530.052975654602,"z":"7c97bedb.1d31f","wires":[["44c6766b.392c3"]]},{"id":"db8e227c.028b78","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-tx-ar' value='$mdsal-ar.' />\n","comments":"","x":1278.3864250183105,"y":465.76729369163513,"z":"7c97bedb.1d31f","wires":[]},{"id":"547d4cb2.bc5df4","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":450.9576606750488,"y":334.6243562698364,"z":"7c97bedb.1d31f","wires":[]},{"id":"4057dc1e.4aac64","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":929.2433853149414,"y":807.481632232666,"z":"7c97bedb.1d31f","wires":[[]]},{"id":"c9414c31.18699","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":771.5766868591309,"y":501.4814250469208,"z":"7c97bedb.1d31f","wires":[["98283d92.bd116"]]},{"id":"98283d92.bd116","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":951.5766372680664,"y":502.1479756832123,"z":"7c97bedb.1d31f","wires":[[]]},{"id":"44c6766b.392c3","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2223.5997276306152,"y":496.0000190734863,"z":"7c97bedb.1d31f","wires":[[]]},{"id":"763bc49e.756a84","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":516.0000610351562,"y":824.0000267028809,"z":"7c97bedb.1d31f","wires":[["a8e7182f.312998","d473f1de.148fe8","14a648.1d9f09b9"]]}] +[{"id":"d0df0900.4fcd5","type":"dgstart","name":"DGSTART","outputs":1,"x":133,"y":56,"z":"7c97bedb.1d31f","wires":[["c6ff669a.26cce"]]},{"id":"c6ff669a.26cce","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":229.23807907104492,"y":116.95239067077637,"z":"7c97bedb.1d31f","wires":[["a36cb8ff.96247"]]},{"id":"a36cb8ff.96247","type":"method","name":"tunnelxconn-topology-operation-unassign","xml":"<method rpc='tunnelxconn-topology-operation-unassign' mode='sync'>\n","comments":"","outputs":1,"x":273.15489196777344,"y":156.190447807312,"z":"7c97bedb.1d31f","wires":[["80d4d61f.2e5f5"]]},{"id":"80d4d61f.2e5f5","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":183.47619247436523,"y":295.5237879753113,"z":"7c97bedb.1d31f","wires":[["f43956d6.a61ab","78019473.89211c","56e75d3b.d9027c","399e93b8.1efa3c","87471e8d.32c7a8","b069670d.e3fd9","8def1fff.634bf","763bc49e.756a84"]]},{"id":"78019473.89211c","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":450.0001106262207,"y":965.2145080566406,"z":"7c97bedb.1d31f","wires":[]},{"id":"f43956d6.a61ab","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n","comments":"","x":478.75402450561523,"y":929.3370542526245,"z":"7c97bedb.1d31f","wires":[]},{"id":"399e93b8.1efa3c","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology?content=config'` \" />\n\n","comments":"","x":445.73806381225586,"y":269.33332538604736,"z":"7c97bedb.1d31f","wires":[]},{"id":"56e75d3b.d9027c","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n","comments":"","x":492.9973258972168,"y":235.59259128570557,"z":"7c97bedb.1d31f","wires":[]},{"id":"87471e8d.32c7a8","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":451.9934196472168,"y":305.23152446746826,"z":"7c97bedb.1d31f","wires":[[]]},{"id":"8def1fff.634bf","type":"execute","name":"execute RestApiCallNode - Get AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":514.5187530517578,"y":466.4594917297363,"z":"7c97bedb.1d31f","wires":[["2879f807.c2d608","c9414c31.18699"]]},{"id":"b069670d.e3fd9","type":"execute","name":"generate allotted-resource url","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.tx-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n","comments":"","outputs":1,"x":480.0648536682129,"y":365.0172290802002,"z":"7c97bedb.1d31f","wires":[[]]},{"id":"2879f807.c2d608","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":771.8148918151855,"y":465.26725220680237,"z":"7c97bedb.1d31f","wires":[["f4855ff6.0b3b"]]},{"id":"14a648.1d9f09b9","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":792.837329864502,"y":872.432332418859,"z":"7c97bedb.1d31f","wires":[["c4ba90bf.2de4a"]]},{"id":"d473f1de.148fe8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":783.8373794555664,"y":840.9323581680655,"z":"7c97bedb.1d31f","wires":[["c4ba90bf.2de4a"]]},{"id":"a8e7182f.312998","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":787.5874176025391,"y":811.2894630432129,"z":"7c97bedb.1d31f","wires":[["4057dc1e.4aac64"]]},{"id":"c4ba90bf.2de4a","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=\"Error updating md-sal for tunnelxconn-allotted-resource\" />\n","comments":"","x":953.5874176025391,"y":841.6823820099235,"z":"7c97bedb.1d31f","wires":[]},{"id":"f4855ff6.0b3b","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":952.8148460388184,"y":465.7672016620636,"z":"7c97bedb.1d31f","wires":[["cffd4ec6.6adda","db8e227c.028b78"]]},{"id":"cffd4ec6.6adda","type":"switchNode","name":"switch tx length","xml":"<switch test='`$mdsal-ar.tunnelxconn-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1198.6720924377441,"y":500.052964925766,"z":"7c97bedb.1d31f","wires":[["5cecfc03.3b3404"]]},{"id":"5cecfc03.3b3404","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1389.6720962524414,"y":500.0529625415802,"z":"7c97bedb.1d31f","wires":[["51b6d859.ea7e28"]]},{"id":"a96ddd82.3a31d","type":"set","name":"set tx-ar from get","xml":"<set>\n<parameter name='tx-ar.' value='$mdsal-ar.tunnelxconn-allotted-resource[0].' />\n","comments":"","x":1789.5292320251465,"y":500.62438678741455,"z":"7c97bedb.1d31f","wires":[]},{"id":"51b6d859.ea7e28","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1560.5290794372559,"y":500.6244316101074,"z":"7c97bedb.1d31f","wires":[["a96ddd82.3a31d","ec99f86c.00d618","23d29c1b.fb536c"]]},{"id":"ec99f86c.00d618","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tx-ar.allotted-resource-status.rpc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1787.5294761657715,"y":568.0529508590698,"z":"7c97bedb.1d31f","wires":[]},{"id":"6c17e931.0e29b","type":"comment","name":"GET tunnelxconn-allotted-resource from mdsal","info":"","comments":"","x":539.8148155212402,"y":429.7671926021576,"z":"7c97bedb.1d31f","wires":[]},{"id":"23d29c1b.fb536c","type":"switchNode","name":"switch order-status","xml":"<switch test='`$tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1797.52925491333,"y":533.6243848800659,"z":"7c97bedb.1d31f","wires":[["5f932a1c.5e9fdc","72c9269a.8f042"]]},{"id":"5f932a1c.5e9fdc","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2009.1292114257812,"y":494.6243848800659,"z":"7c97bedb.1d31f","wires":[["44c6766b.392c3"]]},{"id":"72c9269a.8f042","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2034.8435859680176,"y":530.052975654602,"z":"7c97bedb.1d31f","wires":[["44c6766b.392c3"]]},{"id":"db8e227c.028b78","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-tx-ar' value='$mdsal-ar.' />\n","comments":"","x":1278.3864250183105,"y":465.76729369163513,"z":"7c97bedb.1d31f","wires":[]},{"id":"547d4cb2.bc5df4","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":450.9576606750488,"y":334.6243562698364,"z":"7c97bedb.1d31f","wires":[]},{"id":"4057dc1e.4aac64","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":929.2433853149414,"y":807.481632232666,"z":"7c97bedb.1d31f","wires":[[]]},{"id":"c9414c31.18699","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":771.5766868591309,"y":501.4814250469208,"z":"7c97bedb.1d31f","wires":[["98283d92.bd116"]]},{"id":"98283d92.bd116","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":951.5766372680664,"y":502.1479756832123,"z":"7c97bedb.1d31f","wires":[[]]},{"id":"44c6766b.392c3","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2223.5997276306152,"y":496.0000190734863,"z":"7c97bedb.1d31f","wires":[[]]},{"id":"763bc49e.756a84","type":"execute","name":"execute RestApiCallNode - PUT AR by id","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='DELETE' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n","comments":"","outputs":1,"x":516.0000610351562,"y":824.0000267028809,"z":"7c97bedb.1d31f","wires":[["a8e7182f.312998","d473f1de.148fe8","14a648.1d9f09b9"]]}] diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vf-module-topology-operation-assign-async.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vf-module-topology-operation-assign-async.json index 089e74a3..ad30d1e1 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vf-module-topology-operation-assign-async.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vf-module-topology-operation-assign-async.json @@ -1173,7 +1173,7 @@ "id": "353f71d8.b849ee",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 544.5597648620605,
"y": 4365.564140915871,
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vf-module-topology-operation-assign-sync.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vf-module-topology-operation-assign-sync.json index d10c6bea..18e03fd4 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vf-module-topology-operation-assign-sync.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vf-module-topology-operation-assign-sync.json @@ -1302,7 +1302,7 @@ "id": "32580d0f.1a87f2",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 481.80978775024414,
"y": 4272.539847970009,
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign-async.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign-async.json index 9149bac4..2d0c93c3 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign-async.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign-async.json @@ -1604,7 +1604,7 @@ "id": "f9d2efbe.08a05",
"type": "set",
"name": "set vnf-object-path",
- "xml": "<set>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 438.3334617614746,
"y": 5799.467245101929,
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign-sync.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign-sync.json index ccb31485..63907c25 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign-sync.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-assign-sync.json @@ -1719,7 +1719,7 @@ "id": "4ddaa8b9.ea6108",
"type": "set",
"name": "set vnf-object-path",
- "xml": "<set>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 453.0001678466797,
"y": 5387.133964538574,
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-changeassign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-changeassign.json index 1f27962b..143eb208 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-changeassign.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_vnf-topology-operation-changeassign.json @@ -1 +1 @@ -[{"id":"e1c194c1.6c0748","type":"dgstart","name":"DGSTART","outputs":1,"x":160,"y":109.55651497840881,"z":"a52bb8fe.adb788","wires":[["ead596a6.b90fe8"]]},{"id":"ead596a6.b90fe8","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":272.4285583496094,"y":149.79462552070618,"z":"a52bb8fe.adb788","wires":[["54440786.fc64e8"]]},{"id":"54440786.fc64e8","type":"method","name":"method vnf-topology-operation-changeassign","xml":"<method rpc='vnf-topology-operation-changeassign' mode='sync'>\n","comments":"","outputs":1,"x":268.14290618896484,"y":189.55651307106018,"z":"a52bb8fe.adb788","wires":[["83d88b47.4d48e8"]]},{"id":"a350908d.3a513","type":"comment","name":"vnf-topology-operation-changeassign","info":"","comments":"","x":554.344856262207,"y":57.1428587436676,"z":"a52bb8fe.adb788","wires":[]},{"id":"d4c5e8f.85d7e18","type":"switchNode","name":"switch request-action","xml":"<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":559.2381134033203,"y":291.2708065509796,"z":"a52bb8fe.adb788","wires":[["1d618262.2b7c0e","a1afa6db.9a8228"]]},{"id":"1d618262.2b7c0e","type":"outcome","name":"CreateVnfInstance","xml":"<outcome value='CreateVnfInstance'>\n","comments":"","outputs":1,"x":783.3809280395508,"y":265.5565149784088,"z":"a52bb8fe.adb788","wires":[["933303e3.faabc"]]},{"id":"a1afa6db.9a8228","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":746.3809509277344,"y":309.60415387153625,"z":"a52bb8fe.adb788","wires":[["43d5251e.0786cc"]]},{"id":"933303e3.faabc","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":974.9523849487305,"y":265.5565502643585,"z":"a52bb8fe.adb788","wires":[[]]},{"id":"43d5251e.0786cc","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=\"If svc-action is 'changeassign' then request-action must be 'CreateVnfInstance'\" />\n","comments":"","x":953.7618980407715,"y":309.60416531562805,"z":"a52bb8fe.adb788","wires":[]},{"id":"e362aea6.b1346","type":"switchNode","name":"switch order-status","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1255.6667022705078,"y":794.4138145446777,"z":"a52bb8fe.adb788","wires":[["74079e6b.aefc1","f88a32.e16d55d"]]},{"id":"74079e6b.aefc1","type":"other","name":"PendingDelete","xml":"<outcome value='PendingDelete'>\n","comments":"","outputs":1,"x":1457.6667594909668,"y":772.1279821395874,"z":"a52bb8fe.adb788","wires":[["66e4e92e.0e5cb8"]]},{"id":"f0d7f0c0.b9715","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=\"The requested VNF is not pending deletion\" />\n","comments":"","x":1623.8096237182617,"y":815.4613599777222,"z":"a52bb8fe.adb788","wires":[]},{"id":"262a166a.7d1fda","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":973.666748046875,"y":790.1756362915039,"z":"a52bb8fe.adb788","wires":[["f0824f71.68f53","10dfb5b0.7b060a","f92bbe0f.41a0d","1842bbb2.3f45e4","f4966ea2.08ebe","e75e31c6.759f8"]]},{"id":"f0824f71.68f53","type":"set","name":"set service-object-path","xml":"<set>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $service-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n","comments":"","x":1263.9643783569336,"y":1151.0924091339111,"z":"a52bb8fe.adb788","wires":[]},{"id":"10dfb5b0.7b060a","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":1238.2500801086426,"y":1193.9495477676392,"z":"a52bb8fe.adb788","wires":[]},{"id":"1883e45.437cc1c","type":"switchNode","name":"switch vnf_length","xml":"<switch test='`$service-data.vnfs.vnf_length`'>\n","comments":"","outputs":1,"x":545.2380523681641,"y":366.41365361213684,"z":"a52bb8fe.adb788","wires":[["bd6d0272.639e4"]]},{"id":"bd6d0272.639e4","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":731.9047317504883,"y":365.746951341629,"z":"a52bb8fe.adb788","wires":[["c208e20e.dee69"]]},{"id":"c208e20e.dee69","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"There are no VNFs in MD-SAL\" />\n","comments":"","x":913.5713577270508,"y":365.746951341629,"z":"a52bb8fe.adb788","wires":[]},{"id":"e783c444.749018","type":"for","name":"for each vnf","xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":528.3332901000977,"y":412.8898298740387,"z":"a52bb8fe.adb788","wires":[["1fa6a1eb.45f01e"]]},{"id":"1fa6a1eb.45f01e","type":"switchNode","name":"switch this vnf-id == input vnf-id","xml":"<switch test='`$service-data.vnfs.vnf[$idx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`'>\n","comments":"","outputs":1,"x":783.3333778381348,"y":412.5564978122711,"z":"a52bb8fe.adb788","wires":[["e1552725.581738"]]},{"id":"e1552725.581738","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1014.6666641235352,"y":412.55647587776184,"z":"a52bb8fe.adb788","wires":[["7d331694.1e4b48"]]},{"id":"7d331694.1e4b48","type":"set","name":"set vnf-index","xml":"<set>\n<parameter name='vnf-index' value='`$idx`' />\n","comments":"","x":1189.9998588562012,"y":412.5564978122711,"z":"a52bb8fe.adb788","wires":[]},{"id":"93ca063a.aa8398","type":"switchNode","name":"switch vnf-index","xml":"<switch test='`$vnf-index`'>\n","comments":"","outputs":1,"x":539.9999542236328,"y":458.55649971961975,"z":"a52bb8fe.adb788","wires":[["49ee296a.51dd08"]]},{"id":"49ee296a.51dd08","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":721.6665725708008,"y":457.8898298740387,"z":"a52bb8fe.adb788","wires":[["37762b01.3309d4"]]},{"id":"37762b01.3309d4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"'Could not find VNF ' + $vnf-topology-operation-input.vnf-information.vnf-id + ' in MD-SAL'\" />\n","comments":"","x":888.3332595825195,"y":457.5564558506012,"z":"a52bb8fe.adb788","wires":[]},{"id":"f92bbe0f.41a0d","type":"set","name":"copy ONAP model information","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.'\n value='`$vnf-topology-operation-input.vnf-information.onap-model-information.`' />\n","comments":"","x":1287.3213272094727,"y":1053.6786460876465,"z":"a52bb8fe.adb788","wires":[]},{"id":"1842bbb2.3f45e4","type":"set","name":"set vnf-level-oper-status to Created","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n","comments":"","x":1299.9168014526367,"y":1103.473310470581,"z":"a52bb8fe.adb788","wires":[]},{"id":"66e4e92e.0e5cb8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1607.0001220703125,"y":771.4762535095215,"z":"a52bb8fe.adb788","wires":[[]]},{"id":"f88a32.e16d55d","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1432.000156402588,"y":816.4762439727783,"z":"a52bb8fe.adb788","wires":[["f0d7f0c0.b9715"]]},{"id":"f4966ea2.08ebe","type":"get-resource","name":"get-resource VF_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_MODEL WHERE customization_uuid = $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n pfx='db.vf-model'>\n\n","comments":"","outputs":1,"x":1276.5834732055664,"y":981.0595569610596,"z":"a52bb8fe.adb788","wires":[["ed164bcc.8ffe08","4e821164.7d0e4"]]},{"id":"4d872d36.fe2664","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=\"`'No model found for VNF customization UUID ' + $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`\" />\n","comments":"","x":1629.6786613464355,"y":1006.1547298431396,"z":"a52bb8fe.adb788","wires":[]},{"id":"ed164bcc.8ffe08","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1464.0358619689941,"y":961.4403944015503,"z":"a52bb8fe.adb788","wires":[["4d7f7e60.5f93a"]]},{"id":"4e821164.7d0e4","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1472.607292175293,"y":1005.7261075973511,"z":"a52bb8fe.adb788","wires":[["4d872d36.fe2664"]]},{"id":"4d7f7e60.5f93a","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=\"Error reading VF_MODEL table\" />\n","comments":"","x":1629.0358619689941,"y":961.2499885559082,"z":"a52bb8fe.adb788","wires":[]},{"id":"e93ff26c.a95eb","type":"comment","name":"check removed with US622450","info":"","comments":"","x":1821.2858963012695,"y":782.428619146347,"z":"a52bb8fe.adb788","wires":[]},{"id":"713df0ac.79aeb","type":"call","name":"call self-serve-vnf-changeassign","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-changeassign' mode='sync' >\n","comments":"","outputs":1,"x":1036.642837524414,"y":1337.8930521011353,"z":"a52bb8fe.adb788","wires":[["8a6087f4.1886c8","f68bd7bf.4aaeb8"]]},{"id":"8a6087f4.1886c8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1262.392822265625,"y":1338.1430406570435,"z":"a52bb8fe.adb788","wires":[["6db31d59.bc5ac4"]]},{"id":"6db31d59.bc5ac4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Encountered error performing changeassign for self-serve resources with error: '+ $error-message`\" />\n","comments":"","x":1421.9642486572266,"y":1337.7859354019165,"z":"a52bb8fe.adb788","wires":[]},{"id":"83d88b47.4d48e8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":287.14286041259766,"y":412.8571436405182,"z":"a52bb8fe.adb788","wires":[["d4c5e8f.85d7e18","1883e45.437cc1c","e783c444.749018","93ca063a.aa8398","31d5e46.5d4c41c","81386862.83ff18","15268cd3.f26f53"]]},{"id":"f68bd7bf.4aaeb8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1268.8573150634766,"y":1383.4287576675415,"z":"a52bb8fe.adb788","wires":[["41ad583b.a267b8"]]},{"id":"41ad583b.a267b8","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":1437.4287300109863,"y":1383.0001993179321,"z":"a52bb8fe.adb788","wires":[]},{"id":"e75e31c6.759f8","type":"switchNode","name":"switch model-customization-id","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`'>\n","comments":"","outputs":1,"x":1291.2857284545898,"y":913.8929176330566,"z":"a52bb8fe.adb788","wires":[["76be18e5.42cbc8"]]},{"id":"76be18e5.42cbc8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1496.2857284545898,"y":913.892900466919,"z":"a52bb8fe.adb788","wires":[["8c93cdfd.d8a0a"]]},{"id":"8c93cdfd.d8a0a","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=\"vf-module-information.onap-model-information.model-customization-uuid is a required input\" />\n","comments":"","x":1647.7142944335938,"y":913.8928985595703,"z":"a52bb8fe.adb788","wires":[]},{"id":"31f3c93b.c00b06","type":"comment","name":"model-customization-uuid validation moved from validate-vnf-input DG","info":"","comments":"","x":1425.0357284545898,"y":872.8929309844971,"z":"a52bb8fe.adb788","wires":[]},{"id":"31d5e46.5d4c41c","type":"call","name":"call self-serve-vnf-forking-logic","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-forking-logic' mode='sync' >\n","comments":"","outputs":1,"x":578.5713806152344,"y":684.2857723236084,"z":"a52bb8fe.adb788","wires":[[]]},{"id":"81386862.83ff18","type":"switchNode","name":"switch ss.self-serve-flag","xml":"<switch test=\"`$ss.self-serve-flag`\">\n","comments":"","outputs":1,"x":572.7142028808594,"y":789.8572196960449,"z":"a52bb8fe.adb788","wires":[["60e43430.ed401c","1920358d.2f5cda"]]},{"id":"60e43430.ed401c","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":799.7142028808594,"y":790.2858047485352,"z":"a52bb8fe.adb788","wires":[["262a166a.7d1fda"]]},{"id":"1920358d.2f5cda","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":803.8569946289062,"y":1337.7145385742188,"z":"a52bb8fe.adb788","wires":[["713df0ac.79aeb"]]},{"id":"15268cd3.f26f53","type":"get-resource","name":"get-resource VF_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_MODEL WHERE customization_uuid = $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid'\n pfx='db.vf-model'>\n\n","comments":"","outputs":1,"x":564.1428527832031,"y":578.5714359283447,"z":"a52bb8fe.adb788","wires":[["4c8c944d.055d7c","75caadc7.5e0494"]]},{"id":"7805a43c.ee725c","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=\"`'No model found for VNF customization UUID ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid`\" />\n","comments":"","x":964.999885559082,"y":601.9999370574951,"z":"a52bb8fe.adb788","wires":[]},{"id":"4c8c944d.055d7c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":786.2142562866211,"y":557.5237483978271,"z":"a52bb8fe.adb788","wires":[["e499924e.025d2"]]},{"id":"75caadc7.5e0494","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":794.7856864929199,"y":601.8094615936279,"z":"a52bb8fe.adb788","wires":[["7805a43c.ee725c"]]},{"id":"e499924e.025d2","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=\"Error reading VF_MODEL table\" />\n","comments":"","x":964.3570861816406,"y":557.0951957702637,"z":"a52bb8fe.adb788","wires":[]},{"id":"50618ca.12b8274","type":"comment","name":"Query is needed by forking logic","info":"","comments":"","x":584.2857055664062,"y":532.8572034835815,"z":"a52bb8fe.adb788","wires":[]}]
\ No newline at end of file +[{"id":"e1c194c1.6c0748","type":"dgstart","name":"DGSTART","outputs":1,"x":160,"y":109.55651497840881,"z":"a52bb8fe.adb788","wires":[["ead596a6.b90fe8"]]},{"id":"ead596a6.b90fe8","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":272.4285583496094,"y":149.79462552070618,"z":"a52bb8fe.adb788","wires":[["54440786.fc64e8"]]},{"id":"54440786.fc64e8","type":"method","name":"method vnf-topology-operation-changeassign","xml":"<method rpc='vnf-topology-operation-changeassign' mode='sync'>\n","comments":"","outputs":1,"x":268.14290618896484,"y":189.55651307106018,"z":"a52bb8fe.adb788","wires":[["83d88b47.4d48e8"]]},{"id":"a350908d.3a513","type":"comment","name":"vnf-topology-operation-changeassign","info":"","comments":"","x":554.344856262207,"y":57.1428587436676,"z":"a52bb8fe.adb788","wires":[]},{"id":"d4c5e8f.85d7e18","type":"switchNode","name":"switch request-action","xml":"<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n","comments":"","outputs":1,"x":559.2381134033203,"y":291.2708065509796,"z":"a52bb8fe.adb788","wires":[["1d618262.2b7c0e","a1afa6db.9a8228"]]},{"id":"1d618262.2b7c0e","type":"outcome","name":"CreateVnfInstance","xml":"<outcome value='CreateVnfInstance'>\n","comments":"","outputs":1,"x":783.3809280395508,"y":265.5565149784088,"z":"a52bb8fe.adb788","wires":[["933303e3.faabc"]]},{"id":"a1afa6db.9a8228","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":746.3809509277344,"y":309.60415387153625,"z":"a52bb8fe.adb788","wires":[["43d5251e.0786cc"]]},{"id":"933303e3.faabc","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":974.9523849487305,"y":265.5565502643585,"z":"a52bb8fe.adb788","wires":[[]]},{"id":"43d5251e.0786cc","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=\"If svc-action is 'changeassign' then request-action must be 'CreateVnfInstance'\" />\n","comments":"","x":953.7618980407715,"y":309.60416531562805,"z":"a52bb8fe.adb788","wires":[]},{"id":"e362aea6.b1346","type":"switchNode","name":"switch order-status","xml":"<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1255.6667022705078,"y":794.4138145446777,"z":"a52bb8fe.adb788","wires":[["74079e6b.aefc1","f88a32.e16d55d"]]},{"id":"74079e6b.aefc1","type":"other","name":"PendingDelete","xml":"<outcome value='PendingDelete'>\n","comments":"","outputs":1,"x":1457.6667594909668,"y":772.1279821395874,"z":"a52bb8fe.adb788","wires":[["66e4e92e.0e5cb8"]]},{"id":"f0d7f0c0.b9715","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=\"The requested VNF is not pending deletion\" />\n","comments":"","x":1623.8096237182617,"y":815.4613599777222,"z":"a52bb8fe.adb788","wires":[]},{"id":"262a166a.7d1fda","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":973.666748046875,"y":790.1756362915039,"z":"a52bb8fe.adb788","wires":[["f0824f71.68f53","10dfb5b0.7b060a","f92bbe0f.41a0d","1842bbb2.3f45e4","f4966ea2.08ebe","e75e31c6.759f8"]]},{"id":"f0824f71.68f53","type":"set","name":"set service-object-path","xml":"<set>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $service-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n","comments":"","x":1263.9643783569336,"y":1151.0924091339111,"z":"a52bb8fe.adb788","wires":[]},{"id":"10dfb5b0.7b060a","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":1238.2500801086426,"y":1193.9495477676392,"z":"a52bb8fe.adb788","wires":[]},{"id":"1883e45.437cc1c","type":"switchNode","name":"switch vnf_length","xml":"<switch test='`$service-data.vnfs.vnf_length`'>\n","comments":"","outputs":1,"x":545.2380523681641,"y":366.41365361213684,"z":"a52bb8fe.adb788","wires":[["bd6d0272.639e4"]]},{"id":"bd6d0272.639e4","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":731.9047317504883,"y":365.746951341629,"z":"a52bb8fe.adb788","wires":[["c208e20e.dee69"]]},{"id":"c208e20e.dee69","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"There are no VNFs in MD-SAL\" />\n","comments":"","x":913.5713577270508,"y":365.746951341629,"z":"a52bb8fe.adb788","wires":[]},{"id":"e783c444.749018","type":"for","name":"for each vnf","xml":"<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n","comments":"","outputs":1,"x":528.3332901000977,"y":412.8898298740387,"z":"a52bb8fe.adb788","wires":[["1fa6a1eb.45f01e"]]},{"id":"1fa6a1eb.45f01e","type":"switchNode","name":"switch this vnf-id == input vnf-id","xml":"<switch test='`$service-data.vnfs.vnf[$idx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`'>\n","comments":"","outputs":1,"x":783.3333778381348,"y":412.5564978122711,"z":"a52bb8fe.adb788","wires":[["e1552725.581738"]]},{"id":"e1552725.581738","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1014.6666641235352,"y":412.55647587776184,"z":"a52bb8fe.adb788","wires":[["7d331694.1e4b48"]]},{"id":"7d331694.1e4b48","type":"set","name":"set vnf-index","xml":"<set>\n<parameter name='vnf-index' value='`$idx`' />\n","comments":"","x":1189.9998588562012,"y":412.5564978122711,"z":"a52bb8fe.adb788","wires":[]},{"id":"93ca063a.aa8398","type":"switchNode","name":"switch vnf-index","xml":"<switch test='`$vnf-index`'>\n","comments":"","outputs":1,"x":539.9999542236328,"y":458.55649971961975,"z":"a52bb8fe.adb788","wires":[["49ee296a.51dd08"]]},{"id":"49ee296a.51dd08","type":"other","name":"NULL","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":721.6665725708008,"y":457.8898298740387,"z":"a52bb8fe.adb788","wires":[["37762b01.3309d4"]]},{"id":"37762b01.3309d4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"'Could not find VNF ' + $vnf-topology-operation-input.vnf-information.vnf-id + ' in MD-SAL'\" />\n","comments":"","x":888.3332595825195,"y":457.5564558506012,"z":"a52bb8fe.adb788","wires":[]},{"id":"f92bbe0f.41a0d","type":"set","name":"copy ONAP model information","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.'\n value='`$vnf-topology-operation-input.vnf-information.onap-model-information.`' />\n","comments":"","x":1287.3213272094727,"y":1053.6786460876465,"z":"a52bb8fe.adb788","wires":[]},{"id":"1842bbb2.3f45e4","type":"set","name":"set vnf-level-oper-status to Created","xml":"<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n","comments":"","x":1299.9168014526367,"y":1103.473310470581,"z":"a52bb8fe.adb788","wires":[]},{"id":"66e4e92e.0e5cb8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1607.0001220703125,"y":771.4762535095215,"z":"a52bb8fe.adb788","wires":[[]]},{"id":"f88a32.e16d55d","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1432.000156402588,"y":816.4762439727783,"z":"a52bb8fe.adb788","wires":[["f0d7f0c0.b9715"]]},{"id":"f4966ea2.08ebe","type":"get-resource","name":"get-resource VF_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_MODEL WHERE customization_uuid = $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid'\n pfx='db.vf-model'>\n\n","comments":"","outputs":1,"x":1276.5834732055664,"y":981.0595569610596,"z":"a52bb8fe.adb788","wires":[["ed164bcc.8ffe08","4e821164.7d0e4"]]},{"id":"4d872d36.fe2664","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=\"`'No model found for VNF customization UUID ' + $vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`\" />\n","comments":"","x":1629.6786613464355,"y":1006.1547298431396,"z":"a52bb8fe.adb788","wires":[]},{"id":"ed164bcc.8ffe08","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1464.0358619689941,"y":961.4403944015503,"z":"a52bb8fe.adb788","wires":[["4d7f7e60.5f93a"]]},{"id":"4e821164.7d0e4","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1472.607292175293,"y":1005.7261075973511,"z":"a52bb8fe.adb788","wires":[["4d872d36.fe2664"]]},{"id":"4d7f7e60.5f93a","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=\"Error reading VF_MODEL table\" />\n","comments":"","x":1629.0358619689941,"y":961.2499885559082,"z":"a52bb8fe.adb788","wires":[]},{"id":"e93ff26c.a95eb","type":"comment","name":"check removed with US622450","info":"","comments":"","x":1821.2858963012695,"y":782.428619146347,"z":"a52bb8fe.adb788","wires":[]},{"id":"713df0ac.79aeb","type":"call","name":"call self-serve-vnf-changeassign","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-changeassign' mode='sync' >\n","comments":"","outputs":1,"x":1036.642837524414,"y":1337.8930521011353,"z":"a52bb8fe.adb788","wires":[["8a6087f4.1886c8","f68bd7bf.4aaeb8"]]},{"id":"8a6087f4.1886c8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1262.392822265625,"y":1338.1430406570435,"z":"a52bb8fe.adb788","wires":[["6db31d59.bc5ac4"]]},{"id":"6db31d59.bc5ac4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Encountered error performing changeassign for self-serve resources with error: '+ $error-message`\" />\n","comments":"","x":1421.9642486572266,"y":1337.7859354019165,"z":"a52bb8fe.adb788","wires":[]},{"id":"83d88b47.4d48e8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":287.14286041259766,"y":412.8571436405182,"z":"a52bb8fe.adb788","wires":[["d4c5e8f.85d7e18","1883e45.437cc1c","e783c444.749018","93ca063a.aa8398","31d5e46.5d4c41c","81386862.83ff18","15268cd3.f26f53"]]},{"id":"f68bd7bf.4aaeb8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1268.8573150634766,"y":1383.4287576675415,"z":"a52bb8fe.adb788","wires":[["41ad583b.a267b8"]]},{"id":"41ad583b.a267b8","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":1437.4287300109863,"y":1383.0001993179321,"z":"a52bb8fe.adb788","wires":[]},{"id":"e75e31c6.759f8","type":"switchNode","name":"switch model-customization-id","xml":"<switch test='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`'>\n","comments":"","outputs":1,"x":1291.2857284545898,"y":913.8929176330566,"z":"a52bb8fe.adb788","wires":[["76be18e5.42cbc8"]]},{"id":"76be18e5.42cbc8","type":"outcome","name":"NULL","xml":"<outcome value=''>","comments":"","outputs":1,"x":1496.2857284545898,"y":913.892900466919,"z":"a52bb8fe.adb788","wires":[["8c93cdfd.d8a0a"]]},{"id":"8c93cdfd.d8a0a","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=\"vf-module-information.onap-model-information.model-customization-uuid is a required input\" />\n","comments":"","x":1647.7142944335938,"y":913.8928985595703,"z":"a52bb8fe.adb788","wires":[]},{"id":"31f3c93b.c00b06","type":"comment","name":"model-customization-uuid validation moved from validate-vnf-input DG","info":"","comments":"","x":1425.0357284545898,"y":872.8929309844971,"z":"a52bb8fe.adb788","wires":[]},{"id":"31d5e46.5d4c41c","type":"call","name":"call self-serve-vnf-forking-logic","xml":"<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-forking-logic' mode='sync' >\n","comments":"","outputs":1,"x":578.5713806152344,"y":684.2857723236084,"z":"a52bb8fe.adb788","wires":[[]]},{"id":"81386862.83ff18","type":"switchNode","name":"switch ss.self-serve-flag","xml":"<switch test=\"`$ss.self-serve-flag`\">\n","comments":"","outputs":1,"x":572.7142028808594,"y":789.8572196960449,"z":"a52bb8fe.adb788","wires":[["60e43430.ed401c","1920358d.2f5cda"]]},{"id":"60e43430.ed401c","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":799.7142028808594,"y":790.2858047485352,"z":"a52bb8fe.adb788","wires":[["262a166a.7d1fda"]]},{"id":"1920358d.2f5cda","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":803.8569946289062,"y":1337.7145385742188,"z":"a52bb8fe.adb788","wires":[["713df0ac.79aeb"]]},{"id":"15268cd3.f26f53","type":"get-resource","name":"get-resource VF_MODEL","xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_MODEL WHERE customization_uuid = $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid'\n pfx='db.vf-model'>\n\n","comments":"","outputs":1,"x":564.1428527832031,"y":578.5714359283447,"z":"a52bb8fe.adb788","wires":[["4c8c944d.055d7c","75caadc7.5e0494"]]},{"id":"7805a43c.ee725c","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=\"`'No model found for VNF customization UUID ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.onap-model-information.model-customization-uuid`\" />\n","comments":"","x":964.999885559082,"y":601.9999370574951,"z":"a52bb8fe.adb788","wires":[]},{"id":"4c8c944d.055d7c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":786.2142562866211,"y":557.5237483978271,"z":"a52bb8fe.adb788","wires":[["e499924e.025d2"]]},{"id":"75caadc7.5e0494","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":794.7856864929199,"y":601.8094615936279,"z":"a52bb8fe.adb788","wires":[["7805a43c.ee725c"]]},{"id":"e499924e.025d2","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=\"Error reading VF_MODEL table\" />\n","comments":"","x":964.3570861816406,"y":557.0951957702637,"z":"a52bb8fe.adb788","wires":[]},{"id":"50618ca.12b8274","type":"comment","name":"Query is needed by forking logic","info":"","comments":"","x":584.2857055664062,"y":532.8572034835815,"z":"a52bb8fe.adb788","wires":[]}]
\ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-activate.json index 7d5d288b..12d4cdd6 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-activate.json @@ -1280,7 +1280,7 @@ "id": "973f9e55.898bc", "type": "execute", "name": "execute RestApiCallNode Create Sotn connectivity Service", - "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-api-ConnectivityService.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/operations/ZTE-API-ConnectivityService:create-connectivity-service'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />", + "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sotn-api-ConnectivityService.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/rests/operations/ZTE-API-ConnectivityService:create-connectivity-service'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"patch\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />", "comments": "", "outputs": 1, "x": 2633.662841796875, diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-delete.json index 4430f5e3..e729499f 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_wan-connection-topology-operation-delete.json @@ -264,7 +264,7 @@ "id": "5e6ceda3.d49424", "type": "set", "name": "set networkId and network-object-path", - "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />", + "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'` \" />", "comments": "", "x": 1157.8222579956055, "y": 678.5394926071167, diff --git a/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-F1.json b/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-F1.json index 643abf34..4b3027fc 100644 --- a/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-F1.json +++ b/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-F1.json @@ -1017,7 +1017,7 @@ "id": "6447d455.3d2644",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='coupling-flag' value='`$srcTtpdstTtpPair`' />\n\n<!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='ebs' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='coupling-flag' value='`$srcTtpdstTtpPair`' />\n\n<!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='ebs' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 1952.566665649414,
@@ -2451,7 +2451,7 @@ "id": "9669f040.b74ba",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='coupling-flag' value='`$srcTtpdstTtpPair`' />\n\n<!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='ebs' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$tmp.access-provider-id`' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='coupling-flag' value='`$srcTtpdstTtpPair`' />\n\n<!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='ebs' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 1855.2333526611328,
diff --git a/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-create-clean.json b/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-create-clean.json index f834a973..a3e42082 100644 --- a/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-create-clean.json +++ b/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-create-clean.json @@ -3343,7 +3343,7 @@ "id": "13be4810.27374",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' -->\n<!-- key='connectivity.connectivity-id = $tmp.ROOT.uni-p-interface-long'>-->\n<!--<parameter name='connectivity-id' value='`$tmp.ROOT.uni-p-interface-long`' />-->\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n<parameter name='color-aware' value='`$tmp.ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='root' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' -->\n<!-- key='connectivity.connectivity-id = $tmp.ROOT.uni-p-interface-long'>-->\n<!--<parameter name='connectivity-id' value='`$tmp.ROOT.uni-p-interface-long`' />-->\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n<parameter name='color-aware' value='`$tmp.ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='root' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 3887.566665649414,
@@ -3407,7 +3407,7 @@ "id": "ed9405a6.bcc818",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-middle-man-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-middle-man-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<!--The followings are not needed for the middle-man-connectivity-->\n<!--<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />-->\n<!--<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />-->\n<!--<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />-->\n<!--<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />-->\n<!--<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />-->\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n<parameter name='color-aware' value='`$tmp.ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='mdsc' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-middle-man-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-middle-man-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<!--The followings are not needed for the middle-man-connectivity-->\n<!--<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />-->\n<!--<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />-->\n<!--<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />-->\n<!--<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />-->\n<!--<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />-->\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n<parameter name='color-aware' value='`$tmp.ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='mdsc' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 3899.566665649414,
@@ -3793,7 +3793,7 @@ "id": "cac051ff.1079b",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n<parameter name='vpn-type' value='leaf' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n<parameter name='vpn-type' value='leaf' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 3891.566665649414,
@@ -3932,7 +3932,7 @@ "id": "10271018.94b4f8",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$middle-man-conn.etht-svc-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n<parameter name='vpn-type' value='leaf' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$middle-man-conn.etht-svc-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n<parameter name='vpn-type' value='leaf' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 5176.566665649414,
@@ -7101,7 +7101,7 @@ "id": "94a4f684.655798",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainC-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainC-uuid`' />\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' -->\n<!-- key='connectivity.connectivity-id = $tmp.ROOT.uni-p-interface-long'>-->\n<!--<parameter name='connectivity-id' value='`$tmp.ROOT.uni-p-interface-long`' />-->\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-C.logical-interface-id`' />\n<parameter name='color-aware' value='`$tmp.SECONDARY-ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='secondary-root' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainC-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainC-uuid`' />\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' -->\n<!-- key='connectivity.connectivity-id = $tmp.ROOT.uni-p-interface-long'>-->\n<!--<parameter name='connectivity-id' value='`$tmp.ROOT.uni-p-interface-long`' />-->\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-C.logical-interface-id`' />\n<parameter name='color-aware' value='`$tmp.SECONDARY-ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='secondary-root' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 4949.566665649414,
diff --git a/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.json b/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.json index 7f05d90e..63395963 100644 --- a/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.json +++ b/platform-logic/generic-resource-api/src/main/json/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.json @@ -3341,7 +3341,7 @@ "id": "36824bf8.d68ef4",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' -->\n<!-- key='connectivity.connectivity-id = $tmp.ROOT.uni-p-interface-long'>-->\n<!--<parameter name='connectivity-id' value='`$tmp.ROOT.uni-p-interface-long`' />-->\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n<parameter name='color-aware' value='`$tmp.ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='root' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' -->\n<!-- key='connectivity.connectivity-id = $tmp.ROOT.uni-p-interface-long'>-->\n<!--<parameter name='connectivity-id' value='`$tmp.ROOT.uni-p-interface-long`' />-->\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n<parameter name='color-aware' value='`$tmp.ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='root' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 6471.566665649414,
@@ -3405,7 +3405,7 @@ "id": "f9d64859.5035b",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-middle-man-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-middle-man-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<!--The followings are not needed for the middle-man-connectivity-->\n<!--<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />-->\n<!--<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />-->\n<!--<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />-->\n<!--<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />-->\n<!--<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />-->\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n<parameter name='color-aware' value='`$tmp.ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='mdsc' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-middle-man-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-middle-man-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<!--The followings are not needed for the middle-man-connectivity-->\n<!--<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />-->\n<!--<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />-->\n<!--<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />-->\n<!--<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />-->\n<!--<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />-->\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n<parameter name='color-aware' value='`$tmp.ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='mdsc' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 6446.566665649414,
@@ -3802,7 +3802,7 @@ "id": "c49cd07d.45dca",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n<parameter name='vpn-type' value='leaf' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n<parameter name='vpn-type' value='leaf' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 6468.566665649414,
@@ -3941,7 +3941,7 @@ "id": "e479d260.5097c",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$middle-man-conn.etht-svc-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n<parameter name='vpn-type' value='leaf' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$middle-man-conn.etht-svc-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n<parameter name='vpn-type' value='leaf' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 5122.566421508789,
@@ -9372,7 +9372,7 @@ "id": "ec798eb.b40ea7",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainC-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainC-uuid`' />\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' -->\n<!-- key='connectivity.connectivity-id = $tmp.ROOT.uni-p-interface-long'>-->\n<!--<parameter name='connectivity-id' value='`$tmp.ROOT.uni-p-interface-long`' />-->\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-C.logical-interface-id`' />\n<parameter name='color-aware' value='`$tmp.SECONDARY-ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='secondary-root' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainC-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainC-uuid`' />\n<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' -->\n<!-- key='connectivity.connectivity-id = $tmp.ROOT.uni-p-interface-long'>-->\n<!--<parameter name='connectivity-id' value='`$tmp.ROOT.uni-p-interface-long`' />-->\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainC[$param-prefix-domainC_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-C.logical-interface-id`' />\n<parameter name='color-aware' value='`$tmp.SECONDARY-ROOT.uni-p-interface-long`' />\n<parameter name='vpn-type' value='secondary-root' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 6728.900161743164,
diff --git a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-create.json b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-create.json index 8da8e2cc..cc5c0343 100644 --- a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-create.json +++ b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-create.json @@ -972,7 +972,7 @@ "id": "aacd8e8b.53bef8",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<parameter name='cbs' value='`$tmp.aai.network-route-A.data-owner`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<parameter name='cbs' value='`$tmp.aai.network-route-A.data-owner`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 3917.566665649414,
@@ -1121,7 +1121,7 @@ "id": "9eaa7330.d56278",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />-->\n<parameter name='cvlan' value='`$final-vlan`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<parameter name='cbs' value='`$tmp.aai.network-route-B.data-owner`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />-->\n<parameter name='cvlan' value='`$final-vlan`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<parameter name='cbs' value='`$tmp.aai.network-route-B.data-owner`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 3898.56689453125,
@@ -3204,7 +3204,7 @@ "id": "42d4345e.c60ee4",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='ebs' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='ebs' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 4659.566665649414,
diff --git a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.json b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.json index a7effbcf..f341e195 100644 --- a/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.json +++ b/platform-logic/generic-resource-api/src/main/json/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-modify.json @@ -1106,7 +1106,7 @@ "id": "f6c10bde.dea908",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 5527.566665649414,
@@ -3203,7 +3203,7 @@ "id": "6dff6f96.bdd14",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='CBS' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='EBS' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='CBS' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='EBS' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 6279.566665649414,
@@ -5616,7 +5616,7 @@ "id": "cc9240f8.8f7cd",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 5537.566665649414,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-activate.json index 3a508656..5c85656e 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-activate.json @@ -115,7 +115,7 @@ "id": "ce900383.4855d", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology?content=config'` \" />\n\n", "comments": "", "x": 684.993501663208, "y": 258.99349308013916, @@ -616,7 +616,7 @@ "id": "169bc249.b8cede", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments": "", "x": 683.5466537475586, "y": 2052.8286814689636, @@ -850,7 +850,7 @@ "id": "e2fb4f17.bce7a", "type": "execute", "name": "get parent-service-data url", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n", "comments": "", "outputs": 1, "x": 690.0039978027344, @@ -1719,7 +1719,7 @@ "id": "eed01b55.d04f18", "type": "execute", "name": "generate prop.ar-parent-service-instance-id", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/> \n <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$prop.ar-parent-service-instance-id`\"/>\n\n", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config\"/> \n <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$prop.ar-parent-service-instance-id`\"/>\n\n", "comments": "", "outputs": 1, "x": 1713.3295593261719, @@ -1935,7 +1935,7 @@ "id": "ce3038ec.f99258", "type": "execute", "name": "generate prop.ar-service-instance-id", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/> \n <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$prop.ar-service-instance-id`\"/>\n\n", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config\"/> \n <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$prop.ar-service-instance-id`\"/>\n\n", "comments": "", "outputs": 1, "x": 1888.3326683044434, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json index 8dd29ed3..e4a69511 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json @@ -162,7 +162,7 @@ "id": "da2ee563.ca49c8",
"type": "set",
"name": "set tmp.ar.self-link",
- "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
+ "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology?content=config'` \" />\n\n",
"comments": "",
"x": 593.0312042236328,
"y": 411.00009763240814,
@@ -686,7 +686,7 @@ "id": "4f85eb.0fdeca14",
"type": "set",
"name": "set output to api handler",
- "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
+ "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n",
"comments": "",
"x": 615.2993927001953,
"y": 1708.359200835228,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-deactivate.json index c8e24f55..197b95c4 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-deactivate.json @@ -116,7 +116,7 @@ "id": "45a84e1e.bdf7b", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/?content=config` \" />\n\n", "comments": "", "x": 653.9934978485107, "y": 240.99349164962769, @@ -628,7 +628,7 @@ "id": "57a853e.4687fac", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments": "", "x": 766.5461902618408, "y": 2212.827687740326, @@ -845,7 +845,7 @@ "id": "500ce0c3.5b4ed", "type": "execute", "name": "get parent-service-data tmp.ar-url-psd", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n", "comments": "", "outputs": 1, "x": 681.0001964569092, @@ -1878,7 +1878,7 @@ "id": "4d147f57.4dac2", "type": "execute", "name": "generate prop.ar-parent-service-instance-id", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/> \n <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$prop.ar-parent-service-instance-id`\"/>\n\n", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config\"/> \n <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$prop.ar-parent-service-instance-id`\"/>\n\n", "comments": "", "outputs": 1, "x": 2139.5001430511475, @@ -1903,7 +1903,7 @@ "id": "b140ba23.8a1858", "type": "execute", "name": "generate prop.ar-service-instance-id", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/> \n <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$prop.ar-service-instance-id`\"/>\n\n", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config\"/> \n <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$prop.ar-service-instance-id`\"/>\n\n", "comments": "", "outputs": 1, "x": 2197.8330211639404, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json index 074dee31..c0a9f719 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json @@ -104,7 +104,7 @@ "id": "ca7d47f1.45f358", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology?content=config'` \" />\n\n", "comments": "", "x": 697.9934997558594, "y": 276.99349212646484, @@ -376,7 +376,7 @@ "id": "3ac1cb4a.bcc3b4", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments": "", "x": 720.5461502075195, "y": 1264.8276824951172, @@ -914,7 +914,7 @@ "id": "cfc2e19e.1fcac", "type": "execute", "name": "get parent-service-data tmp.ar-url-psd", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>", "comments": "", "outputs": 1, "x": 757.3333587646484, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json index 9d8b0292..4fc9bd0e 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.json @@ -111,7 +111,7 @@ "id": "694fbbd7.3f5854",
"type": "set",
"name": "set networkId and network-object-path",
- "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` \" />",
+ "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $network-topology-operation-input.network-information.network-id + '/network-data?content=config'` \" />",
"comments": "",
"x": 800.5871276855469,
"y": 1024.3447210788727,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-create.json index b7276f20..00b80fcf 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-create.json @@ -202,7 +202,7 @@ "id": "e7358faf.a402d", "type": "set", "name": "set networkId and network-object-path", - "xml": "<set>\n<parameter name='networkId' value='`$prop.sdwan.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sdwan.network-id + '/network-data/'` \" />", + "xml": "<set>\n<parameter name='networkId' value='`$prop.sdwan.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sdwan.network-id + '/network-data?content=config'` \" />", "comments": "", "x": 801.0595626831055, "y": 331.07977294921875, @@ -454,7 +454,7 @@ "id": "d8cec38f.bc599", "type": "save", "name": "save sdwan vpn resource in AAI", - "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.sdwan-vpn-id = $prop.sdwan.network-id' >\n<parameter name='sdwan-vpn-id' value='`$prop.sdwan.network-id`' />\n<parameter name='sdwan-vpn-name' value='`$prop.name`' />\n<parameter name='topology' value='`$prop.topology`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sdwan.network-id + '/network-data/'` \" />", + "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.sdwan-vpn-id = $prop.sdwan.network-id' >\n<parameter name='sdwan-vpn-id' value='`$prop.sdwan.network-id`' />\n<parameter name='sdwan-vpn-name' value='`$prop.name`' />\n<parameter name='topology' value='`$prop.topology`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sdwan.network-id + '/network-data?content=config'` \" />", "comments": "", "outputs": 1, "x": 782.0038986206055, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-deactivate.json index b0c215aa..4a78c9ec 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-deactivate.json @@ -109,7 +109,7 @@ "id": "613a4de8.024144", "type": "set", "name": "set networkId and network-object-path", - "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` \" />", + "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $network-topology-operation-input.network-information.network-id + '/network-data?content=config'` \" />", "comments": "", "x": 786.5558738708496, "y": 849.3134832382202, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-delete.json index 8e84a93f..b434ceff 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-delete.json @@ -102,7 +102,7 @@ "id": "8d5f8731.51c938", "type": "set", "name": "set networkId and network-object-path", - "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />", + "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'` \" />", "comments": "", "x": 851.448314666748, "y": 381.4281978607178, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.json index 4e36776d..fad95dcf 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.json @@ -584,7 +584,7 @@ "id": "c8253bec.651ed8",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 612.0314788818359,
"y": 1246.2504107952118,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.json index 413069e0..48c29599 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.json @@ -278,7 +278,7 @@ "id": "115eabc8.0c7c94",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vf-id`'/> \n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $prop.vf-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vf-id`'/> \n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $prop.vf-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 778.5000324249268,
"y": 764.968834400177,
@@ -300,7 +300,7 @@ "id": "2bd76b30.e44c14",
"type": "save",
"name": "save sdwan vpn resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $prop.vf-id' >\n<parameter name='device-id' value='`$prop.vf-id`' />\n<parameter name='esn' value='`$prop.device.esn`' />\n<parameter name='device-name' value='`$prop.device.name`' />\n<parameter name='description' value='`$prop.device.description`' />\n<parameter name='vendor' value='`$prop.device.vendor`' />\n<parameter name='class' value='`$prop.device.class`' />\n<parameter name='type' value='`$prop.device.deviceModel`' />\n<parameter name='version' value='`$prop.device.version`' />\n<parameter name='system-ip' value='`$prop.device.systemIp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.vf-id + '/vf-module-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $prop.vf-id' >\n<parameter name='device-id' value='`$prop.vf-id`' />\n<parameter name='esn' value='`$prop.device.esn`' />\n<parameter name='device-name' value='`$prop.device.name`' />\n<parameter name='description' value='`$prop.device.description`' />\n<parameter name='vendor' value='`$prop.device.vendor`' />\n<parameter name='class' value='`$prop.device.class`' />\n<parameter name='type' value='`$prop.device.deviceModel`' />\n<parameter name='version' value='`$prop.device.version`' />\n<parameter name='system-ip' value='`$prop.device.systemIp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module=' + $prop.vf-id + '/vf-module-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 1220.500051498413,
@@ -732,7 +732,7 @@ "id": "f6984691.7e9e18",
"type": "save",
"name": "update sdwan vpn resource in AAI",
- "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $prop.vf-id' >\n<parameter name='device-id' value='`$prop.vf-id`' />\n<parameter name='esn' value='`$prop.device.esn`' />\n<parameter name='device-name' value='`$prop.device.name`' />\n<parameter name='description' value='`$prop.device.description`' />\n<parameter name='vendor' value='`$prop.device.vendor`' />\n<parameter name='class' value='`$prop.device.class`' />\n<parameter name='type' value='`$prop.device.deviceModel`' />\n<parameter name='version' value='`$prop.device.version`' />\n<parameter name='system-ip' value='`$prop.device.systemIp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.vf-id + '/vf-module-data/'` \" />\n",
+ "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $prop.vf-id' >\n<parameter name='device-id' value='`$prop.vf-id`' />\n<parameter name='esn' value='`$prop.device.esn`' />\n<parameter name='device-name' value='`$prop.device.name`' />\n<parameter name='description' value='`$prop.device.description`' />\n<parameter name='vendor' value='`$prop.device.vendor`' />\n<parameter name='class' value='`$prop.device.class`' />\n<parameter name='type' value='`$prop.device.deviceModel`' />\n<parameter name='version' value='`$prop.device.version`' />\n<parameter name='system-ip' value='`$prop.device.systemIp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module=' + $prop.vf-id + '/vf-module-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 1217.0312480926514,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-deactivate.json index 592f18ec..8bb51f1b 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-deactivate.json @@ -683,7 +683,7 @@ "id": "3a024eed.b847b2",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 599.00390625,
"y": 1135.2501430511475,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-delete.json index ad4c6efc..6d43d063 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-delete.json @@ -697,7 +697,7 @@ "id": "75517c95.ffb8a4",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 643.3333511352539,
"y": 889.6666932106018,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.json index 722e5c12..58d03edd 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.json @@ -1528,7 +1528,7 @@ "id": "ac4f31e9.8674f",
"type": "set",
"name": "set vf-module-id and vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 702.9559936523438,
"y": 2292.626251220703,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-create.json index cf08b57b..db107a4e 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-create.json @@ -137,7 +137,7 @@ "id": "94ccf971.360848",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vf-id`'/> \n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vf-id`'/> \n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 756.5104503631592,
"y": 656.0002176761627,
@@ -148,7 +148,7 @@ "id": "4d1e575f.68db78",
"type": "save",
"name": "save sdwan lan-port-config resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='lan-port-config' \n key='lan-port-config.lan-port-config-id = $prop.vf-id' >\n<parameter name=\"lan-port-config-id\" value=\"`$prop.vf-id`\" />\n<parameter name=\"device-id\" value='`$prop.lan.deviceName`' />\n<parameter name=\"port-switch\" value='`$prop.lan.portSwitch`' />\n<parameter name=\"port-type\" value='`$prop.lan.portType`' />\n<parameter name=\"port-number\" value='`$prop.lan.portnumber`' />\n<parameter name=\"ipv4-address\" value='`$prop.lan.ipAddress`' />\n<parameter name='vlan-tag' value='`$prop.lan.vlanId`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.vf-id + '/vf-module-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='lan-port-config' \n key='lan-port-config.lan-port-config-id = $prop.vf-id' >\n<parameter name=\"lan-port-config-id\" value=\"`$prop.vf-id`\" />\n<parameter name=\"device-id\" value='`$prop.lan.deviceName`' />\n<parameter name=\"port-switch\" value='`$prop.lan.portSwitch`' />\n<parameter name=\"port-type\" value='`$prop.lan.portType`' />\n<parameter name=\"port-number\" value='`$prop.lan.portnumber`' />\n<parameter name=\"ipv4-address\" value='`$prop.lan.ipAddress`' />\n<parameter name='vlan-tag' value='`$prop.lan.vlanId`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module=' + $prop.vf-id + '/vf-module-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 811.5104293823242,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-deactivate.json index f299e172..5f2a0a1d 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-deactivate.json @@ -991,7 +991,7 @@ "id": "b9a7fd1a.5768b",
"type": "set",
"name": "set vf-module-id and vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 649.3072738647461,
"y": 2301.0562238693237,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.json index 74c64fd7..1ea9e3d6 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.json @@ -666,7 +666,7 @@ "id": "fb17bb23.b22de8",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 638.329460144043,
"y": 920.6666584014893,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-activate.json index 87441280..08cd9dd4 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-activate.json @@ -1157,7 +1157,7 @@ "id": "4023f188.867be",
"type": "set",
"name": "set vf-module-id and vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 763.5078964233398,
"y": 1211.7539602518082,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-create.json index 650d4f65..e217b7e1 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-create.json @@ -473,7 +473,7 @@ "id": "5663c20e.be57ac",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.site-vf-index`' />\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $prop.site-vf-index\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.site-vf-index`' />\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $prop.site-vf-index\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 765.0104942321777,
"y": 798.0000545978546,
@@ -495,7 +495,7 @@ "id": "192f7a8f.f6f5f5",
"type": "save",
"name": "save sdwan vpn resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='site-resource' \n key='site-resource.site-resource-id = $prop.site-vf-index' >\n<parameter name='site-resource-id' value='`$prop.site-vf-index`' />\n<parameter name='site-resource-name' value='`$prop.site.name`' />\n<parameter name='description' value='`$prop.site.description`' />\n<parameter name='type' value='`$prop.site.type`' />\n<parameter name='role' value='`$prop.site.role`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.site-vf-index + '/vf-module-data/'` \" />",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='site-resource' \n key='site-resource.site-resource-id = $prop.site-vf-index' >\n<parameter name='site-resource-id' value='`$prop.site-vf-index`' />\n<parameter name='site-resource-name' value='`$prop.site.name`' />\n<parameter name='description' value='`$prop.site.description`' />\n<parameter name='type' value='`$prop.site.type`' />\n<parameter name='role' value='`$prop.site.role`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module=' + $prop.site-vf-index + '/vf-module-data?content=config'` \" />",
"comments": "",
"outputs": 1,
"x": 777.0104484558105,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-deactivate.json index 581bad70..7660b710 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-deactivate.json @@ -1020,7 +1020,7 @@ "id": "4d4441d6.c778f",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 542.1151275634766,
"y": 953.9827690124512,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-delete.json index 306983eb..944cbaed 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-delete.json @@ -664,7 +664,7 @@ "id": "47edd8f7.5e8f08",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 588.0437393188477,
"y": 862.6666946411133,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-activate.json index c1209fc0..7fffc7b3 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-activate.json @@ -501,7 +501,7 @@ "id": "83763572.db11e8",
"type": "set",
"name": "set vf-module-id and vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 696.96875,
"y": 1076.468815538101,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-create.json index 88c8553b..b89af02a 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-create.json @@ -367,7 +367,7 @@ "id": "3dff4920.e6f876",
"type": "save",
"name": "save sdwan vpn resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.sdwan-vpn-id = $prop.vpn-vf-index' >\n<parameter name='sdwan-vpn-id' value='`$prop.vpn-vf-index`' />\n<parameter name='sdwan-vpn-name' value='`$prop.name`' />\n<parameter name='topology' value='`$prop.topology`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.vpn-vf-index + '/vf-module-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.sdwan-vpn-id = $prop.vpn-vf-index' >\n<parameter name='sdwan-vpn-id' value='`$prop.vpn-vf-index`' />\n<parameter name='sdwan-vpn-name' value='`$prop.name`' />\n<parameter name='topology' value='`$prop.topology`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module=' + $prop.vpn-vf-index + '/vf-module-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 802.0104761123657,
@@ -526,7 +526,7 @@ "id": "393d128d.77829e",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vpn-vf-index`' />\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $prop.vpn-vf-index\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vpn-vf-index`' />\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $prop.vpn-vf-index\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 787.5104932785034,
"y": 720.0313081145287,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-deactivate.json index 79b6cb77..7f447b59 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-deactivate.json @@ -534,7 +534,7 @@ "id": "14e78520.2f6ebb",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 669.639274597168,
"y": 765.3856935501099,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-delete.json index a5a12664..d7b41fae 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-delete.json @@ -384,7 +384,7 @@ "id": "f03cd2a1.4117",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 857.3021049499512,
"y": 511.90447902679443,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-activate.json index d15b6f4c..53b51c33 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-activate.json @@ -2013,7 +2013,7 @@ "id": "1b602e84.4e29d1",
"type": "set",
"name": "set vf-module-id and vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 813.0351905822754,
"y": 1406.0313718048856,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-create.json index e76571f6..39a42f38 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-create.json @@ -459,7 +459,7 @@ "id": "4fc9e2ee.90febc",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.wan-port-vf-index`' />\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $prop.wan-port-vf-index\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.wan-port-vf-index`' />\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $prop.wan-port-vf-index\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 774.0104808807373,
"y": 798.0000371932983,
@@ -481,7 +481,7 @@ "id": "3699b36a.223adc",
"type": "save",
"name": "save sdwan vpn resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n key='wan-port-config.wan-port-config-id = $prop.wan-port-vf-index' >\n<parameter name=\"wan-port-config-id\" value=\"`$prop.wan-port-vf-index`\" />\n<parameter name=\"wan-port-config-name\" value=\"`$prop.wan.name`\" />\n<parameter name=\"device-id\" value=\"`$prop.wan.deviceName`\" />\n<parameter name='vlan-id' value=\"`$prop.wan.vlanId`\" />\n<parameter name=\"ip-address\" value=\"`$prop.wan.ipAddress`\" />\n<parameter name=\"provider-ip-address\" value=\"`$prop.wan.providerIpAddress`\" />\n<parameter name=\"input-bandwidth\" value=\"`$prop.wan.inputBandwidth`\" />\n<parameter name=\"output-bandwidth\" value=\"`$prop.wan.outputBandwidth`\" />\n<parameter name=\"description\" value=\"`$prop.wan.description`\" />\n<parameter name=\"port-type\" value=\"`$prop.wan.portType`\" />\n<parameter name=\"port-number\" value=\"`$prop.wan.portNumber`\" />\n<parameter name=\"transport-network-name\" value=\"`$prop.wan.transportNetworkName`\" />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.wan-port-vf-index + '/vf-module-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n key='wan-port-config.wan-port-config-id = $prop.wan-port-vf-index' >\n<parameter name=\"wan-port-config-id\" value=\"`$prop.wan-port-vf-index`\" />\n<parameter name=\"wan-port-config-name\" value=\"`$prop.wan.name`\" />\n<parameter name=\"device-id\" value=\"`$prop.wan.deviceName`\" />\n<parameter name='vlan-id' value=\"`$prop.wan.vlanId`\" />\n<parameter name=\"ip-address\" value=\"`$prop.wan.ipAddress`\" />\n<parameter name=\"provider-ip-address\" value=\"`$prop.wan.providerIpAddress`\" />\n<parameter name=\"input-bandwidth\" value=\"`$prop.wan.inputBandwidth`\" />\n<parameter name=\"output-bandwidth\" value=\"`$prop.wan.outputBandwidth`\" />\n<parameter name=\"description\" value=\"`$prop.wan.description`\" />\n<parameter name=\"port-type\" value=\"`$prop.wan.portType`\" />\n<parameter name=\"port-number\" value=\"`$prop.wan.portNumber`\" />\n<parameter name=\"transport-network-name\" value=\"`$prop.wan.transportNetworkName`\" />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module=' + $prop.wan-port-vf-index + '/vf-module-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 792.0104484558105,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-deactivate.json index ab5b2860..e3c78535 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-deactivate.json @@ -663,7 +663,7 @@ "id": "b01ccc1a.02731",
"type": "set",
"name": "set vf-module-id and vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 911.3680953979492,
"y": 913.5661716461182,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-delete.json index 6918596a..e087ccc1 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-delete.json @@ -653,7 +653,7 @@ "id": "23273105.4d68be",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 553.6240310668945,
"y": 860.4759104251862,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-create.json index 9d81ba61..043fe58c 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-create.json @@ -911,7 +911,7 @@ "id": "a4c91e95.e83ee", "type": "set", "name": "set networkId and network-object-path", - "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` \" />", + "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $network-topology-operation-input.network-information.network-id + '/network-data?content=config'` \" />", "comments": "", "x": 1707.50390625, "y": 264.00390625, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-delete.json index 4430f5e3..e729499f 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-delete.json @@ -264,7 +264,7 @@ "id": "5e6ceda3.d49424", "type": "set", "name": "set networkId and network-object-path", - "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />", + "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'` \" />", "comments": "", "x": 1157.8222579956055, "y": 678.5394926071167, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-activate.json index 1f43d75b..d4f4e55f 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-activate.json @@ -149,7 +149,7 @@ "id": "5365293b.242938", "type": "set", "name": "set vnfId and vnf-object-path", - "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />", + "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service?' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` \" />", "comments": "", "x": 651.7144165039062, "y": 777.9200525283813, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-create.json index 36a7cfdc..31a41049 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-create.json @@ -95,7 +95,7 @@ "id": "ef25e38.ee9742", "type": "save", "name": "save deviceInstance configuration in AAI", - "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $prop.vnf-id' >\n<parameter name='device-id' value='`$prop.vnf-id`' />\n<parameter name='esn' value='`$prop.device.esn`' />\n<parameter name='device-name' value='`$prop.device.name`' />\n<parameter name='description' value='`$prop.device.description`' />\n<parameter name='vendor' value='`$prop.device.vendor`' />\n<parameter name='class' value='`$prop.device.class`' />\n<parameter name='type' value='`$prop.device.deviceModel`' />\n<parameter name='version' value='`$prop.device.version`' />\n<parameter name='system-ip' value='`$prop.device.systemIp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-id + '/vnf-data/'` \" />\n", + "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $prop.vnf-id' >\n<parameter name='device-id' value='`$prop.vnf-id`' />\n<parameter name='esn' value='`$prop.device.esn`' />\n<parameter name='device-name' value='`$prop.device.name`' />\n<parameter name='description' value='`$prop.device.description`' />\n<parameter name='vendor' value='`$prop.device.vendor`' />\n<parameter name='class' value='`$prop.device.class`' />\n<parameter name='type' value='`$prop.device.deviceModel`' />\n<parameter name='version' value='`$prop.device.version`' />\n<parameter name='system-ip' value='`$prop.device.systemIp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-id + '/vnf-data?content=config'` \" />\n", "comments": "", "outputs": 1, "x": 1123.7149963378906, @@ -125,7 +125,7 @@ "id": "ed1f7a5f.52aa38", "type": "set", "name": "set vnfId and vnf-object-path", - "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-id + '/vnf-data/'` \" />", + "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-id + '/vnf-data?content=config'` \" />", "comments": "", "x": 648.7145538330078, "y": 646.5866470336914, @@ -547,7 +547,7 @@ "id": "2097a67.fbc2c5a", "type": "save", "name": "update deviceInstance configuration in AAI", - "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $prop.vnf-id' >\n<parameter name='device-id' value='`$prop.vnf-id`' />\n<parameter name='esn' value='`$prop.device.esn`' />\n<parameter name='device-name' value='`$prop.device.name`' />\n<parameter name='description' value='`$prop.device.description`' />\n<parameter name='vendor' value='`$prop.device.vendor`' />\n<parameter name='class' value='`$prop.device.class`' />\n<parameter name='type' value='`$prop.device.deviceModel`' />\n<parameter name='version' value='`$prop.device.version`' />\n<parameter name='system-ip' value='`$prop.device.systemIp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-id + '/vnf-data/'` \" />\n", + "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $prop.vnf-id' >\n<parameter name='device-id' value='`$prop.vnf-id`' />\n<parameter name='esn' value='`$prop.device.esn`' />\n<parameter name='device-name' value='`$prop.device.name`' />\n<parameter name='description' value='`$prop.device.description`' />\n<parameter name='vendor' value='`$prop.device.vendor`' />\n<parameter name='class' value='`$prop.device.class`' />\n<parameter name='type' value='`$prop.device.deviceModel`' />\n<parameter name='version' value='`$prop.device.version`' />\n<parameter name='system-ip' value='`$prop.device.systemIp`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-id + '/vnf-data?content=config'` \" />\n", "comments": "", "outputs": 1, "x": 1115.7455749511719, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-deactivate.json index 116a08f0..aec35af7 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-deactivate.json @@ -91,7 +91,7 @@ "id": "90ac7c05.1df59", "type": "set", "name": "set vnfId and vnf-object-path", - "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />", + "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` \" />", "comments": "", "x": 510.12699127197266, "y": 775.2224426269531, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-delete.json index 1a71611e..42089c4a 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-delete.json @@ -354,7 +354,7 @@ "id": "a72c9897.585208", "type": "set", "name": "set vnfId and vnf-object-path", - "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />", + "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'` \" />", "comments": "", "x": 596.8022003173828, "y": 689.3334522247314, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.json index 12e88e0a..1d33aec0 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.json @@ -444,7 +444,7 @@ "id": "ffc944ec.552788", "type": "set", "name": "set vnfId and vnf-object-path", - "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />", + "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` \" />", "comments": "", "x": 654.5462341308594, "y": 1393.213122844696, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-create.json index 5bbf0a49..5d927fd9 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-create.json @@ -90,7 +90,7 @@ "id": "40e846a4.f63368", "type": "save", "name": "save sdwan device port configuration in AAI", - "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n key='wan-port-config.wan-port-config-id = $prop.vnf-index' >\n<parameter name=\"wan-port-config-id\" value=\"`$prop.vnf-index`\" />\n<parameter name=\"wan-port-config-name\" value=\"`$prop.wan.name`\" />\n<parameter name=\"device-id\" value=\"`$prop.wan.deviceName`\" />\n<parameter name='vlan-id' value=\"`$prop.wan.vlanId`\" />\n<parameter name=\"ip-address\" value=\"`$prop.wan.ipAddress`\" />\n<parameter name=\"provider-ip-address\" value=\"`$prop.wan.providerIpAddress`\" />\n<parameter name=\"input-bandwidth\" value=\"`$prop.wan.inputBandwidth`\" />\n<parameter name=\"output-bandwidth\" value=\"`$prop.wan.outputBandwidth`\" />\n<parameter name=\"description\" value=\"`$prop.wan.description`\" />\n<parameter name=\"port-type\" value=\"`$prop.wan.portType`\" />\n<parameter name=\"port-number\" value=\"`$prop.wan.portNumber`\" />\n<parameter name=\"transport-network-name\" value=\"`$prop.wan.transportNetworkName`\" />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-index + '/vnf-data/'` \" />\n", + "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n key='wan-port-config.wan-port-config-id = $prop.vnf-index' >\n<parameter name=\"wan-port-config-id\" value=\"`$prop.vnf-index`\" />\n<parameter name=\"wan-port-config-name\" value=\"`$prop.wan.name`\" />\n<parameter name=\"device-id\" value=\"`$prop.wan.deviceName`\" />\n<parameter name='vlan-id' value=\"`$prop.wan.vlanId`\" />\n<parameter name=\"ip-address\" value=\"`$prop.wan.ipAddress`\" />\n<parameter name=\"provider-ip-address\" value=\"`$prop.wan.providerIpAddress`\" />\n<parameter name=\"input-bandwidth\" value=\"`$prop.wan.inputBandwidth`\" />\n<parameter name=\"output-bandwidth\" value=\"`$prop.wan.outputBandwidth`\" />\n<parameter name=\"description\" value=\"`$prop.wan.description`\" />\n<parameter name=\"port-type\" value=\"`$prop.wan.portType`\" />\n<parameter name=\"port-number\" value=\"`$prop.wan.portNumber`\" />\n<parameter name=\"transport-network-name\" value=\"`$prop.wan.transportNetworkName`\" />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-index + '/vnf-data?content=config'` \" />\n", "comments": "", "outputs": 1, "x": 694.0003890991211, @@ -358,7 +358,7 @@ "id": "2794c131.0510ce", "type": "set", "name": "set vnf-index and vnf-object-path", - "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-index`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-index + '/vnf-data/'` \" />", + "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-index`' />\n<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-index + '/vnf-data?content=config'` \" />", "comments": "", "x": 667.9897232055664, "y": 723.597137928009, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-deactivate.json index af6f26c4..af151b58 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-deactivate.json @@ -288,7 +288,7 @@ "id": "a0bc8740.7ee818", "type": "set", "name": "set vnfId and vnf-object-path", - "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />", + "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` \" />", "comments": "", "x": 727.8898124694824, "y": 798.8891824185848, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-delete.json index bf71f28b..6cf48348 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-delete.json @@ -354,7 +354,7 @@ "id": "79e6b6ed.e79cf8", "type": "set", "name": "set vnfId and vnf-object-path", - "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />", + "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'` \" />", "comments": "", "x": 599.8022537231445, "y": 647.3334503173828, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-wanport-vnf-topology-operation-underlay.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-wanport-vnf-topology-operation-underlay.json index b04fe607..68f7a8ba 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-wanport-vnf-topology-operation-underlay.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_sdwan-wanport-vnf-topology-operation-underlay.json @@ -1651,7 +1651,7 @@ "id": "9c710564.f70308", "type": "execute", "name": "generate connection attachment parent url ", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-parent-connection\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$prop.parent-service-instance-id`\"/>\n", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-parent-connection\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$prop.parent-service-instance-id`\"/>\n", "comments": "", "outputs": 1, "x": 1718.0010375976562, @@ -1718,7 +1718,7 @@ "id": "a06e1b02.e2dcb8", "type": "execute", "name": "generate service data url", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$prop.ar-service-instance-id`\"/>\n", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-connection\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$prop.ar-service-instance-id`\"/>\n", "comments": "", "outputs": 1, "x": 2407.504367828369, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-activate.json index e920aca2..f4a12473 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-activate.json @@ -284,7 +284,7 @@ "id": "445ef8.15e44108", "type": "set", "name": "set vnf-index and vnf-object-path", - "xml": "<set>\n<parameter name='vnfId' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />", + "xml": "<set>\n<parameter name='vnfId' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` \" />", "comments": "", "x": 632.2147827148438, "y": 483.34414625167847, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-create.json index 4d947bbf..8efcd197 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-create.json @@ -295,7 +295,7 @@ "id": "1f2f5cd6.515d03", "type": "save", "name": "save siteInstance configuration in AAI", - "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='site-resource' \n key='site-resource.site-resource-id = $prop.vnf-index' >\n<parameter name='site-resource-id' value='`$prop.vnf-index`' /> \n<parameter name='site-resource-name' value='`$prop.site.name`' />\n<parameter name='description' value='`$prop.site.description`' />\n<parameter name='type' value='`$prop.site.type`' />\n<parameter name='role' value='`$prop.site.role`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-index + '/vnf-data/'` \" />\n", + "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='site-resource' \n key='site-resource.site-resource-id = $prop.vnf-index' >\n<parameter name='site-resource-id' value='`$prop.vnf-index`' /> \n<parameter name='site-resource-name' value='`$prop.site.name`' />\n<parameter name='description' value='`$prop.site.description`' />\n<parameter name='type' value='`$prop.site.type`' />\n<parameter name='role' value='`$prop.site.role`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-index + '/vnf-data?content=config'` \" />\n", "comments": "", "outputs": 1, "x": 610.3811264038086, @@ -323,7 +323,7 @@ "id": "4e05fc36.a331a4", "type": "set", "name": "set vnf-index and vnf-object-path", - "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-index`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-index + '/vnf-data/'` \" />", + "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-index`' />\n<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-index + '/vnf-data?content=config'` \" />", "comments": "", "x": 600.7143783569336, "y": 845.5968370437622, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-deactivate.json index 739b68f0..9e1d85fb 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-deactivate.json @@ -387,7 +387,7 @@ "id": "48bce7ba.2d8768", "type": "set", "name": "set vnfId and vnf-object-path", - "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />", + "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` \" />", "comments": "", "x": 632.1271820068359, "y": 621.2224445343018, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-delete.json index 463dc7f2..a72c6db4 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-delete.json @@ -384,7 +384,7 @@ "id": "5c8ef11.4d9e21", "type": "set", "name": "set vnfId and vnf-object-path", - "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />", + "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'` \" />", "comments": "", "x": 578.9050178527832, "y": 641.3335304260254, diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.json index c85d68f8..912f6d4c 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.json @@ -95,7 +95,7 @@ "id": "240a825d.6226de",
"type": "set",
"name": "set vnf-index and vnf-object-path",
- "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />",
+ "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` \" />",
"comments": "",
"x": 673.575569152832,
"y": 524.5968036651611,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json index cd538413..d8926cb9 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.json @@ -310,7 +310,7 @@ "id": "82137890.04e3b8",
"type": "set",
"name": "set vnf-index and vnf-object-path",
- "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-id + '/vnf-data/'` \" />",
+ "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-id + '/vnf-data?content=config'` \" />",
"comments": "",
"x": 686.5754470825195,
"y": 794.5968662798405,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.json index 654c97b5..a4e3b759 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.json @@ -95,7 +95,7 @@ "id": "fb28da85.68b248",
"type": "set",
"name": "set vnf-index and vnf-object-path",
- "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />",
+ "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` \" />",
"comments": "",
"x": 624.5716247558594,
"y": 489.5968955755234,
diff --git a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-delete.json b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-delete.json index 41f88c42..7fa5c0a7 100644 --- a/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-delete.json @@ -340,7 +340,7 @@ "id": "5cec27dc.b4f998",
"type": "set",
"name": "set vnfId and vnf-object-path",
- "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",
+ "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'` \" />",
"comments": "",
"x": 674.9090194702148,
"y": 576.3336844444275,
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json index c52930d0..6f3557ee 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.json @@ -109,7 +109,7 @@ "id": "18dde1e3.9567be",
"type": "set",
"name": "set tmp.ar.self-link",
- "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
+ "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology?content=config'` \" />\n\n",
"comments": "",
"x": 537.4933776855469,
"y": 278.9934911727905,
@@ -1582,7 +1582,7 @@ "id": "8cebe888.0f36b8",
"type": "set",
"name": "set output to api handler",
- "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
+ "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n",
"comments": "",
"x": 539.0463924407959,
"y": 2039.8283519744873,
@@ -2735,7 +2735,7 @@ "id": "c7b09f9c.c261d",
"type": "execute",
"name": "get parent-service-data url",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
"comments": "",
"outputs": 1,
"x": 544.5038757324219,
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json index d9c97e61..6946695c 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json @@ -164,7 +164,7 @@ "id": "326099aa.e4b1f6", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology?content=config'` \" />\n\n", "comments": "", "x": 562.9999523162842, "y": 386.00009632110596, @@ -671,7 +671,7 @@ "id": "547adbe.09cf724", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments": "", "x": 580.2681331634521, "y": 1773.3591861724854, diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json index bccb6189..2b7baef3 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json @@ -109,7 +109,7 @@ "id": "1068510.ffabdaf",
"type": "set",
"name": "set tmp.ar.self-link",
- "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
+ "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology?content=config'` \" />\n\n",
"comments": "",
"x": 630.0247497558594,
"y": 243.99361610412598,
@@ -1392,7 +1392,7 @@ "id": "d507ebff.314fd8",
"type": "set",
"name": "set output to api handler",
- "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
+ "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n",
"comments": "",
"x": 638.5774078369141,
"y": 1598.8277835845947,
@@ -1838,7 +1838,7 @@ "id": "7bc058aa.42a598",
"type": "execute",
"name": "get parent-service-data tmp.ar-url-psd",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
"comments": "",
"outputs": 1,
"x": 657.0314483642578,
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json index 8b1fd281..02e541f4 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json @@ -104,7 +104,7 @@ "id": "a1a6aaf1.a46af8", "type": "set", "name": "set tmp.ar.self-link", - "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n", + "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'rests/data/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource='\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology?content=config'` \" />\n\n", "comments": "", "x": 635.9934997558594, "y": 227.99349212646484, @@ -365,7 +365,7 @@ "id": "b769698c.40e9c8", "type": "set", "name": "set output to api handler", - "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n", + "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n \n", "comments": "", "x": 658.5461502075195, "y": 1215.8276824951172, @@ -903,7 +903,7 @@ "id": "afce32ae.04764", "type": "execute", "name": "get parent-service-data tmp.ar-url-psd", - "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>", + "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>", "comments": "", "outputs": 1, "x": 695.3333587646484, diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.json index 0dac5d39..5460f830 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.json @@ -103,7 +103,7 @@ "id": "fba83ea2.6feb9", "type": "set", "name": "set networkId and network-object-path", - "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` \" />", + "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $network-topology-operation-input.network-information.network-id + '/network-data?content=config'` \" />", "comments": "", "x": 866.5556488037109, "y": 335.31329441070557, diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-create.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-create.json index 2a7ca5e8..4b106ede 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-create.json @@ -202,7 +202,7 @@ "id": "59d7449b.dee92c", "type": "set", "name": "set networkId and network-object-path", - "xml": "<set>\n<parameter name='networkId' value='`$prop.sotn.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />", + "xml": "<set>\n<parameter name='networkId' value='`$prop.sotn.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />", "comments": "", "x": 741.0556488037109, "y": 376.2222046852112, @@ -235,7 +235,7 @@ "id": "db1f06f2.603038", "type": "save", "name": "save SOTN connectivity resource in AAI", - "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.sotn.network-id' >\n<parameter name='connectivity-id' value='`$prop.sotn.network-id`' />\n<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='CIR' value='`$prop.sotn.cir`' />\n<parameter name='EIR' value='`$prop.sotn.eir`' />\n<parameter name='CBS' value='`$prop.sotn.cbs`' />\n<parameter name='EBS' value='`$prop.sotn.ebs`' />\n<parameter name='color-aware' value='`$prop.sotn.colorAware`' />\n<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />\n<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />\n<parameter name='access-provider-id' value='`$prop.sotn.access-provider-id`' />\n<parameter name='access-client-id' value='`$prop.sotn.access-client-id`' />\n<parameter name='access-topology-id' value='`$prop.sotn.access-topology-id`' />\n<parameter name='access-node-id' value='`$prop.sotn.access-node-id`' />\n<parameter name='access-ltp-id' value='`$prop.sotn.access-ltp-id`' />\n<parameter name='cvlan' value='`$prop.sotn.cVLAN`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />", + "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.sotn.network-id' >\n<parameter name='connectivity-id' value='`$prop.sotn.network-id`' />\n<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='CIR' value='`$prop.sotn.cir`' />\n<parameter name='EIR' value='`$prop.sotn.eir`' />\n<parameter name='CBS' value='`$prop.sotn.cbs`' />\n<parameter name='EBS' value='`$prop.sotn.ebs`' />\n<parameter name='color-aware' value='`$prop.sotn.colorAware`' />\n<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />\n<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />\n<parameter name='access-provider-id' value='`$prop.sotn.access-provider-id`' />\n<parameter name='access-client-id' value='`$prop.sotn.access-client-id`' />\n<parameter name='access-topology-id' value='`$prop.sotn.access-topology-id`' />\n<parameter name='access-node-id' value='`$prop.sotn.access-node-id`' />\n<parameter name='access-ltp-id' value='`$prop.sotn.access-ltp-id`' />\n<parameter name='cvlan' value='`$prop.sotn.cVLAN`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />", "comments": "", "outputs": 1, "x": 745.0556488037109, diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-deactivate.json index 41d183e8..a0cfa591 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-deactivate.json @@ -103,7 +103,7 @@ "id": "1101140b.a4b22c", "type": "set", "name": "set networkId and network-object-path", - "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` \" />", + "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $network-topology-operation-input.network-information.network-id + '/network-data?content=config'` \" />", "comments": "", "x": 897.0313110351562, "y": 340.9000244140625, diff --git a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.json b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.json index 2f29f7da..e20633f9 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.json @@ -106,7 +106,7 @@ "id": "bebcb7e3.f95d48", "type": "set", "name": "set networkId and network-object-path", - "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />", + "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'` \" />", "comments": "", "x": 837.448314666748, "y": 401.4281978607178, diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-activate.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-activate.json index 95961a02..bd954511 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-activate.json @@ -91,7 +91,7 @@ "id": "b6b036c1.4e053",
"type": "set",
"name": "set vnf-index and vnf-object-path",
- "xml": "<set>\n<!--<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />-->\n<!--<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />-->\n\n<parameter name='vnfId' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vf-module-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />\n",
+ "xml": "<set>\n<!--<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />-->\n<!--<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` \" />-->\n\n<parameter name='vnfId' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vf-module-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` \" />\n",
"comments": "",
"x": 1052.571662902832,
"y": 558.5968055725098,
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-create.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-create.json index 1f85f4c8..113f419d 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-create.json @@ -367,7 +367,7 @@ "id": "eaf312a9.dac698",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.vpn-vf-index'>\n<parameter name='connectivity-id' value='`$prop.vpn-vf-index`' />\n<parameter name='operational-status' value='Created' />\n\n\n<!--<parameter name='sdwan-vpn-id' value='`$prop.vpn-vf-index`' />-->\n<!--<parameter name='sdwan-vpn-name' value='`$prop.name`' />-->\n<!--<parameter name='topology' value='`$prop.topology`' />-->\n<!--<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />-->\n<!--<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.vpn-vf-index + '/vf-module-data/'` \" />-->\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.vpn-vf-index'>\n<parameter name='connectivity-id' value='`$prop.vpn-vf-index`' />\n<parameter name='operational-status' value='Created' />\n\n\n<!--<parameter name='sdwan-vpn-id' value='`$prop.vpn-vf-index`' />-->\n<!--<parameter name='sdwan-vpn-name' value='`$prop.name`' />-->\n<!--<parameter name='topology' value='`$prop.topology`' />-->\n<!--<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />-->\n<!--<parameter name='selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module=' + $prop.vpn-vf-index + '/vf-module-data?content=config'` \" />-->\n",
"comments": "",
"outputs": 1,
"x": 830.0000696182251,
@@ -512,7 +512,7 @@ "id": "14342bec.b0bb44",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vpn-vf-index`' />\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $prop.vpn-vf-index\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
+ "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vpn-vf-index`' />\n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $prop.vpn-vf-index\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n",
"comments": "",
"x": 815.5000867843628,
"y": 685.0313085913658,
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-deactivate.json index e6d58408..994220cd 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-deactivate.json @@ -95,7 +95,7 @@ "id": "6f1a46ea.30b4e8",
"type": "set",
"name": "set vnf-index and vnf-object-path",
- "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />",
+ "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` \" />",
"comments": "",
"x": 885.5716247558594,
"y": 498.5968991788104,
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-delete.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-delete.json index 385835c9..3cffcd41 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-delete.json @@ -340,7 +340,7 @@ "id": "f0919342.f5b18",
"type": "set",
"name": "set vnfId and vnf-object-path",
- "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",
+ "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'` \" />",
"comments": "",
"x": 876.9051132202148,
"y": 543.3336856365204,
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-create.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-create.json index 0a95efc3..2944f1da 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-create.json @@ -479,7 +479,7 @@ "id": "60cc5c3c.7af384",
"type": "save",
"name": "save uni resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n key='uni.id = $prop.vf-id' >\n<parameter name=\"id\" value=\"`$prop.vf-id`\" />\n<parameter name=\"tp-id\" value='`$prop.uni.tp-id`' />\n<parameter name='cVLAN' value='`$prop.uni.cVLAN`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.vf-id + '/vf-module-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='uni' \n key='uni.id = $prop.vf-id' >\n<parameter name=\"id\" value=\"`$prop.vf-id`\" />\n<parameter name=\"tp-id\" value='`$prop.uni.tp-id`' />\n<parameter name='cVLAN' value='`$prop.uni.cVLAN`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service?' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module=' + $prop.vf-id + '/vf-module-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 665.6068077087402,
@@ -504,7 +504,7 @@ "id": "eb87c476.701828",
"type": "set",
"name": "set vf-module-object-path",
- "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vf-id`'/> \n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $prop.vf-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n\n\n <!--+ $vf-module-topology-operation-input.vf-module-information.vf-module-id-->\n",
+ "xml": "<set>\n<parameter name='vf-module-id' value='`$prop.vf-id`'/> \n<parameter name='vf-module-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module='\n + $prop.vf-id\n + '/vf-module-data/vf-module-topology?content=config'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf='\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology?content=config'`\"/>\n<parameter name='service-object-path'\n value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'`\"/>\n\n\n <!--+ $vf-module-topology-operation-input.vf-module-information.vf-module-id-->\n",
"comments": "",
"x": 666.6068153381348,
"y": 706.3335154056549,
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-activate.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-activate.json index ce7f41ad..8eff953a 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-activate.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-activate.json @@ -95,7 +95,7 @@ "id": "28b09a42.4448ee",
"type": "set",
"name": "set vnf-index and vnf-object-path",
- "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />",
+ "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` \" />",
"comments": "",
"x": 787.5716018676758,
"y": 541.5968001158908,
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-create.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-create.json index f834495c..b2fb132d 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-create.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-create.json @@ -310,7 +310,7 @@ "id": "9d444bb6.e5cc7",
"type": "set",
"name": "set vnf-index and vnf-object-path",
- "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-id + '/vnf-data/'` \" />",
+ "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-id + '/vnf-data?content=config'` \" />",
"comments": "",
"x": 1290.571533203125,
"y": 636.5968902381137,
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-deactivate.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-deactivate.json index 543904d1..7e1f1e8f 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-deactivate.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-deactivate.json @@ -95,7 +95,7 @@ "id": "59f78da4.50f2fc",
"type": "set",
"name": "set vnf-index and vnf-object-path",
- "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />",
+ "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` \" />",
"comments": "",
"x": 977.5716247558594,
"y": 465.5968955755234,
diff --git a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-delete.json b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-delete.json index be1161f3..2fa842dc 100644 --- a/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-delete.json +++ b/platform-logic/generic-resource-api/src/main/json/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-delete.json @@ -340,7 +340,7 @@ "id": "26acbc94.464644",
"type": "set",
"name": "set vnfId and vnf-object-path",
- "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",
+ "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service='\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology?content=config'` \" />",
"comments": "",
"x": 998.9051132202148,
"y": 546.3336856365204,
diff --git a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.json b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.json index 9904f4df..870b646d 100644 --- a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.json +++ b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.json @@ -975,7 +975,7 @@ "id": "1c74c2ea.33d395",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 3940.566665649414,
@@ -1124,7 +1124,7 @@ "id": "359ab66.2c0144a",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 3930.566665649414,
@@ -3221,7 +3221,7 @@ "id": "401e45e3.6933bc",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='ebs' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<!--<parameter name='bandwidth-profile-name' value='`$prop.sotn.etht-svc-name`' />-->\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='cbs' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='ebs' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 4682.566665649414,
diff --git a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.json b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.json index df10744c..0fd10d01 100644 --- a/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.json +++ b/platform-logic/generic-resource-api/src/main/json/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.json @@ -1108,7 +1108,7 @@ "id": "daaed265.7759a8",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $prop.connectivity-domainB-uuid'>\n<parameter name='connectivity-id' value='`$prop.connectivity-domainB-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainB[$param-prefix-domainB_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-B.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 5627.566665649414,
@@ -3206,7 +3206,7 @@ "id": "689f50a5.dff04",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='CBS' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='EBS' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-otnidx-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-otnidx-uuid`' />\n<!--<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />-->\n<parameter name='operational-status' value='Created' />\n<!--<parameter name='access-provider-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-provider-id`' />-->\n<!--<parameter name='access-client-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-client-id`' />-->\n<!--<parameter name='access-topology-id' value='`$tmp.otninfo[$otnidx].dstPort.dst-access-topology-id`' />-->\n<!--<parameter name='access-node-id' value='`$tmp.otninfo[$otnidx].srcPort.src-access-node-id`' />-->\n<!--<parameter name='access-ltp-id' value='``' />-->\n<!--<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />-->\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='dummy' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<!--<parameter name='CBS' value='`$prop.sotn.cbs`' />-->\n<!--<parameter name='EBS' value='`$prop.sotn.ebs`' />-->\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 6379.566665649414,
@@ -5620,7 +5620,7 @@ "id": "89a7842f.afd83",
"type": "save",
"name": "save connectivity resource in AAI",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` \" />\n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity' \n key='connectivity.connectivity-id = $uuid.connectivity-domainA-uuid'>\n<parameter name='connectivity-id' value='`$uuid.connectivity-domainA-uuid`' />\n<parameter name='etht-svc-name' value='`$prop.ethernet-service-name`' />\n<parameter name='operational-status' value='Created' />\n<parameter name='access-provider-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -9]`' />\n<parameter name='access-client-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -7]`' />\n<parameter name='access-topology-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -5]`' />\n<parameter name='access-node-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -3]`' />\n<parameter name='access-ltp-id' value='`$param-prefix-domainA[$param-prefix-domainA_length -1]`' />\n<parameter name='cvlan' value='`$tmp.aai.network-route-A.logical-interface-id`' />\n\n<parameter name='bandwidth-profile-name' value='`$gfp`' />\n<parameter name='vpn-type' value='`$prop.sotn.vpnType`' />\n<parameter name='cir' value='`$gfp *1000000`' />\n<parameter name='eir' value='`$gfp *1000000`' />\n<parameter name='cbs' value='`$prop.sotn.cbs`' />\n<parameter name='ebs' value='`$prop.sotn.ebs`' />\n<!--<parameter name='color-aware' value='`$prop.sotn.colorAware`' />-->\n<!--<parameter name='coupling-flag' value='`$prop.sotn.couplingFlag`' />-->\n<!--<parameter name='etht-svc-name' value='`$prop.sotn.etht-svc-name`' />-->\n<!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->\n<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->\n<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->\n<parameter name='connectivity-selflink' value=\"`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` \" />\n",
"comments": "",
"outputs": 1,
"x": 5637.566665649414,
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-activate.xml index 658cee15..b19f074f 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-activate.xml @@ -9,9 +9,9 @@ <parameter name='tmp.ar.parent-service-instance-id' value='`$cto-api.parent-service-instance-id`' /> </set> <set> - <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/' + <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource=' + $tmp.ar.allotted-resource-id - + '/allotted-resource-data/contrail-route-topology/'` " /> + + '/allotted-resource-data/contrail-route-topology?content=config'` " /> </set> <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' > <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' /> diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-create.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-create.xml index 674e5470..8df40e58 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-create.xml @@ -320,9 +320,9 @@ <!-- <parameter name='tmp.ar.contrail-applied-service-instance-id' value='' /> -->
</set>
<set>
- <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/'
+ <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/contrail-route-topology/'` " />
+ + '/allotted-resource-data/contrail-route-topology?content=config'` " />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-deactivate.xml index c49f2ebe..96fb21e2 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-deactivate.xml @@ -9,9 +9,9 @@ <parameter name='tmp.ar.parent-service-instance-id' value='`$cto-api.parent-service-instance-id`' /> </set> <set> - <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/' + <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource=' + $tmp.ar.allotted-resource-id - + '/allotted-resource-data/contrail-route-topology/'` " /> + + '/allotted-resource-data/contrail-route-topology?content=config'` " /> </set> <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' > <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' /> diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-delete.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-delete.xml index d1ef588f..2df2f0ba 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_api-contrail-route-topology-operation-delete.xml @@ -318,9 +318,9 @@ <set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='contrail-route-object-path' value="`$tmp.ar.self-link`"/>
- <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $contrail-route-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<return status='success'>
<parameter name="ack-final-indicator" value="Y" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-activate.xml index 5e1fbe7b..0f05fe56 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-activate.xml @@ -22,9 +22,9 @@ </set></block></outcome></switch></for></block><set>
-<parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource/'
+<parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/brg-topology/'` " />
+ + '/allotted-resource-data/brg-topology?content=config'` " />
</set><execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -317,9 +317,9 @@ brg-topology-operation-input.service-information.service-instance-id </return></outcome></execute><set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='brg-object-path' value="`$tmp.ar.self-link`"/>
-<parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+<parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $tmp.service-data.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
<!--
brg-topology-operation-input.allotted-resource-information.parent-service-instance-id
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-assign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-assign.xml index 21f0efb4..a8074bda 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-assign.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-assign.xml @@ -5,9 +5,9 @@ </set><set>
-<parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'
+<parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/tunnelxconn-topology/'` " />
+ + '/allotted-resource-data/tunnelxconn-topology?content=config'` " />
</set><execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -216,9 +216,9 @@ value="`$brg-ar-assignments.`" /> </return></outcome></execute><set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='tunnelxconn-object-path' value="`$tmp.ar.self-link`"/>
-<parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+<parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $brg-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set><return status='success'>
<parameter name="ack-final-indicator" value="Y" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-create.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-create.xml index 54c99cbf..6216a12f 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-create.xml @@ -6,9 +6,9 @@ </set><set>
-<parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource/'
+<parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/brg-topology/'` " />
+ + '/allotted-resource-data/brg-topology?content=config'` " />
</set><execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -89,12 +89,12 @@ </return></outcome></execute><set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='brg-object-path' value="`$tmp.ar.self-link`"/>
-<parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+<parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $brg-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set><return status='success'>
<parameter name="ack-final-indicator" value="Y" />
<parameter name="error-code" value="200" />
<parameter name="error-message" value="`$error-message`" />
-</return></block></method></service-logic> +</return></block></method></service-logic>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-deactivate.xml index 0fda4176..39fd9577 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-deactivate.xml @@ -7,7 +7,7 @@ <parameter name='tmp.ar.brg-vnf-id' value='`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`' />
</set>
<set>
- <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource/' + $tmp.ar.allotted-resource-id + '/allotted-resource-data/brg-topology/'` " />
+ <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource=' + $tmp.ar.allotted-resource-id + '/allotted-resource-data/brg-topology?content=config'` " />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -263,7 +263,7 @@ <set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='brg-object-path' value="`$tmp.ar.self-link`"/>
- <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $brg-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology/'`"/>
+ <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $brg-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology?content=config'`"/>
</set>
<return status='success'>
<parameter name="ack-final-indicator" value="Y" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-delete.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-delete.xml index 40effacd..3ecb8d94 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-delete.xml @@ -6,9 +6,9 @@ </set><set>
-<parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource/'
+<parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/brg-topology/'` " />
+ + '/allotted-resource-data/brg-topology?content=config'` " />
</set><execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -94,12 +94,12 @@ </return></outcome></execute><set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='brg-object-path' value="`$tmp.ar.self-link`"/>
-<parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+<parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $brg-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set><return status='success'>
<parameter name="ack-final-indicator" value="Y" />
<parameter name="error-code" value="200" />
<parameter name="error-message" value="`$error-message`" />
-</return></block></method></service-logic> +</return></block></method></service-logic>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-unassign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-unassign.xml index 0a01dd9c..bc6345d6 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-unassign.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-unassign.xml @@ -6,9 +6,9 @@ </set><set>
-<parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource/'
+<parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/brg-topology/'` " />
+ + '/allotted-resource-data/brg-topology?content=config'` " />
</set><execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -70,12 +70,12 @@ </return></outcome></execute><set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='brg-object-path' value="`$tmp.ar.self-link`"/>
-<parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+<parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $brg-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set><return status='success'>
<parameter name="ack-final-indicator" value="Y" />
<parameter name="error-code" value="200" />
<parameter name="error-message" value="`$error-message`" />
-</return></block></method></service-logic> +</return></block></method></service-logic>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-activate.xml index 06756c60..5a9bf1cb 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-activate.xml @@ -8,9 +8,9 @@ <parameter name='tmp.ar.parent-service-instance-id' value='`$contrail-route-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />
</set>
<set>
- <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/'
+ <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/contrail-route-topology/'` " />
+ + '/allotted-resource-data/contrail-route-topology?content=config'` " />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -327,9 +327,9 @@ pfx="tmp.AnAI-dest"> <set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='contrail-route-object-path' value="`$tmp.ar.self-link`"/>
- <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $contrail-route-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<return status='success'>
<parameter name="ack-final-indicator" value="Y" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-assign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-assign.xml index 444b50d6..ddf35c6f 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-assign.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-assign.xml @@ -10,9 +10,9 @@ <parameter name='tmp.ar.allotted-resource-type' value='`$contrail-route-topology-operation-input.allotted-resource-information.allotted-resource-type`' /> </set> <set> - <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/' + <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource=' + $tmp.ar.allotted-resource-id - + '/allotted-resource-data/contrail-route-topology/'` " /> + + '/allotted-resource-data/contrail-route-topology?content=config'` " /> </set> <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' > <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' /> @@ -967,9 +967,9 @@ value="`$ar-assignments.`" /> <set> <parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' /> <parameter name='contrail-route-object-path' value="`$tmp.ar.self-link`"/> - <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $contrail-route-topology-operation-input.service-information.service-instance-id - + '/service-data/service-topology/'`"/> + + '/service-data/service-topology?content=config'`"/> </set> <return status='success'> <parameter name="ack-final-indicator" value="Y" /> diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-create.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-create.xml index 2f3c907b..d46bf71a 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-create.xml @@ -8,9 +8,9 @@ <parameter name='tmp.ar.parent-service-instance-id' value='`$contrail-route-topology-operation-input.allotted-resource-information.parent-service-instance-id`' /> </set> <set> - <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/' + <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource=' + $tmp.ar.allotted-resource-id - + '/allotted-resource-data/contrail-route-topology/'` " /> + + '/allotted-resource-data/contrail-route-topology?content=config'` " /> </set> <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' > <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' /> @@ -366,9 +366,9 @@ <set> <parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' /> <parameter name='contrail-route-object-path' value="`$tmp.ar.self-link`"/> - <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $contrail-route-topology-operation-input.service-information.service-instance-id - + '/service-data/service-topology/'`"/> + + '/service-data/service-topology?content=config'`"/> </set> <return status='success'> <parameter name="ack-final-indicator" value="Y" /> diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-deactivate.xml index 5fc21d2d..2619f5ed 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-deactivate.xml @@ -9,9 +9,9 @@ <parameter name='tmp.ar.sz-vnf-id' value='`$contrail-route-topology-operation-input.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-vnf-id`' /> </set> <set> - <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/' + <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource=' + $tmp.ar.allotted-resource-id - + '/allotted-resource-data/contrail-route-topology/'` " /> + + '/allotted-resource-data/contrail-route-topology/?content=config'` " /> </set> <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' > <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' /> @@ -295,9 +295,9 @@ <set> <parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' /> <parameter name='contrail-route-object-path' value="`$tmp.ar.self-link`"/> - <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $contrail-route-topology-operation-input.service-information.service-instance-id - + '/service-data/service-topology/'`"/> + + '/service-data/service-topology?content=config'`"/> </set> <return status='success'> <parameter name="ack-final-indicator" value="Y" /> diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-delete.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-delete.xml index c57b5f9a..90b1ed4f 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-delete.xml @@ -9,9 +9,9 @@ <parameter name='tmp.ar.sz-vnf-id' value='`$contrail-route-topology-operation-input.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-vnf-id`' /> </set> <set> - <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/' + <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource=' + $tmp.ar.allotted-resource-id - + '/allotted-resource-data/contrail-route-topology/'` " /> + + '/allotted-resource-data/contrail-route-topology?content=config'` " /> </set> <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' > <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' /> @@ -244,9 +244,9 @@ <set> <parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' /> <parameter name='contrail-route-object-path' value="`$tmp.ar.self-link`"/> - <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $contrail-route-topology-operation-input.service-information.service-instance-id - + '/service-data/service-topology/'`"/> + + '/service-data/service-topology?content=config'`"/> </set> <return status='success'> <parameter name="ack-final-indicator" value="Y" /> diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-unassign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-unassign.xml index e4cbfc27..19934c45 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-unassign.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_contrail-route-topology-operation-unassign.xml @@ -8,9 +8,9 @@ <parameter name='tmp.ar.parent-service-instance-id' value='`$contrail-route-topology-operation-input.allotted-resource-information.parent-service-instance-id`' /> </set> <set> - <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource/' + <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:contrail-route-allotted-resources/contrail-route-allotted-resource=' + $tmp.ar.allotted-resource-id - + '/allotted-resource-data/contrail-route-topology/'` " /> + + '/allotted-resource-data/contrail-route-topology?content=config'` " /> </set> <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' > <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' /> @@ -324,9 +324,9 @@ </switch> <set> <parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' /> - <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $contrail-route-topology-operation-input.service-information.service-instance-id - + '/service-data/service-topology/'`"/> + + '/service-data/service-topology?content=config'`"/> </set> <return status='success'> <parameter name="ack-final-indicator" value="Y" /> diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml index 411cbb38..927efbd4 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-activate.xml @@ -453,7 +453,7 @@ </set>
<set>
<parameter name="networkId" value="`$prop.dci.network-id`" />
- <parameter name="network-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.dci.network-id + '/network-data/'` " />
+ <parameter name="network-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.dci.network-id + '/network-data?content=config'` " />
</set>
</block>
</block>
@@ -464,7 +464,7 @@ <parameter name="orchestration-status" value="Created" />
<parameter name="operational-status" value="Created" />
<parameter name="model-customization-id" value="`$prop.dci.network-id`" />
- <parameter name="configuration-selflink" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.dci.network-id + '/network-data/'` " />
+ <parameter name="configuration-selflink" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.dci.network-id + '/network-data?content=config'` " />
</save>
<save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="service-instance:relationship-list" key="service-instance.service-instance-id = $service-data.service-information.service-instance-id AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type" force="true" pfx="tmp.AnAI-data">
<parameter name="relationship-list.relationship[0].related-to" value="configuration" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.xml index d70691bc..3adebf53 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.xml @@ -201,7 +201,7 @@ </switch>
<set>
<parameter name="networkId" value="`$network-topology-operation-input.network-information.network-id`" />
- <parameter name="service-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology/'` " />
+ <parameter name="service-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology?content=config'` " />
</set>
<return status="success">
<parameter name="ack-final-indicator" value="Y" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_generic-configuration-notification-assign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_generic-configuration-notification-assign.xml index 5db9776a..4eb7c266 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_generic-configuration-notification-assign.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_generic-configuration-notification-assign.xml @@ -114,10 +114,10 @@ <parameter name='service-data.provided-configurations.provided-configuration[$pc-index].configuration-sub-type'
value='`$generic-configuration-notification-input.configuration-information.configuration-sub-type`' />
<parameter name='service-data.provided-configurations.provided-configuration[$pc-index].configuration-topology-link'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $generic-configuration-notification-input.service-information.service-instance-id
- + '/service-data/provided-configurations/provided-configuration/'
- + $generic-configuration-notification-input.configuration-information.configuration-id`" />
+ + '/service-data/provided-configurations/provided-configuration='
+ + $generic-configuration-notification-input.configuration-information.configuration-id +'?content=config'`" />
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
<parameter name="source" value="`$prop.restapi.vnf-sub-interface-group`"/>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_generic-configuration-topology-operation.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_generic-configuration-topology-operation.xml index 56f0d74b..7143a064 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_generic-configuration-topology-operation.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_generic-configuration-topology-operation.xml @@ -73,7 +73,7 @@ </switch>
<set>
<parameter name='notification-url'
- value="`$prop.controller.url + '/restconf/operations/GENERIC-RESOURCE-API:generic-configuration-notification'`" />
+ value="`$prop.controller.url + '/rests/operations/GENERIC-RESOURCE-API:generic-configuration-notification'`" />
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
<parameter name="source" value="`$prop.bondingservice.server + $prop.bondingservice.uri`"/>
@@ -100,9 +100,9 @@ </execute>
<set>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $service-data.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
<parameter name='filename' value='/var/tmp/bgb-genconfig.log' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_getpathsegment-create-composite-path.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_getpathsegment-create-composite-path.xml index 76b8df45..19d6df0e 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_getpathsegment-create-composite-path.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_getpathsegment-create-composite-path.xml @@ -527,12 +527,12 @@ key="forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[$sp-index].service-path-instance-id" >
<parameter name="forwarding-path-id" value="`$forwarding-path.service-paths.service-path[$sp-index].service-path-instance-id`" />
<parameter name="forwarding-path-name" value="`$forwarding-path.service-paths.service-path[$sp-index].service-path-instance-name`" />
- <parameter name="selflink" value="`'/restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name="selflink" value="`'/rests/data/GENERIC-RESOURCE-API:services/service='
+ $output-service-instance-id
- + '/forwarding-paths/forwarding-path/'
+ + '/forwarding-paths/forwarding-path='
+ $forwarding-path.forwarding-path-id
- + '/services-paths/service-path/'
- + $forwarding-path.service-paths.service-path[$sp-index].service-path-instance-id`" />
+ + '/services-paths/service-path='
+ + $forwarding-path.service-paths.service-path[$sp-index].service-path-instance-id`+'?content=config'" />
<outcome value='failure'>
<set>
<parameter name='error-message' value="Failure writing forwarding-path to AAI" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_getpathsegment-create-simple-path.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_getpathsegment-create-simple-path.xml index 71d3c779..4da84e50 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_getpathsegment-create-simple-path.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_getpathsegment-create-simple-path.xml @@ -391,12 +391,12 @@ key="INSERT INTO SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING key="forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[0].service-path-instance-id" >
<parameter name="forwarding-path-id" value="`$forwarding-path.service-paths.service-path[0].service-path-instance-id`" />
<parameter name="forwarding-path-name" value="`$forwarding-path.service-paths.service-path[0].service-path-instance-name`" />
- <parameter name="selflink" value="`'/restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name="selflink" value="`'/rests/data/GENERIC-RESOURCE-API:services/service='
+ $tmp.service-instance-id
- + '/forwarding-paths/forwarding-path/'
+ + '/forwarding-paths/forwarding-path='
+ $forwarding-path.forwarding-path-id
- + '/services-paths/service-path/'
- + $forwarding-path.service-paths.service-path[0].service-path-instance-id`" />
+ + '/services-paths/service-path='
+ + $forwarding-path.service-paths.service-path[0].service-path-instance-id+'?content=config'`" />
<outcome value='failure'>
<set>
<parameter name='error-message' value="Failure writing forwarding-path to AAI" />
@@ -648,12 +648,12 @@ key="INSERT INTO SERVICE_INSTANCE_TO_COMPOSITE_INSTANCE_MAPPING key="forwarding-path.forwarding-path-id = $forwarding-path.service-paths.service-path[0].service-path-instance-id" >
<parameter name="forwarding-path-id" value="`$forwarding-path.service-paths.service-path[0].service-path-instance-id`" />
<parameter name="forwarding-path-name" value="`$forwarding-path.service-paths.service-path[0].service-path-instance-name`" />
- <parameter name="selflink" value="`'/restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name="selflink" value="`'/rests/data/GENERIC-RESOURCE-API:services/service='
+ $tmp.service-instance-id
- + '/forwarding-paths/forwarding-path/'
+ + '/forwarding-paths/forwarding-path='
+ $forwarding-path.forwarding-path-id
- + '/services-paths/service-path/'
- + $forwarding-path.service-paths.service-path[0].service-path-instance-id`" />
+ + '/services-paths/service-path='
+ + $forwarding-path.service-paths.service-path[0].service-path-instance-id + '?content=config'`" />
<outcome value='failure'>
<set>
<parameter name='error-message' value="Failure writing forwarding-path to AAI" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_gw-vfmodule-update.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_gw-vfmodule-update.xml index f7384186..4e1ac123 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_gw-vfmodule-update.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_gw-vfmodule-update.xml @@ -87,13 +87,13 @@ service-data.service-topology.service-topology-identifier.service-instance-id <parameter name='tmp.restapi.service.vnf.vfmodule-resource' value='`$prop.restapi.service.vnf.vfmodule-resource`' />
</set><set>
<parameter name='tmp.vf-module-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $service-data.service-topology.service-topology-identifier.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id
- + '/'`"/>
+ + '?content=config'`"/>
</set><set>
<!--
<parameter name='tmp.service.vnf.vf-module.vg-mux-tunnel-vni' value='`$input.vni`' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-activate.xml index ed5130a3..68117f8f 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-activate.xml @@ -185,11 +185,11 @@ <parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />
</set>
<set>
- <parameter name='network-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='network-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $network-topology-operation-input.service-information.service-instance-id
- + '/service-data/networks/network/'
+ + '/service-data/networks/network='
+ $networkId
- + '/network-data/network-topology/'` " />
+ + '/network-data/network-topology?content=config'` " />
</set>
<set>
<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Created' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign-automated.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign-automated.xml index 4de5c5fd..de2b4ec4 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign-automated.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign-automated.xml @@ -182,11 +182,11 @@ <parameter name='tmp.l3-network.eipam-v6-address-plan' value="`$network-model.eipam-v6-address-plan`" />
<parameter name='tmp.l3-network.eipam-v4-address-plan' value="`$network-model.eipam-v4-address-plan`" />
<parameter name='tmp.l3-network.service-id' value="`$service-data.service-information.service-id`" />
- <parameter name='tmp.l3-network.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='tmp.l3-network.self-link' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $network-topology-operation-input.service-information.service-instance-id
- + '/service-data/networks/network/'
+ + '/service-data/networks/network='
+ $tmp.l3-network.network-id
- + '/network-data/network-topology/'` " />
+ + '/network-data/network-topology?content=config'` " />
</set>
<switch test='`$network-model.is-provider-network`'>
<outcome value='Y'>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.xml index b0eb3f63..5aba9547 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign-from-preload.xml @@ -108,11 +108,11 @@ <parameter name='tmp.l3-network.eipam-v6-address-plan' value="`$network-model.eipam-v6-address-plan`" />
<parameter name='tmp.l3-network.eipam-v4-address-plan' value="`$network-model.eipam-v4-address-plan`" />
<parameter name='tmp.l3-network.service-id' value="`$service-data.service-information.service-id`" />
- <parameter name='tmp.l3-network.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='tmp.l3-network.self-link' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $service-data.service-information.service-instance-id
- + '/service-data/networks/network/'
+ + '/service-data/networks/network='
+ $tmp.l3-network.network-id
- + '/network-data/network-topology/'` " />
+ + '/network-data/network-topology?content=config'` " />
</set>
<set>
<parameter name="service-data.networks.network[$nidx].network-data.network-information.network-id" value='`$tmp.l3-network.network-id`' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign-vlantagging-instancegroup.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign-vlantagging-instancegroup.xml index 56c9f6a5..3af4dd02 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign-vlantagging-instancegroup.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-assign-vlantagging-instancegroup.xml @@ -142,11 +142,11 @@ <parameter name='tmp.l3-network.eipam-v6-address-plan' value="`$network-model.eipam-v6-address-plan`" />
<parameter name='tmp.l3-network.eipam-v4-address-plan' value="`$network-model.eipam-v4-address-plan`" />
<parameter name='tmp.l3-network.service-id' value="`$service-data.service-information.service-id`" />
- <parameter name='tmp.l3-network.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='tmp.l3-network.self-link' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $network-topology-operation-input.service-information.service-instance-id
- + '/service-data/networks/network/'
+ + '/service-data/networks/network='
+ $tmp.l3-network.network-id
- + '/network-data/network-topology/'` " />
+ + '/network-data/network-topology?content=config'` " />
</set>
<switch test='`$network-model.is-provider-network`'>
<outcome value='Y'>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-create.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-create.xml index b3e2b210..a4f0fdad 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-create.xml @@ -533,7 +533,7 @@ </set>
<set>
<parameter name="networkId" value="`$prop.l3vpn.network-id`" />
- <parameter name="network-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.l3vpn.network-id + '/network-data/'` " />
+ <parameter name="network-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.l3vpn.network-id + '/network-data?content=config'` " />
</set>
<set>
<parameter name="service-data.networks.network[$nidx].network-data.network-level-oper-status.order-status" value="Created" />
@@ -547,7 +547,7 @@ <parameter name="orchestration-status" value="Created" />
<parameter name="operational-status" value="Created" />
<parameter name="model-customization-id" value="`$prop.l3vpn.network-id`" />
- <parameter name="configuration-selflink" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.l3vpn.network-id + '/network-data/'` " />
+ <parameter name="configuration-selflink" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.l3vpn.network-id + '/network-data?content=config'` " />
</save>
<save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource="service-instance:relationship-list" key="service-instance.service-instance-id = $service-data.service-information.service-instance-id AND customer.global-customer-id = $service-data.networks.network[$nidx].network-data.service-information.global-customer-id AND service-subscription.service-type = $service-data.networks.network[$nidx].network-data.service-information.subscription-service-type" force="true" pfx="tmp.AnAI-data">
<parameter name="relationship-list.relationship[0].related-to" value="configuration" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-deactivate.xml index 54c8a750..8c7514ca 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-deactivate.xml @@ -151,11 +151,11 @@ <parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />
</set>
<set>
- <parameter name='network-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='network-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $network-topology-operation-input.service-information.service-instance-id
- + '/service-data/networks/network/'
+ + '/service-data/networks/network='
+ $networkId
- + '/network-data/network-topology/'` " />
+ + '/network-data/network-topology?content=config'` " />
</set>
<set>
<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='PendingDelete' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-delete.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-delete.xml index 06240451..77bf6fe1 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_network-topology-operation-delete.xml @@ -288,7 +288,7 @@ </switch>
<set>
<parameter name="networkId" value="`$network-topology-operation-input.network-information.network-id`" />
- <parameter name="service-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology/'` " />
+ <parameter name="service-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology?content=config'` " />
</set>
<return status="success">
<parameter name="ack-final-indicator" value="Y" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_port-mirror-topology-operation-assign-async.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_port-mirror-topology-operation-assign-async.xml index edb55570..7deffc63 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_port-mirror-topology-operation-assign-async.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_port-mirror-topology-operation-assign-async.xml @@ -1867,8 +1867,8 @@ force="true" pfx="tmp.AnAI-data">
<parameter name="configuration-name" value="`$tmp.configuration-name`" />
<parameter name="operational-status" value="out-of-service-path" />
- <parameter name="configuration-selflink" value="`'/config/GENERIC-RESOURCE-API:port-mirror-configurations/port-mirror-configuration/'
- + $port-mirror-topology-operation-input.configuration-information.configuration-id + '/configuration-data/port-mirror-configuration-topology'`" />
+ <parameter name="configuration-selflink" value="`'/rests/data/GENERIC-RESOURCE-API:port-mirror-configurations/port-mirror-configuration='
+ + $port-mirror-topology-operation-input.configuration-information.configuration-id + '/configuration-data/port-mirror-configuration-topology?content=config'`" />
<outcome value='not-found'>
<block atomic="true">
<set>
@@ -2093,7 +2093,7 @@ <parameter name='service-data.provided-configurations.provided-configuration[$tmp.provided-conf-idx].configuration-sub-type'
value='`$port-mirror-topology-operation-input.configuration-information.configuration-sub-type`' />
<parameter name='service-data.provided-configurations.provided-configuration[$tmp.provided-conf-idx].configuration-topology-link'
- value="`'restconf/config/GENERIC-RESOURCE-API:port-mirror-configurations/port-mirror-configuration/' + $tmp.configuration-id + '/configuration-data/port-mirror-configuration-topology'`" />
+ value="`'rests/data/GENERIC-RESOURCE-API:port-mirror-configurations/port-mirror-configuration=' + $tmp.configuration-id + '/configuration-data/port-mirror-configuration-topology?content=config'`" />
</set>
<set>
<parameter name='pm.configuration-data.configuration-oper-status.order-status'
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_port-mirror-topology-operation.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_port-mirror-topology-operation.xml index fb3cdb2e..814be029 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_port-mirror-topology-operation.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_port-mirror-topology-operation.xml @@ -79,10 +79,10 @@ </outcome> </switch> <set> - <parameter name='service-object-path' value="`'/config/GENERIC-RESOURCE-API:services/service/' + <parameter name='service-object-path' value="`'/rests/data/GENERIC-RESOURCE-API:services/service=' + $port-mirror-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology'`" /> - <parameter name='port-mirror-object-path' value="`'/config/GENERIC-RESOURCE-API:port-mirror-configurations/port-mirror-configuration/' - + $port-mirror-topology-operation-input.configuration-information.configuration-id + '/configuration-data/port-mirror-configuration-topology'`" /> + <parameter name='port-mirror-object-path' value="`'/rests/data/GENERIC-RESOURCE-API:port-mirror-configurations/port-mirror-configuration=' + + $port-mirror-topology-operation-input.configuration-information.configuration-id + '/configuration-data/port-mirror-configuration-topology?content=config'`" /> </set> <return status='success'></return> </block> diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-activate.xml index f49173a6..e5584e60 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-activate.xml @@ -9,9 +9,9 @@ <parameter name='tmp.ar.sz-vnf-id' value='`$security-zone-topology-operation-input.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-vnf-id`' /> </set> <set> - <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/' + <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource=' + $tmp.ar.allotted-resource-id - + '/allotted-resource-data/security-zone-topology/'` " /> + + '/allotted-resource-data/security-zone-topology?content=config'` " /> </set> <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' > <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' /> @@ -136,9 +136,9 @@ <set> <parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' /> <parameter name='security-zone-object-path' value="`$tmp.ar.self-link`"/> - <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $security-zone-topology-operation-input.service-information.service-instance-id - + '/service-data/service-topology/'`"/> + + '/service-data/service-topology?content=config'`"/> </set> <return status='success'> <parameter name="ack-final-indicator" value="Y" /> diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-assign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-assign.xml index cb8450bf..14252ade 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-assign.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-assign.xml @@ -9,9 +9,9 @@ <parameter name='tmp.ar.sz-vnf-id' value='`$security-zone-topology-operation-input.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-vnf-id`' /> </set> <set> - <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/' + <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource=' + $tmp.ar.allotted-resource-id - + '/allotted-resource-data/security-zone-topology/'` " /> + + '/allotted-resource-data/security-zone-topology?content=config'` " /> </set> <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' > <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' /> @@ -334,9 +334,9 @@ value="`$sz-ar-assignments.`" /> <set> <parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' /> <parameter name='security-zone-object-path' value="`$tmp.ar.self-link`"/> - <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $security-zone-topology-operation-input.service-information.service-instance-id - + '/service-data/service-topology/'`"/> + + '/service-data/service-topology?content=config'`"/> </set> <return status='success'> <parameter name="ack-final-indicator" value="Y" /> diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-create.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-create.xml index a234d0d8..a5a05012 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-create.xml @@ -9,9 +9,9 @@ <parameter name='tmp.ar.sz-vnf-id' value='`$security-zone-topology-operation-input.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-vnf-id`' /> </set> <set> - <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/' + <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource=' + $tmp.ar.allotted-resource-id - + '/allotted-resource-data/security-zone-topology/'` " /> + + '/allotted-resource-data/security-zone-topology?content=config'` " /> </set> <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' > <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' /> @@ -113,9 +113,9 @@ <set> <parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' /> <parameter name='security-zone-object-path' value="`$tmp.ar.self-link`"/> - <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $security-zone-topology-operation-input.service-information.service-instance-id - + '/service-data/service-topology/'`"/> + + '/service-data/service-topology?content=config'`"/> </set> <return status='success'> <parameter name="ack-final-indicator" value="Y" /> diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-deactivate.xml index 14ecf296..1f9bd417 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-deactivate.xml @@ -9,9 +9,9 @@ <parameter name='tmp.ar.sz-vnf-id' value='`$security-zone-topology-operation-input.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-vnf-id`' /> </set> <set> - <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/' + <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource=' + $tmp.ar.allotted-resource-id - + '/allotted-resource-data/security-zone-topology/'` " /> + + '/allotted-resource-data/security-zone-topology?content=config'` " /> </set> <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' > <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' /> @@ -136,9 +136,9 @@ <set> <parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' /> <parameter name='security-zone-object-path' value="`$tmp.ar.self-link`"/> - <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $security-zone-topology-operation-input.service-information.service-instance-id - + '/service-data/service-topology/'`"/> + + '/service-data/service-topology?content=config'`"/> </set> <return status='success'> <parameter name="ack-final-indicator" value="Y" /> diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-delete.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-delete.xml index acad449d..f3153fb8 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-delete.xml @@ -9,9 +9,9 @@ <parameter name='tmp.ar.sz-vnf-id' value='`$security-zone-topology-operation-input.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-vnf-id`' /> </set> <set> - <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/' + <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource=' + $tmp.ar.allotted-resource-id - + '/allotted-resource-data/security-zone-topology/'` " /> + + '/allotted-resource-data/security-zone-topology?content=config'` " /> </set> <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' > <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' /> @@ -116,9 +116,9 @@ <set> <parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' /> <parameter name='security-zone-object-path' value="`$tmp.ar.self-link`"/> - <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $security-zone-topology-operation-input.service-information.service-instance-id - + '/service-data/service-topology/'`"/> + + '/service-data/service-topology?content=config'`"/> </set> <return status='success'> <parameter name="ack-final-indicator" value="Y" /> diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-unassign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-unassign.xml index 0f11b39c..7cb23e65 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-unassign.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_security-zone-topology-operation-unassign.xml @@ -9,9 +9,9 @@ <parameter name='tmp.ar.sz-vnf-id' value='`$security-zone-topology-operation-input.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-vnf-id`' /> </set> <set> - <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/' + <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource=' + $tmp.ar.allotted-resource-id - + '/allotted-resource-data/security-zone-topology/'` " /> + + '/allotted-resource-data/security-zone-topology?content=config'` " /> </set> <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' > <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' /> @@ -91,9 +91,9 @@ <set> <parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' /> <parameter name='security-zone-object-path' value="`$tmp.ar.self-link`"/> - <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $security-zone-topology-operation-input.service-information.service-instance-id - + '/service-data/service-topology/'`"/> + + '/service-data/service-topology?content=config'`"/> </set> <return status='success'> <parameter name="ack-final-indicator" value="Y" /> diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-aai-pnf-put.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-aai-pnf-put.xml index 6631d89e..3a21c341 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-aai-pnf-put.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-aai-pnf-put.xml @@ -92,11 +92,11 @@ </get-resource>
<set>
<parameter name="ss.selflink"
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' +
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service=' +
$service-data.pnfs.pnf[$pnf-index].pnf-data.service-information.service-instance-id +
- '/service-data/pnfs/pnf/' +
+ '/service-data/pnfs/pnf=' +
$ss.param.pnf-id +
- '/pnf-data/pnf-topology/'`" />
+ '/pnf-data/pnf-topology?content=config'`" />
</set>
<update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="pnf"
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-aai-vf-module-put.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-aai-vf-module-put.xml index c64485bc..ebe5693d 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-aai-vf-module-put.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-aai-vf-module-put.xml @@ -1305,13 +1305,13 @@ </outcome>
</get-resource>
<set>
- <parameter name='ss.selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' +
+ <parameter name='ss.selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' +
$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.service-information.service-instance-id +
-'/service-data/vnfs/vnf/' +
+'/service-data/vnfs/vnf=' +
$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vnf-information.vnf-id +
-'/vnf-data/vf-modules/vf-module/' +
+'/vnf-data/vf-modules/vf-module=' +
$ss.param.vf-module-id +
-'/vf-module-data/vf-module-topology/'`" />
+'/vf-module-data/vf-module-topology?content=config'`" />
</set>
<update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="vf-module"
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-aai-vnf-put.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-aai-vnf-put.xml index 877c272d..35604e01 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-aai-vnf-put.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_self-serve-aai-vnf-put.xml @@ -98,11 +98,11 @@ </get-resource>
<set>
<parameter name="ss.selflink"
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' +
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service=' +
$service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.service-instance-id +
- '/service-data/vnfs/vnf/' +
+ '/service-data/vnfs/vnf=' +
$ss.param.vnf-id +
- '/vnf-data/vnf-topology/'`" />
+ '/vnf-data/vnf-topology?content=config'`" />
</set>
<update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="generic-vnf"
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_service-topology-operation-assign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_service-topology-operation-assign.xml index c9300bd1..178dc0d8 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_service-topology-operation-assign.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_service-topology-operation-assign.xml @@ -142,9 +142,9 @@ </switch>
<set>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $service-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="service-instance"
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_service-topology-operation-changeassign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_service-topology-operation-changeassign.xml index c018b1ab..6d083858 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_service-topology-operation-changeassign.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_service-topology-operation-changeassign.xml @@ -53,9 +53,9 @@ </set>
<set>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $service-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<return status='success'></return>
</block>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-activate.xml index 4d75a2fb..36a3c8de 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-activate.xml @@ -6,9 +6,9 @@ </set><set>
-<parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'
+<parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/tunnelxconn-topology/'` " />
+ + '/allotted-resource-data/tunnelxconn-topology?content=config'` " />
</set><execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -122,9 +122,9 @@ $tunnelxconn-topology-operation-input.service-information.subscription-service-t </return></outcome></execute><set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='tunnelxconn-object-path' value="`$tmp.ar.self-link`"/>
-<parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+<parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $tunnelxconn-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set><return status='success'>
<parameter name="ack-final-indicator" value="Y" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-assign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-assign.xml index 58f73f89..639857e6 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-assign.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-assign.xml @@ -6,9 +6,9 @@ </set><set>
-<parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'
+<parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/tunnelxconn-topology/'` " />
+ + '/allotted-resource-data/tunnelxconn-topology?content=config'` " />
</set><execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -255,9 +255,9 @@ value="`$tx-ar-assignments.`" /> </return></outcome></execute><set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='tunnelxconn-object-path' value="`$tmp.ar.self-link`"/>
-<parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+<parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $tunnelxconn-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set><return status='success'>
<parameter name="ack-final-indicator" value="Y" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-create.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-create.xml index 8071065a..ad53d8ea 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-create.xml @@ -6,7 +6,7 @@ <parameter name='tmp.ar.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />
</set>
<set>
- <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/' + $tmp.ar.allotted-resource-id + '/allotted-resource-data/tunnelxconn-topology/'` " />
+ <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource=' + $tmp.ar.allotted-resource-id + '/allotted-resource-data/tunnelxconn-topology?content=config'` " />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -288,7 +288,7 @@ <set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='tunnelxconn-object-path' value="`$tmp.ar.self-link`"/>
- <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $tunnelxconn-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology/'`"/>
+ <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $tunnelxconn-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology?content=config'`"/>
</set>
<return status='success'>
<parameter name="ack-final-indicator" value="Y" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-deactivate.xml index dc24e034..ecce0179 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-deactivate.xml @@ -5,9 +5,9 @@ </set><set>
-<parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'
+<parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/tunnelxconn-topology/'` " />
+ + '/allotted-resource-data/tunnelxconn-topology?content=config'` " />
</set><execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -106,12 +106,12 @@ </return></outcome></execute><set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='tunnelxconn-object-path' value="`$tmp.ar.self-link`"/>
-<parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+<parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $tunnelxconn-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set><return status='success'>
<parameter name="ack-final-indicator" value="Y" />
<parameter name="error-code" value="200" />
<parameter name="error-message" value="`$error-message`" />
-</return></block></method></service-logic> +</return></block></method></service-logic>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-delete.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-delete.xml index d70fb608..a86f7270 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-delete.xml @@ -6,7 +6,7 @@ <parameter name='tmp.ar.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />
</set>
<set>
- <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/' + $tmp.ar.allotted-resource-id + '/allotted-resource-data/tunnelxconn-topology/'` " />
+ <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource=' + $tmp.ar.allotted-resource-id + '/allotted-resource-data/tunnelxconn-topology?content=config'` " />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -256,7 +256,7 @@ <set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='tunnelxconn-object-path' value="`$tmp.ar.self-link`"/>
- <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $tunnelxconn-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology/'`"/>
+ <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $tunnelxconn-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology?content=config'`"/>
</set>
<return status='success'>
<parameter name="ack-final-indicator" value="Y" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-unassign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-unassign.xml index eaab7f29..2fe93db1 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-unassign.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-unassign.xml @@ -5,9 +5,9 @@ </set><set>
-<parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'
+<parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/tunnelxconn-topology/'` " />
+ + '/allotted-resource-data/tunnelxconn-topology?content=config'` " />
</set><execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -69,12 +69,12 @@ </return></outcome></execute><set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='tunnelxconn-object-path' value="`$tmp.ar.self-link`"/>
-<parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+<parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $tunnelxconn-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set><return status='success'>
<parameter name="ack-final-indicator" value="Y" />
<parameter name="error-code" value="200" />
<parameter name="error-message" value="`$error-message`" />
-</return></block></method></service-logic> +</return></block></method></service-logic>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vf-module-topology-operation-assign-async.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vf-module-topology-operation-assign-async.xml index 081a4e3b..51d42bf4 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vf-module-topology-operation-assign-async.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vf-module-topology-operation-assign-async.xml @@ -797,23 +797,23 @@ </for>
<set>
<parameter name='vf-module-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="vf-module"
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vf-module-topology-operation-assign-sync.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vf-module-topology-operation-assign-sync.xml index 9d1f3ca5..1619b313 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vf-module-topology-operation-assign-sync.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vf-module-topology-operation-assign-sync.xml @@ -638,23 +638,23 @@ </for>
<set>
<parameter name='vf-module-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="vf-module"
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation-assign-async.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation-assign-async.xml index acb3c1ce..863ee2cc 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation-assign-async.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation-assign-async.xml @@ -1324,15 +1324,15 @@ </for>
<set>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vnf-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vnf-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="generic-vnf"
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation-assign-sync.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation-assign-sync.xml index 2202daca..a55a496c 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation-assign-sync.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation-assign-sync.xml @@ -1117,15 +1117,15 @@ </for>
<set>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vnf-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vnf-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="generic-vnf"
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation-changeassign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation-changeassign.xml index a45713f5..0bf3f706 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation-changeassign.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_vnf-topology-operation-changeassign.xml @@ -102,9 +102,9 @@ </set>
<set>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $service-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<return status='success'></return>
</block>
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_wan-connection-topology-operation-delete.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_wan-connection-topology-operation-delete.xml index 9c24e525..7f720da6 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_wan-connection-topology-operation-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_wan-connection-topology-operation-delete.xml @@ -36,7 +36,7 @@ </set> <set> <parameter name="networkId" value="`$network-topology-operation-input.network-information.network-id`"/> - <parameter name="service-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology/'` "/> + <parameter name="service-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology?content=config'` "/> </set> </block> </outcome> @@ -61,7 +61,7 @@ </set> <set> <parameter name="networkId" value="`$network-topology-operation-input.network-information.network-id`"/> - <parameter name="service-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology/'` "/> + <parameter name="service-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology?content=config'` "/> </set> </block> </outcome> diff --git a/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-F1.xml b/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-F1.xml index 9cb132d1..14eac35c 100644 --- a/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-F1.xml +++ b/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-F1.xml @@ -228,7 +228,7 @@ <!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />--> <!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />--> <!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />--> - <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " /> + <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " /> </save> <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' @@ -557,7 +557,7 @@ <!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />--> <!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />--> <!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />--> - <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " /> + <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " /> </save> <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='connectivity:relationship-list' key='connectivity.connectivity-id = $middle-man-conn.connectivity-id' diff --git a/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-create-clean.xml b/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-create-clean.xml index f4a46c8e..844eec50 100644 --- a/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-create-clean.xml +++ b/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-create-clean.xml @@ -996,7 +996,7 @@ <!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->
<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->
<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->
- <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
@@ -1064,7 +1064,7 @@ <!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->
<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->
<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->
- <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
@@ -1160,7 +1160,7 @@ <!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->
<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->
<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->
- <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
@@ -1223,7 +1223,7 @@ <!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->
<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->
<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->
- <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
@@ -1477,7 +1477,7 @@ <!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />-->
<!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />-->
<!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />-->
- <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
diff --git a/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.xml b/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.xml index d9000d0b..c41104c3 100644 --- a/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.xml +++ b/platform-logic/generic-resource-api/src/main/xml/cloud_leased_line/GENERIC-RESOURCE-API_cll-vnf-topology-operation-cll-modify.xml @@ -981,7 +981,7 @@ <!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />--> <!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />--> <!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />--> - <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " /> + <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " /> </save> <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id @@ -1049,7 +1049,7 @@ <!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />--> <!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />--> <!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />--> - <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " /> + <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " /> </save> <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id @@ -1145,7 +1145,7 @@ <!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />--> <!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />--> <!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />--> - <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " /> + <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " /> </save> <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id @@ -1208,7 +1208,7 @@ <!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />--> <!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />--> <!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />--> - <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " /> + <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " /> </save> <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id @@ -1831,7 +1831,7 @@ <!--<parameter name='model-customization-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-customization-uuid`' />--> <!--<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-invariant-uuid`' />--> <!--<parameter name='model-version-id' value='`$vnf-topology-operation-input.service-information.onap-model-information.model-uuid`' />--> - <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " /> + <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " /> </save> <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id diff --git a/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-create.xml b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-create.xml index a07cee26..155b5ae2 100644 --- a/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/p2p_eline/GENERIC-RESOURCE-API_p2p-vnf-topology-operation-p2p-create.xml @@ -390,7 +390,7 @@ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />--> <!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />--> <!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />--> - <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " /> + <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " /> </save> <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id @@ -667,7 +667,7 @@ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />--> <!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />--> <!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />--> - <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " /> + <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " /> </save> <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id @@ -1004,7 +1004,7 @@ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />--> <!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />--> <!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />--> - <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " /> + <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " /> </save> <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-activate.xml index 01db6507..2495fb05 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-activate.xml @@ -8,9 +8,9 @@ <parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />
</set>
<set>
- <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'
+ <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/connection-attachment-topology/'` " />
+ + '/allotted-resource-data/connection-attachment-topology?content=config'` " />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -84,7 +84,7 @@ <parameter name='tmp.ar.parent-service-instance-id' value="`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` " />
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data"/>
+ <parameter name="source" value="/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config"/>
<parameter name="outputPath" value="tmp.ar-url-psd"/>
<parameter name="target" value="{service-instance-id}"/>
<parameter name="replacement" value="`$tmp.ar.parent-service-instance-id`"/>
@@ -156,7 +156,7 @@ <parameter name='prop.ar-parent-service-instance-id' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.parent-service-instance-id`' />
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data"/>
+ <parameter name="source" value="/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config"/>
<parameter name="outputPath" value="tmp.ar-url-connection"/>
<parameter name="target" value="{service-instance-id}"/>
<parameter name="replacement" value="`$prop.ar-parent-service-instance-id`"/>
@@ -200,7 +200,7 @@ <parameter name='prop.ar-service-instance-id' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.consuming-service-instance-id`' />
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data"/>
+ <parameter name="source" value="/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config"/>
<parameter name="outputPath" value="tmp.ar-url-connection"/>
<parameter name="target" value="{service-instance-id}"/>
<parameter name="replacement" value="`$prop.ar-service-instance-id`"/>
@@ -460,9 +460,9 @@ <set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='connection-attachment-object-path' value="`$tmp.ar.self-link`"/>
- <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $connection-attachment-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="allotted-resource"
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.xml index 2b20f06e..f2e8c9df 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.xml @@ -34,9 +34,9 @@ </outcome>
</switch>
<set>
- <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'
+ <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/connection-attachment-topology/'` " />
+ + '/allotted-resource-data/connection-attachment-topology?content=config'` " />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -232,9 +232,9 @@ value="`$connection-attachment-ar-identifiers.`" /> <set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='connection-attachment-object-path' value="`$tmp.ar.self-link`"/>
- <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $connection-attachment-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="allotted-resource"
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-deactivate.xml index 6d679367..ae789f93 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-deactivate.xml @@ -8,9 +8,9 @@ <parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />
</set>
<set>
- <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'
+ <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/connection-attachment-topology/'` " />
+ + '/allotted-resource-data/connection-attachment-topology?content=config'` " />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -84,7 +84,7 @@ <parameter name='tmp.ar.parent-service-instance-id' value="`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` " />
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data"/>
+ <parameter name="source" value="/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config"/>
<parameter name="outputPath" value="tmp.ar-url-psd"/>
<parameter name="target" value="{service-instance-id}"/>
<parameter name="replacement" value="`$tmp.ar.parent-service-instance-id`"/>
@@ -194,7 +194,7 @@ <parameter name='prop.ar-parent-service-instance-id' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.parent-service-instance-id`' />
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data"/>
+ <parameter name="source" value="/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config"/>
<parameter name="outputPath" value="tmp.ar-url-connection"/>
<parameter name="target" value="{service-instance-id}"/>
<parameter name="replacement" value="`$prop.ar-parent-service-instance-id`"/>
@@ -238,7 +238,7 @@ <parameter name='prop.ar-service-instance-id' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.consuming-service-instance-id`' />
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data"/>
+ <parameter name="source" value="/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config"/>
<parameter name="outputPath" value="tmp.ar-url-connection"/>
<parameter name="target" value="{service-instance-id}"/>
<parameter name="replacement" value="`$prop.ar-service-instance-id`"/>
@@ -501,9 +501,9 @@ <set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='connection-attachment-object-path' value="`$tmp.ar.self-link`"/>
- <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $connection-attachment-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="allotted-resource"
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.xml index 9f9121c8..e105898d 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.xml @@ -8,9 +8,9 @@ <parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />
</set>
<set>
- <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'
+ <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/connection-attachment-topology/'` " />
+ + '/allotted-resource-data/connection-attachment-topology?content=config'` " />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -88,7 +88,7 @@ <parameter name='tmp.ar.parent-service-instance-id' value="`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` " />
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data"/>
+ <parameter name="source" value="/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config"/>
<parameter name="outputPath" value="tmp.ar-url-psd"/>
<parameter name="target" value="{service-instance-id}"/>
<parameter name="replacement" value="`$tmp.ar.parent-service-instance-id`"/>
@@ -155,9 +155,9 @@ <set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='connection-attachment-object-path' value="`$tmp.ar.self-link`"/>
- <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $connection-attachment-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource='allotted-resource'
key="customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.xml index db4a18c4..e4c87377 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-activate.xml @@ -242,7 +242,7 @@ </set>
<set>
<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />
- <parameter name="network-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` " />
+ <parameter name="network-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $network-topology-operation-input.network-information.network-id + '/network-data?content=config'` " />
</set>
<set>
<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Active' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-create.xml index 70500ccf..bc67c091 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-create.xml @@ -67,7 +67,7 @@ </set>
<set>
<parameter name='networkId' value='`$prop.sdwan.network-id`' />
- <parameter name="network-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sdwan.network-id + '/network-data/'` " />
+ <parameter name="network-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sdwan.network-id + '/network-data?content=config'` " />
</set>
<set>
<parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.order-status' value='Created' />
@@ -83,7 +83,7 @@ <parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />
<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />
<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />
- <parameter name='selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sdwan.network-id + '/network-data/'` " />
+ <parameter name='selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sdwan.network-id + '/network-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
key='service-instance.service-instance-id = $service-data.service-information.service-instance-id
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-deactivate.xml index f2d0b1bf..3fec0439 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-deactivate.xml @@ -168,7 +168,7 @@ </set>
<set>
<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />
- <parameter name="network-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` " />
+ <parameter name="network-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $network-topology-operation-input.network-information.network-id + '/network-data?content=config'` " />
</set>
<set>
<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='PendingDelete' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-delete.xml index afd579de..c03a6ff3 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-network-topology-operation-delete.xml @@ -20,7 +20,7 @@ </set>
<set>
<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />
- <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service/'
+ $network-topology-operation-input.service-information.service-instance-id
+ '/service-data/service-topology/'` " />
</set>
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.xml index 4bd38211..1a4c3bf8 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-activate.xml @@ -283,23 +283,23 @@ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.last-action' value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />
</set>
<set>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.sdnc-request-header.' value='`$vf-module-topology-operation-input.sdnc-request-header.`' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.xml index 15bbecf7..226aa035 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-create.xml @@ -125,23 +125,23 @@ </set>
<set>
<parameter name='vf-module-id' value='`$prop.vf-id`'/>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $prop.vf-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.order-status' value='Created' />
@@ -165,7 +165,7 @@ <parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />
<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />
<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />
- <parameter name='selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.vf-id + '/vf-module-data/'` " />
+ <parameter name='selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module=' + $prop.vf-id + '/vf-module-data?content=config'` " />
</save>
</outcome>
<outcome value='false'>
@@ -184,7 +184,7 @@ <parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />
<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />
<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />
- <parameter name='selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.vf-id + '/vf-module-data/'` " />
+ <parameter name='selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module=' + $prop.vf-id + '/vf-module-data?content=config'` " />
</update>
</outcome>
</switch>
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-deactivate.xml index 5a1bc3da..7928c004 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-deactivate.xml @@ -157,23 +157,23 @@ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />
</set>
<set>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.order-status' value='PendingDelete' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-delete.xml index 995ecff8..38bf1272 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-device-delete.xml @@ -108,23 +108,23 @@ <parameter name="service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen]." value=""/>
</set>
<set>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<switch test="`$prop.device.sdncCreate`">
<outcome value='true'>
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.xml index 7a6c7273..7a5e27de 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-activate.xml @@ -448,23 +448,23 @@ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />
</set>
<set>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.order-status' value='Active' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-create.xml index 27f1c435..f8cd203a 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-create.xml @@ -90,23 +90,23 @@ </set>
<set>
<parameter name='vf-module-id' value='`$prop.vf-id`'/>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.order-status' value='Created' />
@@ -126,7 +126,7 @@ <parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />
<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />
<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />
- <parameter name='selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.vf-id + '/vf-module-data/'` " />
+ <parameter name='selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.vf-id + '/vf-module-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf:relationship-list'
key='generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id'
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-deactivate.xml index 9a814918..dfdb0e7c 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-deactivate.xml @@ -429,23 +429,23 @@ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />
</set>
<set>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.order-status' value='PendingDelete' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.xml index 7a7dba27..b456547d 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-lanport-delete.xml @@ -117,23 +117,23 @@ <parameter name="service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen]." value=""/>
</set>
<set>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource='lan-port-config'
key='lan-port-config.lan-port-config-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id'></delete>
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-activate.xml index 8ac59719..941bfff8 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-activate.xml @@ -221,23 +221,23 @@ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />
</set>
<set>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.order-status' value='Active' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-create.xml index b88f3af5..01237e14 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-create.xml @@ -81,23 +81,23 @@ </set>
<set>
<parameter name='vf-module-id' value='`$prop.site-vf-index`' />
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $prop.site-vf-index
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.order-status' value='Created' />
@@ -115,7 +115,7 @@ <parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />
<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />
<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />
- <parameter name='selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.site-vf-index + '/vf-module-data/'` " />
+ <parameter name='selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module=' + $prop.site-vf-index + '/vf-module-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf:relationship-list'
key='generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id'
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-deactivate.xml index 1fcddf64..c8e63ad5 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-deactivate.xml @@ -183,23 +183,23 @@ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />
</set>
<set>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.order-status' value='PendingDelete' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-delete.xml index a108518a..48e1fffc 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-site-delete.xml @@ -108,23 +108,23 @@ <parameter name="service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen]." value=""/>
</set>
<set>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<return status='success'>
<parameter name="ack-final-indicator" value="Y" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-activate.xml index 40477c38..ecab84c6 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-activate.xml @@ -129,23 +129,23 @@ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />
</set>
<set>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.order-status' value='Active' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-create.xml index 7d8950ad..cc87753a 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-create.xml @@ -81,23 +81,23 @@ </set>
<set>
<parameter name='vf-module-id' value='`$prop.vpn-vf-index`' />
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $prop.vpn-vf-index
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.order-status' value='Created' />
@@ -113,7 +113,7 @@ <parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />
<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />
<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />
- <parameter name='selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.vpn-vf-index + '/vf-module-data/'` " />
+ <parameter name='selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module=' + $prop.vpn-vf-index + '/vf-module-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf:relationship-list'
key='generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id'
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-deactivate.xml index b41efbc0..6b745810 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-deactivate.xml @@ -124,23 +124,23 @@ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />
</set>
<set>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.order-status' value='PendingDelete' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-delete.xml index 5ddf41f1..47f824d9 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-vpn-delete.xml @@ -55,23 +55,23 @@ <parameter name="service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length" value='`$prop.vnfidxLen`'/>
</set>
<set>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<set>
<parameter name="service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen]." value=""/>
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-activate.xml index 288dd5d9..db716ce7 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-activate.xml @@ -440,23 +440,23 @@ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />
</set>
<set>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.order-status' value='Active' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-create.xml index a25f727e..b3b1398d 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-create.xml @@ -81,23 +81,23 @@ </set>
<set>
<parameter name='vf-module-id' value='`$prop.wan-port-vf-index`' />
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $prop.wan-port-vf-index
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.order-status' value='Created' />
@@ -122,7 +122,7 @@ <parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />
<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />
<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />
- <parameter name='selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.wan-port-vf-index + '/vf-module-data/'` " />
+ <parameter name='selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module=' + $prop.wan-port-vf-index + '/vf-module-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf:relationship-list'
key='generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id'
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-deactivate.xml index b0cccdf3..953d232e 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-deactivate.xml @@ -167,23 +167,23 @@ <parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />
</set>
<set>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.order-status' value='PendingDelete' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-delete.xml index 710925da..4fa62345 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-operation-wanport-delete.xml @@ -105,23 +105,23 @@ <parameter name="service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$prop.vnfidxLen]." value=""/>
</set>
<set>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $vf-module-topology-operation-input.vf-module-information.vf-module-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource='site-resource'
key='site-resource.site-resource-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id'></delete>
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-create.xml index 03ccd49a..b39498ec 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-create.xml @@ -17,7 +17,7 @@ <block> <set> <parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' /> - <parameter name="network-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` " /> + <parameter name="network-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $network-topology-operation-input.network-information.network-id + '/network-data?content=config'` " /> </set> </block> </outcome> diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-delete.xml index 9c24e525..7f720da6 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vf-topology-operation-zte-delete.xml @@ -36,7 +36,7 @@ </set> <set> <parameter name="networkId" value="`$network-topology-operation-input.network-information.network-id`"/> - <parameter name="service-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology/'` "/> + <parameter name="service-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology?content=config'` "/> </set> </block> </outcome> @@ -61,7 +61,7 @@ </set> <set> <parameter name="networkId" value="`$network-topology-operation-input.network-information.network-id`"/> - <parameter name="service-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology/'` "/> + <parameter name="service-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/service-topology?content=config'` "/> </set> </block> </outcome> diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-activate.xml index 54bae832..1c7daefb 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-activate.xml @@ -119,7 +119,7 @@ </set>
<set>
<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
- <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` " />
+ <parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` " />
</set>
<set>
<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-create.xml index ab122cc1..43f7eb34 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-create.xml @@ -89,7 +89,7 @@ <call module='GENERIC-RESOURCE-API' rpc='sdwan-get-device-param' mode='sync' ></call>
<set>
<parameter name='vnfId' value='`$prop.vnf-id`' />
- <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-id + '/vnf-data/'` " />
+ <parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-id + '/vnf-data?content=config'` " />
</set>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Created' />
@@ -121,7 +121,7 @@ <parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />
<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />
<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />
- <parameter name='selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-id + '/vnf-data/'` " />
+ <parameter name='selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-id + '/vnf-data?content=config'` " />
</save>
</outcome>
<outcome value='false'>
@@ -140,7 +140,7 @@ <parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />
<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />
<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />
- <parameter name='selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-id + '/vnf-data/'` " />
+ <parameter name='selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-id + '/vnf-data?content=config'` " />
</update>
</outcome>
</switch>
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-deactivate.xml index d2a8129a..b7105454 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-deactivate.xml @@ -120,7 +120,7 @@ </set>
<set>
<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
- <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` " />
+ <parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` " />
</set>
<set>
<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-delete.xml index de29db48..79c2f862 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-device-delete.xml @@ -97,9 +97,9 @@ </set>
<set>
<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
- <parameter name='vnf-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vnf-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vnf-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'` " />
+ + '/service-data/service-topology?content=config'` " />
</set>
<switch test="`$prop.device.sdncCreate`">
<outcome value='true'>
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.xml index 720c1da2..7acf5667 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-activate.xml @@ -313,7 +313,7 @@ </set>
<set>
<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
- <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` " />
+ <parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` " />
</set>
<set>
<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-create.xml index a182dc54..299b7969 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-create.xml @@ -72,7 +72,7 @@ </set>
<set>
<parameter name='vnfId' value='`$prop.vnf-index`' />
- <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-index + '/vnf-data/'` " />
+ <parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-index + '/vnf-data?content=config'` " />
</set>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config'
key='wan-port-config.wan-port-config-id = $prop.vnf-index' >
@@ -92,7 +92,7 @@ <parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />
<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />
<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />
- <parameter name='selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-index + '/vnf-data/'` " />
+ <parameter name='selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-index + '/vnf-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
key='service-instance.service-instance-id = $service-data.service-information.service-instance-id
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-deactivate.xml index fa3d885f..760cd6fc 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-deactivate.xml @@ -113,7 +113,7 @@ </set>
<set>
<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
- <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` " />
+ <parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` " />
</set>
<set>
<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-delete.xml index 9f9eb3b1..58b5b607 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-delete.xml @@ -87,9 +87,9 @@ </set>
<set>
<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
- <parameter name='vnf-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vnf-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vnf-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'` " />
+ + '/service-data/service-topology?content=config'` " />
</set>
<delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource='wan-port-config'
key='wan-port-config.wan-port-config-id = $vnf-topology-operation-input.vnf-information.vnf-id'></delete>
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-wanport-vnf-topology-operation-underlay.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-wanport-vnf-topology-operation-underlay.xml index d075c21d..9c2fe8f6 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-wanport-vnf-topology-operation-underlay.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_sdwan-wanport-vnf-topology-operation-underlay.xml @@ -208,7 +208,7 @@ </block>
</for>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data"/>
+ <parameter name="source" value="/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config"/>
<parameter name="outputPath" value="tmp.ar-url-parent-connection"/>
<parameter name="target" value="{service-instance-id}"/>
<parameter name="replacement" value="`$prop.parent-service-instance-id`"/>
@@ -325,7 +325,7 @@ <parameter name='prop.ar-service-instance-id' value='`$mdsal-providedAr.connection-attachment-allotted-resource[0].allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.consuming-service-instance-id`' />
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data"/>
+ <parameter name="source" value="/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config"/>
<parameter name="outputPath" value="tmp.ar-url-connection"/>
<parameter name="target" value="{service-instance-id}"/>
<parameter name="replacement" value="`$prop.ar-service-instance-id`"/>
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-activate.xml index 4c0e09f1..4ad66ac5 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-activate.xml @@ -203,7 +203,7 @@ </set>
<set>
<parameter name='vnfId' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-id`' />
- <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` " />
+ <parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` " />
</set>
<set>
<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-create.xml index f431eb64..4c23fcff 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-create.xml @@ -66,7 +66,7 @@ </set>
<set>
<parameter name='vnfId' value='`$prop.vnf-index`' />
- <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-index + '/vnf-data/'` " />
+ <parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-index + '/vnf-data?content=config'` " />
</set>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='site-resource'
key='site-resource.site-resource-id = $prop.vnf-index' >
@@ -79,7 +79,7 @@ <parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />
<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />
<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />
- <parameter name='selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-index + '/vnf-data/'` " />
+ <parameter name='selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-index + '/vnf-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
key='service-instance.service-instance-id = $service-data.service-information.service-instance-id
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-deactivate.xml index 4f90141d..0aca08ac 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-deactivate.xml @@ -168,7 +168,7 @@ </set>
<set>
<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
- <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` " />
+ <parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` " />
</set>
<set>
<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-delete.xml index 38f118fc..9d93291b 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_site-vnf-topology-operation-delete.xml @@ -87,9 +87,9 @@ </set> <set> <parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /> - <parameter name='vnf-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + <parameter name='vnf-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id - + '/service-data/service-topology/'` " /> + + '/service-data/service-topology?content=config'` " /> </set> <delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource='site-resource' key='site-resource.site-resource-id = $vnf-topology-operation-input.vnf-information.vnf-id'></delete> diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.xml index 86099f33..055a56fb 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-activate.xml @@ -54,7 +54,7 @@ </set>
<set>
<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
- <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` " />
+ <parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` " />
</set>
<set>
<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.xml index ceff5bad..757975e8 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-create.xml @@ -79,7 +79,7 @@ </set>
<set>
<parameter name='vnfId' value='`$prop.vnf-id`' />
- <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-id + '/vnf-data/'` " />
+ <parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-id + '/vnf-data?content=config'` " />
</set>
<save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="generic-vnf"
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.xml index 95c67071..fc888faf 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-deactivate.xml @@ -66,7 +66,7 @@ </set>
<set>
<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
- <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` " />
+ <parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` " />
</set>
<set>
<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-delete.xml index 87e6c528..f1c8553b 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sdwan/GENERIC-RESOURCE-API_vnf-topology-operation-vpn-site-resource-delete.xml @@ -78,9 +78,9 @@ </set>
<set>
<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
- <parameter name='vnf-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vnf-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vnf-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'` " />
+ + '/service-data/service-topology?content=config'` " />
</set>
<delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="generic-vnf"
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.xml index 3e3b395c..152ff15c 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-activate.xml @@ -8,9 +8,9 @@ <parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />
</set>
<set>
- <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'
+ <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/connection-attachment-topology/'` " />
+ + '/allotted-resource-data/connection-attachment-topology?content=config'` " />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -87,7 +87,7 @@ <parameter name='tmp.ar.parent-service-instance-id' value="`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` " />
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data"/>
+ <parameter name="source" value="/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config"/>
<parameter name="outputPath" value="tmp.ar-url-psd"/>
<parameter name="target" value="{service-instance-id}"/>
<parameter name="replacement" value="`$tmp.ar.parent-service-instance-id`"/>
@@ -632,9 +632,9 @@ <set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='connection-attachment-object-path' value="`$tmp.ar.self-link`"/>
- <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $connection-attachment-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="allotted-resource"
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.xml b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.xml index ff7640d7..b623c76c 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.xml @@ -34,9 +34,9 @@ </outcome>
</switch>
<set>
- <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'
+ <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/connection-attachment-topology/'` " />
+ + '/allotted-resource-data/connection-attachment-topology?content=config'` " />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -232,9 +232,9 @@ value="`$connection-attachment-ar-identifiers.`" /> <set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='connection-attachment-object-path' value="`$tmp.ar.self-link`"/>
- <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $connection-attachment-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='allotted-resource'
key='customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.xml index 9a334655..03d308f4 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.xml @@ -8,9 +8,9 @@ <parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />
</set>
<set>
- <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'
+ <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/connection-attachment-topology/'` " />
+ + '/allotted-resource-data/connection-attachment-topology?content=config'` " />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -84,7 +84,7 @@ <parameter name='tmp.ar.parent-service-instance-id' value="`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` " />
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data"/>
+ <parameter name="source" value="/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config"/>
<parameter name="outputPath" value="tmp.ar-url-psd"/>
<parameter name="target" value="{service-instance-id}"/>
<parameter name="replacement" value="`$tmp.ar.parent-service-instance-id`"/>
@@ -423,9 +423,9 @@ <set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='connection-attachment-object-path' value="`$tmp.ar.self-link`"/>
- <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $connection-attachment-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="allotted-resource"
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.xml index 3104c685..f56df7aa 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.xml @@ -8,9 +8,9 @@ <parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />
</set>
<set>
- <parameter name='tmp.ar.self-link' value="`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'
+ <parameter name='tmp.ar.self-link' value="`'rests/data/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource='
+ $tmp.ar.allotted-resource-id
- + '/allotted-resource-data/connection-attachment-topology/'` " />
+ + '/allotted-resource-data/connection-attachment-topology?content=config'` " />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
<parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />
@@ -88,7 +88,7 @@ <parameter name='tmp.ar.parent-service-instance-id' value="`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` " />
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >
- <parameter name="source" value="/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data"/>
+ <parameter name="source" value="/rests/data/GENERIC-RESOURCE-API:services/service={service-instance-id}/service-data?content=config"/>
<parameter name="outputPath" value="tmp.ar-url-psd"/>
<parameter name="target" value="{service-instance-id}"/>
<parameter name="replacement" value="`$tmp.ar.parent-service-instance-id`"/>
@@ -155,9 +155,9 @@ <set>
<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />
<parameter name='connection-attachment-object-path' value="`$tmp.ar.self-link`"/>
- <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $connection-attachment-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService" resource='allotted-resource'
key="customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.xml index bee22722..2d01b48c 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-activate.xml @@ -22,7 +22,7 @@ </set>
<set>
<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />
- <parameter name="network-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` " />
+ <parameter name="network-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $network-topology-operation-input.network-information.network-id + '/network-data?content=config'` " />
</set>
<set>
<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Active' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-create.xml b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-create.xml index af67bd68..96769150 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-create.xml @@ -158,7 +158,7 @@ </set> <set> <parameter name='networkId' value='`$prop.sotn.network-id`' /> - <parameter name="network-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " /> + <parameter name="network-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " /> </set> <set> <parameter name='service-data.networks.network[$nidx].network-data.network-level-oper-status.order-status' value='Created' /> @@ -187,7 +187,7 @@ <parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' /> <parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' /> <parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' /> - <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " /> + <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " /> </save> <save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' key='service-instance.service-instance-id = $service-data.service-information.service-instance-id diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-deactivate.xml index 53dae268..2e1ac4d2 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-deactivate.xml @@ -22,7 +22,7 @@ </set> <set> <parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' /> - <parameter name="network-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` " /> + <parameter name="network-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $network-topology-operation-input.network-information.network-id + '/network-data?content=config'` " /> </set> <set> <parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='PendingDelete' /> diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.xml index 2eb6e767..88c6ecf8 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn/GENERIC-RESOURCE-API_sotn-network-topology-operation-delete.xml @@ -20,9 +20,9 @@ </set>
<set>
<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />
- <parameter name='service-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='service-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $network-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'` " />
+ + '/service-data/service-topology?content=config'` " />
</set>
<return status='success'>
<parameter name="ack-final-indicator" value="Y" />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-activate.xml index 1f3e0f7f..f27a087d 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-activate.xml @@ -5,9 +5,9 @@ <block atomic="true">
<set>
<!--<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />-->
- <!--<parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` " />-->
+ <!--<parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` " />-->
<parameter name='vnfId' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />
- <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vf-module-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` " />
+ <parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vf-module-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` " />
</set>
<update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="connectivity"
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-create.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-create.xml index 98ca621f..c871e4ba 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-create.xml @@ -84,23 +84,23 @@ </set>
<set>
<parameter name='vf-module-id' value='`$prop.vpn-vf-index`' />
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $prop.vpn-vf-index
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
</set>
<set>
<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-index].vf-module-data.vf-module-level-oper-status.order-status' value='Created' />
@@ -117,7 +117,7 @@ <!--<parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />-->
<!--<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />-->
<!--<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />-->
- <!--<parameter name='selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.vpn-vf-index + '/vf-module-data/'` " />-->
+ <!--<parameter name='selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module=' + $prop.vpn-vf-index + '/vf-module-data?content=config'` " />-->
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf:relationship-list'
key='generic-vnf.vnf-id = $vf-module-topology-operation-input.vnf-information.vnf-id'
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-deactivate.xml index 20b28f29..6367376c 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-deactivate.xml @@ -66,7 +66,7 @@ </set>
<set>
<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
- <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` " />
+ <parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` " />
</set>
<set>
<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-delete.xml index 8585db55..fae76a53 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-l2vpn-delete.xml @@ -78,9 +78,9 @@ </set>
<set>
<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
- <parameter name='vnf-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vnf-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vnf-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'` " />
+ + '/service-data/service-topology?content=config'` " />
</set>
<delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="connectivity"
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-create.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-create.xml index 9648bb69..78e1c5a2 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vf-operation-uni-create.xml @@ -67,23 +67,23 @@ </set>
<set>
<parameter name='vf-module-id' value='`$prop.vf-id`'/>
- <parameter name='vf-module-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vf-module-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vf-modules/vf-module/'
+ + '/vnf-data/vf-modules/vf-module='
+ $prop.vf-id
- + '/vf-module-data/vf-module-topology/'`"/>
+ + '/vf-module-data/vf-module-topology?content=config'`"/>
<parameter name='vnf-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/vnfs/vnf/'
+ + '/service-data/vnfs/vnf='
+ $service-data.vnfs.vnf[$vnf-index].vnf-id
- + '/vnf-data/vnf-topology/'`"/>
+ + '/vnf-data/vnf-topology?content=config'`"/>
<parameter name='service-object-path'
- value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vf-module-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'`"/>
+ + '/service-data/service-topology?content=config'`"/>
<!--+ $vf-module-topology-operation-input.vf-module-information.vf-module-id-->
</set>
<set>
@@ -100,7 +100,7 @@ <parameter name='model-customization-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-customization-uuid`' />
<parameter name='model-invariant-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-invariant-uuid`' />
<parameter name='model-version-id' value='`$vf-module-topology-operation-input.vf-module-information.onap-model-information.model-uuid`' />
- <parameter name='selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module/' + $prop.vf-id + '/vf-module-data/'` " />
+ <parameter name='selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vf-module-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $service-data.vnfs.vnf[$vnf-index].vnf-id + '/vnf-data/vf-modules/vf-module=' + $prop.vf-id + '/vf-module-data?content=config'` " />
</save>
<!--<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='generic-vnf:relationship-list' -->
<!-- key='generic-vnf.vnf-id = $service-data.vnfs.vnf[$vnf-index].vnf-id' -->
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-activate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-activate.xml index 3210405e..1b608ed3 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-activate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-activate.xml @@ -54,7 +54,7 @@ </set>
<set>
<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
- <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` " />
+ <parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` " />
</set>
<set>
<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-create.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-create.xml index 07ba2028..b03b58a5 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-create.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-create.xml @@ -79,7 +79,7 @@ </set>
<set>
<parameter name='vnfId' value='`$prop.vnf-id`' />
- <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $prop.vnf-id + '/vnf-data/'` " />
+ <parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $prop.vnf-id + '/vnf-data?content=config'` " />
</set>
<save plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="generic-vnf"
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-deactivate.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-deactivate.xml index 139f12e8..a7ebc0be 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-deactivate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-deactivate.xml @@ -66,7 +66,7 @@ </set>
<set>
<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
- <parameter name="vnf-object-path" value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` " />
+ <parameter name="vnf-object-path" value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf=' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data?content=config'` " />
</set>
<set>
<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />
diff --git a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-delete.xml b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-delete.xml index 130eee23..47ce6181 100644 --- a/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-delete.xml +++ b/platform-logic/generic-resource-api/src/main/xml/sotn_nni/GENERIC-RESOURCE-API_sotn-vnf-topology-operation-underlay-delete.xml @@ -78,9 +78,9 @@ </set>
<set>
<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />
- <parameter name='vnf-object-path' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/'
+ <parameter name='vnf-object-path' value="`'rests/data/GENERIC-RESOURCE-API:services/service='
+ $vnf-topology-operation-input.service-information.service-instance-id
- + '/service-data/service-topology/'` " />
+ + '/service-data/service-topology?content=config'` " />
</set>
<delete plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="generic-vnf"
diff --git a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml index 8e743ff6..b81b4b7b 100644 --- a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml +++ b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-allocate.xml @@ -389,7 +389,7 @@ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
- <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
@@ -645,7 +645,7 @@ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
- <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
@@ -1014,7 +1014,7 @@ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
- <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
diff --git a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.xml b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.xml index bc0505d4..e4b33ad7 100644 --- a/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.xml +++ b/platform-logic/generic-resource-api/src/main/xml/trans_slicing/GENERIC-RESOURCE-API_tsli-vnf-topology-operation-trans-slice-modify.xml @@ -503,7 +503,7 @@ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
- <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
@@ -759,7 +759,7 @@ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
- <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
@@ -1123,7 +1123,7 @@ <!--<parameter name='model-customization-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`' />-->
<!--<parameter name='model-invariant-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`' />-->
<!--<parameter name='model-version-id' value='`$network-topology-operation-input.network-information.onap-model-information.model-uuid`' />-->
- <parameter name='connectivity-selflink' value="`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $prop.sotn.network-id + '/network-data/'` " />
+ <parameter name='connectivity-selflink' value="`'rests/data/GENERIC-RESOURCE-API:services/service=' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network=' + $prop.sotn.network-id + '/network-data?content=config'` " />
</save>
<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'
key='service-instance.service-instance-id = $vnf-topology-operation-input.service-information.service-instance-id
|