Save brg service to md-sal in DG
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_brg-topology-operation-activate.json
1 [
2   {
3     "id":"a5f311cb.210c6",
4     "type":"dgstart",
5     "name":"DGSTART",
6     "outputs":1,
7     "x":139,
8     "y":110,
9     "z":"bd738317.61f1e",
10     "wires":[
11       [
12         "3cc114db.e05a3c"
13       ]
14     ]
15   },
16   {
17     "id":"3cc114db.e05a3c",
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":235.23807907104492,
26     "y":170.95239067077637,
27     "z":"bd738317.61f1e",
28     "wires":[
29       [
30         "27ef1723.4e0278"
31       ]
32     ]
33   },
34   {
35     "id":"27ef1723.4e0278",
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":281.15485763549805,
42     "y":206.19044589996338,
43     "z":"bd738317.61f1e",
44     "wires":[
45       [
46         "5084fcc1.6127a4"
47       ]
48     ]
49   },
50   {
51     "id":"5084fcc1.6127a4",
52     "type":"block",
53     "name":"block : atomic",
54     "xml":"<block atomic=\"true\">",
55     "atomic":"true",
56     "comments":"",
57     "outputs":1,
58     "x":189.47619247436523,
59     "y":349.5237879753113,
60     "z":"bd738317.61f1e",
61     "wires":[
62       [
63         "58b2a19b.bb1a9",
64         "7d4ed218.8bbd8c",
65         "e7f02dcd.d7804",
66         "c8a2b5a6.be9028",
67         "57d72c77.8278c4",
68         "da3b0a02.7cb8f8",
69         "2d3dbb81.8d93e4",
70         "49f82ccd.f7c214",
71         "1c4673a7.e44e5c",
72         "8be1a0c.f98886",
73         "ded6be20.02606",
74         "813841f5.5242d",
75         "6b6c396.0e3bdc8",
76         "87c5e69a.216528",
77         "eb01b23d.d2e83",
78         "9d0a59c9.488d38",
79         "52fb1b57.c3a244",
80         "a54b3930.93b098",
81         "390bbb92.09b7f4",
82         "d2ce0116.9d6fd",
83         "d22b2425.82db18",
84         "9afe5c14.6ae23"
85       ]
86     ]
87   },
88   {
89     "id":"7d4ed218.8bbd8c",
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":449.0001220703125,
95     "y":1920.8814477920532,
96     "z":"bd738317.61f1e",
97     "wires":[
98
99     ]
100   },
101   {
102     "id":"58b2a19b.bb1a9",
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":477.75403594970703,
108     "y":1885.003993988037,
109     "z":"bd738317.61f1e",
110     "wires":[
111
112     ]
113   },
114   {
115     "id":"8be1a0c.f98886",
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":495.7542190551758,
121     "y":730.0514001846313,
122     "z":"bd738317.61f1e",
123     "wires":[
124
125     ]
126   },
127   {
128     "id":"c8a2b5a6.be9028",
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":451.73806381225586,
134     "y":323.33332538604736,
135     "z":"bd738317.61f1e",
136     "wires":[
137
138     ]
139   },
140   {
141     "id":"e7f02dcd.d7804",
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":498.9973258972168,
147     "y":289.59259128570557,
148     "z":"bd738317.61f1e",
149     "wires":[
150
151     ]
152   },
153   {
154     "id":"57d72c77.8278c4",
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":457.9934196472168,
161     "y":359.23152446746826,
162     "z":"bd738317.61f1e",
163     "wires":[
164       [
165
166       ]
167     ]
168   },
169   {
170     "id":"2d3dbb81.8d93e4",
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":520.5187530517578,
177     "y":520.4594917297363,
178     "z":"bd738317.61f1e",
179     "wires":[
180       [
181         "8276c2bb.14acb",
182         "298fb105.8bda2e"
183       ]
184     ]
185   },
186   {
187     "id":"da3b0a02.7cb8f8",
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":486.0648536682129,
194     "y":419.0172290802002,
195     "z":"bd738317.61f1e",
196     "wires":[
197       [
198
199       ]
200     ]
201   },
202   {
203     "id":"8276c2bb.14acb",
204     "type":"success",
205     "name":"success",
206     "xml":"<outcome value='success'>\n",
207     "comments":"",
208     "outputs":1,
209     "x":777.8148918151855,
210     "y":519.2672522068024,
211     "z":"bd738317.61f1e",
212     "wires":[
213       [
214         "893561c4.da3da"
215       ]
216     ]
217   },
218   {
219     "id":"49f82ccd.f7c214",
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":528.5293121337891,
226     "y":873.4341316223145,
227     "z":"bd738317.61f1e",
228     "wires":[
229       [
230         "3d80671.2fffe98",
231         "5531bacd.bb4054",
232         "d8812d37.161a9"
233       ]
234     ]
235   },
236   {
237     "id":"3d80671.2fffe98",
238     "type":"not-found",
239     "name":"not-found",
240     "xml":"<outcome value='not-found'>\n",
241     "comments":"",
242     "outputs":1,
243     "x":1052.8373832702637,
244     "y":898.4324235916138,
245     "z":"bd738317.61f1e",
246     "wires":[
247       [
248         "3a60fdb3.4a8a52"
249       ]
250     ]
251   },
252   {
253     "id":"5531bacd.bb4054",
254     "type":"failure",
255     "name":"failure",
256     "xml":"<outcome value='failure'>\n",
257     "comments":"",
258     "outputs":1,
259     "x":1043.8374328613281,
260     "y":866.9324493408203,
261     "z":"bd738317.61f1e",
262     "wires":[
263       [
264         "3a60fdb3.4a8a52"
265       ]
266     ]
267   },
268   {
269     "id":"d8812d37.161a9",
270     "type":"success",
271     "name":"success",
272     "xml":"<outcome value='success'>\n",
273     "comments":"",
274     "outputs":1,
275     "x":1047.5874710083008,
276     "y":837.2895542159677,
277     "z":"bd738317.61f1e",
278     "wires":[
279       [
280         "74162770.a979c8"
281       ]
282     ]
283   },
284   {
285     "id":"3a60fdb3.4a8a52",
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":1213.5874710083008,
291     "y":867.6824731826782,
292     "z":"bd738317.61f1e",
293     "wires":[
294
295     ]
296   },
297   {
298     "id":"893561c4.da3da",
299     "type":"block",
300     "name":"block: atomic",
301     "xml":"<block atomic=\"true\">\n",
302     "atomic":"false",
303     "comments":"",
304     "outputs":1,
305     "x":958.8148460388184,
306     "y":519.7672016620636,
307     "z":"bd738317.61f1e",
308     "wires":[
309       [
310         "7cc2aba3.4ab774",
311         "4cf2170b.af9078"
312       ]
313     ]
314   },
315   {
316     "id":"7cc2aba3.4ab774",
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":1204.6720924377441,
323     "y":554.052964925766,
324     "z":"bd738317.61f1e",
325     "wires":[
326       [
327         "f2b5c7f8.4c2788"
328       ]
329     ]
330   },
331   {
332     "id":"f2b5c7f8.4c2788",
333     "type":"other",
334     "name":"outcome 1",
335     "xml":"<outcome value='1'>\n",
336     "comments":"",
337     "outputs":1,
338     "x":1395.6720962524414,
339     "y":554.0529625415802,
340     "z":"bd738317.61f1e",
341     "wires":[
342       [
343         "99caeac4.1caf68"
344       ]
345     ]
346   },
347   {
348     "id":"a94fae60.0d4d8",
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":1795.5292320251465,
354     "y":554.6243867874146,
355     "z":"bd738317.61f1e",
356     "wires":[
357
358     ]
359   },
360   {
361     "id":"99caeac4.1caf68",
362     "type":"block",
363     "name":"block: atomic",
364     "xml":"<block atomic='true'>\n",
365     "atomic":"false",
366     "comments":"",
367     "outputs":1,
368     "x":1566.5290794372559,
369     "y":554.6244316101074,
370     "z":"bd738317.61f1e",
371     "wires":[
372       [
373         "a94fae60.0d4d8",
374         "b911a84d.ae1718",
375         "4be8f1c4.44235"
376       ]
377     ]
378   },
379   {
380     "id":"b911a84d.ae1718",
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":1793.5294761657715,
386     "y":622.0529508590698,
387     "z":"bd738317.61f1e",
388     "wires":[
389
390     ]
391   },
392   {
393     "id":"1fae3401.6b02fc",
394     "type":"comment",
395     "name":"GET brg-allotted-resource from mdsal",
396     "info":"",
397     "comments":"",
398     "x":545.8148155212402,
399     "y":483.7671926021576,
400     "z":"bd738317.61f1e",
401     "wires":[
402
403     ]
404   },
405   {
406     "id":"4be8f1c4.44235",
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":1803.52925491333,
413     "y":587.6243848800659,
414     "z":"bd738317.61f1e",
415     "wires":[
416       [
417         "78046e66.9f48",
418         "8b7e48bf.d7da38"
419       ]
420     ]
421   },
422   {
423     "id":"78046e66.9f48",
424     "type":"outcome",
425     "name":"outcome Created",
426     "xml":"<outcome value='Created'>\n",
427     "comments":"",
428     "outputs":1,
429     "x":2015.1292114257812,
430     "y":548.6243848800659,
431     "z":"bd738317.61f1e",
432     "wires":[
433       [
434         "6617e6b1.caed38"
435       ]
436     ]
437   },
438   {
439     "id":"8b7e48bf.d7da38",
440     "type":"outcome",
441     "name":"outcome Other",
442     "xml":"<outcome value='Other'>\n",
443     "comments":"",
444     "outputs":1,
445     "x":2040.8435859680176,
446     "y":584.052975654602,
447     "z":"bd738317.61f1e",
448     "wires":[
449       [
450         "6617e6b1.caed38"
451       ]
452     ]
453   },
454   {
455     "id":"2041ebe5.c30ee4",
456     "type":"comment",
457     "name":"Set allotted-resource-identifiers",
458     "info":"",
459     "comments":"",
460     "x":501.33863830566406,
461     "y":574.3386459350586,
462     "z":"bd738317.61f1e",
463     "wires":[
464
465     ]
466   },
467   {
468     "id":"4cf2170b.af9078",
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":1284.3864250183105,
474     "y":519.7672936916351,
475     "z":"bd738317.61f1e",
476     "wires":[
477
478     ]
479   },
480   {
481     "id":"aa22f4fa.80d2f8",
482     "type":"comment",
483     "name":"Create urls for restapi",
484     "info":"",
485     "comments":"",
486     "x":456.9576606750488,
487     "y":388.6243562698364,
488     "z":"bd738317.61f1e",
489     "wires":[
490
491     ]
492   },
493   {
494     "id":"74162770.a979c8",
495     "type":"block",
496     "name":"block",
497     "xml":"<block>\n",
498     "atomic":"false",
499     "comments":"",
500     "outputs":1,
501     "x":1189.2434387207031,
502     "y":833.4817234054208,
503     "z":"bd738317.61f1e",
504     "wires":[
505       [
506
507       ]
508     ]
509   },
510   {
511     "id":"6c2fd2bf.8ea39c",
512     "type":"comment",
513     "name":"TO DO: vnf/put parent",
514     "info":"",
515     "comments":"",
516     "x":459.2433776855469,
517     "y":762.1481952667236,
518     "z":"bd738317.61f1e",
519     "wires":[
520
521     ]
522   },
523   {
524     "id":"1c4673a7.e44e5c",
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":443.24338150024414,
531     "y":691.4815549850464,
532     "z":"bd738317.61f1e",
533     "wires":[
534       [
535
536       ]
537     ]
538   },
539   {
540     "id":"298fb105.8bda2e",
541     "type":"other",
542     "name":"other",
543     "xml":"<outcome value='Other'>\n",
544     "comments":"",
545     "outputs":1,
546     "x":777.5766868591309,
547     "y":555.4814250469208,
548     "z":"bd738317.61f1e",
549     "wires":[
550       [
551         "da7d30a7.86aa1"
552       ]
553     ]
554   },
555   {
556     "id":"da7d30a7.86aa1",
557     "type":"block",
558     "name":"block: atomic",
559     "xml":"<block atomic=\"true\">\n",
560     "atomic":"false",
561     "comments":"",
562     "outputs":1,
563     "x":957.5766372680664,
564     "y":556.1479756832123,
565     "z":"bd738317.61f1e",
566     "wires":[
567       [
568
569       ]
570     ]
571   },
572   {
573     "id":"ded6be20.02606",
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":426.24342346191406,
579     "y":611.1481666564941,
580     "z":"bd738317.61f1e",
581     "wires":[
582
583     ]
584   },
585   {
586     "id":"6617e6b1.caed38",
587     "type":"block",
588     "name":"block",
589     "xml":"<block>\n",
590     "atomic":"false",
591     "comments":"",
592     "outputs":1,
593     "x":2229.5997276306152,
594     "y":550.0000190734863,
595     "z":"bd738317.61f1e",
596     "wires":[
597       [
598
599       ]
600     ]
601   },
602   {
603     "id":"813841f5.5242d",
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":486.85716247558594,
610     "y":795.2380628585815,
611     "z":"bd738317.61f1e",
612     "wires":[
613       [
614         "dfcc7672.3a2628",
615         "f88b958b.1b4058"
616       ]
617     ]
618   },
619   {
620     "id":"dfcc7672.3a2628",
621     "type":"failure",
622     "name":"failure",
623     "xml":"<outcome value='failure'>\n",
624     "comments":"",
625     "outputs":1,
626     "x":742.6190567016602,
627     "y":778.1905598640442,
628     "z":"bd738317.61f1e",
629     "wires":[
630       [
631         "16d52897.21f867"
632       ]
633     ]
634   },
635   {
636     "id":"16d52897.21f867",
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":909.142936706543,
642     "y":789.8096308708191,
643     "z":"bd738317.61f1e",
644     "wires":[
645
646     ]
647   },
648   {
649     "id":"f88b958b.1b4058",
650     "type":"failure",
651     "name":"not-found",
652     "xml":"<outcome value='not-found'>\n",
653     "comments":"",
654     "outputs":1,
655     "x":749.7143440246582,
656     "y":810.9525275230408,
657     "z":"bd738317.61f1e",
658     "wires":[
659       [
660         "16d52897.21f867"
661       ]
662     ]
663   },
664   {
665     "id":"6b6c396.0e3bdc8",
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":603.6666564941406,
672     "y":1206.666666984558,
673     "z":"bd738317.61f1e",
674     "wires":[
675       [
676         "ac72a6ac.9a87d8",
677         "6627db7e.a07df4",
678         "b71c9a02.dc5f38"
679       ]
680     ]
681   },
682   {
683     "id":"ac72a6ac.9a87d8",
684     "type":"not-found",
685     "name":"not-found",
686     "xml":"<outcome value='not-found'>\n",
687     "comments":"",
688     "outputs":1,
689     "x":937.6414451599121,
690     "y":1265.9982789978385,
691     "z":"bd738317.61f1e",
692     "wires":[
693       [
694         "87d976e8.3b5e08"
695       ]
696     ]
697   },
698   {
699     "id":"6627db7e.a07df4",
700     "type":"failure",
701     "name":"failure",
702     "xml":"<outcome value='failure'>\n",
703     "comments":"",
704     "outputs":1,
705     "x":928.6414947509766,
706     "y":1234.498304747045,
707     "z":"bd738317.61f1e",
708     "wires":[
709       [
710         "87d976e8.3b5e08"
711       ]
712     ]
713   },
714   {
715     "id":"b71c9a02.dc5f38",
716     "type":"success",
717     "name":"success",
718     "xml":"<outcome value='success'>\n",
719     "comments":"",
720     "outputs":1,
721     "x":932.3915328979492,
722     "y":1204.8554096221924,
723     "z":"bd738317.61f1e",
724     "wires":[
725       [
726         "647bb0e7.3a8ce"
727       ]
728     ]
729   },
730   {
731     "id":"87d976e8.3b5e08",
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":1098.3915328979492,
737     "y":1235.248328588903,
738     "z":"bd738317.61f1e",
739     "wires":[
740
741     ]
742   },
743   {
744     "id":"647bb0e7.3a8ce",
745     "type":"block",
746     "name":"block",
747     "xml":"<block>\n",
748     "atomic":"false",
749     "comments":"",
750     "outputs":1,
751     "x":1074.0475006103516,
752     "y":1201.0475788116455,
753     "z":"bd738317.61f1e",
754     "wires":[
755       [
756
757       ]
758     ]
759   },
760   {
761     "id":"87c5e69a.216528",
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":585.3334197998047,
768     "y":1353.333461523056,
769     "z":"bd738317.61f1e",
770     "wires":[
771       [
772         "8bb826ca.7fde18",
773         "3b0cfc96.e063d4",
774         "9233dc34.b0a2e"
775       ]
776     ]
777   },
778   {
779     "id":"8bb826ca.7fde18",
780     "type":"not-found",
781     "name":"not-found",
782     "xml":"<outcome value='not-found'>\n",
783     "comments":"",
784     "outputs":1,
785     "x":933.3080577850342,
786     "y":1428.9983781799674,
787     "z":"bd738317.61f1e",
788     "wires":[
789       [
790         "56013e05.d3ec7"
791       ]
792     ]
793   },
794   {
795     "id":"3b0cfc96.e063d4",
796     "type":"failure",
797     "name":"failure",
798     "xml":"<outcome value='failure'>\n",
799     "comments":"",
800     "outputs":1,
801     "x":924.3081073760986,
802     "y":1397.498403929174,
803     "z":"bd738317.61f1e",
804     "wires":[
805       [
806         "56013e05.d3ec7"
807       ]
808     ]
809   },
810   {
811     "id":"9233dc34.b0a2e",
812     "type":"success",
813     "name":"success",
814     "xml":"<outcome value='success'>\n",
815     "comments":"",
816     "outputs":1,
817     "x":928.0581455230713,
818     "y":1367.8555088043213,
819     "z":"bd738317.61f1e",
820     "wires":[
821       [
822         "d277fbef.48ce48"
823       ]
824     ]
825   },
826   {
827     "id":"56013e05.d3ec7",
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":1094.0581455230713,
833     "y":1398.2484277710319,
834     "z":"bd738317.61f1e",
835     "wires":[
836
837     ]
838   },
839   {
840     "id":"d277fbef.48ce48",
841     "type":"block",
842     "name":"block",
843     "xml":"<block>\n",
844     "atomic":"false",
845     "comments":"",
846     "outputs":1,
847     "x":1069.7141132354736,
848     "y":1364.0476779937744,
849     "z":"bd738317.61f1e",
850     "wires":[
851       [
852
853       ]
854     ]
855   },
856   {
857     "id":"52fb1b57.c3a244",
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":539.7778015136719,
863     "y":1071.6669263839722,
864     "z":"bd738317.61f1e",
865     "wires":[
866
867     ]
868   },
869   {
870     "id":"9d0a59c9.488d38",
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":511.44444274902344,
877     "y":1126.6667051315308,
878     "z":"bd738317.61f1e",
879     "wires":[
880       [
881
882       ]
883     ]
884   },
885   {
886     "id":"eb01b23d.d2e83",
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":503.4444580078125,
893     "y":986.333233833313,
894     "z":"bd738317.61f1e",
895     "wires":[
896       [
897
898       ]
899     ]
900   },
901   {
902     "id":"a54b3930.93b098",
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":494.7777557373047,
908     "y":1278.3333368301392,
909     "z":"bd738317.61f1e",
910     "wires":[
911
912     ]
913   },
914   {
915     "id":"66ab9749.6e5de8",
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":661.0000305175781,
921     "y":935.5000286102295,
922     "z":"bd738317.61f1e",
923     "wires":[
924
925     ]
926   },
927   {
928     "id":"d359b8c.b2e9848",
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":547.5807209014893,
934     "y":1475.2236095443368,
935     "z":"bd738317.61f1e",
936     "wires":[
937
938     ]
939   },
940   {
941     "id":"d2ce0116.9d6fd",
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":560.5014190673828,
948     "y":1596.3346309661865,
949     "z":"bd738317.61f1e",
950     "wires":[
951       [
952         "25295636.0ab61a",
953         "bf6df68d.132c38"
954       ]
955     ]
956   },
957   {
958     "id":"25295636.0ab61a",
959     "type":"success",
960     "name":"success",
961     "xml":"<outcome value='success'>\n",
962     "comments":"",
963     "outputs":1,
964     "x":849.3213386535645,
965     "y":1593.7139744758606,
966     "z":"bd738317.61f1e",
967     "wires":[
968       [
969         "6176a3d2.ca4a4c"
970       ]
971     ]
972   },
973   {
974     "id":"6176a3d2.ca4a4c",
975     "type":"block",
976     "name":"block: atomic",
977     "xml":"<block atomic=\"true\">\n",
978     "atomic":"false",
979     "comments":"",
980     "outputs":1,
981     "x":1030.3212928771973,
982     "y":1594.2139239311218,
983     "z":"bd738317.61f1e",
984     "wires":[
985       [
986         "8a58185b.1f0588",
987         "e2166c3e.a56a4"
988       ]
989     ]
990   },
991   {
992     "id":"8a58185b.1f0588",
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":1276.178539276123,
999     "y":1628.4996871948242,
1000     "z":"bd738317.61f1e",
1001     "wires":[
1002       [
1003         "d1780eb8.0a48d"
1004       ]
1005     ]
1006   },
1007   {
1008     "id":"d1780eb8.0a48d",
1009     "type":"other",
1010     "name":"outcome 1",
1011     "xml":"<outcome value='1'>\n",
1012     "comments":"",
1013     "outputs":1,
1014     "x":1467.1785430908203,
1015     "y":1628.4996848106384,
1016     "z":"bd738317.61f1e",
1017     "wires":[
1018       [
1019         "144d46bd.d15369"
1020       ]
1021     ]
1022   },
1023   {
1024     "id":"c4f78b0c.399548",
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":1867.0356788635254,
1030     "y":1629.0711090564728,
1031     "z":"bd738317.61f1e",
1032     "wires":[
1033
1034     ]
1035   },
1036   {
1037     "id":"144d46bd.d15369",
1038     "type":"block",
1039     "name":"block: atomic",
1040     "xml":"<block atomic='true'>\n",
1041     "atomic":"false",
1042     "comments":"",
1043     "outputs":1,
1044     "x":1638.0355262756348,
1045     "y":1629.0711538791656,
1046     "z":"bd738317.61f1e",
1047     "wires":[
1048       [
1049         "c4f78b0c.399548",
1050         "e2b696d0.92bce8"
1051       ]
1052     ]
1053   },
1054   {
1055     "id":"acb27e89.7a99b",
1056     "type":"comment",
1057     "name":"GET vnf-api service info",
1058     "info":"",
1059     "comments":"",
1060     "x":465.89267349243164,
1061     "y":1559.6423273086548,
1062     "z":"bd738317.61f1e",
1063     "wires":[
1064
1065     ]
1066   },
1067   {
1068     "id":"e2b696d0.92bce8",
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":1850.7498970031738,
1075     "y":1680.6425342559814,
1076     "z":"bd738317.61f1e",
1077     "wires":[
1078       [
1079         "93dea8c9.d15128",
1080         "9bef71a8.f6f6b"
1081       ]
1082     ]
1083   },
1084   {
1085     "id":"93dea8c9.d15128",
1086     "type":"outcome",
1087     "name":"outcome Created",
1088     "xml":"<outcome value='Created'>\n",
1089     "comments":"",
1090     "outputs":1,
1091     "x":2086.63565826416,
1092     "y":1623.0711071491241,
1093     "z":"bd738317.61f1e",
1094     "wires":[
1095       [
1096         "ef316dbf.6a0cc"
1097       ]
1098     ]
1099   },
1100   {
1101     "id":"9bef71a8.f6f6b",
1102     "type":"outcome",
1103     "name":"outcome Other",
1104     "xml":"<outcome value='Other'>\n",
1105     "comments":"",
1106     "outputs":1,
1107     "x":2112.3500328063965,
1108     "y":1658.4996979236603,
1109     "z":"bd738317.61f1e",
1110     "wires":[
1111       [
1112         "ef316dbf.6a0cc"
1113       ]
1114     ]
1115   },
1116   {
1117     "id":"da592da3.ffeb5",
1118     "type":"comment",
1119     "name":"Set service-data",
1120     "info":"",
1121     "comments":"",
1122     "x":439.9879341125488,
1123     "y":1644.4995203018188,
1124     "z":"bd738317.61f1e",
1125     "wires":[
1126
1127     ]
1128   },
1129   {
1130     "id":"e2166c3e.a56a4",
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":1355.8928718566895,
1136     "y":1594.2140159606934,
1137     "z":"bd738317.61f1e",
1138     "wires":[
1139
1140     ]
1141   },
1142   {
1143     "id":"bf6df68d.132c38",
1144     "type":"other",
1145     "name":"other",
1146     "xml":"<outcome value='Other'>\n",
1147     "comments":"",
1148     "outputs":1,
1149     "x":849.0831336975098,
1150     "y":1629.928147315979,
1151     "z":"bd738317.61f1e",
1152     "wires":[
1153       [
1154         "cf1f6a1b.c9ce08"
1155       ]
1156     ]
1157   },
1158   {
1159     "id":"cf1f6a1b.c9ce08",
1160     "type":"block",
1161     "name":"block: atomic",
1162     "xml":"<block atomic=\"true\">\n",
1163     "atomic":"false",
1164     "comments":"",
1165     "outputs":1,
1166     "x":1029.0830841064453,
1167     "y":1630.5946979522705,
1168     "z":"bd738317.61f1e",
1169     "wires":[
1170       [
1171
1172       ]
1173     ]
1174   },
1175   {
1176     "id":"ef316dbf.6a0cc",
1177     "type":"block",
1178     "name":"block",
1179     "xml":"<block>\n",
1180     "atomic":"false",
1181     "comments":"",
1182     "outputs":1,
1183     "x":2301.106174468994,
1184     "y":1624.4467413425446,
1185     "z":"bd738317.61f1e",
1186     "wires":[
1187       [
1188
1189       ]
1190     ]
1191   },
1192   {
1193     "id":"390bbb92.09b7f4",
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=\"`$tmp.ar.brg-vnf-id`\"/>\n",
1197     "comments":"",
1198     "outputs":1,
1199     "x":486.3108825683594,
1200     "y":1517.763334274292,
1201     "z":"bd738317.61f1e",
1202     "wires":[
1203       [
1204
1205       ]
1206     ]
1207   },
1208   {
1209     "id":"9afe5c14.6ae23",
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":560.5966033935547,
1216     "y":1773.0016822814941,
1217     "z":"bd738317.61f1e",
1218     "wires":[
1219       [
1220         "c87c4ec5.30548",
1221         "9b0fe650.2f2a48",
1222         "bddffe4d.e139c"
1223       ]
1224     ]
1225   },
1226   {
1227     "id":"c87c4ec5.30548",
1228     "type":"not-found",
1229     "name":"not-found",
1230     "xml":"<outcome value='not-found'>\n",
1231     "comments":"",
1232     "outputs":1,
1233     "x":1066.8094596862793,
1234     "y":1767.5236949920654,
1235     "z":"bd738317.61f1e",
1236     "wires":[
1237       [
1238         "a54672fa.e0b22"
1239       ]
1240     ]
1241   },
1242   {
1243     "id":"9b0fe650.2f2a48",
1244     "type":"failure",
1245     "name":"failure",
1246     "xml":"<outcome value='failure'>\n",
1247     "comments":"",
1248     "outputs":1,
1249     "x":1057.8095092773438,
1250     "y":1736.023720741272,
1251     "z":"bd738317.61f1e",
1252     "wires":[
1253       [
1254         "a54672fa.e0b22"
1255       ]
1256     ]
1257   },
1258   {
1259     "id":"bddffe4d.e139c",
1260     "type":"success",
1261     "name":"success",
1262     "xml":"<outcome value='success'>\n",
1263     "comments":"",
1264     "outputs":1,
1265     "x":1061.5595474243164,
1266     "y":1706.3808256164193,
1267     "z":"bd738317.61f1e",
1268     "wires":[
1269       [
1270         "818c08d2.8fb6d8"
1271       ]
1272     ]
1273   },
1274   {
1275     "id":"a54672fa.e0b22",
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":1227.5595474243164,
1281     "y":1736.7737445831299,
1282     "z":"bd738317.61f1e",
1283     "wires":[
1284
1285     ]
1286   },
1287   {
1288     "id":"818c08d2.8fb6d8",
1289     "type":"block",
1290     "name":"block",
1291     "xml":"<block>\n",
1292     "atomic":"false",
1293     "comments":"",
1294     "outputs":1,
1295     "x":1203.2155151367188,
1296     "y":1702.5729948058724,
1297     "z":"bd738317.61f1e",
1298     "wires":[
1299       [
1300
1301       ]
1302     ]
1303   },
1304   {
1305     "id":"d22b2425.82db18",
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":463.92994689941406,
1312     "y":1732.52548122406,
1313     "z":"bd738317.61f1e",
1314     "wires":[
1315       [
1316
1317       ]
1318     ]
1319   }
1320 ]