Update brg-topo-activate DG + vG setup
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_brg-topology-operation-activate.json
1 [
2   {
3     "id":"d9e7e1c2.493d3",
4     "type":"dgstart",
5     "name":"DGSTART",
6     "outputs":1,
7     "x":103,
8     "y":46,
9     "z":"f97ade34.d219f",
10     "wires":[
11       [
12         "9a1b0b6b.996428"
13       ]
14     ]
15   },
16   {
17     "id":"9a1b0b6b.996428",
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":199.23807907104492,
26     "y":106.95239067077637,
27     "z":"f97ade34.d219f",
28     "wires":[
29       [
30         "1b80fdb3.e51d42"
31       ]
32     ]
33   },
34   {
35     "id":"1b80fdb3.e51d42",
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":245.15485763549805,
42     "y":142.19044589996338,
43     "z":"f97ade34.d219f",
44     "wires":[
45       [
46         "b9ef2573.e57c88"
47       ]
48     ]
49   },
50   {
51     "id":"b9ef2573.e57c88",
52     "type":"block",
53     "name":"block : atomic",
54     "xml":"<block atomic=\"true\">",
55     "atomic":"true",
56     "comments":"",
57     "outputs":1,
58     "x":140.97620391845703,
59     "y":1138.0237922668457,
60     "z":"f97ade34.d219f",
61     "wires":[
62       [
63         "b4a1686c.6724e8",
64         "377fb8b4.251228",
65         "d661220d.d848d",
66         "c5c60948.27fc28",
67         "c4711874.0ee758",
68         "aceb1a27.11b7a8",
69         "a5137e71.81a65",
70         "5972a9da.16e978",
71         "50e72018.6624",
72         "b3b13e68.d59bb",
73         "ef8d3b6f.8c3c58",
74         "531893c6.c405dc",
75         "7c4bd318.44ab8c",
76         "14b435e1.73803a",
77         "b8e9e857.b4d5e8",
78         "970b23d4.8d05e",
79         "815c3841.72ff98",
80         "a9cc06ef.aed3d8",
81         "17504c2b.5ecc04",
82         "13ddb22.203944e",
83         "75aa4c7c.d1f814",
84         "173f16cf.2f6b79",
85         "5bcb3869.fa6198",
86         "60d1bf52.ad3d6",
87         "ac82543e.0a2288",
88         "4a0f8ea5.474a2",
89         "5f66c498.33c76c",
90         "eab64b.710229b8",
91         "36e0c301.ee8e2c",
92         "5f18f40a.7db70c",
93         "ecf121e2.af8c8",
94         "496f8c72.09c0b4",
95         "9e2897fc.bd5fd8",
96         "fc322e28.718d1"
97       ]
98     ]
99   },
100   {
101     "id":"377fb8b4.251228",
102     "type":"returnSuccess",
103     "name":"return success",
104     "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",
105     "comments":"",
106     "x":420.00017166137695,
107     "y":2417.3817806243896,
108     "z":"f97ade34.d219f",
109     "wires":[
110
111     ]
112   },
113   {
114     "id":"b4a1686c.6724e8",
115     "type":"set",
116     "name":"set output to api handler",
117     "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",
118     "comments":"",
119     "x":448.7540855407715,
120     "y":2381.5043268203735,
121     "z":"f97ade34.d219f",
122     "wires":[
123
124     ]
125   },
126   {
127     "id":"b3b13e68.d59bb",
128     "type":"set",
129     "name":"set allotted-resource-oper-status",
130     "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",
131     "comments":"",
132     "x":459.7542190551758,
133     "y":666.0514001846313,
134     "z":"f97ade34.d219f",
135     "wires":[
136
137     ]
138   },
139   {
140     "id":"c5c60948.27fc28",
141     "type":"set",
142     "name":"set tmp.ar.self-link",
143     "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",
144     "comments":"",
145     "x":415.73806381225586,
146     "y":259.33332538604736,
147     "z":"f97ade34.d219f",
148     "wires":[
149
150     ]
151   },
152   {
153     "id":"d661220d.d848d",
154     "type":"set",
155     "name":"set tmp.ar.allotted-resource-id,etc",
156     "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",
157     "comments":"",
158     "x":462.9973258972168,
159     "y":225.59259128570557,
160     "z":"f97ade34.d219f",
161     "wires":[
162
163     ]
164   },
165   {
166     "id":"c4711874.0ee758",
167     "type":"execute",
168     "name":"execute Properties",
169     "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",
170     "comments":"",
171     "outputs":1,
172     "x":421.9934196472168,
173     "y":295.23152446746826,
174     "z":"f97ade34.d219f",
175     "wires":[
176       [
177
178       ]
179     ]
180   },
181   {
182     "id":"a5137e71.81a65",
183     "type":"execute",
184     "name":"execute RestApiCallNode - Get AR by id",
185     "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",
186     "comments":"",
187     "outputs":1,
188     "x":484.5187530517578,
189     "y":456.4594917297363,
190     "z":"f97ade34.d219f",
191     "wires":[
192       [
193         "edb9e1fa.046de",
194         "d98ea5a4.989128"
195       ]
196     ]
197   },
198   {
199     "id":"aceb1a27.11b7a8",
200     "type":"execute",
201     "name":"generate allotted-resource url",
202     "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",
203     "comments":"",
204     "outputs":1,
205     "x":450.0648536682129,
206     "y":355.0172290802002,
207     "z":"f97ade34.d219f",
208     "wires":[
209       [
210
211       ]
212     ]
213   },
214   {
215     "id":"edb9e1fa.046de",
216     "type":"success",
217     "name":"success",
218     "xml":"<outcome value='success'>\n",
219     "comments":"",
220     "outputs":1,
221     "x":741.8148918151855,
222     "y":455.26725220680237,
223     "z":"f97ade34.d219f",
224     "wires":[
225       [
226         "52d019c0.82c438"
227       ]
228     ]
229   },
230   {
231     "id":"5972a9da.16e978",
232     "type":"execute",
233     "name":"execute RestApiCallNode - PUT AR by id",
234     "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",
235     "comments":"",
236     "outputs":1,
237     "x":492.52931213378906,
238     "y":809.4341316223145,
239     "z":"f97ade34.d219f",
240     "wires":[
241       [
242         "854bd044.7a222",
243         "8243312c.4fc6e",
244         "a02378bd.a2d368"
245       ]
246     ]
247   },
248   {
249     "id":"854bd044.7a222",
250     "type":"not-found",
251     "name":"not-found",
252     "xml":"<outcome value='not-found'>\n",
253     "comments":"",
254     "outputs":1,
255     "x":1016.8373832702637,
256     "y":834.4324235916138,
257     "z":"f97ade34.d219f",
258     "wires":[
259       [
260         "981caf01.1190d"
261       ]
262     ]
263   },
264   {
265     "id":"8243312c.4fc6e",
266     "type":"failure",
267     "name":"failure",
268     "xml":"<outcome value='failure'>\n",
269     "comments":"",
270     "outputs":1,
271     "x":1007.8374328613281,
272     "y":802.9324493408203,
273     "z":"f97ade34.d219f",
274     "wires":[
275       [
276         "981caf01.1190d"
277       ]
278     ]
279   },
280   {
281     "id":"a02378bd.a2d368",
282     "type":"success",
283     "name":"success",
284     "xml":"<outcome value='success'>\n",
285     "comments":"",
286     "outputs":1,
287     "x":1011.5874710083008,
288     "y":773.2895542159677,
289     "z":"f97ade34.d219f",
290     "wires":[
291       [
292         "9efe8414.91ed18"
293       ]
294     ]
295   },
296   {
297     "id":"981caf01.1190d",
298     "type":"returnFailure",
299     "name":"return failure",
300     "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",
301     "comments":"",
302     "x":1177.5874710083008,
303     "y":803.6824731826782,
304     "z":"f97ade34.d219f",
305     "wires":[
306
307     ]
308   },
309   {
310     "id":"52d019c0.82c438",
311     "type":"block",
312     "name":"block: atomic",
313     "xml":"<block atomic=\"true\">\n",
314     "atomic":"false",
315     "comments":"",
316     "outputs":1,
317     "x":922.8148460388184,
318     "y":455.7672016620636,
319     "z":"f97ade34.d219f",
320     "wires":[
321       [
322         "515d911f.70f65",
323         "388539de.469206"
324       ]
325     ]
326   },
327   {
328     "id":"515d911f.70f65",
329     "type":"switchNode",
330     "name":"switch brg length",
331     "xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n",
332     "comments":"",
333     "outputs":1,
334     "x":1168.6720924377441,
335     "y":490.052964925766,
336     "z":"f97ade34.d219f",
337     "wires":[
338       [
339         "a34fd934.5de948"
340       ]
341     ]
342   },
343   {
344     "id":"a34fd934.5de948",
345     "type":"other",
346     "name":"outcome 1",
347     "xml":"<outcome value='1'>\n",
348     "comments":"",
349     "outputs":1,
350     "x":1359.6720962524414,
351     "y":490.0529625415802,
352     "z":"f97ade34.d219f",
353     "wires":[
354       [
355         "1534773e.2f1e69"
356       ]
357     ]
358   },
359   {
360     "id":"d1c6c306.93b2a",
361     "type":"set",
362     "name":"set brg-ar from get",
363     "xml":"<set>\n<parameter name='brg-ar.' value='$mdsal-ar.brg-allotted-resource[0].' />\n",
364     "comments":"",
365     "x":1759.5292320251465,
366     "y":490.62438678741455,
367     "z":"f97ade34.d219f",
368     "wires":[
369
370     ]
371   },
372   {
373     "id":"1534773e.2f1e69",
374     "type":"block",
375     "name":"block: atomic",
376     "xml":"<block atomic='true'>\n",
377     "atomic":"false",
378     "comments":"",
379     "outputs":1,
380     "x":1530.5290794372559,
381     "y":490.6244316101074,
382     "z":"f97ade34.d219f",
383     "wires":[
384       [
385         "d1c6c306.93b2a",
386         "2feb6861.c55048",
387         "834030e7.c71a9"
388       ]
389     ]
390   },
391   {
392     "id":"2feb6861.c55048",
393     "type":"set",
394     "name":"set oper-status",
395     "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",
396     "comments":"",
397     "x":1757.5294761657715,
398     "y":558.0529508590698,
399     "z":"f97ade34.d219f",
400     "wires":[
401
402     ]
403   },
404   {
405     "id":"2bb45a1f.a94976",
406     "type":"comment",
407     "name":"GET brg-allotted-resource from mdsal",
408     "info":"",
409     "comments":"",
410     "x":509.81481552124023,
411     "y":419.7671926021576,
412     "z":"f97ade34.d219f",
413     "wires":[
414
415     ]
416   },
417   {
418     "id":"834030e7.c71a9",
419     "type":"switchNode",
420     "name":"switch order-status",
421     "xml":"<switch test='`$brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
422     "comments":"",
423     "outputs":1,
424     "x":1767.52925491333,
425     "y":523.6243848800659,
426     "z":"f97ade34.d219f",
427     "wires":[
428       [
429         "930ea57d.0f30f8",
430         "4c055a7a.ab9f24"
431       ]
432     ]
433   },
434   {
435     "id":"930ea57d.0f30f8",
436     "type":"outcome",
437     "name":"outcome Created",
438     "xml":"<outcome value='Created'>\n",
439     "comments":"",
440     "outputs":1,
441     "x":1979.1292114257812,
442     "y":484.6243848800659,
443     "z":"f97ade34.d219f",
444     "wires":[
445       [
446         "56b9c5ed.fb1fec"
447       ]
448     ]
449   },
450   {
451     "id":"4c055a7a.ab9f24",
452     "type":"outcome",
453     "name":"outcome Other",
454     "xml":"<outcome value='Other'>\n",
455     "comments":"",
456     "outputs":1,
457     "x":2004.8435859680176,
458     "y":520.052975654602,
459     "z":"f97ade34.d219f",
460     "wires":[
461       [
462         "56b9c5ed.fb1fec"
463       ]
464     ]
465   },
466   {
467     "id":"77c5ca77.4678d4",
468     "type":"comment",
469     "name":"Set allotted-resource-identifiers",
470     "info":"",
471     "comments":"",
472     "x":465.33863830566406,
473     "y":510.3386459350586,
474     "z":"f97ade34.d219f",
475     "wires":[
476
477     ]
478   },
479   {
480     "id":"388539de.469206",
481     "type":"set",
482     "name":"save backup copy of mdsal-ar for rollback",
483     "xml":"<set>\n<parameter name='bk-brg-ar' value='$mdsal-ar.' />\n",
484     "comments":"",
485     "x":1248.3864250183105,
486     "y":455.76729369163513,
487     "z":"f97ade34.d219f",
488     "wires":[
489
490     ]
491   },
492   {
493     "id":"ddaea4c6.1d9aa8",
494     "type":"comment",
495     "name":"Create urls for restapi",
496     "info":"",
497     "comments":"",
498     "x":420.9576606750488,
499     "y":324.6243562698364,
500     "z":"f97ade34.d219f",
501     "wires":[
502
503     ]
504   },
505   {
506     "id":"9efe8414.91ed18",
507     "type":"block",
508     "name":"block",
509     "xml":"<block>\n",
510     "atomic":"false",
511     "comments":"",
512     "outputs":1,
513     "x":1153.2434387207031,
514     "y":769.4817234054208,
515     "z":"f97ade34.d219f",
516     "wires":[
517       [
518
519       ]
520     ]
521   },
522   {
523     "id":"ff41987d.46ce18",
524     "type":"comment",
525     "name":"TO DO: vnf/put parent",
526     "info":"",
527     "comments":"",
528     "x":423.2433776855469,
529     "y":698.1481952667236,
530     "z":"f97ade34.d219f",
531     "wires":[
532
533     ]
534   },
535   {
536     "id":"50e72018.6624",
537     "type":"execute",
538     "name":"execute getTime",
539     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
540     "comments":"",
541     "outputs":1,
542     "x":407.24338150024414,
543     "y":627.4815549850464,
544     "z":"f97ade34.d219f",
545     "wires":[
546       [
547
548       ]
549     ]
550   },
551   {
552     "id":"d98ea5a4.989128",
553     "type":"other",
554     "name":"other",
555     "xml":"<outcome value='Other'>\n",
556     "comments":"",
557     "outputs":1,
558     "x":741.5766868591309,
559     "y":491.4814250469208,
560     "z":"f97ade34.d219f",
561     "wires":[
562       [
563         "838280a9.26353"
564       ]
565     ]
566   },
567   {
568     "id":"838280a9.26353",
569     "type":"block",
570     "name":"block: atomic",
571     "xml":"<block atomic=\"true\">\n",
572     "atomic":"false",
573     "comments":"",
574     "outputs":1,
575     "x":921.5766372680664,
576     "y":492.1479756832123,
577     "z":"f97ade34.d219f",
578     "wires":[
579       [
580
581       ]
582     ]
583   },
584   {
585     "id":"ef8d3b6f.8c3c58",
586     "type":"set",
587     "name":"set id",
588     "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.` \" />",
589     "comments":"",
590     "x":390.24342346191406,
591     "y":547.1481666564941,
592     "z":"f97ade34.d219f",
593     "wires":[
594
595     ]
596   },
597   {
598     "id":"56b9c5ed.fb1fec",
599     "type":"block",
600     "name":"block",
601     "xml":"<block>\n",
602     "atomic":"false",
603     "comments":"",
604     "outputs":1,
605     "x":2193.5997276306152,
606     "y":486.0000190734863,
607     "z":"f97ade34.d219f",
608     "wires":[
609       [
610
611       ]
612     ]
613   },
614   {
615     "id":"531893c6.c405dc",
616     "type":"update",
617     "name":"update AAI allotted-resource",
618     "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",
619     "comments":"",
620     "outputs":1,
621     "x":450.85716247558594,
622     "y":731.2380628585815,
623     "z":"f97ade34.d219f",
624     "wires":[
625       [
626         "35b2a07f.fbd7b",
627         "172a8c52.4cd114"
628       ]
629     ]
630   },
631   {
632     "id":"35b2a07f.fbd7b",
633     "type":"failure",
634     "name":"failure",
635     "xml":"<outcome value='failure'>\n",
636     "comments":"",
637     "outputs":1,
638     "x":706.6190567016602,
639     "y":714.1905598640442,
640     "z":"f97ade34.d219f",
641     "wires":[
642       [
643         "22b0ba82.e21336"
644       ]
645     ]
646   },
647   {
648     "id":"22b0ba82.e21336",
649     "type":"returnFailure",
650     "name":"return failure",
651     "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",
652     "comments":"",
653     "x":873.142936706543,
654     "y":725.8096308708191,
655     "z":"f97ade34.d219f",
656     "wires":[
657
658     ]
659   },
660   {
661     "id":"172a8c52.4cd114",
662     "type":"failure",
663     "name":"not-found",
664     "xml":"<outcome value='not-found'>\n",
665     "comments":"",
666     "outputs":1,
667     "x":713.7143440246582,
668     "y":746.9525275230408,
669     "z":"f97ade34.d219f",
670     "wires":[
671       [
672         "22b0ba82.e21336"
673       ]
674     ]
675   },
676   {
677     "id":"7c4bd318.44ab8c",
678     "type":"execute",
679     "name":"execute RestApiCallNode - setup BRG to vgMux vxlan tunnel port",
680     "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",
681     "comments":"",
682     "outputs":1,
683     "x":563.0000610351562,
684     "y":1300.6668300628662,
685     "z":"f97ade34.d219f",
686     "wires":[
687       [
688         "37688fbb.e25e1",
689         "ac4b28e5.62c318",
690         "12690113.8980bf"
691       ]
692     ]
693   },
694   {
695     "id":"37688fbb.e25e1",
696     "type":"not-found",
697     "name":"not-found",
698     "xml":"<outcome value='not-found'>\n",
699     "comments":"",
700     "outputs":1,
701     "x":896.9748497009277,
702     "y":1359.9984420761466,
703     "z":"f97ade34.d219f",
704     "wires":[
705       [
706         "5f4a9e0d.9b39c"
707       ]
708     ]
709   },
710   {
711     "id":"ac4b28e5.62c318",
712     "type":"failure",
713     "name":"failure",
714     "xml":"<outcome value='failure'>\n",
715     "comments":"",
716     "outputs":1,
717     "x":887.9748992919922,
718     "y":1328.4984678253531,
719     "z":"f97ade34.d219f",
720     "wires":[
721       [
722         "5f4a9e0d.9b39c"
723       ]
724     ]
725   },
726   {
727     "id":"12690113.8980bf",
728     "type":"success",
729     "name":"success",
730     "xml":"<outcome value='success'>\n",
731     "comments":"",
732     "outputs":1,
733     "x":891.7249374389648,
734     "y":1298.8555727005005,
735     "z":"f97ade34.d219f",
736     "wires":[
737       [
738         "2f4610c6.cb40f"
739       ]
740     ]
741   },
742   {
743     "id":"5f4a9e0d.9b39c",
744     "type":"returnFailure",
745     "name":"return failure",
746     "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",
747     "comments":"",
748     "x":1057.7249374389648,
749     "y":1329.248491667211,
750     "z":"f97ade34.d219f",
751     "wires":[
752
753     ]
754   },
755   {
756     "id":"2f4610c6.cb40f",
757     "type":"block",
758     "name":"block",
759     "xml":"<block>\n",
760     "atomic":"false",
761     "comments":"",
762     "outputs":1,
763     "x":1033.3809051513672,
764     "y":1295.0477418899536,
765     "z":"f97ade34.d219f",
766     "wires":[
767       [
768
769       ]
770     ]
771   },
772   {
773     "id":"14b435e1.73803a",
774     "type":"execute",
775     "name":"execute RestApiCallNode - setup BRG vxlan bridge domain",
776     "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",
777     "comments":"",
778     "outputs":1,
779     "x":544.6668243408203,
780     "y":1447.3336246013641,
781     "z":"f97ade34.d219f",
782     "wires":[
783       [
784         "3797ac64.379644",
785         "fce58130.bb12a",
786         "6c45ae8b.a4da4"
787       ]
788     ]
789   },
790   {
791     "id":"3797ac64.379644",
792     "type":"not-found",
793     "name":"not-found",
794     "xml":"<outcome value='not-found'>\n",
795     "comments":"",
796     "outputs":1,
797     "x":965.9747314453125,
798     "y":1502.9985536560416,
799     "z":"f97ade34.d219f",
800     "wires":[
801       [
802         "5e305e58.bfbe4"
803       ]
804     ]
805   },
806   {
807     "id":"fce58130.bb12a",
808     "type":"failure",
809     "name":"failure",
810     "xml":"<outcome value='failure'>\n",
811     "comments":"",
812     "outputs":1,
813     "x":956.974781036377,
814     "y":1471.4985794052482,
815     "z":"f97ade34.d219f",
816     "wires":[
817       [
818         "5e305e58.bfbe4"
819       ]
820     ]
821   },
822   {
823     "id":"6c45ae8b.a4da4",
824     "type":"success",
825     "name":"success",
826     "xml":"<outcome value='success'>\n",
827     "comments":"",
828     "outputs":1,
829     "x":960.7248191833496,
830     "y":1441.8556842803955,
831     "z":"f97ade34.d219f",
832     "wires":[
833       [
834         "fb3d8268.ba343"
835       ]
836     ]
837   },
838   {
839     "id":"5e305e58.bfbe4",
840     "type":"returnFailure",
841     "name":"return failure",
842     "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",
843     "comments":"",
844     "x":1126.7248191833496,
845     "y":1472.248603247106,
846     "z":"f97ade34.d219f",
847     "wires":[
848
849     ]
850   },
851   {
852     "id":"fb3d8268.ba343",
853     "type":"block",
854     "name":"block",
855     "xml":"<block>\n",
856     "atomic":"false",
857     "comments":"",
858     "outputs":1,
859     "x":1102.380786895752,
860     "y":1438.0478534698486,
861     "z":"f97ade34.d219f",
862     "wires":[
863       [
864
865       ]
866     ]
867   },
868   {
869     "id":"815c3841.72ff98",
870     "type":"set",
871     "name":"set BRG to vgMUX VXLAN Tunnel Port Props",
872     "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.brg-topology.brg-assignments.vgmux-lan-ip` \" />\n<parameter name='tmp.tunnel-src-ip' value=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip` \" />\n<parameter name='tmp.tunnel-vni' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vni` \" />",
873     "comments":"",
874     "x":499.1112060546875,
875     "y":1165.6670894622803,
876     "z":"f97ade34.d219f",
877     "wires":[
878
879     ]
880   },
881   {
882     "id":"970b23d4.8d05e",
883     "type":"execute",
884     "name":"generate full brg-vpp-honeycomb url",
885     "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",
886     "comments":"",
887     "outputs":1,
888     "x":470.77784729003906,
889     "y":1220.6668682098389,
890     "z":"f97ade34.d219f",
891     "wires":[
892       [
893
894       ]
895     ]
896   },
897   {
898     "id":"b8e9e857.b4d5e8",
899     "type":"execute",
900     "name":"generate honeycomb-url to vBRG",
901     "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",
902     "comments":"",
903     "outputs":1,
904     "x":461.7778778076172,
905     "y":1109.3333940505981,
906     "z":"f97ade34.d219f",
907     "wires":[
908       [
909
910       ]
911     ]
912   },
913   {
914     "id":"a9cc06ef.aed3d8",
915     "type":"set",
916     "name":"set BRG Bridge Domain Props",
917     "xml":"<set>\n<parameter name='tmp.bridge-domain' value=\"bridge-domain-10\" />\n<parameter name='tmp.split-horizon-group' value=\"2\" />",
918     "comments":"",
919     "x":454.1111602783203,
920     "y":1372.3334999084473,
921     "z":"f97ade34.d219f",
922     "wires":[
923
924     ]
925   },
926   {
927     "id":"a0257b81.5e78c8",
928     "type":"comment",
929     "name":"save service data for BRG to md-sal for SO to do GET ",
930     "info":"http://c1.vm1.sdnc.simpledemo.openecomp.org:8282/restconf/config/GENERIC-RESOURCE-API:services/service/e565bb6b-de14-4a5c-a992-65a681771a7a/service-data/service-topology/\n\n\nservice-instance-id is of the vBRG (in VNF-API data)",
931     "comments":"",
932     "x":199.2949981689453,
933     "y":1965.7714748382568,
934     "z":"f97ade34.d219f",
935     "wires":[
936
937     ]
938   },
939   {
940     "id":"13ddb22.203944e",
941     "type":"execute",
942     "name":"execute RestApiCallNode - Get service-data by vnf-id",
943     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.vnf-api-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=\"service-data\" />\n\n",
944     "comments":"",
945     "outputs":1,
946     "x":531.5014686584473,
947     "y":2092.834963798523,
948     "z":"f97ade34.d219f",
949     "wires":[
950       [
951         "855aaba9.6b3aa8",
952         "a699d7fa.a36428"
953       ]
954     ]
955   },
956   {
957     "id":"855aaba9.6b3aa8",
958     "type":"success",
959     "name":"success",
960     "xml":"<outcome value='success'>\n",
961     "comments":"",
962     "outputs":1,
963     "x":820.3213882446289,
964     "y":2090.214307308197,
965     "z":"f97ade34.d219f",
966     "wires":[
967       [
968         "f2f0f6cf.5680f8"
969       ]
970     ]
971   },
972   {
973     "id":"f2f0f6cf.5680f8",
974     "type":"block",
975     "name":"block: atomic",
976     "xml":"<block atomic=\"true\">\n",
977     "atomic":"false",
978     "comments":"",
979     "outputs":1,
980     "x":1001.3213424682617,
981     "y":2090.7142567634583,
982     "z":"f97ade34.d219f",
983     "wires":[
984       [
985         "4bd61641.b9f8b8",
986         "917b8b10.4cc338"
987       ]
988     ]
989   },
990   {
991     "id":"4bd61641.b9f8b8",
992     "type":"switchNode",
993     "name":"switch brg length",
994     "xml":"<switch test='`$service-data.service-data_length`'>\n",
995     "comments":"",
996     "outputs":1,
997     "x":1247.1785888671875,
998     "y":2125.0000200271606,
999     "z":"f97ade34.d219f",
1000     "wires":[
1001       [
1002         "8fd40478.4d0058"
1003       ]
1004     ]
1005   },
1006   {
1007     "id":"8fd40478.4d0058",
1008     "type":"other",
1009     "name":"outcome 1",
1010     "xml":"<outcome value='1'>\n",
1011     "comments":"",
1012     "outputs":1,
1013     "x":1438.1785926818848,
1014     "y":2125.000017642975,
1015     "z":"f97ade34.d219f",
1016     "wires":[
1017       [
1018         "dfcd0278.2218"
1019       ]
1020     ]
1021   },
1022   {
1023     "id":"b0e5cf35.cee86",
1024     "type":"set",
1025     "name":"set service-data from get",
1026     "xml":"<set>\n<parameter name='tmp.service-data.' value='$service-data.service-data[0].' />\n",
1027     "comments":"",
1028     "x":1838.0357284545898,
1029     "y":2125.571441888809,
1030     "z":"f97ade34.d219f",
1031     "wires":[
1032
1033     ]
1034   },
1035   {
1036     "id":"dfcd0278.2218",
1037     "type":"block",
1038     "name":"block: atomic",
1039     "xml":"<block atomic='true'>\n",
1040     "atomic":"false",
1041     "comments":"",
1042     "outputs":1,
1043     "x":1609.0355758666992,
1044     "y":2125.571486711502,
1045     "z":"f97ade34.d219f",
1046     "wires":[
1047       [
1048         "b0e5cf35.cee86",
1049         "86e0cd73.efb82"
1050       ]
1051     ]
1052   },
1053   {
1054     "id":"e935998f.98c578",
1055     "type":"comment",
1056     "name":"GET vnf-api service info",
1057     "info":"",
1058     "comments":"",
1059     "x":436.8927230834961,
1060     "y":2056.142660140991,
1061     "z":"f97ade34.d219f",
1062     "wires":[
1063
1064     ]
1065   },
1066   {
1067     "id":"86e0cd73.efb82",
1068     "type":"switchNode",
1069     "name":"switch order-status",
1070     "xml":"<switch test='`$tmp.service-data.order-status`'>\n",
1071     "comments":"",
1072     "outputs":1,
1073     "x":1821.7499465942383,
1074     "y":2177.142867088318,
1075     "z":"f97ade34.d219f",
1076     "wires":[
1077       [
1078         "80a04a27.27e6e8",
1079         "bd91de80.00dd6"
1080       ]
1081     ]
1082   },
1083   {
1084     "id":"80a04a27.27e6e8",
1085     "type":"outcome",
1086     "name":"outcome Created",
1087     "xml":"<outcome value='Created'>\n",
1088     "comments":"",
1089     "outputs":1,
1090     "x":2061.635509490967,
1091     "y":2141.571415901184,
1092     "z":"f97ade34.d219f",
1093     "wires":[
1094       [
1095         "e6bcc367.5fb5e"
1096       ]
1097     ]
1098   },
1099   {
1100     "id":"bd91de80.00dd6",
1101     "type":"outcome",
1102     "name":"outcome Other",
1103     "xml":"<outcome value='Other'>\n",
1104     "comments":"",
1105     "outputs":1,
1106     "x":2087.349884033203,
1107     "y":2177.00000667572,
1108     "z":"f97ade34.d219f",
1109     "wires":[
1110       [
1111         "e6bcc367.5fb5e"
1112       ]
1113     ]
1114   },
1115   {
1116     "id":"ead3daba.b613a8",
1117     "type":"comment",
1118     "name":"Set service-data",
1119     "info":"",
1120     "comments":"",
1121     "x":410.9879837036133,
1122     "y":2140.9998531341553,
1123     "z":"f97ade34.d219f",
1124     "wires":[
1125
1126     ]
1127   },
1128   {
1129     "id":"917b8b10.4cc338",
1130     "type":"set",
1131     "name":"save backup copy of mdsal-ar for rollback",
1132     "xml":"<set>\n<parameter name='bk-service-data' value='$service-data.' />\n",
1133     "comments":"",
1134     "x":1326.892921447754,
1135     "y":2090.71434879303,
1136     "z":"f97ade34.d219f",
1137     "wires":[
1138
1139     ]
1140   },
1141   {
1142     "id":"a699d7fa.a36428",
1143     "type":"other",
1144     "name":"other",
1145     "xml":"<outcome value='Other'>\n",
1146     "comments":"",
1147     "outputs":1,
1148     "x":820.0831832885742,
1149     "y":2126.4284801483154,
1150     "z":"f97ade34.d219f",
1151     "wires":[
1152       [
1153         "bcb372d0.e3af8"
1154       ]
1155     ]
1156   },
1157   {
1158     "id":"bcb372d0.e3af8",
1159     "type":"block",
1160     "name":"block: atomic",
1161     "xml":"<block atomic=\"true\">\n",
1162     "atomic":"false",
1163     "comments":"",
1164     "outputs":1,
1165     "x":1000.0831336975098,
1166     "y":2127.095030784607,
1167     "z":"f97ade34.d219f",
1168     "wires":[
1169       [
1170
1171       ]
1172     ]
1173   },
1174   {
1175     "id":"e6bcc367.5fb5e",
1176     "type":"block",
1177     "name":"block",
1178     "xml":"<block>\n",
1179     "atomic":"false",
1180     "comments":"",
1181     "outputs":1,
1182     "x":2276.106025695801,
1183     "y":2142.9470500946045,
1184     "z":"f97ade34.d219f",
1185     "wires":[
1186       [
1187
1188       ]
1189     ]
1190   },
1191   {
1192     "id":"17504c2b.5ecc04",
1193     "type":"execute",
1194     "name":"generate vnf service-info url",
1195     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.vnf-api.service-information`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.vnf-api-url\"/>\n    <parameter name=\"target\" value=\"{vnf-id}\"/>\n    <parameter name=\"replacement\" value=\"`$brg-topology-operation-input.allotted-resource-data.brg-topology.brg-assignments.brg-vnf-id`\"/>\n",
1196     "comments":"",
1197     "outputs":1,
1198     "x":452.3109130859375,
1199     "y":2014.2635564804077,
1200     "z":"f97ade34.d219f",
1201     "wires":[
1202       [
1203
1204       ]
1205     ]
1206   },
1207   {
1208     "id":"173f16cf.2f6b79",
1209     "type":"execute",
1210     "name":"execute RestApiCallNode - PUT service into service",
1211     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.services.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.services-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",
1212     "comments":"",
1213     "outputs":1,
1214     "x":531.5966529846191,
1215     "y":2269.5020151138306,
1216     "z":"f97ade34.d219f",
1217     "wires":[
1218       [
1219         "5cf17dae.c40c44",
1220         "35de11e4.9a122e",
1221         "95e02b4f.ebd798"
1222       ]
1223     ]
1224   },
1225   {
1226     "id":"5cf17dae.c40c44",
1227     "type":"not-found",
1228     "name":"not-found",
1229     "xml":"<outcome value='not-found'>\n",
1230     "comments":"",
1231     "outputs":1,
1232     "x":1037.8095092773438,
1233     "y":2264.024027824402,
1234     "z":"f97ade34.d219f",
1235     "wires":[
1236       [
1237         "6d015df7.3af934"
1238       ]
1239     ]
1240   },
1241   {
1242     "id":"35de11e4.9a122e",
1243     "type":"failure",
1244     "name":"failure",
1245     "xml":"<outcome value='failure'>\n",
1246     "comments":"",
1247     "outputs":1,
1248     "x":1028.8095588684082,
1249     "y":2232.5240535736084,
1250     "z":"f97ade34.d219f",
1251     "wires":[
1252       [
1253         "6d015df7.3af934"
1254       ]
1255     ]
1256   },
1257   {
1258     "id":"95e02b4f.ebd798",
1259     "type":"success",
1260     "name":"success",
1261     "xml":"<outcome value='success'>\n",
1262     "comments":"",
1263     "outputs":1,
1264     "x":1032.5595970153809,
1265     "y":2202.8811584487557,
1266     "z":"f97ade34.d219f",
1267     "wires":[
1268       [
1269         "90681ac.479fee8"
1270       ]
1271     ]
1272   },
1273   {
1274     "id":"6d015df7.3af934",
1275     "type":"returnFailure",
1276     "name":"return failure",
1277     "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",
1278     "comments":"",
1279     "x":1198.5595970153809,
1280     "y":2233.2740774154663,
1281     "z":"f97ade34.d219f",
1282     "wires":[
1283
1284     ]
1285   },
1286   {
1287     "id":"90681ac.479fee8",
1288     "type":"block",
1289     "name":"block",
1290     "xml":"<block>\n",
1291     "atomic":"false",
1292     "comments":"",
1293     "outputs":1,
1294     "x":1174.2155647277832,
1295     "y":2199.073327638209,
1296     "z":"f97ade34.d219f",
1297     "wires":[
1298       [
1299
1300       ]
1301     ]
1302   },
1303   {
1304     "id":"75aa4c7c.d1f814",
1305     "type":"execute",
1306     "name":"generate services url",
1307     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.services`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.services-url\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.service-data.service-information.service-instance-id`\"/>\n",
1308     "comments":"",
1309     "outputs":1,
1310     "x":434.9299964904785,
1311     "y":2229.0258140563965,
1312     "z":"f97ade34.d219f",
1313     "wires":[
1314       [
1315
1316       ]
1317     ]
1318   },
1319   {
1320     "id":"5bcb3869.fa6198",
1321     "type":"get-resource",
1322     "name":"get-resource IPADDR from dmaap DHCP_MAP ",
1323     "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='IPADDR' key=\"SELECT min(ip_addr) ip from DHCP_MAP where mac_addr = $brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.brg-wan-mac-address\" pfx=\"tmp.brg-wan-ip\" >\n",
1324     "comments":"",
1325     "outputs":1,
1326     "x":507.85716247558594,
1327     "y":857.7501087188721,
1328     "z":"f97ade34.d219f",
1329     "wires":[
1330       [
1331
1332       ]
1333     ]
1334   },
1335   {
1336     "id":"60d1bf52.ad3d6",
1337     "type":"set",
1338     "name":"set brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip",
1339     "xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip' value='`$tmp.brg-wan-ip.ip`' />\n",
1340     "comments":"",
1341     "x":594.0000305175781,
1342     "y":907.0000267028809,
1343     "z":"f97ade34.d219f",
1344     "wires":[
1345
1346     ]
1347   },
1348   {
1349     "id":"ac82543e.0a2288",
1350     "type":"set",
1351     "name":"set tmp.ar.consuming-service-instance-id to find vgmux-lan-ip",
1352     "xml":"<set>\n<parameter name='tmp.ar.consuming-service-instance-id' value='`$allotted-resource-data.brg-topology.allotted-resource-identifiers.consuming-service-instance-id`' />\n",
1353     "comments":"",
1354     "x":554.9999694824219,
1355     "y":954.9998550415039,
1356     "z":"f97ade34.d219f",
1357     "wires":[
1358
1359     ]
1360   },
1361   {
1362     "id":"4a0f8ea5.474a2",
1363     "type":"call",
1364     "name":"call GENERIC-RESOURCE-API:get-vgmux-lan-ip",
1365     "xml":"<call module='GENERIC-RESOURCE-API' rpc='get-vgmux-lan-ip' mode='sync' >\n",
1366     "comments":"",
1367     "outputs":1,
1368     "x":515.0000152587891,
1369     "y":1003.3331918716431,
1370     "z":"f97ade34.d219f",
1371     "wires":[
1372       [
1373
1374       ]
1375     ]
1376   },
1377   {
1378     "id":"5f66c498.33c76c",
1379     "type":"set",
1380     "name":"set brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-lan-ip",
1381     "xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-lan-ip' value='`$tmp.tunnelxconn-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vgmux-lan-ip`' />\n",
1382     "comments":"",
1383     "x":593.3332672119141,
1384     "y":1056.6665697097778,
1385     "z":"f97ade34.d219f",
1386     "wires":[
1387
1388     ]
1389   },
1390   {
1391     "id":"e5c25a7.36cf4a8",
1392     "type":"comment",
1393     "name":"Change to POST and just update service?",
1394     "info":"",
1395     "comments":"",
1396     "x":627.8571662902832,
1397     "y":2293.928587913513,
1398     "z":"f97ade34.d219f",
1399     "wires":[
1400
1401     ]
1402   },
1403   {
1404     "id":"9e2897fc.bd5fd8",
1405     "type":"execute",
1406     "name":"execute RestApiCallNode - setup BRG to vgMux vxlan tunnel port",
1407     "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",
1408     "comments":"",
1409     "outputs":1,
1410     "x":571.6666870117188,
1411     "y":1769.1666793823242,
1412     "z":"f97ade34.d219f",
1413     "wires":[
1414       [
1415         "d26a8b7a.d9ece8",
1416         "fbdedf10.5454a",
1417         "57356d95.5d51a4"
1418       ]
1419     ]
1420   },
1421   {
1422     "id":"d26a8b7a.d9ece8",
1423     "type":"not-found",
1424     "name":"not-found",
1425     "xml":"<outcome value='not-found'>\n",
1426     "comments":"",
1427     "outputs":1,
1428     "x":905.6414756774902,
1429     "y":1828.4982913956046,
1430     "z":"f97ade34.d219f",
1431     "wires":[
1432       [
1433         "44fec79e.04adb8"
1434       ]
1435     ]
1436   },
1437   {
1438     "id":"fbdedf10.5454a",
1439     "type":"failure",
1440     "name":"failure",
1441     "xml":"<outcome value='failure'>\n",
1442     "comments":"",
1443     "outputs":1,
1444     "x":896.6415252685547,
1445     "y":1796.9983171448112,
1446     "z":"f97ade34.d219f",
1447     "wires":[
1448       [
1449         "44fec79e.04adb8"
1450       ]
1451     ]
1452   },
1453   {
1454     "id":"57356d95.5d51a4",
1455     "type":"success",
1456     "name":"success",
1457     "xml":"<outcome value='success'>\n",
1458     "comments":"",
1459     "outputs":1,
1460     "x":900.3915634155273,
1461     "y":1767.3554220199585,
1462     "z":"f97ade34.d219f",
1463     "wires":[
1464       [
1465         "267bd26d.8679be"
1466       ]
1467     ]
1468   },
1469   {
1470     "id":"44fec79e.04adb8",
1471     "type":"returnFailure",
1472     "name":"return failure",
1473     "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",
1474     "comments":"",
1475     "x":1066.3915634155273,
1476     "y":1797.748340986669,
1477     "z":"f97ade34.d219f",
1478     "wires":[
1479
1480     ]
1481   },
1482   {
1483     "id":"267bd26d.8679be",
1484     "type":"block",
1485     "name":"block",
1486     "xml":"<block>\n",
1487     "atomic":"false",
1488     "comments":"",
1489     "outputs":1,
1490     "x":1042.0475311279297,
1491     "y":1763.5475912094116,
1492     "z":"f97ade34.d219f",
1493     "wires":[
1494       [
1495
1496       ]
1497     ]
1498   },
1499   {
1500     "id":"fc322e28.718d1",
1501     "type":"execute",
1502     "name":"execute RestApiCallNode - setup BRG vxlan bridge domain",
1503     "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",
1504     "comments":"",
1505     "outputs":1,
1506     "x":551.6668167114258,
1507     "y":1875.833604812622,
1508     "z":"f97ade34.d219f",
1509     "wires":[
1510       [
1511         "2e288f38.66f4a",
1512         "bb6fb110.a62d",
1513         "2d9ebec0.87afb2"
1514       ]
1515     ]
1516   },
1517   {
1518     "id":"2e288f38.66f4a",
1519     "type":"not-found",
1520     "name":"not-found",
1521     "xml":"<outcome value='not-found'>\n",
1522     "comments":"",
1523     "outputs":1,
1524     "x":896.3081550598145,
1525     "y":1956.498349569738,
1526     "z":"f97ade34.d219f",
1527     "wires":[
1528       [
1529         "171f1a40.fd48f6"
1530       ]
1531     ]
1532   },
1533   {
1534     "id":"bb6fb110.a62d",
1535     "type":"failure",
1536     "name":"failure",
1537     "xml":"<outcome value='failure'>\n",
1538     "comments":"",
1539     "outputs":1,
1540     "x":887.3082046508789,
1541     "y":1924.9983753189445,
1542     "z":"f97ade34.d219f",
1543     "wires":[
1544       [
1545         "171f1a40.fd48f6"
1546       ]
1547     ]
1548   },
1549   {
1550     "id":"2d9ebec0.87afb2",
1551     "type":"success",
1552     "name":"success",
1553     "xml":"<outcome value='success'>\n",
1554     "comments":"",
1555     "outputs":1,
1556     "x":891.0582427978516,
1557     "y":1895.3554801940918,
1558     "z":"f97ade34.d219f",
1559     "wires":[
1560       [
1561         "8bfdc2b2.d6b66"
1562       ]
1563     ]
1564   },
1565   {
1566     "id":"171f1a40.fd48f6",
1567     "type":"returnFailure",
1568     "name":"return failure",
1569     "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",
1570     "comments":"",
1571     "x":1057.0582427978516,
1572     "y":1925.7483991608024,
1573     "z":"f97ade34.d219f",
1574     "wires":[
1575
1576     ]
1577   },
1578   {
1579     "id":"8bfdc2b2.d6b66",
1580     "type":"block",
1581     "name":"block",
1582     "xml":"<block>\n",
1583     "atomic":"false",
1584     "comments":"",
1585     "outputs":1,
1586     "x":1032.714210510254,
1587     "y":1891.547649383545,
1588     "z":"f97ade34.d219f",
1589     "wires":[
1590       [
1591
1592       ]
1593     ]
1594   },
1595   {
1596     "id":"ecf121e2.af8c8",
1597     "type":"set",
1598     "name":"set vG to vgMUX VXLAN Tunnel Port Props",
1599     "xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`'vxlanTun' + $brg-ar.allotted-resource-data.brg-topology.brg-assignments.vg-ip` \" />\n<parameter name='tmp.tunnel-dest-ip' value=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-bearer-ip` \" />\n<parameter name='tmp.tunnel-src-ip' value=\"`$brg-ar.allotted-resource-data.brg-topology.brg-assignments.vg-ip` \" />\n<parameter name='tmp.tunnel-vni' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vni` \" />",
1600     "comments":"",
1601     "x":501.4445343017578,
1602     "y":1669.1668691635132,
1603     "z":"f97ade34.d219f",
1604     "wires":[
1605
1606     ]
1607   },
1608   {
1609     "id":"496f8c72.09c0b4",
1610     "type":"execute",
1611     "name":"generate full brg-vpp-honeycomb url",
1612     "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",
1613     "comments":"",
1614     "outputs":1,
1615     "x":481.1111755371094,
1616     "y":1724.1666479110718,
1617     "z":"f97ade34.d219f",
1618     "wires":[
1619       [
1620
1621       ]
1622     ]
1623   },
1624   {
1625     "id":"5f18f40a.7db70c",
1626     "type":"execute",
1627     "name":"generate honeycomb-url to vG",
1628     "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.vg-ip`\"/>\n",
1629     "comments":"",
1630     "outputs":1,
1631     "x":460.44456481933594,
1632     "y":1609.499843597412,
1633     "z":"f97ade34.d219f",
1634     "wires":[
1635       [
1636
1637       ]
1638     ]
1639   },
1640   {
1641     "id":"eab64b.710229b8",
1642     "type":"set",
1643     "name":"set brg-ar.allotted-resource-data.brg-topology.brg-assignments.vg-ip",
1644     "xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.vg-ip' value='`$tmp.tunnelxconn-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vg-ip`' />\n",
1645     "comments":"",
1646     "x":570.0000457763672,
1647     "y":1506.666633605957,
1648     "z":"f97ade34.d219f",
1649     "wires":[
1650
1651     ]
1652   },
1653   {
1654     "id":"36e0c301.ee8e2c",
1655     "type":"set",
1656     "name":"set brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-bearer-ip",
1657     "xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.brg-topology.brg-assignments.vgmux-bearer-ip' value='`$tmp.tunnelxconn-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vgmux-bearer-ip`' />\n",
1658     "comments":"",
1659     "x":608.3333435058594,
1660     "y":1556.6665630340576,
1661     "z":"f97ade34.d219f",
1662     "wires":[
1663
1664     ]
1665   },
1666   {
1667     "id":"a70320e9.12944",
1668     "type":"comment",
1669     "name":"Setup VXLAN Tunnel - vG to vgMUX",
1670     "info":"",
1671     "comments":"",
1672     "x":155,
1673     "y":1509.999852180481,
1674     "z":"f97ade34.d219f",
1675     "wires":[
1676
1677     ]
1678   },
1679   {
1680     "id":"a334503d.66fee",
1681     "type":"comment",
1682     "name":"Setup VXLAN Tunnel - vBRG to vgMUX",
1683     "info":"",
1684     "comments":"",
1685     "x":157.1666717529297,
1686     "y":860.0001373291016,
1687     "z":"f97ade34.d219f",
1688     "wires":[
1689
1690     ]
1691   }
1692 ]