Merge "Update DG network-topology-operation-deactivate"
[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":"eeae4316.cdec",
4     "type":"dgstart",
5     "name":"DGSTART",
6     "outputs":1,
7     "x":115.515625,
8     "y":122.99999809265137,
9     "z":"2933569e.30217a",
10     "wires":[
11       [
12         "7ad6aab3.a56c94"
13       ]
14     ]
15   },
16   {
17     "id":"7ad6aab3.a56c94",
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":376.515625,
26     "y":193.99999809265137,
27     "z":"2933569e.30217a",
28     "wires":[
29       [
30         "bd801194.dff35"
31       ]
32     ]
33   },
34   {
35     "id":"bd801194.dff35",
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":266.515625,
42     "y":278.99999809265137,
43     "z":"2933569e.30217a",
44     "wires":[
45       [
46         "8b1d6765.c218b8"
47       ]
48     ]
49   },
50   {
51     "id":"8b1d6765.c218b8",
52     "type":"block",
53     "name":"block : atomic",
54     "xml":"<block atomic=\"true\">",
55     "atomic":"true",
56     "outputs":1,
57     "x":565.515625,
58     "y":272.99999809265137,
59     "z":"2933569e.30217a",
60     "wires":[
61       [
62         "85df938d.13ecb",
63         "b2094172.75092",
64         "13babe31.b69a72",
65         "f439b4ae.e8d898",
66         "4f2b1067.595de",
67         "8fe14514.6a6bc8"
68       ]
69     ]
70   },
71   {
72     "id":"85df938d.13ecb",
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":936.515625,
79     "y":147.99999809265137,
80     "z":"2933569e.30217a",
81     "wires":[
82       [
83
84       ]
85     ]
86   },
87   {
88     "id":"b2094172.75092",
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":802.5156021118164,
94     "y":926.9999713897705,
95     "z":"2933569e.30217a",
96     "wires":[
97
98     ]
99   },
100   {
101     "id":"13babe31.b69a72",
102     "type":"get-resource",
103     "name":"get-resource l3-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":842.5156097412109,
108     "y":394.99998688697815,
109     "z":"2933569e.30217a",
110     "wires":[
111       [
112         "ff781717.68c208",
113         "9a6836ab.43f888",
114         "a0abee05.64d97"
115       ]
116     ]
117   },
118   {
119     "id":"ff781717.68c208",
120     "type":"success",
121     "name":"success",
122     "xml":"<outcome value='success'>\n",
123     "comments":"",
124     "outputs":1,
125     "x":1091.515609741211,
126     "y":358.99998688697815,
127     "z":"2933569e.30217a",
128     "wires":[
129       [
130         "5e87a4a5.a7530c"
131       ]
132     ]
133   },
134   {
135     "id":"9a6836ab.43f888",
136     "type":"not-found",
137     "name":"not-found",
138     "xml":"<outcome value='not-found'>\n",
139     "comments":"",
140     "outputs":1,
141     "x":1098.515609741211,
142     "y":396.99998688697815,
143     "z":"2933569e.30217a",
144     "wires":[
145       [
146         "5ebdd537.9ec61c"
147       ]
148     ]
149   },
150   {
151     "id":"a0abee05.64d97",
152     "type":"other",
153     "name":"other",
154     "xml":"<outcome value='Other'>\n",
155     "comments":"",
156     "outputs":1,
157     "x":1090.515609741211,
158     "y":438.99998688697815,
159     "z":"2933569e.30217a",
160     "wires":[
161       [
162         "50c37e9e.947eb"
163       ]
164     ]
165   },
166   {
167     "id":"5ebdd537.9ec61c",
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":1255.515609741211,
173     "y":400.99998688697815,
174     "z":"2933569e.30217a",
175     "wires":[
176
177     ]
178   },
179   {
180     "id":"50c37e9e.947eb",
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":1248.515609741211,
186     "y":447.99998688697815,
187     "z":"2933569e.30217a",
188     "wires":[
189
190     ]
191   },
192   {
193     "id":"f439b4ae.e8d898",
194     "type":"block",
195     "name":"block : sendRequest",
196     "xml":"<block atomic=\"true\">",
197     "atomic":"true",
198     "comments":"",
199     "outputs":1,
200     "x":804.015625,
201     "y":694.515625,
202     "z":"2933569e.30217a",
203     "wires":[
204       [
205         "8b5b23cb.a33ca",
206         "f4a22786.a36188",
207         "c94f0b3c.ea6228"
208       ]
209     ]
210   },
211   {
212     "id":"1b157d61.6e8663",
213     "type":"success",
214     "name":"success",
215     "xml":"<outcome value='success'>\n",
216     "comments":"",
217     "outputs":1,
218     "x":1297.5153923034668,
219     "y":546.5151443481445,
220     "z":"2933569e.30217a",
221     "wires":[
222       [
223         "1b1e8622.49dc9a"
224       ]
225     ]
226   },
227   {
228     "id":"96522a7e.300418",
229     "type":"not-found",
230     "name":"not-found",
231     "xml":"<outcome value='not-found'>\n",
232     "comments":"",
233     "outputs":1,
234     "x":1304.5153923034668,
235     "y":584.5151443481445,
236     "z":"2933569e.30217a",
237     "wires":[
238       [
239         "656e7a99.f99cc4"
240       ]
241     ]
242   },
243   {
244     "id":"a258e00f.28592",
245     "type":"other",
246     "name":"other",
247     "xml":"<outcome value='Other'>\n",
248     "comments":"",
249     "outputs":1,
250     "x":1296.5153923034668,
251     "y":626.5151443481445,
252     "z":"2933569e.30217a",
253     "wires":[
254       [
255         "d5ca22dc.f5439"
256       ]
257     ]
258   },
259   {
260     "id":"1b1e8622.49dc9a",
261     "type":"block",
262     "name":"block : atomic",
263     "xml":"<block atomic=\"true\">\n",
264     "atomic":"false",
265     "comments":"",
266     "outputs":1,
267     "x":1462.5153923034668,
268     "y":535.5151443481445,
269     "z":"2933569e.30217a",
270     "wires":[
271       [
272
273       ]
274     ]
275   },
276   {
277     "id":"656e7a99.f99cc4",
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":1461.5153923034668,
283     "y":588.5151443481445,
284     "z":"2933569e.30217a",
285     "wires":[
286
287     ]
288   },
289   {
290     "id":"d5ca22dc.f5439",
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":1454.5153923034668,
296     "y":635.5151443481445,
297     "z":"2933569e.30217a",
298     "wires":[
299
300     ]
301   },
302   {
303     "id":"8b5b23cb.a33ca",
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":1109.5155143737793,
310     "y":593.5151634216309,
311     "z":"2933569e.30217a",
312     "wires":[
313       [
314         "1b157d61.6e8663",
315         "96522a7e.300418",
316         "a258e00f.28592"
317       ]
318     ]
319   },
320   {
321     "id":"f4a22786.a36188",
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":1081.015365600586,
327     "y":695.0151176452637,
328     "z":"2933569e.30217a",
329     "wires":[
330
331     ]
332   },
333   {
334     "id":"3f552595.383f8a",
335     "type":"execute",
336     "name":"execute RestApiCallNode 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.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",
338     "comments":"",
339     "outputs":1,
340     "x":1612.0158996582031,
341     "y":757.5155801773071,
342     "z":"2933569e.30217a",
343     "wires":[
344       [
345
346       ]
347     ]
348   },
349   {
350     "id":"c94f0b3c.ea6228",
351     "type":"switchNode",
352     "name":"switch tunnelType",
353     "xml":"<switch test=\"`$prop.dci-connects.tunnelType`\">\n",
354     "comments":"",
355     "outputs":1,
356     "x":1075.0153579711914,
357     "y":782.0150909423828,
358     "z":"2933569e.30217a",
359     "wires":[
360       [
361         "914d6e77.2cf0c",
362         "3cebe90a.101a76"
363       ]
364     ]
365   },
366   {
367     "id":"914d6e77.2cf0c",
368     "type":"outcomeTrue",
369     "name":"L3-DCI",
370     "xml":"<outcome value='L3-DCI'>\n",
371     "comments":"",
372     "outputs":1,
373     "x":1288.0154876708984,
374     "y":762.0150909423828,
375     "z":"2933569e.30217a",
376     "wires":[
377       [
378         "3f552595.383f8a"
379       ]
380     ]
381   },
382   {
383     "id":"3cebe90a.101a76",
384     "type":"outcomeTrue",
385     "name":"L2-DCI",
386     "xml":"<outcome value='L2-DCI'>\n",
387     "comments":"",
388     "outputs":1,
389     "x":1286.015308380127,
390     "y":834.0150909423828,
391     "z":"2933569e.30217a",
392     "wires":[
393       [
394         "b5ca32ee.3260d"
395       ]
396     ]
397   },
398   {
399     "id":"b5ca32ee.3260d",
400     "type":"execute",
401     "name":"execute RestApiCallNode 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.l2-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":1606.015853881836,
406     "y":834.5155162811279,
407     "z":"2933569e.30217a",
408     "wires":[
409       [
410
411       ]
412     ]
413   },
414   {
415     "id":"4f2b1067.595de",
416     "type":"record",
417     "name":"record",
418     "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",
419     "comments":"",
420     "outputs":1,
421     "x":777.515625,
422     "y":517.0000152587891,
423     "z":"2933569e.30217a",
424     "wires":[
425       [
426
427       ]
428     ]
429   },
430   {
431     "id":"5e87a4a5.a7530c",
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":1279.5157089233398,
437     "y":348.5156841278076,
438     "z":"2933569e.30217a",
439     "wires":[
440
441     ]
442   },
443   {
444     "id":"8fe14514.6a6bc8",
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":829.515625,
451     "y":268.515625,
452     "z":"2933569e.30217a",
453     "wires":[
454       [
455         "9bafb819.fdc5e8"
456       ]
457     ]
458   },
459   {
460     "id":"9bafb819.fdc5e8",
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":1084.015724182129,
467     "y":269.51563453674316,
468     "z":"2933569e.30217a",
469     "wires":[
470       [
471         "773bba4f.547604"
472       ]
473     ]
474   },
475   {
476     "id":"773bba4f.547604",
477     "type":"outcomeTrue",
478     "name":"true",
479     "xml":"<outcome value='true'>\n",
480     "comments":"",
481     "outputs":1,
482     "x":1286.0158500671387,
483     "y":268.5156497955322,
484     "z":"2933569e.30217a",
485     "wires":[
486       [
487         "f4c8640f.9553e8"
488       ]
489     ]
490   },
491   {
492     "id":"f4c8640f.9553e8",
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":1467.6822319030762,
498     "y":267.1821994781494,
499     "z":"2933569e.30217a",
500     "wires":[
501
502     ]
503   }
504 ]