Update brg activate and tunnelxconn create DGs
[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         "33ab2b01.6cab74",
82         "4de82e6d.f68d1",
83         "39a8ddb.60b2222",
84         "b7b31c06.60266",
85         "a21afe27.1472c"
86       ]
87     ]
88   },
89   {
90     "id":"61b73363.ffb3cc",
91     "type":"returnSuccess",
92     "name":"return success",
93     "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",
94     "comments":"",
95     "x":447.0001220703125,
96     "y":1739.2145948410034,
97     "z":"87a856d9.9ec508",
98     "wires":[
99
100     ]
101   },
102   {
103     "id":"611e8741.074898",
104     "type":"set",
105     "name":"set output to api handler",
106     "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",
107     "comments":"",
108     "x":475.75403594970703,
109     "y":1703.3371410369873,
110     "z":"87a856d9.9ec508",
111     "wires":[
112
113     ]
114   },
115   {
116     "id":"abb42d37.333e9",
117     "type":"set",
118     "name":"set allotted-resource-oper-status",
119     "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",
120     "comments":"",
121     "x":496.7542190551758,
122     "y":735.0514001846313,
123     "z":"87a856d9.9ec508",
124     "wires":[
125
126     ]
127   },
128   {
129     "id":"5de77c32.eecb94",
130     "type":"set",
131     "name":"set tmp.ar.self-link",
132     "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",
133     "comments":"",
134     "x":452.73806381225586,
135     "y":328.33332538604736,
136     "z":"87a856d9.9ec508",
137     "wires":[
138
139     ]
140   },
141   {
142     "id":"a6766796.306768",
143     "type":"set",
144     "name":"set tmp.ar.allotted-resource-id,etc",
145     "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",
146     "comments":"",
147     "x":499.9973258972168,
148     "y":294.59259128570557,
149     "z":"87a856d9.9ec508",
150     "wires":[
151
152     ]
153   },
154   {
155     "id":"3a0be6a.ca51a1a",
156     "type":"execute",
157     "name":"execute Properties",
158     "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",
159     "comments":"",
160     "outputs":1,
161     "x":458.9934196472168,
162     "y":364.23152446746826,
163     "z":"87a856d9.9ec508",
164     "wires":[
165       [
166
167       ]
168     ]
169   },
170   {
171     "id":"e64c58e2.5bad38",
172     "type":"execute",
173     "name":"execute RestApiCallNode - Get AR by id",
174     "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",
175     "comments":"",
176     "outputs":1,
177     "x":521.5187530517578,
178     "y":525.4594917297363,
179     "z":"87a856d9.9ec508",
180     "wires":[
181       [
182         "2fee3ef4.4e3752",
183         "82115602.4aadf8"
184       ]
185     ]
186   },
187   {
188     "id":"a9547492.9c6f28",
189     "type":"execute",
190     "name":"generate allotted-resource url",
191     "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",
192     "comments":"",
193     "outputs":1,
194     "x":487.0648536682129,
195     "y":424.0172290802002,
196     "z":"87a856d9.9ec508",
197     "wires":[
198       [
199
200       ]
201     ]
202   },
203   {
204     "id":"2fee3ef4.4e3752",
205     "type":"success",
206     "name":"success",
207     "xml":"<outcome value='success'>\n",
208     "comments":"",
209     "outputs":1,
210     "x":778.8148918151855,
211     "y":524.2672522068024,
212     "z":"87a856d9.9ec508",
213     "wires":[
214       [
215         "55b821dc.c9096"
216       ]
217     ]
218   },
219   {
220     "id":"f373e2ec.09689",
221     "type":"execute",
222     "name":"execute RestApiCallNode - PUT AR by id",
223     "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",
224     "comments":"",
225     "outputs":1,
226     "x":529.5293121337891,
227     "y":878.4341316223145,
228     "z":"87a856d9.9ec508",
229     "wires":[
230       [
231         "ed22c964.b49a28",
232         "76a7310d.9d0cc",
233         "503c908d.2e343"
234       ]
235     ]
236   },
237   {
238     "id":"ed22c964.b49a28",
239     "type":"not-found",
240     "name":"not-found",
241     "xml":"<outcome value='not-found'>\n",
242     "comments":"",
243     "outputs":1,
244     "x":799.837329864502,
245     "y":931.432332418859,
246     "z":"87a856d9.9ec508",
247     "wires":[
248       [
249         "b1122f4f.ea076"
250       ]
251     ]
252   },
253   {
254     "id":"76a7310d.9d0cc",
255     "type":"failure",
256     "name":"failure",
257     "xml":"<outcome value='failure'>\n",
258     "comments":"",
259     "outputs":1,
260     "x":790.8373794555664,
261     "y":899.9323581680655,
262     "z":"87a856d9.9ec508",
263     "wires":[
264       [
265         "b1122f4f.ea076"
266       ]
267     ]
268   },
269   {
270     "id":"503c908d.2e343",
271     "type":"success",
272     "name":"success",
273     "xml":"<outcome value='success'>\n",
274     "comments":"",
275     "outputs":1,
276     "x":794.5874176025391,
277     "y":870.2894630432129,
278     "z":"87a856d9.9ec508",
279     "wires":[
280       [
281         "fd568606.5069e8"
282       ]
283     ]
284   },
285   {
286     "id":"b1122f4f.ea076",
287     "type":"returnFailure",
288     "name":"return failure",
289     "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",
290     "comments":"",
291     "x":960.5874176025391,
292     "y":900.6823820099235,
293     "z":"87a856d9.9ec508",
294     "wires":[
295
296     ]
297   },
298   {
299     "id":"55b821dc.c9096",
300     "type":"block",
301     "name":"block: atomic",
302     "xml":"<block atomic=\"true\">\n",
303     "atomic":"false",
304     "comments":"",
305     "outputs":1,
306     "x":959.8148460388184,
307     "y":524.7672016620636,
308     "z":"87a856d9.9ec508",
309     "wires":[
310       [
311         "2d8e02e3.cf0fae",
312         "c6e86370.775dc"
313       ]
314     ]
315   },
316   {
317     "id":"2d8e02e3.cf0fae",
318     "type":"switchNode",
319     "name":"switch brg length",
320     "xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n",
321     "comments":"",
322     "outputs":1,
323     "x":1205.6720924377441,
324     "y":559.052964925766,
325     "z":"87a856d9.9ec508",
326     "wires":[
327       [
328         "fd01ce34.5cc7e"
329       ]
330     ]
331   },
332   {
333     "id":"fd01ce34.5cc7e",
334     "type":"other",
335     "name":"outcome 1",
336     "xml":"<outcome value='1'>\n",
337     "comments":"",
338     "outputs":1,
339     "x":1396.6720962524414,
340     "y":559.0529625415802,
341     "z":"87a856d9.9ec508",
342     "wires":[
343       [
344         "cd19d423.804d98"
345       ]
346     ]
347   },
348   {
349     "id":"cdc77865.0b0c78",
350     "type":"set",
351     "name":"set brg-ar from get",
352     "xml":"<set>\n<parameter name='brg-ar.' value='$mdsal-ar.brg-allotted-resource[0].' />\n",
353     "comments":"",
354     "x":1796.5292320251465,
355     "y":559.6243867874146,
356     "z":"87a856d9.9ec508",
357     "wires":[
358
359     ]
360   },
361   {
362     "id":"cd19d423.804d98",
363     "type":"block",
364     "name":"block: atomic",
365     "xml":"<block atomic='true'>\n",
366     "atomic":"false",
367     "comments":"",
368     "outputs":1,
369     "x":1567.5290794372559,
370     "y":559.6244316101074,
371     "z":"87a856d9.9ec508",
372     "wires":[
373       [
374         "cdc77865.0b0c78",
375         "a7b33ed0.43bdb",
376         "67f4311d.5bfe6"
377       ]
378     ]
379   },
380   {
381     "id":"a7b33ed0.43bdb",
382     "type":"set",
383     "name":"set oper-status",
384     "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",
385     "comments":"",
386     "x":1794.5294761657715,
387     "y":627.0529508590698,
388     "z":"87a856d9.9ec508",
389     "wires":[
390
391     ]
392   },
393   {
394     "id":"3e38b8c9.4b9918",
395     "type":"comment",
396     "name":"GET brg-allotted-resource from mdsal",
397     "info":"",
398     "comments":"",
399     "x":546.8148155212402,
400     "y":488.7671926021576,
401     "z":"87a856d9.9ec508",
402     "wires":[
403
404     ]
405   },
406   {
407     "id":"67f4311d.5bfe6",
408     "type":"switchNode",
409     "name":"switch order-status",
410     "xml":"<switch test='`$brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
411     "comments":"",
412     "outputs":1,
413     "x":1804.52925491333,
414     "y":592.6243848800659,
415     "z":"87a856d9.9ec508",
416     "wires":[
417       [
418         "95019c7b.0ff8c",
419         "35eeaddc.1e3b72"
420       ]
421     ]
422   },
423   {
424     "id":"95019c7b.0ff8c",
425     "type":"outcome",
426     "name":"outcome Created",
427     "xml":"<outcome value='Created'>\n",
428     "comments":"",
429     "outputs":1,
430     "x":2016.1292114257812,
431     "y":553.6243848800659,
432     "z":"87a856d9.9ec508",
433     "wires":[
434       [
435         "d7fd4783.cc90d8"
436       ]
437     ]
438   },
439   {
440     "id":"35eeaddc.1e3b72",
441     "type":"outcome",
442     "name":"outcome Other",
443     "xml":"<outcome value='Other'>\n",
444     "comments":"",
445     "outputs":1,
446     "x":2041.8435859680176,
447     "y":589.052975654602,
448     "z":"87a856d9.9ec508",
449     "wires":[
450       [
451         "d7fd4783.cc90d8"
452       ]
453     ]
454   },
455   {
456     "id":"44d6b29d.d0815c",
457     "type":"comment",
458     "name":"Set allotted-resource-identifiers",
459     "info":"",
460     "comments":"",
461     "x":502.33863830566406,
462     "y":579.3386459350586,
463     "z":"87a856d9.9ec508",
464     "wires":[
465
466     ]
467   },
468   {
469     "id":"c6e86370.775dc",
470     "type":"set",
471     "name":"save backup copy of mdsal-ar for rollback",
472     "xml":"<set>\n<parameter name='bk-brg-ar' value='$mdsal-ar.' />\n",
473     "comments":"",
474     "x":1285.3864250183105,
475     "y":524.7672936916351,
476     "z":"87a856d9.9ec508",
477     "wires":[
478
479     ]
480   },
481   {
482     "id":"d0fcda95.b5ded8",
483     "type":"comment",
484     "name":"Create urls for restapi",
485     "info":"",
486     "comments":"",
487     "x":457.9576606750488,
488     "y":393.6243562698364,
489     "z":"87a856d9.9ec508",
490     "wires":[
491
492     ]
493   },
494   {
495     "id":"fd568606.5069e8",
496     "type":"block",
497     "name":"block",
498     "xml":"<block>\n",
499     "atomic":"false",
500     "comments":"",
501     "outputs":1,
502     "x":936.2433853149414,
503     "y":866.481632232666,
504     "z":"87a856d9.9ec508",
505     "wires":[
506       [
507
508       ]
509     ]
510   },
511   {
512     "id":"65762b87.da2b54",
513     "type":"comment",
514     "name":"TO DO: vnf/put parent",
515     "info":"",
516     "comments":"",
517     "x":460.2433776855469,
518     "y":767.1481952667236,
519     "z":"87a856d9.9ec508",
520     "wires":[
521
522     ]
523   },
524   {
525     "id":"eaaae4f9.51d728",
526     "type":"execute",
527     "name":"execute getTime",
528     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
529     "comments":"",
530     "outputs":1,
531     "x":444.24338150024414,
532     "y":696.4815549850464,
533     "z":"87a856d9.9ec508",
534     "wires":[
535       [
536
537       ]
538     ]
539   },
540   {
541     "id":"82115602.4aadf8",
542     "type":"other",
543     "name":"other",
544     "xml":"<outcome value='Other'>\n",
545     "comments":"",
546     "outputs":1,
547     "x":778.5766868591309,
548     "y":560.4814250469208,
549     "z":"87a856d9.9ec508",
550     "wires":[
551       [
552         "9a00f006.cbb78"
553       ]
554     ]
555   },
556   {
557     "id":"9a00f006.cbb78",
558     "type":"block",
559     "name":"block: atomic",
560     "xml":"<block atomic=\"true\">\n",
561     "atomic":"false",
562     "comments":"",
563     "outputs":1,
564     "x":958.5766372680664,
565     "y":561.1479756832123,
566     "z":"87a856d9.9ec508",
567     "wires":[
568       [
569
570       ]
571     ]
572   },
573   {
574     "id":"b2c6bab8.1fd358",
575     "type":"set",
576     "name":"set id",
577     "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.` \" />",
578     "comments":"",
579     "x":427.24342346191406,
580     "y":616.1481666564941,
581     "z":"87a856d9.9ec508",
582     "wires":[
583
584     ]
585   },
586   {
587     "id":"d7fd4783.cc90d8",
588     "type":"block",
589     "name":"block",
590     "xml":"<block>\n",
591     "atomic":"false",
592     "comments":"",
593     "outputs":1,
594     "x":2230.5997276306152,
595     "y":555.0000190734863,
596     "z":"87a856d9.9ec508",
597     "wires":[
598       [
599
600       ]
601     ]
602   },
603   {
604     "id":"718e3f93.cd459",
605     "type":"update",
606     "name":"update AAI allotted-resource",
607     "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",
608     "comments":"",
609     "outputs":1,
610     "x":487.85716247558594,
611     "y":800.2380628585815,
612     "z":"87a856d9.9ec508",
613     "wires":[
614       [
615         "6bf804a4.c0a48c",
616         "138a867a.df171a"
617       ]
618     ]
619   },
620   {
621     "id":"6bf804a4.c0a48c",
622     "type":"failure",
623     "name":"failure",
624     "xml":"<outcome value='failure'>\n",
625     "comments":"",
626     "outputs":1,
627     "x":743.6190567016602,
628     "y":783.1905598640442,
629     "z":"87a856d9.9ec508",
630     "wires":[
631       [
632         "418532c6.6b556c"
633       ]
634     ]
635   },
636   {
637     "id":"418532c6.6b556c",
638     "type":"returnFailure",
639     "name":"return failure",
640     "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",
641     "comments":"",
642     "x":910.142936706543,
643     "y":794.8096308708191,
644     "z":"87a856d9.9ec508",
645     "wires":[
646
647     ]
648   },
649   {
650     "id":"138a867a.df171a",
651     "type":"failure",
652     "name":"not-found",
653     "xml":"<outcome value='not-found'>\n",
654     "comments":"",
655     "outputs":1,
656     "x":750.7143440246582,
657     "y":815.9525275230408,
658     "z":"87a856d9.9ec508",
659     "wires":[
660       [
661         "418532c6.6b556c"
662       ]
663     ]
664   },
665   {
666     "id":"f965b29a.1efa5",
667     "type":"execute",
668     "name":"execute RestApiCallNode - setup BRG to vgMux vxlan tunnel port",
669     "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",
670     "comments":"",
671     "outputs":1,
672     "x":606.6666564941406,
673     "y":1121.6666297912598,
674     "z":"87a856d9.9ec508",
675     "wires":[
676       [
677         "df90cb56.a03868",
678         "7baef153.70ea4",
679         "5f9ed08a.45811"
680       ]
681     ]
682   },
683   {
684     "id":"df90cb56.a03868",
685     "type":"not-found",
686     "name":"not-found",
687     "xml":"<outcome value='not-found'>\n",
688     "comments":"",
689     "outputs":1,
690     "x":908.64137840271,
691     "y":1212.9981907829642,
692     "z":"87a856d9.9ec508",
693     "wires":[
694       [
695         "4be7e5a3.743f0c"
696       ]
697     ]
698   },
699   {
700     "id":"7baef153.70ea4",
701     "type":"failure",
702     "name":"failure",
703     "xml":"<outcome value='failure'>\n",
704     "comments":"",
705     "outputs":1,
706     "x":899.6414279937744,
707     "y":1181.4982165321708,
708     "z":"87a856d9.9ec508",
709     "wires":[
710       [
711         "4be7e5a3.743f0c"
712       ]
713     ]
714   },
715   {
716     "id":"5f9ed08a.45811",
717     "type":"success",
718     "name":"success",
719     "xml":"<outcome value='success'>\n",
720     "comments":"",
721     "outputs":1,
722     "x":903.3914661407471,
723     "y":1151.8553214073181,
724     "z":"87a856d9.9ec508",
725     "wires":[
726       [
727         "be0bec1a.41ef9"
728       ]
729     ]
730   },
731   {
732     "id":"4be7e5a3.743f0c",
733     "type":"returnFailure",
734     "name":"return failure",
735     "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",
736     "comments":"",
737     "x":1069.391466140747,
738     "y":1182.2482403740287,
739     "z":"87a856d9.9ec508",
740     "wires":[
741
742     ]
743   },
744   {
745     "id":"be0bec1a.41ef9",
746     "type":"block",
747     "name":"block",
748     "xml":"<block>\n",
749     "atomic":"false",
750     "comments":"",
751     "outputs":1,
752     "x":1045.0474338531494,
753     "y":1148.0474905967712,
754     "z":"87a856d9.9ec508",
755     "wires":[
756       [
757
758       ]
759     ]
760   },
761   {
762     "id":"16a55bb0.8c20f4",
763     "type":"execute",
764     "name":"execute RestApiCallNode - setup BRG vxlan bridge domain",
765     "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",
766     "comments":"",
767     "outputs":1,
768     "x":588.3334197998047,
769     "y":1268.3334243297577,
770     "z":"87a856d9.9ec508",
771     "wires":[
772       [
773         "4f278bf0.7edd54",
774         "6114a132.9f3ff",
775         "14cdadf1.ca4582"
776       ]
777     ]
778   },
779   {
780     "id":"4f278bf0.7edd54",
781     "type":"not-found",
782     "name":"not-found",
783     "xml":"<outcome value='not-found'>\n",
784     "comments":"",
785     "outputs":1,
786     "x":898.6414394378662,
787     "y":1412.9982127174735,
788     "z":"87a856d9.9ec508",
789     "wires":[
790       [
791         "a55fd1dd.4e4de"
792       ]
793     ]
794   },
795   {
796     "id":"6114a132.9f3ff",
797     "type":"failure",
798     "name":"failure",
799     "xml":"<outcome value='failure'>\n",
800     "comments":"",
801     "outputs":1,
802     "x":889.6414890289307,
803     "y":1381.49823846668,
804     "z":"87a856d9.9ec508",
805     "wires":[
806       [
807         "a55fd1dd.4e4de"
808       ]
809     ]
810   },
811   {
812     "id":"14cdadf1.ca4582",
813     "type":"success",
814     "name":"success",
815     "xml":"<outcome value='success'>\n",
816     "comments":"",
817     "outputs":1,
818     "x":893.3915271759033,
819     "y":1351.8553433418274,
820     "z":"87a856d9.9ec508",
821     "wires":[
822       [
823         "ad02893c.a5fb98"
824       ]
825     ]
826   },
827   {
828     "id":"a55fd1dd.4e4de",
829     "type":"returnFailure",
830     "name":"return failure",
831     "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",
832     "comments":"",
833     "x":1059.3915271759033,
834     "y":1382.248262308538,
835     "z":"87a856d9.9ec508",
836     "wires":[
837
838     ]
839   },
840   {
841     "id":"ad02893c.a5fb98",
842     "type":"block",
843     "name":"block",
844     "xml":"<block>\n",
845     "atomic":"false",
846     "comments":"",
847     "outputs":1,
848     "x":1035.0474948883057,
849     "y":1348.0475125312805,
850     "z":"87a856d9.9ec508",
851     "wires":[
852       [
853
854       ]
855     ]
856   },
857   {
858     "id":"d3a78d9e.83f7f",
859     "type":"set",
860     "name":"set BRG to vgMUX VXLAN Tunnel Port Props",
861     "xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`'vxlanTun' + $brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.brg-wan-ip-address` \" />\n<parameter name='tmp.tunnel-dest-ip' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vgmux-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` \" />",
862     "comments":"",
863     "x":542.7778015136719,
864     "y":986.6668891906738,
865     "z":"87a856d9.9ec508",
866     "wires":[
867
868     ]
869   },
870   {
871     "id":"ca99974a.a9c178",
872     "type":"execute",
873     "name":"generate full brg-vpp-honeycomb url",
874     "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",
875     "comments":"",
876     "outputs":1,
877     "x":514.4444427490234,
878     "y":1041.6666679382324,
879     "z":"87a856d9.9ec508",
880     "wires":[
881       [
882
883       ]
884     ]
885   },
886   {
887     "id":"aa97b18b.1226d",
888     "type":"execute",
889     "name":"generate honeycomb-url to vBRG",
890     "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",
891     "comments":"",
892     "outputs":1,
893     "x":504.4444122314453,
894     "y":933.3332271575928,
895     "z":"87a856d9.9ec508",
896     "wires":[
897       [
898
899       ]
900     ]
901   },
902   {
903     "id":"cdf3b3de.27f5e",
904     "type":"set",
905     "name":"set BRG Bridge Domain Props",
906     "xml":"<set>\n<parameter name='tmp.bridge-domain' value=\"bridge-domain-10\" />\n<parameter name='tmp.split-horizon-group' value=\"2\" />",
907     "comments":"",
908     "x":497.7777557373047,
909     "y":1193.3332996368408,
910     "z":"87a856d9.9ec508",
911     "wires":[
912
913     ]
914   },
915   {
916     "id":"b7b31c06.60266",
917     "type":"execute",
918     "name":"execute RestApiCallNode - setup vgMux to BRG vxlan tunnel port",
919     "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",
920     "comments":"",
921     "outputs":1,
922     "x":605.1625823974609,
923     "y":1510.2343139648438,
924     "z":"87a856d9.9ec508",
925     "wires":[
926       [
927         "aba59524.bc77c8",
928         "e1789de0.06c8d",
929         "f925fc50.89e98"
930       ]
931     ]
932   },
933   {
934     "id":"aba59524.bc77c8",
935     "type":"not-found",
936     "name":"not-found",
937     "xml":"<outcome value='not-found'>\n",
938     "comments":"",
939     "outputs":1,
940     "x":977.1372489929199,
941     "y":1564.8991645798087,
942     "z":"87a856d9.9ec508",
943     "wires":[
944       [
945         "59180579.1119ac"
946       ]
947     ]
948   },
949   {
950     "id":"e1789de0.06c8d",
951     "type":"failure",
952     "name":"failure",
953     "xml":"<outcome value='failure'>\n",
954     "comments":"",
955     "outputs":1,
956     "x":968.1372985839844,
957     "y":1533.3991903290153,
958     "z":"87a856d9.9ec508",
959     "wires":[
960       [
961         "59180579.1119ac"
962       ]
963     ]
964   },
965   {
966     "id":"f925fc50.89e98",
967     "type":"success",
968     "name":"success",
969     "xml":"<outcome value='success'>\n",
970     "comments":"",
971     "outputs":1,
972     "x":971.887336730957,
973     "y":1503.7562952041626,
974     "z":"87a856d9.9ec508",
975     "wires":[
976       [
977         "997a6286.bc8a6"
978       ]
979     ]
980   },
981   {
982     "id":"59180579.1119ac",
983     "type":"returnFailure",
984     "name":"return failure",
985     "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",
986     "comments":"",
987     "x":1137.887336730957,
988     "y":1534.1492141708732,
989     "z":"87a856d9.9ec508",
990     "wires":[
991
992     ]
993   },
994   {
995     "id":"997a6286.bc8a6",
996     "type":"block",
997     "name":"block",
998     "xml":"<block>\n",
999     "atomic":"false",
1000     "comments":"",
1001     "outputs":1,
1002     "x":1113.5433044433594,
1003     "y":1499.9484643936157,
1004     "z":"87a856d9.9ec508",
1005     "wires":[
1006       [
1007
1008       ]
1009     ]
1010   },
1011   {
1012     "id":"4de82e6d.f68d1",
1013     "type":"set",
1014     "name":"set vgMUX to BRG VXLAN Tunnel Port Props",
1015     "xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`'vxlanTun' + $brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vgmux-bearer-ip` \" />\n<parameter name='tmp.tunnel-dest-ip' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.brg-wan-ip-address` \" />\n<parameter name='tmp.tunnel-src-ip' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vgmux-bearer-ip` \" />\n<parameter name='tmp.tunnel-vni' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vni` \" />",
1016     "comments":"",
1017     "x":546.273681640625,
1018     "y":1391.9011373519897,
1019     "z":"87a856d9.9ec508",
1020     "wires":[
1021
1022     ]
1023   },
1024   {
1025     "id":"39a8ddb.60b2222",
1026     "type":"execute",
1027     "name":"generate full vgMUX-vpp-honeycomb url",
1028     "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",
1029     "comments":"",
1030     "outputs":1,
1031     "x":529.6070098876953,
1032     "y":1450.2342700958252,
1033     "z":"87a856d9.9ec508",
1034     "wires":[
1035       [
1036
1037       ]
1038     ]
1039   },
1040   {
1041     "id":"33ab2b01.6cab74",
1042     "type":"execute",
1043     "name":"generate honeycomb-url to vgMUX",
1044     "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.allotted-resource-operation-information.brg-request-input.vgmux-bearer-ip`\"/>\n",
1045     "comments":"",
1046     "outputs":1,
1047     "x":516.2736663818359,
1048     "y":1336.900857925415,
1049     "z":"87a856d9.9ec508",
1050     "wires":[
1051       [
1052
1053       ]
1054     ]
1055   },
1056   {
1057     "id":"a21afe27.1472c",
1058     "type":"execute",
1059     "name":"execute RestApiCallNode - setup vgMUX to BRG vxlan tunnel xconnect",
1060     "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vpp.xconnect.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",
1061     "comments":"",
1062     "outputs":1,
1063     "x":623.3333129882812,
1064     "y":1609.9998779296875,
1065     "z":"87a856d9.9ec508",
1066     "wires":[
1067       [
1068         "9f350be0.c73188",
1069         "b487c24.98b254",
1070         "b0b52d79.1d3db"
1071       ]
1072     ]
1073   },
1074   {
1075     "id":"9f350be0.c73188",
1076     "type":"not-found",
1077     "name":"not-found",
1078     "xml":"<outcome value='not-found'>\n",
1079     "comments":"",
1080     "outputs":1,
1081     "x":974.3080177307129,
1082     "y":1690.6647199615836,
1083     "z":"87a856d9.9ec508",
1084     "wires":[
1085       [
1086         "6d663e66.14fad"
1087       ]
1088     ]
1089   },
1090   {
1091     "id":"b487c24.98b254",
1092     "type":"failure",
1093     "name":"failure",
1094     "xml":"<outcome value='failure'>\n",
1095     "comments":"",
1096     "outputs":1,
1097     "x":965.3080673217773,
1098     "y":1659.1647457107902,
1099     "z":"87a856d9.9ec508",
1100     "wires":[
1101       [
1102         "6d663e66.14fad"
1103       ]
1104     ]
1105   },
1106   {
1107     "id":"b0b52d79.1d3db",
1108     "type":"success",
1109     "name":"success",
1110     "xml":"<outcome value='success'>\n",
1111     "comments":"",
1112     "outputs":1,
1113     "x":969.05810546875,
1114     "y":1629.5218505859375,
1115     "z":"87a856d9.9ec508",
1116     "wires":[
1117       [
1118         "c9430c21.30428"
1119       ]
1120     ]
1121   },
1122   {
1123     "id":"6d663e66.14fad",
1124     "type":"returnFailure",
1125     "name":"return failure",
1126     "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",
1127     "comments":"",
1128     "x":1135.05810546875,
1129     "y":1659.914769552648,
1130     "z":"87a856d9.9ec508",
1131     "wires":[
1132
1133     ]
1134   },
1135   {
1136     "id":"c9430c21.30428",
1137     "type":"block",
1138     "name":"block",
1139     "xml":"<block>\n",
1140     "atomic":"false",
1141     "comments":"",
1142     "outputs":1,
1143     "x":1110.7140731811523,
1144     "y":1625.7140197753906,
1145     "z":"87a856d9.9ec508",
1146     "wires":[
1147       [
1148
1149       ]
1150     ]
1151   }
1152 ]