Update brg topo activate
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_brg-topology-operation-activate.json
1 [
2   {
3     "id":"7ca45b72.02b674",
4     "type":"dgstart",
5     "name":"DGSTART",
6     "outputs":1,
7     "x":200,
8     "y":152.5,
9     "z":"862ed298.34c67",
10     "wires":[
11       [
12         "a578aa11.1457b8"
13       ]
14     ]
15   },
16   {
17     "id":"a578aa11.1457b8",
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":296.2380790710449,
26     "y":213.45239067077637,
27     "z":"862ed298.34c67",
28     "wires":[
29       [
30         "2e4ecb49.4fb304"
31       ]
32     ]
33   },
34   {
35     "id":"2e4ecb49.4fb304",
36     "type":"method",
37     "name":"brg-topology-operation-activate",
38     "xml":"<method rpc='brg-topology-operation-activate' mode='sync'>\n",
39     "comments":"",
40     "outputs":1,
41     "x":342.15485763549805,
42     "y":248.69044589996338,
43     "z":"862ed298.34c67",
44     "wires":[
45       [
46         "a57e9bbb.9e4828"
47       ]
48     ]
49   },
50   {
51     "id":"a57e9bbb.9e4828",
52     "type":"block",
53     "name":"block : atomic",
54     "xml":"<block atomic=\"true\">",
55     "atomic":"true",
56     "comments":"",
57     "outputs":1,
58     "x":250.47619247436523,
59     "y":392.0237879753113,
60     "z":"862ed298.34c67",
61     "wires":[
62       [
63         "df593324.23b48",
64         "148d06ba.a72699",
65         "15cc0b7b.f05b85",
66         "546333a0.91ec5c",
67         "5ccc96c6.1580c8",
68         "6b35e255.00322c",
69         "f9d9cb1d.a314a8",
70         "3794d482.d462fc",
71         "b3601577.9dd278",
72         "1ef0694.7965097",
73         "4fe49db6.710ed4",
74         "e5b256f5.b1cce8",
75         "fe630901.ebe978",
76         "cb813dae.148d9",
77         "6f9567d7.ec7dc8",
78         "11753209.20d5ee",
79         "d3a63961.390228",
80         "53cf1cf4.d29134"
81       ]
82     ]
83   },
84   {
85     "id":"148d06ba.a72699",
86     "type":"returnSuccess",
87     "name":"return success",
88     "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",
89     "comments":"",
90     "x":504.00011444091797,
91     "y":1559.3814134597778,
92     "z":"862ed298.34c67",
93     "wires":[
94
95     ]
96   },
97   {
98     "id":"df593324.23b48",
99     "type":"set",
100     "name":"set output to api handler",
101     "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",
102     "comments":"",
103     "x":532.7540283203125,
104     "y":1523.5039596557617,
105     "z":"862ed298.34c67",
106     "wires":[
107
108     ]
109   },
110   {
111     "id":"1ef0694.7965097",
112     "type":"set",
113     "name":"set allotted-resource-oper-status",
114     "xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Active' />\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",
115     "comments":"",
116     "x":556.7542190551758,
117     "y":772.5514001846313,
118     "z":"862ed298.34c67",
119     "wires":[
120
121     ]
122   },
123   {
124     "id":"546333a0.91ec5c",
125     "type":"set",
126     "name":"set tmp.ar.self-link",
127     "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",
128     "comments":"",
129     "x":512.7380638122559,
130     "y":365.83332538604736,
131     "z":"862ed298.34c67",
132     "wires":[
133
134     ]
135   },
136   {
137     "id":"15cc0b7b.f05b85",
138     "type":"set",
139     "name":"set tmp.ar.allotted-resource-id,etc",
140     "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",
141     "comments":"",
142     "x":559.9973258972168,
143     "y":332.09259128570557,
144     "z":"862ed298.34c67",
145     "wires":[
146
147     ]
148   },
149   {
150     "id":"5ccc96c6.1580c8",
151     "type":"execute",
152     "name":"execute Properties",
153     "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",
154     "comments":"",
155     "outputs":1,
156     "x":518.9934196472168,
157     "y":401.73152446746826,
158     "z":"862ed298.34c67",
159     "wires":[
160       [
161
162       ]
163     ]
164   },
165   {
166     "id":"f9d9cb1d.a314a8",
167     "type":"execute",
168     "name":"execute RestApiCallNode - Get AR by id",
169     "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",
170     "comments":"",
171     "outputs":1,
172     "x":581.5187530517578,
173     "y":562.9594917297363,
174     "z":"862ed298.34c67",
175     "wires":[
176       [
177         "604ec1e5.b17c",
178         "80d7a663.b9fd58"
179       ]
180     ]
181   },
182   {
183     "id":"6b35e255.00322c",
184     "type":"execute",
185     "name":"generate allotted-resource url",
186     "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",
187     "comments":"",
188     "outputs":1,
189     "x":547.0648536682129,
190     "y":461.5172290802002,
191     "z":"862ed298.34c67",
192     "wires":[
193       [
194
195       ]
196     ]
197   },
198   {
199     "id":"604ec1e5.b17c",
200     "type":"success",
201     "name":"success",
202     "xml":"<outcome value='success'>\n",
203     "comments":"",
204     "outputs":1,
205     "x":838.8148918151855,
206     "y":561.7672522068024,
207     "z":"862ed298.34c67",
208     "wires":[
209       [
210         "9fc7f486.6e8728"
211       ]
212     ]
213   },
214   {
215     "id":"3794d482.d462fc",
216     "type":"execute",
217     "name":"execute RestApiCallNode - PUT AR by id",
218     "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",
219     "comments":"",
220     "outputs":1,
221     "x":589.5293121337891,
222     "y":915.9341316223145,
223     "z":"862ed298.34c67",
224     "wires":[
225       [
226         "cb14d559.73ea38",
227         "dc728c86.18e46",
228         "f24f7a44.fa9868"
229       ]
230     ]
231   },
232   {
233     "id":"cb14d559.73ea38",
234     "type":"not-found",
235     "name":"not-found",
236     "xml":"<outcome value='not-found'>\n",
237     "comments":"",
238     "outputs":1,
239     "x":1113.8373832702637,
240     "y":940.9324235916138,
241     "z":"862ed298.34c67",
242     "wires":[
243       [
244         "4f1a6257.1e90dc"
245       ]
246     ]
247   },
248   {
249     "id":"dc728c86.18e46",
250     "type":"failure",
251     "name":"failure",
252     "xml":"<outcome value='failure'>\n",
253     "comments":"",
254     "outputs":1,
255     "x":1104.8374328613281,
256     "y":909.4324493408203,
257     "z":"862ed298.34c67",
258     "wires":[
259       [
260         "4f1a6257.1e90dc"
261       ]
262     ]
263   },
264   {
265     "id":"f24f7a44.fa9868",
266     "type":"success",
267     "name":"success",
268     "xml":"<outcome value='success'>\n",
269     "comments":"",
270     "outputs":1,
271     "x":1108.5874710083008,
272     "y":879.7895542159677,
273     "z":"862ed298.34c67",
274     "wires":[
275       [
276         "fc0b40a6.c8322"
277       ]
278     ]
279   },
280   {
281     "id":"4f1a6257.1e90dc",
282     "type":"returnFailure",
283     "name":"return failure",
284     "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",
285     "comments":"",
286     "x":1274.5874710083008,
287     "y":910.1824731826782,
288     "z":"862ed298.34c67",
289     "wires":[
290
291     ]
292   },
293   {
294     "id":"9fc7f486.6e8728",
295     "type":"block",
296     "name":"block: atomic",
297     "xml":"<block atomic=\"true\">\n",
298     "atomic":"false",
299     "comments":"",
300     "outputs":1,
301     "x":1019.8148460388184,
302     "y":562.2672016620636,
303     "z":"862ed298.34c67",
304     "wires":[
305       [
306         "b3f7fcbb.cacda",
307         "a23fac13.531f7"
308       ]
309     ]
310   },
311   {
312     "id":"b3f7fcbb.cacda",
313     "type":"switchNode",
314     "name":"switch brg length",
315     "xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n",
316     "comments":"",
317     "outputs":1,
318     "x":1265.6720924377441,
319     "y":596.552964925766,
320     "z":"862ed298.34c67",
321     "wires":[
322       [
323         "35f809be.750916"
324       ]
325     ]
326   },
327   {
328     "id":"35f809be.750916",
329     "type":"other",
330     "name":"outcome 1",
331     "xml":"<outcome value='1'>\n",
332     "comments":"",
333     "outputs":1,
334     "x":1456.6720962524414,
335     "y":596.5529625415802,
336     "z":"862ed298.34c67",
337     "wires":[
338       [
339         "738470b0.e3d3a"
340       ]
341     ]
342   },
343   {
344     "id":"1057cfb.6123c3",
345     "type":"set",
346     "name":"set brg-ar from get",
347     "xml":"<set>\n<parameter name='brg-ar.' value='$mdsal-ar.brg-allotted-resource[0].' />\n",
348     "comments":"",
349     "x":1856.5292320251465,
350     "y":597.1243867874146,
351     "z":"862ed298.34c67",
352     "wires":[
353
354     ]
355   },
356   {
357     "id":"738470b0.e3d3a",
358     "type":"block",
359     "name":"block: atomic",
360     "xml":"<block atomic='true'>\n",
361     "atomic":"false",
362     "comments":"",
363     "outputs":1,
364     "x":1627.5290794372559,
365     "y":597.1244316101074,
366     "z":"862ed298.34c67",
367     "wires":[
368       [
369         "1057cfb.6123c3",
370         "b64dc780.970328",
371         "9d4982d0.3671"
372       ]
373     ]
374   },
375   {
376     "id":"b64dc780.970328",
377     "type":"set",
378     "name":"set oper-status",
379     "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",
380     "comments":"",
381     "x":1854.5294761657715,
382     "y":664.5529508590698,
383     "z":"862ed298.34c67",
384     "wires":[
385
386     ]
387   },
388   {
389     "id":"c99d3ef5.d59f5",
390     "type":"comment",
391     "name":"GET brg-allotted-resource from mdsal",
392     "info":"",
393     "comments":"",
394     "x":606.8148155212402,
395     "y":526.2671926021576,
396     "z":"862ed298.34c67",
397     "wires":[
398
399     ]
400   },
401   {
402     "id":"9d4982d0.3671",
403     "type":"switchNode",
404     "name":"switch order-status",
405     "xml":"<switch test='`$brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
406     "comments":"",
407     "outputs":1,
408     "x":1864.52925491333,
409     "y":630.1243848800659,
410     "z":"862ed298.34c67",
411     "wires":[
412       [
413         "890a6e1c.d1711",
414         "c51cac36.4029d"
415       ]
416     ]
417   },
418   {
419     "id":"890a6e1c.d1711",
420     "type":"outcome",
421     "name":"outcome Created",
422     "xml":"<outcome value='Created'>\n",
423     "comments":"",
424     "outputs":1,
425     "x":2076.1292114257812,
426     "y":591.1243848800659,
427     "z":"862ed298.34c67",
428     "wires":[
429       [
430         "acca97a1.9e7328"
431       ]
432     ]
433   },
434   {
435     "id":"c51cac36.4029d",
436     "type":"outcome",
437     "name":"outcome Other",
438     "xml":"<outcome value='Other'>\n",
439     "comments":"",
440     "outputs":1,
441     "x":2101.8435859680176,
442     "y":626.552975654602,
443     "z":"862ed298.34c67",
444     "wires":[
445       [
446         "acca97a1.9e7328"
447       ]
448     ]
449   },
450   {
451     "id":"5c12b1cb.7de2f",
452     "type":"comment",
453     "name":"Set allotted-resource-identifiers",
454     "info":"",
455     "comments":"",
456     "x":562.3386383056641,
457     "y":616.8386459350586,
458     "z":"862ed298.34c67",
459     "wires":[
460
461     ]
462   },
463   {
464     "id":"a23fac13.531f7",
465     "type":"set",
466     "name":"save backup copy of mdsal-ar for rollback",
467     "xml":"<set>\n<parameter name='bk-brg-ar' value='$mdsal-ar.' />\n",
468     "comments":"",
469     "x":1345.3864250183105,
470     "y":562.2672936916351,
471     "z":"862ed298.34c67",
472     "wires":[
473
474     ]
475   },
476   {
477     "id":"9da3c80.8620838",
478     "type":"comment",
479     "name":"Create urls for restapi",
480     "info":"",
481     "comments":"",
482     "x":517.9576606750488,
483     "y":431.1243562698364,
484     "z":"862ed298.34c67",
485     "wires":[
486
487     ]
488   },
489   {
490     "id":"fc0b40a6.c8322",
491     "type":"block",
492     "name":"block",
493     "xml":"<block>\n",
494     "atomic":"false",
495     "comments":"",
496     "outputs":1,
497     "x":1250.2434387207031,
498     "y":875.9817234054208,
499     "z":"862ed298.34c67",
500     "wires":[
501       [
502
503       ]
504     ]
505   },
506   {
507     "id":"e38a2e2a.966c",
508     "type":"comment",
509     "name":"TO DO: vnf/put parent",
510     "info":"",
511     "comments":"",
512     "x":520.2433776855469,
513     "y":804.6481952667236,
514     "z":"862ed298.34c67",
515     "wires":[
516
517     ]
518   },
519   {
520     "id":"b3601577.9dd278",
521     "type":"execute",
522     "name":"execute getTime",
523     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
524     "comments":"",
525     "outputs":1,
526     "x":504.24338150024414,
527     "y":733.9815549850464,
528     "z":"862ed298.34c67",
529     "wires":[
530       [
531
532       ]
533     ]
534   },
535   {
536     "id":"80d7a663.b9fd58",
537     "type":"other",
538     "name":"other",
539     "xml":"<outcome value='Other'>\n",
540     "comments":"",
541     "outputs":1,
542     "x":838.5766868591309,
543     "y":597.9814250469208,
544     "z":"862ed298.34c67",
545     "wires":[
546       [
547         "75930022.e7b04"
548       ]
549     ]
550   },
551   {
552     "id":"75930022.e7b04",
553     "type":"block",
554     "name":"block: atomic",
555     "xml":"<block atomic=\"true\">\n",
556     "atomic":"false",
557     "comments":"",
558     "outputs":1,
559     "x":1018.5766372680664,
560     "y":598.6479756832123,
561     "z":"862ed298.34c67",
562     "wires":[
563       [
564
565       ]
566     ]
567   },
568   {
569     "id":"4fe49db6.710ed4",
570     "type":"set",
571     "name":"set id",
572     "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.` \" />",
573     "comments":"",
574     "x":487.24342346191406,
575     "y":653.6481666564941,
576     "z":"862ed298.34c67",
577     "wires":[
578
579     ]
580   },
581   {
582     "id":"acca97a1.9e7328",
583     "type":"block",
584     "name":"block",
585     "xml":"<block>\n",
586     "atomic":"false",
587     "comments":"",
588     "outputs":1,
589     "x":2290.5997276306152,
590     "y":592.5000190734863,
591     "z":"862ed298.34c67",
592     "wires":[
593       [
594
595       ]
596     ]
597   },
598   {
599     "id":"e5b256f5.b1cce8",
600     "type":"update",
601     "name":"update AAI allotted-resource",
602     "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=\"in-service-path\" />\n",
603     "comments":"",
604     "outputs":1,
605     "x":547.8571624755859,
606     "y":837.7380628585815,
607     "z":"862ed298.34c67",
608     "wires":[
609       [
610         "cddc2d29.84eec",
611         "f5df336a.008f2"
612       ]
613     ]
614   },
615   {
616     "id":"cddc2d29.84eec",
617     "type":"failure",
618     "name":"failure",
619     "xml":"<outcome value='failure'>\n",
620     "comments":"",
621     "outputs":1,
622     "x":803.6190567016602,
623     "y":820.6905598640442,
624     "z":"862ed298.34c67",
625     "wires":[
626       [
627         "7dbfd50c.378e0c"
628       ]
629     ]
630   },
631   {
632     "id":"7dbfd50c.378e0c",
633     "type":"returnFailure",
634     "name":"return failure",
635     "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",
636     "comments":"",
637     "x":970.142936706543,
638     "y":832.3096308708191,
639     "z":"862ed298.34c67",
640     "wires":[
641
642     ]
643   },
644   {
645     "id":"f5df336a.008f2",
646     "type":"failure",
647     "name":"not-found",
648     "xml":"<outcome value='not-found'>\n",
649     "comments":"",
650     "outputs":1,
651     "x":810.7143440246582,
652     "y":853.4525275230408,
653     "z":"862ed298.34c67",
654     "wires":[
655       [
656         "7dbfd50c.378e0c"
657       ]
658     ]
659   },
660   {
661     "id":"fe630901.ebe978",
662     "type":"execute",
663     "name":"execute RestApiCallNode - setup BRG to vgMux vxlan tunnel port",
664     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vpp.vxlan-tunnel.templatefile`\" />\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='PUT' />\n    <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n",
665     "comments":"",
666     "outputs":1,
667     "x":664.6666564941406,
668     "y":1249.166666984558,
669     "z":"862ed298.34c67",
670     "wires":[
671       [
672         "c24e108f.00a11",
673         "be44e415.f52208",
674         "b3d9ad69.551df"
675       ]
676     ]
677   },
678   {
679     "id":"c24e108f.00a11",
680     "type":"not-found",
681     "name":"not-found",
682     "xml":"<outcome value='not-found'>\n",
683     "comments":"",
684     "outputs":1,
685     "x":998.6414451599121,
686     "y":1308.4982789978385,
687     "z":"862ed298.34c67",
688     "wires":[
689       [
690         "9f93ed2a.172f9"
691       ]
692     ]
693   },
694   {
695     "id":"be44e415.f52208",
696     "type":"failure",
697     "name":"failure",
698     "xml":"<outcome value='failure'>\n",
699     "comments":"",
700     "outputs":1,
701     "x":989.6414947509766,
702     "y":1276.998304747045,
703     "z":"862ed298.34c67",
704     "wires":[
705       [
706         "9f93ed2a.172f9"
707       ]
708     ]
709   },
710   {
711     "id":"b3d9ad69.551df",
712     "type":"success",
713     "name":"success",
714     "xml":"<outcome value='success'>\n",
715     "comments":"",
716     "outputs":1,
717     "x":993.3915328979492,
718     "y":1247.3554096221924,
719     "z":"862ed298.34c67",
720     "wires":[
721       [
722         "be1da966.f3fdb8"
723       ]
724     ]
725   },
726   {
727     "id":"9f93ed2a.172f9",
728     "type":"returnFailure",
729     "name":"return failure",
730     "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",
731     "comments":"",
732     "x":1159.3915328979492,
733     "y":1277.748328588903,
734     "z":"862ed298.34c67",
735     "wires":[
736
737     ]
738   },
739   {
740     "id":"be1da966.f3fdb8",
741     "type":"block",
742     "name":"block",
743     "xml":"<block>\n",
744     "atomic":"false",
745     "comments":"",
746     "outputs":1,
747     "x":1135.0475006103516,
748     "y":1243.5475788116455,
749     "z":"862ed298.34c67",
750     "wires":[
751       [
752
753       ]
754     ]
755   },
756   {
757     "id":"cb813dae.148d9",
758     "type":"execute",
759     "name":"execute RestApiCallNode - setup BRG vxlan bridge domain",
760     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vpp.bridge-domain.templatefile`\" />\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='PUT' />\n    <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n",
761     "comments":"",
762     "outputs":1,
763     "x":646.3334197998047,
764     "y":1395.833461523056,
765     "z":"862ed298.34c67",
766     "wires":[
767       [
768         "fda405ea.32bd38",
769         "a0de0f27.22318",
770         "713a6065.b61ad"
771       ]
772     ]
773   },
774   {
775     "id":"fda405ea.32bd38",
776     "type":"not-found",
777     "name":"not-found",
778     "xml":"<outcome value='not-found'>\n",
779     "comments":"",
780     "outputs":1,
781     "x":994.3080577850342,
782     "y":1471.4983781799674,
783     "z":"862ed298.34c67",
784     "wires":[
785       [
786         "eb0aba4d.33d9b8"
787       ]
788     ]
789   },
790   {
791     "id":"a0de0f27.22318",
792     "type":"failure",
793     "name":"failure",
794     "xml":"<outcome value='failure'>\n",
795     "comments":"",
796     "outputs":1,
797     "x":985.3081073760986,
798     "y":1439.998403929174,
799     "z":"862ed298.34c67",
800     "wires":[
801       [
802         "eb0aba4d.33d9b8"
803       ]
804     ]
805   },
806   {
807     "id":"713a6065.b61ad",
808     "type":"success",
809     "name":"success",
810     "xml":"<outcome value='success'>\n",
811     "comments":"",
812     "outputs":1,
813     "x":989.0581455230713,
814     "y":1410.3555088043213,
815     "z":"862ed298.34c67",
816     "wires":[
817       [
818         "cf6832af.3d346"
819       ]
820     ]
821   },
822   {
823     "id":"eb0aba4d.33d9b8",
824     "type":"returnFailure",
825     "name":"return failure",
826     "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",
827     "comments":"",
828     "x":1155.0581455230713,
829     "y":1440.7484277710319,
830     "z":"862ed298.34c67",
831     "wires":[
832
833     ]
834   },
835   {
836     "id":"cf6832af.3d346",
837     "type":"block",
838     "name":"block",
839     "xml":"<block>\n",
840     "atomic":"false",
841     "comments":"",
842     "outputs":1,
843     "x":1130.7141132354736,
844     "y":1406.5476779937744,
845     "z":"862ed298.34c67",
846     "wires":[
847       [
848
849       ]
850     ]
851   },
852   {
853     "id":"d3a63961.390228",
854     "type":"set",
855     "name":"set BRG to vgMUX VXLAN Tunnel Port Props",
856     "xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`'vxlanTun' + $brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip` \" />\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` \" />",
857     "comments":"",
858     "x":600.7778015136719,
859     "y":1114.1669263839722,
860     "z":"862ed298.34c67",
861     "wires":[
862
863     ]
864   },
865   {
866     "id":"11753209.20d5ee",
867     "type":"execute",
868     "name":"generate full brg-vpp-honeycomb url",
869     "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",
870     "comments":"",
871     "outputs":1,
872     "x":572.4444427490234,
873     "y":1169.1667051315308,
874     "z":"862ed298.34c67",
875     "wires":[
876       [
877
878       ]
879     ]
880   },
881   {
882     "id":"6f9567d7.ec7dc8",
883     "type":"execute",
884     "name":"generate honeycomb-url to vBRG",
885     "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",
886     "comments":"",
887     "outputs":1,
888     "x":564.4444580078125,
889     "y":1028.833233833313,
890     "z":"862ed298.34c67",
891     "wires":[
892       [
893
894       ]
895     ]
896   },
897   {
898     "id":"53cf1cf4.d29134",
899     "type":"set",
900     "name":"set BRG Bridge Domain Props",
901     "xml":"<set>\n<parameter name='tmp.bridge-domain' value=\"bridge-domain-10\" />\n<parameter name='tmp.split-horizon-group' value=\"2\" />",
902     "comments":"",
903     "x":555.7777557373047,
904     "y":1320.8333368301392,
905     "z":"862ed298.34c67",
906     "wires":[
907
908     ]
909   },
910   {
911     "id":"7968a654.b60c08",
912     "type":"comment",
913     "name":"TO DO: assign brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip",
914     "info":"need to quary mdsal-ar and get information assigned in tunnelxconn DG?",
915     "comments":"",
916     "x":722.0000305175781,
917     "y":978.0000286102295,
918     "z":"862ed298.34c67",
919     "wires":[
920
921     ]
922   }
923 ]