Update brg topo activate DG
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_brg-topology-operation-activate.json
1 [
2   {
3     "id":"d67dc318.ce892",
4     "type":"dgstart",
5     "name":"DGSTART",
6     "outputs":1,
7     "x":140,
8     "y":115,
9     "z":"87a856d9.9ec508",
10     "wires":[
11       [
12         "539ddd05.d9acd4"
13       ]
14     ]
15   },
16   {
17     "id":"539ddd05.d9acd4",
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":236.23807907104492,
26     "y":175.95239067077637,
27     "z":"87a856d9.9ec508",
28     "wires":[
29       [
30         "d3e85090.c0279"
31       ]
32     ]
33   },
34   {
35     "id":"d3e85090.c0279",
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":282.15485763549805,
42     "y":211.19044589996338,
43     "z":"87a856d9.9ec508",
44     "wires":[
45       [
46         "a3b5f23e.0b3f1"
47       ]
48     ]
49   },
50   {
51     "id":"a3b5f23e.0b3f1",
52     "type":"block",
53     "name":"block : atomic",
54     "xml":"<block atomic=\"true\">",
55     "atomic":"true",
56     "comments":"",
57     "outputs":1,
58     "x":190.47619247436523,
59     "y":354.5237879753113,
60     "z":"87a856d9.9ec508",
61     "wires":[
62       [
63         "611e8741.074898",
64         "61b73363.ffb3cc",
65         "a6766796.306768",
66         "5de77c32.eecb94",
67         "3a0be6a.ca51a1a",
68         "a9547492.9c6f28",
69         "e64c58e2.5bad38",
70         "f373e2ec.09689",
71         "eaaae4f9.51d728",
72         "abb42d37.333e9",
73         "b2c6bab8.1fd358",
74         "718e3f93.cd459",
75         "f965b29a.1efa5",
76         "16a55bb0.8c20f4",
77         "aa97b18b.1226d",
78         "ca99974a.a9c178",
79         "d3a78d9e.83f7f",
80         "cdf3b3de.27f5e"
81       ]
82     ]
83   },
84   {
85     "id":"61b73363.ffb3cc",
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":450.33348846435547,
91     "y":1410.8813753128052,
92     "z":"87a856d9.9ec508",
93     "wires":[
94
95     ]
96   },
97   {
98     "id":"611e8741.074898",
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":479.08740234375,
104     "y":1375.003921508789,
105     "z":"87a856d9.9ec508",
106     "wires":[
107
108     ]
109   },
110   {
111     "id":"abb42d37.333e9",
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":496.7542190551758,
117     "y":735.0514001846313,
118     "z":"87a856d9.9ec508",
119     "wires":[
120
121     ]
122   },
123   {
124     "id":"5de77c32.eecb94",
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":452.73806381225586,
130     "y":328.33332538604736,
131     "z":"87a856d9.9ec508",
132     "wires":[
133
134     ]
135   },
136   {
137     "id":"a6766796.306768",
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":499.9973258972168,
143     "y":294.59259128570557,
144     "z":"87a856d9.9ec508",
145     "wires":[
146
147     ]
148   },
149   {
150     "id":"3a0be6a.ca51a1a",
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":458.9934196472168,
157     "y":364.23152446746826,
158     "z":"87a856d9.9ec508",
159     "wires":[
160       [
161
162       ]
163     ]
164   },
165   {
166     "id":"e64c58e2.5bad38",
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":521.5187530517578,
173     "y":525.4594917297363,
174     "z":"87a856d9.9ec508",
175     "wires":[
176       [
177         "2fee3ef4.4e3752",
178         "82115602.4aadf8"
179       ]
180     ]
181   },
182   {
183     "id":"a9547492.9c6f28",
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":487.0648536682129,
190     "y":424.0172290802002,
191     "z":"87a856d9.9ec508",
192     "wires":[
193       [
194
195       ]
196     ]
197   },
198   {
199     "id":"2fee3ef4.4e3752",
200     "type":"success",
201     "name":"success",
202     "xml":"<outcome value='success'>\n",
203     "comments":"",
204     "outputs":1,
205     "x":778.8148918151855,
206     "y":524.2672522068024,
207     "z":"87a856d9.9ec508",
208     "wires":[
209       [
210         "55b821dc.c9096"
211       ]
212     ]
213   },
214   {
215     "id":"f373e2ec.09689",
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":529.5293121337891,
222     "y":878.4341316223145,
223     "z":"87a856d9.9ec508",
224     "wires":[
225       [
226         "ed22c964.b49a28",
227         "76a7310d.9d0cc",
228         "503c908d.2e343"
229       ]
230     ]
231   },
232   {
233     "id":"ed22c964.b49a28",
234     "type":"not-found",
235     "name":"not-found",
236     "xml":"<outcome value='not-found'>\n",
237     "comments":"",
238     "outputs":1,
239     "x":799.837329864502,
240     "y":931.432332418859,
241     "z":"87a856d9.9ec508",
242     "wires":[
243       [
244         "b1122f4f.ea076"
245       ]
246     ]
247   },
248   {
249     "id":"76a7310d.9d0cc",
250     "type":"failure",
251     "name":"failure",
252     "xml":"<outcome value='failure'>\n",
253     "comments":"",
254     "outputs":1,
255     "x":790.8373794555664,
256     "y":899.9323581680655,
257     "z":"87a856d9.9ec508",
258     "wires":[
259       [
260         "b1122f4f.ea076"
261       ]
262     ]
263   },
264   {
265     "id":"503c908d.2e343",
266     "type":"success",
267     "name":"success",
268     "xml":"<outcome value='success'>\n",
269     "comments":"",
270     "outputs":1,
271     "x":794.5874176025391,
272     "y":870.2894630432129,
273     "z":"87a856d9.9ec508",
274     "wires":[
275       [
276         "fd568606.5069e8"
277       ]
278     ]
279   },
280   {
281     "id":"b1122f4f.ea076",
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":960.5874176025391,
287     "y":900.6823820099235,
288     "z":"87a856d9.9ec508",
289     "wires":[
290
291     ]
292   },
293   {
294     "id":"55b821dc.c9096",
295     "type":"block",
296     "name":"block: atomic",
297     "xml":"<block atomic=\"true\">\n",
298     "atomic":"false",
299     "comments":"",
300     "outputs":1,
301     "x":959.8148460388184,
302     "y":524.7672016620636,
303     "z":"87a856d9.9ec508",
304     "wires":[
305       [
306         "2d8e02e3.cf0fae",
307         "c6e86370.775dc"
308       ]
309     ]
310   },
311   {
312     "id":"2d8e02e3.cf0fae",
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":1205.6720924377441,
319     "y":559.052964925766,
320     "z":"87a856d9.9ec508",
321     "wires":[
322       [
323         "fd01ce34.5cc7e"
324       ]
325     ]
326   },
327   {
328     "id":"fd01ce34.5cc7e",
329     "type":"other",
330     "name":"outcome 1",
331     "xml":"<outcome value='1'>\n",
332     "comments":"",
333     "outputs":1,
334     "x":1396.6720962524414,
335     "y":559.0529625415802,
336     "z":"87a856d9.9ec508",
337     "wires":[
338       [
339         "cd19d423.804d98"
340       ]
341     ]
342   },
343   {
344     "id":"cdc77865.0b0c78",
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":1796.5292320251465,
350     "y":559.6243867874146,
351     "z":"87a856d9.9ec508",
352     "wires":[
353
354     ]
355   },
356   {
357     "id":"cd19d423.804d98",
358     "type":"block",
359     "name":"block: atomic",
360     "xml":"<block atomic='true'>\n",
361     "atomic":"false",
362     "comments":"",
363     "outputs":1,
364     "x":1567.5290794372559,
365     "y":559.6244316101074,
366     "z":"87a856d9.9ec508",
367     "wires":[
368       [
369         "cdc77865.0b0c78",
370         "a7b33ed0.43bdb",
371         "67f4311d.5bfe6"
372       ]
373     ]
374   },
375   {
376     "id":"a7b33ed0.43bdb",
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":1794.5294761657715,
382     "y":627.0529508590698,
383     "z":"87a856d9.9ec508",
384     "wires":[
385
386     ]
387   },
388   {
389     "id":"3e38b8c9.4b9918",
390     "type":"comment",
391     "name":"GET brg-allotted-resource from mdsal",
392     "info":"",
393     "comments":"",
394     "x":546.8148155212402,
395     "y":488.7671926021576,
396     "z":"87a856d9.9ec508",
397     "wires":[
398
399     ]
400   },
401   {
402     "id":"67f4311d.5bfe6",
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":1804.52925491333,
409     "y":592.6243848800659,
410     "z":"87a856d9.9ec508",
411     "wires":[
412       [
413         "95019c7b.0ff8c",
414         "35eeaddc.1e3b72"
415       ]
416     ]
417   },
418   {
419     "id":"95019c7b.0ff8c",
420     "type":"outcome",
421     "name":"outcome Created",
422     "xml":"<outcome value='Created'>\n",
423     "comments":"",
424     "outputs":1,
425     "x":2016.1292114257812,
426     "y":553.6243848800659,
427     "z":"87a856d9.9ec508",
428     "wires":[
429       [
430         "d7fd4783.cc90d8"
431       ]
432     ]
433   },
434   {
435     "id":"35eeaddc.1e3b72",
436     "type":"outcome",
437     "name":"outcome Other",
438     "xml":"<outcome value='Other'>\n",
439     "comments":"",
440     "outputs":1,
441     "x":2041.8435859680176,
442     "y":589.052975654602,
443     "z":"87a856d9.9ec508",
444     "wires":[
445       [
446         "d7fd4783.cc90d8"
447       ]
448     ]
449   },
450   {
451     "id":"44d6b29d.d0815c",
452     "type":"comment",
453     "name":"Set allotted-resource-identifiers",
454     "info":"",
455     "comments":"",
456     "x":502.33863830566406,
457     "y":579.3386459350586,
458     "z":"87a856d9.9ec508",
459     "wires":[
460
461     ]
462   },
463   {
464     "id":"c6e86370.775dc",
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":1285.3864250183105,
470     "y":524.7672936916351,
471     "z":"87a856d9.9ec508",
472     "wires":[
473
474     ]
475   },
476   {
477     "id":"d0fcda95.b5ded8",
478     "type":"comment",
479     "name":"Create urls for restapi",
480     "info":"",
481     "comments":"",
482     "x":457.9576606750488,
483     "y":393.6243562698364,
484     "z":"87a856d9.9ec508",
485     "wires":[
486
487     ]
488   },
489   {
490     "id":"fd568606.5069e8",
491     "type":"block",
492     "name":"block",
493     "xml":"<block>\n",
494     "atomic":"false",
495     "comments":"",
496     "outputs":1,
497     "x":936.2433853149414,
498     "y":866.481632232666,
499     "z":"87a856d9.9ec508",
500     "wires":[
501       [
502
503       ]
504     ]
505   },
506   {
507     "id":"65762b87.da2b54",
508     "type":"comment",
509     "name":"TO DO: vnf/put parent",
510     "info":"",
511     "comments":"",
512     "x":460.2433776855469,
513     "y":767.1481952667236,
514     "z":"87a856d9.9ec508",
515     "wires":[
516
517     ]
518   },
519   {
520     "id":"eaaae4f9.51d728",
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":444.24338150024414,
527     "y":696.4815549850464,
528     "z":"87a856d9.9ec508",
529     "wires":[
530       [
531
532       ]
533     ]
534   },
535   {
536     "id":"82115602.4aadf8",
537     "type":"other",
538     "name":"other",
539     "xml":"<outcome value='Other'>\n",
540     "comments":"",
541     "outputs":1,
542     "x":778.5766868591309,
543     "y":560.4814250469208,
544     "z":"87a856d9.9ec508",
545     "wires":[
546       [
547         "9a00f006.cbb78"
548       ]
549     ]
550   },
551   {
552     "id":"9a00f006.cbb78",
553     "type":"block",
554     "name":"block: atomic",
555     "xml":"<block atomic=\"true\">\n",
556     "atomic":"false",
557     "comments":"",
558     "outputs":1,
559     "x":958.5766372680664,
560     "y":561.1479756832123,
561     "z":"87a856d9.9ec508",
562     "wires":[
563       [
564
565       ]
566     ]
567   },
568   {
569     "id":"b2c6bab8.1fd358",
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":427.24342346191406,
575     "y":616.1481666564941,
576     "z":"87a856d9.9ec508",
577     "wires":[
578
579     ]
580   },
581   {
582     "id":"d7fd4783.cc90d8",
583     "type":"block",
584     "name":"block",
585     "xml":"<block>\n",
586     "atomic":"false",
587     "comments":"",
588     "outputs":1,
589     "x":2230.5997276306152,
590     "y":555.0000190734863,
591     "z":"87a856d9.9ec508",
592     "wires":[
593       [
594
595       ]
596     ]
597   },
598   {
599     "id":"718e3f93.cd459",
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":487.85716247558594,
606     "y":800.2380628585815,
607     "z":"87a856d9.9ec508",
608     "wires":[
609       [
610         "6bf804a4.c0a48c",
611         "138a867a.df171a"
612       ]
613     ]
614   },
615   {
616     "id":"6bf804a4.c0a48c",
617     "type":"failure",
618     "name":"failure",
619     "xml":"<outcome value='failure'>\n",
620     "comments":"",
621     "outputs":1,
622     "x":743.6190567016602,
623     "y":783.1905598640442,
624     "z":"87a856d9.9ec508",
625     "wires":[
626       [
627         "418532c6.6b556c"
628       ]
629     ]
630   },
631   {
632     "id":"418532c6.6b556c",
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":910.142936706543,
638     "y":794.8096308708191,
639     "z":"87a856d9.9ec508",
640     "wires":[
641
642     ]
643   },
644   {
645     "id":"138a867a.df171a",
646     "type":"failure",
647     "name":"not-found",
648     "xml":"<outcome value='not-found'>\n",
649     "comments":"",
650     "outputs":1,
651     "x":750.7143440246582,
652     "y":815.9525275230408,
653     "z":"87a856d9.9ec508",
654     "wires":[
655       [
656         "418532c6.6b556c"
657       ]
658     ]
659   },
660   {
661     "id":"f965b29a.1efa5",
662     "type":"execute",
663     "name":"execute RestApiCallNode - setup BRG 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.brg.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":578.3332977294922,
668     "y":1116.6665744781494,
669     "z":"87a856d9.9ec508",
670     "wires":[
671       [
672         "df90cb56.a03868",
673         "7baef153.70ea4",
674         "5f9ed08a.45811"
675       ]
676     ]
677   },
678   {
679     "id":"df90cb56.a03868",
680     "type":"not-found",
681     "name":"not-found",
682     "xml":"<outcome value='not-found'>\n",
683     "comments":"",
684     "outputs":1,
685     "x":908.64137840271,
686     "y":1212.9981907829642,
687     "z":"87a856d9.9ec508",
688     "wires":[
689       [
690         "4be7e5a3.743f0c"
691       ]
692     ]
693   },
694   {
695     "id":"7baef153.70ea4",
696     "type":"failure",
697     "name":"failure",
698     "xml":"<outcome value='failure'>\n",
699     "comments":"",
700     "outputs":1,
701     "x":899.6414279937744,
702     "y":1181.4982165321708,
703     "z":"87a856d9.9ec508",
704     "wires":[
705       [
706         "4be7e5a3.743f0c"
707       ]
708     ]
709   },
710   {
711     "id":"5f9ed08a.45811",
712     "type":"success",
713     "name":"success",
714     "xml":"<outcome value='success'>\n",
715     "comments":"",
716     "outputs":1,
717     "x":903.3914661407471,
718     "y":1151.8553214073181,
719     "z":"87a856d9.9ec508",
720     "wires":[
721       [
722         "be0bec1a.41ef9"
723       ]
724     ]
725   },
726   {
727     "id":"4be7e5a3.743f0c",
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":1069.391466140747,
733     "y":1182.2482403740287,
734     "z":"87a856d9.9ec508",
735     "wires":[
736
737     ]
738   },
739   {
740     "id":"be0bec1a.41ef9",
741     "type":"block",
742     "name":"block",
743     "xml":"<block>\n",
744     "atomic":"false",
745     "comments":"",
746     "outputs":1,
747     "x":1045.0474338531494,
748     "y":1148.0474905967712,
749     "z":"87a856d9.9ec508",
750     "wires":[
751       [
752
753       ]
754     ]
755   },
756   {
757     "id":"16a55bb0.8c20f4",
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.brg.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":598.3334350585938,
764     "y":1276.6667137145996,
765     "z":"87a856d9.9ec508",
766     "wires":[
767       [
768         "4f278bf0.7edd54",
769         "6114a132.9f3ff",
770         "14cdadf1.ca4582"
771       ]
772     ]
773   },
774   {
775     "id":"4f278bf0.7edd54",
776     "type":"not-found",
777     "name":"not-found",
778     "xml":"<outcome value='not-found'>\n",
779     "comments":"",
780     "outputs":1,
781     "x":898.6414394378662,
782     "y":1412.9982127174735,
783     "z":"87a856d9.9ec508",
784     "wires":[
785       [
786         "a55fd1dd.4e4de"
787       ]
788     ]
789   },
790   {
791     "id":"6114a132.9f3ff",
792     "type":"failure",
793     "name":"failure",
794     "xml":"<outcome value='failure'>\n",
795     "comments":"",
796     "outputs":1,
797     "x":889.6414890289307,
798     "y":1381.49823846668,
799     "z":"87a856d9.9ec508",
800     "wires":[
801       [
802         "a55fd1dd.4e4de"
803       ]
804     ]
805   },
806   {
807     "id":"14cdadf1.ca4582",
808     "type":"success",
809     "name":"success",
810     "xml":"<outcome value='success'>\n",
811     "comments":"",
812     "outputs":1,
813     "x":893.3915271759033,
814     "y":1351.8553433418274,
815     "z":"87a856d9.9ec508",
816     "wires":[
817       [
818         "ad02893c.a5fb98"
819       ]
820     ]
821   },
822   {
823     "id":"a55fd1dd.4e4de",
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":1059.3915271759033,
829     "y":1382.248262308538,
830     "z":"87a856d9.9ec508",
831     "wires":[
832
833     ]
834   },
835   {
836     "id":"ad02893c.a5fb98",
837     "type":"block",
838     "name":"block",
839     "xml":"<block>\n",
840     "atomic":"false",
841     "comments":"",
842     "outputs":1,
843     "x":1035.0474948883057,
844     "y":1348.0475125312805,
845     "z":"87a856d9.9ec508",
846     "wires":[
847       [
848
849       ]
850     ]
851   },
852   {
853     "id":"d3a78d9e.83f7f",
854     "type":"set",
855     "name":"set BRG VXLAN Tunnel Port Props",
856     "xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`'vxlanTun' + $brg-ar.allotted-resource-id` \" />\n<parameter name='tmp.tunnel-dest-ip' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vgmux-bearer-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":509.44446563720703,
859     "y":986.6668643951416,
860     "z":"87a856d9.9ec508",
861     "wires":[
862
863     ]
864   },
865   {
866     "id":"ca99974a.a9c178",
867     "type":"execute",
868     "name":"generate brg-vpp-honeycomb url",
869     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.brg-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":502.77777099609375,
873     "y":1043.3333501815796,
874     "z":"87a856d9.9ec508",
875     "wires":[
876       [
877
878       ]
879     ]
880   },
881   {
882     "id":"aa97b18b.1226d",
883     "type":"execute",
884     "name":"generate honeycomb-url",
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":476.11109924316406,
889     "y":933.3332643508911,
890     "z":"87a856d9.9ec508",
891     "wires":[
892       [
893
894       ]
895     ]
896   },
897   {
898     "id":"cdf3b3de.27f5e",
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":502.7777557373047,
904     "y":1196.666582584381,
905     "z":"87a856d9.9ec508",
906     "wires":[
907
908     ]
909   }
910 ]