Update plugin references
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_dci-connects-network-topology-operation-deactivate.json
1 [
2   {
3     "id":"b4ab3cc5.98a8",
4     "type":"dgstart",
5     "name":"DGSTART",
6     "outputs":1,
7     "x":77,
8     "y":35,
9     "z":"4954cd5d.30ecf4",
10     "wires":[
11       [
12         "e6efa6d3.e15398"
13       ]
14     ]
15   },
16   {
17     "id":"e6efa6d3.e15398",
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":338,
26     "y":106,
27     "z":"4954cd5d.30ecf4",
28     "wires":[
29       [
30         "55bb413f.73fa7"
31       ]
32     ]
33   },
34   {
35     "id":"55bb413f.73fa7",
36     "type":"method",
37     "name":"method dci-connects-network-topology-operation-deactivate",
38     "xml":"<method rpc='dci-connects-network-topology-operation-deactivate' mode='sync'>\n",
39     "comments":"",
40     "outputs":1,
41     "x":228,
42     "y":191,
43     "z":"4954cd5d.30ecf4",
44     "wires":[
45       [
46         "750ee4c.8fdd21c"
47       ]
48     ]
49   },
50   {
51     "id":"750ee4c.8fdd21c",
52     "type":"block",
53     "name":"block : atomic",
54     "xml":"<block atomic=\"true\">",
55     "atomic":"true",
56     "outputs":1,
57     "x":527,
58     "y":185,
59     "z":"4954cd5d.30ecf4",
60     "wires":[
61       [
62         "ea6f8a69.5601e8",
63         "2f344129.2fe78e",
64         "33c821d9.b212fe",
65         "15fa4d45.d0b353",
66         "7e978ea8.0c5a1",
67         "a04a290c.948ab8"
68       ]
69     ]
70   },
71   {
72     "id":"ea6f8a69.5601e8",
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":898,
79     "y":60,
80     "z":"4954cd5d.30ecf4",
81     "wires":[
82       [
83
84       ]
85     ]
86   },
87   {
88     "id":"2f344129.2fe78e",
89     "type":"returnSuccess",
90     "name":"return success",
91     "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",
92     "comments":"",
93     "x":763.9999771118164,
94     "y":838.9999732971191,
95     "z":"4954cd5d.30ecf4",
96     "wires":[
97
98     ]
99   },
100   {
101     "id":"33c821d9.b212fe",
102     "type":"get-resource",
103     "name":"get-resource dci-connects",
104     "xml":"<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"dci-connects\" \n\t\tkey=\"dci-connects.id AND depth = '1'\"\n        pfx='tmp.aai.dci-connects' local-only='false' >\n",
105     "comments":"",
106     "outputs":1,
107     "x":803.9999847412109,
108     "y":306.9999887943268,
109     "z":"4954cd5d.30ecf4",
110     "wires":[
111       [
112         "bcbac350.046e5",
113         "bcb8c268.c1efd",
114         "95a7f0ae.33df5"
115       ]
116     ]
117   },
118   {
119     "id":"bcbac350.046e5",
120     "type":"success",
121     "name":"success",
122     "xml":"<outcome value='success'>\n",
123     "comments":"",
124     "outputs":1,
125     "x":1052.999984741211,
126     "y":270.9999887943268,
127     "z":"4954cd5d.30ecf4",
128     "wires":[
129       [
130         "9441b536.e2c908"
131       ]
132     ]
133   },
134   {
135     "id":"bcb8c268.c1efd",
136     "type":"not-found",
137     "name":"not-found",
138     "xml":"<outcome value='not-found'>\n",
139     "comments":"",
140     "outputs":1,
141     "x":1059.999984741211,
142     "y":308.9999887943268,
143     "z":"4954cd5d.30ecf4",
144     "wires":[
145       [
146         "22635f7c.d7e7a"
147       ]
148     ]
149   },
150   {
151     "id":"95a7f0ae.33df5",
152     "type":"other",
153     "name":"other",
154     "xml":"<outcome value='Other'>\n",
155     "comments":"",
156     "outputs":1,
157     "x":1051.999984741211,
158     "y":350.9999887943268,
159     "z":"4954cd5d.30ecf4",
160     "wires":[
161       [
162         "a0aae260.9c5c2"
163       ]
164     ]
165   },
166   {
167     "id":"22635f7c.d7e7a",
168     "type":"returnFailure",
169     "name":"return failure",
170     "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
171     "comments":"",
172     "x":1216.999984741211,
173     "y":312.9999887943268,
174     "z":"4954cd5d.30ecf4",
175     "wires":[
176
177     ]
178   },
179   {
180     "id":"a0aae260.9c5c2",
181     "type":"returnFailure",
182     "name":"return failure",
183     "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
184     "comments":"",
185     "x":1209.999984741211,
186     "y":359.9999887943268,
187     "z":"4954cd5d.30ecf4",
188     "wires":[
189
190     ]
191   },
192   {
193     "id":"15fa4d45.d0b353",
194     "type":"block",
195     "name":"block : sendRequest",
196     "xml":"<block atomic=\"true\">",
197     "atomic":"true",
198     "comments":"",
199     "outputs":1,
200     "x":765.5,
201     "y":606.5156269073486,
202     "z":"4954cd5d.30ecf4",
203     "wires":[
204       [
205         "e1e92378.2c99d",
206         "673c8079.171c7",
207         "5c11d741.ea97f8"
208       ]
209     ]
210   },
211   {
212     "id":"c5be9b53.183ee8",
213     "type":"success",
214     "name":"success",
215     "xml":"<outcome value='success'>\n",
216     "comments":"",
217     "outputs":1,
218     "x":1258.9997673034668,
219     "y":458.51514625549316,
220     "z":"4954cd5d.30ecf4",
221     "wires":[
222       [
223         "c033d341.3f6dc"
224       ]
225     ]
226   },
227   {
228     "id":"dcc81047.e0f45",
229     "type":"not-found",
230     "name":"not-found",
231     "xml":"<outcome value='not-found'>\n",
232     "comments":"",
233     "outputs":1,
234     "x":1265.9997673034668,
235     "y":496.51514625549316,
236     "z":"4954cd5d.30ecf4",
237     "wires":[
238       [
239         "a86ff2ba.5ed55"
240       ]
241     ]
242   },
243   {
244     "id":"38f7300e.03a3f",
245     "type":"other",
246     "name":"other",
247     "xml":"<outcome value='Other'>\n",
248     "comments":"",
249     "outputs":1,
250     "x":1257.9997673034668,
251     "y":538.5151462554932,
252     "z":"4954cd5d.30ecf4",
253     "wires":[
254       [
255         "d2f0ad9e.7cf8d"
256       ]
257     ]
258   },
259   {
260     "id":"c033d341.3f6dc",
261     "type":"block",
262     "name":"block : atomic",
263     "xml":"<block atomic=\"true\">\n",
264     "atomic":"false",
265     "comments":"",
266     "outputs":1,
267     "x":1423.9997673034668,
268     "y":447.51514625549316,
269     "z":"4954cd5d.30ecf4",
270     "wires":[
271       [
272
273       ]
274     ]
275   },
276   {
277     "id":"a86ff2ba.5ed55",
278     "type":"returnFailure",
279     "name":"return failure",
280     "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
281     "comments":"",
282     "x":1422.9997673034668,
283     "y":500.51514625549316,
284     "z":"4954cd5d.30ecf4",
285     "wires":[
286
287     ]
288   },
289   {
290     "id":"d2f0ad9e.7cf8d",
291     "type":"returnFailure",
292     "name":"return failure",
293     "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
294     "comments":"",
295     "x":1415.9997673034668,
296     "y":547.5151462554932,
297     "z":"4954cd5d.30ecf4",
298     "wires":[
299
300     ]
301   },
302   {
303     "id":"e1e92378.2c99d",
304     "type":"get-resource",
305     "name":"get-resource dci-connects",
306     "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 = $prop.dci-connects.id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n",
307     "comments":"",
308     "outputs":1,
309     "x":1070.9998893737793,
310     "y":505.5151653289795,
311     "z":"4954cd5d.30ecf4",
312     "wires":[
313       [
314         "c5be9b53.183ee8",
315         "dcc81047.e0f45",
316         "38f7300e.03a3f"
317       ]
318     ]
319   },
320   {
321     "id":"673c8079.171c7",
322     "type":"set",
323     "name":"set controller data",
324     "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",
325     "comments":"",
326     "x":1042.499740600586,
327     "y":607.0151195526123,
328     "z":"4954cd5d.30ecf4",
329     "wires":[
330
331     ]
332   },
333   {
334     "id":"2589b144.7be4de",
335     "type":"execute",
336     "name":"execute RestApiCallNode De-Activate Vxlan Tunnel",
337     "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.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",
338     "comments":"",
339     "outputs":1,
340     "x":1573.5002746582031,
341     "y":669.5155820846558,
342     "z":"4954cd5d.30ecf4",
343     "wires":[
344       [
345
346       ]
347     ]
348   },
349   {
350     "id":"5c11d741.ea97f8",
351     "type":"switchNode",
352     "name":"switch tunnelType",
353     "xml":"<switch test=\"`$prop.dci-connects.tunnelType`\">\n",
354     "comments":"",
355     "outputs":1,
356     "x":1036.4997329711914,
357     "y":694.0150928497314,
358     "z":"4954cd5d.30ecf4",
359     "wires":[
360       [
361         "6492045a.52a02c",
362         "647c96d8.6f1708"
363       ]
364     ]
365   },
366   {
367     "id":"6492045a.52a02c",
368     "type":"outcomeTrue",
369     "name":"L3-DCI",
370     "xml":"<outcome value='L3-DCI'>\n",
371     "comments":"",
372     "outputs":1,
373     "x":1249.4998626708984,
374     "y":674.0150928497314,
375     "z":"4954cd5d.30ecf4",
376     "wires":[
377       [
378         "2589b144.7be4de"
379       ]
380     ]
381   },
382   {
383     "id":"647c96d8.6f1708",
384     "type":"outcomeTrue",
385     "name":"L2-DCI",
386     "xml":"<outcome value='L2-DCI'>\n",
387     "comments":"",
388     "outputs":1,
389     "x":1247.499683380127,
390     "y":746.0150928497314,
391     "z":"4954cd5d.30ecf4",
392     "wires":[
393       [
394         "4fb66e63.84804"
395       ]
396     ]
397   },
398   {
399     "id":"4fb66e63.84804",
400     "type":"execute",
401     "name":"execute RestApiCallNode De-Activate Vxlan Tunnel",
402     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"$prop.sdncRestApi.thirdpartySdnc.url + '/v2.0/l2-dci-connects/' + $prop.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\"/>",
403     "comments":"",
404     "outputs":1,
405     "x":1567.500228881836,
406     "y":746.5155181884766,
407     "z":"4954cd5d.30ecf4",
408     "wires":[
409       [
410
411       ]
412     ]
413   },
414   {
415     "id":"7e978ea8.0c5a1",
416     "type":"record",
417     "name":"record",
418     "xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"network-topology-operation-deactivate\"/>\n<parameter name=\"field3\" value=\"dci-connects.id\" />\n<parameter name=\"field4\" value=\"`$prop.dci-connects.id`\"/>\n<parameter name=\"field5\" value=\"dci-connects.tunnelType\" />\n<parameter name=\"field6\" value=\"`$prop.dci-connects.tunnelType`\"/>",
419     "comments":"",
420     "outputs":1,
421     "x":739,
422     "y":429.0000171661377,
423     "z":"4954cd5d.30ecf4",
424     "wires":[
425       [
426
427       ]
428     ]
429   },
430   {
431     "id":"9441b536.e2c908",
432     "type":"set",
433     "name":"set tunnelType",
434     "xml":"<set>\n<parameter name='prop.dci-connects.tunnelType' value=\"`$tmp.aai.dci-connects.dci-connects.serviceType`\" />\n",
435     "comments":"",
436     "x":1241.0000839233398,
437     "y":260.51568603515625,
438     "z":"4954cd5d.30ecf4",
439     "wires":[
440
441     ]
442   },
443   {
444     "id":"a04a290c.948ab8",
445     "type":"for",
446     "name":"for each network-input-parameters",
447     "xml":"<for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' >\n\n",
448     "comments":"",
449     "outputs":1,
450     "x":791,
451     "y":180.51562690734863,
452     "z":"4954cd5d.30ecf4",
453     "wires":[
454       [
455         "ecdadcb9.f534b"
456       ]
457     ]
458   },
459   {
460     "id":"ecdadcb9.f534b",
461     "type":"switchNode",
462     "name":"switch id",
463     "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_id'`\">\n",
464     "comments":"",
465     "outputs":1,
466     "x":1045.500099182129,
467     "y":181.5156364440918,
468     "z":"4954cd5d.30ecf4",
469     "wires":[
470       [
471         "6f6c6213.b682dc"
472       ]
473     ]
474   },
475   {
476     "id":"6f6c6213.b682dc",
477     "type":"outcomeTrue",
478     "name":"true",
479     "xml":"<outcome value='true'>\n",
480     "comments":"",
481     "outputs":1,
482     "x":1247.5002250671387,
483     "y":180.51565170288086,
484     "z":"4954cd5d.30ecf4",
485     "wires":[
486       [
487         "9c537412.9158a8"
488       ]
489     ]
490   },
491   {
492     "id":"9c537412.9158a8",
493     "type":"set",
494     "name":"set id",
495     "xml":"<set>\n<parameter name='prop.dci-connects.id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
496     "comments":"",
497     "x":1429.1666069030762,
498     "y":179.18220138549805,
499     "z":"4954cd5d.30ecf4",
500     "wires":[
501
502     ]
503   }
504 ]