3a86e2681f635484029b03bce0c6150bb2852fd4
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-netbox-ip-assign.json
1 [
2     {
3         "id": "aeddcb92.bde6a",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 97,
8         "y": 62.57143306732178,
9         "z": "6621aeef.bf45",
10         "wires": [
11             [
12                 "460b7122.4f837"
13             ]
14         ]
15     },
16     {
17         "id": "295d429e.f0a67e",
18         "type": "method",
19         "name": "method self-serve-netbox-ip-assign",
20         "xml": "<method rpc='self-serve-netbox-ip-assign' mode='sync'>\n",
21         "comments": "",
22         "outputs": 1,
23         "x": 232.7857208251953,
24         "y": 119.69842147827148,
25         "z": "6621aeef.bf45",
26         "wires": [
27             [
28                 "bea678c6.71dd7"
29             ]
30         ]
31     },
32     {
33         "id": "bea678c6.71dd7",
34         "type": "block",
35         "name": "block : atomic",
36         "xml": "<block atomic=\"true\">",
37         "atomic": "true",
38         "comments": "",
39         "outputs": 1,
40         "x": 126.32144165039062,
41         "y": 206.0000400543213,
42         "z": "6621aeef.bf45",
43         "wires": [
44             [
45                 "d5200d6.b499a7",
46                 "dfe3495f.0a6cf8",
47                 "bb3b73.97d8649",
48                 "c356df77.cc7c28",
49                 "f691073d.b6c728"
50             ]
51         ]
52     },
53     {
54         "id": "460b7122.4f837",
55         "type": "service-logic",
56         "name": "GENERIC-RESOURCE-API 1.4.1-SNAPSHOT",
57         "module": "GENERIC-RESOURCE-API",
58         "version": "1.4.1-SNAPSHOT",
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='1.4.1-SNAPSHOT'>",
61         "outputs": 1,
62         "x": 369.8571472167969,
63         "y": 62,
64         "z": "6621aeef.bf45",
65         "wires": [
66             [
67                 "295d429e.f0a67e"
68             ]
69         ]
70     },
71     {
72         "id": "d5200d6.b499a7",
73         "type": "switchNode",
74         "name": "switch: ss.capability-name",
75         "xml": "<switch test='`$ss.capability-name`'>\n",
76         "comments": "",
77         "outputs": 1,
78         "x": 384.4999694824219,
79         "y": 209.82144165039062,
80         "z": "6621aeef.bf45",
81         "wires": [
82             [
83                 "16de1328.9e165d"
84             ]
85         ]
86     },
87     {
88         "id": "16de1328.9e165d",
89         "type": "outcome",
90         "name": "NULL",
91         "xml": "<outcome value=''>",
92         "outputs": 1,
93         "x": 609.4999923706055,
94         "y": 210.32144021987915,
95         "z": "6621aeef.bf45",
96         "wires": [
97             [
98                 "72fded58.33f2a4"
99             ]
100         ]
101     },
102     {
103         "id": "72fded58.33f2a4",
104         "type": "returnFailure",
105         "name": "return failure",
106         "xml": "<return status=\"failure\">\n\t<parameter name=\"ack-final\" value=\"Y\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"ss.capability-name is null\" />\n",
107         "comments": "",
108         "x": 769.4166641235352,
109         "y": 210.43253898620605,
110         "z": "6621aeef.bf45",
111         "wires": []
112     },
113     {
114         "id": "dfe3495f.0a6cf8",
115         "type": "switchNode",
116         "name": "switch: ss.capability-action",
117         "xml": "<switch test='`$ss.capability-action`'>\n",
118         "comments": "",
119         "outputs": 1,
120         "x": 387.74996185302734,
121         "y": 285.82143688201904,
122         "z": "6621aeef.bf45",
123         "wires": [
124             [
125                 "a5187f.af9a5f8"
126             ]
127         ]
128     },
129     {
130         "id": "a5187f.af9a5f8",
131         "type": "outcome",
132         "name": "NULL",
133         "xml": "<outcome value=''>",
134         "comments": "",
135         "outputs": 1,
136         "x": 611.2499618530273,
137         "y": 286.07143688201904,
138         "z": "6621aeef.bf45",
139         "wires": [
140             [
141                 "70603bf9.fc52ac"
142             ]
143         ]
144     },
145     {
146         "id": "70603bf9.fc52ac",
147         "type": "returnFailure",
148         "name": "return failure",
149         "xml": "<return status=\"failure\">\n\t<parameter name=\"ack-final\" value=\"Y\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"ss.capability-action is null\" />\n",
150         "comments": "",
151         "x": 771.166633605957,
152         "y": 286.18253564834595,
153         "z": "6621aeef.bf45",
154         "wires": []
155     },
156     {
157         "id": "2ff7ecc5.284a3c",
158         "type": "outcome",
159         "name": "unassign",
160         "xml": "<outcome value='unassign'>",
161         "comments": "",
162         "outputs": 1,
163         "x": 891.8930053710938,
164         "y": 1566.500039100647,
165         "z": "6621aeef.bf45",
166         "wires": [
167             [
168                 "3015a413.8908c4"
169             ]
170         ]
171     },
172     {
173         "id": "c356df77.cc7c28",
174         "type": "call",
175         "name": "call self-service-capability-param-resolution",
176         "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-service-capability-param-resolution' mode='sync' >\n",
177         "comments": "",
178         "outputs": 1,
179         "x": 438.41680908203125,
180         "y": 360.82147216796875,
181         "z": "6621aeef.bf45",
182         "wires": [
183             [
184                 "260a2383.61ca04"
185             ]
186         ]
187     },
188     {
189         "id": "260a2383.61ca04",
190         "type": "failure",
191         "name": "failure",
192         "xml": "<outcome value='failure'>\n",
193         "comments": "",
194         "outputs": 1,
195         "x": 742.6667060852051,
196         "y": 362.821475982666,
197         "z": "6621aeef.bf45",
198         "wires": [
199             [
200                 "a9e7fd90.1e1948"
201             ]
202         ]
203     },
204     {
205         "id": "a9e7fd90.1e1948",
206         "type": "returnFailure",
207         "name": "return failure",
208         "xml": "<return status=\"failure\">\n\t<parameter name=\"ack-final\" value=\"Y\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"`'Not all assignments are resolved' + $error-message`\" />\n",
209         "comments": "",
210         "x": 901.4166870117188,
211         "y": 362.82147216796875,
212         "z": "6621aeef.bf45",
213         "wires": []
214     },
215     {
216         "id": "c106c1b3.fa5708",
217         "type": "set",
218         "name": "set tmp.ss.param.capability-name",
219         "xml": "<set>\n<parameter name='tmp.ss.param.capability-name' \n\tvalue='`$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",
220         "comments": "",
221         "x": 901.5634307861328,
222         "y": 418.603187084198,
223         "z": "6621aeef.bf45",
224         "wires": []
225     },
226     {
227         "id": "cf602ff2.69d16",
228         "type": "for",
229         "name": "for pidx in param_length",
230         "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`\">",
231         "comments": "",
232         "outputs": 1,
233         "x": 611.7776565551758,
234         "y": 418.6746573448181,
235         "z": "6621aeef.bf45",
236         "wires": [
237             [
238                 "9a404501.e9a9f",
239                 "575f86c4.d593b8",
240                 "c106c1b3.fa5708"
241             ]
242         ]
243     },
244     {
245         "id": "575f86c4.d593b8",
246         "type": "switchNode",
247         "name": "switch: capability-name - ss vs param",
248         "xml": "<switch test='`$tmp.ss.param.capability-name == $ss.capability-name`'>\n",
249         "comments": "",
250         "outputs": 1,
251         "x": 914.6388931274414,
252         "y": 499.95243978500366,
253         "z": "6621aeef.bf45",
254         "wires": [
255             [
256                 "5ffdfe5e.2f2ba8"
257             ]
258         ]
259     },
260     {
261         "id": "5ffdfe5e.2f2ba8",
262         "type": "outcomeTrue",
263         "name": "true",
264         "xml": "<outcome value='true'>\n",
265         "comments": "",
266         "outputs": 1,
267         "x": 1153.388900756836,
268         "y": 499.70243978500366,
269         "z": "6621aeef.bf45",
270         "wires": [
271             [
272                 "5c183d21.694a54"
273             ]
274         ]
275     },
276     {
277         "id": "6474a2a3.971edc",
278         "type": "switchNode",
279         "name": "switch: resource-key[].name",
280         "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.resource-key[$kidx].name`'>\n",
281         "comments": "",
282         "outputs": 1,
283         "x": 1340.778221130371,
284         "y": 819.99640417099,
285         "z": "6621aeef.bf45",
286         "wires": [
287             [
288                 "eae11399.61a66",
289                 "d4df7117.d17f68",
290                 "7bb69337.4e6394",
291                 "5c5c662c.f08f1",
292                 "90dc69e5.6405"
293             ]
294         ]
295     },
296     {
297         "id": "d4df7117.d17f68",
298         "type": "outcome",
299         "name": "service-instance-id",
300         "xml": "<outcome value='service-instance-id'>\n",
301         "comments": "",
302         "outputs": 1,
303         "x": 1612.1671295166016,
304         "y": 819.4686226844788,
305         "z": "6621aeef.bf45",
306         "wires": [
307             [
308                 "8300040f.111c68"
309             ]
310         ]
311     },
312     {
313         "id": "8300040f.111c68",
314         "type": "set",
315         "name": "set tmp.ss.service-instance-id",
316         "xml": "<set>\n<parameter name='tmp.ss.service-instance-id' 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.resource-key[$kidx].value`' />\n",
317         "comments": "",
318         "x": 1878.4171295166016,
319         "y": 819.2186226844788,
320         "z": "6621aeef.bf45",
321         "wires": []
322     },
323     {
324         "id": "235c0ede.173f92",
325         "type": "set",
326         "name": "set service-data...param[].value = ip-address",
327         "xml": "<set>\n<parameter name='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].value' \n\tvalue='`$self_serve_netbox_ip_assignement.ip-address`' />\n",
328         "comments": "",
329         "x": 2168.960205078125,
330         "y": 1349.4608764648438,
331         "z": "6621aeef.bf45",
332         "wires": []
333     },
334     {
335         "id": "deee58e3.ecff3",
336         "type": "update",
337         "name": "get-resource IPAM_IP_ASSIGNEMENT",
338         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n\tkey='SELECT * from IPAM_IP_ASSIGNEMENT \n\t\tWHERE external_key = $tmp.ss.external-key\n\t\tAND service_instance_id = $tmp.ss.service-instance-id' >",
339         "comments": "",
340         "outputs": 1,
341         "x": 1367.3770751953125,
342         "y": 1565.3214502334595,
343         "z": "6621aeef.bf45",
344         "wires": [
345             [
346                 "21ac77e1.c9741",
347                 "64c75b78.f36b24"
348             ]
349         ]
350     },
351     {
352         "id": "21ac77e1.c9741",
353         "type": "not-found",
354         "name": "not-found",
355         "xml": "<outcome value='not-found'>\n",
356         "comments": "",
357         "outputs": 1,
358         "x": 1661.964412689209,
359         "y": 1566.321483373642,
360         "z": "6621aeef.bf45",
361         "wires": [
362             [
363                 "131e59c0.7aa77e"
364             ]
365         ]
366     },
367     {
368         "id": "3015a413.8908c4",
369         "type": "block",
370         "name": "block : atomic",
371         "xml": "<block atomic=\"true\">",
372         "atomic": "true",
373         "outputs": 1,
374         "x": 1061.214370727539,
375         "y": 1566.964394569397,
376         "z": "6621aeef.bf45",
377         "wires": [
378             [
379                 "deee58e3.ecff3"
380             ]
381         ]
382     },
383     {
384         "id": "f6c6e34.fe93ea",
385         "type": "for",
386         "name": "for kidx in resource-key_length",
387         "xml": "<for index=\"kidx\" 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[$pidx].resource-resolution-data.resource-key_length`\">",
388         "comments": "",
389         "outputs": 1,
390         "x": 1057.639305114746,
391         "y": 817.857488155365,
392         "z": "6621aeef.bf45",
393         "wires": [
394             [
395                 "6474a2a3.971edc"
396             ]
397         ]
398     },
399     {
400         "id": "f691073d.b6c728",
401         "type": "block",
402         "name": "block",
403         "xml": "<block>\n",
404         "atomic": "false",
405         "comments": "",
406         "outputs": 1,
407         "x": 328.03570556640625,
408         "y": 416.7976379394531,
409         "z": "6621aeef.bf45",
410         "wires": [
411             [
412                 "cf602ff2.69d16",
413                 "7e0801d1.7a2c7"
414             ]
415         ]
416     },
417     {
418         "id": "bb3b73.97d8649",
419         "type": "execute",
420         "name": "printContext",
421         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss.eipam.log' />\n",
422         "comments": "",
423         "outputs": 1,
424         "x": 126.5833740234375,
425         "y": 1925.2379150390625,
426         "z": "6621aeef.bf45",
427         "wires": [
428             []
429         ]
430     },
431     {
432         "id": "6bcbec21.cdc8a4",
433         "type": "update",
434         "name": "update IPAM_IP_ASSIGNEMENT to PENDING_DELETE...",
435         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource\" resource=\"SQL\"\n\tkey=\"UPDATE IPAM_IP_ASSIGNEMENT set ip_status = $tmp.status \n\t\tWHERE external_key = $tmp.ss.external-key\n\t\tAND service_instance_id = $tmp.ss.service-instance-id\" >",
436         "comments": "",
437         "outputs": 1,
438         "x": 2190.2740478515625,
439         "y": 1657.0001611709595,
440         "z": "6621aeef.bf45",
441         "wires": [
442             [
443                 "95bfe2aa.52a368"
444             ]
445         ]
446     },
447     {
448         "id": "b6dcca73.b383e8",
449         "type": "set",
450         "name": "set status = PENDING_DELETE",
451         "xml": "<set>\n<parameter name='tmp.status' value=\"PENDING_DELETE\" />\n",
452         "comments": "",
453         "x": 2100.1905517578125,
454         "y": 1615.3334131240845,
455         "z": "6621aeef.bf45",
456         "wires": []
457     },
458     {
459         "id": "95bfe2aa.52a368",
460         "type": "failure",
461         "name": "failure",
462         "xml": "<outcome value='failure'>\n",
463         "comments": "",
464         "outputs": 1,
465         "x": 2497.9405059814453,
466         "y": 1657.5834846496582,
467         "z": "6621aeef.bf45",
468         "wires": [
469             [
470                 "91f0feca.0b39d8"
471             ]
472         ]
473     },
474     {
475         "id": "91f0feca.0b39d8",
476         "type": "returnFailure",
477         "name": "return failure",
478         "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=\"`'Error updating NETBOX_IP_ASSIGNMENTS table to unassign ip with external_key=' + $tmp.ss.external-key + ' and service_instance_id=' + $tmp.ss.service-instance-id`\" />\n",
479         "comments": "",
480         "x": 2676.9407958984375,
481         "y": 1657.393105506897,
482         "z": "6621aeef.bf45",
483         "wires": []
484     },
485     {
486         "id": "cef88c60.c3ce7",
487         "type": "execute",
488         "name": "execute Netbox unassign IP addresses",
489         "xml": "<execute plugin=\"org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient\" method=\"unassignIpAddress\">\n<parameter name=\"service_instance_id\" value=\"`$tmp.ss.service-instance-id`\" />\n<parameter name=\"external_key\" value=\"`$tmp.ss.external-key`\" />",
490         "comments": "",
491         "outputs": 1,
492         "x": 2120.27392578125,
493         "y": 1703.2502222061157,
494         "z": "6621aeef.bf45",
495         "wires": [
496             [
497                 "9a25867f.7917b",
498                 "4c46f42f.389724"
499             ]
500         ]
501     },
502     {
503         "id": "9a25867f.7917b",
504         "type": "failure",
505         "name": "failure",
506         "xml": "<outcome value='failure'>\n",
507         "comments": "",
508         "outputs": 1,
509         "x": 2363.607192993164,
510         "y": 1703.250171661377,
511         "z": "6621aeef.bf45",
512         "wires": [
513             [
514                 "d8d6e44a.e2b038"
515             ]
516         ]
517     },
518     {
519         "id": "d8d6e44a.e2b038",
520         "type": "returnFailure",
521         "name": "return failure",
522         "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=\"`'Error in NetboxClient#unassignIPAddress with external-key='+ $tmp.ss.external-key`\" />\n",
523         "comments": "",
524         "x": 2525.607219696045,
525         "y": 1703.0599069595337,
526         "z": "6621aeef.bf45",
527         "wires": []
528     },
529     {
530         "id": "7f0db226.60e56c",
531         "type": "block",
532         "name": "block : atomic",
533         "xml": "<block atomic=\"true\">",
534         "atomic": "true",
535         "outputs": 1,
536         "x": 1840.8929595947266,
537         "y": 1614.7500410079956,
538         "z": "6621aeef.bf45",
539         "wires": [
540             [
541                 "b6dcca73.b383e8",
542                 "6bcbec21.cdc8a4",
543                 "cef88c60.c3ce7"
544             ]
545         ]
546     },
547     {
548         "id": "7e0801d1.7a2c7",
549         "type": "record",
550         "name": "record",
551         "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=\"`'SS: pidx: ' + $pidx`\"/>\n",
552         "comments": "",
553         "outputs": 1,
554         "x": 563.84130859375,
555         "y": 473.74212646484375,
556         "z": "6621aeef.bf45",
557         "wires": [
558             []
559         ]
560     },
561     {
562         "id": "eae11399.61a66",
563         "type": "outcome",
564         "name": "vf-module-id",
565         "xml": "<outcome value='vf-module-id'>\n",
566         "comments": "",
567         "outputs": 1,
568         "x": 1594.0001373291016,
569         "y": 865.7185616493225,
570         "z": "6621aeef.bf45",
571         "wires": [
572             [
573                 "92eb3aef.6fece8"
574             ]
575         ]
576     },
577     {
578         "id": "92eb3aef.6fece8",
579         "type": "set",
580         "name": "set tmp.ss.vf-module-id",
581         "xml": "<set>\n<parameter name='tmp.ss.vf-module-id' 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.resource-key[$kidx].value`' />\n",
582         "comments": "",
583         "x": 1860.000259399414,
584         "y": 865.7185616493225,
585         "z": "6621aeef.bf45",
586         "wires": []
587     },
588     {
589         "id": "6c93627f.1091d4",
590         "type": "set",
591         "name": "set resource-resolution-data.status = DELETED",
592         "xml": "<set>\n<parameter name='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\tvalue='DELETED' />\n",
593         "comments": "",
594         "x": 2630.4998779296875,
595         "y": 1758.5709228515625,
596         "z": "6621aeef.bf45",
597         "wires": []
598     },
599     {
600         "id": "7bb69337.4e6394",
601         "type": "outcome",
602         "name": "prefix-id",
603         "xml": "<outcome value='prefix-id'>\n",
604         "comments": "",
605         "outputs": 1,
606         "x": 1583.0558013916016,
607         "y": 909.9685921669006,
608         "z": "6621aeef.bf45",
609         "wires": [
610             [
611                 "ce6e3b64.bdad58"
612             ]
613         ]
614     },
615     {
616         "id": "ce6e3b64.bdad58",
617         "type": "set",
618         "name": "set prefix-id",
619         "xml": "<set>\n<parameter name='tmp.ss.prefix-id' 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.resource-key[$kidx].value`' />\n",
620         "comments": "",
621         "x": 1829.5558013916016,
622         "y": 910.2185616493225,
623         "z": "6621aeef.bf45",
624         "wires": []
625     },
626     {
627         "id": "f6d1639e.62ad88",
628         "type": "execute",
629         "name": "execute NetboxClient assignIpAddress",
630         "xml": "<execute plugin=\"org.onap.ccsdk.sli.adaptors.netbox.api.NetboxClient\" method=\"assignIpAddress\">\n<parameter name=\"service_instance_id\" value=\"`$tmp.ss.service-instance-id`\" />\n<parameter name=\"vf_module_id\" value=\"`$tmp.ss.vf-module-id`\" />\n<parameter name=\"prefix_id\" value=\"`$tmp.ss.prefix-id`\" />\n<parameter name=\"resource_name\" value=\"`$tmp.ss.param.name`\" />\n<parameter name=\"external_key\" value=\"`$tmp.ss.external-key`\" />",
631         "comments": "",
632         "outputs": 1,
633         "x": 1364.9525756835938,
634         "y": 1224.4884424209595,
635         "z": "6621aeef.bf45",
636         "wires": [
637             [
638                 "63ffe78c.535b98",
639                 "fd56af84.b7a68"
640             ]
641         ]
642     },
643     {
644         "id": "63ffe78c.535b98",
645         "type": "failure",
646         "name": "failure",
647         "xml": "<outcome value='failure'>\n",
648         "comments": "",
649         "outputs": 1,
650         "x": 1681.9525756835938,
651         "y": 1226.4883813858032,
652         "z": "6621aeef.bf45",
653         "wires": [
654             [
655                 "19c227a3.522448"
656             ]
657         ]
658     },
659     {
660         "id": "19c227a3.522448",
661         "type": "block",
662         "name": "block : atomic",
663         "xml": "<block atomic='true'>",
664         "atomic": "true",
665         "comments": "",
666         "outputs": 1,
667         "x": 1889.9525756835938,
668         "y": 1230.4883813858032,
669         "z": "6621aeef.bf45",
670         "wires": [
671             [
672                 "fbac9633.970dc8",
673                 "12ebaeec.b6b371"
674             ]
675         ]
676     },
677     {
678         "id": "fbac9633.970dc8",
679         "type": "set",
680         "name": "set resource-resolution-data.status = FAILED",
681         "xml": "<set>\n<parameter name='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' value='FAILED' />\n",
682         "comments": "",
683         "x": 2206.95263671875,
684         "y": 1234.488350868225,
685         "z": "6621aeef.bf45",
686         "wires": []
687     },
688     {
689         "id": "12ebaeec.b6b371",
690         "type": "returnFailure",
691         "name": "return failure",
692         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
693         "comments": "",
694         "x": 2104.33349609375,
695         "y": 1284.0916137695312,
696         "z": "6621aeef.bf45",
697         "wires": []
698     },
699     {
700         "id": "dbf6bad6.fbad2",
701         "type": "set",
702         "name": "set resource-resolution-data.status = SUCCESS",
703         "xml": "<set>\n<parameter name='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\tvalue='SUCCESS' />\n",
704         "comments": "",
705         "x": 2186.0357666015625,
706         "y": 1400.17919921875,
707         "z": "6621aeef.bf45",
708         "wires": []
709     },
710     {
711         "id": "5c5c662c.f08f1",
712         "type": "outcome",
713         "name": "ip-address-id",
714         "xml": "<outcome value='ip-address-id'>\n",
715         "comments": "",
716         "outputs": 1,
717         "x": 1596.9369506835938,
718         "y": 954.8256659507751,
719         "z": "6621aeef.bf45",
720         "wires": [
721             [
722                 "163b9c18.cbc31c"
723             ]
724         ]
725     },
726     {
727         "id": "163b9c18.cbc31c",
728         "type": "set",
729         "name": "ip-address-id",
730         "xml": "<set>\n<parameter name='tmp.ss.ip-address-id' 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.resource-key[$kidx].value`' />\n",
731         "comments": "",
732         "x": 1831.9368286132812,
733         "y": 954.8257269859314,
734         "z": "6621aeef.bf45",
735         "wires": []
736     },
737     {
738         "id": "90dc69e5.6405",
739         "type": "outcome",
740         "name": "external_key",
741         "xml": "<outcome value='external_key'>\n",
742         "comments": "",
743         "outputs": 1,
744         "x": 1584.5559692382812,
745         "y": 1000.5399603843689,
746         "z": "6621aeef.bf45",
747         "wires": [
748             [
749                 "8dc251fb.daa1e8"
750             ]
751         ]
752     },
753     {
754         "id": "8dc251fb.daa1e8",
755         "type": "set",
756         "name": "set external-key",
757         "xml": "<set>\n<parameter name='tmp.ss.external-key' 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.resource-key[$kidx].value`' />\n",
758         "comments": "",
759         "x": 1833.1273803710938,
760         "y": 1000.5400214195251,
761         "z": "6621aeef.bf45",
762         "wires": []
763     },
764     {
765         "id": "9a404501.e9a9f",
766         "type": "set",
767         "name": "set tmp.ss.param.name",
768         "xml": "<set>\n<parameter name='tmp.ss.param.name' \n\tvalue='`$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].name`' />\n",
769         "comments": "",
770         "x": 873.3493728637695,
771         "y": 458.79367208480835,
772         "z": "6621aeef.bf45",
773         "wires": []
774     },
775     {
776         "id": "5c183d21.694a54",
777         "type": "switchNode",
778         "name": "switch: resource-resolution-data.status",
779         "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",
780         "comments": "",
781         "outputs": 1,
782         "x": 413.2855224609375,
783         "y": 794.7620849609375,
784         "z": "6621aeef.bf45",
785         "wires": [
786             [
787                 "3e98782d.40c0e8",
788                 "511a57cd.b0751"
789             ]
790         ]
791     },
792     {
793         "id": "3e98782d.40c0e8",
794         "type": "not-found",
795         "name": "FAILED",
796         "xml": "<outcome value='FAILED'>\n",
797         "comments": "",
798         "outputs": 1,
799         "x": 644.7143249511719,
800         "y": 790.7621307373047,
801         "z": "6621aeef.bf45",
802         "wires": [
803             [
804                 "2b59421f.30834e"
805             ]
806         ]
807     },
808     {
809         "id": "511a57cd.b0751",
810         "type": "success",
811         "name": "PENDING",
812         "xml": "<outcome value='PENDING'>\n",
813         "comments": "",
814         "outputs": 1,
815         "x": 651.4285011291504,
816         "y": 842.4764587879181,
817         "z": "6621aeef.bf45",
818         "wires": [
819             [
820                 "2b59421f.30834e"
821             ]
822         ]
823     },
824     {
825         "id": "2b59421f.30834e",
826         "type": "block",
827         "name": "block",
828         "xml": "<block>\n",
829         "atomic": "false",
830         "comments": "",
831         "outputs": 1,
832         "x": 806.142822265625,
833         "y": 814.7621459960938,
834         "z": "6621aeef.bf45",
835         "wires": [
836             [
837                 "f6c6e34.fe93ea",
838                 "b3f43dd2.42288"
839             ]
840         ]
841     },
842     {
843         "id": "cfd59a42.40ec28",
844         "type": "outcome",
845         "name": "assign",
846         "xml": "<outcome value='assign'>",
847         "comments": "",
848         "outputs": 1,
849         "x": 863.9999389648438,
850         "y": 1222.5716943740845,
851         "z": "6621aeef.bf45",
852         "wires": [
853             [
854                 "c384a118.8056f"
855             ]
856         ]
857     },
858     {
859         "id": "b3f43dd2.42288",
860         "type": "switchNode",
861         "name": "switch: ss.capability-action",
862         "xml": "<switch test='`$ss.capability-action`'>\n",
863         "comments": "",
864         "outputs": 1,
865         "x": 627.9999389648438,
866         "y": 1220.5716943740845,
867         "z": "6621aeef.bf45",
868         "wires": [
869             [
870                 "cfd59a42.40ec28",
871                 "2ff7ecc5.284a3c"
872             ]
873         ]
874     },
875     {
876         "id": "c384a118.8056f",
877         "type": "block",
878         "name": "block : atomic",
879         "xml": "<block atomic='true'>",
880         "atomic": "true",
881         "comments": "",
882         "outputs": 1,
883         "x": 1039.4285888671875,
884         "y": 1223.4289331436157,
885         "z": "6621aeef.bf45",
886         "wires": [
887             [
888                 "f6d1639e.62ad88"
889             ]
890         ]
891     },
892     {
893         "id": "64c75b78.f36b24",
894         "type": "success",
895         "name": "success",
896         "xml": "<outcome value='success'>\n",
897         "comments": "",
898         "outputs": 1,
899         "x": 1658.6785583496094,
900         "y": 1614.0357961654663,
901         "z": "6621aeef.bf45",
902         "wires": [
903             [
904                 "7f0db226.60e56c"
905             ]
906         ]
907     },
908     {
909         "id": "fd56af84.b7a68",
910         "type": "success",
911         "name": "success",
912         "xml": "<outcome value='success'>\n",
913         "comments": "",
914         "outputs": 1,
915         "x": 1689.9999999999998,
916         "y": 1289.9999999999998,
917         "z": "6621aeef.bf45",
918         "wires": [
919             [
920                 "7c8df38.541b98c"
921             ]
922         ]
923     },
924     {
925         "id": "131e59c0.7aa77e",
926         "type": "block",
927         "name": "block",
928         "xml": "<block>\n",
929         "atomic": "false",
930         "comments": "",
931         "outputs": 1,
932         "x": 1832.1072213309153,
933         "y": 1566.7500611713954,
934         "z": "6621aeef.bf45",
935         "wires": [
936             []
937         ]
938     },
939     {
940         "id": "7c8df38.541b98c",
941         "type": "block",
942         "name": "block",
943         "xml": "<block>\n",
944         "atomic": "false",
945         "comments": "",
946         "outputs": 1,
947         "x": 1884.28564453125,
948         "y": 1370.0001220703125,
949         "z": "6621aeef.bf45",
950         "wires": [
951             [
952                 "dbf6bad6.fbad2",
953                 "235c0ede.173f92"
954             ]
955         ]
956     },
957     {
958         "id": "4c46f42f.389724",
959         "type": "success",
960         "name": "success",
961         "xml": "<outcome value='success'>\n",
962         "comments": "",
963         "outputs": 1,
964         "x": 2368.5718994140625,
965         "y": 1757.142822265625,
966         "z": "6621aeef.bf45",
967         "wires": [
968             [
969                 "6c93627f.1091d4"
970             ]
971         ]
972     }
973 ]