Underlay delete flow DGs modification for VoLTE
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_network-topology-operation-delete.json
1 [
2   {
3     "id": "827d7697.e161a8",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 93,
8     "y": 84,
9     "z": "2b9e11cc.456d3e",
10     "wires": [
11       [
12         "6fb89758.08cae8"
13       ]
14     ]
15   },
16   {
17     "id": "6fb89758.08cae8",
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": 305.00000381469727,
26     "y": 156.0000171661377,
27     "z": "2b9e11cc.456d3e",
28     "wires": [
29       [
30         "c0e8cad3.da0c8"
31       ]
32     ]
33   },
34   {
35     "id": "c0e8cad3.da0c8",
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": 293.0001220703125,
42     "y": 244,
43     "z": "2b9e11cc.456d3e",
44     "wires": [
45       [
46         "a6f45139.fa877"
47       ]
48     ]
49   },
50   {
51     "id": "a6f45139.fa877",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 569.0000305175781,
59     "y": 252.00001335144043,
60     "z": "2b9e11cc.456d3e",
61     "wires": [
62       [
63         "30175b96.175abc",
64         "ecfd60c5.b2e578",
65         "cfff2d7f.0d80f8",
66         "dc355ee1.94a83",
67         "6101a41d.088144",
68         "d633fa40.e632f",
69         "c7fcf65d.3267e",
70         "a8af32f0.52f9a"
71       ]
72     ]
73   },
74   {
75     "id": "30175b96.175abc",
76     "type": "call",
77     "name": "call GENERIC-RESOURCE-API:validate-network-input-parameters",
78     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n",
79     "comments": "",
80     "outputs": 1,
81     "x": 890,
82     "y": 35,
83     "z": "2b9e11cc.456d3e",
84     "wires": [
85       []
86     ]
87   },
88   {
89     "id": "ecfd60c5.b2e578",
90     "type": "get-resource",
91     "name": "get-resource esr-thirdparty-sdnc",
92     "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",
93     "comments": "",
94     "outputs": 1,
95     "x": 847,
96     "y": 378,
97     "z": "2b9e11cc.456d3e",
98     "wires": [
99       [
100         "f7a8fca4.b3ad",
101         "aa0ec94f.00fa6",
102         "1ecf0d2.4909473"
103       ]
104     ]
105   },
106   {
107     "id": "f7a8fca4.b3ad",
108     "type": "success",
109     "name": "success",
110     "xml": "<outcome value='success'>\n",
111     "comments": "",
112     "outputs": 1,
113     "x": 1163,
114     "y": 322,
115     "z": "2b9e11cc.456d3e",
116     "wires": [
117       [
118         "f83a9763.b4b58"
119       ]
120     ]
121   },
122   {
123     "id": "aa0ec94f.00fa6",
124     "type": "not-found",
125     "name": "not-found",
126     "xml": "<outcome value='not-found'>\n",
127     "comments": "",
128     "outputs": 1,
129     "x": 1166.490966796875,
130     "y": 369.57403564453125,
131     "z": "2b9e11cc.456d3e",
132     "wires": [
133       [
134         "b04696c4.58fe88"
135       ]
136     ]
137   },
138   {
139     "id": "1ecf0d2.4909473",
140     "type": "other",
141     "name": "other",
142     "xml": "<outcome value='Other'>\n",
143     "comments": "",
144     "outputs": 1,
145     "x": 1161.823974609375,
146     "y": 410.9073486328125,
147     "z": "2b9e11cc.456d3e",
148     "wires": [
149       [
150         "479ab3c0.7b5764"
151       ]
152     ]
153   },
154   {
155     "id": "b04696c4.58fe88",
156     "type": "returnFailure",
157     "name": "return failure",
158     "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",
159     "comments": "",
160     "x": 1343.0623779296875,
161     "y": 357.8597717285156,
162     "z": "2b9e11cc.456d3e",
163     "wires": []
164   },
165   {
166     "id": "479ab3c0.7b5764",
167     "type": "returnFailure",
168     "name": "return failure",
169     "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",
170     "comments": "",
171     "x": 1349.5965309143066,
172     "y": 406.3465414047241,
173     "z": "2b9e11cc.456d3e",
174     "wires": []
175   },
176   {
177     "id": "f83a9763.b4b58",
178     "type": "block",
179     "name": "block : atomic",
180     "xml": "<block atomic=\"true\">",
181     "atomic": "true",
182     "outputs": 1,
183     "x": 1341.205322265625,
184     "y": 314.57403564453125,
185     "z": "2b9e11cc.456d3e",
186     "wires": [
187       []
188     ]
189   },
190   {
191     "id": "cfff2d7f.0d80f8",
192     "type": "for",
193     "name": "for each network-input-parameters",
194     "xml": "<for index='idx' start='0' end='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length`' >\n",
195     "comments": "",
196     "outputs": 1,
197     "x": 852,
198     "y": 213,
199     "z": "2b9e11cc.456d3e",
200     "wires": [
201       [
202         "8482cde8.2496f8"
203       ]
204     ]
205   },
206   {
207     "id": "8482cde8.2496f8",
208     "type": "block",
209     "name": "block",
210     "xml": "<block>\n",
211     "atomic": "false",
212     "comments": "",
213     "outputs": 1,
214     "x": 1133.8333740234375,
215     "y": 191.33334350585938,
216     "z": "2b9e11cc.456d3e",
217     "wires": [
218       [
219         "f44089bc.f2b86",
220         "bd431753.a4c8f"
221       ]
222     ]
223   },
224   {
225     "id": "f44089bc.f2b86",
226     "type": "switchNode",
227     "name": "switch name",
228     "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
229     "comments": "",
230     "outputs": 1,
231     "x": 1342,
232     "y": 152,
233     "z": "2b9e11cc.456d3e",
234     "wires": [
235       [
236         "a1e5b819.cd782"
237       ]
238     ]
239   },
240   {
241     "id": "a1e5b819.cd782",
242     "type": "outcomeTrue",
243     "name": "true",
244     "xml": "<outcome value='true'>\n",
245     "comments": "",
246     "outputs": 1,
247     "x": 1529,
248     "y": 152,
249     "z": "2b9e11cc.456d3e",
250     "wires": [
251       [
252         "8d993f14.d7c67"
253       ]
254     ]
255   },
256   {
257     "id": "8d993f14.d7c67",
258     "type": "set",
259     "name": "set name",
260     "xml": "<set>\n<parameter name='prop.l3vpn.name' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
261     "comments": "",
262     "x": 1697,
263     "y": 152.60000610351562,
264     "z": "2b9e11cc.456d3e",
265     "wires": []
266   },
267   {
268     "id": "bd431753.a4c8f",
269     "type": "switchNode",
270     "name": "switch service-type",
271     "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'service-type'`\">\n",
272     "comments": "",
273     "outputs": 1,
274     "x": 1345.9999389648438,
275     "y": 213.5999755859375,
276     "z": "2b9e11cc.456d3e",
277     "wires": [
278       [
279         "264d1797.9d01f8"
280       ]
281     ]
282   },
283   {
284     "id": "264d1797.9d01f8",
285     "type": "outcomeTrue",
286     "name": "true",
287     "xml": "<outcome value='true'>\n",
288     "comments": "",
289     "outputs": 1,
290     "x": 1530.9999389648438,
291     "y": 211.5999755859375,
292     "z": "2b9e11cc.456d3e",
293     "wires": [
294       [
295         "b160eb3c.cbb848"
296       ]
297     ]
298   },
299   {
300     "id": "b160eb3c.cbb848",
301     "type": "set",
302     "name": "set service-type",
303     "xml": "<set>\n<parameter name='prop.l3vpn.service-type' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
304     "comments": "",
305     "x": 1699.9999389648438,
306     "y": 209.5999755859375,
307     "z": "2b9e11cc.456d3e",
308     "wires": []
309   },
310   {
311     "id": "dc355ee1.94a83",
312     "type": "set",
313     "name": "set controller data",
314     "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",
315     "comments": "",
316     "x": 812,
317     "y": 489,
318     "z": "2b9e11cc.456d3e",
319     "wires": []
320   },
321   {
322     "id": "cb586993.f0a33",
323     "type": "execute",
324     "name": "execute REST DELETE VPN",
325     "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\"/>",
326     "comments": "",
327     "outputs": 1,
328     "x": 1323,
329     "y": 566,
330     "z": "2b9e11cc.456d3e",
331     "wires": [
332       []
333     ]
334   },
335   {
336     "id": "6101a41d.088144",
337     "type": "switchNode",
338     "name": "switch service-type",
339     "xml": "<switch test=\"`$prop.l3vpn.service-type`\">\n",
340     "comments": "",
341     "outputs": 1,
342     "x": 793,
343     "y": 584,
344     "z": "2b9e11cc.456d3e",
345     "wires": [
346       [
347         "4afcdb87.e97234"
348       ]
349     ]
350   },
351   {
352     "id": "4afcdb87.e97234",
353     "type": "outcomeTrue",
354     "name": "l3vpn-ipwan",
355     "xml": "<outcome value='l3vpn-ipwan'>\n",
356     "comments": "",
357     "outputs": 1,
358     "x": 1043,
359     "y": 568,
360     "z": "2b9e11cc.456d3e",
361     "wires": [
362       [
363         "cb586993.f0a33"
364       ]
365     ]
366   },
367   {
368     "id": "d633fa40.e632f",
369     "type": "switchNode",
370     "name": "switch service-data.networks.network_length",
371     "xml": "<switch test='`$service-data.networks.network_length`'>\n",
372     "comments": "",
373     "outputs": 1,
374     "x": 832,
375     "y": 108,
376     "z": "2b9e11cc.456d3e",
377     "wires": [
378       [
379         "cd115f81.9765",
380         "8c843586.ed486"
381       ]
382     ]
383   },
384   {
385     "id": "cd115f81.9765",
386     "type": "other",
387     "name": "outcome Null",
388     "xml": "<outcome value=''>\n",
389     "comments": "",
390     "outputs": 1,
391     "x": 1277,
392     "y": 34.00006103515625,
393     "z": "2b9e11cc.456d3e",
394     "wires": [
395       [
396         "9468f013.3839a8"
397       ]
398     ]
399   },
400   {
401     "id": "9468f013.3839a8",
402     "type": "returnFailure",
403     "name": "return failure",
404     "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-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
405     "comments": "",
406     "x": 1467.7774658203125,
407     "y": 20.889007568359375,
408     "z": "2b9e11cc.456d3e",
409     "wires": []
410   },
411   {
412     "id": "8c843586.ed486",
413     "type": "other",
414     "name": "other",
415     "xml": "<outcome value='Other'>\n",
416     "comments": "",
417     "outputs": 1,
418     "x": 1161.0003662109375,
419     "y": 99.00007629394531,
420     "z": "2b9e11cc.456d3e",
421     "wires": [
422       [
423         "c38355cb.b91f58"
424       ]
425     ]
426   },
427   {
428     "id": "c38355cb.b91f58",
429     "type": "block",
430     "name": "block : atomic",
431     "xml": "<block atomic=\"true\">",
432     "atomic": "true",
433     "outputs": 1,
434     "x": 1332.2698974609375,
435     "y": 82.55461120605469,
436     "z": "2b9e11cc.456d3e",
437     "wires": [
438       [
439         "da8d2eef.9ecfc8",
440         "2abc9e2a.3b6932"
441       ]
442     ]
443   },
444   {
445     "id": "da8d2eef.9ecfc8",
446     "type": "for",
447     "name": "for nidx..service-data.networks.network[]",
448     "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
449     "comments": "",
450     "outputs": 1,
451     "x": 1630.285888671875,
452     "y": 63.428619384765625,
453     "z": "2b9e11cc.456d3e",
454     "wires": [
455       [
456         "788ddd9c.802654"
457       ]
458     ]
459   },
460   {
461     "id": "2abc9e2a.3b6932",
462     "type": "switchNode",
463     "name": "switch tmp.nidx ",
464     "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
465     "comments": "",
466     "outputs": 1,
467     "x": 1551.5872802734375,
468     "y": 106.41180419921875,
469     "z": "2b9e11cc.456d3e",
470     "wires": [
471       [
472         "d0a99363.1c30e"
473       ]
474     ]
475   },
476   {
477     "id": "d0a99363.1c30e",
478     "type": "outcome",
479     "name": "NULL",
480     "xml": "<outcome value=''>\n",
481     "comments": "",
482     "outputs": 1,
483     "x": 1752.015869140625,
484     "y": 111.98321533203125,
485     "z": "2b9e11cc.456d3e",
486     "wires": [
487       [
488         "ea14dde0.93393"
489       ]
490     ]
491   },
492   {
493     "id": "788ddd9c.802654",
494     "type": "switchNode",
495     "name": "switch networkid found",
496     "xml": "<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
497     "comments": "",
498     "outputs": 1,
499     "x": 1940.7144775390625,
500     "y": 61.6787109375,
501     "z": "2b9e11cc.456d3e",
502     "wires": [
503       [
504         "c02919ae.22f7c"
505       ]
506     ]
507   },
508   {
509     "id": "ea14dde0.93393",
510     "type": "returnFailure",
511     "name": "return failure",
512     "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-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
513     "comments": "",
514     "x": 1923.4443359375,
515     "y": 112.12606811523438,
516     "z": "2b9e11cc.456d3e",
517     "wires": []
518   },
519   {
520     "id": "c02919ae.22f7c",
521     "type": "outcomeTrue",
522     "name": "true",
523     "xml": "<outcome value='true'>\n",
524     "comments": "",
525     "outputs": 1,
526     "x": 2146.666748046875,
527     "y": 60.571441650390625,
528     "z": "2b9e11cc.456d3e",
529     "wires": [
530       [
531         "64769a39.b95ddc"
532       ]
533     ]
534   },
535   {
536     "id": "64769a39.b95ddc",
537     "type": "set",
538     "name": "set tmp.nidx and ctx.network-data",
539     "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />\n",
540     "comments": "",
541     "x": 2385.198486328125,
542     "y": 56.321441650390625,
543     "z": "2b9e11cc.456d3e",
544     "wires": []
545   },
546   {
547     "id": "c7fcf65d.3267e",
548     "type": "block",
549     "name": "block : saveNetworkData",
550     "xml": "<block atomic=\"true\">",
551     "atomic": "true",
552     "comments": "",
553     "outputs": 1,
554     "x": 811,
555     "y": 674,
556     "z": "2b9e11cc.456d3e",
557     "wires": [
558       [
559         "90f2187a.a0ed98",
560         "d97a2187.fc0188",
561         "8edd5656.7d422",
562         "8bc5ebfa.1b543"
563       ]
564     ]
565   },
566   {
567     "id": "a8af32f0.52f9a",
568     "type": "returnSuccess",
569     "name": "return success",
570     "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",
571     "comments": "",
572     "x": 771.6665802001953,
573     "y": 807.3332815170288,
574     "z": "2b9e11cc.456d3e",
575     "wires": []
576   },
577   {
578     "id": "8edd5656.7d422",
579     "type": "set",
580     "name": "copy input to service-data",
581     "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n",
582     "comments": "",
583     "x": 1104.0000076293945,
584     "y": 654.3333120346069,
585     "z": "2b9e11cc.456d3e",
586     "wires": []
587   },
588   {
589     "id": "90f2187a.a0ed98",
590     "type": "set",
591     "name": "set networkId",
592     "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n",
593     "comments": "",
594     "x": 1068.2895622253418,
595     "y": 698.0511589050293,
596     "z": "2b9e11cc.456d3e",
597     "wires": []
598   },
599   {
600     "id": "d97a2187.fc0188",
601     "type": "set",
602     "name": "set object-path",
603     "xml": "<set>\n<parameter name='network-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/networks/network/'\n + $networkId\n + '/network-data/'` \" />\n \n",
604     "comments": "",
605     "x": 1074.0039291381836,
606     "y": 735.1940507888794,
607     "z": "2b9e11cc.456d3e",
608     "wires": []
609   },
610   {
611     "id": "8bc5ebfa.1b543",
612     "type": "set",
613     "name": "set network-level-oper-status",
614     "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Deleted' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />\n",
615     "comments": "",
616     "x": 1117.9999389648438,
617     "y": 782.333270072937,
618     "z": "2b9e11cc.456d3e",
619     "wires": []
620   }
621 ]