073762cc561aa5afc57a7902b7bf7123f25165c9
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_brg-topology-operation-activate.json
1 [
2   {
3     "id":"9714cec7.1c4c",
4     "type":"dgstart",
5     "name":"DGSTART",
6     "outputs":1,
7     "x":217.99998474121094,
8     "y":153.59999084472656,
9     "z":"862ed298.34c67",
10     "wires":[
11       [
12         "740711e8.2f0a3"
13       ]
14     ]
15   },
16   {
17     "id":"740711e8.2f0a3",
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":314.23806381225586,
26     "y":214.55238151550293,
27     "z":"862ed298.34c67",
28     "wires":[
29       [
30         "98c97074.b0862"
31       ]
32     ]
33   },
34   {
35     "id":"98c97074.b0862",
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":360.154842376709,
42     "y":249.79043674468994,
43     "z":"862ed298.34c67",
44     "wires":[
45       [
46         "2804280a.93bf08"
47       ]
48     ]
49   },
50   {
51     "id":"2804280a.93bf08",
52     "type":"block",
53     "name":"block : atomic",
54     "xml":"<block atomic=\"true\">",
55     "atomic":"true",
56     "comments":"",
57     "outputs":1,
58     "x":268.4761772155762,
59     "y":393.12377882003784,
60     "z":"862ed298.34c67",
61     "wires":[
62       [
63         "630ab7ec.b2f0d8",
64         "7e4ae814.209b28",
65         "2357e7c9.48bf08",
66         "ed4c6941.aa8be8",
67         "fc236776.686848",
68         "4451f783.4736a8",
69         "696c9ae0.fd9424",
70         "76055be0.805a24",
71         "fc290b65.76c018",
72         "b2a43c5b.9bcb5",
73         "624fd076.69a64",
74         "f79aa33.e64036",
75         "df8cc0e.bcffc4",
76         "bc6ed59e.4e1728",
77         "9b6d7ee4.10e23",
78         "a6207934.86f518",
79         "77b9bf2c.b44d5",
80         "7e8c5cfa.726864",
81         "a9b802e0.3c87a",
82         "9b340dbc.c3cb9",
83         "5a18305b.6de8e",
84         "570d3d0b.27f934"
85       ]
86     ]
87   },
88   {
89     "id":"7e4ae814.209b28",
90     "type":"returnSuccess",
91     "name":"return success",
92     "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",
93     "comments":"",
94     "x":528.0001068115234,
95     "y":1964.4814386367798,
96     "z":"862ed298.34c67",
97     "wires":[
98
99     ]
100   },
101   {
102     "id":"630ab7ec.b2f0d8",
103     "type":"set",
104     "name":"set output to api handler",
105     "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",
106     "comments":"",
107     "x":556.754020690918,
108     "y":1928.6039848327637,
109     "z":"862ed298.34c67",
110     "wires":[
111
112     ]
113   },
114   {
115     "id":"b2a43c5b.9bcb5",
116     "type":"set",
117     "name":"set allotted-resource-oper-status",
118     "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",
119     "comments":"",
120     "x":574.7542037963867,
121     "y":773.6513910293579,
122     "z":"862ed298.34c67",
123     "wires":[
124
125     ]
126   },
127   {
128     "id":"ed4c6941.aa8be8",
129     "type":"set",
130     "name":"set tmp.ar.self-link",
131     "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",
132     "comments":"",
133     "x":530.7380485534668,
134     "y":366.9333162307739,
135     "z":"862ed298.34c67",
136     "wires":[
137
138     ]
139   },
140   {
141     "id":"2357e7c9.48bf08",
142     "type":"set",
143     "name":"set tmp.ar.allotted-resource-id,etc",
144     "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",
145     "comments":"",
146     "x":577.9973106384277,
147     "y":333.19258213043213,
148     "z":"862ed298.34c67",
149     "wires":[
150
151     ]
152   },
153   {
154     "id":"fc236776.686848",
155     "type":"execute",
156     "name":"execute Properties",
157     "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",
158     "comments":"",
159     "outputs":1,
160     "x":536.9934043884277,
161     "y":402.8315153121948,
162     "z":"862ed298.34c67",
163     "wires":[
164       [
165
166       ]
167     ]
168   },
169   {
170     "id":"696c9ae0.fd9424",
171     "type":"execute",
172     "name":"execute RestApiCallNode - Get AR by id",
173     "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",
174     "comments":"",
175     "outputs":1,
176     "x":599.5187377929688,
177     "y":564.0594825744629,
178     "z":"862ed298.34c67",
179     "wires":[
180       [
181         "aa88cd52.d9ee2",
182         "9c39ee65.4e4a7"
183       ]
184     ]
185   },
186   {
187     "id":"4451f783.4736a8",
188     "type":"execute",
189     "name":"generate allotted-resource url",
190     "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",
191     "comments":"",
192     "outputs":1,
193     "x":565.0648384094238,
194     "y":462.61721992492676,
195     "z":"862ed298.34c67",
196     "wires":[
197       [
198
199       ]
200     ]
201   },
202   {
203     "id":"aa88cd52.d9ee2",
204     "type":"success",
205     "name":"success",
206     "xml":"<outcome value='success'>\n",
207     "comments":"",
208     "outputs":1,
209     "x":856.8148765563965,
210     "y":562.8672430515289,
211     "z":"862ed298.34c67",
212     "wires":[
213       [
214         "6411ad19.c5cdf4"
215       ]
216     ]
217   },
218   {
219     "id":"76055be0.805a24",
220     "type":"execute",
221     "name":"execute RestApiCallNode - PUT AR by id",
222     "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",
223     "comments":"",
224     "outputs":1,
225     "x":607.529296875,
226     "y":917.034122467041,
227     "z":"862ed298.34c67",
228     "wires":[
229       [
230         "524852fa.5809ec",
231         "45984ad.2c61db4",
232         "f284d2b.77bd73"
233       ]
234     ]
235   },
236   {
237     "id":"524852fa.5809ec",
238     "type":"not-found",
239     "name":"not-found",
240     "xml":"<outcome value='not-found'>\n",
241     "comments":"",
242     "outputs":1,
243     "x":1131.8373680114746,
244     "y":942.0324144363403,
245     "z":"862ed298.34c67",
246     "wires":[
247       [
248         "1f14fd6.cfd5303"
249       ]
250     ]
251   },
252   {
253     "id":"45984ad.2c61db4",
254     "type":"failure",
255     "name":"failure",
256     "xml":"<outcome value='failure'>\n",
257     "comments":"",
258     "outputs":1,
259     "x":1122.837417602539,
260     "y":910.5324401855469,
261     "z":"862ed298.34c67",
262     "wires":[
263       [
264         "1f14fd6.cfd5303"
265       ]
266     ]
267   },
268   {
269     "id":"f284d2b.77bd73",
270     "type":"success",
271     "name":"success",
272     "xml":"<outcome value='success'>\n",
273     "comments":"",
274     "outputs":1,
275     "x":1126.5874557495117,
276     "y":880.8895450606942,
277     "z":"862ed298.34c67",
278     "wires":[
279       [
280         "5e98e0e7.a8f18"
281       ]
282     ]
283   },
284   {
285     "id":"1f14fd6.cfd5303",
286     "type":"returnFailure",
287     "name":"return failure",
288     "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",
289     "comments":"",
290     "x":1292.5874557495117,
291     "y":911.2824640274048,
292     "z":"862ed298.34c67",
293     "wires":[
294
295     ]
296   },
297   {
298     "id":"6411ad19.c5cdf4",
299     "type":"block",
300     "name":"block: atomic",
301     "xml":"<block atomic=\"true\">\n",
302     "atomic":"false",
303     "comments":"",
304     "outputs":1,
305     "x":1037.8148307800293,
306     "y":563.3671925067902,
307     "z":"862ed298.34c67",
308     "wires":[
309       [
310         "b10b50e5.999b7",
311         "733a431f.52145c"
312       ]
313     ]
314   },
315   {
316     "id":"b10b50e5.999b7",
317     "type":"switchNode",
318     "name":"switch brg length",
319     "xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n",
320     "comments":"",
321     "outputs":1,
322     "x":1283.672077178955,
323     "y":597.6529557704926,
324     "z":"862ed298.34c67",
325     "wires":[
326       [
327         "1e55cba1.58e264"
328       ]
329     ]
330   },
331   {
332     "id":"1e55cba1.58e264",
333     "type":"other",
334     "name":"outcome 1",
335     "xml":"<outcome value='1'>\n",
336     "comments":"",
337     "outputs":1,
338     "x":1474.6720809936523,
339     "y":597.6529533863068,
340     "z":"862ed298.34c67",
341     "wires":[
342       [
343         "9832defc.b7dbf"
344       ]
345     ]
346   },
347   {
348     "id":"34a64577.34e1ba",
349     "type":"set",
350     "name":"set brg-ar from get",
351     "xml":"<set>\n<parameter name='brg-ar.' value='$mdsal-ar.brg-allotted-resource[0].' />\n",
352     "comments":"",
353     "x":1874.5292167663574,
354     "y":598.2243776321411,
355     "z":"862ed298.34c67",
356     "wires":[
357
358     ]
359   },
360   {
361     "id":"9832defc.b7dbf",
362     "type":"block",
363     "name":"block: atomic",
364     "xml":"<block atomic='true'>\n",
365     "atomic":"false",
366     "comments":"",
367     "outputs":1,
368     "x":1645.5290641784668,
369     "y":598.224422454834,
370     "z":"862ed298.34c67",
371     "wires":[
372       [
373         "34a64577.34e1ba",
374         "559f0e6b.981e9",
375         "4c4b37a6.f52e48"
376       ]
377     ]
378   },
379   {
380     "id":"559f0e6b.981e9",
381     "type":"set",
382     "name":"set oper-status",
383     "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",
384     "comments":"",
385     "x":1872.5294609069824,
386     "y":665.6529417037964,
387     "z":"862ed298.34c67",
388     "wires":[
389
390     ]
391   },
392   {
393     "id":"7ea8f57e.8498ac",
394     "type":"comment",
395     "name":"GET brg-allotted-resource from mdsal",
396     "info":"",
397     "comments":"",
398     "x":624.8148002624512,
399     "y":527.3671834468842,
400     "z":"862ed298.34c67",
401     "wires":[
402
403     ]
404   },
405   {
406     "id":"4c4b37a6.f52e48",
407     "type":"switchNode",
408     "name":"switch order-status",
409     "xml":"<switch test='`$brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
410     "comments":"",
411     "outputs":1,
412     "x":1882.529239654541,
413     "y":631.2243757247925,
414     "z":"862ed298.34c67",
415     "wires":[
416       [
417         "bc5b9fe2.1d29b",
418         "1af731a5.1e75de"
419       ]
420     ]
421   },
422   {
423     "id":"bc5b9fe2.1d29b",
424     "type":"outcome",
425     "name":"outcome Created",
426     "xml":"<outcome value='Created'>\n",
427     "comments":"",
428     "outputs":1,
429     "x":2094.129196166992,
430     "y":592.2243757247925,
431     "z":"862ed298.34c67",
432     "wires":[
433       [
434         "6d467f9b.08848"
435       ]
436     ]
437   },
438   {
439     "id":"1af731a5.1e75de",
440     "type":"outcome",
441     "name":"outcome Other",
442     "xml":"<outcome value='Other'>\n",
443     "comments":"",
444     "outputs":1,
445     "x":2119.8435707092285,
446     "y":627.6529664993286,
447     "z":"862ed298.34c67",
448     "wires":[
449       [
450         "6d467f9b.08848"
451       ]
452     ]
453   },
454   {
455     "id":"6005dffd.1f2f8",
456     "type":"comment",
457     "name":"Set allotted-resource-identifiers",
458     "info":"",
459     "comments":"",
460     "x":580.338623046875,
461     "y":617.9386367797852,
462     "z":"862ed298.34c67",
463     "wires":[
464
465     ]
466   },
467   {
468     "id":"733a431f.52145c",
469     "type":"set",
470     "name":"save backup copy of mdsal-ar for rollback",
471     "xml":"<set>\n<parameter name='bk-brg-ar' value='$mdsal-ar.' />\n",
472     "comments":"",
473     "x":1363.3864097595215,
474     "y":563.3672845363617,
475     "z":"862ed298.34c67",
476     "wires":[
477
478     ]
479   },
480   {
481     "id":"40eb8f67.e7464",
482     "type":"comment",
483     "name":"Create urls for restapi",
484     "info":"",
485     "comments":"",
486     "x":535.9576454162598,
487     "y":432.224347114563,
488     "z":"862ed298.34c67",
489     "wires":[
490
491     ]
492   },
493   {
494     "id":"5e98e0e7.a8f18",
495     "type":"block",
496     "name":"block",
497     "xml":"<block>\n",
498     "atomic":"false",
499     "comments":"",
500     "outputs":1,
501     "x":1268.243423461914,
502     "y":877.0817142501473,
503     "z":"862ed298.34c67",
504     "wires":[
505       [
506
507       ]
508     ]
509   },
510   {
511     "id":"234bb7ec.13fd38",
512     "type":"comment",
513     "name":"TO DO: vnf/put parent",
514     "info":"",
515     "comments":"",
516     "x":538.2433624267578,
517     "y":805.7481861114502,
518     "z":"862ed298.34c67",
519     "wires":[
520
521     ]
522   },
523   {
524     "id":"fc290b65.76c018",
525     "type":"execute",
526     "name":"execute getTime",
527     "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
528     "comments":"",
529     "outputs":1,
530     "x":522.2433662414551,
531     "y":735.081545829773,
532     "z":"862ed298.34c67",
533     "wires":[
534       [
535
536       ]
537     ]
538   },
539   {
540     "id":"9c39ee65.4e4a7",
541     "type":"other",
542     "name":"other",
543     "xml":"<outcome value='Other'>\n",
544     "comments":"",
545     "outputs":1,
546     "x":856.5766716003418,
547     "y":599.0814158916473,
548     "z":"862ed298.34c67",
549     "wires":[
550       [
551         "ba479039.83567"
552       ]
553     ]
554   },
555   {
556     "id":"ba479039.83567",
557     "type":"block",
558     "name":"block: atomic",
559     "xml":"<block atomic=\"true\">\n",
560     "atomic":"false",
561     "comments":"",
562     "outputs":1,
563     "x":1036.5766220092773,
564     "y":599.7479665279388,
565     "z":"862ed298.34c67",
566     "wires":[
567       [
568
569       ]
570     ]
571   },
572   {
573     "id":"624fd076.69a64",
574     "type":"set",
575     "name":"set id",
576     "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.` \" />",
577     "comments":"",
578     "x":505.243408203125,
579     "y":654.7481575012207,
580     "z":"862ed298.34c67",
581     "wires":[
582
583     ]
584   },
585   {
586     "id":"6d467f9b.08848",
587     "type":"block",
588     "name":"block",
589     "xml":"<block>\n",
590     "atomic":"false",
591     "comments":"",
592     "outputs":1,
593     "x":2308.599712371826,
594     "y":593.6000099182129,
595     "z":"862ed298.34c67",
596     "wires":[
597       [
598
599       ]
600     ]
601   },
602   {
603     "id":"f79aa33.e64036",
604     "type":"update",
605     "name":"update AAI allotted-resource",
606     "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",
607     "comments":"",
608     "outputs":1,
609     "x":565.8571472167969,
610     "y":838.8380537033081,
611     "z":"862ed298.34c67",
612     "wires":[
613       [
614         "3772e0cf.d582a",
615         "e579d939.2bcda8"
616       ]
617     ]
618   },
619   {
620     "id":"3772e0cf.d582a",
621     "type":"failure",
622     "name":"failure",
623     "xml":"<outcome value='failure'>\n",
624     "comments":"",
625     "outputs":1,
626     "x":821.6190414428711,
627     "y":821.7905507087708,
628     "z":"862ed298.34c67",
629     "wires":[
630       [
631         "bd539ae8.82afb8"
632       ]
633     ]
634   },
635   {
636     "id":"bd539ae8.82afb8",
637     "type":"returnFailure",
638     "name":"return failure",
639     "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",
640     "comments":"",
641     "x":988.1429214477539,
642     "y":833.4096217155457,
643     "z":"862ed298.34c67",
644     "wires":[
645
646     ]
647   },
648   {
649     "id":"e579d939.2bcda8",
650     "type":"failure",
651     "name":"not-found",
652     "xml":"<outcome value='not-found'>\n",
653     "comments":"",
654     "outputs":1,
655     "x":828.7143287658691,
656     "y":854.5525183677673,
657     "z":"862ed298.34c67",
658     "wires":[
659       [
660         "bd539ae8.82afb8"
661       ]
662     ]
663   },
664   {
665     "id":"df8cc0e.bcffc4",
666     "type":"execute",
667     "name":"execute RestApiCallNode - setup BRG to vgMux vxlan tunnel port",
668     "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",
669     "comments":"",
670     "outputs":1,
671     "x":682.6666412353516,
672     "y":1250.2666578292847,
673     "z":"862ed298.34c67",
674     "wires":[
675       [
676         "d7f7d75a.4c4868",
677         "3486dace.a913f6",
678         "b9738ec8.10f4e"
679       ]
680     ]
681   },
682   {
683     "id":"d7f7d75a.4c4868",
684     "type":"not-found",
685     "name":"not-found",
686     "xml":"<outcome value='not-found'>\n",
687     "comments":"",
688     "outputs":1,
689     "x":1016.641429901123,
690     "y":1309.598269842565,
691     "z":"862ed298.34c67",
692     "wires":[
693       [
694         "882ff805.77cb38"
695       ]
696     ]
697   },
698   {
699     "id":"3486dace.a913f6",
700     "type":"failure",
701     "name":"failure",
702     "xml":"<outcome value='failure'>\n",
703     "comments":"",
704     "outputs":1,
705     "x":1007.6414794921875,
706     "y":1278.0982955917716,
707     "z":"862ed298.34c67",
708     "wires":[
709       [
710         "882ff805.77cb38"
711       ]
712     ]
713   },
714   {
715     "id":"b9738ec8.10f4e",
716     "type":"success",
717     "name":"success",
718     "xml":"<outcome value='success'>\n",
719     "comments":"",
720     "outputs":1,
721     "x":1011.3915176391602,
722     "y":1248.455400466919,
723     "z":"862ed298.34c67",
724     "wires":[
725       [
726         "f51263c3.6ba25"
727       ]
728     ]
729   },
730   {
731     "id":"882ff805.77cb38",
732     "type":"returnFailure",
733     "name":"return failure",
734     "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",
735     "comments":"",
736     "x":1177.3915176391602,
737     "y":1278.8483194336295,
738     "z":"862ed298.34c67",
739     "wires":[
740
741     ]
742   },
743   {
744     "id":"f51263c3.6ba25",
745     "type":"block",
746     "name":"block",
747     "xml":"<block>\n",
748     "atomic":"false",
749     "comments":"",
750     "outputs":1,
751     "x":1153.0474853515625,
752     "y":1244.647569656372,
753     "z":"862ed298.34c67",
754     "wires":[
755       [
756
757       ]
758     ]
759   },
760   {
761     "id":"bc6ed59e.4e1728",
762     "type":"execute",
763     "name":"execute RestApiCallNode - setup BRG vxlan bridge domain",
764     "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",
765     "comments":"",
766     "outputs":1,
767     "x":664.3334045410156,
768     "y":1396.9334523677826,
769     "z":"862ed298.34c67",
770     "wires":[
771       [
772         "fa0c2499.dcc778",
773         "183327f.13d81d8",
774         "c3f0b691.125e48"
775       ]
776     ]
777   },
778   {
779     "id":"fa0c2499.dcc778",
780     "type":"not-found",
781     "name":"not-found",
782     "xml":"<outcome value='not-found'>\n",
783     "comments":"",
784     "outputs":1,
785     "x":1012.3080425262451,
786     "y":1472.598369024694,
787     "z":"862ed298.34c67",
788     "wires":[
789       [
790         "f22038a6.365ea8"
791       ]
792     ]
793   },
794   {
795     "id":"183327f.13d81d8",
796     "type":"failure",
797     "name":"failure",
798     "xml":"<outcome value='failure'>\n",
799     "comments":"",
800     "outputs":1,
801     "x":1003.3080921173096,
802     "y":1441.0983947739005,
803     "z":"862ed298.34c67",
804     "wires":[
805       [
806         "f22038a6.365ea8"
807       ]
808     ]
809   },
810   {
811     "id":"c3f0b691.125e48",
812     "type":"success",
813     "name":"success",
814     "xml":"<outcome value='success'>\n",
815     "comments":"",
816     "outputs":1,
817     "x":1007.0581302642822,
818     "y":1411.4554996490479,
819     "z":"862ed298.34c67",
820     "wires":[
821       [
822         "27dadc9a.d76214"
823       ]
824     ]
825   },
826   {
827     "id":"f22038a6.365ea8",
828     "type":"returnFailure",
829     "name":"return failure",
830     "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",
831     "comments":"",
832     "x":1173.0581302642822,
833     "y":1441.8484186157584,
834     "z":"862ed298.34c67",
835     "wires":[
836
837     ]
838   },
839   {
840     "id":"27dadc9a.d76214",
841     "type":"block",
842     "name":"block",
843     "xml":"<block>\n",
844     "atomic":"false",
845     "comments":"",
846     "outputs":1,
847     "x":1148.7140979766846,
848     "y":1407.647668838501,
849     "z":"862ed298.34c67",
850     "wires":[
851       [
852
853       ]
854     ]
855   },
856   {
857     "id":"77b9bf2c.b44d5",
858     "type":"set",
859     "name":"set BRG to vgMUX VXLAN Tunnel Port Props",
860     "xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`'vxlanTun' + $brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip` \" />\n<parameter name='tmp.tunnel-dest-ip' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vgmux-lan-ip` \" />\n<parameter name='tmp.tunnel-src-ip' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.brg-wan-ip-address` \" />\n<parameter name='tmp.tunnel-vni' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vni` \" />",
861     "comments":"",
862     "x":618.7777862548828,
863     "y":1115.2669172286987,
864     "z":"862ed298.34c67",
865     "wires":[
866
867     ]
868   },
869   {
870     "id":"a6207934.86f518",
871     "type":"execute",
872     "name":"generate full brg-vpp-honeycomb url",
873     "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",
874     "comments":"",
875     "outputs":1,
876     "x":590.4444274902344,
877     "y":1170.2666959762573,
878     "z":"862ed298.34c67",
879     "wires":[
880       [
881
882       ]
883     ]
884   },
885   {
886     "id":"9b6d7ee4.10e23",
887     "type":"execute",
888     "name":"generate honeycomb-url to vBRG",
889     "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",
890     "comments":"",
891     "outputs":1,
892     "x":582.4444427490234,
893     "y":1029.9332246780396,
894     "z":"862ed298.34c67",
895     "wires":[
896       [
897
898       ]
899     ]
900   },
901   {
902     "id":"7e8c5cfa.726864",
903     "type":"set",
904     "name":"set BRG Bridge Domain Props",
905     "xml":"<set>\n<parameter name='tmp.bridge-domain' value=\"bridge-domain-10\" />\n<parameter name='tmp.split-horizon-group' value=\"2\" />",
906     "comments":"",
907     "x":573.7777404785156,
908     "y":1321.9333276748657,
909     "z":"862ed298.34c67",
910     "wires":[
911
912     ]
913   },
914   {
915     "id":"f6f2dfd6.852a7",
916     "type":"comment",
917     "name":"TO DO: assign brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip",
918     "info":"need to quary mdsal-ar and get information assigned in tunnelxconn DG?",
919     "comments":"",
920     "x":740.0000152587891,
921     "y":979.100019454956,
922     "z":"862ed298.34c67",
923     "wires":[
924
925     ]
926   },
927   {
928     "id":"71a3722d.c764ec",
929     "type":"comment",
930     "name":"save service data for BRG to md-sal for SO to do GET ",
931     "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)",
932     "comments":"",
933     "x":626.5807056427002,
934     "y":1518.8236003890634,
935     "z":"862ed298.34c67",
936     "wires":[
937
938     ]
939   },
940   {
941     "id":"9b340dbc.c3cb9",
942     "type":"execute",
943     "name":"execute RestApiCallNode - Get service-data by vnf-id",
944     "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",
945     "comments":"",
946     "outputs":1,
947     "x":639.5014038085938,
948     "y":1639.934621810913,
949     "z":"862ed298.34c67",
950     "wires":[
951       [
952         "4e83fb54.735574",
953         "7c8664e4.3c832c"
954       ]
955     ]
956   },
957   {
958     "id":"4e83fb54.735574",
959     "type":"success",
960     "name":"success",
961     "xml":"<outcome value='success'>\n",
962     "comments":"",
963     "outputs":1,
964     "x":928.3213233947754,
965     "y":1637.3139653205872,
966     "z":"862ed298.34c67",
967     "wires":[
968       [
969         "79817d79.711c34"
970       ]
971     ]
972   },
973   {
974     "id":"79817d79.711c34",
975     "type":"block",
976     "name":"block: atomic",
977     "xml":"<block atomic=\"true\">\n",
978     "atomic":"false",
979     "comments":"",
980     "outputs":1,
981     "x":1109.3212776184082,
982     "y":1637.8139147758484,
983     "z":"862ed298.34c67",
984     "wires":[
985       [
986         "6046c592.b5db8c",
987         "c9922e86.95618"
988       ]
989     ]
990   },
991   {
992     "id":"6046c592.b5db8c",
993     "type":"switchNode",
994     "name":"switch brg length",
995     "xml":"<switch test='`$service-data.service-data_length`'>\n",
996     "comments":"",
997     "outputs":1,
998     "x":1355.178524017334,
999     "y":1672.0996780395508,
1000     "z":"862ed298.34c67",
1001     "wires":[
1002       [
1003         "c543d4c5.a58778"
1004       ]
1005     ]
1006   },
1007   {
1008     "id":"c543d4c5.a58778",
1009     "type":"other",
1010     "name":"outcome 1",
1011     "xml":"<outcome value='1'>\n",
1012     "comments":"",
1013     "outputs":1,
1014     "x":1546.1785278320312,
1015     "y":1672.099675655365,
1016     "z":"862ed298.34c67",
1017     "wires":[
1018       [
1019         "3876bd15.40e182"
1020       ]
1021     ]
1022   },
1023   {
1024     "id":"7a8acdfc.bcdab4",
1025     "type":"set",
1026     "name":"set service-data from get",
1027     "xml":"<set>\n<parameter name='tmp.service-data.' value='$service-data.service-data[0].' />\n",
1028     "comments":"",
1029     "x":1946.0356636047363,
1030     "y":1672.6710999011993,
1031     "z":"862ed298.34c67",
1032     "wires":[
1033
1034     ]
1035   },
1036   {
1037     "id":"3876bd15.40e182",
1038     "type":"block",
1039     "name":"block: atomic",
1040     "xml":"<block atomic='true'>\n",
1041     "atomic":"false",
1042     "comments":"",
1043     "outputs":1,
1044     "x":1717.0355110168457,
1045     "y":1672.6711447238922,
1046     "z":"862ed298.34c67",
1047     "wires":[
1048       [
1049         "7a8acdfc.bcdab4",
1050         "b568a24.2ba8a6"
1051       ]
1052     ]
1053   },
1054   {
1055     "id":"310849e5.8628a6",
1056     "type":"comment",
1057     "name":"GET vnf-api service info",
1058     "info":"",
1059     "comments":"",
1060     "x":544.8926582336426,
1061     "y":1603.2423181533813,
1062     "z":"862ed298.34c67",
1063     "wires":[
1064
1065     ]
1066   },
1067   {
1068     "id":"b568a24.2ba8a6",
1069     "type":"switchNode",
1070     "name":"switch order-status",
1071     "xml":"<switch test='`$tmp.service-data.order-status`'>\n",
1072     "comments":"",
1073     "outputs":1,
1074     "x":1929.7498817443848,
1075     "y":1724.242525100708,
1076     "z":"862ed298.34c67",
1077     "wires":[
1078       [
1079         "8af678dd.44f128",
1080         "afb48fe3.c1a3e"
1081       ]
1082     ]
1083   },
1084   {
1085     "id":"8af678dd.44f128",
1086     "type":"outcome",
1087     "name":"outcome Created",
1088     "xml":"<outcome value='Created'>\n",
1089     "comments":"",
1090     "outputs":1,
1091     "x":2165.635643005371,
1092     "y":1666.6710979938507,
1093     "z":"862ed298.34c67",
1094     "wires":[
1095       [
1096         "d2e19aea.143628"
1097       ]
1098     ]
1099   },
1100   {
1101     "id":"afb48fe3.c1a3e",
1102     "type":"outcome",
1103     "name":"outcome Other",
1104     "xml":"<outcome value='Other'>\n",
1105     "comments":"",
1106     "outputs":1,
1107     "x":2191.3500175476074,
1108     "y":1702.0996887683868,
1109     "z":"862ed298.34c67",
1110     "wires":[
1111       [
1112         "d2e19aea.143628"
1113       ]
1114     ]
1115   },
1116   {
1117     "id":"3f5ea151.93eb9e",
1118     "type":"comment",
1119     "name":"Set service-data",
1120     "info":"",
1121     "comments":"",
1122     "x":518.9879188537598,
1123     "y":1688.0995111465454,
1124     "z":"862ed298.34c67",
1125     "wires":[
1126
1127     ]
1128   },
1129   {
1130     "id":"c9922e86.95618",
1131     "type":"set",
1132     "name":"save backup copy of mdsal-ar for rollback",
1133     "xml":"<set>\n<parameter name='bk-service-data' value='$service-data.' />\n",
1134     "comments":"",
1135     "x":1434.8928565979004,
1136     "y":1637.81400680542,
1137     "z":"862ed298.34c67",
1138     "wires":[
1139
1140     ]
1141   },
1142   {
1143     "id":"7c8664e4.3c832c",
1144     "type":"other",
1145     "name":"other",
1146     "xml":"<outcome value='Other'>\n",
1147     "comments":"",
1148     "outputs":1,
1149     "x":928.0831184387207,
1150     "y":1673.5281381607056,
1151     "z":"862ed298.34c67",
1152     "wires":[
1153       [
1154         "d7ef85ba.f3d028"
1155       ]
1156     ]
1157   },
1158   {
1159     "id":"d7ef85ba.f3d028",
1160     "type":"block",
1161     "name":"block: atomic",
1162     "xml":"<block atomic=\"true\">\n",
1163     "atomic":"false",
1164     "comments":"",
1165     "outputs":1,
1166     "x":1108.0830688476562,
1167     "y":1674.194688796997,
1168     "z":"862ed298.34c67",
1169     "wires":[
1170       [
1171
1172       ]
1173     ]
1174   },
1175   {
1176     "id":"d2e19aea.143628",
1177     "type":"block",
1178     "name":"block",
1179     "xml":"<block>\n",
1180     "atomic":"false",
1181     "comments":"",
1182     "outputs":1,
1183     "x":2380.106159210205,
1184     "y":1668.0467321872711,
1185     "z":"862ed298.34c67",
1186     "wires":[
1187       [
1188
1189       ]
1190     ]
1191   },
1192   {
1193     "id":"a9b802e0.3c87a",
1194     "type":"execute",
1195     "name":"generate vnf service-info url",
1196     "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",
1197     "comments":"",
1198     "outputs":1,
1199     "x":565.3108673095703,
1200     "y":1561.3633251190186,
1201     "z":"862ed298.34c67",
1202     "wires":[
1203       [
1204
1205       ]
1206     ]
1207   },
1208   {
1209     "id":"570d3d0b.27f934",
1210     "type":"execute",
1211     "name":"execute RestApiCallNode - PUT service into service",
1212     "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",
1213     "comments":"",
1214     "outputs":1,
1215     "x":639.5965881347656,
1216     "y":1816.6016731262207,
1217     "z":"862ed298.34c67",
1218     "wires":[
1219       [
1220         "50cebd0f.3a5ba4",
1221         "e6947788.b35638",
1222         "3b96374a.556b08"
1223       ]
1224     ]
1225   },
1226   {
1227     "id":"50cebd0f.3a5ba4",
1228     "type":"not-found",
1229     "name":"not-found",
1230     "xml":"<outcome value='not-found'>\n",
1231     "comments":"",
1232     "outputs":1,
1233     "x":1145.8094444274902,
1234     "y":1811.123685836792,
1235     "z":"862ed298.34c67",
1236     "wires":[
1237       [
1238         "90f2f682.5d5ec8"
1239       ]
1240     ]
1241   },
1242   {
1243     "id":"e6947788.b35638",
1244     "type":"failure",
1245     "name":"failure",
1246     "xml":"<outcome value='failure'>\n",
1247     "comments":"",
1248     "outputs":1,
1249     "x":1136.8094940185547,
1250     "y":1779.6237115859985,
1251     "z":"862ed298.34c67",
1252     "wires":[
1253       [
1254         "90f2f682.5d5ec8"
1255       ]
1256     ]
1257   },
1258   {
1259     "id":"3b96374a.556b08",
1260     "type":"success",
1261     "name":"success",
1262     "xml":"<outcome value='success'>\n",
1263     "comments":"",
1264     "outputs":1,
1265     "x":1140.5595321655273,
1266     "y":1749.9808164611459,
1267     "z":"862ed298.34c67",
1268     "wires":[
1269       [
1270         "53875c1b.048fd4"
1271       ]
1272     ]
1273   },
1274   {
1275     "id":"90f2f682.5d5ec8",
1276     "type":"returnFailure",
1277     "name":"return failure",
1278     "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",
1279     "comments":"",
1280     "x":1306.5595321655273,
1281     "y":1780.3737354278564,
1282     "z":"862ed298.34c67",
1283     "wires":[
1284
1285     ]
1286   },
1287   {
1288     "id":"53875c1b.048fd4",
1289     "type":"block",
1290     "name":"block",
1291     "xml":"<block>\n",
1292     "atomic":"false",
1293     "comments":"",
1294     "outputs":1,
1295     "x":1282.2154998779297,
1296     "y":1746.172985650599,
1297     "z":"862ed298.34c67",
1298     "wires":[
1299       [
1300
1301       ]
1302     ]
1303   },
1304   {
1305     "id":"5a18305b.6de8e",
1306     "type":"execute",
1307     "name":"generate services url",
1308     "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",
1309     "comments":"",
1310     "outputs":1,
1311     "x":542.929931640625,
1312     "y":1776.1254720687866,
1313     "z":"862ed298.34c67",
1314     "wires":[
1315       [
1316
1317       ]
1318     ]
1319   }
1320 ]