+ },
+ {
+ "id":"71a3722d.c764ec",
+ "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":626.5807056427002,
+ "y":1518.8236003890634,
+ "z":"862ed298.34c67",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"9b340dbc.c3cb9",
+ "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":639.5014038085938,
+ "y":1639.934621810913,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+ "4e83fb54.735574",
+ "7c8664e4.3c832c"
+ ]
+ ]
+ },
+ {
+ "id":"4e83fb54.735574",
+ "type":"success",
+ "name":"success",
+ "xml":"<outcome value='success'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":928.3213233947754,
+ "y":1637.3139653205872,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+ "79817d79.711c34"
+ ]
+ ]
+ },
+ {
+ "id":"79817d79.711c34",
+ "type":"block",
+ "name":"block: atomic",
+ "xml":"<block atomic=\"true\">\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":1109.3212776184082,
+ "y":1637.8139147758484,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+ "6046c592.b5db8c",
+ "c9922e86.95618"
+ ]
+ ]
+ },
+ {
+ "id":"6046c592.b5db8c",
+ "type":"switchNode",
+ "name":"switch brg length",
+ "xml":"<switch test='`$service-data.service-data_length`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1355.178524017334,
+ "y":1672.0996780395508,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+ "c543d4c5.a58778"
+ ]
+ ]
+ },
+ {
+ "id":"c543d4c5.a58778",
+ "type":"other",
+ "name":"outcome 1",
+ "xml":"<outcome value='1'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1546.1785278320312,
+ "y":1672.099675655365,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+ "3876bd15.40e182"
+ ]
+ ]
+ },
+ {
+ "id":"7a8acdfc.bcdab4",
+ "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":1946.0356636047363,
+ "y":1672.6710999011993,
+ "z":"862ed298.34c67",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"3876bd15.40e182",
+ "type":"block",
+ "name":"block: atomic",
+ "xml":"<block atomic='true'>\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":1717.0355110168457,
+ "y":1672.6711447238922,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+ "7a8acdfc.bcdab4",
+ "b568a24.2ba8a6"
+ ]
+ ]
+ },
+ {
+ "id":"310849e5.8628a6",
+ "type":"comment",
+ "name":"GET vnf-api service info",
+ "info":"",
+ "comments":"",
+ "x":544.8926582336426,
+ "y":1603.2423181533813,
+ "z":"862ed298.34c67",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"b568a24.2ba8a6",
+ "type":"switchNode",
+ "name":"switch order-status",
+ "xml":"<switch test='`$tmp.service-data.order-status`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1929.7498817443848,
+ "y":1724.242525100708,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+ "8af678dd.44f128",
+ "afb48fe3.c1a3e"
+ ]
+ ]
+ },
+ {
+ "id":"8af678dd.44f128",
+ "type":"outcome",
+ "name":"outcome Created",
+ "xml":"<outcome value='Created'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2165.635643005371,
+ "y":1666.6710979938507,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+ "d2e19aea.143628"
+ ]
+ ]
+ },
+ {
+ "id":"afb48fe3.c1a3e",
+ "type":"outcome",
+ "name":"outcome Other",
+ "xml":"<outcome value='Other'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2191.3500175476074,
+ "y":1702.0996887683868,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+ "d2e19aea.143628"
+ ]
+ ]
+ },
+ {
+ "id":"3f5ea151.93eb9e",
+ "type":"comment",
+ "name":"Set service-data",
+ "info":"",
+ "comments":"",
+ "x":518.9879188537598,
+ "y":1688.0995111465454,
+ "z":"862ed298.34c67",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"c9922e86.95618",
+ "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":1434.8928565979004,
+ "y":1637.81400680542,
+ "z":"862ed298.34c67",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"7c8664e4.3c832c",
+ "type":"other",
+ "name":"other",
+ "xml":"<outcome value='Other'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":928.0831184387207,
+ "y":1673.5281381607056,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+ "d7ef85ba.f3d028"
+ ]
+ ]
+ },
+ {
+ "id":"d7ef85ba.f3d028",
+ "type":"block",
+ "name":"block: atomic",
+ "xml":"<block atomic=\"true\">\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":1108.0830688476562,
+ "y":1674.194688796997,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"d2e19aea.143628",
+ "type":"block",
+ "name":"block",
+ "xml":"<block>\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":2380.106159210205,
+ "y":1668.0467321872711,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"a9b802e0.3c87a",
+ "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=\"`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`\"/>\n",
+ "comments":"",
+ "outputs":1,
+ "x":565.3108673095703,
+ "y":1561.3633251190186,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"570d3d0b.27f934",
+ "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":639.5965881347656,
+ "y":1816.6016731262207,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+ "50cebd0f.3a5ba4",
+ "e6947788.b35638",
+ "3b96374a.556b08"
+ ]
+ ]
+ },
+ {
+ "id":"50cebd0f.3a5ba4",
+ "type":"not-found",
+ "name":"not-found",
+ "xml":"<outcome value='not-found'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1145.8094444274902,
+ "y":1811.123685836792,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+ "90f2f682.5d5ec8"
+ ]
+ ]
+ },
+ {
+ "id":"e6947788.b35638",
+ "type":"failure",
+ "name":"failure",
+ "xml":"<outcome value='failure'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1136.8094940185547,
+ "y":1779.6237115859985,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+ "90f2f682.5d5ec8"
+ ]
+ ]
+ },
+ {
+ "id":"3b96374a.556b08",
+ "type":"success",
+ "name":"success",
+ "xml":"<outcome value='success'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1140.5595321655273,
+ "y":1749.9808164611459,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+ "53875c1b.048fd4"
+ ]
+ ]
+ },
+ {
+ "id":"90f2f682.5d5ec8",
+ "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":1306.5595321655273,
+ "y":1780.3737354278564,
+ "z":"862ed298.34c67",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"53875c1b.048fd4",
+ "type":"block",
+ "name":"block",
+ "xml":"<block>\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":1282.2154998779297,
+ "y":1746.172985650599,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"5a18305b.6de8e",
+ "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",
+ "comments":"",
+ "outputs":1,
+ "x":542.929931640625,
+ "y":1776.1254720687866,
+ "z":"862ed298.34c67",
+ "wires":[
+ [
+
+ ]
+ ]