summaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2017-11-17 15:38:04 -0500
committerBrian Freeman <bf1936@att.com>2017-11-17 15:38:21 -0500
commit8e3e4799f4efe482145dd77b31115188efe0614e (patch)
treec305312000bbd3f60b81c47012f680566bc2397b /platform-logic/generic-resource-api/src
parent2c45a4ec0ef8d95f8f1817e6b65768c61065c55c (diff)
Fixes for 11-17 tests
Issue-ID: SDNC-202 Change-Id: I69c059d119134dd7698996c18693ad7bc8feda6f Signed-off-by: Brian Freeman <bf1936@att.com> Former-commit-id: 40d2109693a464d15c55de3475ce8617b05725a9
Diffstat (limited to 'platform-logic/generic-resource-api/src')
-rwxr-xr-xplatform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_brg-topology-operation-activate.json2
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.json2
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_gw-vfmodule-update.json2
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-activate.json655
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-assign.json2
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_brg-topology-operation-activate.xml8
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.xml21
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_gw-vfmodule-update.xml14
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-activate.xml23
-rw-r--r--platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-assign.xml10
10 files changed, 53 insertions, 686 deletions
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 32b7267c..68f46e6b 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":"365c93f8.67b65c","type":"dgstart","name":"DGSTART","outputs":1,"x":137,"y":110,"z":"18a62ac6.9713a5","wires":[["169d7df0.93c452"]]},{"id":"169d7df0.93c452","type":"service-logic","name":"GENERIC-RESOURCE-API 1.2.0-SNAPSHOT-111602b4-M","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":233.23807907104492,"y":170.95239067077637,"z":"18a62ac6.9713a5","wires":[["37783da7.81e2d2"]]},{"id":"37783da7.81e2d2","type":"method","name":"brg-topology-operation-activate","xml":"<method rpc='brg-topology-operation-activate' mode='sync'>\n","comments":"","outputs":1,"x":279.15485763549805,"y":206.19044589996338,"z":"18a62ac6.9713a5","wires":[["ec733994.d86e28"]]},{"id":"ec733994.d86e28","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":146.9761962890625,"y":2113.02392578125,"z":"18a62ac6.9713a5","wires":[["76888a74.ab17f4","1f22feac.f3b4c1","2fb29eef.4d6022","42d16f76.97199","338a947c.fbfb4c","95ce73fc.e2da1","c12a838c.45d44","52d9aec6.4c672","3d09c51e.7756ea","a2cfcba2.8fa4e8","104fcdf2.664762","56ef84b.a41387c","7d5c50e5.f78f5","1b700479.28334c","bc0b2cc1.a132a","8f3f21c6.12337","2d189fc6.3f48b","c4a8c4dc.ecee78","f658867d.2c6f38","c96c9fc4.ca9e","fc4cba6e.c5fde8","3f657cde.b4a5c4","40795c0d.d10224","197fef59.d47721","aa1291ea.d5213","1a0eab31.418c85","33f5a5f1.69bb3a","3aa67c55.65a524","d1f5d2dc.8c8b6","d19c10c6.e1717","f6439501.9c66a8","52c535ca.3b7a7c","9aa4c9fa.958f98","a0c021e1.707d58","f30cbbcf.ee6ed8","4b54eeb9.9b9a28","d4c6d967.74fbd"]]},{"id":"1f22feac.f3b4c1","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":451.5002098083496,"y":2666.381863594055,"z":"18a62ac6.9713a5","wires":[]},{"id":"76888a74.ab17f4","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":477.2541198730469,"y":2623.504550933838,"z":"18a62ac6.9713a5","wires":[]},{"id":"a2cfcba2.8fa4e8","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":493.7542190551758,"y":730.0514001846313,"z":"18a62ac6.9713a5","wires":[]},{"id":"42d16f76.97199","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":447.738037109375,"y":342.33331298828125,"z":"18a62ac6.9713a5","wires":[]},{"id":"2fb29eef.4d6022","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":487.997314453125,"y":257.59259033203125,"z":"18a62ac6.9713a5","wires":[]},{"id":"338a947c.fbfb4c","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":453.9934196472168,"y":380.23152446746826,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"c12a838c.45d44","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":518.5187530517578,"y":520.4594917297363,"z":"18a62ac6.9713a5","wires":[["c6a75b8.41f8ca8","84cd8969.410b78"]]},{"id":"95ce73fc.e2da1","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":482.0648536682129,"y":440.0172290802002,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"c6a75b8.41f8ca8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":775.8148918151855,"y":519.2672522068024,"z":"18a62ac6.9713a5","wires":[["b7ef52bd.d3fa6"]]},{"id":"52d9aec6.4c672","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":526.5293121337891,"y":873.4341316223145,"z":"18a62ac6.9713a5","wires":[["45b09dfd.cbfde4","57dd2e4f.a6dec","c52bd776.1a5058"]]},{"id":"45b09dfd.cbfde4","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1050.8373832702637,"y":898.4324235916138,"z":"18a62ac6.9713a5","wires":[["20c4b5a1.de818a"]]},{"id":"57dd2e4f.a6dec","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1041.8374328613281,"y":866.9324493408203,"z":"18a62ac6.9713a5","wires":[["20c4b5a1.de818a"]]},{"id":"c52bd776.1a5058","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1045.5874710083008,"y":837.2895542159677,"z":"18a62ac6.9713a5","wires":[["60273514.ef34ec"]]},{"id":"20c4b5a1.de818a","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":1211.5874710083008,"y":867.6824731826782,"z":"18a62ac6.9713a5","wires":[]},{"id":"b7ef52bd.d3fa6","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":956.8148460388184,"y":519.7672016620636,"z":"18a62ac6.9713a5","wires":[["284a87e4.4278d8","dc25137f.905be"]]},{"id":"284a87e4.4278d8","type":"switchNode","name":"switch brg length","xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1202.6720924377441,"y":554.052964925766,"z":"18a62ac6.9713a5","wires":[["324a8d88.db8242"]]},{"id":"324a8d88.db8242","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1393.6720962524414,"y":554.0529625415802,"z":"18a62ac6.9713a5","wires":[["641f1fa5.a47fe"]]},{"id":"ce809b2c.dfd4d8","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":1793.5292320251465,"y":554.6243867874146,"z":"18a62ac6.9713a5","wires":[]},{"id":"641f1fa5.a47fe","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1564.5290794372559,"y":554.6244316101074,"z":"18a62ac6.9713a5","wires":[["ce809b2c.dfd4d8","8e46a7f2.0c6588","3aefc57c.315b5a"]]},{"id":"8e46a7f2.0c6588","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":1791.5294761657715,"y":622.0529508590698,"z":"18a62ac6.9713a5","wires":[]},{"id":"ed7dff8.e3acc","type":"comment","name":"GET brg-allotted-resource from mdsal","info":"","comments":"","x":543.8148155212402,"y":483.7671926021576,"z":"18a62ac6.9713a5","wires":[]},{"id":"3aefc57c.315b5a","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":1801.52925491333,"y":587.6243848800659,"z":"18a62ac6.9713a5","wires":[["abdb04fd.2cc288","62315be8.564254"]]},{"id":"abdb04fd.2cc288","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2013.1292114257812,"y":548.6243848800659,"z":"18a62ac6.9713a5","wires":[["f727ed41.8760a"]]},{"id":"62315be8.564254","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2038.8435859680176,"y":584.052975654602,"z":"18a62ac6.9713a5","wires":[["f727ed41.8760a"]]},{"id":"fc060079.fdec8","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":499.33863830566406,"y":574.3386459350586,"z":"18a62ac6.9713a5","wires":[]},{"id":"dc25137f.905be","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":1282.3864250183105,"y":519.7672936916351,"z":"18a62ac6.9713a5","wires":[]},{"id":"c56cf0bd.1e9dc","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":452.9576606750488,"y":409.6243562698364,"z":"18a62ac6.9713a5","wires":[]},{"id":"60273514.ef34ec","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1187.2434387207031,"y":833.4817234054208,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"e7d7a66b.fa9838","type":"comment","name":"TO DO: vnf/put parent","info":"","comments":"","x":457.2433776855469,"y":762.1481952667236,"z":"18a62ac6.9713a5","wires":[]},{"id":"3d09c51e.7756ea","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":441.24338150024414,"y":691.4815549850464,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"84cd8969.410b78","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":775.5766868591309,"y":555.4814250469208,"z":"18a62ac6.9713a5","wires":[["7991d5a8.19d38c"]]},{"id":"7991d5a8.19d38c","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":955.5766372680664,"y":556.1479756832123,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"104fcdf2.664762","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":424.24342346191406,"y":611.1481666564941,"z":"18a62ac6.9713a5","wires":[]},{"id":"f727ed41.8760a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2227.5997276306152,"y":550.0000190734863,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"56ef84b.a41387c","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":484.85716247558594,"y":795.2380628585815,"z":"18a62ac6.9713a5","wires":[["f4a20a5a.4d8c98","1cbfe5b1.92129a"]]},{"id":"f4a20a5a.4d8c98","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":740.6190567016602,"y":778.1905598640442,"z":"18a62ac6.9713a5","wires":[["ef10ebfc.9e5c08"]]},{"id":"ef10ebfc.9e5c08","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":907.142936706543,"y":789.8096308708191,"z":"18a62ac6.9713a5","wires":[]},{"id":"1cbfe5b1.92129a","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":747.7143440246582,"y":810.9525275230408,"z":"18a62ac6.9713a5","wires":[["ef10ebfc.9e5c08"]]},{"id":"7d5c50e5.f78f5","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":597.0000610351562,"y":1364.6668300628662,"z":"18a62ac6.9713a5","wires":[["2ca4c669.5c49fa","e2daafee.ef521","4eb7df5c.3fef3"]]},{"id":"2ca4c669.5c49fa","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":930.9748497009277,"y":1423.9984420761466,"z":"18a62ac6.9713a5","wires":[["7f5791ac.67684"]]},{"id":"e2daafee.ef521","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":921.9748992919922,"y":1392.4984678253531,"z":"18a62ac6.9713a5","wires":[["7f5791ac.67684"]]},{"id":"4eb7df5c.3fef3","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":925.7249374389648,"y":1362.8555727005005,"z":"18a62ac6.9713a5","wires":[["b21cdd09.f6c39"]]},{"id":"7f5791ac.67684","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":1091.7249374389648,"y":1393.248491667211,"z":"18a62ac6.9713a5","wires":[]},{"id":"b21cdd09.f6c39","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1067.3809051513672,"y":1359.0477418899536,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"1b700479.28334c","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":578.6668243408203,"y":1511.3336246013641,"z":"18a62ac6.9713a5","wires":[["7284360c.605168","8ddf7786.265978","f7e8ea47.905e38"]]},{"id":"7284360c.605168","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":999.9747314453125,"y":1566.9985536560416,"z":"18a62ac6.9713a5","wires":[["4fdc6451.028a2c"]]},{"id":"8ddf7786.265978","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":990.974781036377,"y":1535.4985794052482,"z":"18a62ac6.9713a5","wires":[["4fdc6451.028a2c"]]},{"id":"f7e8ea47.905e38","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":994.7248191833496,"y":1505.8556842803955,"z":"18a62ac6.9713a5","wires":[["91d81f82.509b9"]]},{"id":"4fdc6451.028a2c","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":1160.7248191833496,"y":1536.248603247106,"z":"18a62ac6.9713a5","wires":[]},{"id":"91d81f82.509b9","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1136.380786895752,"y":1502.0478534698486,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"2d189fc6.3f48b","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":533.1112060546875,"y":1229.6670894622803,"z":"18a62ac6.9713a5","wires":[]},{"id":"8f3f21c6.12337","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":504.77784729003906,"y":1284.6668682098389,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"bc0b2cc1.a132a","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":495.7778778076172,"y":1173.3333940505981,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"c4a8c4dc.ecee78","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":488.1111602783203,"y":1436.3334999084473,"z":"18a62ac6.9713a5","wires":[]},{"id":"a6a8b2c1.8f856","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":230.79503631591797,"y":2214.7715578079224,"z":"18a62ac6.9713a5","wires":[]},{"id":"c96c9fc4.ca9e","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":563.0015068054199,"y":2341.8350467681885,"z":"18a62ac6.9713a5","wires":[["f822a588.1a5c98","d95df392.1987d"]]},{"id":"f822a588.1a5c98","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":851.8214263916016,"y":2339.2143902778625,"z":"18a62ac6.9713a5","wires":[["473d24ff.a9b42c"]]},{"id":"473d24ff.a9b42c","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1032.8213806152344,"y":2339.714339733124,"z":"18a62ac6.9713a5","wires":[["a5e620b6.49938","3fd59db1.35aa72"]]},{"id":"a5e620b6.49938","type":"switchNode","name":"switch brg length","xml":"<switch test='`$service-data.service-data_length`'>\n","comments":"","outputs":1,"x":1278.6786270141602,"y":2374.000102996826,"z":"18a62ac6.9713a5","wires":[["fb4aa2aa.355d5"]]},{"id":"fb4aa2aa.355d5","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1469.6786308288574,"y":2374.0001006126404,"z":"18a62ac6.9713a5","wires":[["29a2aafd.0e61f6"]]},{"id":"a35ce553.1561d8","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":1869.5357666015625,"y":2374.5715248584747,"z":"18a62ac6.9713a5","wires":[]},{"id":"29a2aafd.0e61f6","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1640.5356140136719,"y":2374.5715696811676,"z":"18a62ac6.9713a5","wires":[["a35ce553.1561d8","9129f6ff.19a068"]]},{"id":"37dc6d21.e214a2","type":"comment","name":"GET vnf-api service info","info":"","comments":"","x":468.39276123046875,"y":2305.1427431106567,"z":"18a62ac6.9713a5","wires":[]},{"id":"9129f6ff.19a068","type":"switchNode","name":"switch order-status","xml":"<switch test='`$tmp.service-data.order-status`'>\n","comments":"","outputs":1,"x":1853.249984741211,"y":2426.1429500579834,"z":"18a62ac6.9713a5","wires":[["6564b5f7.1e716c","4e3f2f90.50e22"]]},{"id":"6564b5f7.1e716c","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2093.1355476379395,"y":2390.5714988708496,"z":"18a62ac6.9713a5","wires":[["27659936.9b16a6"]]},{"id":"4e3f2f90.50e22","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2118.849922180176,"y":2426.0000896453857,"z":"18a62ac6.9713a5","wires":[["27659936.9b16a6"]]},{"id":"a417ed65.697e3","type":"comment","name":"Set service-data","info":"","comments":"","x":444.4880065917969,"y":2440.0004692077637,"z":"18a62ac6.9713a5","wires":[]},{"id":"3fd59db1.35aa72","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":1358.3929595947266,"y":2339.7144317626953,"z":"18a62ac6.9713a5","wires":[]},{"id":"d95df392.1987d","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":851.5832214355469,"y":2375.428563117981,"z":"18a62ac6.9713a5","wires":[["893155db.6b0fe8"]]},{"id":"893155db.6b0fe8","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1031.5831718444824,"y":2376.0951137542725,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"27659936.9b16a6","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2307.6060638427734,"y":2391.94713306427,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"f658867d.2c6f38","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":484.8109130859375,"y":2260.263671875,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"3f657cde.b4a5c4","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":563.0966911315918,"y":2518.502098083496,"z":"18a62ac6.9713a5","wires":[["158b7553.e6c0ab","23fdc360.f5c5ec","b2329d47.fddb5"]]},{"id":"158b7553.e6c0ab","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1069.3095474243164,"y":2513.0241107940674,"z":"18a62ac6.9713a5","wires":[["9901f01.23a2d1"]]},{"id":"23fdc360.f5c5ec","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1060.3095970153809,"y":2481.524136543274,"z":"18a62ac6.9713a5","wires":[["9901f01.23a2d1"]]},{"id":"b2329d47.fddb5","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1064.0596351623535,"y":2451.8812414184213,"z":"18a62ac6.9713a5","wires":[["beabb707.b031c8"]]},{"id":"9901f01.23a2d1","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":1230.0596351623535,"y":2482.274160385132,"z":"18a62ac6.9713a5","wires":[]},{"id":"beabb707.b031c8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1205.7156028747559,"y":2448.0734106078744,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"fc4cba6e.c5fde8","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":462.4300231933594,"y":2470.02618598938,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"40795c0d.d10224","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":541.8571624755859,"y":921.7501087188721,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"197fef59.d47721","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":628.0000305175781,"y":971.0000267028809,"z":"18a62ac6.9713a5","wires":[]},{"id":"aa1291ea.d5213","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":588.9999694824219,"y":1018.9998550415039,"z":"18a62ac6.9713a5","wires":[]},{"id":"1a0eab31.418c85","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":549.0000152587891,"y":1067.333191871643,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"33f5a5f1.69bb3a","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":627.3332672119141,"y":1120.6665697097778,"z":"18a62ac6.9713a5","wires":[]},{"id":"6155dc8a.47b934","type":"comment","name":"Change to POST and just update service?","info":"","comments":"","x":742.357177734375,"y":2545.9287109375,"z":"18a62ac6.9713a5","wires":[]},{"id":"4671c454.83b62c","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":743.166748046875,"y":2036.166748046875,"z":"18a62ac6.9713a5","wires":[["c3e30f3c.69b62","aacf95a1.7f29b8","973c7491.1e4558"]]},{"id":"c3e30f3c.69b62","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1082.141513824463,"y":2075.49837436527,"z":"18a62ac6.9713a5","wires":[["6db5d0f7.79722"]]},{"id":"aacf95a1.7f29b8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1073.1415634155273,"y":2043.9984001144767,"z":"18a62ac6.9713a5","wires":[["6db5d0f7.79722"]]},{"id":"973c7491.1e4558","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1076.8916015625,"y":2014.355504989624,"z":"18a62ac6.9713a5","wires":[["cad549e0.47c898"]]},{"id":"6db5d0f7.79722","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":1242.8916015625,"y":2044.7484239563346,"z":"18a62ac6.9713a5","wires":[]},{"id":"cad549e0.47c898","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1218.5475692749023,"y":2010.5476741790771,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"962bcf79.cf631","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":728.1668548583984,"y":2122.8336877822876,"z":"18a62ac6.9713a5","wires":[["f4596489.8437f8","6b5435d6.b9011c","390b5095.8468b"]]},{"id":"f4596489.8437f8","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1072.808193206787,"y":2203.4984325394034,"z":"18a62ac6.9713a5","wires":[["156eac4b.350654"]]},{"id":"6b5435d6.b9011c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1063.8082427978516,"y":2171.99845828861,"z":"18a62ac6.9713a5","wires":[["156eac4b.350654"]]},{"id":"390b5095.8468b","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1067.5582809448242,"y":2142.3555631637573,"z":"18a62ac6.9713a5","wires":[["8c514a9b.da33e8"]]},{"id":"156eac4b.350654","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":1233.5582809448242,"y":2172.748482130468,"z":"18a62ac6.9713a5","wires":[]},{"id":"8c514a9b.da33e8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1209.2142486572266,"y":2138.5477323532104,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"f6439501.9c66a8","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":532.9445724487305,"y":1918.1669521331787,"z":"18a62ac6.9713a5","wires":[]},{"id":"52c535ca.3b7a7c","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":512.611213684082,"y":1973.1667308807373,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"d19c10c6.e1717","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":491.9446029663086,"y":1858.4999265670776,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"3aa67c55.65a524","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":604.0000457763672,"y":1570.666633605957,"z":"18a62ac6.9713a5","wires":[]},{"id":"d1f5d2dc.8c8b6","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":642.3333435058594,"y":1620.6665630340576,"z":"18a62ac6.9713a5","wires":[]},{"id":"c542adc.b942a5","type":"comment","name":"Setup VXLAN Tunnel - vG to vgMUX","info":"","comments":"","x":189,"y":1573.999852180481,"z":"18a62ac6.9713a5","wires":[]},{"id":"6f57d567.30fbfc","type":"comment","name":"Setup VXLAN Tunnel - vBRG to vgMUX","info":"","comments":"","x":191.1666717529297,"y":924.0001373291016,"z":"18a62ac6.9713a5","wires":[]},{"id":"b4aea72.b49c158","type":"comment","name":"Get vg-mgmt-ip","info":"brg tunnelxconnn consuming-service-instance-id\nfound in services as service-instance-id","comments":"","x":187.00001525878906,"y":1768.333607673645,"z":"18a62ac6.9713a5","wires":[]},{"id":"9aa4c9fa.958f98","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":590.1666030883789,"y":1692.3329668045044,"z":"18a62ac6.9713a5","wires":[]},{"id":"123998f5.c51be7","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":1449.333251953125,"y":1686.9998779296875,"z":"18a62ac6.9713a5","wires":[["8715f7ad.f83878"]]},{"id":"33d4cc93.eac684","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":526.6667175292969,"y":1754.6663818359375,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"4cf7f570.7cc58c","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":1678,"y":2034.6666259765625,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"fc727137.9eaa","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1904.9999923706055,"y":1745.3332052230835,"z":"18a62ac6.9713a5","wires":[["8a518589.666998"]]},{"id":"9deb72d.caf209","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1124.3332977294922,"y":1671.6664695739746,"z":"18a62ac6.9713a5","wires":[["e273cfe4.5b48e8"]]},{"id":"ba3b2049.c4386","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1102.6666564941406,"y":1738.3331623077393,"z":"18a62ac6.9713a5","wires":[["c97e5262.51d26"]]},{"id":"385890ca.3fc72","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1093.666706085205,"y":1706.8331880569458,"z":"18a62ac6.9713a5","wires":[["c97e5262.51d26"]]},{"id":"c97e5262.51d26","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":1263.4167442321777,"y":1707.5832118988037,"z":"18a62ac6.9713a5","wires":[]},{"id":"5218fc4a.0b9fe4","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":2393.3331451416016,"y":1638.3332786560059,"z":"18a62ac6.9713a5","wires":[["5266f859.ebeaf8"]]},{"id":"5266f859.ebeaf8","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2672.333251953125,"y":1650,"z":"18a62ac6.9713a5","wires":[["538ce914.9ab908"]]},{"id":"8a518589.666998","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":2169.333251953125,"y":1728.66650390625,"z":"18a62ac6.9713a5","wires":[["5218fc4a.0b9fe4"]]},{"id":"538ce914.9ab908","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":2821.999755859375,"y":1688.6666259765625,"z":"18a62ac6.9713a5","wires":[]},{"id":"f30cbbcf.ee6ed8","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":469,"y":2577,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"8715f7ad.f83878","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1462,"y":1800,"z":"18a62ac6.9713a5","wires":[["7a100e73.8d8e8"]]},{"id":"2006cbdb.ce9484","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":1613,"y":1875,"z":"18a62ac6.9713a5","wires":[]},{"id":"1f725a28.ed9056","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":1442,"y":1619,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"49c119e6.4c4ad8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1445,"y":1512,"z":"18a62ac6.9713a5","wires":[]},{"id":"e273cfe4.5b48e8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1240,"y":1624,"z":"18a62ac6.9713a5","wires":[["123998f5.c51be7","1f725a28.ed9056","bde6b16b.6406"]]},{"id":"a0c021e1.707d58","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":562,"y":1802,"z":"18a62ac6.9713a5","wires":[["ba3b2049.c4386","385890ca.3fc72","9deb72d.caf209"]]},{"id":"19ca5c15.87361c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":300,"y":1803,"z":"18a62ac6.9713a5","wires":[]},{"id":"7a100e73.8d8e8","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":1677,"y":1950,"z":"18a62ac6.9713a5","wires":[["fc727137.9eaa"]]},{"id":"bde6b16b.6406","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":1463,"y":1575,"z":"18a62ac6.9713a5","wires":[]},{"id":"8c51381a.12e268","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":727,"y":2077,"z":"18a62ac6.9713a5","wires":[]},{"id":"a6a20093.23fd2","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":427,"y":2044,"z":"18a62ac6.9713a5","wires":[]},{"id":"2bd2dbb4.5800fc","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":421,"y":2126,"z":"18a62ac6.9713a5","wires":[]},{"id":"73a37392.67696c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":647,"y":2247,"z":"18a62ac6.9713a5","wires":[]},{"id":"4e875cc.4e618a4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":241,"y":313,"z":"18a62ac6.9713a5","wires":[]},{"id":"9aab8f92.6499e8","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":784,"y":340,"z":"18a62ac6.9713a5","wires":[["1035cc67.32f044"]]},{"id":"4b54eeb9.9b9a28","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":431.1429443359375,"y":300.1904296875,"z":"18a62ac6.9713a5","wires":[["3cf47355.04e39c","9aab8f92.6499e8"]]},{"id":"3cf47355.04e39c","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":863,"y":282.6666259765625,"z":"18a62ac6.9713a5","wires":[[]]},{"id":"1035cc67.32f044","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":1052,"y":363.33331298828125,"z":"18a62ac6.9713a5","wires":[["6541c2a7.51e764"]]},{"id":"6541c2a7.51e764","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1350.0001220703125,"y":373.33331298828125,"z":"18a62ac6.9713a5","wires":[["380ce5f.0bb281a"]]},{"id":"380ce5f.0bb281a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1565.0001220703125,"y":383.3333435058594,"z":"18a62ac6.9713a5","wires":[["ef941af1.3f0ab8"]]},{"id":"ef941af1.3f0ab8","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":1793,"y":400,"z":"18a62ac6.9713a5","wires":[]},{"id":"680c1f95.266288","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":191,"y":2607,"z":"18a62ac6.9713a5","wires":[]},{"id":"d4c6d967.74fbd","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":469.5,"y":2392,"z":"18a62ac6.9713a5","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=\"`'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":[]}]
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.json
index 5cb69f21..e448157a 100644
--- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.json
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.json
@@ -1 +1 @@
-[{"id":"7b3f7465.e880f4","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":458,"y":414.3333616256714,"z":"93aea807.147f78","wires":[["29eb104d.f31d5"]]},{"id":"dd7bb1e4.e5866","type":"dgstart","name":"DGSTART","outputs":1,"x":88.6667251586914,"y":147,"z":"93aea807.147f78","wires":[["6368cf0a.1d92c"]]},{"id":"6368cf0a.1d92c","type":"service-logic","name":"GENERIC-RESOURCE-API 1.2.0-SNAPAHOT-111501","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":239.90480422973633,"y":214.95239067077637,"z":"93aea807.147f78","wires":[["bbb8a0c5.75f9a"]]},{"id":"bbb8a0c5.75f9a","type":"method","name":"get-vnf-api-parent-instance","xml":"<method rpc='get-vnf-api-parent-instance' mode='sync'>\n","comments":"","outputs":1,"x":293.82157135009766,"y":274.19044494628906,"z":"93aea807.147f78","wires":[["d1709f70.65eec"]]},{"id":"d1709f70.65eec","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":194.14291763305664,"y":393.5237879753113,"z":"93aea807.147f78","wires":[["31f9d6b7.1788a2","7b3f7465.e880f4"]]},{"id":"31f9d6b7.1788a2","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":503.0000534057617,"y":353.9999952316284,"z":"93aea807.147f78","wires":[[]]},{"id":"29eb104d.f31d5","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.search.parent-service-instance-id`'>\n\n\n","comments":"","outputs":1,"x":731.0000534057617,"y":416.6666841506958,"z":"93aea807.147f78","wires":[["f0d1c2c9.5e6df8"]]},{"id":"5d04a6e8.82fb5","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.vnfdata.vnfs.vnf-list[$vnfidx].service-data.vnf-id/service-data/' pfx='parent-service-instance' >\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":1232.3333740234375,"y":391.6666851043701,"z":"93aea807.147f78","wires":[["dad950e8.616f28"]]},{"id":"dad950e8.616f28","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1457.6667232513428,"y":391.33336639404297,"z":"93aea807.147f78","wires":[["f911a350.f3712"]]},{"id":"f0d1c2c9.5e6df8","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":970.0000762939453,"y":307.6666946411133,"z":"93aea807.147f78","wires":[["88ae32d5.c2278"]]},{"id":"88ae32d5.c2278","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1003.0001220703125,"y":394.6667003631592,"z":"93aea807.147f78","wires":[["fa7cb6ab.02de7","5d04a6e8.82fb5"]]},{"id":"fa7cb6ab.02de7","type":"set","name":"set tmp.old-service-data.vnf-id","xml":"<set>\n<parameter name='tmp.old-service-data.vnf-id' value='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.vnf-id`' />\n","comments":"","x":1222.0000915527344,"y":298.00003814697266,"z":"93aea807.147f78","wires":[]},{"id":"f911a350.f3712","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":1726.6666946411133,"y":383.6666564941406,"z":"93aea807.147f78","wires":[]}]
+[{"id":"b8bfabbe.77248","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":527.833251953125,"y":363.3333740234375,"z":"ff9767f5.010a38","wires":[["4776ee38.4ee138"]]},{"id":"bc101beb.ef5ea","type":"dgstart","name":"DGSTART","outputs":1,"x":182.5,"y":96,"z":"ff9767f5.010a38","wires":[["a51bb8c8.d3e1e8"]]},{"id":"a51bb8c8.d3e1e8","type":"service-logic","name":"GENERIC-RESOURCE-API 1.2.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":333.7380790710449,"y":163.95239067077637,"z":"ff9767f5.010a38","wires":[["bc6b4b85.047838"]]},{"id":"bc6b4b85.047838","type":"method","name":"get-vnf-api-parent-instance","xml":"<method rpc='get-vnf-api-parent-instance' mode='sync'>\n","comments":"","outputs":1,"x":387.65484619140625,"y":223.19044494628906,"z":"ff9767f5.010a38","wires":[["3935ebce.d82b5c"]]},{"id":"3935ebce.d82b5c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":287.97619247436523,"y":342.5237879753113,"z":"ff9767f5.010a38","wires":[["425453de.b10ae4","b8bfabbe.77248"]]},{"id":"425453de.b10ae4","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":575.8333129882812,"y":301,"z":"ff9767f5.010a38","wires":[[]]},{"id":"204813dd.64581c","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.search.parent-service-instance-id`'>\n\n\n","comments":"","outputs":1,"x":864.8333129882812,"y":448.66668701171875,"z":"ff9767f5.010a38","wires":[["bd5f161e.f84a8"]]},{"id":"ec84cb14.e8d89","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.vnfdata.vnfs.vnf-list[$vnfidx].vnf-id/service-data/' pfx='parent-service-instance' >\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\n\t\t\t\t\t\t","comments":"","outputs":1,"x":1374.166648864746,"y":616.6666851043701,"z":"ff9767f5.010a38","wires":[["be638d5d.95cb48"]]},{"id":"be638d5d.95cb48","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1599.4999980926514,"y":616.333366394043,"z":"ff9767f5.010a38","wires":[["4aba0b85.648554"]]},{"id":"bd5f161e.f84a8","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1111.833351135254,"y":532.6666946411133,"z":"ff9767f5.010a38","wires":[["ceced407.7170f8"]]},{"id":"ceced407.7170f8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1144.833396911621,"y":619.6667003631592,"z":"ff9767f5.010a38","wires":[["e54aa0de.05e748","ec84cb14.e8d89","ff23046.a29a578","383fa1b1.09842e"]]},{"id":"e54aa0de.05e748","type":"set","name":"set tmp.old-service-data.vnf-id","xml":"<set>\n<parameter name='tmp.old-service-data.vnf-id' value='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].vnf-id`' />\n","comments":"","x":1359.8333740234375,"y":512.0000305175781,"z":"ff9767f5.010a38","wires":[]},{"id":"4aba0b85.648554","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":1868.4999694824219,"y":608.6666564941406,"z":"ff9767f5.010a38","wires":[]},{"id":"6ff4efde.253f28","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1356,"y":460,"z":"ff9767f5.010a38","wires":[]},{"id":"46071db9.aff5dc","type":"execute","name":"execute printContext","xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/get-vnf-parent.log' />\n\n","comments":"","outputs":1,"x":1336,"y":694,"z":"ff9767f5.010a38","wires":[[]]},{"id":"4776ee38.4ee138","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":632,"y":411,"z":"ff9767f5.010a38","wires":[["204813dd.64581c","3e55274e.58fc2"]]},{"id":"ff23046.a29a578","type":"set","name":"set debug","xml":"<set>\n<parameter name='tmp.debug.service-instance.id1' value='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.service-information.service-instance-id`' />\n<parameter name='tmp.debug.service-instance.id2' value='`$tmp.search.parent-service-instance-id`' />\n<parameter name='tmp.debug.service-instance.id3.vnf-id' value='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].vnf-id`' />\n\n\n\n","comments":"","x":1315,"y":411,"z":"ff9767f5.010a38","wires":[]},{"id":"3e55274e.58fc2","type":"set","name":"set tmp.search.parent-service-instance-id","xml":"<set>\n<parameter name='tmp.debug.tmp.search.parent-service-instance-id' value='`$tmp.search.parent-service-instance-id`' />\n","comments":"","x":860,"y":390,"z":"ff9767f5.010a38","wires":[]},{"id":"383fa1b1.09842e","type":"break","name":"break","xml":"<break>","comments":"","x":1299,"y":769,"z":"ff9767f5.010a38","wires":[]}]
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 43d01536..5c407212 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":"5a2ce84a.2a5768","type":"dgstart","name":"DGSTART","outputs":1,"x":149,"y":91,"z":"d1447f06.01b7f","wires":[["be8f043.98f0ef8"]]},{"id":"be8f043.98f0ef8","type":"service-logic","name":"GENERIC-RESOURCE-API 1.2.0-SNAPSHOT-111603b2","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":245.23807907104492,"y":151.95239067077637,"z":"d1447f06.01b7f","wires":[["94e132ae.047618"]]},{"id":"94e132ae.047618","type":"method","name":"gw-vfmodule-update","xml":"<method rpc='gw-vfmodule-update' mode='sync'>\n","comments":"","outputs":1,"x":129.15488815307617,"y":245.19043064117432,"z":"d1447f06.01b7f","wires":[["2c97cc82.13917c"]]},{"id":"2c97cc82.13917c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":245.99998092651367,"y":345.0000009536743,"z":"d1447f06.01b7f","wires":[["6fd806f5.1e0cf8","7e47a1b6.ea6ca","ed3653e2.5212a8","d77077f7.503848"]]},{"id":"318d30e7.cc194","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":2005.2500610351562,"y":1515.0002136230469,"z":"d1447f06.01b7f","wires":[[]]},{"id":"43971082.730f7","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":1591.9999389648438,"y":2046.0001831054688,"z":"d1447f06.01b7f","wires":[["cac6eda.d1dd69"]]},{"id":"27f265c4.04de6a","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":2050.7500610351562,"y":1472.2502136230469,"z":"d1447f06.01b7f","wires":[[]]},{"id":"26b6b15e.7cf40e","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":2029.5000610351562,"y":1556.0002136230469,"z":"d1447f06.01b7f","wires":[[]]},{"id":"dbd1314c.923b4","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\n\n\n","comments":"","x":1583.2500610351562,"y":1633.5002136230469,"z":"d1447f06.01b7f","wires":[]},{"id":"c79e8967.5f551","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":2045.75,"y":1313.0834045410156,"z":"d1447f06.01b7f","wires":[]},{"id":"1743f961.36c79f","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":2012,"y":1273.0834045410156,"z":"d1447f06.01b7f","wires":[]},{"id":"e053f1e9.fe00e","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":2060.7499389648438,"y":1218.083251953125,"z":"d1447f06.01b7f","wires":[]},{"id":"db82c7d3.0603c8","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":1565.75,"y":1351.8333435058594,"z":"d1447f06.01b7f","wires":[]},{"id":"eff549e7.c3aa1","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":1573.2498779296875,"y":1143.0834045410156,"z":"d1447f06.01b7f","wires":[[]]},{"id":"cac6eda.d1dd69","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1873.2499389648438,"y":2097.2501831054688,"z":"d1447f06.01b7f","wires":[["118e296d.8d4b27"]]},{"id":"118e296d.8d4b27","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":2063.2499389648438,"y":2106.0001831054688,"z":"d1447f06.01b7f","wires":[]},{"id":"d77077f7.503848","type":"set","name":"set consuming service-instance","xml":"<set>\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<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.consuming-service-instance-id' value='`$service-data.service-topology.service-topology-identifier.service-instance-id`' />\n","comments":"","x":620.0000610351562,"y":357.08343505859375,"z":"d1447f06.01b7f","wires":[]},{"id":"523ea527.76699c","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":782.3055419921875,"y":688.7499694824219,"z":"d1447f06.01b7f","wires":[[]]},{"id":"76a8e6e4.4fc528","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":776.1944580078125,"y":790.9723510742188,"z":"d1447f06.01b7f","wires":[["b2eff683.95cbe"]]},{"id":"91e15171.591e1","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":1064.1942749023438,"y":806.361083984375,"z":"d1447f06.01b7f","wires":[["889d8c80.f385f8"]]},{"id":"889d8c80.f385f8","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1222.91650390625,"y":952.5,"z":"d1447f06.01b7f","wires":[["2cc787b4.515c08"]]},{"id":"2cc787b4.515c08","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1138,"y":1412.5,"z":"d1447f06.01b7f","wires":[["d21db1e1.8f1b08","eff549e7.c3aa1","db82c7d3.0603c8","1b68e1a3.6004ae","2086475b.a51918","35c66ad8.ae3386","2e18627.f93a01e","61a05b5e.1b139c","79598fea.259c78","dbd1314c.923b4","5426cffc.d7aa3"]]},{"id":"e64a5ef3.99b52","type":"comment","name":"vnfidx ","info":"","comments":"","x":1384.2499389648438,"y":826.2500305175781,"z":"d1447f06.01b7f","wires":[]},{"id":"d21db1e1.8f1b08","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":1640.4999389648438,"y":1021.25,"z":"d1447f06.01b7f","wires":[["2c47b660.a0b01a"]]},{"id":"51e53b5d.e9a984","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":2145.6389770507812,"y":1090.9722595214844,"z":"d1447f06.01b7f","wires":[]},{"id":"6fd806f5.1e0cf8","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":562.3635559082031,"y":457.8182067871094,"z":"d1447f06.01b7f","wires":[["a14f4f30.7bf86"]]},{"id":"4ed3399b.5f757","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":1033.4544982910156,"y":480.9090576171875,"z":"d1447f06.01b7f","wires":[["1f8ab929.f4fdff"]]},{"id":"63993bff.c5d494","type":"switchNode","name":"switch parameter name","xml":"<switch test='`$tmp.test1 == $tmp.consuming-service-instance-id`'>","comments":"","outputs":1,"x":1419,"y":612.7423706054688,"z":"d1447f06.01b7f","wires":[["c5f860b7.8ce078"]]},{"id":"c5f860b7.8ce078","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1587.5,"y":683.060546875,"z":"d1447f06.01b7f","wires":[["d9ee0f7e.01bf88"]]},{"id":"60344461.6714d4","type":"set","name":"set thisIsVGW","xml":"<set>\n<parameter name='tmp.thisIsVGW' value='true' />\n","comments":"","x":1934.8182373046875,"y":797.5454711914062,"z":"d1447f06.01b7f","wires":[]},{"id":"7e47a1b6.ea6ca","type":"set","name":"set thisIsVGW false","xml":"<set>\n<parameter name='tmp.thisIsVGW' value='false' />\n","comments":"","x":482.81817626953125,"y":407.81817626953125,"z":"d1447f06.01b7f","wires":[]},{"id":"ed3653e2.5212a8","type":"switchNode","name":"switch thsIsVGW","xml":"<switch test='`$tmp.thisIsVGW`'>\n","comments":"","outputs":1,"x":294.3636474609375,"y":516.3637084960938,"z":"d1447f06.01b7f","wires":[["88630163.1f719","6d08e5de.b49f9c"]]},{"id":"88630163.1f719","type":"other","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":317.090909090909,"y":598.1818181818181,"z":"d1447f06.01b7f","wires":[["8910cdf6.2f0ab"]]},{"id":"8910cdf6.2f0ab","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":498.67474365234375,"y":786.293701171875,"z":"d1447f06.01b7f","wires":[["523ea527.76699c","76a8e6e4.4fc528"]]},{"id":"b2eff683.95cbe","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":854.666748046875,"y":841.1112060546875,"z":"d1447f06.01b7f","wires":[["91e15171.591e1","7ac6eb03.0d1e8c"]]},{"id":"1f8ab929.f4fdff","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1188,"y":544.4444580078125,"z":"d1447f06.01b7f","wires":[["63993bff.c5d494","43685628.f5f5d"]]},{"id":"2c47b660.a0b01a","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1943.4166259765625,"y":1053.1944885253906,"z":"d1447f06.01b7f","wires":[["51e53b5d.e9a984"]]},{"id":"a14f4f30.7bf86","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":647.6666666666665,"y":508.22222222222223,"z":"d1447f06.01b7f","wires":[["4ed3399b.5f757"]]},{"id":"43685628.f5f5d","type":"set","name":"set txconns.tunnelxconn-allotted-resources.tunnelxconn-alloted-resource[$txidx].allotted-resource-data.tunnelxconn-topology.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<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`' />","comments":"","x":1290,"y":183,"z":"d1447f06.01b7f","wires":[]},{"id":"7ac6eb03.0d1e8c","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":1016,"y":732,"z":"d1447f06.01b7f","wires":[]},{"id":"1b68e1a3.6004ae","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":1554.25,"y":947.5,"z":"d1447f06.01b7f","wires":[]},{"id":"2086475b.a51918","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":1490.5,"y":1412.5,"z":"d1447f06.01b7f","wires":[]},{"id":"35c66ad8.ae3386","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":1528.0000610351562,"y":1818.2499389648438,"z":"d1447f06.01b7f","wires":[]},{"id":"2e18627.f93a01e","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":1464.2500610351562,"y":1873.7499389648438,"z":"d1447f06.01b7f","wires":[[]]},{"id":"61a05b5e.1b139c","type":"set","name":"set tmp.vfmodule.param_length","xml":"<set>\n<parameter name='tmp.vfmodule.param_length' value='`$tmp.endLoop1`' />\n","comments":"","x":1574.2501831054688,"y":1085,"z":"d1447f06.01b7f","wires":[]},{"id":"8dcc0569.10249","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1215.5,"y":1632.5,"z":"d1447f06.01b7f","wires":[]},{"id":"79598fea.259c78","type":"for","name":"for paramIdx to set VNI","xml":"<for index='paramIdx' start='0' end='`$tmp.vfmodule.param_length`' >\n","comments":"","outputs":1,"x":1563,"y":1732.5,"z":"d1447f06.01b7f","wires":[["907e0702.827b98"]]},{"id":"27ea0bf1.7371bc","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":2060.5,"y":1801.25,"z":"d1447f06.01b7f","wires":[["cd5c9ec4.ad0af8"]]},{"id":"cd5c9ec4.ad0af8","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2378,"y":1828.75,"z":"d1447f06.01b7f","wires":[["bb91234f.950048"]]},{"id":"bb91234f.950048","type":"set","name":"set vni in tmp.vfmodule.param","xml":"<set>\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":2590.5,"y":1866.25,"z":"d1447f06.01b7f","wires":[]},{"id":"5426cffc.d7aa3","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\n\n\n","comments":"","x":1553,"y":1682.5,"z":"d1447f06.01b7f","wires":[]},{"id":"907e0702.827b98","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1769.25,"y":1727.5,"z":"d1447f06.01b7f","wires":[["27ea0bf1.7371bc"]]},{"id":"39894545.21de32","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":2048.0000610351562,"y":1720,"z":"d1447f06.01b7f","wires":[]},{"id":"307ee0b5.e38d7","type":"comment","name":"let md-sal helper save data so no need for the RESTAPICAll Node","info":"","comments":"","x":1560.4999084472656,"y":1972.5,"z":"d1447f06.01b7f","wires":[]},{"id":"d2760d91.22b388","type":"comment","name":" using path from calling DG - these nodes for testing","info":"","comments":"","x":2043,"y":1423.75,"z":"d1447f06.01b7f","wires":[]},{"id":"e46e612b.087e1","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":537,"y":309,"z":"d1447f06.01b7f","wires":[]},{"id":"5bb21711.d63b1","type":"set","name":"set VGW2BRG-MACADDRESs & consuming service-instance","xml":"<set>\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<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.consuming-service-instance-id' value='`$service-data.service-topology.service-topology-identifier.service-instance-id`' />\n","comments":"","x":2077,"y":730,"z":"d1447f06.01b7f","wires":[]},{"id":"d9ee0f7e.01bf88","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1733,"y":713,"z":"d1447f06.01b7f","wires":[["60344461.6714d4","5bb21711.d63b1","f7dd993b.b754a"]]},{"id":"f7dd993b.b754a","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":2051,"y":667,"z":"d1447f06.01b7f","wires":[]},{"id":"6d08e5de.b49f9c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":257,"y":757,"z":"d1447f06.01b7f","wires":[["8fa522a5.35575"]]},{"id":"d71a16e.28b1f68","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":515,"y":923,"z":"d1447f06.01b7f","wires":[]},{"id":"8fa522a5.35575","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":269,"y":835,"z":"d1447f06.01b7f","wires":[["d71a16e.28b1f68","abacc0f3.a3d4c8"]]},{"id":"abacc0f3.a3d4c8","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":465,"y":872,"z":"d1447f06.01b7f","wires":[[]]}]
+[{"id":"598da1da.5ff53","type":"dgstart","name":"DGSTART","outputs":1,"x":193,"y":95,"z":"ecd400e4.7e3cd","wires":[["e8bfe1b5.44e4"]]},{"id":"e8bfe1b5.44e4","type":"service-logic","name":"GENERIC-RESOURCE-API 1.2.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":289.2380790710449,"y":155.95239067077637,"z":"ecd400e4.7e3cd","wires":[["c2c3f191.17b448"]]},{"id":"c2c3f191.17b448","type":"method","name":"gw-vfmodule-update","xml":"<method rpc='gw-vfmodule-update' mode='sync'>\n","comments":"","outputs":1,"x":173.15488815307617,"y":249.19043064117432,"z":"ecd400e4.7e3cd","wires":[["816d44b0.518088"]]},{"id":"816d44b0.518088","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":289.9999809265137,"y":349.0000009536743,"z":"ecd400e4.7e3cd","wires":[["20ee11ef.1a4046","59e4ffe0.ab8b38","b4fdc1d0.687e58","5b65bf62.669eb8"]]},{"id":"f5047148.69fc68","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":2049.2500610351562,"y":1519.0002136230469,"z":"ecd400e4.7e3cd","wires":[[]]},{"id":"29cdf559.ca1eaa","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":1635.9999389648438,"y":2050.0001831054688,"z":"ecd400e4.7e3cd","wires":[["2fbded9d.71d2e2"]]},{"id":"56800ae7.a5f704","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":2094.7500610351562,"y":1476.2502136230469,"z":"ecd400e4.7e3cd","wires":[[]]},{"id":"f3f3244.993d5d8","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":2073.5000610351562,"y":1560.0002136230469,"z":"ecd400e4.7e3cd","wires":[[]]},{"id":"633d1701.4091a8","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":1627.2500610351562,"y":1637.5002136230469,"z":"ecd400e4.7e3cd","wires":[]},{"id":"7714e38d.36b9a4","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":2089.75,"y":1317.0834045410156,"z":"ecd400e4.7e3cd","wires":[]},{"id":"93e84d90.340078","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":2056,"y":1277.0834045410156,"z":"ecd400e4.7e3cd","wires":[]},{"id":"d17fe59a.3953d8","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":2104.7499389648438,"y":1222.083251953125,"z":"ecd400e4.7e3cd","wires":[]},{"id":"7600efdf.c93f7","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":1609.75,"y":1355.8333435058594,"z":"ecd400e4.7e3cd","wires":[]},{"id":"d5a817bf.40d818","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":1617.2498779296875,"y":1147.0834045410156,"z":"ecd400e4.7e3cd","wires":[[]]},{"id":"2fbded9d.71d2e2","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1917.2499389648438,"y":2101.2501831054688,"z":"ecd400e4.7e3cd","wires":[["7c36fcac.724384"]]},{"id":"7c36fcac.724384","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":2107.2499389648438,"y":2110.0001831054688,"z":"ecd400e4.7e3cd","wires":[]},{"id":"5b65bf62.669eb8","type":"set","name":"set consuming service-instance","xml":"<set>\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<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.consuming-service-instance-id' value='`$service-data.service-topology.service-topology-identifier.service-instance-id`' />\n","comments":"","x":664.0000610351562,"y":361.08343505859375,"z":"ecd400e4.7e3cd","wires":[]},{"id":"3216409f.ddf908","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":826.3055419921875,"y":692.7499694824219,"z":"ecd400e4.7e3cd","wires":[[]]},{"id":"88679ac8.e6e25","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":820.1944580078125,"y":794.9723510742188,"z":"ecd400e4.7e3cd","wires":[["fa60d02d.93243"]]},{"id":"a2c42524.6f687","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":1108.1942749023438,"y":810.361083984375,"z":"ecd400e4.7e3cd","wires":[["3dad1eb1.cf3592"]]},{"id":"3dad1eb1.cf3592","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1266.91650390625,"y":956.5,"z":"ecd400e4.7e3cd","wires":[["8001b05.27f695"]]},{"id":"8001b05.27f695","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1182,"y":1416.5,"z":"ecd400e4.7e3cd","wires":[["d512d66d.0b04b","d5a817bf.40d818","7600efdf.c93f7","1fcf0406.6ca354","c75aac33.bcb838","b54dc0bb.53e598","332e311a.704a56","a4d6fe94.d5efb","633d1701.4091a8","ac8b339d.25537"]]},{"id":"5b61d2f6.309134","type":"comment","name":"vnfidx ","info":"","comments":"","x":1428.2499389648438,"y":830.2500305175781,"z":"ecd400e4.7e3cd","wires":[]},{"id":"d512d66d.0b04b","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":1684.4999389648438,"y":1025.25,"z":"ecd400e4.7e3cd","wires":[["1bd3d02c.d5cd3"]]},{"id":"cfe4dc41.e3614","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":2189.6389770507812,"y":1094.9722595214844,"z":"ecd400e4.7e3cd","wires":[]},{"id":"20ee11ef.1a4046","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":606.3635559082031,"y":461.8182067871094,"z":"ecd400e4.7e3cd","wires":[["4410a476.e7419c"]]},{"id":"710c230b.5aad44","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":1077.4544982910156,"y":484.9090576171875,"z":"ecd400e4.7e3cd","wires":[["ecbc73ca.69e62"]]},{"id":"3ef68d67.22a6d2","type":"switchNode","name":"switch parameter name","xml":"<switch test='`$tmp.test1 == $tmp.consuming-service-instance-id`'>","comments":"","outputs":1,"x":1463,"y":616.7423706054688,"z":"ecd400e4.7e3cd","wires":[["5315da24.624c8c"]]},{"id":"5315da24.624c8c","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1631.5,"y":687.060546875,"z":"ecd400e4.7e3cd","wires":[["fe521292.47c1e"]]},{"id":"c1660858.96d478","type":"set","name":"set thisIsVGW","xml":"<set>\n<parameter name='tmp.thisIsVGW' value='true' />\n","comments":"","x":1978.8182373046875,"y":801.5454711914062,"z":"ecd400e4.7e3cd","wires":[]},{"id":"59e4ffe0.ab8b38","type":"set","name":"set thisIsVGW false","xml":"<set>\n<parameter name='tmp.thisIsVGW' value='false' />\n","comments":"","x":526.8181762695312,"y":411.81817626953125,"z":"ecd400e4.7e3cd","wires":[]},{"id":"b4fdc1d0.687e58","type":"switchNode","name":"switch thsIsVGW","xml":"<switch test='`$tmp.thisIsVGW`'>\n","comments":"","outputs":1,"x":338.3636474609375,"y":520.3637084960938,"z":"ecd400e4.7e3cd","wires":[["88c25d14.74fa5","9b8dd609.661cf8"]]},{"id":"88c25d14.74fa5","type":"other","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":361.090909090909,"y":602.1818181818181,"z":"ecd400e4.7e3cd","wires":[["fb8053dc.74e628"]]},{"id":"fb8053dc.74e628","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":542.6747436523438,"y":790.293701171875,"z":"ecd400e4.7e3cd","wires":[["3216409f.ddf908","88679ac8.e6e25"]]},{"id":"fa60d02d.93243","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":898.666748046875,"y":845.1112060546875,"z":"ecd400e4.7e3cd","wires":[["a2c42524.6f687","14253b4.3054045"]]},{"id":"ecbc73ca.69e62","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1232,"y":548.4444580078125,"z":"ecd400e4.7e3cd","wires":[["3ef68d67.22a6d2","7c99eecf.8882b8"]]},{"id":"1bd3d02c.d5cd3","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":1987.4166259765625,"y":1057.1944885253906,"z":"ecd400e4.7e3cd","wires":[["cfe4dc41.e3614"]]},{"id":"4410a476.e7419c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":691.6666666666665,"y":512.2222222222222,"z":"ecd400e4.7e3cd","wires":[["710c230b.5aad44"]]},{"id":"7c99eecf.8882b8","type":"set","name":"set txconns.tunnelxconn-allotted-resources.tunnelxconn-alloted-resource[$txidx].allotted-resource-data.tunnelxconn-topology.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<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`' />","comments":"","x":1334,"y":187,"z":"ecd400e4.7e3cd","wires":[]},{"id":"14253b4.3054045","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":1060,"y":736,"z":"ecd400e4.7e3cd","wires":[]},{"id":"1fcf0406.6ca354","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":1598.25,"y":951.5,"z":"ecd400e4.7e3cd","wires":[]},{"id":"c75aac33.bcb838","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":1534.5,"y":1416.5,"z":"ecd400e4.7e3cd","wires":[]},{"id":"b54dc0bb.53e598","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":1572.0000610351562,"y":1822.2499389648438,"z":"ecd400e4.7e3cd","wires":[]},{"id":"c73039d5.8482e8","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":1508.2500610351562,"y":1877.7499389648438,"z":"ecd400e4.7e3cd","wires":[[]]},{"id":"332e311a.704a56","type":"set","name":"set tmp.vfmodule.param_length","xml":"<set>\n<parameter name='tmp.vfmodule.param_length' value='`$tmp.endLoop1`' />\n","comments":"","x":1618.2501831054688,"y":1089,"z":"ecd400e4.7e3cd","wires":[]},{"id":"573eb1da.bd7c1","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1259.5,"y":1636.5,"z":"ecd400e4.7e3cd","wires":[]},{"id":"a4d6fe94.d5efb","type":"for","name":"for paramIdx to set VNI","xml":"<for index='paramIdx' start='0' end='`$tmp.vfmodule.param_length`' >\n","comments":"","outputs":1,"x":1607,"y":1736.5,"z":"ecd400e4.7e3cd","wires":[["b708abc8.8af15"]]},{"id":"32d12113.25874e","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":2104.5,"y":1805.25,"z":"ecd400e4.7e3cd","wires":[["d89f78c6.0ed118"]]},{"id":"d89f78c6.0ed118","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2422,"y":1832.75,"z":"ecd400e4.7e3cd","wires":[["290b1a68.798296"]]},{"id":"290b1a68.798296","type":"set","name":"set vni in tmp.vfmodule.param","xml":"<set>\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":2634.5,"y":1870.25,"z":"ecd400e4.7e3cd","wires":[]},{"id":"ac8b339d.25537","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":1597,"y":1686.5,"z":"ecd400e4.7e3cd","wires":[]},{"id":"b708abc8.8af15","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1813.25,"y":1731.5,"z":"ecd400e4.7e3cd","wires":[["32d12113.25874e","8d15a992.b4eaa"]]},{"id":"bcc180fb.a085f8","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":2092.0000610351562,"y":1724,"z":"ecd400e4.7e3cd","wires":[]},{"id":"91617dc.d84638","type":"comment","name":"let md-sal helper save data so no need for the RESTAPICAll Node","info":"","comments":"","x":1604.4999084472656,"y":1976.5,"z":"ecd400e4.7e3cd","wires":[]},{"id":"ce85b4c1.5261a8","type":"comment","name":" using path from calling DG - these nodes for testing","info":"","comments":"","x":2087,"y":1427.75,"z":"ecd400e4.7e3cd","wires":[]},{"id":"7c8c3457.7b7a54","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":581,"y":313,"z":"ecd400e4.7e3cd","wires":[]},{"id":"8e5b5b63.4d5608","type":"set","name":"set VGW2BRG-MACADDRESs & consuming service-instance","xml":"<set>\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<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.consuming-service-instance-id' value='`$service-data.service-topology.service-topology-identifier.service-instance-id`' />\n","comments":"","x":2121,"y":734,"z":"ecd400e4.7e3cd","wires":[]},{"id":"fe521292.47c1e","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1777,"y":717,"z":"ecd400e4.7e3cd","wires":[["c1660858.96d478","8e5b5b63.4d5608","e1791278.975078"]]},{"id":"e1791278.975078","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":2095,"y":671,"z":"ecd400e4.7e3cd","wires":[]},{"id":"9b8dd609.661cf8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":301,"y":761,"z":"ecd400e4.7e3cd","wires":[["655a26ce.271898"]]},{"id":"5c61a2e.ac4ccdc","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":559,"y":927,"z":"ecd400e4.7e3cd","wires":[]},{"id":"655a26ce.271898","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":313,"y":839,"z":"ecd400e4.7e3cd","wires":[["5c61a2e.ac4ccdc"]]},{"id":"5669f615.7ed478","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":509,"y":876,"z":"ecd400e4.7e3cd","wires":[[]]},{"id":"8d15a992.b4eaa","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":2098,"y":1870,"z":"ecd400e4.7e3cd","wires":[["5bf23ed2.af844"]]},{"id":"5bf23ed2.af844","type":"success","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2415.5,"y":1897.5,"z":"ecd400e4.7e3cd","wires":[["7c18fafa.f033b4"]]},{"id":"7c18fafa.f033b4","type":"set","name":"set lan-ip[ in tmp.vfmodule.param","xml":"<set>\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":2628,"y":1935,"z":"ecd400e4.7e3cd","wires":[]},{"id":"abd8f89a.2207a","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1850,"y":1872,"z":"ecd400e4.7e3cd","wires":[]}]
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 0d091b4b..dc299bb8 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,654 +1 @@
-[
- {
- "id":"89ae3f75.efc06",
- "type":"dgstart",
- "name":"DGSTART",
- "outputs":1,
- "x":141,
- "y":83,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "a0627d9f.9732f8"
- ]
- ]
- },
- {
- "id":"a0627d9f.9732f8",
- "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":237.23807907104492,
- "y":143.95239067077637,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "d2b128d2.d9f3b"
- ]
- ]
- },
- {
- "id":"d2b128d2.d9f3b",
- "type":"method",
- "name":"tunnelxconn-topology-operation-activate",
- "xml":"<method rpc='tunnelxconn-topology-operation-activate' mode='sync'>\n",
- "comments":"",
- "outputs":1,
- "x":283.15485763549805,
- "y":179.19044589996338,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "e0a0d26a.cd7c18"
- ]
- ]
- },
- {
- "id":"e0a0d26a.cd7c18",
- "type":"block",
- "name":"block : atomic",
- "xml":"<block atomic=\"true\">",
- "atomic":"true",
- "comments":"",
- "outputs":1,
- "x":191.47619247436523,
- "y":322.5237879753113,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "3595ac23.ea8734",
- "f82799c8.167508",
- "e00d09b3.2a3938",
- "2679eac0.b2cc36",
- "1a8f12fd.5ade8d",
- "d30bace3.5a7f2",
- "6c7cdfc8.6b2608",
- "e60cbd81.14ee9",
- "e233eb48.73f8b",
- "69d61c38.40caa4",
- "d2103b31.1f83e8",
- "3936aa7e.049e66"
- ]
- ]
- },
- {
- "id":"f82799c8.167508",
- "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":458.0001106262207,
- "y":992.2145080566406,
- "z":"307d8ab2.24f886",
- "wires":[
-
- ]
- },
- {
- "id":"3595ac23.ea8734",
- "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":486.75402450561523,
- "y":956.3370542526245,
- "z":"307d8ab2.24f886",
- "wires":[
-
- ]
- },
- {
- "id":"69d61c38.40caa4",
- "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":497.7542190551758,
- "y":703.0514001846313,
- "z":"307d8ab2.24f886",
- "wires":[
-
- ]
- },
- {
- "id":"2679eac0.b2cc36",
- "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.73806381225586,
- "y":296.33332538604736,
- "z":"307d8ab2.24f886",
- "wires":[
-
- ]
- },
- {
- "id":"e00d09b3.2a3938",
- "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.9973258972168,
- "y":262.59259128570557,
- "z":"307d8ab2.24f886",
- "wires":[
-
- ]
- },
- {
- "id":"1a8f12fd.5ade8d",
- "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.9934196472168,
- "y":332.23152446746826,
- "z":"307d8ab2.24f886",
- "wires":[
- [
-
- ]
- ]
- },
- {
- "id":"6c7cdfc8.6b2608",
- "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":522.5187530517578,
- "y":493.4594917297363,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "4b2d666b.abe658",
- "c5e31c5.77e05e"
- ]
- ]
- },
- {
- "id":"d30bace3.5a7f2",
- "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.0648536682129,
- "y":392.0172290802002,
- "z":"307d8ab2.24f886",
- "wires":[
- [
-
- ]
- ]
- },
- {
- "id":"4b2d666b.abe658",
- "type":"success",
- "name":"success",
- "xml":"<outcome value='success'>\n",
- "comments":"",
- "outputs":1,
- "x":779.8148918151855,
- "y":492.26725220680237,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "56d62b25.1f49bc"
- ]
- ]
- },
- {
- "id":"e60cbd81.14ee9",
- "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":530.5293121337891,
- "y":846.4341316223145,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "46ade8d5.b547e",
- "20a825ec.94755a",
- "ce5466bc.b050b"
- ]
- ]
- },
- {
- "id":"46ade8d5.b547e",
- "type":"not-found",
- "name":"not-found",
- "xml":"<outcome value='not-found'>\n",
- "comments":"",
- "outputs":1,
- "x":800.837329864502,
- "y":899.432332418859,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "83dde006.65958"
- ]
- ]
- },
- {
- "id":"20a825ec.94755a",
- "type":"failure",
- "name":"failure",
- "xml":"<outcome value='failure'>\n",
- "comments":"",
- "outputs":1,
- "x":791.8373794555664,
- "y":867.9323581680655,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "83dde006.65958"
- ]
- ]
- },
- {
- "id":"ce5466bc.b050b",
- "type":"success",
- "name":"success",
- "xml":"<outcome value='success'>\n",
- "comments":"",
- "outputs":1,
- "x":795.5874176025391,
- "y":838.2894630432129,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "f7831c73.19aa18"
- ]
- ]
- },
- {
- "id":"83dde006.65958",
- "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":961.5874176025391,
- "y":868.6823820099235,
- "z":"307d8ab2.24f886",
- "wires":[
-
- ]
- },
- {
- "id":"56d62b25.1f49bc",
- "type":"block",
- "name":"block: atomic",
- "xml":"<block atomic=\"true\">\n",
- "atomic":"false",
- "comments":"",
- "outputs":1,
- "x":960.8148460388184,
- "y":492.7672016620636,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "e624279a.12ec8",
- "a31618b2.409b8"
- ]
- ]
- },
- {
- "id":"e624279a.12ec8",
- "type":"switchNode",
- "name":"switch tx length",
- "xml":"<switch test='`$mdsal-ar.tunnelxconn-allotted-resource_length`'>\n",
- "comments":"",
- "outputs":1,
- "x":1206.6720924377441,
- "y":527.052964925766,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "3cddd823.41afe"
- ]
- ]
- },
- {
- "id":"3cddd823.41afe",
- "type":"other",
- "name":"outcome 1",
- "xml":"<outcome value='1'>\n",
- "comments":"",
- "outputs":1,
- "x":1397.6720962524414,
- "y":527.0529625415802,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "6be9fe1e.f9c138"
- ]
- ]
- },
- {
- "id":"d7146c6d.b9cef8",
- "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":1797.5292320251465,
- "y":527.6243867874146,
- "z":"307d8ab2.24f886",
- "wires":[
-
- ]
- },
- {
- "id":"6be9fe1e.f9c138",
- "type":"block",
- "name":"block: atomic",
- "xml":"<block atomic='true'>\n",
- "atomic":"false",
- "comments":"",
- "outputs":1,
- "x":1568.5290794372559,
- "y":527.6244316101074,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "d7146c6d.b9cef8",
- "357a7eb2.2788c2",
- "aecdfd17.ff094"
- ]
- ]
- },
- {
- "id":"357a7eb2.2788c2",
- "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":1795.5294761657715,
- "y":595.0529508590698,
- "z":"307d8ab2.24f886",
- "wires":[
-
- ]
- },
- {
- "id":"787114c9.2806c4",
- "type":"comment",
- "name":"GET tunnelxconn-allotted-resource from mdsal",
- "info":"",
- "comments":"",
- "x":547.8148155212402,
- "y":456.7671926021576,
- "z":"307d8ab2.24f886",
- "wires":[
-
- ]
- },
- {
- "id":"aecdfd17.ff094",
- "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":1805.52925491333,
- "y":560.6243848800659,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "60364cde.e8654c",
- "5dbfe46e.a42744"
- ]
- ]
- },
- {
- "id":"60364cde.e8654c",
- "type":"outcome",
- "name":"outcome Created",
- "xml":"<outcome value='Created'>\n",
- "comments":"",
- "outputs":1,
- "x":2017.1292114257812,
- "y":521.6243848800659,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "2e5253bb.935b44"
- ]
- ]
- },
- {
- "id":"5dbfe46e.a42744",
- "type":"outcome",
- "name":"outcome Other",
- "xml":"<outcome value='Other'>\n",
- "comments":"",
- "outputs":1,
- "x":2042.8435859680176,
- "y":557.052975654602,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "2e5253bb.935b44"
- ]
- ]
- },
- {
- "id":"3137dae9.e2b426",
- "type":"comment",
- "name":"Set allotted-resource-identifiers",
- "info":"",
- "comments":"",
- "x":503.33863830566406,
- "y":547.3386459350586,
- "z":"307d8ab2.24f886",
- "wires":[
-
- ]
- },
- {
- "id":"a31618b2.409b8",
- "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":1286.3864250183105,
- "y":492.76729369163513,
- "z":"307d8ab2.24f886",
- "wires":[
-
- ]
- },
- {
- "id":"f725e409.258e68",
- "type":"comment",
- "name":"Create urls for restapi",
- "info":"",
- "comments":"",
- "x":458.9576606750488,
- "y":361.6243562698364,
- "z":"307d8ab2.24f886",
- "wires":[
-
- ]
- },
- {
- "id":"f7831c73.19aa18",
- "type":"block",
- "name":"block",
- "xml":"<block>\n",
- "atomic":"false",
- "comments":"",
- "outputs":1,
- "x":937.2433853149414,
- "y":834.481632232666,
- "z":"307d8ab2.24f886",
- "wires":[
- [
-
- ]
- ]
- },
- {
- "id":"6917ca0.586c538",
- "type":"comment",
- "name":"TO DO: vnf/put parent",
- "info":"",
- "comments":"",
- "x":461.2433776855469,
- "y":735.1481952667236,
- "z":"307d8ab2.24f886",
- "wires":[
-
- ]
- },
- {
- "id":"e233eb48.73f8b",
- "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":445.24338150024414,
- "y":664.4815549850464,
- "z":"307d8ab2.24f886",
- "wires":[
- [
-
- ]
- ]
- },
- {
- "id":"c5e31c5.77e05e",
- "type":"other",
- "name":"other",
- "xml":"<outcome value='Other'>\n",
- "comments":"",
- "outputs":1,
- "x":779.5766868591309,
- "y":528.4814250469208,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "dd1ff459.39f8a8"
- ]
- ]
- },
- {
- "id":"dd1ff459.39f8a8",
- "type":"block",
- "name":"block: atomic",
- "xml":"<block atomic=\"true\">\n",
- "atomic":"false",
- "comments":"",
- "outputs":1,
- "x":959.5766372680664,
- "y":529.1479756832123,
- "z":"307d8ab2.24f886",
- "wires":[
- [
-
- ]
- ]
- },
- {
- "id":"d2103b31.1f83e8",
- "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":428.24342346191406,
- "y":584.1481666564941,
- "z":"307d8ab2.24f886",
- "wires":[
-
- ]
- },
- {
- "id":"2e5253bb.935b44",
- "type":"block",
- "name":"block",
- "xml":"<block>\n",
- "atomic":"false",
- "comments":"",
- "outputs":1,
- "x":2231.5997276306152,
- "y":523.0000190734863,
- "z":"307d8ab2.24f886",
- "wires":[
- [
-
- ]
- ]
- },
- {
- "id":"3936aa7e.049e66",
- "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":488.85716247558594,
- "y":768.2380628585815,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "578afeed.16a8f8",
- "fb8f774e.d3d13"
- ]
- ]
- },
- {
- "id":"578afeed.16a8f8",
- "type":"failure",
- "name":"failure",
- "xml":"<outcome value='failure'>\n",
- "comments":"",
- "outputs":1,
- "x":744.6190567016602,
- "y":751.1905598640442,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "9bc7661.b85f498"
- ]
- ]
- },
- {
- "id":"9bc7661.b85f498",
- "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":911.142936706543,
- "y":762.8096308708191,
- "z":"307d8ab2.24f886",
- "wires":[
-
- ]
- },
- {
- "id":"fb8f774e.d3d13",
- "type":"failure",
- "name":"not-found",
- "xml":"<outcome value='not-found'>\n",
- "comments":"",
- "outputs":1,
- "x":751.7143440246582,
- "y":783.9525275230408,
- "z":"307d8ab2.24f886",
- "wires":[
- [
- "9bc7661.b85f498"
- ]
- ]
- }
-] \ No newline at end of file
+[{"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":[]}]
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 018d9ab9..3eb11bb6 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":"1ca16a80.2caae6","type":"dgstart","name":"DGSTART","outputs":1,"x":124,"y":75,"z":"1199f92b.84c70f","wires":[["b4f4cd99.19211"]]},{"id":"b4f4cd99.19211","type":"service-logic","name":"GENERIC-RESOURCE-API 1.2.0-SNAPSHOT-111501","module":"GENERIC-RESOURCE-API","version":"${project.version}","comments":"","xml":"<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>","outputs":1,"x":220.23807907104492,"y":135.95239067077637,"z":"1199f92b.84c70f","wires":[["d56de4ee.d84328"]]},{"id":"d56de4ee.d84328","type":"method","name":"tunnelxconn-topology-operation-assign","xml":"<method rpc='tunnelxconn-topology-operation-assign' mode='sync'>\n","comments":"","outputs":1,"x":271.15485763549805,"y":171.19044589996338,"z":"1199f92b.84c70f","wires":[["d1f80a72.54dcb8"]]},{"id":"d1f80a72.54dcb8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":174.47619247436523,"y":314.5237879753113,"z":"1199f92b.84c70f","wires":[["3884d063.bf017","fec1a8b3.26b3b8","dc03e4ee.d84988","c7b45e35.5d99f8","c3103460.280e18"]]},{"id":"6305c3b7.10e66c","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":1017.6666564941406,"y":2241.5477046966553,"z":"1199f92b.84c70f","wires":[]},{"id":"9d5729f3.96cf18","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":1054.7540550231934,"y":2120.432439804077,"z":"1199f92b.84c70f","wires":[]},{"id":"738ca6aa.bf5888","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":1141.9129028320312,"y":1504.0673217773438,"z":"1199f92b.84c70f","wires":[]},{"id":"fec1a8b3.26b3b8","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":620.738037109375,"y":182.33331298828125,"z":"1199f92b.84c70f","wires":[]},{"id":"3884d063.bf017","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":668.997314453125,"y":138.59259033203125,"z":"1199f92b.84c70f","wires":[]},{"id":"6fb8a35e.f42ca4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":807.8148803710938,"y":354.26727294921875,"z":"1199f92b.84c70f","wires":[["28cd7780.0973c"]]},{"id":"295904fd.98be34","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":1147.8626251220703,"y":1762.1008231639862,"z":"1199f92b.84c70f","wires":[["cb9d6154.6f8f1","231c9fc8.2d02a","2e60fcec.47401c"]]},{"id":"cb9d6154.6f8f1","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1416.5040016174316,"y":1813.4322349056602,"z":"1199f92b.84c70f","wires":[["f260fd29.62cf58"]]},{"id":"231c9fc8.2d02a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1407.504051208496,"y":1781.9322606548667,"z":"1199f92b.84c70f","wires":[["f260fd29.62cf58"]]},{"id":"2e60fcec.47401c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1411.2540893554688,"y":1752.289365530014,"z":"1199f92b.84c70f","wires":[["3a94b596.f511e2"]]},{"id":"f260fd29.62cf58","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":1573.254150390625,"y":1809.6822509765625,"z":"1199f92b.84c70f","wires":[]},{"id":"33187c4e.932ecc","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":1157.5294189453125,"y":455.05291748046875,"z":"1199f92b.84c70f","wires":[]},{"id":"ce3cfb1b.f5d3d8","type":"comment","name":"Save consumed-allotted-resources to mdsal","info":"","comments":"","x":1184.2435302734375,"y":1277.7196044921875,"z":"1199f92b.84c70f","wires":[]},{"id":"8519e347.276768","type":"comment","name":"GET tunnelxconn-allotted-resource from mdsal","info":"","comments":"","x":530.8148193359375,"y":324.7672119140625,"z":"1199f92b.84c70f","wires":[]},{"id":"28cd7780.0973c","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":1117.129150390625,"y":349.6243896484375,"z":"1199f92b.84c70f","wires":[]},{"id":"6f7f8e99.efeab8","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":1167.38623046875,"y":548.6243896484375,"z":"1199f92b.84c70f","wires":[]},{"id":"85ef761e.bb2e3","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":1194.338623046875,"y":507.338623046875,"z":"1199f92b.84c70f","wires":[]},{"id":"d94d86ae.bd2ba8","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":1184.38623046875,"y":856.910400390625,"z":"1199f92b.84c70f","wires":[]},{"id":"4d3ca425.12572c","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":1212.957763671875,"y":591.9100952148438,"z":"1199f92b.84c70f","wires":[]},{"id":"bdc469ae.366338","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":1193.8148193359375,"y":631.195809841156,"z":"1199f92b.84c70f","wires":[["5ea1f53b.39ee54"]]},{"id":"5ea1f53b.39ee54","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1420.9576988220215,"y":632.6243271827698,"z":"1199f92b.84c70f","wires":[["c782a715.0e0b3"]]},{"id":"c782a715.0e0b3","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":1622.38627243042,"y":632.0528798103333,"z":"1199f92b.84c70f","wires":[]},{"id":"86a14329.ea84b8","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":1165.2434158325195,"y":665.4815106391907,"z":"1199f92b.84c70f","wires":[["53567faf.2247e8"]]},{"id":"53567faf.2247e8","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1366.6719818115234,"y":666.0529322624207,"z":"1199f92b.84c70f","wires":[["d22c735a.1eff98"]]},{"id":"d22c735a.1eff98","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":1559.529140472412,"y":666.0528540611267,"z":"1199f92b.84c70f","wires":[]},{"id":"466f1f08.f7d4a8","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":1173.8148193359375,"y":707.338623046875,"z":"1199f92b.84c70f","wires":[["a33759a6.7c7e48"]]},{"id":"a33759a6.7c7e48","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1423.8148002624512,"y":698.3386225700378,"z":"1199f92b.84c70f","wires":[["a1dd22b5.33d6d"]]},{"id":"a1dd22b5.33d6d","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":1616.6719589233398,"y":698.3385443687439,"z":"1199f92b.84c70f","wires":[]},{"id":"9057c540.68dbd","type":"switchNode","name":"switch ar-model.ecomp-generated-naming","xml":"<switch test='`$ar-model.ecomp-generated-naming`'>\n","comments":"","outputs":1,"x":1237.38623046875,"y":800.7672729492188,"z":"1199f92b.84c70f","wires":[["335debba.1fe934","fe69e334.1d80a8"]]},{"id":"335debba.1fe934","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1523.3862915039062,"y":800.1958618164062,"z":"1199f92b.84c70f","wires":[["45257bd.1a2fa04"]]},{"id":"45257bd.1a2fa04","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"true","comments":"","outputs":1,"x":1677.1363525390625,"y":802.69580078125,"z":"1199f92b.84c70f","wires":[["bff7f73d.9b8c2"]]},{"id":"fe69e334.1d80a8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1542.608642578125,"y":889.1958618164062,"z":"1199f92b.84c70f","wires":[["565fbb98.b1aca4"]]},{"id":"565fbb98.b1aca4","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":1725.608642578125,"y":894.1958618164062,"z":"1199f92b.84c70f","wires":[]},{"id":"bff7f73d.9b8c2","type":"switchNode","name":"switch ar-model.ecomp-generated-naming","xml":"<switch test='`$ar-model.naming-policy`'>\n","comments":"","outputs":1,"x":1813.38623046875,"y":851.767333984375,"z":"1199f92b.84c70f","wires":[["1f60cb20.1aa2cd","7b3bbb.df36bc44"]]},{"id":"1f60cb20.1aa2cd","type":"other","name":"outcome oam_network_policy","xml":"<outcome value='oam_network_policy'>\n","comments":"","outputs":1,"x":2188.244140625,"y":855.3453369140625,"z":"1199f92b.84c70f","wires":[["9c860bec.e0d66"]]},{"id":"7b3bbb.df36bc44","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2102.671875,"y":932.1958618164062,"z":"1199f92b.84c70f","wires":[["9c860bec.e0d66"]]},{"id":"5116d261.6590bc","type":"set","name":"set ar_name","xml":"<set>\n<parameter name='tmp.ar-name' value='$TenantOAMNetworkRole_$LandingNetworkRole_SZ' />\n","comments":"","x":2494.100830078125,"y":890.7672729492188,"z":"1199f92b.84c70f","wires":[]},{"id":"35817794.2e25d8","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":2638.2437858581543,"y":934.6244196891785,"z":"1199f92b.84c70f","wires":[[]]},{"id":"1501141a.25d134","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":2625.243896484375,"y":974.7672729492188,"z":"1199f92b.84c70f","wires":[[]]},{"id":"9c860bec.e0d66","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":2302.5292015075684,"y":930.3387522697449,"z":"1199f92b.84c70f","wires":[["5116d261.6590bc","35817794.2e25d8","1501141a.25d134","91c79897.77cff"]]},{"id":"91c79897.77cff","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":2583.1005859375,"y":1025.052978515625,"z":"1199f92b.84c70f","wires":[]},{"id":"ea18351a.e0da4","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":1159.8624267578125,"y":1233.6246337890625,"z":"1199f92b.84c70f","wires":[]},{"id":"c4d9f4e0.851328","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":1127.529052734375,"y":1153.052978515625,"z":"1199f92b.84c70f","wires":[]},{"id":"ca4f6251.f676b8","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":2210.8155822753906,"y":1335.0411586761475,"z":"1199f92b.84c70f","wires":[["d07b60e4.6703d"]]},{"id":"73b9e044.1a28b8","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":1216.8148193359375,"y":1328.505126953125,"z":"1199f92b.84c70f","wires":[["73760181.c95de","c367e332.923428"]]},{"id":"73760181.c95de","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1617.207763671875,"y":1307.1124267578125,"z":"1199f92b.84c70f","wires":[["1b189b0a.078ec5"]]},{"id":"c367e332.923428","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1609.957763671875,"y":1388.1124267578125,"z":"1199f92b.84c70f","wires":[["fd2f3b36.28b57"]]},{"id":"d07b60e4.6703d","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":2645.4106826782227,"y":1336.85085105896,"z":"1199f92b.84c70f","wires":[["a97263bc.410ad8"]]},{"id":"a97263bc.410ad8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2852.220375061035,"y":1340.064962387085,"z":"1199f92b.84c70f","wires":[["73531849.83f63"]]},{"id":"fd2f3b36.28b57","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1776.8349609375,"y":1382.488525390625,"z":"1199f92b.84c70f","wires":[["ca4f6251.f676b8","5ef04c10.686ff4"]]},{"id":"73531849.83f63","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3020.4817276000977,"y":1344.9222631454468,"z":"1199f92b.84c70f","wires":[["85f4a2a6.ccdab"]]},{"id":"1b189b0a.078ec5","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":1802.0648193359375,"y":1310.32666015625,"z":"1199f92b.84c70f","wires":[]},{"id":"85f4a2a6.ccdab","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":3266.3391876220703,"y":1339.4937419891357,"z":"1199f92b.84c70f","wires":[]},{"id":"f16149e7.134fe","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":1152.6720123291016,"y":1387.826681137085,"z":"1199f92b.84c70f","wires":[]},{"id":"3a94b596.f511e2","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1552.910057067871,"y":1748.4815347194672,"z":"1199f92b.84c70f","wires":[[]]},{"id":"d73436ab.76504","type":"comment","name":"Add SZ AR to mdsal","info":"","comments":"","x":1079.148193359375,"y":1698.1956787109375,"z":"1199f92b.84c70f","wires":[]},{"id":"cabff161.c1c3f8","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":1094.592529296875,"y":1447.2275390625,"z":"1199f92b.84c70f","wires":[[]]},{"id":"4ebb5534.09aedc","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":813.57666015625,"y":405.4814453125,"z":"1199f92b.84c70f","wires":[["e7607939.f160a8"]]},{"id":"b542ce05.d12118","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":761.57666015625,"y":901.2908325195312,"z":"1199f92b.84c70f","wires":[["f16149e7.134fe","cabff161.c1c3f8","738ca6aa.bf5888","295904fd.98be34","9d5729f3.96cf18","6305c3b7.10e66c","ae407ab9.d8441","33187c4e.932ecc","6f7f8e99.efeab8","4d3ca425.12572c","bdc469ae.366338","86a14329.ea84b8","466f1f08.f7d4a8","9057c540.68dbd","d94d86ae.bd2ba8","782f995b.c7ea4","1cd93a58.c40ea6","fe6f8a49.b66388","c4d9f4e0.851328","ea18351a.e0da4","73b9e044.1a28b8","fab7807f.a82bb8","ce575bb9.3832c8","c10b9954.5aad48","f67d8a3f.eb864","bb370f0b.999ba8"]]},{"id":"ae407ab9.d8441","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":1132.2434387207031,"y":411.433837890625,"z":"1199f92b.84c70f","wires":[]},{"id":"f67d8a3f.eb864","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":1119.38623046875,"y":1625.799072265625,"z":"1199f92b.84c70f","wires":[["e851470f.6820c","a2e69f5d.317138"]]},{"id":"e851470f.6820c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1369.814842224121,"y":1612.5292553901672,"z":"1199f92b.84c70f","wires":[["10169d60.8e8cf3"]]},{"id":"10169d60.8e8cf3","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":1538.3387451171875,"y":1614.1483154296875,"z":"1199f92b.84c70f","wires":[]},{"id":"a2e69f5d.317138","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1380.91015625,"y":1667.291259765625,"z":"1199f92b.84c70f","wires":[["10169d60.8e8cf3"]]},{"id":"5ef04c10.686ff4","type":"switchNode","name":"switch tmp.found-cidx","xml":"<switch test='`$tmp.found-cidx`'>\n","comments":"","outputs":1,"x":2025.743423461914,"y":1581.2315921783447,"z":"1199f92b.84c70f","wires":[["110b5f4d.dfc181"]]},{"id":"110b5f4d.dfc181","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2215.743377685547,"y":1581.2315292358398,"z":"1199f92b.84c70f","wires":[["aa9b2d21.01bc9"]]},{"id":"aa9b2d21.01bc9","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2381.743377685547,"y":1581.2315292358398,"z":"1199f92b.84c70f","wires":[["c1ca7ac4.055b78"]]},{"id":"c1ca7ac4.055b78","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":2627.600706100464,"y":1581.8030033111572,"z":"1199f92b.84c70f","wires":[]},{"id":"9b8ea20.c5d2ae","type":"break","name":"break","xml":"<break/>\n","comments":"","x":3185.243408203125,"y":1384.731689453125,"z":"1199f92b.84c70f","wires":[]},{"id":"ea9a4916.25e128","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":1903.9521980285645,"y":1748.1904199123383,"z":"1199f92b.84c70f","wires":[["7ba04dee.e05774","30df0c18.2b414c","9b5f8936.710398"]]},{"id":"d07e3308.ff7ba8","type":"comment","name":"Rollback parent","info":"","comments":"","x":1747.9521255493164,"y":1717.8570504188538,"z":"1199f92b.84c70f","wires":[]},{"id":"7ba04dee.e05774","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2275.2602462768555,"y":1808.8553862571716,"z":"1199f92b.84c70f","wires":[["96ad59c0.bb63a"]]},{"id":"30df0c18.2b414c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2266.26029586792,"y":1777.3554120063782,"z":"1199f92b.84c70f","wires":[["96ad59c0.bb63a"]]},{"id":"9b5f8936.710398","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2270.0103340148926,"y":1747.7125168815255,"z":"1199f92b.84c70f","wires":[["96ad59c0.bb63a"]]},{"id":"96ad59c0.bb63a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2411.666301727295,"y":1743.9046860709786,"z":"1199f92b.84c70f","wires":[[]]},{"id":"91997441.0b5168","type":"comment","name":"Generate naming","info":"","comments":"","x":1168.3862762451172,"y":758.7672252655029,"z":"1199f92b.84c70f","wires":[]},{"id":"dc03e4ee.d84988","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,"y":227,"z":"1199f92b.84c70f","wires":[[]]},{"id":"e8e8f95a.c2474","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":177,"y":535,"z":"1199f92b.84c70f","wires":[[]]},{"id":"574e94fb.ac4614","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":889,"y":502,"z":"1199f92b.84c70f","wires":[["b542ce05.d12118"]]},{"id":"93178853.42eb18","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":702,"y":603,"z":"1199f92b.84c70f","wires":[["b5b183ef.628608"]]},{"id":"b5b183ef.628608","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":629,"y":664,"z":"1199f92b.84c70f","wires":[]},{"id":"af858bf.c7af2f8","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":1679,"y":948,"z":"1199f92b.84c70f","wires":[["6cc5d5d9.577a24"]]},{"id":"6cc5d5d9.577a24","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":1801,"y":1040,"z":"1199f92b.84c70f","wires":[["40106979.3c1f68","6c9f5586.8d3acc"]]},{"id":"40106979.3c1f68","type":"other","name":"vgmux_private_ip_0","xml":"<outcome value='vgmux_private_ip_0'>\n","comments":"","outputs":1,"x":2027,"y":1044,"z":"1199f92b.84c70f","wires":[["b789fdcd.90ae68"]]},{"id":"e8306c65.d29578","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":2259.9999771118164,"y":1105.0000400543213,"z":"1199f92b.84c70f","wires":[]},{"id":"6c9f5586.8d3acc","type":"other","name":"vgmux_private_ip_2","xml":"<outcome value='vgmux_private_ip_2'>\n","comments":"","outputs":1,"x":2029,"y":1104,"z":"1199f92b.84c70f","wires":[["e8306c65.d29578"]]},{"id":"b789fdcd.90ae68","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":2249.9999771118164,"y":1047.0000381469727,"z":"1199f92b.84c70f","wires":[]},{"id":"782f995b.c7ea4","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":1159,"y":902,"z":"1199f92b.84c70f","wires":[]},{"id":"c7b45e35.5d99f8","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":609,"y":270,"z":"1199f92b.84c70f","wires":[[]]},{"id":"fe6f8a49.b66388","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":1225,"y":1023,"z":"1199f92b.84c70f","wires":[[]]},{"id":"1cd93a58.c40ea6","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":1178,"y":986,"z":"1199f92b.84c70f","wires":[]},{"id":"c3103460.280e18","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":533,"y":405,"z":"1199f92b.84c70f","wires":[["6fb8a35e.f42ca4","4ebb5534.09aedc"]]},{"id":"fab7807f.a82bb8","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":1226,"y":943,"z":"1199f92b.84c70f","wires":[["821280c.218ce8"]]},{"id":"821280c.218ce8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1488,"y":945,"z":"1199f92b.84c70f","wires":[["af858bf.c7af2f8"]]},{"id":"ce575bb9.3832c8","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":1237,"y":1064,"z":"1199f92b.84c70f","wires":[[]]},{"id":"c10b9954.5aad48","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":1124,"y":1193,"z":"1199f92b.84c70f","wires":[]},{"id":"97512ae7.66d038","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":232,"y":483,"z":"1199f92b.84c70f","wires":[]},{"id":"e7607939.f160a8","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":629,"y":502,"z":"1199f92b.84c70f","wires":[["574e94fb.ac4614","93178853.42eb18"]]},{"id":"bb370f0b.999ba8","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":1173.4443969726562,"y":1560.666748046875,"z":"1199f92b.84c70f","wires":[]},{"id":"81296acf.9afab8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":778.8888888888889,"y":1563.3333333333333,"z":"1199f92b.84c70f","wires":[]},{"id":"c87576f3.85ee38","type":"comment","name":"map input to service-data request info","info":"","comments":"","x":1453.3334350585938,"y":1538.888671875,"z":"1199f92b.84c70f","wires":[]},{"id":"f0b09585.ceb66","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":773,"y":1148,"z":"1199f92b.84c70f","wires":[]}]
+[{"id":"f857cf6.10b033","type":"dgstart","name":"DGSTART","outputs":1,"x":167,"y":56,"z":"70167245.99734c","wires":[["3c005c61.e4129c"]]},{"id":"3c005c61.e4129c","type":"service-logic","name":"GENERIC-RESOURCE-API 1.2.-SNAPSHOT-111604","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":263.2380790710449,"y":116.95239067077637,"z":"70167245.99734c","wires":[["babb4094.95036"]]},{"id":"babb4094.95036","type":"method","name":"tunnelxconn-topology-operation-assign","xml":"<method rpc='tunnelxconn-topology-operation-assign' mode='sync'>\n","comments":"","outputs":1,"x":314.15485763549805,"y":152.19044589996338,"z":"70167245.99734c","wires":[["a8be1828.b146a"]]},{"id":"a8be1828.b146a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":217.47619247436523,"y":295.5237879753113,"z":"70167245.99734c","wires":[["fbfb6c9e.cec218","12281898.8cf38f","672f96a5.399d08","e87814.4ba7d7f","e83faf33.14e778"]]},{"id":"3260586c.270db","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":1060.6666564941406,"y":2222.5477046966553,"z":"70167245.99734c","wires":[]},{"id":"9ee5048e.19ac7","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":1097.7540550231934,"y":2101.432439804077,"z":"70167245.99734c","wires":[]},{"id":"f85d83c4.298b4","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":1186.912841796875,"y":1449.0673828125,"z":"70167245.99734c","wires":[]},{"id":"12281898.8cf38f","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":663.738037109375,"y":163.33331298828125,"z":"70167245.99734c","wires":[]},{"id":"fbfb6c9e.cec218","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":711.997314453125,"y":119.59259033203125,"z":"70167245.99734c","wires":[]},{"id":"96b29550.58fc4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":850.8148803710938,"y":335.26727294921875,"z":"70167245.99734c","wires":[["d5a1496.3dfd238"]]},{"id":"67eda20b.cce1ec","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":1190.8626251220703,"y":1743.1008231639862,"z":"70167245.99734c","wires":[["7cbee552.df79bc","1d39e729.3d4b89","b6b59f5.14be1e"]]},{"id":"7cbee552.df79bc","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1459.5040016174316,"y":1794.4322349056602,"z":"70167245.99734c","wires":[["65924014.6bbe6"]]},{"id":"1d39e729.3d4b89","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1450.504051208496,"y":1762.9322606548667,"z":"70167245.99734c","wires":[["65924014.6bbe6"]]},{"id":"b6b59f5.14be1e","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1454.2540893554688,"y":1733.289365530014,"z":"70167245.99734c","wires":[["8b9d44cb.4d3c58"]]},{"id":"65924014.6bbe6","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":1616.254150390625,"y":1790.6822509765625,"z":"70167245.99734c","wires":[]},{"id":"61bdacb4.d89f74","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":1198.5293884277344,"y":452.05291748046875,"z":"70167245.99734c","wires":[]},{"id":"f2bed30b.d1fbf","type":"comment","name":"Save consumed-allotted-resources to mdsal","info":"","comments":"","x":1227.2435302734375,"y":1258.7196044921875,"z":"70167245.99734c","wires":[]},{"id":"2a53d27b.7a62a6","type":"comment","name":"GET tunnelxconn-allotted-resource from mdsal","info":"","comments":"","x":573.8148193359375,"y":305.7672119140625,"z":"70167245.99734c","wires":[]},{"id":"d5a1496.3dfd238","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":1160.129150390625,"y":330.6243896484375,"z":"70167245.99734c","wires":[]},{"id":"9f74734e.d80b6","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":1210.38623046875,"y":529.6243896484375,"z":"70167245.99734c","wires":[]},{"id":"4a34df28.9f761","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":1237.338623046875,"y":488.338623046875,"z":"70167245.99734c","wires":[]},{"id":"877116f4.81c61","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":1227.38623046875,"y":837.910400390625,"z":"70167245.99734c","wires":[]},{"id":"caaf1a69.26d5d","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":1255.957763671875,"y":572.9100952148438,"z":"70167245.99734c","wires":[]},{"id":"703ecf3f.4ff33","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":1236.8148193359375,"y":612.195809841156,"z":"70167245.99734c","wires":[["d019143f.d41858"]]},{"id":"d019143f.d41858","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1463.9576988220215,"y":613.6243271827698,"z":"70167245.99734c","wires":[["bea99689.e1f1c8"]]},{"id":"bea99689.e1f1c8","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":1665.38627243042,"y":613.0528798103333,"z":"70167245.99734c","wires":[]},{"id":"ce53f3ef.26adb8","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":1208.2434158325195,"y":646.4815106391907,"z":"70167245.99734c","wires":[["caf1c0dc.11d9d8"]]},{"id":"caf1c0dc.11d9d8","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1409.6719818115234,"y":647.0529322624207,"z":"70167245.99734c","wires":[["e482370c.02f2a"]]},{"id":"e482370c.02f2a","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":1602.529140472412,"y":647.0528540611267,"z":"70167245.99734c","wires":[]},{"id":"86c183f5.582b88","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":1216.8148193359375,"y":688.338623046875,"z":"70167245.99734c","wires":[["a62fa522.3b9718"]]},{"id":"a62fa522.3b9718","type":"outcome","name":"outcome null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1466.8148002624512,"y":679.3386225700378,"z":"70167245.99734c","wires":[["1be750c7.5a5947"]]},{"id":"1be750c7.5a5947","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":1659.6719589233398,"y":679.3385443687439,"z":"70167245.99734c","wires":[]},{"id":"db1cfd8b.e4a978","type":"switchNode","name":"switch ar-model.ecomp-generated-naming","xml":"<switch test='`$ar-model.ecomp-generated-naming`'>\n","comments":"","outputs":1,"x":1280.38623046875,"y":781.7672729492188,"z":"70167245.99734c","wires":[["12dd332c.c6f66d","49b296fc.6797f8"]]},{"id":"12dd332c.c6f66d","type":"other","name":"outcome Y","xml":"<outcome value='Y'>\n","comments":"","outputs":1,"x":1566.3862915039062,"y":781.1958618164062,"z":"70167245.99734c","wires":[["fa86baa1.a7d418"]]},{"id":"fa86baa1.a7d418","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"true","comments":"","outputs":1,"x":1720.1363525390625,"y":783.69580078125,"z":"70167245.99734c","wires":[["d8e0029b.f5e8a8"]]},{"id":"49b296fc.6797f8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1585.608642578125,"y":870.1958618164062,"z":"70167245.99734c","wires":[["9f3a1009.b3798"]]},{"id":"9f3a1009.b3798","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":1768.608642578125,"y":875.1958618164062,"z":"70167245.99734c","wires":[]},{"id":"d8e0029b.f5e8a8","type":"switchNode","name":"switch ar-model.ecomp-generated-naming","xml":"<switch test='`$ar-model.naming-policy`'>\n","comments":"","outputs":1,"x":1856.38623046875,"y":832.767333984375,"z":"70167245.99734c","wires":[["332c63e2.ea8be4","ac3f0d13.266368"]]},{"id":"332c63e2.ea8be4","type":"other","name":"outcome oam_network_policy","xml":"<outcome value='oam_network_policy'>\n","comments":"","outputs":1,"x":2231.244140625,"y":836.3453369140625,"z":"70167245.99734c","wires":[["bc0e3ee8.843078"]]},{"id":"ac3f0d13.266368","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2145.671875,"y":913.1958618164062,"z":"70167245.99734c","wires":[["bc0e3ee8.843078"]]},{"id":"7e0f9284.4b7e44","type":"set","name":"set ar_name","xml":"<set>\n<parameter name='tmp.ar-name' value='$TenantOAMNetworkRole_$LandingNetworkRole_SZ' />\n","comments":"","x":2537.100830078125,"y":871.7672729492188,"z":"70167245.99734c","wires":[]},{"id":"3e8d4809.274d6","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":2681.2437858581543,"y":915.6244196891785,"z":"70167245.99734c","wires":[[]]},{"id":"f54fe341.3578c","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":2668.243896484375,"y":955.7672729492188,"z":"70167245.99734c","wires":[[]]},{"id":"bc0e3ee8.843078","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":2345.5292015075684,"y":911.3387522697449,"z":"70167245.99734c","wires":[["7e0f9284.4b7e44","3e8d4809.274d6","f54fe341.3578c","28ad7a84.2cbe6e"]]},{"id":"28ad7a84.2cbe6e","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":2626.1005859375,"y":1006.052978515625,"z":"70167245.99734c","wires":[]},{"id":"b8567e70.00332","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":1202.8624267578125,"y":1214.6246337890625,"z":"70167245.99734c","wires":[]},{"id":"cfb2080f.44c9c8","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":1180.529052734375,"y":1117.052978515625,"z":"70167245.99734c","wires":[]},{"id":"5e2d9895.cf73","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":2253.8155822753906,"y":1316.0411586761475,"z":"70167245.99734c","wires":[["eb2cdea9.cb778"]]},{"id":"85c6f8d0.1b4668","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":1259.8148193359375,"y":1309.505126953125,"z":"70167245.99734c","wires":[["dc8f6919.70df38","3b9271f8.a4419e"]]},{"id":"dc8f6919.70df38","type":"other","name":"outcome Null","xml":"<outcome value=''>\n","comments":"","outputs":1,"x":1660.207763671875,"y":1288.1124267578125,"z":"70167245.99734c","wires":[["7aeacb5a.99e424"]]},{"id":"3b9271f8.a4419e","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1652.957763671875,"y":1369.1124267578125,"z":"70167245.99734c","wires":[["52a4e536.66c5a4"]]},{"id":"eb2cdea9.cb778","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":2688.4106826782227,"y":1317.85085105896,"z":"70167245.99734c","wires":[["8cf06394.df3ea8"]]},{"id":"8cf06394.df3ea8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":2895.220375061035,"y":1321.064962387085,"z":"70167245.99734c","wires":[["21ed97fc.fc9e88"]]},{"id":"52a4e536.66c5a4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1819.8349609375,"y":1363.488525390625,"z":"70167245.99734c","wires":[["5e2d9895.cf73","49ab0d25.8010ec"]]},{"id":"21ed97fc.fc9e88","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":3063.4817276000977,"y":1325.9222631454468,"z":"70167245.99734c","wires":[["53f652f8.101e24"]]},{"id":"7aeacb5a.99e424","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":1845.0648193359375,"y":1291.32666015625,"z":"70167245.99734c","wires":[]},{"id":"53f652f8.101e24","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":3309.3391876220703,"y":1320.4937419891357,"z":"70167245.99734c","wires":[]},{"id":"540cbc0e.28865c","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":1195.6720123291016,"y":1368.826681137085,"z":"70167245.99734c","wires":[]},{"id":"8b9d44cb.4d3c58","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1595.910057067871,"y":1729.4815347194672,"z":"70167245.99734c","wires":[[]]},{"id":"2159536d.de8f1c","type":"comment","name":"Add SZ AR to mdsal","info":"","comments":"","x":1122.148193359375,"y":1679.1956787109375,"z":"70167245.99734c","wires":[]},{"id":"2e4a857d.928342","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":1139.592529296875,"y":1410.2275390625,"z":"70167245.99734c","wires":[[]]},{"id":"549678aa.89574","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":856.57666015625,"y":386.4814453125,"z":"70167245.99734c","wires":[["38e93c63.11d5e4"]]},{"id":"e6a480a5.65c488","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":804.57666015625,"y":882.2908325195312,"z":"70167245.99734c","wires":[["540cbc0e.28865c","2e4a857d.928342","f85d83c4.298b4","67eda20b.cce1ec","9ee5048e.19ac7","3260586c.270db","8b4c6a17.e3e838","61bdacb4.d89f74","9f74734e.d80b6","caaf1a69.26d5d","703ecf3f.4ff33","ce53f3ef.26adb8","86c183f5.582b88","db1cfd8b.e4a978","877116f4.81c61","e2b96e41.dba7a","fcd1f7e3.99e0a8","f8eaf248.0e822","cfb2080f.44c9c8","b8567e70.00332","85c6f8d0.1b4668","19f92301.f6449d","b03dbb12.bc75b","95de12c3.5b4c18","58f3b12c.76c66","7af21cbe.e3109c"]]},{"id":"8b4c6a17.e3e838","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":1173.243408203125,"y":408.433837890625,"z":"70167245.99734c","wires":[]},{"id":"58f3b12c.76c66","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":1162.38623046875,"y":1606.799072265625,"z":"70167245.99734c","wires":[["9e9f4c90.bf0d48","2b5b7235.3d1d0e"]]},{"id":"9e9f4c90.bf0d48","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1412.814842224121,"y":1593.5292553901672,"z":"70167245.99734c","wires":[["efcb7762.8c948"]]},{"id":"efcb7762.8c948","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":1581.3387451171875,"y":1595.1483154296875,"z":"70167245.99734c","wires":[]},{"id":"2b5b7235.3d1d0e","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1423.91015625,"y":1648.291259765625,"z":"70167245.99734c","wires":[["efcb7762.8c948"]]},{"id":"49ab0d25.8010ec","type":"switchNode","name":"switch tmp.found-cidx","xml":"<switch test='`$tmp.found-cidx`'>\n","comments":"","outputs":1,"x":2068.743423461914,"y":1562.2315921783447,"z":"70167245.99734c","wires":[["15a17af4.7b49b5"]]},{"id":"15a17af4.7b49b5","type":"outcomeTrue","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":2258.743377685547,"y":1562.2315292358398,"z":"70167245.99734c","wires":[["5fd31d95.33e68c"]]},{"id":"5fd31d95.33e68c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":2424.743377685547,"y":1562.2315292358398,"z":"70167245.99734c","wires":[["d1d7e91e.b628"]]},{"id":"d1d7e91e.b628","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":2670.600706100464,"y":1562.8030033111572,"z":"70167245.99734c","wires":[]},{"id":"cb0ecda.ef05db","type":"break","name":"break","xml":"<break/>\n","comments":"","x":3228.243408203125,"y":1365.731689453125,"z":"70167245.99734c","wires":[]},{"id":"a9bccdde.a120f","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":1946.9521980285645,"y":1729.1904199123383,"z":"70167245.99734c","wires":[["7277c6ff.78bf7","2f0a3a77.128346","3b3333f6.aaf6d4"]]},{"id":"2cdb4052.2746c","type":"comment","name":"Rollback parent","info":"","comments":"","x":1790.9521255493164,"y":1698.8570504188538,"z":"70167245.99734c","wires":[]},{"id":"7277c6ff.78bf7","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2318.2602462768555,"y":1789.8553862571716,"z":"70167245.99734c","wires":[["45c2ac8a.13df9c"]]},{"id":"2f0a3a77.128346","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2309.26029586792,"y":1758.3554120063782,"z":"70167245.99734c","wires":[["45c2ac8a.13df9c"]]},{"id":"3b3333f6.aaf6d4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2313.0103340148926,"y":1728.7125168815255,"z":"70167245.99734c","wires":[["45c2ac8a.13df9c"]]},{"id":"45c2ac8a.13df9c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2454.666301727295,"y":1724.9046860709786,"z":"70167245.99734c","wires":[[]]},{"id":"10d2c615.b0f73a","type":"comment","name":"Generate naming","info":"","comments":"","x":1211.3862762451172,"y":739.7672252655029,"z":"70167245.99734c","wires":[]},{"id":"672f96a5.399d08","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":656,"y":208,"z":"70167245.99734c","wires":[[]]},{"id":"8d9cde2f.3534f8","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":413,"y":547,"z":"70167245.99734c","wires":[[]]},{"id":"d84542fc.095ae","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":932,"y":483,"z":"70167245.99734c","wires":[["e6a480a5.65c488"]]},{"id":"a3cb0d15.ef9278","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":745,"y":584,"z":"70167245.99734c","wires":[["4ba88fad.67db1"]]},{"id":"4ba88fad.67db1","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":672,"y":645,"z":"70167245.99734c","wires":[]},{"id":"34c4649e.80cfb4","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":1722,"y":929,"z":"70167245.99734c","wires":[["a1fa7464.76606"]]},{"id":"a1fa7464.76606","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":1844,"y":1021,"z":"70167245.99734c","wires":[["9ee00c26.e04e9","7d0d63b5.184dfc"]]},{"id":"9ee00c26.e04e9","type":"other","name":"vgmux_private_ip_0","xml":"<outcome value='vgmux_private_ip_0'>\n","comments":"","outputs":1,"x":2070,"y":1025,"z":"70167245.99734c","wires":[["bc5b4eb5.aba26"]]},{"id":"3085d91f.93577e","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":2302.9999771118164,"y":1086.0000400543213,"z":"70167245.99734c","wires":[]},{"id":"7d0d63b5.184dfc","type":"other","name":"vgmux_private_ip_2","xml":"<outcome value='vgmux_private_ip_2'>\n","comments":"","outputs":1,"x":2072,"y":1085,"z":"70167245.99734c","wires":[["3085d91f.93577e"]]},{"id":"bc5b4eb5.aba26","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":2292.9999771118164,"y":1028.0000381469727,"z":"70167245.99734c","wires":[]},{"id":"e2b96e41.dba7a","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":1202,"y":883,"z":"70167245.99734c","wires":[]},{"id":"e87814.4ba7d7f","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":652,"y":251,"z":"70167245.99734c","wires":[[]]},{"id":"f8eaf248.0e822","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":1268,"y":1004,"z":"70167245.99734c","wires":[[]]},{"id":"fcd1f7e3.99e0a8","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":1221,"y":967,"z":"70167245.99734c","wires":[]},{"id":"e83faf33.14e778","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":576,"y":386,"z":"70167245.99734c","wires":[["549678aa.89574"]]},{"id":"19f92301.f6449d","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":1269,"y":924,"z":"70167245.99734c","wires":[["4b77905b.74e198"]]},{"id":"4b77905b.74e198","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1531,"y":926,"z":"70167245.99734c","wires":[["34c4649e.80cfb4"]]},{"id":"b03dbb12.bc75b","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":1280,"y":1045,"z":"70167245.99734c","wires":[[]]},{"id":"95de12c3.5b4c18","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":1167,"y":1174,"z":"70167245.99734c","wires":[]},{"id":"7031fe98.2c6288","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":275,"y":464,"z":"70167245.99734c","wires":[]},{"id":"38e93c63.11d5e4","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":672,"y":483,"z":"70167245.99734c","wires":[["d84542fc.095ae","a3cb0d15.ef9278"]]},{"id":"7af21cbe.e3109c","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":1216.4443969726562,"y":1541.666748046875,"z":"70167245.99734c","wires":[]},{"id":"f9011934.3041a8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":821.8888888888889,"y":1544.3333333333333,"z":"70167245.99734c","wires":[]},{"id":"1e544179.ffb5cf","type":"comment","name":"map input to service-data request info","info":"","comments":"","x":1496.3334350585938,"y":1519.888671875,"z":"70167245.99734c","wires":[]},{"id":"cc57223c.b8369","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":816,"y":1129,"z":"70167245.99734c","wires":[]},{"id":"6acf8c23.3105dc","type":"comment","name":"404 is mapping to success ?","info":"","comments":"","x":922,"y":294,"z":"70167245.99734c","wires":[]},{"id":"12de95c4.dcc23a","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":1314,"y":371,"z":"70167245.99734c","wires":[]},{"id":"79c9de0c.35d96","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1536,"y":347,"z":"70167245.99734c","wires":[]},{"id":"880b54b6.ffc6c","type":"comment","name":"took out link on RestAPICall","info":"","comments":"","x":1020,"y":75,"z":"70167245.99734c","wires":[]},{"id":"b735cd6.f00dbb","type":"comment","name":"Added SDN-E-I and vCPE ot INPUT","info":"","comments":"","x":1050,"y":111,"z":"70167245.99734c","wires":[]},{"id":"4c9f8ee8.c9ca38","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":1034,"y":41,"z":"70167245.99734c","wires":[]},{"id":"d5850db9.4637d8","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":1399,"y":1083,"z":"70167245.99734c","wires":[[]]},{"id":"56c108ca.6ff1e","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n","comments":"","x":998,"y":910,"z":"70167245.99734c","wires":[]},{"id":"d2b1cc73.d58508","type":"comment","name":"vnf-parameters_lenght is null","info":"parent-service-instance.service-data.vnf-topology-information.vnf-parameters_length","comments":"","x":941,"y":938,"z":"70167245.99734c","wires":[]}]
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 9f49fbeb..5e1fbe7b 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
@@ -200,9 +200,7 @@ tmp.preloadvnfdata.preload-vnfs.vnf-preload-list[1].preload-data[0].vnf-topology
<set>
<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`" />
-</set><execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
-<parameter name='filename' value='/var/tmp/brg-topo-op-activate.log' />
-</execute><for index='vnfidx' start='0' end='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list_length`' >
+</set><for index='vnfidx' start='0' end='`$tmp.preloadvnfdata.preload-vnfs.vnf-preload-list_length`' >
@@ -316,9 +314,7 @@ brg-topology-operation-input.service-information.service-instance-id
<parameter name='ack-final' value='Y'/>
<parameter name="error-code" value="500" />
<parameter name="error-message" value="Error updating md-sal for brg-allotted-resource" />
-</return></outcome></execute><execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
-<parameter name='filename' value='/var/tmp/brg-topo-op-activate.log' />
-</execute><set>
+</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/'
diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.xml
index dd10e543..a844fa53 100644
--- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.xml
+++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.xml
@@ -3,18 +3,29 @@
</get-resource><for index='vnfidx' start='0' end='`$tmp.vnfdata.vnfs.vnf-list_length`' >
-<switch test='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.service-information.service-instance-id == $tmp.search.parent-service-instance-id`'>
+<block>
+<set>
+<parameter name='tmp.debug.tmp.search.parent-service-instance-id' value='`$tmp.search.parent-service-instance-id`' />
+</set><switch test='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.service-information.service-instance-id == $tmp.search.parent-service-instance-id`'>
<outcome value='true'>
<block>
<set>
-<parameter name='tmp.old-service-data.vnf-id' value='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.vnf-id`' />
-</set><get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='vnfs/vnf-list/$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.vnf-id/service-data/' pfx='parent-service-instance' >
- <outcome value='failure'>
+<parameter name='tmp.debug.service-instance.id1' value='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.service-information.service-instance-id`' />
+<parameter name='tmp.debug.service-instance.id2' value='`$tmp.search.parent-service-instance-id`' />
+<parameter name='tmp.debug.service-instance.id3.vnf-id' value='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].vnf-id`' />
+
+
+
+</set><set>
+<parameter name='tmp.old-service-data.vnf-id' value='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].vnf-id`' />
+</set><get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='vnfs/vnf-list/$tmp.vnfdata.vnfs.vnf-list[$vnfidx].vnf-id/service-data/' pfx='parent-service-instance' >
+
+ <outcome value='failure'>
<return status='failure'>
<parameter name='ack-final' value='Y'/>
<parameter name="error-code" value="500" />
<parameter name="error-message"
value="`'No entry found for parent service instance id ' + $tmp.ar.parent-service-instance-id + '.'`" />
-</return></outcome></get-resource></block></outcome></switch></for></block></method></service-logic>
+</return></outcome></get-resource><break></break></block></outcome></switch></block></for></block></method></service-logic>
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 27c49fce..4a787cbb 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
@@ -86,6 +86,7 @@ service-data.service-topology.service-topology-identifier.service-instance-id
<parameter name='tmp.service.vnf.vf-module.vg-mux-tunnel-vni' value='`$input.vni`' />
-->
<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`' />
+<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`' />
@@ -94,6 +95,8 @@ service-data.service-topology.service-topology-identifier.service-instance-id
<parameter name='tmp.service.vnf.vf-module.vg-mux-tunnel-vni' value='`$input.vni`' />
-->
<parameter name='tmp.vg-mux-tunnel-vni-match' value='vg_vgmux_tunnel_vni' />
+<parameter name='tmp.vg-lan-ip-match' value='vgw_private_ip_0' />
+
@@ -102,6 +105,9 @@ service-data.service-topology.service-topology-identifier.service-instance-id
<switch test='`$tmp.vfmodule.param[$paramIdx].name == $tmp.vg-mux-tunnel-vni-match`'><outcome value='true'>
<set>
<parameter name='$tmp.vfmodule.param[$paramIdx].value' value='`$tmp.txconns.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vni`' />
+</set></outcome></switch><switch test='`$tmp.vfmodule.param[$paramIdx].name == $tmp.vg-lan-ip-match`'><outcome value='true'>
+<set>
+<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`' />
</set></outcome></switch></block></for><set>
<!--
<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.'
@@ -110,13 +116,9 @@ service-data.service-topology.service-topology-identifier.service-instance-id
value='$tmp.vfmodule.' />
-->
<parameter name='service-data.vnfs.vnf[0].vnf-data.vf-modules.vf-module[0].vf-module-data.vf-module-topology.vf-module-parameters.'
- value='$tmp.vfmodule.' /></set><execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
-<parameter name='filename' value='/var/tmp/bdf-gw-vfmodule.log' />
-</execute></block></outcome></switch></block></for></block></outcome><outcome value='Other'>
+ value='$tmp.vfmodule.' /></set></block></outcome></switch></block></for></block></outcome><outcome value='Other'>
<block>
-<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >
-<parameter name='filename' value='/var/tmp/bdf-gw-vfmodule.failure.log' />
-</execute><return status='failure'>
+<return status='failure'>
<parameter name='error-code' value='500' />
<parameter name='error-message' value='Did not find vGW Preload' />
</return></block></outcome></switch></block></method></service-logic>
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 b0104542..4d75a2fb 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
@@ -67,13 +67,28 @@
<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />
</set><update plugin="org.onap.ccsdk.sli.adaptors.aai.AAIService"
resource="allotted-resource"
+ key="customer.global-customer-id = $tunnelxconn-topology-operation-input.service-information.global-customer-id AND
+ service-subscription.service-type = $tunnelxconn-topology-operation-input.service-information.subscription-service-type AND
+ service-instance.service-instance-id = $tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id AND
+ allotted-resource.id = $tmp.ar.allotted-resource-id"
+ pfx='pfx' local-only='false' force='false'>
+ <parameter name="operational-status" value="in-service-path" />
+
+
+<!--
+
+<set>
+$tunnelxconn-topology-operation-input.service-information.global-customer-id
+$tunnelxconn-topology-operation-input.service-information.subscription-service-type
+
key="customer.global-customer-id = $service-data.service-information.global-customer-id AND
service-subscription.service-type = $service-data.service-information.subscription-service-type AND
service-instance.service-instance-id = $service-data.service-information.service-instance-id AND
allotted-resource.id = $tmp.ar.allotted-resource-id"
- pfx='pfx' local-only='false' force='false'>
- <parameter name="operational-status" value="in-service-path" />
-<outcome value='failure'>
+
+ $tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id
+
+--><outcome value='failure'>
<return status='failure'>
<parameter name='ack-final' value='Y'/>
<parameter name="error-code" value="500" />
@@ -115,4 +130,4 @@
<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-assign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_tunnelxconn-topology-operation-assign.xml
index 666caad6..ee306af1 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
@@ -2,6 +2,8 @@
<block atomic="true"><set>
<parameter name='tmp.ar.allotted-resource-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-id`' />
<parameter name='tmp.ar.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />
+<parameter name='tmp.search.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />
+
</set><set>
@@ -25,13 +27,7 @@
<parameter name='httpMethod' value='GET' />
<parameter name="responsePrefix" value="mdsal-ar" />
-<outcome value='success'>
-<return status='failure'>
- <parameter name='ack-final' value='Y'/>
- <parameter name="error-code" value="500" />
- <parameter name="error-message"
- value="`'Existing tunnelxconn-allotted-resource with order status of ' + $mdsal-ar.tunnelxconn-allotted-resource.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`" />
-</return></outcome><outcome value='Other'>
+<outcome value='Other'>
<call module='GENERIC-RESOURCE-API' rpc='get-vnf-api-parent-instance' mode='sync' >
<outcome value='success'>