Merge "Modify DG for VoLTE use case"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_l3-dci-connects-network-topology-operation-deactivate.json
1 [
2   {
3     "id": "eccff5d7.133008",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 197.57144165039062,
8     "y": 164.71429443359375,
9     "z": "ff7b9140.00847",
10     "wires": [
11       [
12         "6e5507cf.91aaf8"
13       ]
14     ]
15   },
16   {
17     "id": "6e5507cf.91aaf8",
18     "type": "service-logic",
19     "name": "GENERIC-RESOURCE-API ${project.version}",
20     "module": "GENERIC-RESOURCE-API",
21     "version": "${project.version}",
22     "comments": "",
23     "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
24     "outputs": 1,
25     "x": 458.5714416503906,
26     "y": 235.71429443359375,
27     "z": "ff7b9140.00847",
28     "wires": [
29       [
30         "794cc996.86b338"
31       ]
32     ]
33   },
34   {
35     "id": "794cc996.86b338",
36     "type": "method",
37     "name": "method network-topology-operation-deactivate",
38     "xml": "<method rpc='network-topology-operation-deactivate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 348.5714416503906,
42     "y": 320.71429443359375,
43     "z": "ff7b9140.00847",
44     "wires": [
45       [
46         "27ce9933.d83166"
47       ]
48     ]
49   },
50   {
51     "id": "27ce9933.d83166",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 647.5714416503906,
58     "y": 314.71429443359375,
59     "z": "ff7b9140.00847",
60     "wires": [
61       [
62         "8fe3f7a2.701c08",
63         "f07d07dd.0f82f8",
64         "52830e26.ad7cf",
65         "5dce8f7d.a2317",
66         "b970ed31.468f1",
67         "b9373240.46c8d",
68         "95a62a7c.6a59d8"
69       ]
70     ]
71   },
72   {
73     "id": "8fe3f7a2.701c08",
74     "type": "call",
75     "name": "call GENERIC-RESOURCE-API:validate-network-input-parameters",
76     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n",
77     "comments": "",
78     "outputs": 1,
79     "x": 1018.5714416503906,
80     "y": 189.71429443359375,
81     "z": "ff7b9140.00847",
82     "wires": [
83       []
84     ]
85   },
86   {
87     "id": "f07d07dd.0f82f8",
88     "type": "get-resource",
89     "name": "get-resource l3-dci-connects",
90     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"l3-dci-connects\" \n\t\tkey=\"l3-dci-connects.id AND depth = '1'\"\n        pfx='tmp.aai.l3-dci-connects' local-only='false' >\n",
91     "comments": "",
92     "outputs": 1,
93     "x": 905.5714416503906,
94     "y": 291.71429443359375,
95     "z": "ff7b9140.00847",
96     "wires": [
97       [
98         "ab4b1556.54b4e8",
99         "5e6324b6.a19cdc",
100         "cfaa7aaf.305588"
101       ]
102     ]
103   },
104   {
105     "id": "ab4b1556.54b4e8",
106     "type": "success",
107     "name": "success",
108     "xml": "<outcome value='success'>\n",
109     "comments": "",
110     "outputs": 1,
111     "x": 1154.5714416503906,
112     "y": 255.71429443359375,
113     "z": "ff7b9140.00847",
114     "wires": [
115       [
116         "d103d67c.2efc28"
117       ]
118     ]
119   },
120   {
121     "id": "5e6324b6.a19cdc",
122     "type": "not-found",
123     "name": "not-found",
124     "xml": "<outcome value='not-found'>\n",
125     "comments": "",
126     "outputs": 1,
127     "x": 1161.5714416503906,
128     "y": 293.71429443359375,
129     "z": "ff7b9140.00847",
130     "wires": [
131       [
132         "da6bfe10.2594"
133       ]
134     ]
135   },
136   {
137     "id": "cfaa7aaf.305588",
138     "type": "other",
139     "name": "other",
140     "xml": "<outcome value='Other'>\n",
141     "comments": "",
142     "outputs": 1,
143     "x": 1153.5714416503906,
144     "y": 335.71429443359375,
145     "z": "ff7b9140.00847",
146     "wires": [
147       [
148         "557aad8d.aa8554"
149       ]
150     ]
151   },
152   {
153     "id": "d103d67c.2efc28",
154     "type": "block",
155     "name": "block : atomic",
156     "xml": "<block atomic=\"true\">\n",
157     "atomic": "false",
158     "comments": "",
159     "outputs": 1,
160     "x": 1319.5714416503906,
161     "y": 244.71429443359375,
162     "z": "ff7b9140.00847",
163     "wires": [
164       []
165     ]
166   },
167   {
168     "id": "da6bfe10.2594",
169     "type": "returnFailure",
170     "name": "return failure",
171     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
172     "comments": "",
173     "x": 1318.5714416503906,
174     "y": 297.71429443359375,
175     "z": "ff7b9140.00847",
176     "wires": []
177   },
178   {
179     "id": "557aad8d.aa8554",
180     "type": "returnFailure",
181     "name": "return failure",
182     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
183     "comments": "",
184     "x": 1311.5714416503906,
185     "y": 344.71429443359375,
186     "z": "ff7b9140.00847",
187     "wires": []
188   },
189   {
190     "id": "52830e26.ad7cf",
191     "type": "record",
192     "name": "record",
193     "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"Time\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"Method\" value=\"network-topology-operation-deactivate\"/>\n<parameter name=\"SubMethod\" value=\"l3-dci-connects\"/>\n<parameter name=\"L3DciConnectsId\" value=\"`$l3-dci-connects.id`\"/>\n",
194     "comments": "",
195     "outputs": 1,
196     "x": 843.5714416503906,
197     "y": 355.71429443359375,
198     "z": "ff7b9140.00847",
199     "wires": [
200       []
201     ]
202   },
203   {
204     "id": "5dce8f7d.a2317",
205     "type": "set",
206     "name": "set controller data",
207     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.serviceUrl`\" />\n<parameter name='prop.sdncRestApi.templateDir' value='/opt/onap/sdnc/data' />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.password`\" />\n\n",
208     "comments": "",
209     "x": 876.5714416503906,
210     "y": 416.71429443359375,
211     "z": "ff7b9140.00847",
212     "wires": []
213   },
214   {
215     "id": "b9373240.46c8d",
216     "type": "execute",
217     "name": "execute RestApiCallNode Deactivate Vxlan Tunnel",
218     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"$prop.sdncRestApi.thirdpartySdnc.url + '/v2.0/l3-dci-connects/' + $prop.l3-dci-connects.id\"/>\n<parameter name=\"restapiUser\" value=\"$prop.sdncRestApi.thirdpartySdnc.user\"/>\n<parameter name=\"restapiPassword\" value=\"$prop.sdncRestApi.thirdpartySdnc.password\"/>\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"restapi-result\"/>\n",
219     "comments": "",
220     "outputs": 1,
221     "x": 986.5714416503906,
222     "y": 587.7142944335938,
223     "z": "ff7b9140.00847",
224     "wires": [
225       []
226     ]
227   },
228   {
229     "id": "b970ed31.468f1",
230     "type": "switchNode",
231     "name": "switch id is null",
232     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.l3-dci-connects.id`\">\n",
233     "comments": "",
234     "outputs": 1,
235     "x": 866.5714416503906,
236     "y": 473.71429443359375,
237     "z": "ff7b9140.00847",
238     "wires": [
239       [
240         "8114f571.7eeb08",
241         "3c8b92a1.c3746e"
242       ]
243     ]
244   },
245   {
246     "id": "8114f571.7eeb08",
247     "type": "outcome",
248     "name": "outcome null",
249     "xml": "<outcome value=''>\n",
250     "comments": "",
251     "outputs": 1,
252     "x": 1040.5714416503906,
253     "y": 474.71429443359375,
254     "z": "ff7b9140.00847",
255     "wires": [
256       [
257         "219cc125.de633e"
258       ]
259     ]
260   },
261   {
262     "id": "219cc125.de633e",
263     "type": "returnFailure",
264     "name": "return failure",
265     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
266     "comments": "",
267     "x": 1211.5714416503906,
268     "y": 471.71429443359375,
269     "z": "ff7b9140.00847",
270     "wires": []
271   },
272   {
273     "id": "3c8b92a1.c3746e",
274     "type": "outcomeTrue",
275     "name": "true",
276     "xml": "<outcome value='true'>\n",
277     "comments": "",
278     "outputs": 1,
279     "x": 1019.5714416503906,
280     "y": 523.7142944335938,
281     "z": "ff7b9140.00847",
282     "wires": [
283       [
284         "ef920fd.f106df"
285       ]
286     ]
287   },
288   {
289     "id": "ef920fd.f106df",
290     "type": "set",
291     "name": "set id",
292     "xml": "<set>\n<parametername='prop.l3-dci-connects.id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.l3-dci-connects.id.value`' />\n",
293     "comments": "",
294     "x": 1196.5714416503906,
295     "y": 518.7142944335938,
296     "z": "ff7b9140.00847",
297     "wires": []
298   },
299   {
300     "id": "95a62a7c.6a59d8",
301     "type": "returnSuccess",
302     "name": "return success",
303     "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
304     "comments": "",
305     "x": 872.5714416503906,
306     "y": 655.7142944335938,
307     "z": "ff7b9140.00847",
308     "wires": []
309   }
310 ]