Add DG for self serve ip assign/unassign (netbox)
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-vf-module-unassign.json
1 [
2   {
3     "id": "59c8eddd.d351d4",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 115,
8     "y": 47.5,
9     "z": "e707a2eb.031dc",
10     "wires": [
11       [
12         "3fa7b3b2.14694c"
13       ]
14     ]
15   },
16   {
17     "id": "7094f80c.f334a8",
18     "type": "block",
19     "name": "block : atomic",
20     "xml": "<block atomic='true'>",
21     "atomic": "true",
22     "comments": "",
23     "outputs": 1,
24     "x": 158.72620391845703,
25     "y": 160.27779006958008,
26     "z": "e707a2eb.031dc",
27     "wires": [
28       [
29         "e9626c7d.713ca",
30         "669839ba.56b488",
31         "4b0a760.f121c8c",
32         "c4d10211.0d483",
33         "bd7013b7.21885"
34       ]
35     ]
36   },
37   {
38     "id": "8f7300f3.a1d57",
39     "type": "method",
40     "name": "method self-serve-vf-module-unassign",
41     "xml": "<method rpc='self-serve-vf-module-unassign' mode='sync'>\n",
42     "comments": "",
43     "outputs": 1,
44     "x": 231.76190948486328,
45     "y": 102.20635509490967,
46     "z": "e707a2eb.031dc",
47     "wires": [
48       [
49         "7094f80c.f334a8"
50       ]
51     ]
52   },
53   {
54     "id": "3fa7b3b2.14694c",
55     "type": "service-logic",
56     "name": "GENERIC-RESOURCE-API ${project.version}",
57     "module": "GENERIC-RESOURCE-API",
58     "version": "${project.version}",
59     "comments": "",
60     "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}'>",
61     "outputs": 1,
62     "x": 390.23819732666016,
63     "y": 47.69049263000488,
64     "z": "e707a2eb.031dc",
65     "wires": [
66       [
67         "8f7300f3.a1d57"
68       ]
69     ]
70   },
71   {
72     "id": "88e4ca0d.4b82e8",
73     "type": "switchNode",
74     "name": "switch resource-resolution-data.status",
75     "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.status`'>\n",
76     "comments": "",
77     "outputs": 1,
78     "x": 483.5361022949219,
79     "y": 760.1786985397339,
80     "z": "e707a2eb.031dc",
81     "wires": [
82       [
83         "2e842ad6.b13196",
84         "6f51aecc.4c371",
85         "81b87eaf.eec99"
86       ]
87     ]
88   },
89   {
90     "id": "2e842ad6.b13196",
91     "type": "other",
92     "name": "SUCCESS",
93     "xml": "<outcome value='SUCCESS'>\n",
94     "comments": "",
95     "outputs": 1,
96     "x": 761.2386436462402,
97     "y": 760.547661781311,
98     "z": "e707a2eb.031dc",
99     "wires": [
100       [
101         "a18437e.11876c8"
102       ]
103     ]
104   },
105   {
106     "id": "e9626c7d.713ca",
107     "type": "for",
108     "name": "foreach capability-order[]",
109     "xml": "<for index='cidx' start='0' end='`$ss.capability.execution-order_length`' >\n",
110     "comments": "",
111     "outputs": 1,
112     "x": 409.1786346435547,
113     "y": 247.53568077087402,
114     "z": "e707a2eb.031dc",
115     "wires": [
116       [
117         "5cc84364.d00a7c",
118         "52fc6783.b27a48",
119         "60c0d544.1395bc",
120         "1f5f6357.bb701d"
121       ]
122     ]
123   },
124   {
125     "id": "a18437e.11876c8",
126     "type": "call",
127     "name": "call ss.capability-dg",
128     "xml": "<call module='GENERIC-RESOURCE-API' rpc='`$ss.capability-dg`' mode='sync' >\n",
129     "comments": "",
130     "outputs": 1,
131     "x": 966.3573760986328,
132     "y": 760.309513092041,
133     "z": "e707a2eb.031dc",
134     "wires": [
135       [
136         "83cd0b73.a2d968",
137         "e01eeb11.ffdd28"
138       ]
139     ]
140   },
141   {
142     "id": "5cc84364.d00a7c",
143     "type": "set",
144     "name": "ss.capability-name",
145     "xml": "<set>\n<parameter name='ss.capability-name' value='`$ss.capability.execution-order[$cidx]`' />\n\n<!--\nss.capability.execution-order\n-->",
146     "comments": "",
147     "x": 677.5356903076172,
148     "y": 247.48813247680664,
149     "z": "e707a2eb.031dc",
150     "wires": []
151   },
152   {
153     "id": "60c0d544.1395bc",
154     "type": "set",
155     "name": "set ss.capability.action = unassign",
156     "xml": "<set>\n<parameter name='ss.capability-action' value='unassign' />\n",
157     "comments": "",
158     "x": 726.2498321533203,
159     "y": 294.4047164916992,
160     "z": "e707a2eb.031dc",
161     "wires": []
162   },
163   {
164     "id": "83cd0b73.a2d968",
165     "type": "failure",
166     "name": "failure",
167     "xml": "<outcome value='failure'>\n",
168     "comments": "",
169     "outputs": 1,
170     "x": 1151.249885559082,
171     "y": 760.3095741271973,
172     "z": "e707a2eb.031dc",
173     "wires": [
174       [
175         "b3347c0d.511cc"
176       ]
177     ]
178   },
179   {
180     "id": "99396b28.795028",
181     "type": "set",
182     "name": "set capability-dg",
183     "xml": "<set>\n<parameter name='ss.capability-dg' value=\"`'self-serve-' + $ss.capability.execution-order[$cidx]`\" />\n",
184     "comments": "",
185     "x": 1130.0119018554688,
186     "y": 441.63094902038574,
187     "z": "e707a2eb.031dc",
188     "wires": []
189   },
190   {
191     "id": "52fc6783.b27a48",
192     "type": "switchNode",
193     "name": "switch ss.capability-name",
194     "xml": "<switch test='`$ss.capability-name`'>\n",
195     "comments": "",
196     "outputs": 1,
197     "x": 701.5119018554688,
198     "y": 343.3809566497803,
199     "z": "e707a2eb.031dc",
200     "wires": [
201       [
202         "89609b9d.832be8",
203         "bb8dbf03.25222",
204         "3e252dd8.99cbe2"
205       ]
206     ]
207   },
208   {
209     "id": "89609b9d.832be8",
210     "type": "other",
211     "name": "alts-entitlement-assign",
212     "xml": "<outcome value='alts-entitlement-assign'>\n",
213     "comments": "",
214     "outputs": 1,
215     "x": 995.2620239257812,
216     "y": 343.88094902038574,
217     "z": "e707a2eb.031dc",
218     "wires": [
219       [
220         "71970fc.f01b7f"
221       ]
222     ]
223   },
224   {
225     "id": "bb8dbf03.25222",
226     "type": "other",
227     "name": "alts-license-assign",
228     "xml": "<outcome value='alts-license-assign'>\n",
229     "comments": "",
230     "outputs": 1,
231     "x": 984.5120239257812,
232     "y": 391.63094902038574,
233     "z": "e707a2eb.031dc",
234     "wires": [
235       [
236         "71970fc.f01b7f"
237       ]
238     ]
239   },
240   {
241     "id": "3e252dd8.99cbe2",
242     "type": "other",
243     "name": "other",
244     "xml": "<outcome value='Other'>\n",
245     "comments": "",
246     "outputs": 1,
247     "x": 950.5119857788086,
248     "y": 441.8809394836426,
249     "z": "e707a2eb.031dc",
250     "wires": [
251       [
252         "99396b28.795028"
253       ]
254     ]
255   },
256   {
257     "id": "71970fc.f01b7f",
258     "type": "set",
259     "name": "set capability-dg",
260     "xml": "<set>\n<parameter name='ss.capability-dg' value='self-serve-alts-assignment' />\n",
261     "comments": "",
262     "x": 1254.0119018554688,
263     "y": 343.38094902038574,
264     "z": "e707a2eb.031dc",
265     "wires": []
266   },
267   {
268     "id": "c4d10211.0d483",
269     "type": "execute",
270     "name": "printContext",
271     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-vf-unassign.log' />\n",
272     "comments": "",
273     "outputs": 1,
274     "x": 413.53592681884766,
275     "y": 1625.226125717163,
276     "z": "e707a2eb.031dc",
277     "wires": [
278       []
279     ]
280   },
281   {
282     "id": "669839ba.56b488",
283     "type": "set",
284     "name": "set ss.capability.execution-order[]",
285     "xml": "<set>\n<parameter name='ss.capability.execution-order[0]' value='mac-address-assign' />\n<parameter name='ss.capability.execution-order[1]' value='eipam-ip-assign' />\n<parameter name='ss.capability.execution-order[2]' value='netbox-ip-assign' />\n<parameter name='ss.capability.execution-order[3]' value='vlan-tag-assign' />\n<parameter name='ss.capability.execution-order[4]' value='alts-license-assign' />\n<parameter name='ss.capability.execution-order[5]' value='alts-entitlement-assign' />\n<parameter name='ss.capability.execution-order[6]' value='generate-name' />\n<parameter name='ss.capability.execution-order_length' value='7' />",
286     "comments": "",
287     "x": 434.25003814697266,
288     "y": 160.50000381469727,
289     "z": "e707a2eb.031dc",
290     "wires": []
291   },
292   {
293     "id": "ecc91ea3.fdc65",
294     "type": "returnFailure",
295     "name": "return failure",
296     "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Encountered error from capability: '+ $ss.capability-dg + ', with error: '+ $error-message`\" />\n",
297     "comments": "",
298     "x": 1533.75,
299     "y": 1115.5,
300     "z": "e707a2eb.031dc",
301     "wires": []
302   },
303   {
304     "id": "b3347c0d.511cc",
305     "type": "block",
306     "name": "block : atomic",
307     "xml": "<block atomic='true'>",
308     "atomic": "true",
309     "comments": "",
310     "outputs": 1,
311     "x": 1315.3691329956055,
312     "y": 760.8329677581787,
313     "z": "e707a2eb.031dc",
314     "wires": [
315       [
316         "ecc91ea3.fdc65",
317         "f80cfa5f.ec5538",
318         "f9478e50.da1ab",
319         "b33b6f0d.9741b",
320         "a62aae18.246a5",
321         "9cf116cc.5d7c88"
322       ]
323     ]
324   },
325   {
326     "id": "f80cfa5f.ec5538",
327     "type": "execute",
328     "name": "execute RestApiCallNode - PUT vf-module",
329     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ss.vfmodule.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ss-vfmodule-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ss-vfmodule\" />\n\n",
330     "comments": "",
331     "outputs": 1,
332     "x": 1630.9165725708008,
333     "y": 1017.2069272994995,
334     "z": "e707a2eb.031dc",
335     "wires": [
336       [
337         "5a81dded.44b2c4",
338         "2b7e4172.d9466e",
339         "9c94c0a8.8a6b6"
340       ]
341     ]
342   },
343   {
344     "id": "5a81dded.44b2c4",
345     "type": "not-found",
346     "name": "not-found",
347     "xml": "<outcome value='not-found'>\n",
348     "comments": "",
349     "outputs": 1,
350     "x": 1905.510238647461,
351     "y": 1071.205080986023,
352     "z": "e707a2eb.031dc",
353     "wires": [
354       [
355         "144bf243.c5cf4e"
356       ]
357     ]
358   },
359   {
360     "id": "2b7e4172.d9466e",
361     "type": "failure",
362     "name": "failure",
363     "xml": "<outcome value='failure'>\n",
364     "comments": "",
365     "outputs": 1,
366     "x": 1897.9388732910156,
367     "y": 1017.7051010131836,
368     "z": "e707a2eb.031dc",
369     "wires": [
370       [
371         "144bf243.c5cf4e"
372       ]
373     ]
374   },
375   {
376     "id": "9c94c0a8.8a6b6",
377     "type": "success",
378     "name": "success",
379     "xml": "<outcome value='success'>\n",
380     "comments": "",
381     "outputs": 1,
382     "x": 1901.688865661621,
383     "y": 964.062198638916,
384     "z": "e707a2eb.031dc",
385     "wires": [
386       [
387         "9b806219.d57b1"
388       ]
389     ]
390   },
391   {
392     "id": "9b806219.d57b1",
393     "type": "block",
394     "name": "block",
395     "xml": "<block>\n",
396     "atomic": "false",
397     "comments": "",
398     "outputs": 1,
399     "x": 2078.059097290039,
400     "y": 963.9686799049377,
401     "z": "e707a2eb.031dc",
402     "wires": [
403       []
404     ]
405   },
406   {
407     "id": "144bf243.c5cf4e",
408     "type": "block",
409     "name": "block : atomic",
410     "xml": "<block atomic=\"true\">",
411     "atomic": "true",
412     "outputs": 1,
413     "x": 2100.0711975097656,
414     "y": 1017.3493556976318,
415     "z": "e707a2eb.031dc",
416     "wires": [
417       [
418         "a8a3bda2.3a4e7"
419       ]
420     ]
421   },
422   {
423     "id": "a8a3bda2.3a4e7",
424     "type": "configure",
425     "name": "set error-message",
426     "xml": "<set>\n<parameter name=\"error-message\" value=\"Failed to persist self-serve vf-module assignments during unassign in MD-SAL\" />\n",
427     "comments": "",
428     "outputs": 1,
429     "x": 2318.356964111328,
430     "y": 1017.4922189712524,
431     "z": "e707a2eb.031dc",
432     "wires": [
433       []
434     ]
435   },
436   {
437     "id": "f9478e50.da1ab",
438     "type": "set",
439     "name": "set vf data for restapi-call-node",
440     "xml": "<set>\n<parameter name='vf.vf-module-id'\n    value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`' />\n<parameter name='vf.vf-module-data.sdnc-request-header.'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.sdnc-request-header.`' />\n<parameter name='vf.vf-module-data.request-information.'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.request-information.`' />\n<parameter name='vf.vf-module-data.service-information.'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.service-information.`' />\n<parameter name='vf.vf-module-data.vnf-information.'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vnf-information.`' />\n<parameter name='vf.vf-module-data.vf-module-information.'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-information.`' />\n<parameter name='vf.vf-module-data.vf-module-topology.'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.`' />\n<parameter name='vf.vf-module-data.vf-module-level-oper-status.'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-level-oper-status.`' />\n<parameter name='vf.vf-module-data.vf-module-request-input.vf-module-input-parameters.'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-request-input.vf-module-input-parameters.`' />\n<parameter name='vf.vf-module-data.vf-module-request-input.request-version'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-request-input.request-version`' />\n<parameter name='vf.vf-module-data.vf-module-request-input.vf-module-name'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-request-input.vf-module-name`' />\n<parameter name='vf.vf-module-data.vf-module-request-input.tenant'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-request-input.tenant`' />\n<parameter name='vf.vf-module-data.vf-module-request-input.aic-cloud-region'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-request-input.aic-cloud-region`' />\n<parameter name='vf.vf-module-data.vf-module-request-input.aic-clli'\n  value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-request-input.aic-clli`' />",
441     "comments": "",
442     "x": 1592.428596496582,
443     "y": 761.3249444961548,
444     "z": "e707a2eb.031dc",
445     "wires": []
446   },
447   {
448     "id": "b33b6f0d.9741b",
449     "type": "execute",
450     "name": "generate ss-vfmodule url replace service-instance-id",
451     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.ss-vfmodule-assignments`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ss-vfmodule-url\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.service-information.service-instance-id`\"/>\n",
452     "comments": "",
453     "outputs": 1,
454     "x": 1658.6785430908203,
455     "y": 809.3249893188477,
456     "z": "e707a2eb.031dc",
457     "wires": [
458       []
459     ]
460   },
461   {
462     "id": "a62aae18.246a5",
463     "type": "execute",
464     "name": "generate ss-vfmodule url - replace vnf-id",
465     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.ss-vfmodule-url`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ss-vfmodule-url\"/>\n    <parameter name=\"target\" value=\"{vnf-id}\"/>\n    <parameter name=\"replacement\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vnf-information.vnf-id`\"/>\n",
466     "comments": "",
467     "outputs": 1,
468     "x": 1622.964241027832,
469     "y": 857.3839063644409,
470     "z": "e707a2eb.031dc",
471     "wires": [
472       []
473     ]
474   },
475   {
476     "id": "9cf116cc.5d7c88",
477     "type": "execute",
478     "name": "generate ss-vfmodule url - replace vf-module-id",
479     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.ss-vfmodule-url`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ss-vfmodule-url\"/>\n    <parameter name=\"target\" value=\"{vf-module-id}\"/>\n    <parameter name=\"replacement\" value=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-id`\"/>\n",
480     "comments": "",
481     "outputs": 1,
482     "x": 1644.904914855957,
483     "y": 907.3004064559937,
484     "z": "e707a2eb.031dc",
485     "wires": [
486       []
487     ]
488   },
489   {
490     "id": "4b0a760.f121c8c",
491     "type": "set",
492     "name": "set ss.capability-type = vf-module",
493     "xml": "<set>\n<parameter name='ss.capability-type' value='vf-module' />\n",
494     "comments": "",
495     "x": 434.8571319580078,
496     "y": 203.50001049041748,
497     "z": "e707a2eb.031dc",
498     "wires": []
499   },
500   {
501     "id": "e01eeb11.ffdd28",
502     "type": "success",
503     "name": "success",
504     "xml": "<outcome value='success'>\n",
505     "comments": "",
506     "outputs": 1,
507     "x": 1153.75,
508     "y": 711.25,
509     "z": "e707a2eb.031dc",
510     "wires": [
511       [
512         "70f15cdb.b52454"
513       ]
514     ]
515   },
516   {
517     "id": "70f15cdb.b52454",
518     "type": "set",
519     "name": "set capability-dg to UNASSIGNED",
520     "xml": "<set>\n<parameter name='`$ss.capability-dg`' value='UNASSIGNED' />\n",
521     "comments": "",
522     "x": 1379.499984741211,
523     "y": 710.9999723434448,
524     "z": "e707a2eb.031dc",
525     "wires": []
526   },
527   {
528     "id": "6f51aecc.4c371",
529     "type": "other",
530     "name": "DELETED",
531     "xml": "<outcome value='DELETED'>\n",
532     "comments": "",
533     "outputs": 1,
534     "x": 760,
535     "y": 857.1428833007812,
536     "z": "e707a2eb.031dc",
537     "wires": [
538       [
539         "31a0085.606c5f8"
540       ]
541     ]
542   },
543   {
544     "id": "383dc66d.17f72a",
545     "type": "returnFailure",
546     "name": "return failure",
547     "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to unassign self-serve vf-module assignments because the status for ' + $ss.capability-name + ' is '  + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.status`\"/>",
548     "comments": "",
549     "x": 1110.7380447387695,
550     "y": 1024.6905918121338,
551     "z": "e707a2eb.031dc",
552     "wires": []
553   },
554   {
555     "id": "31a0085.606c5f8",
556     "type": "block",
557     "name": "block",
558     "xml": "<block>\n",
559     "atomic": "false",
560     "comments": "",
561     "outputs": 1,
562     "x": 916.4999923706055,
563     "y": 857.1428718566895,
564     "z": "e707a2eb.031dc",
565     "wires": [
566       [
567         "df136536.ec6fa8",
568         "296bd731.42cef8"
569       ]
570     ]
571   },
572   {
573     "id": "81b87eaf.eec99",
574     "type": "other",
575     "name": "other",
576     "xml": "<outcome value='Other'>\n",
577     "comments": "",
578     "outputs": 1,
579     "x": 750.0713958740234,
580     "y": 989.3571853637695,
581     "z": "e707a2eb.031dc",
582     "wires": [
583       [
584         "74d32650.e89458"
585       ]
586     ]
587   },
588   {
589     "id": "df136536.ec6fa8",
590     "type": "record",
591     "name": "record",
592     "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"`'SS: resource-resolution-data.status: ' + $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.status`\"/>\n<parameter name=\"field2\" value=\"`'SS: ss.capability-name: ' + $ss.capability-name`\"/>\n",
593     "comments": "",
594     "outputs": 1,
595     "x": 1090.3572616577148,
596     "y": 948.6905670166016,
597     "z": "e707a2eb.031dc",
598     "wires": [
599       []
600     ]
601   },
602   {
603     "id": "74d32650.e89458",
604     "type": "block",
605     "name": "block : atomic",
606     "xml": "<block atomic='true'>",
607     "atomic": "true",
608     "comments": "",
609     "outputs": 1,
610     "x": 917.7856903076172,
611     "y": 989.3572368621826,
612     "z": "e707a2eb.031dc",
613     "wires": [
614       [
615         "df136536.ec6fa8",
616         "383dc66d.17f72a"
617       ]
618     ]
619   },
620   {
621     "id": "1f5f6357.bb701d",
622     "type": "for",
623     "name": "foreach vf-module-parameters.param[]",
624     "xml": "<for index='pidx' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param_length`' >\n",
625     "comments": "",
626     "outputs": 1,
627     "x": 733.9999732971191,
628     "y": 511.4285945892334,
629     "z": "e707a2eb.031dc",
630     "wires": [
631       [
632         "842a7679.474c78",
633         "ff70ed31.3b468"
634       ]
635     ]
636   },
637   {
638     "id": "842a7679.474c78",
639     "type": "switchNode",
640     "name": "switch capability-name param vs. execution",
641     "xml": "<switch test='`$ss.capability-name == $tmp.param.capability-name`'>\n",
642     "comments": "",
643     "outputs": 1,
644     "x": 1106.3927955627441,
645     "y": 557.0713872909546,
646     "z": "e707a2eb.031dc",
647     "wires": [
648       [
649         "e83762f2.ee222"
650       ]
651     ]
652   },
653   {
654     "id": "e83762f2.ee222",
655     "type": "outcomeTrue",
656     "name": "true",
657     "xml": "<outcome value='true'>\n",
658     "comments": "",
659     "outputs": 1,
660     "x": 1369.8927955627441,
661     "y": 557.3213872909546,
662     "z": "e707a2eb.031dc",
663     "wires": [
664       [
665         "88e4ca0d.4b82e8"
666       ]
667     ]
668   },
669   {
670     "id": "ff70ed31.3b468",
671     "type": "set",
672     "name": "tmp.param.capability-name",
673     "xml": "<set>\n<parameter name='tmp.param.capability-name' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$pidx].resource-resolution-data.capability-name`' />\n",
674     "comments": "",
675     "x": 1055.7498207092285,
676     "y": 511.67859745025635,
677     "z": "e707a2eb.031dc",
678     "wires": []
679   },
680   {
681     "id": "1b981df9.eea952",
682     "type": "for",
683     "name": "for i in vnf-parameters-data.param[]",
684     "xml": "<for index='i' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >\n",
685     "comments": "",
686     "outputs": 1,
687     "x": 1211.8215026855469,
688     "y": 1353.5238590240479,
689     "z": "e707a2eb.031dc",
690     "wires": [
691       [
692         "2955f79d.d9f148"
693       ]
694     ]
695   },
696   {
697     "id": "2955f79d.d9f148",
698     "type": "switchNode",
699     "name": "switch param[$i].name",
700     "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$i].name`'>\n",
701     "comments": "",
702     "outputs": 1,
703     "x": 1490.5715026855469,
704     "y": 1354.0238304138184,
705     "z": "e707a2eb.031dc",
706     "wires": [
707       [
708         "21118528.d17aba"
709       ]
710     ]
711   },
712   {
713     "id": "5b3c9b0.4a95764",
714     "type": "save",
715     "name": "DELETE VNFC object",
716     "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vnfc\" \n\t\tkey=\"vnfc.vnfc-name = $tmp.ss.vnfc-name\" >",
717     "comments": "",
718     "outputs": 1,
719     "x": 2052.3216857910156,
720     "y": 1412.4880809783936,
721     "z": "e707a2eb.031dc",
722     "wires": [
723       [
724         "8f720052.82f16",
725         "c7b9a17c.70b3a"
726       ]
727     ]
728   },
729   {
730     "id": "3da72337.12504c",
731     "type": "block",
732     "name": "block : atomic",
733     "xml": "<block atomic='true'>",
734     "atomic": "true",
735     "comments": "",
736     "outputs": 1,
737     "x": 948.6785659790039,
738     "y": 1353.0116090774536,
739     "z": "e707a2eb.031dc",
740     "wires": [
741       [
742         "1b981df9.eea952"
743       ]
744     ]
745   },
746   {
747     "id": "8f720052.82f16",
748     "type": "failure",
749     "name": "failure",
750     "xml": "<outcome value='failure'>\n",
751     "comments": "",
752     "outputs": 1,
753     "x": 2264.0716705322266,
754     "y": 1412.9880504608154,
755     "z": "e707a2eb.031dc",
756     "wires": [
757       [
758         "19415073.afd87"
759       ]
760     ]
761   },
762   {
763     "id": "19415073.afd87",
764     "type": "set",
765     "name": "set error-message",
766     "xml": "<set>\n<parameter name='error-message' value='Failed to delete vnfc object in AnAI' />\n",
767     "comments": "",
768     "x": 2454.0716705322266,
769     "y": 1412.7380504608154,
770     "z": "e707a2eb.031dc",
771     "wires": []
772   },
773   {
774     "id": "c7b9a17c.70b3a",
775     "type": "not-found",
776     "name": "not-found",
777     "xml": "<outcome value='not-found'>\n",
778     "comments": "",
779     "outputs": 1,
780     "x": 2270.3216819763184,
781     "y": 1464.7380847930908,
782     "z": "e707a2eb.031dc",
783     "wires": [
784       [
785         "920b3ae7.9a1678"
786       ]
787     ]
788   },
789   {
790     "id": "21118528.d17aba",
791     "type": "other",
792     "name": "vnfc-name",
793     "xml": "<outcome value='vnfc-name'>\n<!--\n<outcome value='vmxvre_name_0'>\n-->\n",
794     "comments": "",
795     "outputs": 1,
796     "x": 1695.1072311401367,
797     "y": 1354.5238122940063,
798     "z": "e707a2eb.031dc",
799     "wires": [
800       [
801         "a6da92f.e11037"
802       ]
803     ]
804   },
805   {
806     "id": "e5273bc6.236098",
807     "type": "break",
808     "name": "break",
809     "xml": "<break>\n",
810     "comments": "",
811     "x": 2006.8215789794922,
812     "y": 1496.9524536132812,
813     "z": "e707a2eb.031dc",
814     "wires": []
815   },
816   {
817     "id": "a6da92f.e11037",
818     "type": "block",
819     "name": "block",
820     "xml": "<block>\n",
821     "atomic": "false",
822     "comments": "",
823     "outputs": 1,
824     "x": 1836.8215522766113,
825     "y": 1354.0953855514526,
826     "z": "e707a2eb.031dc",
827     "wires": [
828       [
829         "ebb79471.77e198",
830         "e5273bc6.236098",
831         "5b3c9b0.4a95764"
832       ]
833     ]
834   },
835   {
836     "id": "ebb79471.77e198",
837     "type": "set",
838     "name": "set tmp.ss.vnfc-name",
839     "xml": "<set>\n<parameter name='tmp.ss.vnfc-name' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$vf-module-index].vf-module-data.vf-module-topology.vf-module-parameters.param[$i].value`' />\n",
840     "comments": "",
841     "x": 2047.9643249511719,
842     "y": 1354.0953922271729,
843     "z": "e707a2eb.031dc",
844     "wires": []
845   },
846   {
847     "id": "bd7013b7.21885",
848     "type": "switchNode",
849     "name": "switch self-serve-generate-name  == UNASSIGNED",
850     "xml": "<switch test=\"`$self-serve-generate-name == 'UNASSIGNED'`\">\n",
851     "comments": "",
852     "outputs": 1,
853     "x": 518.5713958740234,
854     "y": 1205.3806629180908,
855     "z": "e707a2eb.031dc",
856     "wires": [
857       [
858         "60911edd.fbec9",
859         "dbc995c8.389a48"
860       ]
861     ]
862   },
863   {
864     "id": "60911edd.fbec9",
865     "type": "success",
866     "name": "true",
867     "xml": "<outcome value='true'>\n",
868     "comments": "",
869     "outputs": 1,
870     "x": 823.4999198913574,
871     "y": 1255.5235767364502,
872     "z": "e707a2eb.031dc",
873     "wires": [
874       [
875         "3da72337.12504c"
876       ]
877     ]
878   },
879   {
880     "id": "dbc995c8.389a48",
881     "type": "outcomeFalse",
882     "name": "false",
883     "xml": "<outcome value='false'>\n",
884     "comments": "",
885     "outputs": 1,
886     "x": 821.6071472167969,
887     "y": 1205.3450736999512,
888     "z": "e707a2eb.031dc",
889     "wires": [
890       [
891         "2732c8d4.650e48"
892       ]
893     ]
894   },
895   {
896     "id": "76c0b009.2d7e4",
897     "type": "record",
898     "name": "record",
899     "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"`'SS: self-serve-generate-name status: ' + $self-serve-generate-name`\"/>\n<parameter name=\"field2\" value=\"`'SS: self-serve-unresolved-composite-data: ' + $self-serve-unresolved-composite-data`\"/>",
900     "comments": "",
901     "outputs": 1,
902     "x": 1171.0357284545898,
903     "y": 1205.3452463150024,
904     "z": "e707a2eb.031dc",
905     "wires": [
906       []
907     ]
908   },
909   {
910     "id": "2732c8d4.650e48",
911     "type": "block",
912     "name": "block : atomic",
913     "xml": "<block atomic='true'>",
914     "atomic": "true",
915     "comments": "",
916     "outputs": 1,
917     "x": 987.4642715454102,
918     "y": 1205.3451922280447,
919     "z": "e707a2eb.031dc",
920     "wires": [
921       [
922         "76c0b009.2d7e4",
923         "f27b027f.fa36"
924       ]
925     ]
926   },
927   {
928     "id": "f27b027f.fa36",
929     "type": "returnFailure",
930     "name": "return failure",
931     "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'AAI Put is being skipped because NOT all capability components have SUCCESS status; '+ $error-message`\" />\n",
932     "comments": "",
933     "x": 1192.321418762207,
934     "y": 1248.7737998962402,
935     "z": "e707a2eb.031dc",
936     "wires": []
937   },
938   {
939     "id": "920b3ae7.9a1678",
940     "type": "block",
941     "name": "block",
942     "xml": "<block>\n",
943     "atomic": "false",
944     "comments": "",
945     "outputs": 1,
946     "x": 2423.333251953125,
947     "y": 1464.333251953125,
948     "z": "e707a2eb.031dc",
949     "wires": [
950       []
951     ]
952   },
953   {
954     "id": "296bd731.42cef8",
955     "type": "set",
956     "name": "set capability-dg to UNASSIGNED",
957     "xml": "<set>\n<parameter name='`$ss.capability-dg`' value='UNASSIGNED' />\n",
958     "comments": "",
959     "x": 1171.3333129882812,
960     "y": 857.333263669695,
961     "z": "e707a2eb.031dc",
962     "wires": []
963   }
964 ]