Fix tunnelxconn create/delete ip bugs
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_tunnelxconn-topology-operation-delete.json
1 [
2   {
3     "id":"825ca84c.445e48",
4     "type":"dgstart",
5     "name":"DGSTART",
6     "outputs":1,
7     "x":128,
8     "y":116,
9     "z":"613ada42.e46534",
10     "wires":[
11       [
12         "cf18f6a3.a7c1d8"
13       ]
14     ]
15   },
16   {
17     "id":"cf18f6a3.a7c1d8",
18     "type":"service-logic",
19     "name":"GENERIC-RESOURCE-API ${project.version}",
20     "module":"GENERIC-RESOURCE-API",
21     "version":"${project.version}",
22     "comments":"",
23     "xml":"<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
24     "outputs":1,
25     "x":224.23807907104492,
26     "y":176.95239067077637,
27     "z":"613ada42.e46534",
28     "wires":[
29       [
30         "6f43722e.e1375c"
31       ]
32     ]
33   },
34   {
35     "id":"6f43722e.e1375c",
36     "type":"method",
37     "name":"tunnelxconn-topology-operation-delete",
38     "xml":"<method rpc='tunnelxconn-topology-operation-delete' mode='sync'>\n",
39     "comments":"",
40     "outputs":1,
41     "x":270.15485763549805,
42     "y":212.19044589996338,
43     "z":"613ada42.e46534",
44     "wires":[
45       [
46         "9223e1d9.9d3d5"
47       ]
48     ]
49   },
50   {
51     "id":"9223e1d9.9d3d5",
52     "type":"block",
53     "name":"block : atomic",
54     "xml":"<block atomic=\"true\">",
55     "atomic":"true",
56     "comments":"",
57     "outputs":1,
58     "x":156.47621154785156,
59     "y":1191.523856163025,
60     "z":"613ada42.e46534",
61     "wires":[
62       [
63         "57095392.42df9c",
64         "928254df.b8f1b8",
65         "78ce1588.233b4c",
66         "b1b79d47.5b712",
67         "bcbc27ec.51c808",
68         "14dcb243.87919e",
69         "f375d1a2.57ce",
70         "f6543328.c0463",
71         "4fa81b0c.d25c04",
72         "e12d04d1.e4c6f8",
73         "4b2a2744.b37d78",
74         "509b7252.07649c",
75         "67c6c537.098aac",
76         "ac80ef88.64417",
77         "d6a9b477.b43e58",
78         "3c1eab50.8ab6e4",
79         "a6c06bf0.9acdf8",
80         "fd3c881.1134678",
81         "eccfefb.8a8691",
82         "cadbc326.95747",
83         "d6edf81e.59db08",
84         "9e3a6d03.74879",
85         "ec194f5.ff3e8b",
86         "a35bc5f0.41f1a8",
87         "6017aedf.2d3db",
88         "6a140f25.dc1a2"
89       ]
90     ]
91   },
92   {
93     "id":"928254df.b8f1b8",
94     "type":"returnSuccess",
95     "name":"return success",
96     "xml":"<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
97     "comments":"",
98     "x":432.0001564025879,
99     "y":2202.8811111450195,
100     "z":"613ada42.e46534",
101     "wires":[
102
103     ]
104   },
105   {
106     "id":"57095392.42df9c",
107     "type":"set",
108     "name":"set output to api handler",
109     "xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
110     "comments":"",
111     "x":460.7540702819824,
112     "y":2167.0036573410034,
113     "z":"613ada42.e46534",
114     "wires":[
115
116     ]
117   },
118   {
119     "id":"4fa81b0c.d25c04",
120     "type":"set",
121     "name":"set allotted-resource-oper-status",
122     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tunnelxconn-topology-operation-input.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
123     "comments":"",
124     "x":484.7542190551758,
125     "y":736.0514001846313,
126     "z":"613ada42.e46534",
127     "wires":[
128
129     ]
130   },
131   {
132     "id":"b1b79d47.5b712",
133     "type":"set",
134     "name":"set tmp.ar.self-link",
135     "xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology/'` \" />\n\n",
136     "comments":"",
137     "x":440.73806381225586,
138     "y":329.33332538604736,
139     "z":"613ada42.e46534",
140     "wires":[
141
142     ]
143   },
144   {
145     "id":"78ce1588.233b4c",
146     "type":"set",
147     "name":"set tmp.ar.allotted-resource-id,etc",
148     "xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
149     "comments":"",
150     "x":487.9973258972168,
151     "y":295.59259128570557,
152     "z":"613ada42.e46534",
153     "wires":[
154
155     ]
156   },
157   {
158     "id":"bcbc27ec.51c808",
159     "type":"execute",
160     "name":"execute Properties",
161     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
162     "comments":"",
163     "outputs":1,
164     "x":446.9934196472168,
165     "y":365.23152446746826,
166     "z":"613ada42.e46534",
167     "wires":[
168       [
169
170       ]
171     ]
172   },
173   {
174     "id":"f375d1a2.57ce",
175     "type":"execute",
176     "name":"execute RestApiCallNode - Get AR by id",
177     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
178     "comments":"",
179     "outputs":1,
180     "x":509.5187530517578,
181     "y":526.4594917297363,
182     "z":"613ada42.e46534",
183     "wires":[
184       [
185         "f6518fb0.ce253",
186         "356ea1a.9b58a5e"
187       ]
188     ]
189   },
190   {
191     "id":"14dcb243.87919e",
192     "type":"execute",
193     "name":"generate allotted-resource url",
194     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.tx-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
195     "comments":"",
196     "outputs":1,
197     "x":475.0648536682129,
198     "y":425.0172290802002,
199     "z":"613ada42.e46534",
200     "wires":[
201       [
202
203       ]
204     ]
205   },
206   {
207     "id":"f6518fb0.ce253",
208     "type":"success",
209     "name":"success",
210     "xml":"<outcome value='success'>\n",
211     "comments":"",
212     "outputs":1,
213     "x":766.8148918151855,
214     "y":525.2672522068024,
215     "z":"613ada42.e46534",
216     "wires":[
217       [
218         "629610f3.9604d"
219       ]
220     ]
221   },
222   {
223     "id":"b0337e65.8f372",
224     "type":"not-found",
225     "name":"not-found",
226     "xml":"<outcome value='not-found'>\n",
227     "comments":"",
228     "outputs":1,
229     "x":787.837329864502,
230     "y":932.432332418859,
231     "z":"613ada42.e46534",
232     "wires":[
233       [
234         "840b1c1.394d0e"
235       ]
236     ]
237   },
238   {
239     "id":"fc786288.11187",
240     "type":"failure",
241     "name":"failure",
242     "xml":"<outcome value='failure'>\n",
243     "comments":"",
244     "outputs":1,
245     "x":778.8373794555664,
246     "y":900.9323581680655,
247     "z":"613ada42.e46534",
248     "wires":[
249       [
250         "840b1c1.394d0e"
251       ]
252     ]
253   },
254   {
255     "id":"2102e230.72a77e",
256     "type":"success",
257     "name":"success",
258     "xml":"<outcome value='success'>\n",
259     "comments":"",
260     "outputs":1,
261     "x":782.5874176025391,
262     "y":871.2894630432129,
263     "z":"613ada42.e46534",
264     "wires":[
265       [
266         "6f565745.8303b8"
267       ]
268     ]
269   },
270   {
271     "id":"840b1c1.394d0e",
272     "type":"returnFailure",
273     "name":"return failure",
274     "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating md-sal for tunnelxconn-allotted-resource\" />\n",
275     "comments":"",
276     "x":948.5874176025391,
277     "y":901.6823820099235,
278     "z":"613ada42.e46534",
279     "wires":[
280
281     ]
282   },
283   {
284     "id":"629610f3.9604d",
285     "type":"block",
286     "name":"block: atomic",
287     "xml":"<block atomic=\"true\">\n",
288     "atomic":"false",
289     "comments":"",
290     "outputs":1,
291     "x":947.8148460388184,
292     "y":525.7672016620636,
293     "z":"613ada42.e46534",
294     "wires":[
295       [
296         "db6398fb.5393b8",
297         "5570421f.b1cd1c"
298       ]
299     ]
300   },
301   {
302     "id":"db6398fb.5393b8",
303     "type":"switchNode",
304     "name":"switch tx length",
305     "xml":"<switch test='`$mdsal-ar.tunnelxconn-allotted-resource_length`'>\n",
306     "comments":"",
307     "outputs":1,
308     "x":1193.6720924377441,
309     "y":560.052964925766,
310     "z":"613ada42.e46534",
311     "wires":[
312       [
313         "6fdf29e8.2e0f38"
314       ]
315     ]
316   },
317   {
318     "id":"6fdf29e8.2e0f38",
319     "type":"other",
320     "name":"outcome 1",
321     "xml":"<outcome value='1'>\n",
322     "comments":"",
323     "outputs":1,
324     "x":1384.6720962524414,
325     "y":560.0529625415802,
326     "z":"613ada42.e46534",
327     "wires":[
328       [
329         "a18ae609.19d3c8"
330       ]
331     ]
332   },
333   {
334     "id":"6f978da.693bf74",
335     "type":"set",
336     "name":"set tx-ar from get",
337     "xml":"<set>\n<parameter name='tx-ar.' value='$mdsal-ar.tunnelxconn-allotted-resource[0].' />\n",
338     "comments":"",
339     "x":1784.5292320251465,
340     "y":560.6243867874146,
341     "z":"613ada42.e46534",
342     "wires":[
343
344     ]
345   },
346   {
347     "id":"a18ae609.19d3c8",
348     "type":"block",
349     "name":"block: atomic",
350     "xml":"<block atomic='true'>\n",
351     "atomic":"false",
352     "comments":"",
353     "outputs":1,
354     "x":1555.5290794372559,
355     "y":560.6244316101074,
356     "z":"613ada42.e46534",
357     "wires":[
358       [
359         "6f978da.693bf74",
360         "66b9fbd6.4d38a4",
361         "7b6d747a.efbadc"
362       ]
363     ]
364   },
365   {
366     "id":"66b9fbd6.4d38a4",
367     "type":"set",
368     "name":"set oper-status",
369     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tx-ar.allotted-resource-status.rpc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
370     "comments":"",
371     "x":1782.5294761657715,
372     "y":628.0529508590698,
373     "z":"613ada42.e46534",
374     "wires":[
375
376     ]
377   },
378   {
379     "id":"a62aafbc.fe6bb",
380     "type":"comment",
381     "name":"GET tunnelxconn-allotted-resource from mdsal",
382     "info":"",
383     "comments":"",
384     "x":534.8148155212402,
385     "y":489.7671926021576,
386     "z":"613ada42.e46534",
387     "wires":[
388
389     ]
390   },
391   {
392     "id":"7b6d747a.efbadc",
393     "type":"switchNode",
394     "name":"switch order-status",
395     "xml":"<switch test='`$tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
396     "comments":"",
397     "outputs":1,
398     "x":1792.52925491333,
399     "y":593.6243848800659,
400     "z":"613ada42.e46534",
401     "wires":[
402       [
403         "d5b999f8.8cb468",
404         "f4d4f6e9.cf0858"
405       ]
406     ]
407   },
408   {
409     "id":"d5b999f8.8cb468",
410     "type":"outcome",
411     "name":"outcome Created",
412     "xml":"<outcome value='Created'>\n",
413     "comments":"",
414     "outputs":1,
415     "x":2004.1292114257812,
416     "y":554.6243848800659,
417     "z":"613ada42.e46534",
418     "wires":[
419       [
420         "48576b51.340d84"
421       ]
422     ]
423   },
424   {
425     "id":"f4d4f6e9.cf0858",
426     "type":"outcome",
427     "name":"outcome Other",
428     "xml":"<outcome value='Other'>\n",
429     "comments":"",
430     "outputs":1,
431     "x":2029.8435859680176,
432     "y":590.052975654602,
433     "z":"613ada42.e46534",
434     "wires":[
435       [
436         "48576b51.340d84"
437       ]
438     ]
439   },
440   {
441     "id":"83b8f4eb.666af8",
442     "type":"comment",
443     "name":"Set allotted-resource-identifiers",
444     "info":"",
445     "comments":"",
446     "x":490.33863830566406,
447     "y":580.3386459350586,
448     "z":"613ada42.e46534",
449     "wires":[
450
451     ]
452   },
453   {
454     "id":"5570421f.b1cd1c",
455     "type":"set",
456     "name":"save backup copy of mdsal-ar for rollback",
457     "xml":"<set>\n<parameter name='bk-tx-ar' value='$mdsal-ar.' />\n",
458     "comments":"",
459     "x":1273.3864250183105,
460     "y":525.7672936916351,
461     "z":"613ada42.e46534",
462     "wires":[
463
464     ]
465   },
466   {
467     "id":"26dce256.9f5d0e",
468     "type":"comment",
469     "name":"Create urls for restapi",
470     "info":"",
471     "comments":"",
472     "x":445.9576606750488,
473     "y":394.6243562698364,
474     "z":"613ada42.e46534",
475     "wires":[
476
477     ]
478   },
479   {
480     "id":"6f565745.8303b8",
481     "type":"block",
482     "name":"block",
483     "xml":"<block>\n",
484     "atomic":"false",
485     "comments":"",
486     "outputs":1,
487     "x":924.2433853149414,
488     "y":867.481632232666,
489     "z":"613ada42.e46534",
490     "wires":[
491       [
492
493       ]
494     ]
495   },
496   {
497     "id":"fcabb34d.45a2a",
498     "type":"comment",
499     "name":"TO DO: vnf/put parent",
500     "info":"",
501     "comments":"",
502     "x":458.2433776855469,
503     "y":801.4815540313718,
504     "z":"613ada42.e46534",
505     "wires":[
506
507     ]
508   },
509   {
510     "id":"f6543328.c0463",
511     "type":"execute",
512     "name":"execute getTime",
513     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
514     "comments":"",
515     "outputs":1,
516     "x":432.24338150024414,
517     "y":697.4815549850464,
518     "z":"613ada42.e46534",
519     "wires":[
520       [
521
522       ]
523     ]
524   },
525   {
526     "id":"356ea1a.9b58a5e",
527     "type":"other",
528     "name":"other",
529     "xml":"<outcome value='Other'>\n",
530     "comments":"",
531     "outputs":1,
532     "x":766.5766868591309,
533     "y":561.4814250469208,
534     "z":"613ada42.e46534",
535     "wires":[
536       [
537         "413a7bac.d6ab24"
538       ]
539     ]
540   },
541   {
542     "id":"413a7bac.d6ab24",
543     "type":"block",
544     "name":"block: atomic",
545     "xml":"<block atomic=\"true\">\n",
546     "atomic":"false",
547     "comments":"",
548     "outputs":1,
549     "x":946.5766372680664,
550     "y":562.1479756832123,
551     "z":"613ada42.e46534",
552     "wires":[
553       [
554
555       ]
556     ]
557   },
558   {
559     "id":"e12d04d1.e4c6f8",
560     "type":"set",
561     "name":"set id",
562     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='tx-ar.allotted-resource-status.action' value=\"`$tunnelxconn-topology-operation-input.request-information.request-action` \" />\n<parameter name='tx-ar.allotted-resource-status.rpc-name' value=\"tunnelxconn-topology-operation\" />\n<parameter name='tx-ar.allotted-resource-status.rpc-action' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$tunnelxconn-topology-operation-input.request-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$tunnelxconn-topology-operation-input.service-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.' value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.` \" />",
563     "comments":"",
564     "x":415.24342346191406,
565     "y":617.1481666564941,
566     "z":"613ada42.e46534",
567     "wires":[
568
569     ]
570   },
571   {
572     "id":"48576b51.340d84",
573     "type":"block",
574     "name":"block",
575     "xml":"<block>\n",
576     "atomic":"false",
577     "comments":"",
578     "outputs":1,
579     "x":2218.5997276306152,
580     "y":556.0000190734863,
581     "z":"613ada42.e46534",
582     "wires":[
583       [
584
585       ]
586     ]
587   },
588   {
589     "id":"4b2a2744.b37d78",
590     "type":"execute",
591     "name":"execute RestApiCallNode - PUT AR by id",
592     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.tx.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
593     "comments":"",
594     "outputs":1,
595     "x":515.0000152587891,
596     "y":882.0000247955322,
597     "z":"613ada42.e46534",
598     "wires":[
599       [
600         "2102e230.72a77e",
601         "fc786288.11187",
602         "b0337e65.8f372"
603       ]
604     ]
605   },
606   {
607     "id":"509b7252.07649c",
608     "type":"set",
609     "name":"clear tx-ar-assignments",
610     "xml":"<set>\n<parameter name='tx-ar-assignments.' value=\"\" />\n\n\n\n",
611     "comments":"",
612     "x":459,
613     "y":768,
614     "z":"613ada42.e46534",
615     "wires":[
616
617     ]
618   },
619   {
620     "id":"d6edf81e.59db08",
621     "type":"execute",
622     "name":"execute RestApiCallNode - delete vgMUX to vG vxlan tunnel port",
623     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n  <parameter name='restapiUrl' value='`$tmp.honeycomb.url + $tmp.vpp-honeycomb-url`' />\n    <parameter name='restapiUser' value='`$prop.honeycomb.user`' />\n    <parameter name='restapiPassword' value='`$prop.honeycomb.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='DELETE' />\n    <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n",
624     "comments":"",
625     "outputs":1,
626     "x":593.6668548583984,
627     "y":2109.3331184387207,
628     "z":"613ada42.e46534",
629     "wires":[
630       [
631         "5a2ca87c.542c08",
632         "ab819131.dd45",
633         "63ff344a.e380fc"
634       ]
635     ]
636   },
637   {
638     "id":"5a2ca87c.542c08",
639     "type":"not-found",
640     "name":"not-found",
641     "xml":"<outcome value='not-found'>\n",
642     "comments":"",
643     "outputs":1,
644     "x":1162.6414413452148,
645     "y":2149.331505201757,
646     "z":"613ada42.e46534",
647     "wires":[
648       [
649         "f6c1b57a.e80c28"
650       ]
651     ]
652   },
653   {
654     "id":"ab819131.dd45",
655     "type":"failure",
656     "name":"failure",
657     "xml":"<outcome value='failure'>\n",
658     "comments":"",
659     "outputs":1,
660     "x":1153.6414909362793,
661     "y":2117.8315309509635,
662     "z":"613ada42.e46534",
663     "wires":[
664       [
665         "f6c1b57a.e80c28"
666       ]
667     ]
668   },
669   {
670     "id":"63ff344a.e380fc",
671     "type":"success",
672     "name":"success",
673     "xml":"<outcome value='success'>\n",
674     "comments":"",
675     "outputs":1,
676     "x":1157.391529083252,
677     "y":2088.188635826111,
678     "z":"613ada42.e46534",
679     "wires":[
680       [
681         "14140cfc.718ec3"
682       ]
683     ]
684   },
685   {
686     "id":"f6c1b57a.e80c28",
687     "type":"returnFailure",
688     "name":"return failure",
689     "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating md-sal for tunnelxconn-allotted-resource\" />\n",
690     "comments":"",
691     "x":1323.391529083252,
692     "y":2118.5815547928214,
693     "z":"613ada42.e46534",
694     "wires":[
695
696     ]
697   },
698   {
699     "id":"14140cfc.718ec3",
700     "type":"block",
701     "name":"block",
702     "xml":"<block>\n",
703     "atomic":"false",
704     "comments":"",
705     "outputs":1,
706     "x":1299.0474967956543,
707     "y":2084.380805015564,
708     "z":"613ada42.e46534",
709     "wires":[
710       [
711
712       ]
713     ]
714   },
715   {
716     "id":"d6a9b477.b43e58",
717     "type":"execute",
718     "name":"generate full vgMUX-vG vpp-honeycomb url",
719     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.vpp-honeycomb`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.vpp-honeycomb-url\"/>\n    <parameter name=\"target\" value=\"{tunnel-name}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.tunnel-vgMUX-vG-name`\"/>\n",
720     "comments":"",
721     "outputs":1,
722     "x":521.1111145019531,
723     "y":1617.6667919158936,
724     "z":"613ada42.e46534",
725     "wires":[
726       [
727
728       ]
729     ]
730   },
731   {
732     "id":"67c6c537.098aac",
733     "type":"execute",
734     "name":"generate honeycomb-url to vgMUX",
735     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.honeycomb.url`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.honeycomb.url\"/>\n    <parameter name=\"target\" value=\"{honeycomb-instance-ip}\"/>\n    <parameter name=\"replacement\" value=\"`$tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vgmux-mgmt-ip`\"/>\n",
736     "comments":"",
737     "outputs":1,
738     "x":486.7778778076172,
739     "y":1328.333438873291,
740     "z":"613ada42.e46534",
741     "wires":[
742       [
743
744       ]
745     ]
746   },
747   {
748     "id":"3c1eab50.8ab6e4",
749     "type":"execute",
750     "name":"execute RestApiCallNode - delete vG-vgMUX xconnect",
751     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value=\"`$tmp.honeycomb.url + $tmp.vpp-honeycomb-url + '/v3po:l2' `\" />\n    <parameter name='restapiUser' value='`$prop.honeycomb.user`' />\n    <parameter name='restapiPassword' value='`$prop.honeycomb.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='DELETE' />\n    <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n",
752     "comments":"",
753     "outputs":1,
754     "x":557.6670074462891,
755     "y":1696.881510734558,
756     "z":"613ada42.e46534",
757     "wires":[
758       [
759         "133ecf83.ed702",
760         "2da75da5.50c6e2",
761         "f90f3fc7.0dbc5"
762       ]
763     ]
764   },
765   {
766     "id":"133ecf83.ed702",
767     "type":"not-found",
768     "name":"not-found",
769     "xml":"<outcome value='not-found'>\n",
770     "comments":"",
771     "outputs":1,
772     "x":1166.3083801269531,
773     "y":1676.8796142563224,
774     "z":"613ada42.e46534",
775     "wires":[
776       [
777         "7f5777a.bc39688"
778       ]
779     ]
780   },
781   {
782     "id":"2da75da5.50c6e2",
783     "type":"failure",
784     "name":"failure",
785     "xml":"<outcome value='failure'>\n",
786     "comments":"",
787     "outputs":1,
788     "x":1157.3084297180176,
789     "y":1645.379640005529,
790     "z":"613ada42.e46534",
791     "wires":[
792       [
793         "7f5777a.bc39688"
794       ]
795     ]
796   },
797   {
798     "id":"f90f3fc7.0dbc5",
799     "type":"success",
800     "name":"success",
801     "xml":"<outcome value='success'>\n",
802     "comments":"",
803     "outputs":1,
804     "x":1161.0584678649902,
805     "y":1615.7367448806763,
806     "z":"613ada42.e46534",
807     "wires":[
808       [
809         "9aa4cd15.2e381"
810       ]
811     ]
812   },
813   {
814     "id":"7f5777a.bc39688",
815     "type":"returnFailure",
816     "name":"return failure",
817     "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating md-sal for tunnelxconn-allotted-resource\" />\n",
818     "comments":"",
819     "x":1327.0584678649902,
820     "y":1646.1296638473868,
821     "z":"613ada42.e46534",
822     "wires":[
823
824     ]
825   },
826   {
827     "id":"9aa4cd15.2e381",
828     "type":"block",
829     "name":"block",
830     "xml":"<block>\n",
831     "atomic":"false",
832     "comments":"",
833     "outputs":1,
834     "x":1302.7144355773926,
835     "y":1611.9289140701294,
836     "z":"613ada42.e46534",
837     "wires":[
838       [
839
840       ]
841     ]
842   },
843   {
844     "id":"eccfefb.8a8691",
845     "type":"execute",
846     "name":"execute RestApiCallNode - delete vgMUX to vBRG vxlan tunnel port",
847     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n  <parameter name='restapiUrl' value='`$tmp.honeycomb.url + $tmp.vpp-honeycomb-url`' />\n    <parameter name='restapiUser' value='`$prop.honeycomb.user`' />\n    <parameter name='restapiPassword' value='`$prop.honeycomb.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='DELETE' />\n    <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n",
848     "comments":"",
849     "outputs":1,
850     "x":598.666690826416,
851     "y":1946.0000019073486,
852     "z":"613ada42.e46534",
853     "wires":[
854       [
855         "4db8b84d.b2ecd8",
856         "ac063462.f4ca28",
857         "5e7c8c01.42d984"
858       ]
859     ]
860   },
861   {
862     "id":"4db8b84d.b2ecd8",
863     "type":"not-found",
864     "name":"not-found",
865     "xml":"<outcome value='not-found'>\n",
866     "comments":"",
867     "outputs":1,
868     "x":1165.9746704101562,
869     "y":1995.9981521591544,
870     "z":"613ada42.e46534",
871     "wires":[
872       [
873         "66bd1389.36824c"
874       ]
875     ]
876   },
877   {
878     "id":"ac063462.f4ca28",
879     "type":"failure",
880     "name":"failure",
881     "xml":"<outcome value='failure'>\n",
882     "comments":"",
883     "outputs":1,
884     "x":1156.9747200012207,
885     "y":1964.498177908361,
886     "z":"613ada42.e46534",
887     "wires":[
888       [
889         "66bd1389.36824c"
890       ]
891     ]
892   },
893   {
894     "id":"5e7c8c01.42d984",
895     "type":"success",
896     "name":"success",
897     "xml":"<outcome value='success'>\n",
898     "comments":"",
899     "outputs":1,
900     "x":1160.7247581481934,
901     "y":1934.8552827835083,
902     "z":"613ada42.e46534",
903     "wires":[
904       [
905         "dae96ea2.d0433"
906       ]
907     ]
908   },
909   {
910     "id":"66bd1389.36824c",
911     "type":"returnFailure",
912     "name":"return failure",
913     "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating md-sal for tunnelxconn-allotted-resource\" />\n",
914     "comments":"",
915     "x":1326.7247581481934,
916     "y":1965.2482017502189,
917     "z":"613ada42.e46534",
918     "wires":[
919
920     ]
921   },
922   {
923     "id":"dae96ea2.d0433",
924     "type":"block",
925     "name":"block",
926     "xml":"<block>\n",
927     "atomic":"false",
928     "comments":"",
929     "outputs":1,
930     "x":1302.3807258605957,
931     "y":1931.0474519729614,
932     "z":"613ada42.e46534",
933     "wires":[
934       [
935
936       ]
937     ]
938   },
939   {
940     "id":"ac80ef88.64417",
941     "type":"set",
942     "name":"set vgMUX to vG and vgMUX to vBRG VXLAN Tunnel Name",
943     "xml":"<set>\n<parameter name='tmp.tunnel-vgMUX-vG-name' value=\"`'vxlanTun' + $tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vg-ip` \" />\n<parameter name='tmp.tunnel-vgMUX-vBRG-name' value=\"`'vxlanTun' + $tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vbrg-wan-ip` \" />\n",
944     "comments":"",
945     "x":571.3333129882812,
946     "y":1552.3332386016846,
947     "z":"613ada42.e46534",
948     "wires":[
949
950     ]
951   },
952   {
953     "id":"fd3c881.1134678",
954     "type":"execute",
955     "name":"execute RestApiCallNode - delete vBRG-vgMUX xconnect",
956     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value=\"`$tmp.honeycomb.url + $tmp.vpp-honeycomb-url + '/v3po:l2' `\" />\n    <parameter name='restapiUser' value='`$prop.honeycomb.user`' />\n    <parameter name='restapiPassword' value='`$prop.honeycomb.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='DELETE' />\n    <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n",
957     "comments":"",
958     "outputs":1,
959     "x":568.666675567627,
960     "y":1849.3331651687622,
961     "z":"613ada42.e46534",
962     "wires":[
963       [
964         "66d058c6.066908",
965         "8879fdd0.457de",
966         "82ba2dc0.22ad1"
967       ]
968     ]
969   },
970   {
971     "id":"82ba2dc0.22ad1",
972     "type":"not-found",
973     "name":"not-found",
974     "xml":"<outcome value='not-found'>\n",
975     "comments":"",
976     "outputs":1,
977     "x":1160.3333892822266,
978     "y":1842.6665658950806,
979     "z":"613ada42.e46534",
980     "wires":[
981       [
982         "700450a1.c41fd"
983       ]
984     ]
985   },
986   {
987     "id":"8879fdd0.457de",
988     "type":"failure",
989     "name":"failure",
990     "xml":"<outcome value='failure'>\n",
991     "comments":"",
992     "outputs":1,
993     "x":1151.333438873291,
994     "y":1811.166591644287,
995     "z":"613ada42.e46534",
996     "wires":[
997       [
998         "700450a1.c41fd"
999       ]
1000     ]
1001   },
1002   {
1003     "id":"66d058c6.066908",
1004     "type":"success",
1005     "name":"success",
1006     "xml":"<outcome value='success'>\n",
1007     "comments":"",
1008     "outputs":1,
1009     "x":1153.4169692993164,
1010     "y":1773.1904611587524,
1011     "z":"613ada42.e46534",
1012     "wires":[
1013       [
1014         "2e7fb96e.6c49e6"
1015       ]
1016     ]
1017   },
1018   {
1019     "id":"700450a1.c41fd",
1020     "type":"returnFailure",
1021     "name":"return failure",
1022     "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating md-sal for tunnelxconn-allotted-resource\" />\n",
1023     "comments":"",
1024     "x":1321.0834770202637,
1025     "y":1811.916615486145,
1026     "z":"613ada42.e46534",
1027     "wires":[
1028
1029     ]
1030   },
1031   {
1032     "id":"2e7fb96e.6c49e6",
1033     "type":"block",
1034     "name":"block",
1035     "xml":"<block>\n",
1036     "atomic":"false",
1037     "comments":"",
1038     "outputs":1,
1039     "x":1296.739444732666,
1040     "y":1777.7158657088876,
1041     "z":"613ada42.e46534",
1042     "wires":[
1043       [
1044
1045       ]
1046     ]
1047   },
1048   {
1049     "id":"a6c06bf0.9acdf8",
1050     "type":"execute",
1051     "name":"generate full vgMUX-vBRG vpp-honeycomb url",
1052     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.vpp-honeycomb`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.vpp-honeycomb-url\"/>\n    <parameter name=\"target\" value=\"{tunnel-name}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.tunnel-vgMUX-vBRG-name`\"/>\n",
1053     "comments":"",
1054     "outputs":1,
1055     "x":532.0000114440918,
1056     "y":1767.6665334701538,
1057     "z":"613ada42.e46534",
1058     "wires":[
1059       [
1060
1061       ]
1062     ]
1063   },
1064   {
1065     "id":"cadbc326.95747",
1066     "type":"execute",
1067     "name":"generate full vgMUX-vG vpp-honeycomb url",
1068     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.vpp-honeycomb`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.vpp-honeycomb-url\"/>\n    <parameter name=\"target\" value=\"{tunnel-name}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.tunnel-vgMUX-vG-name`\"/>\n",
1069     "comments":"",
1070     "outputs":1,
1071     "x":523.6666603088379,
1072     "y":2034.3332509994507,
1073     "z":"613ada42.e46534",
1074     "wires":[
1075       [
1076
1077       ]
1078     ]
1079   },
1080   {
1081     "id":"6017aedf.2d3db",
1082     "type":"get-resource",
1083     "name":"get-resource IPADDR from dmaap DHCP_MAP ",
1084     "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='IPADDR' key=\"SELECT min(ip_addr) ip from DHCP_MAP where mac_addr = $tx-ar.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.brg-wan-mac-address\" pfx=\"tmp.brg-wan-ip\" >\n",
1085     "comments":"",
1086     "outputs":1,
1087     "x":529.5001373291016,
1088     "y":1428.0001401901245,
1089     "z":"613ada42.e46534",
1090     "wires":[
1091       [
1092
1093       ]
1094     ]
1095   },
1096   {
1097     "id":"6a140f25.dc1a2",
1098     "type":"set",
1099     "name":"set tunnelxconn-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vbrg-wan-ip",
1100     "xml":"<set>\n<parameter name='tunnelxconn-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vbrg-wan-ip' value='`$tmp.brg-wan-ip.ip`' />\n",
1101     "comments":"",
1102     "x":694.1428833007812,
1103     "y":1479.9166345596313,
1104     "z":"613ada42.e46534",
1105     "wires":[
1106
1107     ]
1108   },
1109   {
1110     "id":"ef15c78a.710b88",
1111     "type":"comment",
1112     "name":"Get vgmux-mgmt-ip",
1113     "info":"",
1114     "comments":"",
1115     "x":271.0000114440918,
1116     "y":1009.5001254081726,
1117     "z":"613ada42.e46534",
1118     "wires":[
1119
1120     ]
1121   },
1122   {
1123     "id":"ec194f5.ff3e8b",
1124     "type":"call",
1125     "name":"call GENERIC-RESOURCE-API:get-vnf-api-parent-instance",
1126     "xml":"<call module='GENERIC-RESOURCE-API' rpc='get-vnf-api-parent-instance' mode='sync' >\n\n",
1127     "comments":"",
1128     "outputs":1,
1129     "x":572.666633605957,
1130     "y":1125.8331098556519,
1131     "z":"613ada42.e46534",
1132     "wires":[
1133       [
1134
1135       ]
1136     ]
1137   },
1138   {
1139     "id":"9e3a6d03.74879",
1140     "type":"set",
1141     "name":"set tmp.search.parent-service-instance-id to find vgmux-mgmt-ip",
1142     "xml":"<set>\n<parameter name='tmp.search.parent-service-instance-id' value='`$tmp.ar.parent-service-instance-id`' />\n",
1143     "comments":"",
1144     "x":585.3332901000977,
1145     "y":1060.8331365585327,
1146     "z":"613ada42.e46534",
1147     "wires":[
1148
1149     ]
1150   },
1151   {
1152     "id":"3ac2ce1c.2c1862",
1153     "type":"set",
1154     "name":"set vgmux-mgmt-ip",
1155     "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vgmux-mgmt-ip' value='`$parent-service-instance.vnf-topology-information.vnf-parameters[$paramidx].vnf-parameter-value`' />\n",
1156     "comments":"",
1157     "x":1329.3330459594727,
1158     "y":1187.4999752044678,
1159     "z":"613ada42.e46534",
1160     "wires":[
1161
1162     ]
1163   },
1164   {
1165     "id":"a35bc5f0.41f1a8",
1166     "type":"for",
1167     "name":"for vnf-parameters in parent-service-instance",
1168     "xml":"<for index='paramidx' start='0' end='`$parent-service-instance.vnf-topology-information.vnf-parameters_length`' >\n\n\n",
1169     "comments":"",
1170     "outputs":1,
1171     "x":529.3331909179688,
1172     "y":1192.499638557434,
1173     "z":"613ada42.e46534",
1174     "wires":[
1175       [
1176         "cce1cb0f.707e78"
1177       ]
1178     ]
1179   },
1180   {
1181     "id":"cce1cb0f.707e78",
1182     "type":"switchNode",
1183     "name":"switch parameter matches vgmux_private_ip_1",
1184     "xml":"<switch test='`$parent-service-instance.vnf-topology-information.vnf-parameters[$paramidx].vnf-parameter-name == vgmux_private_ip_1`'>\n\n\n",
1185     "comments":"",
1186     "outputs":1,
1187     "x":900.6666717529297,
1188     "y":1191.4996423721313,
1189     "z":"613ada42.e46534",
1190     "wires":[
1191       [
1192         "9d32fcca.bd388"
1193       ]
1194     ]
1195   },
1196   {
1197     "id":"9d32fcca.bd388",
1198     "type":"success",
1199     "name":"true",
1200     "xml":"<outcome value='true'>\n",
1201     "comments":"",
1202     "outputs":1,
1203     "x":1159.3330192565918,
1204     "y":1189.166374206543,
1205     "z":"613ada42.e46534",
1206     "wires":[
1207       [
1208         "3ac2ce1c.2c1862"
1209       ]
1210     ]
1211   },
1212   {
1213     "id":"d65683ee.c2f16",
1214     "type":"comment",
1215     "name":"Get brg-wan-ip",
1216     "info":"",
1217     "comments":"",
1218     "x":264.0000190734863,
1219     "y":1384.00004196167,
1220     "z":"613ada42.e46534",
1221     "wires":[
1222
1223     ]
1224   }
1225 ]