Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / SUBNET-API_subnet-allocated-notification.json
1 [
2     {
3         "id": "e2caddb4.aa4f3",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 84,
8         "y": 72.68333053588867,
9         "z": "1aeff3d2.0f322c",
10         "wires": [
11             [
12                 "7dfa29c7.e57d58"
13             ]
14         ]
15     },
16     {
17         "id": "cbc97fd8.e73ef",
18         "type": "success",
19         "name": "outcome success",
20         "xml": "<outcome value=\"success\">\n",
21         "outputs": 1,
22         "x": 766.6665115356445,
23         "y": 180.71110725402832,
24         "z": "1aeff3d2.0f322c",
25         "wires": [
26             [
27                 "3bd2d930.bf75f6"
28             ]
29         ]
30     },
31     {
32         "id": "890652c0.be9cf",
33         "type": "other",
34         "name": "outcome Other ",
35         "xml": "<outcome value=\"Other\"> \n\n",
36         "outputs": 1,
37         "x": 693.416633605957,
38         "y": 337.10004234313965,
39         "z": "1aeff3d2.0f322c",
40         "wires": [
41             [
42                 "5f7d48df.f75b98"
43             ]
44         ]
45     },
46     {
47         "id": "d6b0362c.9c5128",
48         "type": "returnSuccess",
49         "name": "return success",
50         "xml": " <return status=\"success\">\n \n",
51         "x": 1165.1664276123047,
52         "y": 248.68336868286133,
53         "z": "1aeff3d2.0f322c",
54         "wires": []
55     },
56     {
57         "id": "1b062aa5.755935",
58         "type": "method",
59         "name": "subnet-allocated-notification",
60         "xml": "<method rpc='subnet-allocated-notification' mode='sync'>\n",
61         "comments": "",
62         "outputs": 1,
63         "x": 653.8667144775391,
64         "y": 72.55000305175781,
65         "z": "1aeff3d2.0f322c",
66         "wires": [
67             [
68                 "ddfcf206.07bf7"
69             ]
70         ]
71     },
72     {
73         "id": "ddfcf206.07bf7",
74         "type": "block",
75         "name": "block",
76         "xml": "<block>",
77         "atomic": "false",
78         "comments": "",
79         "outputs": 1,
80         "x": 91.86669158935547,
81         "y": 149.80000495910645,
82         "z": "1aeff3d2.0f322c",
83         "wires": [
84             [
85                 "64574d3b.bdf2e4",
86                 "1c03d112.43261f"
87             ]
88         ]
89     },
90     {
91         "id": "64574d3b.bdf2e4",
92         "type": "record",
93         "name": "record",
94         "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=\"subnet-allocated-notification\"/>\n<parameter name=\"field3\" value=\"`$eipam-ip-block.request-id`\"/>\n<parameter name=\"field4\" value=\"`$eipam-ip-block.entity-id`\"/>\n<parameter name=\"field5\" value=\"`$eipam-ip-block.ptnii-name`\"/>\n<parameter name=\"field6\" value=\"`$eipam-ip-block.ip-address`\"/>\n<parameter name=\"field7\" value=\"`$eipam-ip-block.prefix-length`\"/>\n<parameter name=\"field8\" value=\"`$eipam-ip-block.status`\"/>\n<parameter name=\"field9\" value=\"`$tmp.key-value`\"/>",
95         "comments": "",
96         "outputs": 1,
97         "x": 263.2595672607422,
98         "y": 163.63769435882568,
99         "z": "1aeff3d2.0f322c",
100         "wires": [
101             []
102         ]
103     },
104     {
105         "id": "8ad2bbea.c97f08",
106         "type": "configure",
107         "name": "configure ncs SNIIR ",
108         "xml": "<configure adaptor=\"com.att.sdnctl.sli.adaptor.ncs.ncsAdaptor\" key=\"SNIIR\" activate=\"true\">\n\t<parameter name=\"input.request-id\" value=\"`$eipam-ip-block.request-id`\" />\n\t<parameter name=\"input.source\" value=\"SDNC\" />\n\t<parameter name=\"input.ptnii-name\" value=\"`$eipam-ip-block.ptnii-name`\" />\n\t<parameter name=\"input.ip-address\" value=\"`$eipam-ip-block.ip-address`\" />\n\t<parameter name=\"input.mask\" value=\"`$eipam-ip-block.prefix-length`\" />",
109         "outputs": 1,
110         "x": 473.41666412353516,
111         "y": 335.6000442504883,
112         "z": "1aeff3d2.0f322c",
113         "wires": [
114             [
115                 "cbc97fd8.e73ef",
116                 "890652c0.be9cf"
117             ]
118         ]
119     },
120     {
121         "id": "3bd2d930.bf75f6",
122         "type": "block",
123         "name": "block",
124         "xml": "<block>",
125         "atomic": "false",
126         "outputs": 1,
127         "x": 918.4999237060547,
128         "y": 181.49443435668945,
129         "z": "1aeff3d2.0f322c",
130         "wires": [
131             [
132                 "2dc51873.fbbc88",
133                 "810874e3.8849c8",
134                 "d6b0362c.9c5128",
135                 "436f433.ffb90bc"
136             ]
137         ]
138     },
139     {
140         "id": "2dc51873.fbbc88",
141         "type": "set",
142         "name": "set: status = Pending Active",
143         "xml": "<set>\n\t<parameter name=\"eipam-ip-block.status\" value=\"PENDING-ACTIVE\" />",
144         "x": 1197.4667205810547,
145         "y": 157.05000686645508,
146         "z": "1aeff3d2.0f322c",
147         "wires": []
148     },
149     {
150         "id": "810874e3.8849c8",
151         "type": "save",
152         "name": "save: status = Pending Active",
153         "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource\" resource=\"eipam-ip-block\">\n\t<parameter name=\"eipam-ip-block.status\" value=\"PENDING-ACTIVE\" />",
154         "outputs": 1,
155         "x": 1206.4666595458984,
156         "y": 203.04997634887695,
157         "z": "1aeff3d2.0f322c",
158         "wires": [
159             []
160         ]
161     },
162     {
163         "id": "54ca6207.0cfb2c",
164         "type": "set",
165         "name": "set: status = ERROR",
166         "xml": "<set>\n\t<parameter name=\"eipam-ip-block.status\" value=\"NCS_IP_SUBNET_INSTALL_ERROR\" />",
167         "comments": "",
168         "x": 1289.967025756836,
169         "y": 507.8610420227051,
170         "z": "1aeff3d2.0f322c",
171         "wires": []
172     },
173     {
174         "id": "344b0bc7.6af414",
175         "type": "save",
176         "name": "save: status = NCS_IP_SUBNET_INSTALL_ERROR",
177         "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource\" resource=\"eipam-ip-block\">\n\t<parameter name=\"eipam-ip-block.status\" value=\"NCS_IP_SUBNET_INSTALL_ERROR\" />",
178         "comments": "",
179         "outputs": 1,
180         "x": 1386.217300415039,
181         "y": 555.8610315322876,
182         "z": "1aeff3d2.0f322c",
183         "wires": [
184             []
185         ]
186     },
187     {
188         "id": "7dfa29c7.e57d58",
189         "type": "service-logic",
190         "name": "SUBNET-API ${project.version}",
191         "module": "SUBNET-API",
192         "version": "${project.version}",
193         "comments": "",
194         "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='SUBNET-API' version='${project.version}'>",
195         "outputs": 1,
196         "x": 321.9500274658203,
197         "y": 73.00001525878906,
198         "z": "1aeff3d2.0f322c",
199         "wires": [
200             [
201                 "1b062aa5.755935"
202             ]
203         ]
204     },
205     {
206         "id": "31daf633.7ba63a",
207         "type": "comment",
208         "name": "ChangeLog",
209         "info": "1.0.0: Release 1504\n2.0.0: Release 1507 - Remove Update Inventory\n9/16: update record node format\nRelease 1710 - update to include VIPR & SRIOV address plans\n12/15/17: update AAI VPE to GENERIC-VNF for ADIod\n\t\tUS 518510 - 291247b-F24748: SDN-CP to update SUBNET-SERVICE DG for vPE orchestration on AIC 3.X",
210         "comments": "",
211         "x": 69.94999694824219,
212         "y": 20,
213         "z": "1aeff3d2.0f322c",
214         "wires": []
215     },
216     {
217         "id": "5f7d48df.f75b98",
218         "type": "execute",
219         "name": "execute EIPAM deletePool",
220         "xml": "<execute plugin=\"com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin\" method=\"deletePool\">\n\n",
221         "comments": "subnet and subnet_keys are deleted in the EIPAMPlugin",
222         "outputs": 1,
223         "x": 908.5182647705078,
224         "y": 334.06732749938965,
225         "z": "1aeff3d2.0f322c",
226         "wires": [
227             [
228                 "14809a55.ca7476",
229                 "8d1a7b1c.633738"
230             ]
231         ]
232     },
233     {
234         "id": "5975d49b.222cac",
235         "type": "set",
236         "name": "set: status = Deleted",
237         "xml": "<set>\n\t<parameter name=\"eipam-ip-block.status\" value=\"DELETED\" />",
238         "comments": "",
239         "x": 1554.518051147461,
240         "y": 269.7616767883301,
241         "z": "1aeff3d2.0f322c",
242         "wires": []
243     },
244     {
245         "id": "14809a55.ca7476",
246         "type": "other",
247         "name": "outcome Other ",
248         "xml": "<outcome value=\"Other\"> \n\n",
249         "outputs": 1,
250         "x": 1149.0736541748047,
251         "y": 389.6505928039551,
252         "z": "1aeff3d2.0f322c",
253         "wires": [
254             [
255                 "e862d426.78f0b8"
256             ]
257         ]
258     },
259     {
260         "id": "e862d426.78f0b8",
261         "type": "block",
262         "name": "block",
263         "xml": "<block>",
264         "atomic": "false",
265         "comments": "",
266         "outputs": 1,
267         "x": 1049.4341278076172,
268         "y": 484.76176834106445,
269         "z": "1aeff3d2.0f322c",
270         "wires": [
271             [
272                 "54ca6207.0cfb2c",
273                 "e8cb542a.45f388",
274                 "72c4110c.bb7ed",
275                 "c52a41c3.18f85"
276             ]
277         ]
278     },
279     {
280         "id": "e8cb542a.45f388",
281         "type": "returnFailure",
282         "name": "return failure ",
283         "xml": "  <return status=\"failure\">\n              <parameter name=\"error-code\" value=\"1000\" />\n              <parameter name=\"error-message\" value=\"IpBlockInstall failure and deletePool failed in EIPAM, need to manually delete\" />\n",
284         "comments": "",
285         "x": 1261.767578125,
286         "y": 698.650580406189,
287         "z": "1aeff3d2.0f322c",
288         "wires": []
289     },
290     {
291         "id": "8d1a7b1c.633738",
292         "type": "success",
293         "name": "outcome success",
294         "xml": "<outcome value=\"success\">\n",
295         "outputs": 1,
296         "x": 1158.2432098388672,
297         "y": 336.79436111450195,
298         "z": "1aeff3d2.0f322c",
299         "wires": [
300             [
301                 "62fdd070.1af19"
302             ]
303         ]
304     },
305     {
306         "id": "9b97f6d.5105208",
307         "type": "returnFailure",
308         "name": "return failure ",
309         "xml": "  <return status=\"failure\">\n              <parameter name=\"error-code\" value=\"1000\" />\n              <parameter name=\"error-message\" value=\"IpBlockInstall failure and deletePool deleted in EIPAM\" />\n",
310         "comments": "",
311         "x": 1529.1320037841797,
312         "y": 415.0164680480957,
313         "z": "1aeff3d2.0f322c",
314         "wires": []
315     },
316     {
317         "id": "62fdd070.1af19",
318         "type": "block",
319         "name": "block",
320         "xml": "<block>",
321         "atomic": "false",
322         "outputs": 1,
323         "x": 1355.348300933838,
324         "y": 336.6303253173828,
325         "z": "1aeff3d2.0f322c",
326         "wires": [
327             [
328                 "5975d49b.222cac",
329                 "9b97f6d.5105208"
330             ]
331         ]
332     },
333     {
334         "id": "84a4163.f8d0ee8",
335         "type": "save",
336         "name": "Update AAI: NCS_IP_SUBNET_INSTALL_ERROR, PREPROV",
337         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"generic-vnf\" key=\"generic-vnf.vnf-id = $tmp.vpe-pool-row.vpe-id\" pfx=\"vpe-after\">\n\t<parameter name=\"operational-status\" value=\"NCS_IP_SUBNET_INSTALL_ERROR\" />\n\t<parameter name=\"summary-status\" value=\"`$aai-summary-status-message`\" />\n\t<parameter name=\"prov-status\" value=\"PREPROV\" />\n",
338         "comments": "",
339         "outputs": 1,
340         "x": 1762.0000228881836,
341         "y": 365.35004234313965,
342         "z": "1aeff3d2.0f322c",
343         "wires": [
344             []
345         ]
346     },
347     {
348         "id": "c52a41c3.18f85",
349         "type": "save",
350         "name": "Update AAI: NCS_IP_SUBNET_INSTALL_ERROR, PREPROV",
351         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"generic-vnf\" key=\"generic-vnf.vnf-id = $tmp.vpe-pool.vpe-id\" pfx=\"vpe-after\">\n\t<parameter name=\"operational-status\" value=\"NCS_IP_SUBNET_INSTALL_ERROR\" />\n\t<parameter name=\"summary-status\" value=\"`$aai-summary-status-message`\" />\n\t<parameter name=\"prov-status\" value=\"PREPROV\" />\n",
352         "comments": "",
353         "outputs": 1,
354         "x": 1416.166732788086,
355         "y": 649.6833076477051,
356         "z": "1aeff3d2.0f322c",
357         "wires": [
358             []
359         ]
360     },
361     {
362         "id": "6fe30b95.3674d4",
363         "type": "execute",
364         "name": "execute: set aai-summary-status-message",
365         "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' method='setStatusMethod' >\n<parameter name=\"key1\" value=\"IpBlockInstall failure and pool deleted in EIPAM.\"/>\n",
366         "comments": "",
367         "outputs": 1,
368         "x": 1625.3333587646484,
369         "y": 319.6833381652832,
370         "z": "1aeff3d2.0f322c",
371         "wires": [
372             []
373         ]
374     },
375     {
376         "id": "aeadd804.b843a8",
377         "type": "execute",
378         "name": "execute: set aai-summary-status-message",
379         "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' method='setStatusMethod' >\n<parameter name=\"key1\" value=\"IpBlockInstall failure and pool deletion failed in EIPAM, need to manually delete.\"/>",
380         "comments": "",
381         "outputs": 1,
382         "x": 1355.3333587646484,
383         "y": 603.6833076477051,
384         "z": "1aeff3d2.0f322c",
385         "wires": [
386             []
387         ]
388     },
389     {
390         "id": "1c03d112.43261f",
391         "type": "switchNode",
392         "name": "switch: ptnii_name",
393         "xml": "<switch test=\"`$eipam-ip-block.ptnii-name`\">",
394         "comments": "Need to know which ipv version to get the plan name from the network-model.",
395         "outputs": 1,
396         "x": 116.67860412597656,
397         "y": 223.75476360321045,
398         "z": "1aeff3d2.0f322c",
399         "wires": [
400             [
401                 "51cbbf6e.bce95",
402                 "2171ca6e.b25e66"
403             ]
404         ]
405     },
406     {
407         "id": "2171ca6e.b25e66",
408         "type": "other",
409         "name": "Null",
410         "xml": "<outcome value=''>",
411         "comments": "If no ptnii-name, check if VIPR or SRIOV",
412         "outputs": 1,
413         "x": 201.67856979370117,
414         "y": 895.0047702789307,
415         "z": "1aeff3d2.0f322c",
416         "wires": [
417             [
418                 "909ee043.2df28"
419             ]
420         ]
421     },
422     {
423         "id": "51cbbf6e.bce95",
424         "type": "other",
425         "name": "Other",
426         "xml": "<outcome value='Other'>",
427         "comments": "If there's ptnii-name, then it's Gamma service",
428         "outputs": 1,
429         "x": 152.9285774230957,
430         "y": 282.50476455688477,
431         "z": "1aeff3d2.0f322c",
432         "wires": [
433             [
434                 "8d875ca6.a136"
435             ]
436         ]
437     },
438     {
439         "id": "909ee043.2df28",
440         "type": "execute",
441         "name": "execute plan-name startsWith AIC",
442         "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils\" method=\"startsWith\" emitsOutcome='true' >\n<parameter name=\"source\" value=\"`toUpperCase($eipam-ip-block.plan-name)`\" />\n<parameter name=\"target\" value=\"AIC_\" />\n\n",
443         "comments": "",
444         "outputs": 1,
445         "x": 411.6785659790039,
446         "y": 896.2547702789307,
447         "z": "1aeff3d2.0f322c",
448         "wires": [
449             [
450                 "d3d5f0b0.4a664",
451                 "86c22fba.8ed29"
452             ]
453         ]
454     },
455     {
456         "id": "86c22fba.8ed29",
457         "type": "outcomeTrue",
458         "name": "true",
459         "xml": "<outcome value='true'>\n",
460         "comments": "",
461         "outputs": 1,
462         "x": 624.1785736083984,
463         "y": 940.004771232605,
464         "z": "1aeff3d2.0f322c",
465         "wires": [
466             [
467                 "131053a4.d1dffc"
468             ]
469         ]
470     },
471     {
472         "id": "d3d5f0b0.4a664",
473         "type": "outcomeFalse",
474         "name": "false",
475         "xml": "<outcome value='false'>\n",
476         "comments": "",
477         "outputs": 1,
478         "x": 625.4285736083984,
479         "y": 897.254771232605,
480         "z": "1aeff3d2.0f322c",
481         "wires": [
482             [
483                 "9725cb51.702688"
484             ]
485         ]
486     },
487     {
488         "id": "131053a4.d1dffc",
489         "type": "block",
490         "name": "block : atomic",
491         "xml": "<block atomic='true'>",
492         "atomic": "true",
493         "comments": "",
494         "outputs": 1,
495         "x": 771.6785659790039,
496         "y": 941.2547569274902,
497         "z": "1aeff3d2.0f322c",
498         "wires": [
499             [
500                 "9659a3ea.e5ef3",
501                 "3ffd19bb.4f4e36",
502                 "f1fc5eba.89bce",
503                 "c77e4701.89df28",
504                 "cf6722db.8b927",
505                 "33a7298c.a1e5c6",
506                 "5fb42e09.35366",
507                 "de60f20e.7fe8c",
508                 "9b32befa.3ad65",
509                 "7437f146.91864",
510                 "1d533385.91dbac",
511                 "ed912931.696a38",
512                 "38409251.785ace",
513                 "e60d143a.a53bf8",
514                 "eccae1c1.cfd61",
515                 "3b0f0963.0e3606",
516                 "605747f6.c15988",
517                 "f634ef3e.b5b91",
518                 "57bed018.e09e4",
519                 "325c38e8.bf4558",
520                 "22f00d11.312d02",
521                 "75fff231.25968c",
522                 "d916c321.529dc"
523             ]
524         ]
525     },
526     {
527         "id": "9725cb51.702688",
528         "type": "returnFailure",
529         "name": "return failure ",
530         "xml": "  <return status=\"failure\">\n              <parameter name=\"error-code\" value=\"500\" />\n              <parameter name=\"error-message\" value=\"Unknown Address Plan - not supported!\" />\n",
531         "comments": "",
532         "x": 766.6785659790039,
533         "y": 898.7547569274902,
534         "z": "1aeff3d2.0f322c",
535         "wires": []
536     },
537     {
538         "id": "9659a3ea.e5ef3",
539         "type": "get-resource",
540         "name": "get-resource - validate pool exists already",
541         "xml": "<get-resource\n        plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n        resource='SQL'\n        key=\"SELECT * FROM EIPAM_IP_POOLS where plan_name = $eipam-ip-block.plan-name and level = 2 and key_value = $tmp.level2-key-value ;\"\n        pfx='tmp.eipam-pool-row'>\n\n",
542         "comments": "",
543         "outputs": 1,
544         "x": 1032.928581237793,
545         "y": 942.5047702789307,
546         "z": "1aeff3d2.0f322c",
547         "wires": [
548             [
549                 "34771a54.041056",
550                 "b267fd26.f533b"
551             ]
552         ]
553     },
554     {
555         "id": "b267fd26.f533b",
556         "type": "failure",
557         "name": "failure",
558         "xml": "<outcome value='failure'>\n",
559         "comments": "",
560         "outputs": 1,
561         "x": 1299.2904014587402,
562         "y": 895.2547702789307,
563         "z": "1aeff3d2.0f322c",
564         "wires": [
565             [
566                 "6b0324a2.349bec"
567             ]
568         ]
569     },
570     {
571         "id": "34771a54.041056",
572         "type": "not-found",
573         "name": "not-found",
574         "xml": "<outcome value=\"not-found\">",
575         "comments": "",
576         "outputs": 1,
577         "x": 1306.5405235290527,
578         "y": 970.504771232605,
579         "z": "1aeff3d2.0f322c",
580         "wires": [
581             [
582                 "83c66d87.67bd"
583             ]
584         ]
585     },
586     {
587         "id": "cbbdd8aa.7d2a38",
588         "type": "record",
589         "name": "record",
590         "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=\"subnet-allocated-notification\"/>\n<parameter name=\"field3\" value=\"`$eipam-ip-block.request-id`\"/>\n<parameter name=\"field4\" value=\"`$eipam-ip-block.entity-id`\"/>\n<parameter name=\"field5\" value=\"`$eipam-ip-block.ptnii-name`\"/>\n<parameter name=\"field6\" value=\"`$eipam-ip-block.ip-address`\"/>\n<parameter name=\"field7\" value=\"`$eipam-ip-block.prefix-length`\"/>\n<parameter name=\"field8\" value=\"`$eipam-ip-block.status`\"/>\n<parameter name=\"field9\" value=\"This record is not found in DB!\"/>",
591         "comments": "",
592         "outputs": 1,
593         "x": 1661.6785888671875,
594         "y": 941.254771232605,
595         "z": "1aeff3d2.0f322c",
596         "wires": [
597             []
598         ]
599     },
600     {
601         "id": "a891b62.8fdbc48",
602         "type": "returnFailure",
603         "name": "return failure ",
604         "xml": "  <return status=\"failure\">\n  \t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n  \t\t<parameter name=\"error-code\" value=\"500\" />\n              <parameter name=\"error-message\" value=\"Unknown EIPAM pool - not found in DB!\" />\n",
605         "comments": "",
606         "x": 1680.4285926818848,
607         "y": 980.004771232605,
608         "z": "1aeff3d2.0f322c",
609         "wires": []
610     },
611     {
612         "id": "83c66d87.67bd",
613         "type": "block",
614         "name": "block : atomic",
615         "xml": "<block atomic='true'>",
616         "atomic": "true",
617         "comments": "",
618         "outputs": 1,
619         "x": 1484.1785888671875,
620         "y": 971.254771232605,
621         "z": "1aeff3d2.0f322c",
622         "wires": [
623             [
624                 "cbbdd8aa.7d2a38",
625                 "a891b62.8fdbc48"
626             ]
627         ]
628     },
629     {
630         "id": "b4649f8b.b431",
631         "type": "record",
632         "name": "record",
633         "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=\"subnet-allocated-notification\"/>\n<parameter name=\"field3\" value=\"`$eipam-ip-block.request-id`\"/>\n<parameter name=\"field4\" value=\"`$eipam-ip-block.entity-id`\"/>\n<parameter name=\"field5\" value=\"`$eipam-ip-block.ptnii-name`\"/>\n<parameter name=\"field6\" value=\"`$eipam-ip-block.ip-address`\"/>\n<parameter name=\"field7\" value=\"`$eipam-ip-block.prefix-length`\"/>\n<parameter name=\"field8\" value=\"`$eipam-ip-block.status`\"/>\n<parameter name=\"field9\" value=\"Failed to find this record in DB!\"/>\n\n",
634         "comments": "",
635         "outputs": 1,
636         "x": 1661.6785888671875,
637         "y": 862.5047731399536,
638         "z": "1aeff3d2.0f322c",
639         "wires": [
640             []
641         ]
642     },
643     {
644         "id": "4d6d74bf.b02c3c",
645         "type": "returnFailure",
646         "name": "return failure ",
647         "xml": "  <return status=\"failure\">\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n              <parameter name=\"error-code\" value=\"500\" />\n              <parameter name=\"error-message\" value=\"Unknown EIPAM pool - not found in DB!\" />\n",
648         "comments": "",
649         "x": 1680.4285926818848,
650         "y": 901.2547731399536,
651         "z": "1aeff3d2.0f322c",
652         "wires": []
653     },
654     {
655         "id": "6b0324a2.349bec",
656         "type": "block",
657         "name": "block : atomic",
658         "xml": "<block atomic='true'>",
659         "atomic": "true",
660         "comments": "",
661         "outputs": 1,
662         "x": 1484.1785888671875,
663         "y": 892.5047731399536,
664         "z": "1aeff3d2.0f322c",
665         "wires": [
666             [
667                 "b4649f8b.b431",
668                 "4d6d74bf.b02c3c"
669             ]
670         ]
671     },
672     {
673         "id": "3ffd19bb.4f4e36",
674         "type": "get-resource",
675         "name": "get-resource - validate if initial level 2 subnet exists",
676         "xml": "<get-resource\n        plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n        resource='SQL'\n        key=\"SELECT * from EIPAM_IP_SUBNETS s, EIPAM_IP_SUBNET_KEYS k WHERE s.plan_name = $eipam-ip-block.plan-name and s.entity_id = k.entity_id and k.level = 2 and k.key_value = $tmp.level2-key-value and s.address_family = $tmp.version ; \"\n        pfx='pfx.eipam-initial-subnet'>\n\n",
677         "comments": "initial subnet should exists",
678         "outputs": 1,
679         "x": 1059.1786041259766,
680         "y": 1007.5047760009766,
681         "z": "1aeff3d2.0f322c",
682         "wires": [
683             [
684                 "ce6bcabe.97f718",
685                 "421560eb.81bf2"
686             ]
687         ]
688     },
689     {
690         "id": "bb5d9c34.1d4fc",
691         "type": "returnFailure",
692         "name": "return failure",
693         "xml": "<return status=\"failure\">\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Query to DB table EIPAM_IP_SUBNET_KEYS and EIPAM_IP_SUBNETS failed.\" />\n\t",
694         "comments": "",
695         "x": 1481.4285430908203,
696         "y": 1005.7547626495361,
697         "z": "1aeff3d2.0f322c",
698         "wires": []
699     },
700     {
701         "id": "ce6bcabe.97f718",
702         "type": "failure",
703         "name": "failure",
704         "xml": "<outcome value='failure'>\n",
705         "comments": "",
706         "outputs": 1,
707         "x": 1329.7904052734375,
708         "y": 1010.2547721862793,
709         "z": "1aeff3d2.0f322c",
710         "wires": [
711             [
712                 "bb5d9c34.1d4fc"
713             ]
714         ]
715     },
716     {
717         "id": "421560eb.81bf2",
718         "type": "not-found",
719         "name": "not-found",
720         "xml": "<outcome value=\"not-found\">",
721         "comments": "",
722         "outputs": 1,
723         "x": 1330.040470123291,
724         "y": 1044.7547664642334,
725         "z": "1aeff3d2.0f322c",
726         "wires": [
727             [
728                 "562b2139.070f1"
729             ]
730         ]
731     },
732     {
733         "id": "8994e422.3636c8",
734         "type": "record",
735         "name": "record",
736         "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=\"subnet-allocated-notification\"/>\n<parameter name=\"field3\" value=\"`$eipam-ip-block.request-id`\"/>\n<parameter name=\"field4\" value=\"`$eipam-ip-block.entity-id`\"/>\n<parameter name=\"field5\" value=\"`$eipam-ip-block.ptnii-name`\"/>\n<parameter name=\"field6\" value=\"`$eipam-ip-block.ip-address`\"/>\n<parameter name=\"field7\" value=\"`$eipam-ip-block.prefix-length`\"/>\n<parameter name=\"field8\" value=\"`$eipam-ip-block.status`\"/>\n<parameter name=\"field9\" value=\"`$tmp.key-value`\"/>",
737         "comments": "",
738         "outputs": 1,
739         "x": 2332.928565979004,
740         "y": 943.7547569274902,
741         "z": "1aeff3d2.0f322c",
742         "wires": [
743             []
744         ]
745     },
746     {
747         "id": "c77e4701.89df28",
748         "type": "save",
749         "name": "insert new EIPAM_IP_SUBNETS for level 2",
750         "xml": "<save\n        plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n        resource='SQL'\n        key=\"INSERT EIPAM_IP_SUBNETS\n             SET\n             entity_id = $eipam-ip-block.entity-id ,\n             service_type = $pfx.eipam-initial-subnet.service-type ,\n             ip_address = $eipam-ip-block.ip-prefix ,\n             prefix_length = $eipam-ip-block.mask ,\n             plan_name = $eipam-ip-block.plan-name ,\n             status = 'PENDING_ACTIVE' ,\n             pool_id = $pfx.eipam-initial-subnet.pool-id ,\n             address_family = $pfx.eipam-initial-subnet.address-family ,\n             network_id = $pfx.eipam-initial-subnet.network-id ; \"\n    force='true'\n        pfx='pfx.eipam-new-subnet'>\n",
751         "comments": "",
752         "outputs": 1,
753         "x": 1044.178581237793,
754         "y": 1271.2548027038574,
755         "z": "1aeff3d2.0f322c",
756         "wires": [
757             [
758                 "b8b710a5.faa7c",
759                 "c385bfae.d3b5e"
760             ]
761         ]
762     },
763     {
764         "id": "cf6722db.8b927",
765         "type": "save",
766         "name": "insert EIPAM_IP_SUBNET_KEYS for level 1",
767         "xml": "<save\n        plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n        resource='SQL'\n        key=\"INSERT EIPAM_IP_SUBNET_KEYS\n             SET\n             entity_id = $eipam-ip-block.entity-id ,\n             key_name = $tmp.level1-key-name ,\n             key_value = $tmp.level1-key-value ,\n             level = 1 ; \"\n    force='true'\n        pfx='pfx.eipam-subnet-level1'>\n",
768         "comments": "",
769         "outputs": 1,
770         "x": 1059.1783981323242,
771         "y": 1313.2547454833984,
772         "z": "1aeff3d2.0f322c",
773         "wires": [
774             [
775                 "c385bfae.d3b5e",
776                 "160a99ef.650b86"
777             ]
778         ]
779     },
780     {
781         "id": "33a7298c.a1e5c6",
782         "type": "save",
783         "name": "insert EIPAM_IP_SUBNET_KEYS for level 2",
784         "xml": "<save\n        plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n        resource='SQL'\n        key=\"INSERT EIPAM_IP_SUBNET_KEYS\n             SET\n             entity_id = $eipam-ip-block.entity-id ,\n             key_name = $tmp.level2-key-name ,\n             key_value = $tmp.level2-key-value ,\n             level = 2 ; \"\n    force='true'\n        pfx='pfx.eipam-subnet-level2'>\n",
785         "comments": "",
786         "outputs": 1,
787         "x": 1058.1785202026367,
788         "y": 1359.2547760009766,
789         "z": "1aeff3d2.0f322c",
790         "wires": [
791             [
792                 "c385bfae.d3b5e",
793                 "160a99ef.650b86"
794             ]
795         ]
796     },
797     {
798         "id": "b8b710a5.faa7c",
799         "type": "failure",
800         "name": "failure",
801         "xml": "<outcome value='failure'>",
802         "outputs": 1,
803         "x": 1379.4619102478027,
804         "y": 1284.754801750183,
805         "z": "1aeff3d2.0f322c",
806         "wires": [
807             [
808                 "23e6f9d8.6f5356"
809             ]
810         ]
811     },
812     {
813         "id": "c385bfae.d3b5e",
814         "type": "success",
815         "name": "success",
816         "xml": "<outcome value='success'>\n",
817         "comments": "",
818         "outputs": 1,
819         "x": 1380.3048629760742,
820         "y": 1322.4049453735352,
821         "z": "1aeff3d2.0f322c",
822         "wires": [
823             []
824         ]
825     },
826     {
827         "id": "160a99ef.650b86",
828         "type": "failure",
829         "name": "failure",
830         "xml": "<outcome value='failure'>",
831         "outputs": 1,
832         "x": 1381.0180625915527,
833         "y": 1358.2548027038574,
834         "z": "1aeff3d2.0f322c",
835         "wires": [
836             [
837                 "201429d8.95bf06"
838             ]
839         ]
840     },
841     {
842         "id": "f1fc5eba.89bce",
843         "type": "get-resource",
844         "name": "get-resource - validate if subnet with same ip exists",
845         "xml": "<get-resource\n        plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n        resource='SQL'\n        key=\"SELECT * from EIPAM_IP_SUBNETS s WHERE s.plan_name = $eipam-ip-block.plan-name and s.entity_id = $eipam-ip-block.entity-id and s.ip_address = $eipam-ip-block.ip-address ; \"\n        pfx='pfx.eipam-subnet-with-same-ip'>\n\n",
846         "comments": "check if new subnet already exists, possibly from previous attempt.",
847         "outputs": 1,
848         "x": 1062.928596496582,
849         "y": 1083.754774093628,
850         "z": "1aeff3d2.0f322c",
851         "wires": [
852             [
853                 "ba1f099b.3a0878",
854                 "bfe13ef7.e3f2"
855             ]
856         ]
857     },
858     {
859         "id": "725e871e.2731f8",
860         "type": "returnFailure",
861         "name": "return failure",
862         "xml": "<return status=\"failure\">\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Query to DB table EIPAM_IP_SUBNET_KEYS and EIPAM_IP_SUBNETS failed.\" />\n\t",
863         "comments": "",
864         "x": 1486.4286613464355,
865         "y": 1082.0047636032104,
866         "z": "1aeff3d2.0f322c",
867         "wires": []
868     },
869     {
870         "id": "ba1f099b.3a0878",
871         "type": "failure",
872         "name": "failure",
873         "xml": "<outcome value='failure'>\n",
874         "comments": "",
875         "outputs": 1,
876         "x": 1334.7905235290527,
877         "y": 1086.5047731399536,
878         "z": "1aeff3d2.0f322c",
879         "wires": [
880             [
881                 "725e871e.2731f8"
882             ]
883         ]
884     },
885     {
886         "id": "bfe13ef7.e3f2",
887         "type": "not-found",
888         "name": "not-found",
889         "xml": "<outcome value=\"not-found\">",
890         "comments": "",
891         "outputs": 1,
892         "x": 1346.2906188964844,
893         "y": 1128.5047845840454,
894         "z": "1aeff3d2.0f322c",
895         "wires": [
896             []
897         ]
898     },
899     {
900         "id": "dcf3f5f7.409df8",
901         "type": "not-found",
902         "name": "not found",
903         "xml": "<outcome value='not-found'>\n",
904         "comments": "",
905         "outputs": 1,
906         "x": 1376.6786499023438,
907         "y": 1427.504789352417,
908         "z": "1aeff3d2.0f322c",
909         "wires": [
910             [
911                 "c4a8d945.3c0a58"
912             ]
913         ]
914     },
915     {
916         "id": "c4a8d945.3c0a58",
917         "type": "returnFailure",
918         "name": "return failure",
919         "xml": "<return status='failure'>\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"404\" />\n\t<parameter name=\"error-message\" value=\"'l3-network with network-id=' + $pfx.eipam-initial-subnet.network-id + ' And subnet-id=' + $eipam-ip-block.entity-id + ' is Not found in AnAI'\" />",
920         "comments": "",
921         "x": 1539.873046875,
922         "y": 1427.6160106658936,
923         "z": "1aeff3d2.0f322c",
924         "wires": []
925     },
926     {
927         "id": "5fb42e09.35366",
928         "type": "get-resource",
929         "name": "get AnAI - l3-network subnet by network-id and subnet-id",
930         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $pfx.eipam-initial-subnet.network-id\n\t\t\tAND subnet.subnet-id = $eipam-ip-block.entity-id\"\n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.aai-initial-subnet\">\n",
931         "comments": "",
932         "outputs": 1,
933         "x": 1080.1507034301758,
934         "y": 1435.739423751831,
935         "z": "1aeff3d2.0f322c",
936         "wires": [
937             [
938                 "dcf3f5f7.409df8",
939                 "6b48a955.5b2088"
940             ]
941         ]
942     },
943     {
944         "id": "6b48a955.5b2088",
945         "type": "failure",
946         "name": "failure",
947         "xml": "<outcome value='failure'>\n",
948         "comments": "",
949         "outputs": 1,
950         "x": 1369.4007568359375,
951         "y": 1465.989393234253,
952         "z": "1aeff3d2.0f322c",
953         "wires": [
954             [
955                 "1c6d8420.6c07fc"
956             ]
957         ]
958     },
959     {
960         "id": "1c6d8420.6c07fc",
961         "type": "returnFailure",
962         "name": "return failure",
963         "xml": "<return status='failure'>\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"'Error retrieving l3-network with network-id=' + $pfx.eipam-initial-subnet.network-id + ' And subnet-id=' + $eipam-ip-block.entity-id  + ' from AnAI'\" />",
964         "comments": "",
965         "x": 1521.5118408203125,
966         "y": 1466.2116222381592,
967         "z": "1aeff3d2.0f322c",
968         "wires": []
969     },
970     {
971         "id": "562b2139.070f1",
972         "type": "returnFailure",
973         "name": "return failure",
974         "xml": "<return status=\"failure\">\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Initial subnet not found, cannot auto extend.\" />\n\t",
975         "comments": "",
976         "x": 1484.1785354614258,
977         "y": 1043.7547645568848,
978         "z": "1aeff3d2.0f322c",
979         "wires": []
980     },
981     {
982         "id": "23e6f9d8.6f5356",
983         "type": "returnFailure",
984         "name": "return failure",
985         "xml": "<return status=\"failure\">\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Insert to DB table EIPAM_IP_SUBNETS failed.\" />\n\t",
986         "comments": "",
987         "x": 1516.678565979004,
988         "y": 1287.504783630371,
989         "z": "1aeff3d2.0f322c",
990         "wires": []
991     },
992     {
993         "id": "201429d8.95bf06",
994         "type": "returnFailure",
995         "name": "return failure",
996         "xml": "<return status=\"failure\">\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Insert to DB table EIPAM_IP_SUBNET_KEYS failed.\" />\n\t",
997         "comments": "",
998         "x": 1520.428565979004,
999         "y": 1356.254783630371,
1000         "z": "1aeff3d2.0f322c",
1001         "wires": []
1002     },
1003     {
1004         "id": "8d83ed60.0715f",
1005         "type": "failure",
1006         "name": "failure",
1007         "xml": "<outcome value='failure'>\n",
1008         "comments": "",
1009         "outputs": 1,
1010         "x": 1250.018955230713,
1011         "y": 1851.4807324409485,
1012         "z": "1aeff3d2.0f322c",
1013         "wires": [
1014             [
1015                 "e81fdab.a073e28"
1016             ]
1017         ]
1018     },
1019     {
1020         "id": "689d1c14.7b79e4",
1021         "type": "not-found",
1022         "name": "not-found",
1023         "xml": "<outcome value='not-found'>\n",
1024         "comments": "",
1025         "outputs": 1,
1026         "x": 1258.742099761963,
1027         "y": 1889.123920917511,
1028         "z": "1aeff3d2.0f322c",
1029         "wires": [
1030             []
1031         ]
1032     },
1033     {
1034         "id": "de60f20e.7fe8c",
1035         "type": "save",
1036         "name": "save AnAI - l3-network.subnets",
1037         "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $pfx.eipam-initial-subnet.network-id \n\t\t\tAND subnet.subnet-id = $eipam-ip-block.entity-id\" >\n<!-- Create l3-network object -->\n<parameter name=\"network-id\" value=\"`$pfx.eipam-initial-subnet.network-id`\" />\n<parameter name=\"subnet-id\" value=\"`$eipam-ip-block.entity-id`\" />\n<parameter name=\"subnet-name\" value=\"`$tmp.l3-network.subnet.subnet-name`\" />\n<parameter name=\"gateway-address\" value=\"`$tmp.return.generate.gateway-address`\" />\n<parameter name=\"network-start-address\" value=\"`$eipam-ip-block.ip-prefix`\" />\n<parameter name=\"cidr-mask\" value=\"`$eipam-ip-block.prefix-length`\" />\n<parameter name=\"ip-version\" value=\"`$tmp.version`\" />\n<parameter name=\"dhcp-start\" value=\"`$tmp.l3-network.subnet.dhcp-start`\" />\n<parameter name=\"dhcp-end\" value=\"`$tmp.l3-network.subnet.dhcp-end`\" />\n<parameter name=\"dhcp-enabled\" value=\"`$tmp.l3-network.subnet.dhcp-enabled`\" />\n<parameter name=\"orchestration-status\" value=\"PendingCreate\" />",
1038         "comments": "",
1039         "outputs": 1,
1040         "x": 990.539966583252,
1041         "y": 1868.5165219306946,
1042         "z": "1aeff3d2.0f322c",
1043         "wires": [
1044             [
1045                 "689d1c14.7b79e4",
1046                 "8d83ed60.0715f"
1047             ]
1048         ]
1049     },
1050     {
1051         "id": "26fc5e9d.ee8832",
1052         "type": "call",
1053         "name": "call GENERIC-RESOURCE-API:create-l3-subnet",
1054         "xml": "<call module='GENERIC-RESOURCE-API' rpc='create-l3-subnet' mode='sync' >\n",
1055         "comments": "tmp.level should be set to 1",
1056         "outputs": 1,
1057         "x": 1787.928581237793,
1058         "y": 1463.7548065185547,
1059         "z": "1aeff3d2.0f322c",
1060         "wires": [
1061             []
1062         ]
1063     },
1064     {
1065         "id": "32ccea0f.159e96",
1066         "type": "comment",
1067         "name": "Get service_type from initial subnet",
1068         "info": "",
1069         "comments": "",
1070         "x": 772.9285659790039,
1071         "y": 1053.7547569274902,
1072         "z": "1aeff3d2.0f322c",
1073         "wires": []
1074     },
1075     {
1076         "id": "49a09274.40efdc",
1077         "type": "set",
1078         "name": "set dhcp data",
1079         "xml": "<set>\n<parameter name='tmp.l3-network.subnet.dhcp-enabled' value='true' />\n<parameter name='tmp.l3-network.subnet.dhcp-start' value='`$tmp.return.generate.dhcp-start-address`' />\n<parameter name='tmp.l3-network.subnet.dhcp-end' value='`$tmp.return.generate.dhcp-end-address`' />\n\n\n",
1080         "comments": "",
1081         "x": 1646.6786155700684,
1082         "y": 1767.5048027038574,
1083         "z": "1aeff3d2.0f322c",
1084         "wires": []
1085     },
1086     {
1087         "id": "9b32befa.3ad65",
1088         "type": "execute",
1089         "name": "execute getSubnetAddresses",
1090         "xml": "<execute plugin=\"com.att.sdnctl.sli.plugin.ipAddressTools.IpAddressTool\" method=\"getSubnetAddresses\">\n\t<parameter name=\"ipAddress\" value=\"`$eipam-ip-block.ip-prefix`\" />\n\t<parameter name=\"ipVersion\" value=\"`tmp.version`\" />\n\t<parameter name=\"subnet\" value=\"`$eipam-ip-block.prefix-length`\" />\n\t<parameter name=\"ctxGateway\" value=\"tmp.return.generate.gateway-address\" />\n\t<parameter name=\"ctxDhcpStart\" value=\"tmp.return.generate.dhcp-start-address\" />\n\t<parameter name=\"ctxDhcpEnd\" value=\"tmp.return.generate.dhcp-end-address\" />\n\n",
1091         "comments": "",
1092         "outputs": 1,
1093         "x": 999.5357971191406,
1094         "y": 1695.7905054092407,
1095         "z": "1aeff3d2.0f322c",
1096         "wires": [
1097             [
1098                 "f44d5fe7.afc4f"
1099             ]
1100         ]
1101     },
1102     {
1103         "id": "ed912931.696a38",
1104         "type": "switchNode",
1105         "name": "switch tmp.aai-initial-subnet.dhcp-enabled",
1106         "xml": "<switch test='`$tmp.aai-initial-subnet.dhcp-enabled`'>\n",
1107         "comments": "",
1108         "outputs": 1,
1109         "x": 1031.1868209838867,
1110         "y": 1758.869896888733,
1111         "z": "1aeff3d2.0f322c",
1112         "wires": [
1113             [
1114                 "3cab0bd5.728684",
1115                 "3cc191c.8042f6e"
1116             ]
1117         ]
1118     },
1119     {
1120         "id": "3cab0bd5.728684",
1121         "type": "other",
1122         "name": "Y",
1123         "xml": "<outcome value='Y'>\n",
1124         "comments": "",
1125         "outputs": 1,
1126         "x": 1286.9008502960205,
1127         "y": 1768.8698720932007,
1128         "z": "1aeff3d2.0f322c",
1129         "wires": [
1130             [
1131                 "266fb95c.68e316"
1132             ]
1133         ]
1134     },
1135     {
1136         "id": "266fb95c.68e316",
1137         "type": "block",
1138         "name": "block : atomic",
1139         "xml": "<block atomic=\"true\">",
1140         "atomic": "true",
1141         "outputs": 1,
1142         "x": 1447.3770866394043,
1143         "y": 1768.8698587417603,
1144         "z": "1aeff3d2.0f322c",
1145         "wires": [
1146             [
1147                 "49a09274.40efdc"
1148             ]
1149         ]
1150     },
1151     {
1152         "id": "f44d5fe7.afc4f",
1153         "type": "failure",
1154         "name": "failure",
1155         "xml": "<outcome value='failure'>\n",
1156         "comments": "",
1157         "outputs": 1,
1158         "x": 1231.451187133789,
1159         "y": 1695.5629892349243,
1160         "z": "1aeff3d2.0f322c",
1161         "wires": [
1162             [
1163                 "9f2e9d98.83945"
1164             ]
1165         ]
1166     },
1167     {
1168         "id": "9f2e9d98.83945",
1169         "type": "returnFailure",
1170         "name": "return failure",
1171         "xml": "<return status='failure'>\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Failed to generate gateway addresses using IpAddressTools\" />",
1172         "comments": "",
1173         "x": 1403.1177368164062,
1174         "y": 1695.5629892349243,
1175         "z": "1aeff3d2.0f322c",
1176         "wires": []
1177     },
1178     {
1179         "id": "14d86ca2.7154c3",
1180         "type": "set",
1181         "name": "set l3network.subnet",
1182         "xml": "<set>\n<parameter name='tmp.l3-network.subnet.subnet-name' value=\"`$aai.l3-network.network-name + '_S' + $aai.l3-network.subnets.subnet_length`\" />\n",
1183         "comments": "",
1184         "x": 1393.3296279907227,
1185         "y": 1578.869887828827,
1186         "z": "1aeff3d2.0f322c",
1187         "wires": []
1188     },
1189     {
1190         "id": "3cc191c.8042f6e",
1191         "type": "other",
1192         "name": "N",
1193         "xml": "<outcome value='N'>\n",
1194         "comments": "",
1195         "outputs": 1,
1196         "x": 1289.4406433105469,
1197         "y": 1804.584153175354,
1198         "z": "1aeff3d2.0f322c",
1199         "wires": [
1200             [
1201                 "68a37c0d.2a6604"
1202             ]
1203         ]
1204     },
1205     {
1206         "id": "71a33119.8d0e1",
1207         "type": "set",
1208         "name": "set dhcp data",
1209         "xml": "<set>\n<parameter name='tmp.l3-network.subnet.dhcp-enabled' value='false' />\n<parameter name='tmp.l3-network.subnet.dhcp-start' value='' />\n<parameter name='tmp.l3-network.subnet.dhcp-end' value='' />\n\n\n",
1210         "comments": "",
1211         "x": 1649.4406433105469,
1212         "y": 1803.1555948257446,
1213         "z": "1aeff3d2.0f322c",
1214         "wires": []
1215     },
1216     {
1217         "id": "68a37c0d.2a6604",
1218         "type": "block",
1219         "name": "block : atomic",
1220         "xml": "<block atomic=\"true\">",
1221         "atomic": "true",
1222         "outputs": 1,
1223         "x": 1450.1391143798828,
1224         "y": 1804.5206508636475,
1225         "z": "1aeff3d2.0f322c",
1226         "wires": [
1227             [
1228                 "71a33119.8d0e1"
1229             ]
1230         ]
1231     },
1232     {
1233         "id": "76b8ab04.2a4724",
1234         "type": "not-found",
1235         "name": "not found",
1236         "xml": "<outcome value='not-found'>\n",
1237         "comments": "",
1238         "outputs": 1,
1239         "x": 1282.3928146362305,
1240         "y": 1168.3975982666016,
1241         "z": "1aeff3d2.0f322c",
1242         "wires": [
1243             [
1244                 "686791c9.12b07"
1245             ]
1246         ]
1247     },
1248     {
1249         "id": "7437f146.91864",
1250         "type": "get-resource",
1251         "name": "get AnAI - l3-network by network-id",
1252         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"l3-network\" \n\t\tkey=\"l3-network.network-id = $pfx.eipam-initial-subnet.network-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"aai.l3-network\">\n",
1253         "comments": "",
1254         "outputs": 1,
1255         "x": 1047.1149215698242,
1256         "y": 1172.8822021484375,
1257         "z": "1aeff3d2.0f322c",
1258         "wires": [
1259             [
1260                 "76b8ab04.2a4724",
1261                 "d141964d.436768"
1262             ]
1263         ]
1264     },
1265     {
1266         "id": "d141964d.436768",
1267         "type": "failure",
1268         "name": "failure",
1269         "xml": "<outcome value='failure'>\n",
1270         "comments": "",
1271         "outputs": 1,
1272         "x": 1275.1149215698242,
1273         "y": 1206.8822021484375,
1274         "z": "1aeff3d2.0f322c",
1275         "wires": [
1276             [
1277                 "4b5e945f.17c4cc"
1278             ]
1279         ]
1280     },
1281     {
1282         "id": "1d533385.91dbac",
1283         "type": "switchNode",
1284         "name": "switch get current # of subnets",
1285         "xml": "<switch test='`$aai.l3-network.subnets.subnet_length`'>\n",
1286         "comments": "",
1287         "outputs": 1,
1288         "x": 1013.4286193847656,
1289         "y": 1541.754774570465,
1290         "z": "1aeff3d2.0f322c",
1291         "wires": [
1292             [
1293                 "683368b.b1aa498",
1294                 "823674a7.f95ee8"
1295             ]
1296         ]
1297     },
1298     {
1299         "id": "683368b.b1aa498",
1300         "type": "other",
1301         "name": "outcome Null",
1302         "xml": "<outcome value=''>\n",
1303         "comments": "",
1304         "outputs": 1,
1305         "x": 1237.1786270141602,
1306         "y": 1540.504774570465,
1307         "z": "1aeff3d2.0f322c",
1308         "wires": [
1309             [
1310                 "ae7ce728.270eb8"
1311             ]
1312         ]
1313     },
1314     {
1315         "id": "823674a7.f95ee8",
1316         "type": "other",
1317         "name": "other",
1318         "xml": "<outcome value='Other'>\n",
1319         "comments": "",
1320         "outputs": 1,
1321         "x": 1223.178611755371,
1322         "y": 1579.2547793388367,
1323         "z": "1aeff3d2.0f322c",
1324         "wires": [
1325             [
1326                 "14d86ca2.7154c3"
1327             ]
1328         ]
1329     },
1330     {
1331         "id": "4b5e945f.17c4cc",
1332         "type": "returnFailure",
1333         "name": "return failure",
1334         "xml": "<return status='failure'>\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"'Error retrieving l3-network with network-id=' + $pfx.eipam-initial-subnet.network-id + 'from AnAI'\" />",
1335         "comments": "",
1336         "x": 1426.142837524414,
1337         "y": 1208.3976211547852,
1338         "z": "1aeff3d2.0f322c",
1339         "wires": []
1340     },
1341     {
1342         "id": "686791c9.12b07",
1343         "type": "returnFailure",
1344         "name": "return failure",
1345         "xml": "<return status='failure'>\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"404\" />\n\t<parameter name=\"error-message\" value=\"'l3-network with network-id=' + $pfx.eipam-initial-subnet.network-id + 'Not found in AnAI'\" />",
1346         "comments": "",
1347         "x": 1438.6428146362305,
1348         "y": 1167.1475982666016,
1349         "z": "1aeff3d2.0f322c",
1350         "wires": []
1351     },
1352     {
1353         "id": "ae7ce728.270eb8",
1354         "type": "returnFailure",
1355         "name": "return failure",
1356         "xml": "<return status='failure'>\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"404\" />\n\t<parameter name=\"error-message\" value=\"'No subnets found in AAI for network-id=' + $pfx.eipam-initial-subnet.network-id\" />",
1357         "comments": "",
1358         "x": 1404.1786270141602,
1359         "y": 1540.004744052887,
1360         "z": "1aeff3d2.0f322c",
1361         "wires": []
1362     },
1363     {
1364         "id": "e81fdab.a073e28",
1365         "type": "returnFailure",
1366         "name": "return failure",
1367         "xml": "<return status='failure'>\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"'Cannot save subnet with l3 network-id=' + $pfx.eipam-initial-subnet.network-id + ' And subnet-id=' + $eipam-ip-block.entity-id  + ' in AnAI'\" />",
1368         "comments": "",
1369         "x": 1392.928623199463,
1370         "y": 1851.2547779083252,
1371         "z": "1aeff3d2.0f322c",
1372         "wires": []
1373     },
1374     {
1375         "id": "38409251.785ace",
1376         "type": "execute",
1377         "name": "execute Contrail API create subnet",
1378         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='subnet' />\n<parameter name='api-action' value='add' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='contrail-virtual-network-id' value='`$pfx.eipam-initial-subnet.network-id`' />\n<parameter name='ip-prefix' value='`$eipam-ip-block.ip-prefix`' />\n<parameter name='ip-prefix-len' value='`$eipam-ip-block.prefix-length`' />\n<parameter name='dns-server-address' value='0.0.0.0' />\n<parameter name='enable-dhcp' value='`$tmp.l3-network.subnet.dhcp-enabled`' />\n<parameter name='default-gateway' value='`$tmp.return.generate.gateway-address`' />\n<parameter name='subnet-name' value='`$tmp.l3-network.subnet.subnet-name`' />\n<parameter name='start' value='`$tmp.l3-network.subnet.dhcp-start`' />\n<parameter name='end' value='`$tmp.l3-network.subnet.dhcp-end`' />\n",
1379         "comments": "",
1380         "outputs": 1,
1381         "x": 1010.4286422729492,
1382         "y": 1985.004786491394,
1383         "z": "1aeff3d2.0f322c",
1384         "wires": [
1385             [
1386                 "3f3c4dfb.edd672",
1387                 "b55baea1.688c1"
1388             ]
1389         ]
1390     },
1391     {
1392         "id": "3f3c4dfb.edd672",
1393         "type": "success",
1394         "name": "success",
1395         "xml": "<outcome value='success'>\n",
1396         "comments": "",
1397         "outputs": 1,
1398         "x": 1315.5594863891602,
1399         "y": 1961.897045765072,
1400         "z": "1aeff3d2.0f322c",
1401         "wires": [
1402             [
1403                 "dd95f113.bb3b3"
1404             ]
1405         ]
1406     },
1407     {
1408         "id": "b55baea1.688c1",
1409         "type": "failure",
1410         "name": "failure",
1411         "xml": "<outcome value='failure'>\n",
1412         "comments": "",
1413         "outputs": 1,
1414         "x": 1313.6548080444336,
1415         "y": 1994.8969855308533,
1416         "z": "1aeff3d2.0f322c",
1417         "wires": [
1418             [
1419                 "2cdedcb.0fb6624"
1420             ]
1421         ]
1422     },
1423     {
1424         "id": "b618419.a7745c",
1425         "type": "returnFailure",
1426         "name": "return failure",
1427         "xml": "<return status='failure'>\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Failed to create subnet in Contrail. '+ $contrailResp.resp-code + ':' +$contrailResp.resp-message `\" />\n",
1428         "comments": "",
1429         "x": 1611.0595741271973,
1430         "y": 2134.2303714752197,
1431         "z": "1aeff3d2.0f322c",
1432         "wires": []
1433     },
1434     {
1435         "id": "dd95f113.bb3b3",
1436         "type": "block",
1437         "name": "block",
1438         "xml": "<block>\n",
1439         "atomic": "false",
1440         "comments": "",
1441         "outputs": 1,
1442         "x": 1467.7499694824219,
1443         "y": 1962.5637707710266,
1444         "z": "1aeff3d2.0f322c",
1445         "wires": [
1446             []
1447         ]
1448     },
1449     {
1450         "id": "e60d143a.a53bf8",
1451         "type": "record",
1452         "name": "record",
1453         "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=\"Added an entry for subnet-allocated-notification in EIPAM_IP_SUBNETS and EIPAM_IP_SUBNET_KEYS\"/>\n<parameter name=\"field3\" value=\"`$eipam-ip-block.request-id`\"/>\n<parameter name=\"field4\" value=\"`$eipam-ip-block.entity-id`\"/>\n<parameter name=\"field5\" value=\"`$pfx.eipam-initial-subnet.network-id`\"/>\n<parameter name=\"field6\" value=\"`$eipam-ip-block.ip-address`\"/>\n<parameter name=\"field7\" value=\"`$eipam-ip-block.prefix-length`\"/>\n<parameter name=\"field8\" value=\"`$eipam-ip-block.status`\"/>\n<parameter name=\"field9\" value=\"`$tmp.key-value`\"/>",
1454         "comments": "",
1455         "outputs": 1,
1456         "x": 946.6785659790039,
1457         "y": 1397.504783630371,
1458         "z": "1aeff3d2.0f322c",
1459         "wires": [
1460             []
1461         ]
1462     },
1463     {
1464         "id": "eccae1c1.cfd61",
1465         "type": "record",
1466         "name": "record",
1467         "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=\"Added a subnetin AAI\"/>\n<parameter name=\"field3\" value=\"`$eipam-ip-block.request-id`\"/>\n<parameter name=\"field4\" value=\"`$eipam-ip-block.entity-id`\"/>\n<parameter name=\"field5\" value=\"`$pfx.eipam-initial-subnet.network-id`\"/>\n<parameter name=\"field6\" value=\"`$eipam-ip-block.ip-address`\"/>\n<parameter name=\"field7\" value=\"`$eipam-ip-block.prefix-length`\"/>\n<parameter name=\"field8\" value=\"`$eipam-ip-block.status`\"/>\n<parameter name=\"field9\" value=\"`$tmp.key-value`\"/>",
1468         "comments": "",
1469         "outputs": 1,
1470         "x": 920.4286041259766,
1471         "y": 1918.7547497749329,
1472         "z": "1aeff3d2.0f322c",
1473         "wires": [
1474             []
1475         ]
1476     },
1477     {
1478         "id": "3b0f0963.0e3606",
1479         "type": "set",
1480         "name": "set request-id",
1481         "xml": "<set>\n<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n",
1482         "comments": "",
1483         "x": 989.8928298950195,
1484         "y": 1220.8976154327393,
1485         "z": "1aeff3d2.0f322c",
1486         "wires": []
1487     },
1488     {
1489         "id": "605747f6.c15988",
1490         "type": "record",
1491         "name": "record",
1492         "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=\"Added a subnet in Contrail\"/>\n<parameter name=\"field3\" value=\"`$eipam-ip-block.request-id`\"/>\n<parameter name=\"field4\" value=\"`$eipam-ip-block.entity-id`\"/>\n<parameter name=\"field5\" value=\"`$pfx.eipam-initial-subnet.network-id`\"/>\n<parameter name=\"field6\" value=\"`$eipam-ip-block.ip-address`\"/>\n<parameter name=\"field7\" value=\"`$eipam-ip-block.prefix-length`\"/>\n<parameter name=\"field8\" value=\"`$eipam-ip-block.status`\"/>\n<parameter name=\"field9\" value=\"`$tmp.key-value`\"/>",
1493         "comments": "",
1494         "outputs": 1,
1495         "x": 919.1786041259766,
1496         "y": 2046.2547497749329,
1497         "z": "1aeff3d2.0f322c",
1498         "wires": [
1499             []
1500         ]
1501     },
1502     {
1503         "id": "2cdedcb.0fb6624",
1504         "type": "block",
1505         "name": "block",
1506         "xml": "<block>\n",
1507         "atomic": "false",
1508         "comments": "",
1509         "outputs": 1,
1510         "x": 1437.9285888671875,
1511         "y": 2021.2547874450684,
1512         "z": "1aeff3d2.0f322c",
1513         "wires": [
1514             [
1515                 "203ea735.c779e8",
1516                 "1daaf7b.fd32308",
1517                 "57933b03.0c74f4",
1518                 "b618419.a7745c",
1519                 "7712a.3fec4ed6c"
1520             ]
1521         ]
1522     },
1523     {
1524         "id": "325c38e8.bf4558",
1525         "type": "execute",
1526         "name": "execute EIPAM activateSubnet",
1527         "xml": "<execute plugin=\"com.att.sdnctl.sli.plugin.eipam.EIPAMPlugin\" method=\"activateSubnet\">\n",
1528         "comments": "subnet and subnet_keys are deleted in the EIPAMPlugin",
1529         "outputs": 1,
1530         "x": 900.4285507202148,
1531         "y": 2383.7548093795776,
1532         "z": "1aeff3d2.0f322c",
1533         "wires": [
1534             [
1535                 "756e1a89.f634c4"
1536             ]
1537         ]
1538     },
1539     {
1540         "id": "756e1a89.f634c4",
1541         "type": "failure",
1542         "name": "failure",
1543         "xml": "<outcome value='failure'>",
1544         "outputs": 1,
1545         "x": 1110.428581237793,
1546         "y": 2385.1451749801636,
1547         "z": "1aeff3d2.0f322c",
1548         "wires": [
1549             [
1550                 "1699aa2c.f5ddc6"
1551             ]
1552         ]
1553     },
1554     {
1555         "id": "1699aa2c.f5ddc6",
1556         "type": "returnFailure",
1557         "name": "return failure",
1558         "xml": "<return status=\"failure\">\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occured while activating subnet in EIPAM.\" />\n\t",
1559         "comments": "",
1560         "x": 1274.4285621643066,
1561         "y": 2383.8594675064087,
1562         "z": "1aeff3d2.0f322c",
1563         "wires": []
1564     },
1565     {
1566         "id": "22f00d11.312d02",
1567         "type": "save",
1568         "name": "Update subnet to Active in DB",
1569         "xml": "<save \n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"UPDATE EIPAM_IP_SUBNETS\n             SET status = 'ACTIVE'\n             WHERE entity_id = $eipam-ip-block.entity-id ; \"\n    force='true'\n        pfx='pfx.eipam-subnet-row'>\n",
1570         "comments": "",
1571         "outputs": 1,
1572         "x": 899.0000534057617,
1573         "y": 2423.754755973816,
1574         "z": "1aeff3d2.0f322c",
1575         "wires": [
1576             [
1577                 "3f14a040.36a47",
1578                 "42f12379.83832c",
1579                 "ca35bb05.971478"
1580             ]
1581         ]
1582     },
1583     {
1584         "id": "66665ee9.9b772",
1585         "type": "returnFailure",
1586         "name": "return failure",
1587         "xml": "<return status=\"failure\">\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occured while updating subnet to active in mysql.\" />\n\t",
1588         "comments": "",
1589         "x": 1267.571434020996,
1590         "y": 2430.8976316452026,
1591         "z": "1aeff3d2.0f322c",
1592         "wires": []
1593     },
1594     {
1595         "id": "ca35bb05.971478",
1596         "type": "success",
1597         "name": "success",
1598         "xml": "<outcome value='success'>\n",
1599         "comments": "",
1600         "outputs": 1,
1601         "x": 1118.1430282592773,
1602         "y": 2498.897602081299,
1603         "z": "1aeff3d2.0f322c",
1604         "wires": [
1605             []
1606         ]
1607     },
1608     {
1609         "id": "3f14a040.36a47",
1610         "type": "failure",
1611         "name": "failure",
1612         "xml": "<outcome value='failure'>\n",
1613         "comments": "",
1614         "outputs": 1,
1615         "x": 1118.4333114624023,
1616         "y": 2432.8976316452026,
1617         "z": "1aeff3d2.0f322c",
1618         "wires": [
1619             [
1620                 "66665ee9.9b772"
1621             ]
1622         ]
1623     },
1624     {
1625         "id": "42f12379.83832c",
1626         "type": "not-found",
1627         "name": "not-found",
1628         "xml": "<outcome value=\"not-found\">",
1629         "comments": "",
1630         "outputs": 1,
1631         "x": 1119.2904205322266,
1632         "y": 2467.1833522617817,
1633         "z": "1aeff3d2.0f322c",
1634         "wires": [
1635             [
1636                 "30dfa1a7.69502e"
1637             ]
1638         ]
1639     },
1640     {
1641         "id": "30dfa1a7.69502e",
1642         "type": "returnFailure",
1643         "name": "return failure",
1644         "xml": "<return status=\"failure\">\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occured while updating subnet to active in mysql.\" />\n\t",
1645         "comments": "",
1646         "x": 1266.571273803711,
1647         "y": 2463.18338277936,
1648         "z": "1aeff3d2.0f322c",
1649         "wires": []
1650     },
1651     {
1652         "id": "75fff231.25968c",
1653         "type": "save",
1654         "name": "update AnAI - subnet",
1655         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $aai.l3-network.network-id \n\t\t\tAND subnet.subnet-id = $eipam-ip-block.entity-id\" >\n<parameter name=\"orchestration-status\" value=\"Created\" />\n\t\t",
1656         "comments": "",
1657         "outputs": 1,
1658         "x": 877.3928356170654,
1659         "y": 2559.806347846985,
1660         "z": "1aeff3d2.0f322c",
1661         "wires": [
1662             [
1663                 "6e21e203.9f313c",
1664                 "b79fac42.5e29"
1665             ]
1666         ]
1667     },
1668     {
1669         "id": "5827e3d6.a2347c",
1670         "type": "returnFailure",
1671         "name": "return failure",
1672         "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet.\" />\n\t",
1673         "comments": "",
1674         "x": 1269.1390056610107,
1675         "y": 2549.6475925445557,
1676         "z": "1aeff3d2.0f322c",
1677         "wires": []
1678     },
1679     {
1680         "id": "d0969e92.5f504",
1681         "type": "success",
1682         "name": "success",
1683         "xml": "<outcome value='success'>\n",
1684         "comments": "",
1685         "outputs": 1,
1686         "x": 1119.710599899292,
1687         "y": 2617.647562980652,
1688         "z": "1aeff3d2.0f322c",
1689         "wires": [
1690             [
1691                 "c283102d.9a28"
1692             ]
1693         ]
1694     },
1695     {
1696         "id": "6e21e203.9f313c",
1697         "type": "failure",
1698         "name": "failure",
1699         "xml": "<outcome value='failure'>\n",
1700         "comments": "",
1701         "outputs": 1,
1702         "x": 1108.5722465515137,
1703         "y": 2555.933322906494,
1704         "z": "1aeff3d2.0f322c",
1705         "wires": [
1706             [
1707                 "5827e3d6.a2347c"
1708             ]
1709         ]
1710     },
1711     {
1712         "id": "b79fac42.5e29",
1713         "type": "not-found",
1714         "name": "not-found",
1715         "xml": "<outcome value=\"not-found\">",
1716         "comments": "",
1717         "outputs": 1,
1718         "x": 1120.8579921722412,
1719         "y": 2585.9333131611347,
1720         "z": "1aeff3d2.0f322c",
1721         "wires": [
1722             [
1723                 "29983bc9.4f3514"
1724             ]
1725         ]
1726     },
1727     {
1728         "id": "c283102d.9a28",
1729         "type": "block",
1730         "name": "block : atomic",
1731         "xml": "<block atomic='true'>",
1732         "atomic": "true",
1733         "comments": "",
1734         "outputs": 1,
1735         "x": 1272.4246883392334,
1736         "y": 2619.076183319092,
1737         "z": "1aeff3d2.0f322c",
1738         "wires": [
1739             []
1740         ]
1741     },
1742     {
1743         "id": "29983bc9.4f3514",
1744         "type": "returnFailure",
1745         "name": "return failure",
1746         "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"Failure updating orchestration-status in AAI for subnet.  Subnet not found.\" />\n\t",
1747         "comments": "",
1748         "x": 1268.1388454437256,
1749         "y": 2581.933343678713,
1750         "z": "1aeff3d2.0f322c",
1751         "wires": []
1752     },
1753     {
1754         "id": "d916c321.529dc",
1755         "type": "returnSuccess",
1756         "name": "return success",
1757         "xml": " <return status=\"success\">\n \t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n",
1758         "comments": "",
1759         "x": 856.6785774230957,
1760         "y": 2645.004796028137,
1761         "z": "1aeff3d2.0f322c",
1762         "wires": []
1763     },
1764     {
1765         "id": "203ea735.c779e8",
1766         "type": "save",
1767         "name": "Update subnet to ERROR in DB",
1768         "xml": "<save \n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"UPDATE EIPAM_IP_SUBNETS\n             SET status = 'ERROR'\n             WHERE entity_id = $eipam-ip-block.entity-id ; \"\n    force='true'\n        pfx='pfx.eipam-subnet-row'>\n",
1769         "comments": "",
1770         "outputs": 1,
1771         "x": 1630.428565979004,
1772         "y": 2021.2547569274902,
1773         "z": "1aeff3d2.0f322c",
1774         "wires": [
1775             [
1776                 "d9c60cd1.3e061",
1777                 "eb6e865f.03b368"
1778             ]
1779         ]
1780     },
1781     {
1782         "id": "a3879ce0.868fd",
1783         "type": "returnFailure",
1784         "name": "return failure",
1785         "xml": "<return status=\"failure\">\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occured while updating subnet to ERROR in mysql.\" />\n\t",
1786         "comments": "",
1787         "x": 1998.9999465942383,
1788         "y": 2028.397632598877,
1789         "z": "1aeff3d2.0f322c",
1790         "wires": []
1791     },
1792     {
1793         "id": "d9c60cd1.3e061",
1794         "type": "failure",
1795         "name": "failure",
1796         "xml": "<outcome value='failure'>\n",
1797         "comments": "",
1798         "outputs": 1,
1799         "x": 1849.8618240356445,
1800         "y": 2030.397632598877,
1801         "z": "1aeff3d2.0f322c",
1802         "wires": [
1803             [
1804                 "a3879ce0.868fd"
1805             ]
1806         ]
1807     },
1808     {
1809         "id": "eb6e865f.03b368",
1810         "type": "not-found",
1811         "name": "not-found",
1812         "xml": "<outcome value=\"not-found\">",
1813         "comments": "",
1814         "outputs": 1,
1815         "x": 1850.7189331054688,
1816         "y": 2064.683353215456,
1817         "z": "1aeff3d2.0f322c",
1818         "wires": [
1819             [
1820                 "2a29d972.a51706"
1821             ]
1822         ]
1823     },
1824     {
1825         "id": "2a29d972.a51706",
1826         "type": "returnFailure",
1827         "name": "return failure",
1828         "xml": "<return status=\"failure\">\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occured while updating subnet to ERROR in mysql.\" />\n\t",
1829         "comments": "",
1830         "x": 1997.9997863769531,
1831         "y": 2060.683383733034,
1832         "z": "1aeff3d2.0f322c",
1833         "wires": []
1834     },
1835     {
1836         "id": "1daaf7b.fd32308",
1837         "type": "delete",
1838         "name": "delete subnet from AAI",
1839         "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\tkey=\"l3-network.network-id = $pfx.eipam-initial-subnet.network-id\n\t\t\t\tAND subnet.subnet-id = $eipam-ip-block.entity-id\">",
1840         "comments": "",
1841         "outputs": 1,
1842         "x": 1605.4285888671875,
1843         "y": 2063.7547874450684,
1844         "z": "1aeff3d2.0f322c",
1845         "wires": [
1846             []
1847         ]
1848     },
1849     {
1850         "id": "57933b03.0c74f4",
1851         "type": "save",
1852         "name": "save MDSAL: status = ERROR",
1853         "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource\" resource=\"eipam-ip-block\">\n\t<parameter name=\"eipam-ip-block.status\" value=\"ERROR\" />",
1854         "comments": "",
1855         "outputs": 1,
1856         "x": 1634.178596496582,
1857         "y": 2100.004789352417,
1858         "z": "1aeff3d2.0f322c",
1859         "wires": [
1860             []
1861         ]
1862     },
1863     {
1864         "id": "f634ef3e.b5b91",
1865         "type": "save",
1866         "name": "update AnAI - subnet with status Created",
1867         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\t\tkey=\"l3-network.network-id = $pfx.eipam-initial-subnet.network-id \n\t\t\tAND subnet.subnet-id = $eipam-ip-block.entity-id\" >\n\t<parameter name=\"orchestration-status\" value=\"Created\" />\n\t\t",
1868         "comments": "",
1869         "outputs": 1,
1870         "x": 972.9285659790039,
1871         "y": 2140.0047569274902,
1872         "z": "1aeff3d2.0f322c",
1873         "wires": [
1874             [
1875                 "b228a3df.0cce8",
1876                 "ff5cf0b4.7228d"
1877             ]
1878         ]
1879     },
1880     {
1881         "id": "b228a3df.0cce8",
1882         "type": "failure",
1883         "name": "failure",
1884         "xml": "<outcome value='failure'>\n",
1885         "comments": "",
1886         "outputs": 1,
1887         "x": 1204.178581237793,
1888         "y": 2137.504789352417,
1889         "z": "1aeff3d2.0f322c",
1890         "wires": [
1891             [
1892                 "45874148.accf2"
1893             ]
1894         ]
1895     },
1896     {
1897         "id": "ff5cf0b4.7228d",
1898         "type": "not-found",
1899         "name": "not-found",
1900         "xml": "<outcome value='not-found'>\n",
1901         "comments": "",
1902         "outputs": 1,
1903         "x": 1207.901725769043,
1904         "y": 2098.897855758667,
1905         "z": "1aeff3d2.0f322c",
1906         "wires": [
1907             []
1908         ]
1909     },
1910     {
1911         "id": "e4838ecb.b8673",
1912         "type": "returnFailure",
1913         "name": "return failure",
1914         "xml": "<return status='failure'>\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\" />\n\t<parameter name=\"error-message\" value=\"'Cannot save subnet status to Created with l3 network-id=' + $pfx.eipam-initial-subnet.network-id + ' And subnet-id=' + $eipam-ip-block.entity-id  + ' in AnAI'\" />",
1915         "comments": "",
1916         "x": 1487.2668685913086,
1917         "y": 2378.8857164382935,
1918         "z": "1aeff3d2.0f322c",
1919         "wires": []
1920     },
1921     {
1922         "id": "346f479b.225938",
1923         "type": "save",
1924         "name": "Update subnet to ERROR in DB",
1925         "xml": "<save \n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"UPDATE EIPAM_IP_SUBNETS\n             SET status = 'ERROR'\n             WHERE entity_id = $eipam-ip-block.entity-id ; \"\n    force='true'\n        pfx='pfx.eipam-subnet-row'>\n",
1926         "comments": "",
1927         "outputs": 1,
1928         "x": 1534.1785888671875,
1929         "y": 2197.504789829254,
1930         "z": "1aeff3d2.0f322c",
1931         "wires": [
1932             [
1933                 "56abfd21.fa7d64",
1934                 "fd0ca37a.c8e48"
1935             ]
1936         ]
1937     },
1938     {
1939         "id": "19a9415f.cf00ff",
1940         "type": "returnFailure",
1941         "name": "return failure",
1942         "xml": "<return status=\"failure\">\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occured while updating subnet to ERROR in mysql.\" />\n\t",
1943         "comments": "",
1944         "x": 1902.7499694824219,
1945         "y": 2204.647665500641,
1946         "z": "1aeff3d2.0f322c",
1947         "wires": []
1948     },
1949     {
1950         "id": "56abfd21.fa7d64",
1951         "type": "failure",
1952         "name": "failure",
1953         "xml": "<outcome value='failure'>\n",
1954         "comments": "",
1955         "outputs": 1,
1956         "x": 1753.6118469238281,
1957         "y": 2206.647665500641,
1958         "z": "1aeff3d2.0f322c",
1959         "wires": [
1960             [
1961                 "19a9415f.cf00ff"
1962             ]
1963         ]
1964     },
1965     {
1966         "id": "fd0ca37a.c8e48",
1967         "type": "not-found",
1968         "name": "not-found",
1969         "xml": "<outcome value=\"not-found\">",
1970         "comments": "",
1971         "outputs": 1,
1972         "x": 1754.4689559936523,
1973         "y": 2240.93338611722,
1974         "z": "1aeff3d2.0f322c",
1975         "wires": [
1976             [
1977                 "86fbd250.1c628"
1978             ]
1979         ]
1980     },
1981     {
1982         "id": "86fbd250.1c628",
1983         "type": "returnFailure",
1984         "name": "return failure",
1985         "xml": "<return status=\"failure\">\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occured while updating subnet to ERROR in mysql.\" />\n\t",
1986         "comments": "",
1987         "x": 1901.7498092651367,
1988         "y": 2236.933416634798,
1989         "z": "1aeff3d2.0f322c",
1990         "wires": []
1991     },
1992     {
1993         "id": "7cdf33b.16065cc",
1994         "type": "delete",
1995         "name": "delete subnet from AAI",
1996         "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"subnet\" \n\tkey=\"l3-network.network-id = $pfx.eipam-initial-subnet.network-id\n\t\t\t\tAND subnet.subnet-id = $eipam-ip-block.entity-id\">",
1997         "comments": "",
1998         "outputs": 1,
1999         "x": 1509.178611755371,
2000         "y": 2240.0048203468323,
2001         "z": "1aeff3d2.0f322c",
2002         "wires": [
2003             []
2004         ]
2005     },
2006     {
2007         "id": "f13e3925.587088",
2008         "type": "record",
2009         "name": "record",
2010         "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=\"Update status to Created failed in AAI\"/>\n<parameter name=\"field3\" value=\"`$eipam-ip-block.request-id`\"/>\n<parameter name=\"field4\" value=\"`$eipam-ip-block.entity-id`\"/>\n<parameter name=\"field5\" value=\"`$pfx.eipam-initial-subnet.network-id`\"/>\n<parameter name=\"field6\" value=\"`$eipam-ip-block.ip-address`\"/>\n<parameter name=\"field7\" value=\"`$eipam-ip-block.prefix-length`\"/>\n<parameter name=\"field8\" value=\"`$eipam-ip-block.status`\"/>\n<parameter name=\"field9\" value=\"`$tmp.key-value`\"/>",
2011         "comments": "",
2012         "outputs": 1,
2013         "x": 1452.9285736083984,
2014         "y": 2161.254756450653,
2015         "z": "1aeff3d2.0f322c",
2016         "wires": [
2017             []
2018         ]
2019     },
2020     {
2021         "id": "45874148.accf2",
2022         "type": "block",
2023         "name": "block",
2024         "xml": "<block>\n",
2025         "atomic": "false",
2026         "comments": "",
2027         "outputs": 1,
2028         "x": 1319.1785850524902,
2029         "y": 2161.254789352417,
2030         "z": "1aeff3d2.0f322c",
2031         "wires": [
2032             [
2033                 "f13e3925.587088",
2034                 "346f479b.225938",
2035                 "7cdf33b.16065cc",
2036                 "e4838ecb.b8673",
2037                 "baa512c3.0963a",
2038                 "170994e8.eee78b"
2039             ]
2040         ]
2041     },
2042     {
2043         "id": "baa512c3.0963a",
2044         "type": "execute",
2045         "name": "execute Contrail API delete subnet",
2046         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.contrail.ContrailAdaptor' method='sendContrailRequest' emitsOutcome='true' >\n<parameter name='api-name' value='subnet' />\n<parameter name='api-action' value='delete' />\n<parameter name='resp-prefix' value='contrailResp' />\n<parameter name='contrail-virtual-network-id' value='`$pfx.eipam-initial-subnet.network-id`' />\n<parameter name='ip-prefix' value='`$eipam-ip-block.ip-prefix`' />\n",
2047         "comments": "",
2048         "outputs": 1,
2049         "x": 1540.428565979004,
2050         "y": 2283.7547569274902,
2051         "z": "1aeff3d2.0f322c",
2052         "wires": [
2053             [
2054                 "9c1ec68b.c5c7e8"
2055             ]
2056         ]
2057     },
2058     {
2059         "id": "9c1ec68b.c5c7e8",
2060         "type": "failure",
2061         "name": "failure",
2062         "xml": "<outcome value='failure'>\n",
2063         "comments": "",
2064         "outputs": 1,
2065         "x": 1755.428565979004,
2066         "y": 2280.0047569274902,
2067         "z": "1aeff3d2.0f322c",
2068         "wires": [
2069             [
2070                 "fd4b323e.9f80e"
2071             ]
2072         ]
2073     },
2074     {
2075         "id": "fd4b323e.9f80e",
2076         "type": "returnFailure",
2077         "name": "return failure",
2078         "xml": "<return status='failure'>\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'Failed to delete subnet in Contrail. '+ $contrailResp.resp-code + ':' +$contrailResp.resp-message `\" />\n",
2079         "comments": "",
2080         "x": 1911.678565979004,
2081         "y": 2281.2547569274902,
2082         "z": "1aeff3d2.0f322c",
2083         "wires": []
2084     },
2085     {
2086         "id": "57bed018.e09e4",
2087         "type": "save",
2088         "name": "Update subnet to CREATED in DB",
2089         "xml": "<save \n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"UPDATE EIPAM_IP_SUBNETS\n             SET status = 'CREATED'\n             WHERE entity_id = $eipam-ip-block.entity-id ; \"\n    force='true'\n        pfx='pfx.eipam-subnet-row'>\n",
2090         "comments": "",
2091         "outputs": 1,
2092         "x": 907.9285659790039,
2093         "y": 2250.0047569274902,
2094         "z": "1aeff3d2.0f322c",
2095         "wires": [
2096             [
2097                 "fc6a8361.1b23e",
2098                 "f102d632.e2c298"
2099             ]
2100         ]
2101     },
2102     {
2103         "id": "453b14d.e93c4ec",
2104         "type": "returnFailure",
2105         "name": "return failure",
2106         "xml": "<return status=\"failure\">\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occured while updating subnet to CREATED in mysql.\" />\n\t",
2107         "comments": "",
2108         "x": 1276.4999465942383,
2109         "y": 2257.147632598877,
2110         "z": "1aeff3d2.0f322c",
2111         "wires": []
2112     },
2113     {
2114         "id": "fc6a8361.1b23e",
2115         "type": "failure",
2116         "name": "failure",
2117         "xml": "<outcome value='failure'>\n",
2118         "comments": "",
2119         "outputs": 1,
2120         "x": 1127.3618240356445,
2121         "y": 2259.147632598877,
2122         "z": "1aeff3d2.0f322c",
2123         "wires": [
2124             [
2125                 "453b14d.e93c4ec"
2126             ]
2127         ]
2128     },
2129     {
2130         "id": "f102d632.e2c298",
2131         "type": "not-found",
2132         "name": "not-found",
2133         "xml": "<outcome value=\"not-found\">",
2134         "comments": "",
2135         "outputs": 1,
2136         "x": 1128.2189331054688,
2137         "y": 2293.433353215456,
2138         "z": "1aeff3d2.0f322c",
2139         "wires": [
2140             [
2141                 "14936440.6c927c"
2142             ]
2143         ]
2144     },
2145     {
2146         "id": "14936440.6c927c",
2147         "type": "returnFailure",
2148         "name": "return failure",
2149         "xml": "<return status=\"failure\">\n\t<parameter name='eipam-ip-block.request-id' value=\"`$eipam-ip-block.entity-id + '-' + $aai.l3-network.contrail-network-fqdn`\" />\n\t<parameter name=\"error-code\" value=\"500\"/>\n\t<parameter name=\"error-message\" value=\"An error occured while updating subnet to CREATED in mysql.\" />\n\t",
2150         "comments": "",
2151         "x": 1275.4997863769531,
2152         "y": 2289.433383733034,
2153         "z": "1aeff3d2.0f322c",
2154         "wires": []
2155     },
2156     {
2157         "id": "436f433.ffb90bc",
2158         "type": "save",
2159         "name": "Update subnet to PENDING-ACTIVE in DB",
2160         "xml": "<save \n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"UPDATE EIPAM_IP_SUBNETS\n             SET status = 'PENDING-ACTIVE'\n             WHERE entity_id = $eipam-ip-block.entity-id ; \"\n    force='true'\n        pfx='pfx.eipam-subnet-row'>\n",
2161         "comments": "",
2162         "outputs": 1,
2163         "x": 1212.928565979004,
2164         "y": 103.75475692749023,
2165         "z": "1aeff3d2.0f322c",
2166         "wires": [
2167             []
2168         ]
2169     },
2170     {
2171         "id": "72c4110c.bb7ed",
2172         "type": "save",
2173         "name": "Update subnet to ERROR in DB",
2174         "xml": "<save \n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"UPDATE EIPAM_IP_SUBNETS\n             SET \n             status = 'ERROR',\n             dealloc_failure = 'deletePool failed in response to NCS_IP_SUBNET_INSTALL_ERROR'\n             WHERE entity_id = $eipam-ip-block.entity-id ; \"\n    force='true'\n        pfx='pfx.eipam-subnet-row'>\n",
2175         "comments": "",
2176         "outputs": 1,
2177         "x": 1303.8214263916016,
2178         "y": 446.4333562850952,
2179         "z": "1aeff3d2.0f322c",
2180         "wires": [
2181             []
2182         ]
2183     },
2184     {
2185         "id": "7712a.3fec4ed6c",
2186         "type": "set",
2187         "name": "set: status = ERROR",
2188         "xml": "<set>\n\t<parameter name=\"eipam-ip-block.status\" value=\"ERROR\" />",
2189         "x": 1632.5714797973633,
2190         "y": 1984.1118841171265,
2191         "z": "1aeff3d2.0f322c",
2192         "wires": []
2193     },
2194     {
2195         "id": "170994e8.eee78b",
2196         "type": "set",
2197         "name": "set: status = ERROR",
2198         "xml": "<set>\n\t<parameter name=\"eipam-ip-block.status\" value=\"ERROR\" />",
2199         "x": 1502.571388244629,
2200         "y": 2329.8262901306152,
2201         "z": "1aeff3d2.0f322c",
2202         "wires": []
2203     },
2204     {
2205         "id": "38037809.d5abe8",
2206         "type": "get-resource",
2207         "name": "get-resource - vpe_pool",
2208         "xml": "<get-resource\n        plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n        resource='SQL'\n        key=\"SELECT * FROM VPE_POOL where vpe_name = $eipam-ip-block.ptnii-name ;\"\n        pfx='tmp.vpe-pool-row'>\n\n",
2209         "comments": "",
2210         "outputs": 1,
2211         "x": 490.00001525878906,
2212         "y": 247.50000476837158,
2213         "z": "1aeff3d2.0f322c",
2214         "wires": [
2215             []
2216         ]
2217     },
2218     {
2219         "id": "8d875ca6.a136",
2220         "type": "block",
2221         "name": "block",
2222         "xml": "<block>",
2223         "atomic": "false",
2224         "comments": "",
2225         "outputs": 1,
2226         "x": 290.0000057220459,
2227         "y": 283.7500057220459,
2228         "z": "1aeff3d2.0f322c",
2229         "wires": [
2230             [
2231                 "8ad2bbea.c97f08"
2232             ]
2233         ]
2234     }
2235 ]