+ "x":519.2949829101562,
+ "y":1504.9380531311035,
+ "z":"f97ade34.d219f",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"13ddb22.203944e",
+ "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":516.5014190673828,
+ "y":1630.3347854614258,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+ "855aaba9.6b3aa8",
+ "a699d7fa.a36428"
+ ]
+ ]
+ },
+ {
+ "id":"855aaba9.6b3aa8",
+ "type":"success",
+ "name":"success",
+ "xml":"<outcome value='success'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":805.3213386535645,
+ "y":1627.7141289710999,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+ "f2f0f6cf.5680f8"
+ ]
+ ]
+ },
+ {
+ "id":"f2f0f6cf.5680f8",
+ "type":"block",
+ "name":"block: atomic",
+ "xml":"<block atomic=\"true\">\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":986.3212928771973,
+ "y":1628.214078426361,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+ "4bd61641.b9f8b8",
+ "917b8b10.4cc338"
+ ]
+ ]
+ },
+ {
+ "id":"4bd61641.b9f8b8",
+ "type":"switchNode",
+ "name":"switch brg length",
+ "xml":"<switch test='`$service-data.service-data_length`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1232.178539276123,
+ "y":1662.4998416900635,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+ "8fd40478.4d0058"
+ ]
+ ]
+ },
+ {
+ "id":"8fd40478.4d0058",
+ "type":"other",
+ "name":"outcome 1",
+ "xml":"<outcome value='1'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1423.1785430908203,
+ "y":1662.4998393058777,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+ "dfcd0278.2218"
+ ]
+ ]
+ },
+ {
+ "id":"b0e5cf35.cee86",
+ "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":1823.0356788635254,
+ "y":1663.071263551712,
+ "z":"f97ade34.d219f",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"dfcd0278.2218",
+ "type":"block",
+ "name":"block: atomic",
+ "xml":"<block atomic='true'>\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":1594.0355262756348,
+ "y":1663.071308374405,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+ "b0e5cf35.cee86",
+ "86e0cd73.efb82"
+ ]
+ ]
+ },
+ {
+ "id":"e935998f.98c578",
+ "type":"comment",
+ "name":"GET vnf-api service info",
+ "info":"",
+ "comments":"",
+ "x":421.89267349243164,
+ "y":1593.642481803894,
+ "z":"f97ade34.d219f",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"86e0cd73.efb82",
+ "type":"switchNode",
+ "name":"switch order-status",
+ "xml":"<switch test='`$tmp.service-data.order-status`'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1806.7498970031738,
+ "y":1714.6426887512207,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+ "80a04a27.27e6e8",
+ "bd91de80.00dd6"
+ ]
+ ]
+ },
+ {
+ "id":"80a04a27.27e6e8",
+ "type":"outcome",
+ "name":"outcome Created",
+ "xml":"<outcome value='Created'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2046.6354598999023,
+ "y":1679.071237564087,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+ "e6bcc367.5fb5e"
+ ]
+ ]
+ },
+ {
+ "id":"bd91de80.00dd6",
+ "type":"outcome",
+ "name":"outcome Other",
+ "xml":"<outcome value='Other'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":2072.3498344421387,
+ "y":1714.499828338623,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+ "e6bcc367.5fb5e"
+ ]
+ ]
+ },
+ {
+ "id":"ead3daba.b613a8",
+ "type":"comment",
+ "name":"Set service-data",
+ "info":"",
+ "comments":"",
+ "x":395.9879341125488,
+ "y":1678.499674797058,
+ "z":"f97ade34.d219f",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"917b8b10.4cc338",
+ "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":1311.8928718566895,
+ "y":1628.2141704559326,
+ "z":"f97ade34.d219f",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"a699d7fa.a36428",
+ "type":"other",
+ "name":"other",
+ "xml":"<outcome value='Other'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":805.0831336975098,
+ "y":1663.9283018112183,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+ "bcb372d0.e3af8"
+ ]
+ ]
+ },
+ {
+ "id":"bcb372d0.e3af8",
+ "type":"block",
+ "name":"block: atomic",
+ "xml":"<block atomic=\"true\">\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":985.0830841064453,
+ "y":1664.5948524475098,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"e6bcc367.5fb5e",
+ "type":"block",
+ "name":"block",
+ "xml":"<block>\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":2261.1059761047363,
+ "y":1680.4468717575073,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"17504c2b.5ecc04",
+ "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":442.3108825683594,
+ "y":1551.7634887695312,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"173f16cf.2f6b79",
+ "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":516.5966033935547,
+ "y":1807.0018367767334,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+ "5cf17dae.c40c44",
+ "35de11e4.9a122e",
+ "95e02b4f.ebd798"
+ ]
+ ]
+ },
+ {
+ "id":"5cf17dae.c40c44",
+ "type":"not-found",
+ "name":"not-found",
+ "xml":"<outcome value='not-found'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1022.8094596862793,
+ "y":1801.5238494873047,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+ "6d015df7.3af934"
+ ]
+ ]
+ },
+ {
+ "id":"35de11e4.9a122e",
+ "type":"failure",
+ "name":"failure",
+ "xml":"<outcome value='failure'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1013.8095092773438,
+ "y":1770.0238752365112,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+ "6d015df7.3af934"
+ ]
+ ]
+ },
+ {
+ "id":"95e02b4f.ebd798",
+ "type":"success",
+ "name":"success",
+ "xml":"<outcome value='success'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1017.5595474243164,
+ "y":1740.3809801116586,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+ "90681ac.479fee8"
+ ]
+ ]
+ },
+ {
+ "id":"6d015df7.3af934",
+ "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":1183.5595474243164,
+ "y":1770.7738990783691,
+ "z":"f97ade34.d219f",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"90681ac.479fee8",
+ "type":"block",
+ "name":"block",
+ "xml":"<block>\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":1159.2155151367188,
+ "y":1736.5731493011117,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"75aa4c7c.d1f814",
+ "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":419.92994689941406,
+ "y":1766.5256357192993,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"5bcb3869.fa6198",
+ "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":507.85716247558594,
+ "y":857.7501087188721,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"60d1bf52.ad3d6",
+ "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":594.0000305175781,
+ "y":907.0000267028809,
+ "z":"f97ade34.d219f",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"ac82543e.0a2288",
+ "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":554.9999694824219,
+ "y":954.9998550415039,
+ "z":"f97ade34.d219f",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"4a0f8ea5.474a2",
+ "type":"call",
+ "name":"call GENERIC-RESOURCE-API:get-vgmux-lan-ip",
+ "xml":"<call module='GENERIC-RESOURCE-API' rpc='get-vgmux-lan-ip' mode='sync' >\n",
+ "comments":"",
+ "outputs":1,
+ "x":515.0000152587891,
+ "y":1003.3331918716431,
+ "z":"f97ade34.d219f",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"5f66c498.33c76c",
+ "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.vgmux-lan-ip`' />\n",
+ "comments":"",
+ "x":593.3332672119141,
+ "y":1056.6665697097778,
+ "z":"f97ade34.d219f",