ddb5e8c976fccfa2bb17b455a7dc5b2b4e21fbc5
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_tunnelxconn-topology-operation-delete.json
1 [
2   {
3     "id":"ea73139e.aa0d8",
4     "type":"dgstart",
5     "name":"DGSTART",
6     "outputs":1,
7     "x":169.99998474121094,
8     "y":139.99998474121094,
9     "z":"a8ee551c.260b18",
10     "wires":[
11       [
12         "a9eba997.befca8"
13       ]
14     ]
15   },
16   {
17     "id":"a9eba997.befca8",
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":266.23806381225586,
26     "y":200.9523754119873,
27     "z":"a8ee551c.260b18",
28     "wires":[
29       [
30         "b47043f8.57df9"
31       ]
32     ]
33   },
34   {
35     "id":"b47043f8.57df9",
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":312.154842376709,
42     "y":236.19043064117432,
43     "z":"a8ee551c.260b18",
44     "wires":[
45       [
46         "40b778a9.840de8"
47       ]
48     ]
49   },
50   {
51     "id":"40b778a9.840de8",
52     "type":"block",
53     "name":"block : atomic",
54     "xml":"<block atomic=\"true\">",
55     "atomic":"true",
56     "comments":"",
57     "outputs":1,
58     "x":220.47617721557617,
59     "y":379.5237727165222,
60     "z":"a8ee551c.260b18",
61     "wires":[
62       [
63         "600ff80a.8e8918",
64         "a0e819d7.762748",
65         "8c7ac12e.10e65",
66         "2818a1dd.dc391e",
67         "40e08035.d84a1",
68         "47849254.832adc",
69         "4fad0ac6.b44224",
70         "5f3b0feb.4717",
71         "157cd0d2.981cff",
72         "34221afc.d56f56",
73         "5bd0792d.9a7738",
74         "88f9c974.152668",
75         "aced1738.f21668",
76         "9bfc16d5.7453a8",
77         "7935a8ba.39dbf8",
78         "106179bd.fb0526",
79         "3cf8239f.21b10c",
80         "6a325db2.8fa5c4",
81         "e4d50255.70c72",
82         "e6105de7.7a399",
83         "d18a9318.5f525"
84       ]
85     ]
86   },
87   {
88     "id":"a0e819d7.762748",
89     "type":"returnSuccess",
90     "name":"return success",
91     "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",
92     "comments":"",
93     "x":474.0001449584961,
94     "y":1813.5478219985962,
95     "z":"a8ee551c.260b18",
96     "wires":[
97
98     ]
99   },
100   {
101     "id":"600ff80a.8e8918",
102     "type":"set",
103     "name":"set output to api handler",
104     "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",
105     "comments":"",
106     "x":502.7540588378906,
107     "y":1777.67036819458,
108     "z":"a8ee551c.260b18",
109     "wires":[
110
111     ]
112   },
113   {
114     "id":"157cd0d2.981cff",
115     "type":"set",
116     "name":"set allotted-resource-oper-status",
117     "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",
118     "comments":"",
119     "x":526.7542037963867,
120     "y":760.0513849258423,
121     "z":"a8ee551c.260b18",
122     "wires":[
123
124     ]
125   },
126   {
127     "id":"2818a1dd.dc391e",
128     "type":"set",
129     "name":"set tmp.ar.self-link",
130     "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",
131     "comments":"",
132     "x":482.7380485534668,
133     "y":353.3333101272583,
134     "z":"a8ee551c.260b18",
135     "wires":[
136
137     ]
138   },
139   {
140     "id":"8c7ac12e.10e65",
141     "type":"set",
142     "name":"set tmp.ar.allotted-resource-id,etc",
143     "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",
144     "comments":"",
145     "x":529.9973106384277,
146     "y":319.5925760269165,
147     "z":"a8ee551c.260b18",
148     "wires":[
149
150     ]
151   },
152   {
153     "id":"40e08035.d84a1",
154     "type":"execute",
155     "name":"execute Properties",
156     "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",
157     "comments":"",
158     "outputs":1,
159     "x":488.99340438842773,
160     "y":389.2315092086792,
161     "z":"a8ee551c.260b18",
162     "wires":[
163       [
164
165       ]
166     ]
167   },
168   {
169     "id":"4fad0ac6.b44224",
170     "type":"execute",
171     "name":"execute RestApiCallNode - Get AR by id",
172     "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",
173     "comments":"",
174     "outputs":1,
175     "x":551.5187377929688,
176     "y":550.4594764709473,
177     "z":"a8ee551c.260b18",
178     "wires":[
179       [
180         "c606076d.0a5aa8",
181         "73ac4eb1.d24c9"
182       ]
183     ]
184   },
185   {
186     "id":"47849254.832adc",
187     "type":"execute",
188     "name":"generate allotted-resource url",
189     "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",
190     "comments":"",
191     "outputs":1,
192     "x":517.0648384094238,
193     "y":449.01721382141113,
194     "z":"a8ee551c.260b18",
195     "wires":[
196       [
197
198       ]
199     ]
200   },
201   {
202     "id":"c606076d.0a5aa8",
203     "type":"success",
204     "name":"success",
205     "xml":"<outcome value='success'>\n",
206     "comments":"",
207     "outputs":1,
208     "x":808.8148765563965,
209     "y":549.2672369480133,
210     "z":"a8ee551c.260b18",
211     "wires":[
212       [
213         "c40b39d8.bef118"
214       ]
215     ]
216   },
217   {
218     "id":"85caba1e.01c008",
219     "type":"not-found",
220     "name":"not-found",
221     "xml":"<outcome value='not-found'>\n",
222     "comments":"",
223     "outputs":1,
224     "x":829.8373146057129,
225     "y":956.4323171600699,
226     "z":"a8ee551c.260b18",
227     "wires":[
228       [
229         "a57c0f9c.f0931"
230       ]
231     ]
232   },
233   {
234     "id":"f372539f.904d8",
235     "type":"failure",
236     "name":"failure",
237     "xml":"<outcome value='failure'>\n",
238     "comments":"",
239     "outputs":1,
240     "x":820.8373641967773,
241     "y":924.9323429092765,
242     "z":"a8ee551c.260b18",
243     "wires":[
244       [
245         "a57c0f9c.f0931"
246       ]
247     ]
248   },
249   {
250     "id":"5e15025b.c0d5dc",
251     "type":"success",
252     "name":"success",
253     "xml":"<outcome value='success'>\n",
254     "comments":"",
255     "outputs":1,
256     "x":824.58740234375,
257     "y":895.2894477844238,
258     "z":"a8ee551c.260b18",
259     "wires":[
260       [
261         "1b40917a.94ce1f"
262       ]
263     ]
264   },
265   {
266     "id":"a57c0f9c.f0931",
267     "type":"returnFailure",
268     "name":"return failure",
269     "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",
270     "comments":"",
271     "x":990.58740234375,
272     "y":925.6823667511344,
273     "z":"a8ee551c.260b18",
274     "wires":[
275
276     ]
277   },
278   {
279     "id":"c40b39d8.bef118",
280     "type":"block",
281     "name":"block: atomic",
282     "xml":"<block atomic=\"true\">\n",
283     "atomic":"false",
284     "comments":"",
285     "outputs":1,
286     "x":989.8148307800293,
287     "y":549.7671864032745,
288     "z":"a8ee551c.260b18",
289     "wires":[
290       [
291         "932cdb22.8bb3d8",
292         "c0595193.968e7"
293       ]
294     ]
295   },
296   {
297     "id":"932cdb22.8bb3d8",
298     "type":"switchNode",
299     "name":"switch tx length",
300     "xml":"<switch test='`$mdsal-ar.tunnelxconn-allotted-resource_length`'>\n",
301     "comments":"",
302     "outputs":1,
303     "x":1235.672077178955,
304     "y":584.0529496669769,
305     "z":"a8ee551c.260b18",
306     "wires":[
307       [
308         "71ef54d.59862ac"
309       ]
310     ]
311   },
312   {
313     "id":"71ef54d.59862ac",
314     "type":"other",
315     "name":"outcome 1",
316     "xml":"<outcome value='1'>\n",
317     "comments":"",
318     "outputs":1,
319     "x":1426.6720809936523,
320     "y":584.0529472827911,
321     "z":"a8ee551c.260b18",
322     "wires":[
323       [
324         "9f15e051.0c87e"
325       ]
326     ]
327   },
328   {
329     "id":"ae393778.e6a318",
330     "type":"set",
331     "name":"set tx-ar from get",
332     "xml":"<set>\n<parameter name='tx-ar.' value='$mdsal-ar.tunnelxconn-allotted-resource[0].' />\n",
333     "comments":"",
334     "x":1826.5292167663574,
335     "y":584.6243715286255,
336     "z":"a8ee551c.260b18",
337     "wires":[
338
339     ]
340   },
341   {
342     "id":"9f15e051.0c87e",
343     "type":"block",
344     "name":"block: atomic",
345     "xml":"<block atomic='true'>\n",
346     "atomic":"false",
347     "comments":"",
348     "outputs":1,
349     "x":1597.5290641784668,
350     "y":584.6244163513184,
351     "z":"a8ee551c.260b18",
352     "wires":[
353       [
354         "ae393778.e6a318",
355         "1a495e95.266f41",
356         "b3aa54ab.591ac8"
357       ]
358     ]
359   },
360   {
361     "id":"1a495e95.266f41",
362     "type":"set",
363     "name":"set oper-status",
364     "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",
365     "comments":"",
366     "x":1824.5294609069824,
367     "y":652.0529356002808,
368     "z":"a8ee551c.260b18",
369     "wires":[
370
371     ]
372   },
373   {
374     "id":"a8b0bc95.97326",
375     "type":"comment",
376     "name":"GET tunnelxconn-allotted-resource from mdsal",
377     "info":"",
378     "comments":"",
379     "x":576.8148002624512,
380     "y":513.7671773433685,
381     "z":"a8ee551c.260b18",
382     "wires":[
383
384     ]
385   },
386   {
387     "id":"b3aa54ab.591ac8",
388     "type":"switchNode",
389     "name":"switch order-status",
390     "xml":"<switch test='`$tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
391     "comments":"",
392     "outputs":1,
393     "x":1834.529239654541,
394     "y":617.6243696212769,
395     "z":"a8ee551c.260b18",
396     "wires":[
397       [
398         "2210dcb8.30fd74",
399         "ac6b248b.9ba698"
400       ]
401     ]
402   },
403   {
404     "id":"2210dcb8.30fd74",
405     "type":"outcome",
406     "name":"outcome Created",
407     "xml":"<outcome value='Created'>\n",
408     "comments":"",
409     "outputs":1,
410     "x":2046.1291961669922,
411     "y":578.6243696212769,
412     "z":"a8ee551c.260b18",
413     "wires":[
414       [
415         "2245c8d2.97a6a8"
416       ]
417     ]
418   },
419   {
420     "id":"ac6b248b.9ba698",
421     "type":"outcome",
422     "name":"outcome Other",
423     "xml":"<outcome value='Other'>\n",
424     "comments":"",
425     "outputs":1,
426     "x":2071.8435707092285,
427     "y":614.052960395813,
428     "z":"a8ee551c.260b18",
429     "wires":[
430       [
431         "2245c8d2.97a6a8"
432       ]
433     ]
434   },
435   {
436     "id":"b5a69050.e528d",
437     "type":"comment",
438     "name":"Set allotted-resource-identifiers",
439     "info":"",
440     "comments":"",
441     "x":532.338623046875,
442     "y":604.3386306762695,
443     "z":"a8ee551c.260b18",
444     "wires":[
445
446     ]
447   },
448   {
449     "id":"c0595193.968e7",
450     "type":"set",
451     "name":"save backup copy of mdsal-ar for rollback",
452     "xml":"<set>\n<parameter name='bk-tx-ar' value='$mdsal-ar.' />\n",
453     "comments":"",
454     "x":1315.3864097595215,
455     "y":549.7672784328461,
456     "z":"a8ee551c.260b18",
457     "wires":[
458
459     ]
460   },
461   {
462     "id":"95c7c8f7.2ba9f8",
463     "type":"comment",
464     "name":"Create urls for restapi",
465     "info":"",
466     "comments":"",
467     "x":487.95764541625977,
468     "y":418.62434101104736,
469     "z":"a8ee551c.260b18",
470     "wires":[
471
472     ]
473   },
474   {
475     "id":"1b40917a.94ce1f",
476     "type":"block",
477     "name":"block",
478     "xml":"<block>\n",
479     "atomic":"false",
480     "comments":"",
481     "outputs":1,
482     "x":966.2433700561523,
483     "y":891.481616973877,
484     "z":"a8ee551c.260b18",
485     "wires":[
486       [
487
488       ]
489     ]
490   },
491   {
492     "id":"11fbb95a.26adc7",
493     "type":"comment",
494     "name":"TO DO: vnf/put parent",
495     "info":"",
496     "comments":"",
497     "x":500.2433624267578,
498     "y":825.4815387725828,
499     "z":"a8ee551c.260b18",
500     "wires":[
501
502     ]
503   },
504   {
505     "id":"5f3b0feb.4717",
506     "type":"execute",
507     "name":"execute getTime",
508     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
509     "comments":"",
510     "outputs":1,
511     "x":474.2433662414551,
512     "y":721.4815397262573,
513     "z":"a8ee551c.260b18",
514     "wires":[
515       [
516
517       ]
518     ]
519   },
520   {
521     "id":"73ac4eb1.d24c9",
522     "type":"other",
523     "name":"other",
524     "xml":"<outcome value='Other'>\n",
525     "comments":"",
526     "outputs":1,
527     "x":808.5766716003418,
528     "y":585.4814097881317,
529     "z":"a8ee551c.260b18",
530     "wires":[
531       [
532         "251543e7.8a7e7c"
533       ]
534     ]
535   },
536   {
537     "id":"251543e7.8a7e7c",
538     "type":"block",
539     "name":"block: atomic",
540     "xml":"<block atomic=\"true\">\n",
541     "atomic":"false",
542     "comments":"",
543     "outputs":1,
544     "x":988.5766220092773,
545     "y":586.1479604244232,
546     "z":"a8ee551c.260b18",
547     "wires":[
548       [
549
550       ]
551     ]
552   },
553   {
554     "id":"34221afc.d56f56",
555     "type":"set",
556     "name":"set id",
557     "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.` \" />",
558     "comments":"",
559     "x":457.243408203125,
560     "y":641.1481513977051,
561     "z":"a8ee551c.260b18",
562     "wires":[
563
564     ]
565   },
566   {
567     "id":"2245c8d2.97a6a8",
568     "type":"block",
569     "name":"block",
570     "xml":"<block>\n",
571     "atomic":"false",
572     "comments":"",
573     "outputs":1,
574     "x":2260.599712371826,
575     "y":580.0000038146973,
576     "z":"a8ee551c.260b18",
577     "wires":[
578       [
579
580       ]
581     ]
582   },
583   {
584     "id":"5bd0792d.9a7738",
585     "type":"execute",
586     "name":"execute RestApiCallNode - PUT AR by id",
587     "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",
588     "comments":"",
589     "outputs":1,
590     "x":557,
591     "y":906.0000095367432,
592     "z":"a8ee551c.260b18",
593     "wires":[
594       [
595         "5e15025b.c0d5dc",
596         "f372539f.904d8",
597         "85caba1e.01c008"
598       ]
599     ]
600   },
601   {
602     "id":"88f9c974.152668",
603     "type":"set",
604     "name":"clear tx-ar-assignments",
605     "xml":"<set>\n<parameter name='tx-ar-assignments.' value=\"\" />\n\n\n\n",
606     "comments":"",
607     "x":500.99998474121094,
608     "y":791.9999847412109,
609     "z":"a8ee551c.260b18",
610     "wires":[
611
612     ]
613   },
614   {
615     "id":"d18a9318.5f525",
616     "type":"execute",
617     "name":"execute RestApiCallNode - delete vgMUX to vG vxlan tunnel port",
618     "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",
619     "comments":"",
620     "outputs":1,
621     "x":635.6668434143066,
622     "y":1719.9998292922974,
623     "z":"a8ee551c.260b18",
624     "wires":[
625       [
626         "4303ed2.181d014",
627         "88cc7753.8d23c8",
628         "7e6dedf7.4245a4"
629       ]
630     ]
631   },
632   {
633     "id":"4303ed2.181d014",
634     "type":"not-found",
635     "name":"not-found",
636     "xml":"<outcome value='not-found'>\n",
637     "comments":"",
638     "outputs":1,
639     "x":1204.641429901123,
640     "y":1759.9982160553336,
641     "z":"a8ee551c.260b18",
642     "wires":[
643       [
644         "9296d8d2.051ff8"
645       ]
646     ]
647   },
648   {
649     "id":"88cc7753.8d23c8",
650     "type":"failure",
651     "name":"failure",
652     "xml":"<outcome value='failure'>\n",
653     "comments":"",
654     "outputs":1,
655     "x":1195.6414794921875,
656     "y":1728.4982418045402,
657     "z":"a8ee551c.260b18",
658     "wires":[
659       [
660         "9296d8d2.051ff8"
661       ]
662     ]
663   },
664   {
665     "id":"7e6dedf7.4245a4",
666     "type":"success",
667     "name":"success",
668     "xml":"<outcome value='success'>\n",
669     "comments":"",
670     "outputs":1,
671     "x":1199.3915176391602,
672     "y":1698.8553466796875,
673     "z":"a8ee551c.260b18",
674     "wires":[
675       [
676         "d92543a7.9c0ee"
677       ]
678     ]
679   },
680   {
681     "id":"9296d8d2.051ff8",
682     "type":"returnFailure",
683     "name":"return failure",
684     "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",
685     "comments":"",
686     "x":1365.3915176391602,
687     "y":1729.248265646398,
688     "z":"a8ee551c.260b18",
689     "wires":[
690
691     ]
692   },
693   {
694     "id":"d92543a7.9c0ee",
695     "type":"block",
696     "name":"block",
697     "xml":"<block>\n",
698     "atomic":"false",
699     "comments":"",
700     "outputs":1,
701     "x":1341.0474853515625,
702     "y":1695.0475158691406,
703     "z":"a8ee551c.260b18",
704     "wires":[
705       [
706
707       ]
708     ]
709   },
710   {
711     "id":"7935a8ba.39dbf8",
712     "type":"execute",
713     "name":"generate full vgMUX-vG vpp-honeycomb url",
714     "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",
715     "comments":"",
716     "outputs":1,
717     "x":563.1111030578613,
718     "y":1228.3335027694702,
719     "z":"a8ee551c.260b18",
720     "wires":[
721       [
722
723       ]
724     ]
725   },
726   {
727     "id":"aced1738.f21668",
728     "type":"execute",
729     "name":"generate honeycomb-url to vgMUX",
730     "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-bearer-ip`\"/>\n",
731     "comments":"",
732     "outputs":1,
733     "x":536.7778472900391,
734     "y":1052.3334283828735,
735     "z":"a8ee551c.260b18",
736     "wires":[
737       [
738
739       ]
740     ]
741   },
742   {
743     "id":"106179bd.fb0526",
744     "type":"execute",
745     "name":"execute RestApiCallNode - delete vG-vgMUX xconnect",
746     "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",
747     "comments":"",
748     "outputs":1,
749     "x":599.6669960021973,
750     "y":1307.5482215881348,
751     "z":"a8ee551c.260b18",
752     "wires":[
753       [
754         "9817b85e.c00968",
755         "5426f591.bca7bc",
756         "7997cf81.75ec9"
757       ]
758     ]
759   },
760   {
761     "id":"9817b85e.c00968",
762     "type":"not-found",
763     "name":"not-found",
764     "xml":"<outcome value='not-found'>\n",
765     "comments":"",
766     "outputs":1,
767     "x":1208.3083686828613,
768     "y":1287.546325109899,
769     "z":"a8ee551c.260b18",
770     "wires":[
771       [
772         "4f542247.1b24dc"
773       ]
774     ]
775   },
776   {
777     "id":"5426f591.bca7bc",
778     "type":"failure",
779     "name":"failure",
780     "xml":"<outcome value='failure'>\n",
781     "comments":"",
782     "outputs":1,
783     "x":1199.3084182739258,
784     "y":1256.0463508591056,
785     "z":"a8ee551c.260b18",
786     "wires":[
787       [
788         "4f542247.1b24dc"
789       ]
790     ]
791   },
792   {
793     "id":"7997cf81.75ec9",
794     "type":"success",
795     "name":"success",
796     "xml":"<outcome value='success'>\n",
797     "comments":"",
798     "outputs":1,
799     "x":1203.0584564208984,
800     "y":1226.403455734253,
801     "z":"a8ee551c.260b18",
802     "wires":[
803       [
804         "dddf27f3.7e4fd8"
805       ]
806     ]
807   },
808   {
809     "id":"4f542247.1b24dc",
810     "type":"returnFailure",
811     "name":"return failure",
812     "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",
813     "comments":"",
814     "x":1369.0584564208984,
815     "y":1256.7963747009635,
816     "z":"a8ee551c.260b18",
817     "wires":[
818
819     ]
820   },
821   {
822     "id":"dddf27f3.7e4fd8",
823     "type":"block",
824     "name":"block",
825     "xml":"<block>\n",
826     "atomic":"false",
827     "comments":"",
828     "outputs":1,
829     "x":1344.7144241333008,
830     "y":1222.595624923706,
831     "z":"a8ee551c.260b18",
832     "wires":[
833       [
834
835       ]
836     ]
837   },
838   {
839     "id":"e4d50255.70c72",
840     "type":"execute",
841     "name":"execute RestApiCallNode - delete vgMUX to vBRG vxlan tunnel port",
842     "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",
843     "comments":"",
844     "outputs":1,
845     "x":640.6666793823242,
846     "y":1556.6667127609253,
847     "z":"a8ee551c.260b18",
848     "wires":[
849       [
850         "8d08617d.8adad",
851         "62e37b80.0165a4",
852         "d4f24bfb.487518"
853       ]
854     ]
855   },
856   {
857     "id":"8d08617d.8adad",
858     "type":"not-found",
859     "name":"not-found",
860     "xml":"<outcome value='not-found'>\n",
861     "comments":"",
862     "outputs":1,
863     "x":1207.9746589660645,
864     "y":1606.664863012731,
865     "z":"a8ee551c.260b18",
866     "wires":[
867       [
868         "fd96ad61.cd8bb"
869       ]
870     ]
871   },
872   {
873     "id":"62e37b80.0165a4",
874     "type":"failure",
875     "name":"failure",
876     "xml":"<outcome value='failure'>\n",
877     "comments":"",
878     "outputs":1,
879     "x":1198.974708557129,
880     "y":1575.1648887619376,
881     "z":"a8ee551c.260b18",
882     "wires":[
883       [
884         "fd96ad61.cd8bb"
885       ]
886     ]
887   },
888   {
889     "id":"d4f24bfb.487518",
890     "type":"success",
891     "name":"success",
892     "xml":"<outcome value='success'>\n",
893     "comments":"",
894     "outputs":1,
895     "x":1202.7247467041016,
896     "y":1545.521993637085,
897     "z":"a8ee551c.260b18",
898     "wires":[
899       [
900         "fcd34256.847db"
901       ]
902     ]
903   },
904   {
905     "id":"fd96ad61.cd8bb",
906     "type":"returnFailure",
907     "name":"return failure",
908     "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",
909     "comments":"",
910     "x":1368.7247467041016,
911     "y":1575.9149126037955,
912     "z":"a8ee551c.260b18",
913     "wires":[
914
915     ]
916   },
917   {
918     "id":"fcd34256.847db",
919     "type":"block",
920     "name":"block",
921     "xml":"<block>\n",
922     "atomic":"false",
923     "comments":"",
924     "outputs":1,
925     "x":1344.380714416504,
926     "y":1541.714162826538,
927     "z":"a8ee551c.260b18",
928     "wires":[
929       [
930
931       ]
932     ]
933   },
934   {
935     "id":"9bfc16d5.7453a8",
936     "type":"set",
937     "name":"set vgMUX to vG and vgMUX to vBRG VXLAN Tunnel Name",
938     "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.brg-wan-ip-address` \" />\n",
939     "comments":"",
940     "x":617.3333129882812,
941     "y":1168.333236694336,
942     "z":"a8ee551c.260b18",
943     "wires":[
944
945     ]
946   },
947   {
948     "id":"6a325db2.8fa5c4",
949     "type":"execute",
950     "name":"execute RestApiCallNode - delete vBRG-vgMUX xconnect",
951     "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",
952     "comments":"",
953     "outputs":1,
954     "x":610.6666641235352,
955     "y":1459.9998760223389,
956     "z":"a8ee551c.260b18",
957     "wires":[
958       [
959         "15eae1c3.0d7d3e",
960         "6321faa9.57d8c4",
961         "a8ff52e4.8de23"
962       ]
963     ]
964   },
965   {
966     "id":"a8ff52e4.8de23",
967     "type":"not-found",
968     "name":"not-found",
969     "xml":"<outcome value='not-found'>\n",
970     "comments":"",
971     "outputs":1,
972     "x":1202.3333778381348,
973     "y":1453.3332767486572,
974     "z":"a8ee551c.260b18",
975     "wires":[
976       [
977         "4de064c3.4a5bec"
978       ]
979     ]
980   },
981   {
982     "id":"6321faa9.57d8c4",
983     "type":"failure",
984     "name":"failure",
985     "xml":"<outcome value='failure'>\n",
986     "comments":"",
987     "outputs":1,
988     "x":1193.3334274291992,
989     "y":1421.8333024978638,
990     "z":"a8ee551c.260b18",
991     "wires":[
992       [
993         "4de064c3.4a5bec"
994       ]
995     ]
996   },
997   {
998     "id":"15eae1c3.0d7d3e",
999     "type":"success",
1000     "name":"success",
1001     "xml":"<outcome value='success'>\n",
1002     "comments":"",
1003     "outputs":1,
1004     "x":1195.4169578552246,
1005     "y":1383.857172012329,
1006     "z":"a8ee551c.260b18",
1007     "wires":[
1008       [
1009         "9ac5b12d.70f0f"
1010       ]
1011     ]
1012   },
1013   {
1014     "id":"4de064c3.4a5bec",
1015     "type":"returnFailure",
1016     "name":"return failure",
1017     "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",
1018     "comments":"",
1019     "x":1363.0834655761719,
1020     "y":1422.5833263397217,
1021     "z":"a8ee551c.260b18",
1022     "wires":[
1023
1024     ]
1025   },
1026   {
1027     "id":"9ac5b12d.70f0f",
1028     "type":"block",
1029     "name":"block",
1030     "xml":"<block>\n",
1031     "atomic":"false",
1032     "comments":"",
1033     "outputs":1,
1034     "x":1338.7394332885742,
1035     "y":1388.3825765624642,
1036     "z":"a8ee551c.260b18",
1037     "wires":[
1038       [
1039
1040       ]
1041     ]
1042   },
1043   {
1044     "id":"3cf8239f.21b10c",
1045     "type":"execute",
1046     "name":"generate full vgMUX-vBRG vpp-honeycomb url",
1047     "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",
1048     "comments":"",
1049     "outputs":1,
1050     "x":574,
1051     "y":1378.3332443237305,
1052     "z":"a8ee551c.260b18",
1053     "wires":[
1054       [
1055
1056       ]
1057     ]
1058   },
1059   {
1060     "id":"e6105de7.7a399",
1061     "type":"execute",
1062     "name":"generate full vgMUX-vG vpp-honeycomb url",
1063     "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",
1064     "comments":"",
1065     "outputs":1,
1066     "x":565.6666488647461,
1067     "y":1644.9999618530273,
1068     "z":"a8ee551c.260b18",
1069     "wires":[
1070       [
1071
1072       ]
1073     ]
1074   },
1075   {
1076     "id":"8f2371ec.110dd",
1077     "type":"comment",
1078     "name":"TO DO: get brg-wan-ip from dmaap",
1079     "info":"",
1080     "comments":"",
1081     "x":530.0000610351562,
1082     "y":1110.0000324249268,
1083     "z":"a8ee551c.260b18",
1084     "wires":[
1085
1086     ]
1087   },
1088   {
1089     "id":"81a5da98.f08d38",
1090     "type":"comment",
1091     "name":"TO DO: get onap-oam ip - workaround over write vgmux-bearerr with onap-oam ip",
1092     "info":"",
1093     "comments":"",
1094     "x":668.0000152587891,
1095     "y":1002.0001277923584,
1096     "z":"a8ee551c.260b18",
1097     "wires":[
1098
1099     ]
1100   }
1101 ]