Fix tunnelxconn create/delete ip bugs
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_get-vnf-api-parent-instance.json
1 [
2   {
3     "id":"ca9867f0.bee9b8",
4     "type":"for",
5     "name":"for tmp.vnfs",
6     "xml":"<for index='vnfidx' start='0' end='`$tmp.vnfdata.vnfs.vnf-list_length`' >\n\n\n",
7     "comments":"",
8     "outputs":1,
9     "x":490.9999313354492,
10     "y":347.3333616256714,
11     "z":"113743e5.c5805c",
12     "wires":[
13       [
14         "c8f3625d.8c17"
15       ]
16     ]
17   },
18   {
19     "id":"5f5355c8.d5e21c",
20     "type":"dgstart",
21     "name":"DGSTART",
22     "outputs":1,
23     "x":121.66665649414062,
24     "y":80,
25     "z":"113743e5.c5805c",
26     "wires":[
27       [
28         "72be46c0.39b648"
29       ]
30     ]
31   },
32   {
33     "id":"72be46c0.39b648",
34     "type":"service-logic",
35     "name":"GENERIC-RESOURCE-API ${project.version}",
36     "module":"GENERIC-RESOURCE-API",
37     "version":"${project.version}",
38     "comments":"",
39     "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}'>",
40     "outputs":1,
41     "x":272.90473556518555,
42     "y":147.95239067077637,
43     "z":"113743e5.c5805c",
44     "wires":[
45       [
46         "f67f0e3d.eb57b"
47       ]
48     ]
49   },
50   {
51     "id":"f67f0e3d.eb57b",
52     "type":"method",
53     "name":"get-vnf-api-parent-instance",
54     "xml":"<method rpc='get-vnf-api-parent-instance' mode='sync'>\n",
55     "comments":"",
56     "outputs":1,
57     "x":326.8215026855469,
58     "y":207.19044494628906,
59     "z":"113743e5.c5805c",
60     "wires":[
61       [
62         "26d836cd.d8f48a"
63       ]
64     ]
65   },
66   {
67     "id":"26d836cd.d8f48a",
68     "type":"block",
69     "name":"block : atomic",
70     "xml":"<block atomic=\"true\">",
71     "atomic":"true",
72     "comments":"",
73     "outputs":1,
74     "x":227.14284896850586,
75     "y":326.5237879753113,
76     "z":"113743e5.c5805c",
77     "wires":[
78       [
79         "c3cef9b4.0af4e8",
80         "ca9867f0.bee9b8"
81       ]
82     ]
83   },
84   {
85     "id":"c3cef9b4.0af4e8",
86     "type":"get-resource",
87     "name":"get-resource vnf-api vnfs",
88     "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='VNF-API' key='vnfs' pfx='tmp.vnfdata' >\n",
89     "comments":"",
90     "outputs":1,
91     "x":535.9999847412109,
92     "y":286.9999952316284,
93     "z":"113743e5.c5805c",
94     "wires":[
95       [
96
97       ]
98     ]
99   },
100   {
101     "id":"c8f3625d.8c17",
102     "type":"switchNode",
103     "name":"switch parent-service-instance-id matches",
104     "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",
105     "comments":"",
106     "outputs":1,
107     "x":763.9999847412109,
108     "y":349.6666841506958,
109     "z":"113743e5.c5805c",
110     "wires":[
111       [
112         "929c05d0.10e968"
113       ]
114     ]
115   },
116   {
117     "id":"8e1b44d6.600948",
118     "type":"get-resource",
119     "name":"get-resource parent service instance",
120     "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",
121     "comments":"",
122     "outputs":1,
123     "x":1265.3333053588867,
124     "y":324.6666851043701,
125     "z":"113743e5.c5805c",
126     "wires":[
127       [
128         "2e1a8d2c.7d2b72"
129       ]
130     ]
131   },
132   {
133     "id":"2e1a8d2c.7d2b72",
134     "type":"failure",
135     "name":"failure",
136     "xml":"<outcome value='failure'>\n",
137     "comments":"",
138     "outputs":1,
139     "x":1490.666654586792,
140     "y":324.33336639404297,
141     "z":"113743e5.c5805c",
142     "wires":[
143       [
144         "b633d9b1.a67d28"
145       ]
146     ]
147   },
148   {
149     "id":"929c05d0.10e968",
150     "type":"success",
151     "name":"true",
152     "xml":"<outcome value='true'>\n",
153     "comments":"",
154     "outputs":1,
155     "x":1003.0000076293945,
156     "y":240.66669464111328,
157     "z":"113743e5.c5805c",
158     "wires":[
159       [
160         "40f0e6cc.970498"
161       ]
162     ]
163   },
164   {
165     "id":"40f0e6cc.970498",
166     "type":"block",
167     "name":"block",
168     "xml":"<block>\n",
169     "atomic":"false",
170     "comments":"",
171     "outputs":1,
172     "x":1036.0000534057617,
173     "y":327.6667003631592,
174     "z":"113743e5.c5805c",
175     "wires":[
176       [
177         "5f33dc50.216f34",
178         "8e1b44d6.600948"
179       ]
180     ]
181   },
182   {
183     "id":"5f33dc50.216f34",
184     "type":"set",
185     "name":"set  tmp.old-service-data.vnf-id",
186     "xml":"<set>\n<parameter name='tmp.old-service-data.vnf-id' value='`$tmp.vnfdata.vnfs.vnf-list[$vnfidx].service-data.vnf-id`' />\n",
187     "comments":"",
188     "x":1255.0000228881836,
189     "y":231.00003814697266,
190     "z":"113743e5.c5805c",
191     "wires":[
192
193     ]
194   },
195   {
196     "id":"b633d9b1.a67d28",
197     "type":"returnFailure",
198     "name":"return failure - parent service instance not found",
199     "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",
200     "comments":"",
201     "x":1759.6666259765625,
202     "y":316.6666564941406,
203     "z":"113743e5.c5805c",
204     "wires":[
205
206     ]
207   }
208 ]