aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.json208
1 files changed, 208 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.json
new file mode 100644
index 00000000..8de156fe
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_get-vnf-api-parent-instance.json
@@ -0,0 +1,208 @@
+[
+ {
+ "id":"ca9867f0.bee9b8",
+ "type":"for",
+ "name":"for tmp.vnfs",
+ "xml":"<for index='vnfidx' start='0' end='`$tmp.vnfdata.vnfs.vnf-list_length`' >\n\n\n",
+ "comments":"",
+ "outputs":1,
+ "x":490.9999313354492,
+ "y":347.3333616256714,
+ "z":"113743e5.c5805c",
+ "wires":[
+ [
+ "c8f3625d.8c17"
+ ]
+ ]
+ },
+ {
+ "id":"5f5355c8.d5e21c",
+ "type":"dgstart",
+ "name":"DGSTART",
+ "outputs":1,
+ "x":121.66665649414062,
+ "y":80,
+ "z":"113743e5.c5805c",
+ "wires":[
+ [
+ "72be46c0.39b648"
+ ]
+ ]
+ },
+ {
+ "id":"72be46c0.39b648",
+ "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":272.90473556518555,
+ "y":147.95239067077637,
+ "z":"113743e5.c5805c",
+ "wires":[
+ [
+ "f67f0e3d.eb57b"
+ ]
+ ]
+ },
+ {
+ "id":"f67f0e3d.eb57b",
+ "type":"method",
+ "name":"get-vnf-api-parent-instance",
+ "xml":"<method rpc='get-vnf-api-parent-instance' mode='sync'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":326.8215026855469,
+ "y":207.19044494628906,
+ "z":"113743e5.c5805c",
+ "wires":[
+ [
+ "26d836cd.d8f48a"
+ ]
+ ]
+ },
+ {
+ "id":"26d836cd.d8f48a",
+ "type":"block",
+ "name":"block : atomic",
+ "xml":"<block atomic=\"true\">",
+ "atomic":"true",
+ "comments":"",
+ "outputs":1,
+ "x":227.14284896850586,
+ "y":326.5237879753113,
+ "z":"113743e5.c5805c",
+ "wires":[
+ [
+ "c3cef9b4.0af4e8",
+ "ca9867f0.bee9b8"
+ ]
+ ]
+ },
+ {
+ "id":"c3cef9b4.0af4e8",
+ "type":"get-resource",
+ "name":"get-resource vnf-api vnfs",
+ "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='vnfs' pfx='tmp.vnfdata' >\n",
+ "comments":"",
+ "outputs":1,
+ "x":535.9999847412109,
+ "y":286.9999952316284,
+ "z":"113743e5.c5805c",
+ "wires":[
+ [
+
+ ]
+ ]
+ },
+ {
+ "id":"c8f3625d.8c17",
+ "type":"switchNode",
+ "name":"switch parent-service-instance-id matches",
+ "xml":"<switch test='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.service-information.service-instance-id == $tmp.search.parent-service-instance-id`'>\n\n\n",
+ "comments":"",
+ "outputs":1,
+ "x":763.9999847412109,
+ "y":349.6666841506958,
+ "z":"113743e5.c5805c",
+ "wires":[
+ [
+ "929c05d0.10e968"
+ ]
+ ]
+ },
+ {
+ "id":"8e1b44d6.600948",
+ "type":"get-resource",
+ "name":"get-resource parent service instance",
+ "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='vnfs/vnf-list/$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.vnf-id/service-data/' pfx='parent-service-instance' >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t",
+ "comments":"",
+ "outputs":1,
+ "x":1265.3333053588867,
+ "y":324.6666851043701,
+ "z":"113743e5.c5805c",
+ "wires":[
+ [
+ "2e1a8d2c.7d2b72"
+ ]
+ ]
+ },
+ {
+ "id":"2e1a8d2c.7d2b72",
+ "type":"failure",
+ "name":"failure",
+ "xml":"<outcome value='failure'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1490.666654586792,
+ "y":324.33336639404297,
+ "z":"113743e5.c5805c",
+ "wires":[
+ [
+ "b633d9b1.a67d28"
+ ]
+ ]
+ },
+ {
+ "id":"929c05d0.10e968",
+ "type":"success",
+ "name":"true",
+ "xml":"<outcome value='true'>\n",
+ "comments":"",
+ "outputs":1,
+ "x":1003.0000076293945,
+ "y":240.66669464111328,
+ "z":"113743e5.c5805c",
+ "wires":[
+ [
+ "40f0e6cc.970498"
+ ]
+ ]
+ },
+ {
+ "id":"40f0e6cc.970498",
+ "type":"block",
+ "name":"block",
+ "xml":"<block>\n",
+ "atomic":"false",
+ "comments":"",
+ "outputs":1,
+ "x":1036.0000534057617,
+ "y":327.6667003631592,
+ "z":"113743e5.c5805c",
+ "wires":[
+ [
+ "5f33dc50.216f34",
+ "8e1b44d6.600948"
+ ]
+ ]
+ },
+ {
+ "id":"5f33dc50.216f34",
+ "type":"set",
+ "name":"set tmp.old-service-data.vnf-id",
+ "xml":"<set>\n<parameter name='tmp.old-service-data.vnf-id' value='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.vnf-id`' />\n",
+ "comments":"",
+ "x":1255.0000228881836,
+ "y":231.00003814697266,
+ "z":"113743e5.c5805c",
+ "wires":[
+
+ ]
+ },
+ {
+ "id":"b633d9b1.a67d28",
+ "type":"returnFailure",
+ "name":"return failure - parent service instance not found",
+ "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=\"`'No entry found for parent service instance id ' + $tmp.ar.parent-service-instance-id + '.'`\" />\n",
+ "comments":"",
+ "x":1759.6666259765625,
+ "y":316.6666564941406,
+ "z":"113743e5.c5805c",
+ "wires":[
+
+ ]
+ }
+] \ No newline at end of file