3 "id":"b1368b6a.79f1a8",
17 "id":"12b1f941.e5c857",
18 "type":"service-logic",
19 "name":"GENERIC-RESOURCE-API ${project.version}",
20 "module":"GENERIC-RESOURCE-API",
21 "version":"${project.version}",
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}'>",
25 "x":286.2380790710449,
26 "y":212.95239067077637,
27 "z":"cfbd0a6c.d9ad88",
35 "id":"ead35ce1.7590c",
37 "name":"brg-topology-operation-deactivate",
38 "xml":"<method rpc='brg-topology-operation-deactivate' mode='sync'>\n",
41 "x":332.15485763549805,
42 "y":248.19044589996338,
43 "z":"cfbd0a6c.d9ad88",
51 "id":"43ac6a92.ae5614",
53 "name":"block : atomic",
54 "xml":"<block atomic=\"true\">",
58 "x":240.47619247436523,
59 "y":391.5237879753113,
60 "z":"cfbd0a6c.d9ad88",
83 "id":"4041ad49.6fc0d4",
84 "type":"returnSuccess",
85 "name":"return success",
86 "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",
88 "x":499.00007247924805,
89 "y":1351.2144346237183,
90 "z":"cfbd0a6c.d9ad88",
96 "id":"5240106e.51f63",
98 "name":"set output to api handler",
99 "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",
101 "x":527.7539863586426,
102 "y":1315.3369808197021,
103 "z":"cfbd0a6c.d9ad88",
109 "id":"b55b0b52.943508",
111 "name":"set allotted-resource-oper-status",
112 "xml":"<set>\n<parameter name='brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\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",
114 "x":546.7542419433594,
115 "y":772.0514221191406,
116 "z":"cfbd0a6c.d9ad88",
122 "id":"93b0d070.cd7e4",
124 "name":"set tmp.ar.self-link",
125 "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",
127 "x":502.73806381225586,
128 "y":365.33332538604736,
129 "z":"cfbd0a6c.d9ad88",
135 "id":"8ab3e562.da6e08",
137 "name":"set tmp.ar.allotted-resource-id,etc",
138 "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",
140 "x":549.9973258972168,
141 "y":331.59259128570557,
142 "z":"cfbd0a6c.d9ad88",
148 "id":"1ece8431.af7f1c",
150 "name":"execute Properties",
151 "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
154 "x":508.9934196472168,
155 "y":401.23152446746826,
156 "z":"cfbd0a6c.d9ad88",
164 "id":"200bf55c.cf936a",
166 "name":"execute RestApiCallNode - Get AR by id",
167 "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
170 "x":571.5187530517578,
171 "y":562.4594917297363,
172 "z":"cfbd0a6c.d9ad88",
181 "id":"ed70c5f.ebd7238",
183 "name":"generate allotted-resource url",
184 "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.brg-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
187 "x":537.0648536682129,
188 "y":461.0172290802002,
189 "z":"cfbd0a6c.d9ad88",
197 "id":"f39b8deb.2497f",
200 "xml":"<outcome value='success'>\n",
203 "x":828.8148918151855,
204 "y":561.2672522068024,
205 "z":"cfbd0a6c.d9ad88",
213 "id":"1b6f2d6b.b6acc3",
215 "name":"execute RestApiCallNode - PUT AR by id",
216 "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.brg.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
219 "x":579.5293121337891,
220 "y":915.4341316223145,
221 "z":"cfbd0a6c.d9ad88",
231 "id":"db318a86.7bd678",
234 "xml":"<outcome value='not-found'>\n",
237 "x":849.837329864502,
238 "y":968.432332418859,
239 "z":"cfbd0a6c.d9ad88",
247 "id":"474202ef.7e725c",
250 "xml":"<outcome value='failure'>\n",
253 "x":840.8373794555664,
254 "y":936.9323581680655,
255 "z":"cfbd0a6c.d9ad88",
263 "id":"926f3792.9db948",
266 "xml":"<outcome value='success'>\n",
269 "x":844.5874176025391,
270 "y":907.2894630432129,
271 "z":"cfbd0a6c.d9ad88",
279 "id":"5154d5ef.e6843c",
280 "type":"returnFailure",
281 "name":"return failure",
282 "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",
284 "x":1010.5874176025391,
285 "y":937.6823820099235,
286 "z":"cfbd0a6c.d9ad88",
292 "id":"ce9ddc22.dec85",
294 "name":"block: atomic",
295 "xml":"<block atomic=\"true\">\n",
299 "x":1009.8148460388184,
300 "y":561.7672016620636,
301 "z":"cfbd0a6c.d9ad88",
310 "id":"ff1004f9.28ea78",
312 "name":"switch brg length",
313 "xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n",
316 "x":1255.6720924377441,
317 "y":596.052964925766,
318 "z":"cfbd0a6c.d9ad88",
326 "id":"458ac54.5835d3c",
329 "xml":"<outcome value='1'>\n",
332 "x":1446.6720962524414,
333 "y":596.0529625415802,
334 "z":"cfbd0a6c.d9ad88",
342 "id":"1ea71bb3.19d8e4",
344 "name":"set brg-ar from get",
345 "xml":"<set>\n<parameter name='brg-ar.' value='$mdsal-ar.brg-allotted-resource[0].' />\n",
347 "x":1846.5292320251465,
348 "y":596.6243867874146,
349 "z":"cfbd0a6c.d9ad88",
355 "id":"136fba4.57e3046",
357 "name":"block: atomic",
358 "xml":"<block atomic='true'>\n",
362 "x":1617.5290794372559,
363 "y":596.6244316101074,
364 "z":"cfbd0a6c.d9ad88",
374 "id":"15299399.5fe66c",
376 "name":"set oper-status",
377 "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",
379 "x":1844.5294761657715,
380 "y":664.0529508590698,
381 "z":"cfbd0a6c.d9ad88",
387 "id":"6ea9033a.90574c",
389 "name":"GET brg-allotted-resource from mdsal",
392 "x":596.8148155212402,
393 "y":525.7671926021576,
394 "z":"cfbd0a6c.d9ad88",
400 "id":"7d67802a.2315b",
402 "name":"switch order-status",
403 "xml":"<switch test='`$brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
406 "x":1854.52925491333,
407 "y":629.6243848800659,
408 "z":"cfbd0a6c.d9ad88",
417 "id":"fc9ac41f.bda4b8",
419 "name":"outcome Created",
420 "xml":"<outcome value='Created'>\n",
423 "x":2066.1292114257812,
424 "y":590.6243848800659,
425 "z":"cfbd0a6c.d9ad88",
433 "id":"9800dbd8.9df6f8",
435 "name":"outcome Other",
436 "xml":"<outcome value='Other'>\n",
439 "x":2091.8435859680176,
440 "y":626.052975654602,
441 "z":"cfbd0a6c.d9ad88",
449 "id":"a5baa812.7889a8",
451 "name":"Set allotted-resource-identifiers",
454 "x":552.3386383056641,
455 "y":616.3386459350586,
456 "z":"cfbd0a6c.d9ad88",
462 "id":"19849de2.3d4d92",
464 "name":"save backup copy of mdsal-ar for rollback",
465 "xml":"<set>\n<parameter name='bk-brg-ar' value='$mdsal-ar.' />\n",
467 "x":1335.3864250183105,
468 "y":561.7672936916351,
469 "z":"cfbd0a6c.d9ad88",
475 "id":"2e3d5c7a.18d844",
477 "name":"Create urls for restapi",
480 "x":507.9576606750488,
481 "y":430.6243562698364,
482 "z":"cfbd0a6c.d9ad88",
488 "id":"8791e6de.a42b98",
495 "x":986.2433853149414,
496 "y":903.481632232666,
497 "z":"cfbd0a6c.d9ad88",
505 "id":"2006c488.4b571c",
507 "name":"TO DO: vnf/put parent",
510 "x":514.5290908813477,
511 "y":808.9101696014404,
512 "z":"cfbd0a6c.d9ad88",
518 "id":"2a34aedb.e483f2",
520 "name":"execute getTime",
521 "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
524 "x":494.24338150024414,
525 "y":733.4815549850464,
526 "z":"cfbd0a6c.d9ad88",
534 "id":"d49f2a4f.e657d8",
537 "xml":"<outcome value='Other'>\n",
540 "x":828.5766868591309,
541 "y":597.4814250469208,
542 "z":"cfbd0a6c.d9ad88",
550 "id":"86c72346.242ce",
552 "name":"block: atomic",
553 "xml":"<block atomic=\"true\">\n",
557 "x":1008.5766372680664,
558 "y":598.1479756832123,
559 "z":"cfbd0a6c.d9ad88",
567 "id":"5aa308ce.dba788",
570 "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.` \" />",
572 "x":477.24342346191406,
573 "y":653.1481666564941,
574 "z":"cfbd0a6c.d9ad88",
580 "id":"4ecdc306.3d668c",
587 "x":2280.5997276306152,
588 "y":592.0000190734863,
589 "z":"cfbd0a6c.d9ad88",
597 "id":"626eb0d9.80b5f",
599 "name":"update AAI allotted-resource",
600 "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=\"out-of-service-path\" />\n",
603 "x":541.4285736083984,
604 "y":850.571418762207,
605 "z":"cfbd0a6c.d9ad88",
614 "id":"55679e7c.9aaca",
617 "xml":"<outcome value='failure'>\n",
620 "x":797.1904830932617,
621 "y":833.5239224433899,
622 "z":"cfbd0a6c.d9ad88",
630 "id":"d1259b.54422a68",
631 "type":"returnFailure",
632 "name":"return failure",
633 "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",
635 "x":963.7143630981445,
636 "y":845.1429934501648,
637 "z":"cfbd0a6c.d9ad88",
643 "id":"9789b3b6.f6b9b",
646 "xml":"<outcome value='not-found'>\n",
649 "x":804.2857704162598,
650 "y":866.2858901023865,
651 "z":"cfbd0a6c.d9ad88",
659 "id":"cfdbb6d9.39b868",
661 "name":"execute RestApiCallNode - delete BRG to vgMux vxlan tunnel port",
662 "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\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='DELETE' />\n <parameter name=\"responsePrefix\" value=\"honeycomb-vnf\" />\n\n",
665 "x":651.999885559082,
666 "y":1190.9600343704224,
667 "z":"cfbd0a6c.d9ad88",
677 "id":"60fe5d9f.60f184",
680 "xml":"<outcome value='not-found'>\n",
683 "x":1073.9747009277344,
684 "y":1228.2916730865836,
685 "z":"cfbd0a6c.d9ad88",
693 "id":"12fb290a.532107",
696 "xml":"<outcome value='failure'>\n",
699 "x":1064.9747505187988,
700 "y":1196.7916988357902,
701 "z":"cfbd0a6c.d9ad88",
709 "id":"8c68b450.cb4ca8",
712 "xml":"<outcome value='success'>\n",
715 "x":1068.7247886657715,
716 "y":1167.1488037109375,
717 "z":"cfbd0a6c.d9ad88",
725 "id":"3f807288.3735ae",
726 "type":"returnFailure",
727 "name":"return failure",
728 "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",
730 "x":1234.7247886657715,
731 "y":1197.541722677648,
732 "z":"cfbd0a6c.d9ad88",
738 "id":"c8426dda.6a34f",
745 "x":1210.3807563781738,
746 "y":1163.3409729003906,
747 "z":"cfbd0a6c.d9ad88",
755 "id":"7f3389ec.e8f508",
757 "name":"set BRG to vgMUX VXLAN Tunnel Port Props",
758 "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-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` \" />",
760 "x":590.1111335754395,
761 "y":1089.9602737426758,
762 "z":"cfbd0a6c.d9ad88",
768 "id":"eafe9188.1bdec",
770 "name":"generate full brg-vpp-honeycomb url",
771 "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",
774 "x":559.7776985168457,
775 "y":1134.9600372314453,
776 "z":"cfbd0a6c.d9ad88",
784 "id":"5cd8e25b.be574c",
786 "name":"generate honeycomb-url to vBRG",
787 "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",
790 "x":553.777774810791,
791 "y":1046.6264476776123,
792 "z":"cfbd0a6c.d9ad88",
800 "id":"696d020f.3bfa3c",
802 "name":"TO DO: assign brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip",
803 "info":"need to quary mdsal-ar and get information assigned in tunnelxconn DG?",
805 "x":715.3333206176758,
806 "y":1003.79332447052,
807 "z":"cfbd0a6c.d9ad88",
813 "id":"e67f5695.27f668",
815 "name":"<--- TO DO: vgmux-bearer-ip is part of brg-requiest-input but need vgmux-lan-ip",
818 "x":1038.0000305175781,
819 "y":1088.0000324249268,
820 "z":"cfbd0a6c.d9ad88",