Merge "Update plugin references"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_network-topology-operation-delete.json
1 [
2   {
3     "id": "2db23fe0.b16e38",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 100,
8     "y": 152,
9     "z": "e28e0974.bf7d98",
10     "wires": [
11       [
12         "ef877c4e.31bde"
13       ]
14     ]
15   },
16   {
17     "id": "ef877c4e.31bde",
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.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}'>",
24     "outputs": 1,
25     "x": 312.00000381469727,
26     "y": 224.0000171661377,
27     "z": "e28e0974.bf7d98",
28     "wires": [
29       [
30         "b072980d.888498"
31       ]
32     ]
33   },
34   {
35     "id": "b072980d.888498",
36     "type": "method",
37     "name": "method network-topology-operation-delete",
38     "xml": "<method rpc='network-topology-operation-delete' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 300.0001220703125,
42     "y": 312,
43     "z": "e28e0974.bf7d98",
44     "wires": [
45       [
46         "f8af1418.cc8ab"
47       ]
48     ]
49   },
50   {
51     "id": "f8af1418.cc8ab",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 576.0000305175781,
59     "y": 320.00001335144043,
60     "z": "e28e0974.bf7d98",
61     "wires": [
62       [
63         "17c4f39b.027bc4",
64         "e45c0fc3.d713c",
65         "627b018f.f2a78",
66         "54181c1f.692d04",
67         "8e12230b.25a0e"
68       ]
69     ]
70   },
71   {
72     "id": "17c4f39b.027bc4",
73     "type": "call",
74     "name": "call GENERIC-RESOURCE-API:validate-network-input-parameters",
75     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n",
76     "comments": "",
77     "outputs": 1,
78     "x": 897,
79     "y": 146,
80     "z": "e28e0974.bf7d98",
81     "wires": [
82       []
83     ]
84   },
85   {
86     "id": "e45c0fc3.d713c",
87     "type": "get-resource",
88     "name": "get-resource esr-thirdparty-sdnc",
89     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.thirdparty-sdnc-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
90     "comments": "",
91     "outputs": 1,
92     "x": 854,
93     "y": 446,
94     "z": "e28e0974.bf7d98",
95     "wires": [
96       [
97         "ae751a67.af5318",
98         "286e1ce2.b1b734",
99         "381203c2.6a9ed4"
100       ]
101     ]
102   },
103   {
104     "id": "ae751a67.af5318",
105     "type": "success",
106     "name": "success",
107     "xml": "<outcome value='success'>\n",
108     "comments": "",
109     "outputs": 1,
110     "x": 1170,
111     "y": 390,
112     "z": "e28e0974.bf7d98",
113     "wires": [
114       [
115         "1faac458.f1d3d4"
116       ]
117     ]
118   },
119   {
120     "id": "286e1ce2.b1b734",
121     "type": "not-found",
122     "name": "not-found",
123     "xml": "<outcome value='not-found'>\n",
124     "comments": "",
125     "outputs": 1,
126     "x": 1173.490966796875,
127     "y": 437.57403564453125,
128     "z": "e28e0974.bf7d98",
129     "wires": [
130       [
131         "9ef4deef.91afd8"
132       ]
133     ]
134   },
135   {
136     "id": "381203c2.6a9ed4",
137     "type": "other",
138     "name": "other",
139     "xml": "<outcome value='Other'>\n",
140     "comments": "",
141     "outputs": 1,
142     "x": 1168.823974609375,
143     "y": 478.9073486328125,
144     "z": "e28e0974.bf7d98",
145     "wires": [
146       [
147         "44d4a0f0.d6bf98"
148       ]
149     ]
150   },
151   {
152     "id": "9ef4deef.91afd8",
153     "type": "returnFailure",
154     "name": "return failure",
155     "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=\"Network model is_bound_to_vpn=true but no vpn_binding is present\" />\n\n",
156     "comments": "",
157     "x": 1350.0623779296875,
158     "y": 425.8597717285156,
159     "z": "e28e0974.bf7d98",
160     "wires": []
161   },
162   {
163     "id": "44d4a0f0.d6bf98",
164     "type": "returnFailure",
165     "name": "return failure",
166     "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=\"Unexpected error retrieving vpn binding\" />\n\n",
167     "comments": "",
168     "x": 1356.5965309143066,
169     "y": 474.3465414047241,
170     "z": "e28e0974.bf7d98",
171     "wires": []
172   },
173   {
174     "id": "1faac458.f1d3d4",
175     "type": "block",
176     "name": "block : atomic",
177     "xml": "<block atomic=\"true\">",
178     "atomic": "true",
179     "outputs": 1,
180     "x": 1348.205322265625,
181     "y": 382.57403564453125,
182     "z": "e28e0974.bf7d98",
183     "wires": [
184       []
185     ]
186   },
187   {
188     "id": "627b018f.f2a78",
189     "type": "for",
190     "name": "for each network-input-parameters",
191     "xml": "<for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' >\n",
192     "comments": "",
193     "outputs": 1,
194     "x": 859,
195     "y": 281,
196     "z": "e28e0974.bf7d98",
197     "wires": [
198       [
199         "55bd9517.8a2a3c"
200       ]
201     ]
202   },
203   {
204     "id": "55bd9517.8a2a3c",
205     "type": "block",
206     "name": "block",
207     "xml": "<block>\n",
208     "atomic": "false",
209     "comments": "",
210     "outputs": 1,
211     "x": 1140.8333740234375,
212     "y": 259.3333435058594,
213     "z": "e28e0974.bf7d98",
214     "wires": [
215       [
216         "aaca6566.847a28",
217         "58c4c980.63f76"
218       ]
219     ]
220   },
221   {
222     "id": "aaca6566.847a28",
223     "type": "switchNode",
224     "name": "switch name",
225     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
226     "comments": "",
227     "outputs": 1,
228     "x": 1349,
229     "y": 220,
230     "z": "e28e0974.bf7d98",
231     "wires": [
232       [
233         "e38f6b1e.d2dbc"
234       ]
235     ]
236   },
237   {
238     "id": "e38f6b1e.d2dbc",
239     "type": "outcomeTrue",
240     "name": "true",
241     "xml": "<outcome value='true'>\n",
242     "comments": "",
243     "outputs": 1,
244     "x": 1536,
245     "y": 220,
246     "z": "e28e0974.bf7d98",
247     "wires": [
248       [
249         "ce711958.0f3dd8"
250       ]
251     ]
252   },
253   {
254     "id": "ce711958.0f3dd8",
255     "type": "set",
256     "name": "set name",
257     "xml": "<set>\n<parameter name='prop.l3vpn.name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
258     "comments": "",
259     "x": 1704,
260     "y": 220.60000610351562,
261     "z": "e28e0974.bf7d98",
262     "wires": []
263   },
264   {
265     "id": "58c4c980.63f76",
266     "type": "switchNode",
267     "name": "switch service-type",
268     "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'service-type'`\">\n",
269     "comments": "",
270     "outputs": 1,
271     "x": 1352.9999389648438,
272     "y": 281.5999755859375,
273     "z": "e28e0974.bf7d98",
274     "wires": [
275       [
276         "416447eb.c5c02"
277       ]
278     ]
279   },
280   {
281     "id": "416447eb.c5c02",
282     "type": "outcomeTrue",
283     "name": "true",
284     "xml": "<outcome value='true'>\n",
285     "comments": "",
286     "outputs": 1,
287     "x": 1537.9999389648438,
288     "y": 279.5999755859375,
289     "z": "e28e0974.bf7d98",
290     "wires": [
291       [
292         "a89b0168.c64988"
293       ]
294     ]
295   },
296   {
297     "id": "a89b0168.c64988",
298     "type": "set",
299     "name": "set service-type",
300     "xml": "<set>\n<parameter name='prop.l3vpn.service-type' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
301     "comments": "",
302     "x": 1706.9999389648438,
303     "y": 277.5999755859375,
304     "z": "e28e0974.bf7d98",
305     "wires": []
306   },
307   {
308     "id": "54181c1f.692d04",
309     "type": "set",
310     "name": "set controller data",
311     "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",
312     "comments": "",
313     "x": 819,
314     "y": 557,
315     "z": "e28e0974.bf7d98",
316     "wires": []
317   },
318   {
319     "id": "cd353a.555cb2c8",
320     "type": "execute",
321     "name": "execute REST DELETE VPN",
322     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"$prop.sdncRestApi.tempDir +'/l3smvpntemplate.json'\"/>\n<parameter name=\"restapiUrl\" value=\"$prop.sdncRestApi.thirdpartySdnc.url +'/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/vpn-services/vpnservice='+$prop.l3vpn.name'\"/>\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\"/>",
323     "comments": "",
324     "outputs": 1,
325     "x": 1330,
326     "y": 634,
327     "z": "e28e0974.bf7d98",
328     "wires": [
329       []
330     ]
331   },
332   {
333     "id": "8e12230b.25a0e",
334     "type": "switchNode",
335     "name": "switch service-type",
336     "xml": "<switch test=\"`$prop.l3vpn.service-type`\">\n",
337     "comments": "",
338     "outputs": 1,
339     "x": 800,
340     "y": 652,
341     "z": "e28e0974.bf7d98",
342     "wires": [
343       [
344         "ecc26c17.c6fc7"
345       ]
346     ]
347   },
348   {
349     "id": "ecc26c17.c6fc7",
350     "type": "outcomeTrue",
351     "name": "l3vpn-ipwan",
352     "xml": "<outcome value='l3vpn-ipwan'>\n",
353     "comments": "",
354     "outputs": 1,
355     "x": 1050,
356     "y": 636,
357     "z": "e28e0974.bf7d98",
358     "wires": [
359       [
360         "cd353a.555cb2c8"
361       ]
362     ]
363   }
364 ]