SDWAN flow based end-end test and issue fix
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-vnf-topology-operation-wanport-delete.json
1 [
2   {
3     "id": "d97ddb0b.9dbae8",
4     "type": "switchNode",
5     "name": "switch service-data.vnfs.vnf_length",
6     "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
7     "comments": "",
8     "outputs": 1,
9     "x": 657.5634536743164,
10     "y": 290.26117038726807,
11     "z": "298a9201.dd932e",
12     "wires": [
13       [
14         "78101855.a55318",
15         "303c0757.9740d8"
16       ]
17     ]
18   },
19   {
20     "id": "ffc786dd.6d3ce8",
21     "type": "dgstart",
22     "name": "DGSTART",
23     "outputs": 1,
24     "x": 119.46875,
25     "y": 55,
26     "z": "298a9201.dd932e",
27     "wires": [
28       [
29         "19627a0c.fad7f6"
30       ]
31     ]
32   },
33   {
34     "id": "19627a0c.fad7f6",
35     "type": "service-logic",
36     "name": "GENERIC-RESOURCE-API ${project.version}",
37     "module": "GENERIC-RESOURCE-API",
38     "version": "${project.version}",
39     "comments": "",
40     "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}'>",
41     "outputs": 1,
42     "x": 194.75445556640625,
43     "y": 95.23811149597168,
44     "z": "298a9201.dd932e",
45     "wires": [
46       [
47         "90edfff9.8d8dc"
48       ]
49     ]
50   },
51   {
52     "id": "89fc7e96.e130c",
53     "type": "comment",
54     "name": "wan port-vnf-topology-operation-delete",
55     "info": "",
56     "comments": "",
57     "x": 568.8136672973633,
58     "y": 128.58639907836914,
59     "z": "298a9201.dd932e",
60     "wires": []
61   },
62   {
63     "id": "12b8b4a9.73677b",
64     "type": "block",
65     "name": "block : atomic",
66     "xml": "<block atomic=\"true\">",
67     "atomic": "true",
68     "outputs": 1,
69     "x": 196.13541412353516,
70     "y": 356.6666717529297,
71     "z": "298a9201.dd932e",
72     "wires": [
73       [
74         "79e6b6ed.e79cf8",
75         "a877fa3c.5b8268",
76         "86a0bf6e.0b80b",
77         "d97ddb0b.9dbae8",
78         "c603984a.796d78",
79         "b1f3fdb5.343c9",
80         "c5c45c6b.923e9",
81         "96916512.691c98",
82         "f2a5223f.497fa",
83         "14bdc57f.29da0b",
84         "9171f0e2.d13bf"
85       ]
86     ]
87   },
88   {
89     "id": "78101855.a55318",
90     "type": "other",
91     "name": "outcome Null",
92     "xml": "<outcome value=''>\n",
93     "comments": "",
94     "outputs": 1,
95     "x": 922.2857666015625,
96     "y": 272.81679248809814,
97     "z": "298a9201.dd932e",
98     "wires": [
99       [
100         "74e8241b.eea89c"
101       ]
102     ]
103   },
104   {
105     "id": "74e8241b.eea89c",
106     "type": "returnFailure",
107     "name": "return failure",
108     "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
109     "comments": "",
110     "x": 1103.2856369018555,
111     "y": 267.81667041778564,
112     "z": "298a9201.dd932e",
113     "wires": []
114   },
115   {
116     "id": "303c0757.9740d8",
117     "type": "other",
118     "name": "other",
119     "xml": "<outcome value='Other'>\n",
120     "comments": "",
121     "outputs": 1,
122     "x": 907.7857666015625,
123     "y": 324.8167552947998,
124     "z": "298a9201.dd932e",
125     "wires": [
126       [
127         "1483b08f.bc2c8f"
128       ]
129     ]
130   },
131   {
132     "id": "1483b08f.bc2c8f",
133     "type": "block",
134     "name": "block : atomic",
135     "xml": "<block atomic=\"true\">",
136     "atomic": "true",
137     "outputs": 1,
138     "x": 1079.785472869873,
139     "y": 324.8167533874512,
140     "z": "298a9201.dd932e",
141     "wires": [
142       [
143         "e9c362d9.eda3b",
144         "c7e2b23c.082b2"
145       ]
146     ]
147   },
148   {
149     "id": "c7e2b23c.082b2",
150     "type": "switchNode",
151     "name": "switch tmp.vidx ",
152     "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
153     "comments": "",
154     "outputs": 1,
155     "x": 1254.78564453125,
156     "y": 343.8166751861572,
157     "z": "298a9201.dd932e",
158     "wires": [
159       [
160         "b277af35.24bde"
161       ]
162     ]
163   },
164   {
165     "id": "86a0bf6e.0b80b",
166     "type": "switchNode",
167     "name": "switch vnf-level-oper-status",
168     "xml": "<switch test='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status`'>\n",
169     "comments": "",
170     "outputs": 1,
171     "x": 627.9524536132812,
172     "y": 364.70563411712646,
173     "z": "298a9201.dd932e",
174     "wires": [
175       [
176         "bebaa9f9.5133d8",
177         "de5a57a9.6e5c38"
178       ]
179     ]
180   },
181   {
182     "id": "bebaa9f9.5133d8",
183     "type": "outcome",
184     "name": "outcome PendingDelete",
185     "xml": "<outcome value='PendingDelete'>\n",
186     "comments": "",
187     "outputs": 1,
188     "x": 918.7857208251953,
189     "y": 368.81675720214844,
190     "z": "298a9201.dd932e",
191     "wires": [
192       [
193         "a8bce4a2.2db818"
194       ]
195     ]
196   },
197   {
198     "id": "de5a57a9.6e5c38",
199     "type": "other",
200     "name": "other",
201     "xml": "<outcome value='Other'>\n",
202     "comments": "",
203     "outputs": 1,
204     "x": 864.7857818603516,
205     "y": 415.8167610168457,
206     "z": "298a9201.dd932e",
207     "wires": [
208       [
209         "c9cdcb18.116a68"
210       ]
211     ]
212   },
213   {
214     "id": "c9cdcb18.116a68",
215     "type": "returnFailure",
216     "name": "return failure",
217     "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=\"`'VNF is not in appropriate state for activate. Current state is ' + $service-data.vnfs.vnf[$tmp.nidx].vnf-data.vnf-level-oper-status.order-status`\" />",
218     "comments": "",
219     "x": 1024.2855491638184,
220     "y": 418.8167600631714,
221     "z": "298a9201.dd932e",
222     "wires": []
223   },
224   {
225     "id": "c603984a.796d78",
226     "type": "switchNode",
227     "name": "switch vnf-id",
228     "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\">\n",
229     "comments": "",
230     "outputs": 1,
231     "x": 593.7857704162598,
232     "y": 245.81676387786865,
233     "z": "298a9201.dd932e",
234     "wires": [
235       [
236         "9c65cfbe.e7f66"
237       ]
238     ]
239   },
240   {
241     "id": "9c65cfbe.e7f66",
242     "type": "outcome",
243     "name": "NULL",
244     "xml": "<outcome value=''>",
245     "comments": "",
246     "outputs": 1,
247     "x": 791.7858352661133,
248     "y": 235.81677627563477,
249     "z": "298a9201.dd932e",
250     "wires": [
251       [
252         "16c05e83.252251"
253       ]
254     ]
255   },
256   {
257     "id": "16c05e83.252251",
258     "type": "returnFailure",
259     "name": "return failure",
260     "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=\"vnf-request-input.vnf-input-parameters.name is a required input\" />\n",
261     "comments": "",
262     "x": 958.2857208251953,
263     "y": 232.81677055358887,
264     "z": "298a9201.dd932e",
265     "wires": []
266   },
267   {
268     "id": "e9c362d9.eda3b",
269     "type": "for",
270     "name": "for vidx..service-data.vnfs.vnf[]",
271     "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
272     "comments": "",
273     "outputs": 1,
274     "x": 1315.2856483459473,
275     "y": 279.81667137145996,
276     "z": "298a9201.dd932e",
277     "wires": [
278       [
279         "76ffd99.2cf1928"
280       ]
281     ]
282   },
283   {
284     "id": "76ffd99.2cf1928",
285     "type": "switchNode",
286     "name": "switch vnf-id found",
287     "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
288     "comments": "",
289     "outputs": 1,
290     "x": 1571.2856674194336,
291     "y": 279.81667137145996,
292     "z": "298a9201.dd932e",
293     "wires": [
294       [
295         "157a2e27.614112"
296       ]
297     ]
298   },
299   {
300     "id": "157a2e27.614112",
301     "type": "outcomeTrue",
302     "name": "true",
303     "xml": "<outcome value='true'>\n",
304     "comments": "",
305     "outputs": 1,
306     "x": 1747.7857208251953,
307     "y": 282.81667137145996,
308     "z": "298a9201.dd932e",
309     "wires": [
310       [
311         "9ee7d32a.eb396"
312       ]
313     ]
314   },
315   {
316     "id": "9ee7d32a.eb396",
317     "type": "set",
318     "name": "set tmp.vidx and ctx.vnf-data",
319     "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].vnf-data.`' />\n",
320     "comments": "",
321     "x": 1914.7857360839844,
322     "y": 343.81667137145996,
323     "z": "298a9201.dd932e",
324     "wires": []
325   },
326   {
327     "id": "b167d24d.6ae55",
328     "type": "returnFailure",
329     "name": "return failure",
330     "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
331     "comments": "",
332     "x": 1560.285659790039,
333     "y": 343.8166751861572,
334     "z": "298a9201.dd932e",
335     "wires": []
336   },
337   {
338     "id": "b277af35.24bde",
339     "type": "outcome",
340     "name": "NULL",
341     "xml": "<outcome value=''>\n",
342     "comments": "",
343     "outputs": 1,
344     "x": 1422.785659790039,
345     "y": 343.8166751861572,
346     "z": "298a9201.dd932e",
347     "wires": [
348       [
349         "b167d24d.6ae55"
350       ]
351     ]
352   },
353   {
354     "id": "79e6b6ed.e79cf8",
355     "type": "set",
356     "name": "set vnfId and vnf-object-path",
357     "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name='vnf-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vnf-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",
358     "comments": "",
359     "x": 599.8022537231445,
360     "y": 647.3334503173828,
361     "z": "298a9201.dd932e",
362     "wires": []
363   },
364   {
365     "id": "a877fa3c.5b8268",
366     "type": "returnSuccess",
367     "name": "return success",
368     "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",
369     "comments": "",
370     "x": 572.913516998291,
371     "y": 772.8888854980469,
372     "z": "298a9201.dd932e",
373     "wires": []
374   },
375   {
376     "id": "c5c45c6b.923e9",
377     "type": "set",
378     "name": "set new vnf length",
379     "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf_length\" value='`$prop.vnfidxLen`'/>\n\n\t\n",
380     "comments": "",
381     "x": 577.4347686767578,
382     "y": 555.8044013977051,
383     "z": "298a9201.dd932e",
384     "wires": []
385   },
386   {
387     "id": "a8bce4a2.2db818",
388     "type": "block",
389     "name": "block : atomic",
390     "xml": "<block atomic=\"true\">",
391     "atomic": "true",
392     "outputs": 1,
393     "x": 1116.0921211242676,
394     "y": 379.14191150665283,
395     "z": "298a9201.dd932e",
396     "wires": [
397       []
398     ]
399   },
400   {
401     "id": "90edfff9.8d8dc",
402     "type": "method",
403     "name": "method sdwan-vnf-topology-operation-wanport-delete",
404     "xml": "<method rpc='sdwan-vnf-topology-operation-wanport-delete' mode='sync'>\n",
405     "comments": "",
406     "outputs": 1,
407     "x": 200,
408     "y": 211.26117038726807,
409     "z": "298a9201.dd932e",
410     "wires": [
411       [
412         "12b8b4a9.73677b"
413       ]
414     ]
415   },
416   {
417     "id": "b1f3fdb5.343c9",
418     "type": "execute",
419     "name": "execute requiredParameters",
420     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"vnf-topology-operation-input.vnf-information.vnf-id\" value=\"$vnf-topology-operation-input.vnf-information.vnf-id\"/>\n\n",
421     "comments": "",
422     "outputs": 1,
423     "x": 651.2858276367188,
424     "y": 185.81676292419434,
425     "z": "298a9201.dd932e",
426     "wires": [
427       []
428     ]
429   },
430   {
431     "id": "96916512.691c98",
432     "type": "delete",
433     "name": "delete wan port instance configuration in AAI",
434     "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='wan-port-config' \n        key='wan-port-config.id = $vnf-topology-operation-input.vnf-information.vnf-id'>\n",
435     "comments": "",
436     "outputs": 1,
437     "x": 649.0001983642578,
438     "y": 685.2611904144287,
439     "z": "298a9201.dd932e",
440     "wires": [
441       []
442     ]
443   },
444   {
445     "id": "f2a5223f.497fa",
446     "type": "for",
447     "name": "for lidx..service-data.vnfs.vnf[]",
448     "xml": "<for index='lidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
449     "comments": "",
450     "outputs": 1,
451     "x": 611.3333854675293,
452     "y": 505.0001096725464,
453     "z": "298a9201.dd932e",
454     "wires": [
455       [
456         "53b23540.75768c"
457       ]
458     ]
459   },
460   {
461     "id": "53b23540.75768c",
462     "type": "block",
463     "name": "block : atomic",
464     "xml": "<block atomic=\"true\">",
465     "atomic": "true",
466     "outputs": 1,
467     "x": 855.333366394043,
468     "y": 531.0000691413879,
469     "z": "298a9201.dd932e",
470     "wires": [
471       [
472         "52fdf367.fb37ac"
473       ]
474     ]
475   },
476   {
477     "id": "52fdf367.fb37ac",
478     "type": "switchNode",
479     "name": "switch vnf-id found",
480     "xml": "<switch test=\"`$service-data.vnfs.vnf[$lidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
481     "comments": "",
482     "outputs": 1,
483     "x": 1047.3333129882812,
484     "y": 540.0001134872437,
485     "z": "298a9201.dd932e",
486     "wires": [
487       [
488         "ae48a2e3.38f76"
489       ]
490     ]
491   },
492   {
493     "id": "ae48a2e3.38f76",
494     "type": "outcomeFalse",
495     "name": "false",
496     "xml": "<outcome value='false'>\n",
497     "comments": "",
498     "outputs": 1,
499     "x": 1233.3333282470703,
500     "y": 524,
501     "z": "298a9201.dd932e",
502     "wires": [
503       [
504         "617570c9.1b48"
505       ]
506     ]
507   },
508   {
509     "id": "8341b52b.a87b88",
510     "type": "set",
511     "name": "set  vnf data",
512     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-id' value='`$service-data.vnfs.vnf[$lidx].vnf-id`' />\n<parameter name='service-data.vnfs.vnf[$prop.vnfidxLen].vnf-data.' value='`$service-data.vnfs.vnf[$lidx].vnf-data.`' />\n",
513     "comments": "",
514     "x": 1549.3333473205566,
515     "y": 500.0001916885376,
516     "z": "298a9201.dd932e",
517     "wires": []
518   },
519   {
520     "id": "14bdc57f.29da0b",
521     "type": "set",
522     "name": "set prop.vnfNewidx",
523     "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`0`' />\n",
524     "comments": "",
525     "x": 576.3333892822266,
526     "y": 469.0000686645508,
527     "z": "298a9201.dd932e",
528     "wires": []
529   },
530   {
531     "id": "45e47923.545468",
532     "type": "set",
533     "name": "set prop.vnfNewidx",
534     "xml": "<set>\n<parameter name='prop.vnfidxLen' value='`$prop.vnfidxLen + 1`' />\n",
535     "comments": "",
536     "x": 1571.3333473205566,
537     "y": 556.0001554489136,
538     "z": "298a9201.dd932e",
539     "wires": []
540   },
541   {
542     "id": "617570c9.1b48",
543     "type": "block",
544     "name": "block : atomic",
545     "xml": "<block atomic=\"true\">",
546     "atomic": "true",
547     "outputs": 1,
548     "x": 1384.333251953125,
549     "y": 525.000036239624,
550     "z": "298a9201.dd932e",
551     "wires": [
552       [
553         "8341b52b.a87b88",
554         "45e47923.545468"
555       ]
556     ]
557   },
558   {
559     "id": "9171f0e2.d13bf",
560     "type": "set",
561     "name": "Remove vnf from ServiceData",
562     "xml": "<set>\n\t<parameter name=\"service-data.vnfs.vnf[$prop.vnfidxLen].\" value=\"\"/>\n\n",
563     "comments": "",
564     "x": 613.0000534057617,
565     "y": 598.0000357627869,
566     "z": "298a9201.dd932e",
567     "wires": []
568   }
569 ]