- "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":1163.8626251220703,
- "y":1769.1008231639862,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "5bb67f7.ab55c8",
- "46f52c14.83ac04",
- "c3730f0f.b2283"
- ]
- ]
- },
- {
- "id":"5bb67f7.ab55c8",
- "type":"not-found",
- "name":"not-found",
- "xml":"<outcome value='not-found'>\n",
- "comments":"",
- "outputs":1,
- "x":1432.5040016174316,
- "y":1820.4322349056602,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "2d28b29b.2679ae"
- ]
- ]
- },
- {
- "id":"46f52c14.83ac04",
- "type":"failure",
- "name":"failure",
- "xml":"<outcome value='failure'>\n",
- "comments":"",
- "outputs":1,
- "x":1423.504051208496,
- "y":1788.9322606548667,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "2d28b29b.2679ae"
- ]
- ]
- },
- {
- "id":"c3730f0f.b2283",
- "type":"success",
- "name":"success",
- "xml":"<outcome value='success'>\n",
- "comments":"",
- "outputs":1,
- "x":1427.2540893554688,
- "y":1759.289365530014,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "bfc770a.039b39"
- ]
- ]
- },
- {
- "id":"2d28b29b.2679ae",
- "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":1593.2540893554688,
- "y":1789.6822844967246,
- "z":"6d778d5b.c45f64",
- "wires":[
-
- ]
- },
- {
- "id":"26675278.de272e",
- "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":1173.5294189453125,
- "y":462.05291748046875,
- "z":"6d778d5b.c45f64",
- "wires":[
-
- ]
- },
- {
- "id":"56500c.86eb1ff4",
- "type":"comment",
- "name":"Save consumed-allotted-resources to mdsal",
- "info":"",
- "comments":"",
- "x":1241.2434692382812,
- "y":1143.7196044921875,
- "z":"6d778d5b.c45f64",
- "wires":[
-
- ]
- },
- {
- "id":"a45d9a74.e21dc8",
- "type":"comment",
- "name":"GET tunnelxconn-allotted-resource from mdsal",
- "info":"",
- "comments":"",
- "x":546.8148193359375,
- "y":331.7672119140625,
- "z":"6d778d5b.c45f64",
- "wires":[
-
- ]
- },
- {
- "id":"e55d0a81.00b8c8",
- "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.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
- "comments":"",
- "x":1133.129150390625,
- "y":357.6243896484375,
- "z":"6d778d5b.c45f64",
- "wires":[
-
- ]
- },
- {
- "id":"585a5348.26ebdc",
- "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":1183.38623046875,
- "y":555.6243896484375,
- "z":"6d778d5b.c45f64",
- "wires":[
-
- ]
- },
- {
- "id":"adb0c575.93fc28",
- "type":"comment",
- "name":"Set allotted-resource-identifiers",
- "info":"",
- "comments":"",
- "x":1210.338623046875,
- "y":514.338623046875,
- "z":"6d778d5b.c45f64",
- "wires":[
-
- ]
- },
- {
- "id":"657f2f7c.d06f3",
- "type":"set",
- "name":"set identifiers in overal structure",
- "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.allotted-resource-identifiers.' \nvalue=\"`$tx-ar-identifiers.`\" />\n\n\n",
- "comments":"",
- "x":1200.38623046875,
- "y":863.910400390625,
- "z":"6d778d5b.c45f64",
- "wires":[
-
- ]
- },
- {
- "id":"5116afe8.1fbc7",
- "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":1228.957763671875,
- "y":598.9100952148438,
- "z":"6d778d5b.c45f64",
- "wires":[
-
- ]
- },
- {
- "id":"ae66aa68.abd658",
- "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":1209.8148193359375,
- "y":638.195809841156,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "6cc54295.2d161c"
- ]
- ]
- },
- {
- "id":"6cc54295.2d161c",
- "type":"outcome",
- "name":"outcome null",
- "xml":"<outcome value=''>\n",
- "comments":"",
- "outputs":1,
- "x":1436.9576988220215,
- "y":639.6243271827698,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "81127881.9d9608"
- ]
- ]
- },
- {
- "id":"81127881.9d9608",
- "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":1638.38627243042,
- "y":639.0528798103333,
- "z":"6d778d5b.c45f64",
- "wires":[
-
- ]
- },
- {
- "id":"152bdff8.022b9",
- "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":1181.2434158325195,
- "y":672.4815106391907,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "bbbedf49.98db6"
- ]
- ]
- },
- {
- "id":"bbbedf49.98db6",
- "type":"outcome",
- "name":"outcome null",
- "xml":"<outcome value=''>\n",
- "comments":"",
- "outputs":1,
- "x":1382.6719818115234,
- "y":673.0529322624207,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "569c769b.028248"
- ]
- ]
- },
- {
- "id":"569c769b.028248",
- "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":1575.529140472412,
- "y":673.0528540611267,
- "z":"6d778d5b.c45f64",
- "wires":[
-
- ]
- },
- {
- "id":"20290d0b.2155a2",
- "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":1189.8148193359375,
- "y":705.3386378288269,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "7e9cf888.d7fe28"
- ]
- ]
- },
- {
- "id":"7e9cf888.d7fe28",
- "type":"outcome",
- "name":"outcome null",
- "xml":"<outcome value=''>\n",
- "comments":"",
- "outputs":1,
- "x":1439.8148002624512,
- "y":705.3386225700378,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "5612f00a.3e69b"
- ]
- ]
- },
- {
- "id":"5612f00a.3e69b",
- "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":1632.6719589233398,
- "y":705.3385443687439,
- "z":"6d778d5b.c45f64",
- "wires":[
-
- ]
- },
- {
- "id":"a6deba2.5709c48",
- "type":"switchNode",
- "name":"switch ar-model.ecomp-generated-naming",
- "xml":"<switch test='`$ar-model.ecomp-generated-naming`'>\n",
- "comments":"",
- "outputs":1,
- "x":1253.38623046875,
- "y":807.7672729492188,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "6d922375.aad36c",
- "57e0183a.8970f8"
- ]
- ]
- },
- {
- "id":"6d922375.aad36c",
- "type":"other",
- "name":"outcome Y",
- "xml":"<outcome value='Y'>\n",
- "comments":"",
- "outputs":1,
- "x":1539.3862915039062,
- "y":807.1958618164062,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "1fce2277.8cc94e"
- ]
- ]
- },
- {
- "id":"1fce2277.8cc94e",
- "type":"block",
- "name":"block : atomic",
- "xml":"<block atomic=\"true\">\n",
- "atomic":"true",
- "comments":"",
- "outputs":1,
- "x":1693.1363525390625,
- "y":809.69580078125,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "88e249.16900db8"
- ]
- ]
- },
- {
- "id":"57e0183a.8970f8",
- "type":"other",
- "name":"other",
- "xml":"<outcome value='Other'>\n",
- "comments":"",
- "outputs":1,
- "x":1558.608642578125,
- "y":896.1958618164062,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "3976e608.f5d75a"
- ]
- ]
- },
- {
- "id":"3976e608.f5d75a",
- "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":1741.608642578125,
- "y":901.1958618164062,
- "z":"6d778d5b.c45f64",
- "wires":[
-
- ]
- },
- {
- "id":"88e249.16900db8",
- "type":"switchNode",
- "name":"switch ar-model.ecomp-generated-naming",
- "xml":"<switch test='`$ar-model.naming-policy`'>\n",
- "comments":"",
- "outputs":1,
- "x":1829.38623046875,
- "y":858.767333984375,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "5641d8c.283f728",
- "b39ef6a0.0274b8"
- ]
- ]
- },
- {
- "id":"5641d8c.283f728",
- "type":"other",
- "name":"outcome oam_network_policy",
- "xml":"<outcome value='oam_network_policy'>\n",
- "comments":"",
- "outputs":1,
- "x":2204.244140625,
- "y":862.3453369140625,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "b3953e7c.866a1"
- ]
- ]
- },
- {
- "id":"b39ef6a0.0274b8",
- "type":"other",
- "name":"other",
- "xml":"<outcome value='Other'>\n",
- "comments":"",
- "outputs":1,
- "x":2118.671875,
- "y":939.1958618164062,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "b3953e7c.866a1"
- ]
- ]
- },
- {
- "id":"2b9f3515.cf741a",
- "type":"set",
- "name":"set ar_name",
- "xml":"<set>\n<parameter name='tmp.ar-name' value='$TenantOAMNetworkRole_$LandingNetworkRole_SZ' />\n",
- "comments":"",
- "x":2510.100830078125,
- "y":897.7672729492188,
- "z":"6d778d5b.c45f64",
- "wires":[
-
- ]
- },
- {
- "id":"3cef7181.8fe5ae",
- "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":2654.2437858581543,
- "y":941.6244196891785,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
-
- ]
- ]
- },
- {
- "id":"ab0c53b1.763fd",
- "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":2641.243896484375,
- "y":981.7672729492188,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
-
- ]
- ]
- },
- {
- "id":"b3953e7c.866a1",
- "type":"block",
- "name":"block: atomic",
- "xml":"<block atomic='true'>\n",
- "atomic":"false",
- "comments":"",
- "outputs":1,
- "x":2318.5292015075684,
- "y":937.3387522697449,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "2b9f3515.cf741a",
- "3cef7181.8fe5ae",
- "ab0c53b1.763fd",
- "d423712c.9510d"
- ]
- ]
- },
- {
- "id":"d423712c.9510d",
- "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":2599.1005859375,
- "y":1032.052978515625,
- "z":"6d778d5b.c45f64",
- "wires":[
-
- ]
- },
- {
- "id":"f2d263a0.9cb28",
- "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":1208.8624572753906,
- "y":1068.6246919631958,
- "z":"6d778d5b.c45f64",
- "wires":[
-
- ]
- },
- {
- "id":"cfb78668.00cd08",
- "type":"set",
- "name":"Handle tx-ar-assignments",
- "xml":"<set>\n<parameter name='tx-ar-assignments.vni' value='`$tmp.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\n",
- "comments":"",
- "x":1192.529052734375,
- "y":1014.0530395507812,
- "z":"6d778d5b.c45f64",
- "wires":[
-
- ]
- },
- {
- "id":"4da8a0e3.f9391",
- "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":2226.8155822753906,
- "y":1342.0411586761475,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "501bbf27.3dc73"
- ]
- ]
- },
- {
- "id":"a8b2172e.cd4e48",
- "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":1255.8148498535156,
- "y":1230.505145072937,
- "z":"6d778d5b.c45f64",
- "wires":[
- [
- "a50704cf.c04048",
- "85ec2af5.2058c8"
- ]
- ]
- },
- {
- "id":"a50704cf.c04048",
- "type":"other",
- "name":"outcome Null",
- "xml":"<outcome value=''>\n",