Fix brg-topo DGs
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_brg-topology-operation-deactivate.json
index 86accc4..25e2c1e 100755 (executable)
@@ -1 +1,1295 @@
-[{"id":"284e27db.b7e5d8","type":"dgstart","name":"DGSTART","outputs":1,"x":184.2857208251953,"y":55.71428680419922,"z":"65a9f6a1.13f7b8","wires":[["21dc623f.cc352e"]]},{"id":"21dc623f.cc352e","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":280.52379989624023,"y":116.66667747497559,"z":"65a9f6a1.13f7b8","wires":[["eacf77e9.837ad8"]]},{"id":"eacf77e9.837ad8","type":"method","name":"brg-topology-operation-deactivate","xml":"<method rpc='brg-topology-operation-deactivate' mode='sync'>\n","comments":"","outputs":1,"x":326.44057846069336,"y":151.9047327041626,"z":"65a9f6a1.13f7b8","wires":[["509784b4.18024c"]]},{"id":"509784b4.18024c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":234.76191329956055,"y":295.2380747795105,"z":"65a9f6a1.13f7b8","wires":[["e886f0a3.d1a26","29d9b6af.98a21a","8e5a9b8c.613e38","32c0247b.626e1c","de1f88fd.80fcb8","b9651040.0d909","36f9c9aa.1518a6","91736aaa.410ef8","fe89c5c7.b078a8","5c2248b0.cff7c8","f23600d4.282d8","3eb0bb84.9332a4"]]},{"id":"29d9b6af.98a21a","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":501.285831451416,"y":964.9287948608398,"z":"65a9f6a1.13f7b8","wires":[]},{"id":"e886f0a3.d1a26","type":"set","name":"set output to api handler","xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='brg-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $brg-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n","comments":"","x":530.0397453308105,"y":929.0513410568237,"z":"65a9f6a1.13f7b8","wires":[]},{"id":"5c2248b0.cff7c8","type":"set","name":"set allotted-resource-oper-status","xml":"<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-topology-operation-input.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='sz-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='sz-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n","comments":"","x":541.0399627685547,"y":675.7657089233398,"z":"65a9f6a1.13f7b8","wires":[]},{"id":"32c0247b.626e1c","type":"set","name":"set tmp.ar.self-link","xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/brg-topology/'` \" />\n\n","comments":"","x":497.0237846374512,"y":269.0476121902466,"z":"65a9f6a1.13f7b8","wires":[]},{"id":"8e5a9b8c.613e38","type":"set","name":"set tmp.ar.allotted-resource-id,etc","xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$brg-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$brg-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.sz-vnf-id' value='`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`' />\n\n\n","comments":"","x":544.2830467224121,"y":235.30687808990479,"z":"65a9f6a1.13f7b8","wires":[]},{"id":"de1f88fd.80fcb8","type":"execute","name":"execute Properties","xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n","comments":"","outputs":1,"x":503.2791404724121,"y":304.9458112716675,"z":"65a9f6a1.13f7b8","wires":[[]]},{"id":"36f9c9aa.1518a6","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":565.8044738769531,"y":466.17377853393555,"z":"65a9f6a1.13f7b8","wires":[["e544ca46.98ecd8","e932d850.0e3608"]]},{"id":"b9651040.0d909","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.sz-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":531.3505744934082,"y":364.7315158843994,"z":"65a9f6a1.13f7b8","wires":[[]]},{"id":"e544ca46.98ecd8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":823.1006126403809,"y":464.9815390110016,"z":"65a9f6a1.13f7b8","wires":[["4acc39b.9104dc8"]]},{"id":"91736aaa.410ef8","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.sz.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":573.8150329589844,"y":819.1484184265137,"z":"65a9f6a1.13f7b8","wires":[["c7834590.fcdd68","7bc04e80.8eb95","a95d7c62.d143f"]]},{"id":"c7834590.fcdd68","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":844.1230506896973,"y":872.1466192230582,"z":"65a9f6a1.13f7b8","wires":[["7bf6e2d9.60f5ec"]]},{"id":"7bc04e80.8eb95","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":835.1231002807617,"y":840.6466449722648,"z":"65a9f6a1.13f7b8","wires":[["7bf6e2d9.60f5ec"]]},{"id":"a95d7c62.d143f","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":838.8731384277344,"y":811.0037498474121,"z":"65a9f6a1.13f7b8","wires":[["50148bc2.55e4c4"]]},{"id":"7bf6e2d9.60f5ec","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":1004.8731384277344,"y":841.3966688141227,"z":"65a9f6a1.13f7b8","wires":[]},{"id":"4acc39b.9104dc8","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1004.1005668640137,"y":465.4814884662628,"z":"65a9f6a1.13f7b8","wires":[["524c404c.c6e87","712583b3.96568c"]]},{"id":"524c404c.c6e87","type":"switchNode","name":"switch sz length","xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n","comments":"","outputs":1,"x":1249.9578132629395,"y":499.7672517299652,"z":"65a9f6a1.13f7b8","wires":[["3ad43779.db66e8"]]},{"id":"3ad43779.db66e8","type":"other","name":"outcome 1","xml":"<outcome value='1'>\n","comments":"","outputs":1,"x":1440.9578170776367,"y":499.7672493457794,"z":"65a9f6a1.13f7b8","wires":[["4a46e9c4.f9d128"]]},{"id":"a70a2794.6d9408","type":"set","name":"set sz-ar from get","xml":"<set>\n<parameter name='sz-ar.' value='$mdsal-ar.brg-allotted-resource[0].' />\n","comments":"","x":1840.8149528503418,"y":500.33867359161377,"z":"65a9f6a1.13f7b8","wires":[]},{"id":"4a46e9c4.f9d128","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1611.8148002624512,"y":500.33871841430664,"z":"65a9f6a1.13f7b8","wires":[["a70a2794.6d9408","b61c60b8.7a4ec","66e00065.03ca4"]]},{"id":"b61c60b8.7a4ec","type":"set","name":"set oper-status","xml":"<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$sz-ar.allotted-resource-status.rpc-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n","comments":"","x":1838.8151969909668,"y":567.767237663269,"z":"65a9f6a1.13f7b8","wires":[]},{"id":"ae8a5e82.01315","type":"comment","name":"GET brg-allotted-resource from mdsal","info":"","comments":"","x":591.1005363464355,"y":429.4814794063568,"z":"65a9f6a1.13f7b8","wires":[]},{"id":"66e00065.03ca4","type":"switchNode","name":"switch order-status","xml":"<switch test='`$sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n","comments":"","outputs":1,"x":1848.8149757385254,"y":533.3386716842651,"z":"65a9f6a1.13f7b8","wires":[["65fba3ae.02978c","709a0f22.b2207"]]},{"id":"65fba3ae.02978c","type":"outcome","name":"outcome Created","xml":"<outcome value='Created'>\n","comments":"","outputs":1,"x":2060.4149322509766,"y":494.33867168426514,"z":"65a9f6a1.13f7b8","wires":[["389e0eec.32fdf2"]]},{"id":"709a0f22.b2207","type":"outcome","name":"outcome Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":2086.129306793213,"y":529.7672624588013,"z":"65a9f6a1.13f7b8","wires":[["389e0eec.32fdf2"]]},{"id":"c232dfd.abca22","type":"comment","name":"Set allotted-resource-identifiers","info":"","comments":"","x":546.6243591308594,"y":520.0529327392578,"z":"65a9f6a1.13f7b8","wires":[]},{"id":"712583b3.96568c","type":"set","name":"save backup copy of mdsal-ar for rollback","xml":"<set>\n<parameter name='bk-sz-ar' value='$mdsal-ar.' />\n","comments":"","x":1329.6721458435059,"y":465.48158049583435,"z":"65a9f6a1.13f7b8","wires":[]},{"id":"dd477519.74e698","type":"comment","name":"Create urls for restapi","info":"","comments":"","x":502.24338150024414,"y":334.33864307403564,"z":"65a9f6a1.13f7b8","wires":[]},{"id":"50148bc2.55e4c4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":980.5291061401367,"y":807.1959190368652,"z":"65a9f6a1.13f7b8","wires":[[]]},{"id":"f27feeff.247c1","type":"comment","name":"TO DO: vnf/put parent","info":"","comments":"","x":508.81481170654297,"y":712.6244564056396,"z":"65a9f6a1.13f7b8","wires":[]},{"id":"fe89c5c7.b078a8","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":488.52910232543945,"y":637.1958417892456,"z":"65a9f6a1.13f7b8","wires":[[]]},{"id":"e932d850.0e3608","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":822.8624076843262,"y":501.19571185112,"z":"65a9f6a1.13f7b8","wires":[["44f65ab4.13daa4"]]},{"id":"44f65ab4.13daa4","type":"block","name":"block: atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1002.8623580932617,"y":501.8622624874115,"z":"65a9f6a1.13f7b8","wires":[[]]},{"id":"f23600d4.282d8","type":"set","name":"set id","xml":"<set>\n<parameter name='sz-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='sz-ar.allotted-resource-status.action' value=\"`$brg-topology-operation-input.request-information.request-action` \" />\n<parameter name='sz-ar.allotted-resource-status.rpc-name' value=\"brg-topology-operation\" />\n<parameter name='sz-ar.allotted-resource-status.rpc-action' value=\"`$brg-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$brg-topology-operation-input.request-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$brg-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$brg-topology-operation-input.service-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$brg-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.' value=\"`$brg-topology-operation-input.brg-request-input.` \" />","comments":"","x":471.5291442871094,"y":556.8624534606934,"z":"65a9f6a1.13f7b8","wires":[]},{"id":"389e0eec.32fdf2","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2274.8854484558105,"y":495.71430587768555,"z":"65a9f6a1.13f7b8","wires":[[]]},{"id":"3eb0bb84.9332a4","type":"update","name":"update AAI allotted-resource","xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n        pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"operational-status\" value=\"out-of-service-path\" />\n","comments":"","outputs":1,"x":535.7142944335938,"y":754.2857055664062,"z":"65a9f6a1.13f7b8","wires":[["a77d093e.701398","a0e58ee0.5d11b"]]},{"id":"a77d093e.701398","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":791.476203918457,"y":737.2382092475891,"z":"65a9f6a1.13f7b8","wires":[["dce668a3.1b94f8"]]},{"id":"dce668a3.1b94f8","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":958.0000839233398,"y":748.857280254364,"z":"65a9f6a1.13f7b8","wires":[]},{"id":"a0e58ee0.5d11b","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":798.5714912414551,"y":770.0001769065857,"z":"65a9f6a1.13f7b8","wires":[["dce668a3.1b94f8"]]}]
+[
+  {
+    "id":"19d07461.d6c8dc",
+    "type":"dgstart",
+    "name":"DGSTART",
+    "outputs":1,
+    "x":295,
+    "y":230,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "b51a5c82.11d2c"
+      ]
+    ]
+  },
+  {
+    "id":"b51a5c82.11d2c",
+    "type":"service-logic",
+    "name":"GENERIC-RESOURCE-API ${project.version}",
+    "module":"GENERIC-RESOURCE-API",
+    "version":"${project.version}",
+    "comments":"",
+    "xml":"<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
+    "outputs":1,
+    "x":391.2380790710449,
+    "y":290.95239067077637,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "cbce84a6.ea6878"
+      ]
+    ]
+  },
+  {
+    "id":"cbce84a6.ea6878",
+    "type":"method",
+    "name":"brg-topology-operation-deactivate",
+    "xml":"<method rpc='brg-topology-operation-deactivate' mode='sync'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":437.15485763549805,
+    "y":326.1904458999634,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "d87b2e8f.9e2a"
+      ]
+    ]
+  },
+  {
+    "id":"d87b2e8f.9e2a",
+    "type":"block",
+    "name":"block : atomic",
+    "xml":"<block atomic=\"true\">",
+    "atomic":"true",
+    "comments":"",
+    "outputs":1,
+    "x":307.1428680419922,
+    "y":1181.1903924942017,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "7ae0972.e4f1268",
+        "26fbe137.e4574e",
+        "aaf75937.121618",
+        "b30da41f.59e8b8",
+        "eb6cb316.78bb2",
+        "f3f334a7.8ab7b8",
+        "b0c0958f.205828",
+        "9feaac31.accea",
+        "8072d7bb.d79ca8",
+        "a4c2b092.b5846",
+        "9bf033cd.906e8",
+        "2df95cec.fa5264",
+        "22dee26e.7d616e",
+        "61e540d8.506e5",
+        "4ae758c7.df5428",
+        "8327d1cf.254a7",
+        "9ae0d8e5.63af48",
+        "8261fdb3.cd771",
+        "1191ada7.aeacf2",
+        "2ab5bcc1.a3bc14",
+        "2271a9db.dcd166",
+        "b4b8750b.6fbcb8",
+        "f73b7075.c24df",
+        "1a8316bd.e83579",
+        "2bcd212a.e454ce",
+        "e1525574.ab65b8",
+        "ad5e9d69.70e36",
+        "8bd7c7a7.dbe958"
+      ]
+    ]
+  },
+  {
+    "id":"26fbe137.e4574e",
+    "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":604.0001449584961,
+    "y":2012.5478963851929,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"7ae0972.e4f1268",
+    "type":"set",
+    "name":"set output to api handler",
+    "xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='brg-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $brg-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
+    "comments":"",
+    "x":632.7540588378906,
+    "y":1976.6704425811768,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"a4c2b092.b5846",
+    "type":"set",
+    "name":"set allotted-resource-oper-status",
+    "xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-topology-operation-input.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
+    "comments":"",
+    "x":651.7542419433594,
+    "y":850.0514221191406,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"b30da41f.59e8b8",
+    "type":"set",
+    "name":"set tmp.ar.self-link",
+    "xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/brg-topology/'` \" />\n\n",
+    "comments":"",
+    "x":607.7380638122559,
+    "y":443.33332538604736,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"aaf75937.121618",
+    "type":"set",
+    "name":"set tmp.ar.allotted-resource-id,etc",
+    "xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$brg-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$brg-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.brg-vnf-id' value='`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`' />\n\n\n",
+    "comments":"",
+    "x":654.9973258972168,
+    "y":409.59259128570557,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"eb6cb316.78bb2",
+    "type":"execute",
+    "name":"execute Properties",
+    "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
+    "comments":"",
+    "outputs":1,
+    "x":613.9934196472168,
+    "y":479.23152446746826,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+
+      ]
+    ]
+  },
+  {
+    "id":"b0c0958f.205828",
+    "type":"execute",
+    "name":"execute RestApiCallNode - Get AR by id",
+    "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
+    "comments":"",
+    "outputs":1,
+    "x":676.5187530517578,
+    "y":640.4594917297363,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "3d7103cd.4568dc",
+        "b351e6c5.43b968"
+      ]
+    ]
+  },
+  {
+    "id":"f3f334a7.8ab7b8",
+    "type":"execute",
+    "name":"generate allotted-resource url",
+    "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.brg-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
+    "comments":"",
+    "outputs":1,
+    "x":642.0648536682129,
+    "y":539.0172290802002,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+
+      ]
+    ]
+  },
+  {
+    "id":"3d7103cd.4568dc",
+    "type":"success",
+    "name":"success",
+    "xml":"<outcome value='success'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":933.8148918151855,
+    "y":639.2672522068024,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "d40621a.b89f9e"
+      ]
+    ]
+  },
+  {
+    "id":"9feaac31.accea",
+    "type":"execute",
+    "name":"execute RestApiCallNode - PUT AR by id",
+    "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.brg.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
+    "comments":"",
+    "outputs":1,
+    "x":684.5293121337891,
+    "y":993.4341316223145,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "dbc1a30c.d1d4b",
+        "d6035553.162138",
+        "27b4f86b.b5c548"
+      ]
+    ]
+  },
+  {
+    "id":"dbc1a30c.d1d4b",
+    "type":"not-found",
+    "name":"not-found",
+    "xml":"<outcome value='not-found'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":954.837329864502,
+    "y":1046.432332418859,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "29141af9.f07796"
+      ]
+    ]
+  },
+  {
+    "id":"d6035553.162138",
+    "type":"failure",
+    "name":"failure",
+    "xml":"<outcome value='failure'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":945.8373794555664,
+    "y":1014.9323581680655,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "29141af9.f07796"
+      ]
+    ]
+  },
+  {
+    "id":"27b4f86b.b5c548",
+    "type":"success",
+    "name":"success",
+    "xml":"<outcome value='success'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":949.5874176025391,
+    "y":985.2894630432129,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "d196b6e8.482b88"
+      ]
+    ]
+  },
+  {
+    "id":"29141af9.f07796",
+    "type":"returnFailure",
+    "name":"return failure",
+    "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating md-sal for brg-allotted-resource\" />\n",
+    "comments":"",
+    "x":1115.587417602539,
+    "y":1015.6823820099235,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"d40621a.b89f9e",
+    "type":"block",
+    "name":"block: atomic",
+    "xml":"<block atomic=\"true\">\n",
+    "atomic":"false",
+    "comments":"",
+    "outputs":1,
+    "x":1114.8148460388184,
+    "y":639.7672016620636,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "8b0ae8d2.ae99c8",
+        "7e3f871e.ecf428"
+      ]
+    ]
+  },
+  {
+    "id":"8b0ae8d2.ae99c8",
+    "type":"switchNode",
+    "name":"switch brg length",
+    "xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":1360.6720924377441,
+    "y":674.052964925766,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "3519e6a7.d8988a"
+      ]
+    ]
+  },
+  {
+    "id":"3519e6a7.d8988a",
+    "type":"other",
+    "name":"outcome 1",
+    "xml":"<outcome value='1'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":1551.6720962524414,
+    "y":674.0529625415802,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "7664af61.543e6"
+      ]
+    ]
+  },
+  {
+    "id":"1e13655e.0cb03b",
+    "type":"set",
+    "name":"set brg-ar from get",
+    "xml":"<set>\n<parameter name='brg-ar.' value='$mdsal-ar.brg-allotted-resource[0].' />\n",
+    "comments":"",
+    "x":1951.5292320251465,
+    "y":674.6243867874146,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"7664af61.543e6",
+    "type":"block",
+    "name":"block: atomic",
+    "xml":"<block atomic='true'>\n",
+    "atomic":"false",
+    "comments":"",
+    "outputs":1,
+    "x":1722.5290794372559,
+    "y":674.6244316101074,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "1e13655e.0cb03b",
+        "110fdea6.c07091",
+        "8aa660c8.2e3bc"
+      ]
+    ]
+  },
+  {
+    "id":"110fdea6.c07091",
+    "type":"set",
+    "name":"set oper-status",
+    "xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-ar.allotted-resource-status.rpc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
+    "comments":"",
+    "x":1949.5294761657715,
+    "y":742.0529508590698,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"370dee36.76c892",
+    "type":"comment",
+    "name":"GET brg-allotted-resource from mdsal",
+    "info":"",
+    "comments":"",
+    "x":701.8148155212402,
+    "y":603.7671926021576,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"8aa660c8.2e3bc",
+    "type":"switchNode",
+    "name":"switch order-status",
+    "xml":"<switch test='`$brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":1959.52925491333,
+    "y":707.6243848800659,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "82998854.7cca78",
+        "e508d9e1.961e08"
+      ]
+    ]
+  },
+  {
+    "id":"82998854.7cca78",
+    "type":"outcome",
+    "name":"outcome Created",
+    "xml":"<outcome value='Created'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":2171.1292114257812,
+    "y":668.6243848800659,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "50f62ac1.c59a04"
+      ]
+    ]
+  },
+  {
+    "id":"e508d9e1.961e08",
+    "type":"outcome",
+    "name":"outcome Other",
+    "xml":"<outcome value='Other'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":2196.8435859680176,
+    "y":704.052975654602,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "50f62ac1.c59a04"
+      ]
+    ]
+  },
+  {
+    "id":"fb0878b6.3dd068",
+    "type":"comment",
+    "name":"Set allotted-resource-identifiers",
+    "info":"",
+    "comments":"",
+    "x":657.3386383056641,
+    "y":694.3386459350586,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"7e3f871e.ecf428",
+    "type":"set",
+    "name":"save backup copy of mdsal-ar for rollback",
+    "xml":"<set>\n<parameter name='bk-brg-ar' value='$mdsal-ar.' />\n",
+    "comments":"",
+    "x":1440.3864250183105,
+    "y":639.7672936916351,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"bee5e191.1671a",
+    "type":"comment",
+    "name":"Create urls for restapi",
+    "info":"",
+    "comments":"",
+    "x":612.9576606750488,
+    "y":508.6243562698364,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"d196b6e8.482b88",
+    "type":"block",
+    "name":"block",
+    "xml":"<block>\n",
+    "atomic":"false",
+    "comments":"",
+    "outputs":1,
+    "x":1091.2433853149414,
+    "y":981.481632232666,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+
+      ]
+    ]
+  },
+  {
+    "id":"6b4e5a43.fa5094",
+    "type":"comment",
+    "name":"TO DO: vnf/put parent",
+    "info":"",
+    "comments":"",
+    "x":619.5290908813477,
+    "y":886.9101696014404,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"8072d7bb.d79ca8",
+    "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":600.9100952148438,
+    "y":808.1482043266296,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+
+      ]
+    ]
+  },
+  {
+    "id":"b351e6c5.43b968",
+    "type":"other",
+    "name":"other",
+    "xml":"<outcome value='Other'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":933.5766868591309,
+    "y":675.4814250469208,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "a6e56111.1a042"
+      ]
+    ]
+  },
+  {
+    "id":"a6e56111.1a042",
+    "type":"block",
+    "name":"block: atomic",
+    "xml":"<block atomic=\"true\">\n",
+    "atomic":"false",
+    "comments":"",
+    "outputs":1,
+    "x":1113.5766372680664,
+    "y":676.1479756832123,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+
+      ]
+    ]
+  },
+  {
+    "id":"9bf033cd.906e8",
+    "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":572.2434272766113,
+    "y":732.8148908615112,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"50f62ac1.c59a04",
+    "type":"block",
+    "name":"block",
+    "xml":"<block>\n",
+    "atomic":"false",
+    "comments":"",
+    "outputs":1,
+    "x":2385.5997276306152,
+    "y":670.0000190734863,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+
+      ]
+    ]
+  },
+  {
+    "id":"2df95cec.fa5264",
+    "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.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n        pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"operational-status\" value=\"out-of-service-path\" />\n",
+    "comments":"",
+    "outputs":1,
+    "x":641.4286422729492,
+    "y":928.5714282989502,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "735fa50a.5aedac",
+        "f4f3106d.3709a"
+      ]
+    ]
+  },
+  {
+    "id":"735fa50a.5aedac",
+    "type":"failure",
+    "name":"failure",
+    "xml":"<outcome value='failure'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":902.1904830932617,
+    "y":911.5239224433899,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "acbfb4ad.063528"
+      ]
+    ]
+  },
+  {
+    "id":"acbfb4ad.063528",
+    "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":1068.7143630981445,
+    "y":923.1429934501648,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"f4f3106d.3709a",
+    "type":"failure",
+    "name":"not-found",
+    "xml":"<outcome value='not-found'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":909.2857704162598,
+    "y":944.2858901023865,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "acbfb4ad.063528"
+      ]
+    ]
+  },
+  {
+    "id":"8327d1cf.254a7",
+    "type":"execute",
+    "name":"execute RestApiCallNode - delete BRG to vgMux vxlan tunnel port",
+    "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\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='DELETE' />\n    <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n",
+    "comments":"",
+    "outputs":1,
+    "x":757.0000038146973,
+    "y":1469.37672996521,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "6e32aa45.5f8194",
+        "a77ca19a.6e5a6",
+        "ad3f19e9.8b3568"
+      ]
+    ]
+  },
+  {
+    "id":"6e32aa45.5f8194",
+    "type":"not-found",
+    "name":"not-found",
+    "xml":"<outcome value='not-found'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":1178.9748191833496,
+    "y":1506.7083686813712,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "bf98dc87.5b3c4"
+      ]
+    ]
+  },
+  {
+    "id":"a77ca19a.6e5a6",
+    "type":"failure",
+    "name":"failure",
+    "xml":"<outcome value='failure'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":1169.974868774414,
+    "y":1475.2083944305778,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "bf98dc87.5b3c4"
+      ]
+    ]
+  },
+  {
+    "id":"ad3f19e9.8b3568",
+    "type":"success",
+    "name":"success",
+    "xml":"<outcome value='success'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":1173.7249069213867,
+    "y":1445.565499305725,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "6e42584e.b2d738"
+      ]
+    ]
+  },
+  {
+    "id":"bf98dc87.5b3c4",
+    "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 deleting vxlan tunnel\" />\n",
+    "comments":"",
+    "x":1339.7249069213867,
+    "y":1475.9584182724357,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"6e42584e.b2d738",
+    "type":"block",
+    "name":"block",
+    "xml":"<block>\n",
+    "atomic":"false",
+    "comments":"",
+    "outputs":1,
+    "x":1315.380874633789,
+    "y":1441.7576684951782,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+
+      ]
+    ]
+  },
+  {
+    "id":"61e540d8.506e5",
+    "type":"set",
+    "name":"set BRG to vgMUX VXLAN Tunnel Name",
+    "xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`'vxlanTun' + $brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vgmux-lan-ip` \" />",
+    "comments":"",
+    "x":681.7779541015625,
+    "y":1368.3770236968994,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"4ae758c7.df5428",
+    "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":664.7778167724609,
+    "y":1413.376732826233,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+
+      ]
+    ]
+  },
+  {
+    "id":"22dee26e.7d616e",
+    "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":658.7778930664062,
+    "y":1325.0431432724,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+
+      ]
+    ]
+  },
+  {
+    "id":"9ae0d8e5.63af48",
+    "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":700.9999847412109,
+    "y":1075.8332653045654,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+
+      ]
+    ]
+  },
+  {
+    "id":"8261fdb3.cd771",
+    "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":787.142822265625,
+    "y":1123.416519165039,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"1191ada7.aeacf2",
+    "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='`$allotted-resource-data.brg-topology.allotted-resource-identifiers.consuming-service-instance-id`' />\n",
+    "comments":"",
+    "x":748.1427612304688,
+    "y":1171.416347503662,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"2ab5bcc1.a3bc14",
+    "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":791.4760894775391,
+    "y":1268.0829801559448,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"56899e0f.9f0a9",
+    "type":"comment",
+    "name":"Setup VXLAN Tunnel - vBRG to vgMUX",
+    "info":"",
+    "comments":"",
+    "x":350.30946350097656,
+    "y":1076.4166297912598,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"2271a9db.dcd166",
+    "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":716.6666107177734,
+    "y":1216.6665077209473,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+
+      ]
+    ]
+  },
+  {
+    "id":"ad5e9d69.70e36",
+    "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='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='DELETE' />\n    <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n",
+    "comments":"",
+    "outputs":1,
+    "x":750.7049789428711,
+    "y":1825.0618782043457,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "b97f57b9.da4a38",
+        "edd6cfd6.0c5c6",
+        "a1875f2b.49a61"
+      ]
+    ]
+  },
+  {
+    "id":"b97f57b9.da4a38",
+    "type":"not-found",
+    "name":"not-found",
+    "xml":"<outcome value='not-found'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":1084.6797676086426,
+    "y":1884.393490217626,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "8f0443c6.63f49"
+      ]
+    ]
+  },
+  {
+    "id":"edd6cfd6.0c5c6",
+    "type":"failure",
+    "name":"failure",
+    "xml":"<outcome value='failure'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":1075.679817199707,
+    "y":1852.8935159668326,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "8f0443c6.63f49"
+      ]
+    ]
+  },
+  {
+    "id":"a1875f2b.49a61",
+    "type":"success",
+    "name":"success",
+    "xml":"<outcome value='success'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":1079.4298553466797,
+    "y":1823.25062084198,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "ee0fe1f7.5d9d6"
+      ]
+    ]
+  },
+  {
+    "id":"8f0443c6.63f49",
+    "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":1245.4298553466797,
+    "y":1853.6435398086905,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"ee0fe1f7.5d9d6",
+    "type":"block",
+    "name":"block",
+    "xml":"<block>\n",
+    "atomic":"false",
+    "comments":"",
+    "outputs":1,
+    "x":1221.085823059082,
+    "y":1819.442790031433,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+
+      ]
+    ]
+  },
+  {
+    "id":"2bcd212a.e454ce",
+    "type":"set",
+    "name":"set vG to vgMUX VXLAN Tunnel Name",
+    "xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`'vxlanTun' + $brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-bearer-ip` \" />\n",
+    "comments":"",
+    "x":672.1494979858398,
+    "y":1721.7288551330566,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"e1525574.ab65b8",
+    "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":660.1494674682617,
+    "y":1780.0618467330933,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+
+      ]
+    ]
+  },
+  {
+    "id":"1a8316bd.e83579",
+    "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":647.1495361328125,
+    "y":1668.7282466888428,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+
+      ]
+    ]
+  },
+  {
+    "id":"eaa53259.f5fbf",
+    "type":"comment",
+    "name":"Get vg-mgmt-ip",
+    "info":"brg tunnelxconnn consuming-service-instance-id\nfound in services as service-instance-id",
+    "comments":"",
+    "x":347.8716354370117,
+    "y":1616.8953161239624,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"9bd5631.49aaba",
+    "type":"for",
+    "name":"for tmp.servicedata.services",
+    "xml":"<for index='serviceidx' start='0' end='`$tmp.servicedata.services.service_length`' >\n\n\n",
+    "comments":"",
+    "outputs":1,
+    "x":1491.5382080078125,
+    "y":1607.2283487319946,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "5387ccd0.736d34"
+      ]
+    ]
+  },
+  {
+    "id":"f73b7075.c24df",
+    "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":684.8716583251953,
+    "y":1619.89475440979,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "da8a3a08.847948",
+        "c7e2b4a3.bcd4c8",
+        "4e104241.ba90cc"
+      ]
+    ]
+  },
+  {
+    "id":"5387ccd0.736d34",
+    "type":"switchNode",
+    "name":"switch parent-service-instance-id matches",
+    "xml":"<switch test='`$tmp.servicedata.services.service[$serviceidx].service-instance-id == $tmp.search.consuming-service-instance-id`'>\n\n\n",
+    "comments":"",
+    "outputs":1,
+    "x":1596.2050170898438,
+    "y":1714.5616245269775,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "27b2238f.48bacc"
+      ]
+    ]
+  },
+  {
+    "id":"27b2238f.48bacc",
+    "type":"success",
+    "name":"true",
+    "xml":"<outcome value='true'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":1851.8715934753418,
+    "y":1665.561752319336,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "d6b8cc2c.e7ed2"
+      ]
+    ]
+  },
+  {
+    "id":"da8a3a08.847948",
+    "type":"success",
+    "name":"success",
+    "xml":"<outcome value='success'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":1176.5382614135742,
+    "y":1623.8948411941528,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "9bd5631.49aaba"
+      ]
+    ]
+  },
+  {
+    "id":"4e104241.ba90cc",
+    "type":"not-found",
+    "name":"not-found",
+    "xml":"<outcome value='not-found'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":1154.8716201782227,
+    "y":1690.5615339279175,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "95609128.36e19"
+      ]
+    ]
+  },
+  {
+    "id":"c7e2b4a3.bcd4c8",
+    "type":"failure",
+    "name":"failure",
+    "xml":"<outcome value='failure'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":1145.871669769287,
+    "y":1659.061559677124,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "95609128.36e19"
+      ]
+    ]
+  },
+  {
+    "id":"95609128.36e19",
+    "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":1315.6217079162598,
+    "y":1659.811583518982,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"d6b8cc2c.e7ed2",
+    "type":"for",
+    "name":"for service vnfs",
+    "xml":"<for index='vnfidx' start='0' end='`$tmp.servicedata.services.service[$serviceidx].service-data.vnfs.vnf_length`' >\n\n\n",
+    "comments":"",
+    "outputs":1,
+    "x":1885.5381240844727,
+    "y":1566.8949918746948,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "dc75c31d.21ba2"
+      ]
+    ]
+  },
+  {
+    "id":"d6733026.3d178",
+    "type":"switchNode",
+    "name":"switch parent-service-instance-id matches",
+    "xml":"<switch test='`$tmp.servicedata.services.service[$serviceidx].service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfmoduleidx].vf-module-data.vf-module-topology.vf-module-parameters.param[$paramidx].name == vgw_private_ip_1`'>\n\n\n",
+    "comments":"",
+    "outputs":1,
+    "x":2445.5381088256836,
+    "y":1590.561650276184,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "43171d7f.7e6834"
+      ]
+    ]
+  },
+  {
+    "id":"43171d7f.7e6834",
+    "type":"success",
+    "name":"true",
+    "xml":"<outcome value='true'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":2695.5381927490234,
+    "y":1592.2283849716187,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "3f1e667b.61b1aa"
+      ]
+    ]
+  },
+  {
+    "id":"dc75c31d.21ba2",
+    "type":"for",
+    "name":"for service vnf vf-modules",
+    "xml":"<for index='vfmoduleidx' start='0' end='`$tmp.servicedata.services.service[$serviceidx].service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module_length`' >\n\n\n",
+    "comments":"",
+    "outputs":1,
+    "x":2110.5382385253906,
+    "y":1593.8949279785156,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "d918ac81.8d655"
+      ]
+    ]
+  },
+  {
+    "id":"d918ac81.8d655",
+    "type":"for",
+    "name":"for service vnfs vf-modules parameters",
+    "xml":"<for index='paramidx' start='0' end='`$tmp.servicedata.services.service[$serviceidx].service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfmoduleidx].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >\n\n\n",
+    "comments":"",
+    "outputs":1,
+    "x":2200.538215637207,
+    "y":1678.8948965072632,
+    "z":"e9217625.0cac48",
+    "wires":[
+      [
+        "d6733026.3d178"
+      ]
+    ]
+  },
+  {
+    "id":"3f1e667b.61b1aa",
+    "type":"set",
+    "name":"set vg-mgmt-ip",
+    "xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.vg-mgmt-ip' value='`$tmp.servicedata.services.service[$serviceidx].service-data.vnfs.vnf[$vnfidx].vnf-data.vf-modules.vf-module[$vfmoduleidx].vf-module-data.vf-module-topology.vf-module-parameters.param[$paramidx].value`' />\n",
+    "comments":"",
+    "x":2877.2047424316406,
+    "y":1588.894944190979,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"8bd7c7a7.dbe958",
+    "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":762.8334503173828,
+    "y":1518.3331851959229,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  },
+  {
+    "id":"b4b8750b.6fbcb8",
+    "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":798.8333930969238,
+    "y":1572.666563987732,
+    "z":"e9217625.0cac48",
+    "wires":[
+
+    ]
+  }
+]
\ No newline at end of file