3 "id":"7ca45b72.02b674",
17 "id":"a578aa11.1457b8",
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":296.2380790710449,
26 "y":213.45239067077637,
35 "id":"2e4ecb49.4fb304",
37 "name":"brg-topology-operation-activate",
38 "xml":"<method rpc='brg-topology-operation-activate' mode='sync'>\n",
41 "x":342.15485763549805,
42 "y":248.69044589996338,
51 "id":"a57e9bbb.9e4828",
53 "name":"block : atomic",
54 "xml":"<block atomic=\"true\">",
58 "x":250.47619247436523,
59 "y":392.0237879753113,
85 "id":"148d06ba.a72699",
86 "type":"returnSuccess",
87 "name":"return success",
88 "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",
90 "x":504.00011444091797,
91 "y":1559.3814134597778,
98 "id":"df593324.23b48",
100 "name":"set output to api handler",
101 "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",
103 "x":532.7540283203125,
104 "y":1523.5039596557617,
105 "z":"862ed298.34c67",
111 "id":"1ef0694.7965097",
113 "name":"set allotted-resource-oper-status",
114 "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",
116 "x":556.7542190551758,
117 "y":772.5514001846313,
118 "z":"862ed298.34c67",
124 "id":"546333a0.91ec5c",
126 "name":"set tmp.ar.self-link",
127 "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",
129 "x":512.7380638122559,
130 "y":365.83332538604736,
131 "z":"862ed298.34c67",
137 "id":"15cc0b7b.f05b85",
139 "name":"set tmp.ar.allotted-resource-id,etc",
140 "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",
142 "x":559.9973258972168,
143 "y":332.09259128570557,
144 "z":"862ed298.34c67",
150 "id":"5ccc96c6.1580c8",
152 "name":"execute Properties",
153 "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",
156 "x":518.9934196472168,
157 "y":401.73152446746826,
158 "z":"862ed298.34c67",
166 "id":"f9d9cb1d.a314a8",
168 "name":"execute RestApiCallNode - Get AR by id",
169 "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",
172 "x":581.5187530517578,
173 "y":562.9594917297363,
174 "z":"862ed298.34c67",
183 "id":"6b35e255.00322c",
185 "name":"generate allotted-resource url",
186 "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",
189 "x":547.0648536682129,
190 "y":461.5172290802002,
191 "z":"862ed298.34c67",
199 "id":"604ec1e5.b17c",
202 "xml":"<outcome value='success'>\n",
205 "x":838.8148918151855,
206 "y":561.7672522068024,
207 "z":"862ed298.34c67",
215 "id":"3794d482.d462fc",
217 "name":"execute RestApiCallNode - PUT AR by id",
218 "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",
221 "x":589.5293121337891,
222 "y":915.9341316223145,
223 "z":"862ed298.34c67",
233 "id":"cb14d559.73ea38",
236 "xml":"<outcome value='not-found'>\n",
239 "x":1113.8373832702637,
240 "y":940.9324235916138,
241 "z":"862ed298.34c67",
249 "id":"dc728c86.18e46",
252 "xml":"<outcome value='failure'>\n",
255 "x":1104.8374328613281,
256 "y":909.4324493408203,
257 "z":"862ed298.34c67",
265 "id":"f24f7a44.fa9868",
268 "xml":"<outcome value='success'>\n",
271 "x":1108.5874710083008,
272 "y":879.7895542159677,
273 "z":"862ed298.34c67",
281 "id":"4f1a6257.1e90dc",
282 "type":"returnFailure",
283 "name":"return failure",
284 "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",
286 "x":1274.5874710083008,
287 "y":910.1824731826782,
288 "z":"862ed298.34c67",
294 "id":"9fc7f486.6e8728",
296 "name":"block: atomic",
297 "xml":"<block atomic=\"true\">\n",
301 "x":1019.8148460388184,
302 "y":562.2672016620636,
303 "z":"862ed298.34c67",
312 "id":"b3f7fcbb.cacda",
314 "name":"switch brg length",
315 "xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n",
318 "x":1265.6720924377441,
319 "y":596.552964925766,
320 "z":"862ed298.34c67",
328 "id":"35f809be.750916",
331 "xml":"<outcome value='1'>\n",
334 "x":1456.6720962524414,
335 "y":596.5529625415802,
336 "z":"862ed298.34c67",
344 "id":"1057cfb.6123c3",
346 "name":"set brg-ar from get",
347 "xml":"<set>\n<parameter name='brg-ar.' value='$mdsal-ar.brg-allotted-resource[0].' />\n",
349 "x":1856.5292320251465,
350 "y":597.1243867874146,
351 "z":"862ed298.34c67",
357 "id":"738470b0.e3d3a",
359 "name":"block: atomic",
360 "xml":"<block atomic='true'>\n",
364 "x":1627.5290794372559,
365 "y":597.1244316101074,
366 "z":"862ed298.34c67",
376 "id":"b64dc780.970328",
378 "name":"set oper-status",
379 "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",
381 "x":1854.5294761657715,
382 "y":664.5529508590698,
383 "z":"862ed298.34c67",
389 "id":"c99d3ef5.d59f5",
391 "name":"GET brg-allotted-resource from mdsal",
394 "x":606.8148155212402,
395 "y":526.2671926021576,
396 "z":"862ed298.34c67",
402 "id":"9d4982d0.3671",
404 "name":"switch order-status",
405 "xml":"<switch test='`$brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
408 "x":1864.52925491333,
409 "y":630.1243848800659,
410 "z":"862ed298.34c67",
419 "id":"890a6e1c.d1711",
421 "name":"outcome Created",
422 "xml":"<outcome value='Created'>\n",
425 "x":2076.1292114257812,
426 "y":591.1243848800659,
427 "z":"862ed298.34c67",
435 "id":"c51cac36.4029d",
437 "name":"outcome Other",
438 "xml":"<outcome value='Other'>\n",
441 "x":2101.8435859680176,
442 "y":626.552975654602,
443 "z":"862ed298.34c67",
451 "id":"5c12b1cb.7de2f",
453 "name":"Set allotted-resource-identifiers",
456 "x":562.3386383056641,
457 "y":616.8386459350586,
458 "z":"862ed298.34c67",
464 "id":"a23fac13.531f7",
466 "name":"save backup copy of mdsal-ar for rollback",
467 "xml":"<set>\n<parameter name='bk-brg-ar' value='$mdsal-ar.' />\n",
469 "x":1345.3864250183105,
470 "y":562.2672936916351,
471 "z":"862ed298.34c67",
477 "id":"9da3c80.8620838",
479 "name":"Create urls for restapi",
482 "x":517.9576606750488,
483 "y":431.1243562698364,
484 "z":"862ed298.34c67",
490 "id":"fc0b40a6.c8322",
497 "x":1250.2434387207031,
498 "y":875.9817234054208,
499 "z":"862ed298.34c67",
507 "id":"e38a2e2a.966c",
509 "name":"TO DO: vnf/put parent",
512 "x":520.2433776855469,
513 "y":804.6481952667236,
514 "z":"862ed298.34c67",
520 "id":"b3601577.9dd278",
522 "name":"execute getTime",
523 "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
526 "x":504.24338150024414,
527 "y":733.9815549850464,
528 "z":"862ed298.34c67",
536 "id":"80d7a663.b9fd58",
539 "xml":"<outcome value='Other'>\n",
542 "x":838.5766868591309,
543 "y":597.9814250469208,
544 "z":"862ed298.34c67",
552 "id":"75930022.e7b04",
554 "name":"block: atomic",
555 "xml":"<block atomic=\"true\">\n",
559 "x":1018.5766372680664,
560 "y":598.6479756832123,
561 "z":"862ed298.34c67",
569 "id":"4fe49db6.710ed4",
572 "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.` \" />",
574 "x":487.24342346191406,
575 "y":653.6481666564941,
576 "z":"862ed298.34c67",
582 "id":"acca97a1.9e7328",
589 "x":2290.5997276306152,
590 "y":592.5000190734863,
591 "z":"862ed298.34c67",
599 "id":"e5b256f5.b1cce8",
601 "name":"update AAI allotted-resource",
602 "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",
605 "x":547.8571624755859,
606 "y":837.7380628585815,
607 "z":"862ed298.34c67",
616 "id":"cddc2d29.84eec",
619 "xml":"<outcome value='failure'>\n",
622 "x":803.6190567016602,
623 "y":820.6905598640442,
624 "z":"862ed298.34c67",
632 "id":"7dbfd50c.378e0c",
633 "type":"returnFailure",
634 "name":"return failure",
635 "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",
637 "x":970.142936706543,
638 "y":832.3096308708191,
639 "z":"862ed298.34c67",
645 "id":"f5df336a.008f2",
648 "xml":"<outcome value='not-found'>\n",
651 "x":810.7143440246582,
652 "y":853.4525275230408,
653 "z":"862ed298.34c67",
661 "id":"fe630901.ebe978",
663 "name":"execute RestApiCallNode - setup BRG to vgMux vxlan tunnel port",
664 "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",
667 "x":664.6666564941406,
668 "y":1249.166666984558,
669 "z":"862ed298.34c67",
679 "id":"c24e108f.00a11",
682 "xml":"<outcome value='not-found'>\n",
685 "x":998.6414451599121,
686 "y":1308.4982789978385,
687 "z":"862ed298.34c67",
695 "id":"be44e415.f52208",
698 "xml":"<outcome value='failure'>\n",
701 "x":989.6414947509766,
702 "y":1276.998304747045,
703 "z":"862ed298.34c67",
711 "id":"b3d9ad69.551df",
714 "xml":"<outcome value='success'>\n",
717 "x":993.3915328979492,
718 "y":1247.3554096221924,
719 "z":"862ed298.34c67",
727 "id":"9f93ed2a.172f9",
728 "type":"returnFailure",
729 "name":"return failure",
730 "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",
732 "x":1159.3915328979492,
733 "y":1277.748328588903,
734 "z":"862ed298.34c67",
740 "id":"be1da966.f3fdb8",
747 "x":1135.0475006103516,
748 "y":1243.5475788116455,
749 "z":"862ed298.34c67",
757 "id":"cb813dae.148d9",
759 "name":"execute RestApiCallNode - setup BRG vxlan bridge domain",
760 "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",
763 "x":646.3334197998047,
764 "y":1395.833461523056,
765 "z":"862ed298.34c67",
775 "id":"fda405ea.32bd38",
778 "xml":"<outcome value='not-found'>\n",
781 "x":994.3080577850342,
782 "y":1471.4983781799674,
783 "z":"862ed298.34c67",
791 "id":"a0de0f27.22318",
794 "xml":"<outcome value='failure'>\n",
797 "x":985.3081073760986,
798 "y":1439.998403929174,
799 "z":"862ed298.34c67",
807 "id":"713a6065.b61ad",
810 "xml":"<outcome value='success'>\n",
813 "x":989.0581455230713,
814 "y":1410.3555088043213,
815 "z":"862ed298.34c67",
823 "id":"eb0aba4d.33d9b8",
824 "type":"returnFailure",
825 "name":"return failure",
826 "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",
828 "x":1155.0581455230713,
829 "y":1440.7484277710319,
830 "z":"862ed298.34c67",
836 "id":"cf6832af.3d346",
843 "x":1130.7141132354736,
844 "y":1406.5476779937744,
845 "z":"862ed298.34c67",
853 "id":"d3a63961.390228",
855 "name":"set BRG to vgMUX VXLAN Tunnel Port Props",
856 "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` \" />",
858 "x":600.7778015136719,
859 "y":1114.1669263839722,
860 "z":"862ed298.34c67",
866 "id":"11753209.20d5ee",
868 "name":"generate full brg-vpp-honeycomb url",
869 "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",
872 "x":572.4444427490234,
873 "y":1169.1667051315308,
874 "z":"862ed298.34c67",
882 "id":"6f9567d7.ec7dc8",
884 "name":"generate honeycomb-url to vBRG",
885 "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",
888 "x":564.4444580078125,
889 "y":1028.833233833313,
890 "z":"862ed298.34c67",
898 "id":"53cf1cf4.d29134",
900 "name":"set BRG Bridge Domain Props",
901 "xml":"<set>\n<parameter name='tmp.bridge-domain' value=\"bridge-domain-10\" />\n<parameter name='tmp.split-horizon-group' value=\"2\" />",
903 "x":555.7777557373047,
904 "y":1320.8333368301392,
905 "z":"862ed298.34c67",
911 "id":"7968a654.b60c08",
913 "name":"TO DO: assign brg-ar.allotted-resource-data.brg-topology.brg-assignments.vbrg-wan-ip",
914 "info":"need to quary mdsal-ar and get information assigned in tunnelxconn DG?",
916 "x":722.0000305175781,
917 "y":978.0000286102295,
918 "z":"862ed298.34c67",