Update brg topo deactivate
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_brg-topology-operation-deactivate.json
1 [
2   {
3     "id":"b1368b6a.79f1a8",
4     "type":"dgstart",
5     "name":"DGSTART",
6     "outputs":1,
7     "x":190,
8     "y":152,
9     "z":"cfbd0a6c.d9ad88",
10     "wires":[
11       [
12         "12b1f941.e5c857"
13       ]
14     ]
15   },
16   {
17     "id":"12b1f941.e5c857",
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":286.2380790710449,
26     "y":212.95239067077637,
27     "z":"cfbd0a6c.d9ad88",
28     "wires":[
29       [
30         "ead35ce1.7590c"
31       ]
32     ]
33   },
34   {
35     "id":"ead35ce1.7590c",
36     "type":"method",
37     "name":"brg-topology-operation-deactivate",
38     "xml":"<method rpc='brg-topology-operation-deactivate' mode='sync'>\n",
39     "comments":"",
40     "outputs":1,
41     "x":332.15485763549805,
42     "y":248.19044589996338,
43     "z":"cfbd0a6c.d9ad88",
44     "wires":[
45       [
46         "43ac6a92.ae5614"
47       ]
48     ]
49   },
50   {
51     "id":"43ac6a92.ae5614",
52     "type":"block",
53     "name":"block : atomic",
54     "xml":"<block atomic=\"true\">",
55     "atomic":"true",
56     "comments":"",
57     "outputs":1,
58     "x":240.47619247436523,
59     "y":391.5237879753113,
60     "z":"cfbd0a6c.d9ad88",
61     "wires":[
62       [
63         "5240106e.51f63",
64         "4041ad49.6fc0d4",
65         "8ab3e562.da6e08",
66         "93b0d070.cd7e4",
67         "1ece8431.af7f1c",
68         "ed70c5f.ebd7238",
69         "200bf55c.cf936a",
70         "1b6f2d6b.b6acc3",
71         "2a34aedb.e483f2",
72         "b55b0b52.943508",
73         "5aa308ce.dba788",
74         "626eb0d9.80b5f",
75         "5cd8e25b.be574c",
76         "7f3389ec.e8f508",
77         "eafe9188.1bdec",
78         "cfdbb6d9.39b868"
79       ]
80     ]
81   },
82   {
83     "id":"4041ad49.6fc0d4",
84     "type":"returnSuccess",
85     "name":"return success",
86     "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",
87     "comments":"",
88     "x":499.00007247924805,
89     "y":1351.2144346237183,
90     "z":"cfbd0a6c.d9ad88",
91     "wires":[
92
93     ]
94   },
95   {
96     "id":"5240106e.51f63",
97     "type":"set",
98     "name":"set output to api handler",
99     "xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='brg-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $brg-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
100     "comments":"",
101     "x":527.7539863586426,
102     "y":1315.3369808197021,
103     "z":"cfbd0a6c.d9ad88",
104     "wires":[
105
106     ]
107   },
108   {
109     "id":"b55b0b52.943508",
110     "type":"set",
111     "name":"set allotted-resource-oper-status",
112     "xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-topology-operation-input.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
113     "comments":"",
114     "x":546.7542419433594,
115     "y":772.0514221191406,
116     "z":"cfbd0a6c.d9ad88",
117     "wires":[
118
119     ]
120   },
121   {
122     "id":"93b0d070.cd7e4",
123     "type":"set",
124     "name":"set tmp.ar.self-link",
125     "xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:brg-allotted-resources/brg-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/brg-topology/'` \" />\n\n",
126     "comments":"",
127     "x":502.73806381225586,
128     "y":365.33332538604736,
129     "z":"cfbd0a6c.d9ad88",
130     "wires":[
131
132     ]
133   },
134   {
135     "id":"8ab3e562.da6e08",
136     "type":"set",
137     "name":"set tmp.ar.allotted-resource-id,etc",
138     "xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$brg-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$brg-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.brg-vnf-id' value='`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`' />\n\n\n",
139     "comments":"",
140     "x":549.9973258972168,
141     "y":331.59259128570557,
142     "z":"cfbd0a6c.d9ad88",
143     "wires":[
144
145     ]
146   },
147   {
148     "id":"1ece8431.af7f1c",
149     "type":"execute",
150     "name":"execute Properties",
151     "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",
152     "comments":"",
153     "outputs":1,
154     "x":508.9934196472168,
155     "y":401.23152446746826,
156     "z":"cfbd0a6c.d9ad88",
157     "wires":[
158       [
159
160       ]
161     ]
162   },
163   {
164     "id":"200bf55c.cf936a",
165     "type":"execute",
166     "name":"execute RestApiCallNode - Get AR by id",
167     "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",
168     "comments":"",
169     "outputs":1,
170     "x":571.5187530517578,
171     "y":562.4594917297363,
172     "z":"cfbd0a6c.d9ad88",
173     "wires":[
174       [
175         "f39b8deb.2497f",
176         "d49f2a4f.e657d8"
177       ]
178     ]
179   },
180   {
181     "id":"ed70c5f.ebd7238",
182     "type":"execute",
183     "name":"generate allotted-resource url",
184     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.brg-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",
185     "comments":"",
186     "outputs":1,
187     "x":537.0648536682129,
188     "y":461.0172290802002,
189     "z":"cfbd0a6c.d9ad88",
190     "wires":[
191       [
192
193       ]
194     ]
195   },
196   {
197     "id":"f39b8deb.2497f",
198     "type":"success",
199     "name":"success",
200     "xml":"<outcome value='success'>\n",
201     "comments":"",
202     "outputs":1,
203     "x":828.8148918151855,
204     "y":561.2672522068024,
205     "z":"cfbd0a6c.d9ad88",
206     "wires":[
207       [
208         "ce9ddc22.dec85"
209       ]
210     ]
211   },
212   {
213     "id":"1b6f2d6b.b6acc3",
214     "type":"execute",
215     "name":"execute RestApiCallNode - PUT AR by id",
216     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.brg.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",
217     "comments":"",
218     "outputs":1,
219     "x":579.5293121337891,
220     "y":915.4341316223145,
221     "z":"cfbd0a6c.d9ad88",
222     "wires":[
223       [
224         "db318a86.7bd678",
225         "474202ef.7e725c",
226         "926f3792.9db948"
227       ]
228     ]
229   },
230   {
231     "id":"db318a86.7bd678",
232     "type":"not-found",
233     "name":"not-found",
234     "xml":"<outcome value='not-found'>\n",
235     "comments":"",
236     "outputs":1,
237     "x":849.837329864502,
238     "y":968.432332418859,
239     "z":"cfbd0a6c.d9ad88",
240     "wires":[
241       [
242         "5154d5ef.e6843c"
243       ]
244     ]
245   },
246   {
247     "id":"474202ef.7e725c",
248     "type":"failure",
249     "name":"failure",
250     "xml":"<outcome value='failure'>\n",
251     "comments":"",
252     "outputs":1,
253     "x":840.8373794555664,
254     "y":936.9323581680655,
255     "z":"cfbd0a6c.d9ad88",
256     "wires":[
257       [
258         "5154d5ef.e6843c"
259       ]
260     ]
261   },
262   {
263     "id":"926f3792.9db948",
264     "type":"success",
265     "name":"success",
266     "xml":"<outcome value='success'>\n",
267     "comments":"",
268     "outputs":1,
269     "x":844.5874176025391,
270     "y":907.2894630432129,
271     "z":"cfbd0a6c.d9ad88",
272     "wires":[
273       [
274         "8791e6de.a42b98"
275       ]
276     ]
277   },
278   {
279     "id":"5154d5ef.e6843c",
280     "type":"returnFailure",
281     "name":"return failure",
282     "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 brg-allotted-resource\" />\n",
283     "comments":"",
284     "x":1010.5874176025391,
285     "y":937.6823820099235,
286     "z":"cfbd0a6c.d9ad88",
287     "wires":[
288
289     ]
290   },
291   {
292     "id":"ce9ddc22.dec85",
293     "type":"block",
294     "name":"block: atomic",
295     "xml":"<block atomic=\"true\">\n",
296     "atomic":"false",
297     "comments":"",
298     "outputs":1,
299     "x":1009.8148460388184,
300     "y":561.7672016620636,
301     "z":"cfbd0a6c.d9ad88",
302     "wires":[
303       [
304         "ff1004f9.28ea78",
305         "19849de2.3d4d92"
306       ]
307     ]
308   },
309   {
310     "id":"ff1004f9.28ea78",
311     "type":"switchNode",
312     "name":"switch brg length",
313     "xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n",
314     "comments":"",
315     "outputs":1,
316     "x":1255.6720924377441,
317     "y":596.052964925766,
318     "z":"cfbd0a6c.d9ad88",
319     "wires":[
320       [
321         "458ac54.5835d3c"
322       ]
323     ]
324   },
325   {
326     "id":"458ac54.5835d3c",
327     "type":"other",
328     "name":"outcome 1",
329     "xml":"<outcome value='1'>\n",
330     "comments":"",
331     "outputs":1,
332     "x":1446.6720962524414,
333     "y":596.0529625415802,
334     "z":"cfbd0a6c.d9ad88",
335     "wires":[
336       [
337         "136fba4.57e3046"
338       ]
339     ]
340   },
341   {
342     "id":"1ea71bb3.19d8e4",
343     "type":"set",
344     "name":"set brg-ar from get",
345     "xml":"<set>\n<parameter name='brg-ar.' value='$mdsal-ar.brg-allotted-resource[0].' />\n",
346     "comments":"",
347     "x":1846.5292320251465,
348     "y":596.6243867874146,
349     "z":"cfbd0a6c.d9ad88",
350     "wires":[
351
352     ]
353   },
354   {
355     "id":"136fba4.57e3046",
356     "type":"block",
357     "name":"block: atomic",
358     "xml":"<block atomic='true'>\n",
359     "atomic":"false",
360     "comments":"",
361     "outputs":1,
362     "x":1617.5290794372559,
363     "y":596.6244316101074,
364     "z":"cfbd0a6c.d9ad88",
365     "wires":[
366       [
367         "1ea71bb3.19d8e4",
368         "15299399.5fe66c",
369         "7d67802a.2315b"
370       ]
371     ]
372   },
373   {
374     "id":"15299399.5fe66c",
375     "type":"set",
376     "name":"set oper-status",
377     "xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$brg-ar.allotted-resource-status.rpc-action`' />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
378     "comments":"",
379     "x":1844.5294761657715,
380     "y":664.0529508590698,
381     "z":"cfbd0a6c.d9ad88",
382     "wires":[
383
384     ]
385   },
386   {
387     "id":"6ea9033a.90574c",
388     "type":"comment",
389     "name":"GET brg-allotted-resource from mdsal",
390     "info":"",
391     "comments":"",
392     "x":596.8148155212402,
393     "y":525.7671926021576,
394     "z":"cfbd0a6c.d9ad88",
395     "wires":[
396
397     ]
398   },
399   {
400     "id":"7d67802a.2315b",
401     "type":"switchNode",
402     "name":"switch order-status",
403     "xml":"<switch test='`$brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
404     "comments":"",
405     "outputs":1,
406     "x":1854.52925491333,
407     "y":629.6243848800659,
408     "z":"cfbd0a6c.d9ad88",
409     "wires":[
410       [
411         "fc9ac41f.bda4b8",
412         "9800dbd8.9df6f8"
413       ]
414     ]
415   },
416   {
417     "id":"fc9ac41f.bda4b8",
418     "type":"outcome",
419     "name":"outcome Created",
420     "xml":"<outcome value='Created'>\n",
421     "comments":"",
422     "outputs":1,
423     "x":2066.1292114257812,
424     "y":590.6243848800659,
425     "z":"cfbd0a6c.d9ad88",
426     "wires":[
427       [
428         "4ecdc306.3d668c"
429       ]
430     ]
431   },
432   {
433     "id":"9800dbd8.9df6f8",
434     "type":"outcome",
435     "name":"outcome Other",
436     "xml":"<outcome value='Other'>\n",
437     "comments":"",
438     "outputs":1,
439     "x":2091.8435859680176,
440     "y":626.052975654602,
441     "z":"cfbd0a6c.d9ad88",
442     "wires":[
443       [
444         "4ecdc306.3d668c"
445       ]
446     ]
447   },
448   {
449     "id":"a5baa812.7889a8",
450     "type":"comment",
451     "name":"Set allotted-resource-identifiers",
452     "info":"",
453     "comments":"",
454     "x":552.3386383056641,
455     "y":616.3386459350586,
456     "z":"cfbd0a6c.d9ad88",
457     "wires":[
458
459     ]
460   },
461   {
462     "id":"19849de2.3d4d92",
463     "type":"set",
464     "name":"save backup copy of mdsal-ar for rollback",
465     "xml":"<set>\n<parameter name='bk-brg-ar' value='$mdsal-ar.' />\n",
466     "comments":"",
467     "x":1335.3864250183105,
468     "y":561.7672936916351,
469     "z":"cfbd0a6c.d9ad88",
470     "wires":[
471
472     ]
473   },
474   {
475     "id":"2e3d5c7a.18d844",
476     "type":"comment",
477     "name":"Create urls for restapi",
478     "info":"",
479     "comments":"",
480     "x":507.9576606750488,
481     "y":430.6243562698364,
482     "z":"cfbd0a6c.d9ad88",
483     "wires":[
484
485     ]
486   },
487   {
488     "id":"8791e6de.a42b98",
489     "type":"block",
490     "name":"block",
491     "xml":"<block>\n",
492     "atomic":"false",
493     "comments":"",
494     "outputs":1,
495     "x":986.2433853149414,
496     "y":903.481632232666,
497     "z":"cfbd0a6c.d9ad88",
498     "wires":[
499       [
500
501       ]
502     ]
503   },
504   {
505     "id":"2006c488.4b571c",
506     "type":"comment",
507     "name":"TO DO: vnf/put parent",
508     "info":"",
509     "comments":"",
510     "x":514.5290908813477,
511     "y":808.9101696014404,
512     "z":"cfbd0a6c.d9ad88",
513     "wires":[
514
515     ]
516   },
517   {
518     "id":"2a34aedb.e483f2",
519     "type":"execute",
520     "name":"execute getTime",
521     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
522     "comments":"",
523     "outputs":1,
524     "x":494.24338150024414,
525     "y":733.4815549850464,
526     "z":"cfbd0a6c.d9ad88",
527     "wires":[
528       [
529
530       ]
531     ]
532   },
533   {
534     "id":"d49f2a4f.e657d8",
535     "type":"other",
536     "name":"other",
537     "xml":"<outcome value='Other'>\n",
538     "comments":"",
539     "outputs":1,
540     "x":828.5766868591309,
541     "y":597.4814250469208,
542     "z":"cfbd0a6c.d9ad88",
543     "wires":[
544       [
545         "86c72346.242ce"
546       ]
547     ]
548   },
549   {
550     "id":"86c72346.242ce",
551     "type":"block",
552     "name":"block: atomic",
553     "xml":"<block atomic=\"true\">\n",
554     "atomic":"false",
555     "comments":"",
556     "outputs":1,
557     "x":1008.5766372680664,
558     "y":598.1479756832123,
559     "z":"cfbd0a6c.d9ad88",
560     "wires":[
561       [
562
563       ]
564     ]
565   },
566   {
567     "id":"5aa308ce.dba788",
568     "type":"set",
569     "name":"set id",
570     "xml":"<set>\n<parameter name='brg-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='brg-ar.allotted-resource-status.action' value=\"`$brg-topology-operation-input.request-information.request-action` \" />\n<parameter name='brg-ar.allotted-resource-status.rpc-name' value=\"brg-topology-operation\" />\n<parameter name='brg-ar.allotted-resource-status.rpc-action' value=\"`$brg-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$brg-topology-operation-input.request-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$brg-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$brg-topology-operation-input.service-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$brg-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.' value=\"`$brg-topology-operation-input.brg-request-input.` \" />",
571     "comments":"",
572     "x":477.24342346191406,
573     "y":653.1481666564941,
574     "z":"cfbd0a6c.d9ad88",
575     "wires":[
576
577     ]
578   },
579   {
580     "id":"4ecdc306.3d668c",
581     "type":"block",
582     "name":"block",
583     "xml":"<block>\n",
584     "atomic":"false",
585     "comments":"",
586     "outputs":1,
587     "x":2280.5997276306152,
588     "y":592.0000190734863,
589     "z":"cfbd0a6c.d9ad88",
590     "wires":[
591       [
592
593       ]
594     ]
595   },
596   {
597     "id":"626eb0d9.80b5f",
598     "type":"update",
599     "name":"update AAI allotted-resource",
600     "xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n        pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"operational-status\" value=\"out-of-service-path\" />\n",
601     "comments":"",
602     "outputs":1,
603     "x":541.4285736083984,
604     "y":850.571418762207,
605     "z":"cfbd0a6c.d9ad88",
606     "wires":[
607       [
608         "55679e7c.9aaca",
609         "9789b3b6.f6b9b"
610       ]
611     ]
612   },
613   {
614     "id":"55679e7c.9aaca",
615     "type":"failure",
616     "name":"failure",
617     "xml":"<outcome value='failure'>\n",
618     "comments":"",
619     "outputs":1,
620     "x":797.1904830932617,
621     "y":833.5239224433899,
622     "z":"cfbd0a6c.d9ad88",
623     "wires":[
624       [
625         "d1259b.54422a68"
626       ]
627     ]
628   },
629   {
630     "id":"d1259b.54422a68",
631     "type":"returnFailure",
632     "name":"return failure",
633     "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=\"AAI failed\" />\n",
634     "comments":"",
635     "x":963.7143630981445,
636     "y":845.1429934501648,
637     "z":"cfbd0a6c.d9ad88",
638     "wires":[
639
640     ]
641   },
642   {
643     "id":"9789b3b6.f6b9b",
644     "type":"failure",
645     "name":"not-found",
646     "xml":"<outcome value='not-found'>\n",
647     "comments":"",
648     "outputs":1,
649     "x":804.2857704162598,
650     "y":866.2858901023865,
651     "z":"cfbd0a6c.d9ad88",
652     "wires":[
653       [
654         "d1259b.54422a68"
655       ]
656     ]
657   },
658   {
659     "id":"cfdbb6d9.39b868",
660     "type":"execute",
661     "name":"execute RestApiCallNode - delete BRG to vgMux vxlan tunnel port",
662     "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",
663     "comments":"",
664     "outputs":1,
665     "x":651.999885559082,
666     "y":1190.9600343704224,
667     "z":"cfbd0a6c.d9ad88",
668     "wires":[
669       [
670         "60fe5d9f.60f184",
671         "12fb290a.532107",
672         "8c68b450.cb4ca8"
673       ]
674     ]
675   },
676   {
677     "id":"60fe5d9f.60f184",
678     "type":"not-found",
679     "name":"not-found",
680     "xml":"<outcome value='not-found'>\n",
681     "comments":"",
682     "outputs":1,
683     "x":1073.9747009277344,
684     "y":1228.2916730865836,
685     "z":"cfbd0a6c.d9ad88",
686     "wires":[
687       [
688         "3f807288.3735ae"
689       ]
690     ]
691   },
692   {
693     "id":"12fb290a.532107",
694     "type":"failure",
695     "name":"failure",
696     "xml":"<outcome value='failure'>\n",
697     "comments":"",
698     "outputs":1,
699     "x":1064.9747505187988,
700     "y":1196.7916988357902,
701     "z":"cfbd0a6c.d9ad88",
702     "wires":[
703       [
704         "3f807288.3735ae"
705       ]
706     ]
707   },
708   {
709     "id":"8c68b450.cb4ca8",
710     "type":"success",
711     "name":"success",
712     "xml":"<outcome value='success'>\n",
713     "comments":"",
714     "outputs":1,
715     "x":1068.7247886657715,
716     "y":1167.1488037109375,
717     "z":"cfbd0a6c.d9ad88",
718     "wires":[
719       [
720         "c8426dda.6a34f"
721       ]
722     ]
723   },
724   {
725     "id":"3f807288.3735ae",
726     "type":"returnFailure",
727     "name":"return failure",
728     "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 brg-allotted-resource\" />\n",
729     "comments":"",
730     "x":1234.7247886657715,
731     "y":1197.541722677648,
732     "z":"cfbd0a6c.d9ad88",
733     "wires":[
734
735     ]
736   },
737   {
738     "id":"c8426dda.6a34f",
739     "type":"block",
740     "name":"block",
741     "xml":"<block>\n",
742     "atomic":"false",
743     "comments":"",
744     "outputs":1,
745     "x":1210.3807563781738,
746     "y":1163.3409729003906,
747     "z":"cfbd0a6c.d9ad88",
748     "wires":[
749       [
750
751       ]
752     ]
753   },
754   {
755     "id":"7f3389ec.e8f508",
756     "type":"set",
757     "name":"set BRG to vgMUX VXLAN Tunnel Port Props",
758     "xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`'vxlanTun' + $brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.brg-wan-ip-address` \" />\n<parameter name='tmp.tunnel-dest-ip' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vgmux-lan-ip` \" />\n<parameter name='tmp.tunnel-src-ip' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.brg-wan-ip-address` \" />\n<parameter name='tmp.tunnel-vni' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vni` \" />",
759     "comments":"",
760     "x":590.1111335754395,
761     "y":1089.9602737426758,
762     "z":"cfbd0a6c.d9ad88",
763     "wires":[
764
765     ]
766   },
767   {
768     "id":"eafe9188.1bdec",
769     "type":"execute",
770     "name":"generate full brg-vpp-honeycomb url",
771     "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-name`\"/>\n",
772     "comments":"",
773     "outputs":1,
774     "x":559.7776985168457,
775     "y":1134.9600372314453,
776     "z":"cfbd0a6c.d9ad88",
777     "wires":[
778       [
779
780       ]
781     ]
782   },
783   {
784     "id":"5cd8e25b.be574c",
785     "type":"execute",
786     "name":"generate honeycomb-url to vBRG",
787     "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=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip`\"/>\n",
788     "comments":"",
789     "outputs":1,
790     "x":553.777774810791,
791     "y":1046.6264476776123,
792     "z":"cfbd0a6c.d9ad88",
793     "wires":[
794       [
795
796       ]
797     ]
798   },
799   {
800     "id":"696d020f.3bfa3c",
801     "type":"comment",
802     "name":"TO DO: assign brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip",
803     "info":"need to quary mdsal-ar and get information assigned in tunnelxconn DG?",
804     "comments":"",
805     "x":715.3333206176758,
806     "y":1003.79332447052,
807     "z":"cfbd0a6c.d9ad88",
808     "wires":[
809
810     ]
811   },
812   {
813     "id":"e67f5695.27f668",
814     "type":"comment",
815     "name":"<---  TO DO: vgmux-bearer-ip is part of brg-requiest-input but need vgmux-lan-ip",
816     "info":"",
817     "comments":"",
818     "x":1038.0000305175781,
819     "y":1088.0000324249268,
820     "z":"cfbd0a6c.d9ad88",
821     "wires":[
822
823     ]
824   }
825 ]