+ },
+ {
+ "id":"d359b8c.b2e9848",
+ "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":547.5807209014893,
+ "y":1475.2236095443368,
+ "z":"bd738317.61f1e",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"d2ce0116.9d6fd",
+ "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":560.5014190673828,
+ "y":1596.3346309661865,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+ "25295636.0ab61a",
+ "bf6df68d.132c38"
+ ]
+ ]
+ },
+ {
+ "id":"25295636.0ab61a",
+ "type":"success",
+ "name":"success",
+ "xml":"<outcome value='success'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":849.3213386535645,
+ "y":1593.7139744758606,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+ "6176a3d2.ca4a4c"
+ ]
+ ]
+ },
+ {
+ "id":"6176a3d2.ca4a4c",
+ "type":"block",
+ "name":"block: atomic",
+ "xml":"<block atomic=\"true\">\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":1030.3212928771973,
+ "y":1594.2139239311218,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+ "8a58185b.1f0588",
+ "e2166c3e.a56a4"
+ ]
+ ]
+ },
+ {
+ "id":"8a58185b.1f0588",
+ "type":"switchNode",
+ "name":"switch brg length",
+ "xml":"<switch test='`$service-data.service-data_length`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1276.178539276123,
+ "y":1628.4996871948242,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+ "d1780eb8.0a48d"
+ ]
+ ]
+ },
+ {
+ "id":"d1780eb8.0a48d",
+ "type":"other",
+ "name":"outcome 1",
+ "xml":"<outcome value='1'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1467.1785430908203,
+ "y":1628.4996848106384,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+ "144d46bd.d15369"
+ ]
+ ]
+ },
+ {
+ "id":"c4f78b0c.399548",
+ "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":1867.0356788635254,
+ "y":1629.0711090564728,
+ "z":"bd738317.61f1e",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"144d46bd.d15369",
+ "type":"block",
+ "name":"block: atomic",
+ "xml":"<block atomic='true'>\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":1638.0355262756348,
+ "y":1629.0711538791656,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+ "c4f78b0c.399548",
+ "e2b696d0.92bce8"
+ ]
+ ]
+ },
+ {
+ "id":"acb27e89.7a99b",
+ "type":"comment",
+ "name":"GET vnf-api service info",
+ "info":"",
+ "comments":"",
+ "x":465.89267349243164,
+ "y":1559.6423273086548,
+ "z":"bd738317.61f1e",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"e2b696d0.92bce8",
+ "type":"switchNode",
+ "name":"switch order-status",
+ "xml":"<switch test='`$tmp.service-data.order-status`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1850.7498970031738,
+ "y":1680.6425342559814,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+ "93dea8c9.d15128",
+ "9bef71a8.f6f6b"
+ ]
+ ]
+ },
+ {
+ "id":"93dea8c9.d15128",
+ "type":"outcome",
+ "name":"outcome Created",
+ "xml":"<outcome value='Created'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2086.63565826416,
+ "y":1623.0711071491241,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+ "ef316dbf.6a0cc"
+ ]
+ ]
+ },
+ {
+ "id":"9bef71a8.f6f6b",
+ "type":"outcome",
+ "name":"outcome Other",
+ "xml":"<outcome value='Other'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2112.3500328063965,
+ "y":1658.4996979236603,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+ "ef316dbf.6a0cc"
+ ]
+ ]
+ },
+ {
+ "id":"da592da3.ffeb5",
+ "type":"comment",
+ "name":"Set service-data",
+ "info":"",
+ "comments":"",
+ "x":439.9879341125488,
+ "y":1644.4995203018188,
+ "z":"bd738317.61f1e",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"e2166c3e.a56a4",
+ "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":1355.8928718566895,
+ "y":1594.2140159606934,
+ "z":"bd738317.61f1e",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"bf6df68d.132c38",
+ "type":"other",
+ "name":"other",
+ "xml":"<outcome value='Other'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":849.0831336975098,
+ "y":1629.928147315979,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+ "cf1f6a1b.c9ce08"
+ ]
+ ]
+ },
+ {
+ "id":"cf1f6a1b.c9ce08",
+ "type":"block",
+ "name":"block: atomic",
+ "xml":"<block atomic=\"true\">\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":1029.0830841064453,
+ "y":1630.5946979522705,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"ef316dbf.6a0cc",
+ "type":"block",
+ "name":"block",
+ "xml":"<block>\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":2301.106174468994,
+ "y":1624.4467413425446,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"390bbb92.09b7f4",
+ "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",
+ "comments":"",
+ "outputs":1,
+ "x":486.3108825683594,
+ "y":1517.763334274292,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"9afe5c14.6ae23",
+ "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":560.5966033935547,
+ "y":1773.0016822814941,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+ "c87c4ec5.30548",
+ "9b0fe650.2f2a48",
+ "bddffe4d.e139c"
+ ]
+ ]
+ },
+ {
+ "id":"c87c4ec5.30548",
+ "type":"not-found",
+ "name":"not-found",
+ "xml":"<outcome value='not-found'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1066.8094596862793,
+ "y":1767.5236949920654,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+ "a54672fa.e0b22"
+ ]
+ ]
+ },
+ {
+ "id":"9b0fe650.2f2a48",
+ "type":"failure",
+ "name":"failure",
+ "xml":"<outcome value='failure'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1057.8095092773438,
+ "y":1736.023720741272,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+ "a54672fa.e0b22"
+ ]
+ ]
+ },
+ {
+ "id":"bddffe4d.e139c",
+ "type":"success",
+ "name":"success",
+ "xml":"<outcome value='success'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1061.5595474243164,
+ "y":1706.3808256164193,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+ "818c08d2.8fb6d8"
+ ]
+ ]
+ },
+ {
+ "id":"a54672fa.e0b22",
+ "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":1227.5595474243164,
+ "y":1736.7737445831299,
+ "z":"bd738317.61f1e",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"818c08d2.8fb6d8",
+ "type":"block",
+ "name":"block",
+ "xml":"<block>\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":1203.2155151367188,
+ "y":1702.5729948058724,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"d22b2425.82db18",
+ "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":463.92994689941406,
+ "y":1732.52548122406,
+ "z":"bd738317.61f1e",
+ "wires":[
+ [
+
+ ]
+ ]