17 "id":"539ddd05.d9acd4",
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":236.23807907104492,
26 "y":175.95239067077637,
27 "z":"87a856d9.9ec508",
35 "id":"d3e85090.c0279",
37 "name":"brg-topology-operation-activate",
38 "xml":"<method rpc='brg-topology-operation-activate' mode='sync'>\n",
41 "x":282.15485763549805,
42 "y":211.19044589996338,
43 "z":"87a856d9.9ec508",
51 "id":"a3b5f23e.0b3f1",
53 "name":"block : atomic",
54 "xml":"<block atomic=\"true\">",
58 "x":190.47619247436523,
59 "y":354.5237879753113,
60 "z":"87a856d9.9ec508",
85 "id":"61b73363.ffb3cc",
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":450.33348846435547,
91 "y":1410.8813753128052,
92 "z":"87a856d9.9ec508",
98 "id":"611e8741.074898",
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",
104 "y":1375.003921508789,
105 "z":"87a856d9.9ec508",
111 "id":"abb42d37.333e9",
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":496.7542190551758,
117 "y":735.0514001846313,
118 "z":"87a856d9.9ec508",
124 "id":"5de77c32.eecb94",
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":452.73806381225586,
130 "y":328.33332538604736,
131 "z":"87a856d9.9ec508",
137 "id":"a6766796.306768",
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":499.9973258972168,
143 "y":294.59259128570557,
144 "z":"87a856d9.9ec508",
150 "id":"3a0be6a.ca51a1a",
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":458.9934196472168,
157 "y":364.23152446746826,
158 "z":"87a856d9.9ec508",
166 "id":"e64c58e2.5bad38",
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":521.5187530517578,
173 "y":525.4594917297363,
174 "z":"87a856d9.9ec508",
183 "id":"a9547492.9c6f28",
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":487.0648536682129,
190 "y":424.0172290802002,
191 "z":"87a856d9.9ec508",
199 "id":"2fee3ef4.4e3752",
202 "xml":"<outcome value='success'>\n",
205 "x":778.8148918151855,
206 "y":524.2672522068024,
207 "z":"87a856d9.9ec508",
215 "id":"f373e2ec.09689",
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":529.5293121337891,
222 "y":878.4341316223145,
223 "z":"87a856d9.9ec508",
233 "id":"ed22c964.b49a28",
236 "xml":"<outcome value='not-found'>\n",
239 "x":799.837329864502,
240 "y":931.432332418859,
241 "z":"87a856d9.9ec508",
249 "id":"76a7310d.9d0cc",
252 "xml":"<outcome value='failure'>\n",
255 "x":790.8373794555664,
256 "y":899.9323581680655,
257 "z":"87a856d9.9ec508",
265 "id":"503c908d.2e343",
268 "xml":"<outcome value='success'>\n",
271 "x":794.5874176025391,
272 "y":870.2894630432129,
273 "z":"87a856d9.9ec508",
281 "id":"b1122f4f.ea076",
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":960.5874176025391,
287 "y":900.6823820099235,
288 "z":"87a856d9.9ec508",
294 "id":"55b821dc.c9096",
296 "name":"block: atomic",
297 "xml":"<block atomic=\"true\">\n",
301 "x":959.8148460388184,
302 "y":524.7672016620636,
303 "z":"87a856d9.9ec508",
312 "id":"2d8e02e3.cf0fae",
314 "name":"switch brg length",
315 "xml":"<switch test='`$mdsal-ar.brg-allotted-resource_length`'>\n",
318 "x":1205.6720924377441,
319 "y":559.052964925766,
320 "z":"87a856d9.9ec508",
328 "id":"fd01ce34.5cc7e",
331 "xml":"<outcome value='1'>\n",
334 "x":1396.6720962524414,
335 "y":559.0529625415802,
336 "z":"87a856d9.9ec508",
344 "id":"cdc77865.0b0c78",
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":1796.5292320251465,
350 "y":559.6243867874146,
351 "z":"87a856d9.9ec508",
357 "id":"cd19d423.804d98",
359 "name":"block: atomic",
360 "xml":"<block atomic='true'>\n",
364 "x":1567.5290794372559,
365 "y":559.6244316101074,
366 "z":"87a856d9.9ec508",
376 "id":"a7b33ed0.43bdb",
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":1794.5294761657715,
382 "y":627.0529508590698,
383 "z":"87a856d9.9ec508",
389 "id":"3e38b8c9.4b9918",
391 "name":"GET brg-allotted-resource from mdsal",
394 "x":546.8148155212402,
395 "y":488.7671926021576,
396 "z":"87a856d9.9ec508",
402 "id":"67f4311d.5bfe6",
404 "name":"switch order-status",
405 "xml":"<switch test='`$brg-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
408 "x":1804.52925491333,
409 "y":592.6243848800659,
410 "z":"87a856d9.9ec508",
419 "id":"95019c7b.0ff8c",
421 "name":"outcome Created",
422 "xml":"<outcome value='Created'>\n",
425 "x":2016.1292114257812,
426 "y":553.6243848800659,
427 "z":"87a856d9.9ec508",
435 "id":"35eeaddc.1e3b72",
437 "name":"outcome Other",
438 "xml":"<outcome value='Other'>\n",
441 "x":2041.8435859680176,
442 "y":589.052975654602,
443 "z":"87a856d9.9ec508",
451 "id":"44d6b29d.d0815c",
453 "name":"Set allotted-resource-identifiers",
456 "x":502.33863830566406,
457 "y":579.3386459350586,
458 "z":"87a856d9.9ec508",
464 "id":"c6e86370.775dc",
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":1285.3864250183105,
470 "y":524.7672936916351,
471 "z":"87a856d9.9ec508",
477 "id":"d0fcda95.b5ded8",
479 "name":"Create urls for restapi",
482 "x":457.9576606750488,
483 "y":393.6243562698364,
484 "z":"87a856d9.9ec508",
490 "id":"fd568606.5069e8",
497 "x":936.2433853149414,
498 "y":866.481632232666,
499 "z":"87a856d9.9ec508",
507 "id":"65762b87.da2b54",
509 "name":"TO DO: vnf/put parent",
512 "x":460.2433776855469,
513 "y":767.1481952667236,
514 "z":"87a856d9.9ec508",
520 "id":"eaaae4f9.51d728",
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":444.24338150024414,
527 "y":696.4815549850464,
528 "z":"87a856d9.9ec508",
536 "id":"82115602.4aadf8",
539 "xml":"<outcome value='Other'>\n",
542 "x":778.5766868591309,
543 "y":560.4814250469208,
544 "z":"87a856d9.9ec508",
552 "id":"9a00f006.cbb78",
554 "name":"block: atomic",
555 "xml":"<block atomic=\"true\">\n",
559 "x":958.5766372680664,
560 "y":561.1479756832123,
561 "z":"87a856d9.9ec508",
569 "id":"b2c6bab8.1fd358",
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":427.24342346191406,
575 "y":616.1481666564941,
576 "z":"87a856d9.9ec508",
582 "id":"d7fd4783.cc90d8",
589 "x":2230.5997276306152,
590 "y":555.0000190734863,
591 "z":"87a856d9.9ec508",
599 "id":"718e3f93.cd459",
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":487.85716247558594,
606 "y":800.2380628585815,
607 "z":"87a856d9.9ec508",
616 "id":"6bf804a4.c0a48c",
619 "xml":"<outcome value='failure'>\n",
622 "x":743.6190567016602,
623 "y":783.1905598640442,
624 "z":"87a856d9.9ec508",
632 "id":"418532c6.6b556c",
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":910.142936706543,
638 "y":794.8096308708191,
639 "z":"87a856d9.9ec508",
645 "id":"138a867a.df171a",
648 "xml":"<outcome value='not-found'>\n",
651 "x":750.7143440246582,
652 "y":815.9525275230408,
653 "z":"87a856d9.9ec508",
661 "id":"f965b29a.1efa5",
663 "name":"execute RestApiCallNode - setup BRG 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.brg.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":578.3332977294922,
668 "y":1116.6665744781494,
669 "z":"87a856d9.9ec508",
679 "id":"df90cb56.a03868",
682 "xml":"<outcome value='not-found'>\n",
686 "y":1212.9981907829642,
687 "z":"87a856d9.9ec508",
695 "id":"7baef153.70ea4",
698 "xml":"<outcome value='failure'>\n",
701 "x":899.6414279937744,
702 "y":1181.4982165321708,
703 "z":"87a856d9.9ec508",
711 "id":"5f9ed08a.45811",
714 "xml":"<outcome value='success'>\n",
717 "x":903.3914661407471,
718 "y":1151.8553214073181,
719 "z":"87a856d9.9ec508",
727 "id":"4be7e5a3.743f0c",
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":1069.391466140747,
733 "y":1182.2482403740287,
734 "z":"87a856d9.9ec508",
740 "id":"be0bec1a.41ef9",
747 "x":1045.0474338531494,
748 "y":1148.0474905967712,
749 "z":"87a856d9.9ec508",
757 "id":"16a55bb0.8c20f4",
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.brg.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":598.3334350585938,
764 "y":1276.6667137145996,
765 "z":"87a856d9.9ec508",
775 "id":"4f278bf0.7edd54",
778 "xml":"<outcome value='not-found'>\n",
781 "x":898.6414394378662,
782 "y":1412.9982127174735,
783 "z":"87a856d9.9ec508",
791 "id":"6114a132.9f3ff",
794 "xml":"<outcome value='failure'>\n",
797 "x":889.6414890289307,
798 "y":1381.49823846668,
799 "z":"87a856d9.9ec508",
807 "id":"14cdadf1.ca4582",
810 "xml":"<outcome value='success'>\n",
813 "x":893.3915271759033,
814 "y":1351.8553433418274,
815 "z":"87a856d9.9ec508",
823 "id":"a55fd1dd.4e4de",
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":1059.3915271759033,
829 "y":1382.248262308538,
830 "z":"87a856d9.9ec508",
836 "id":"ad02893c.a5fb98",
843 "x":1035.0474948883057,
844 "y":1348.0475125312805,
845 "z":"87a856d9.9ec508",
853 "id":"d3a78d9e.83f7f",
855 "name":"set BRG VXLAN Tunnel Port Props",
856 "xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`'vxlanTun' + $brg-ar.allotted-resource-id` \" />\n<parameter name='tmp.tunnel-dest-ip' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vgmux-bearer-ip` \" />\n<parameter name='tmp.tunnel-src-ip' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.brg-wan-ip-address` \" />\n<parameter name='tmp.tunnel-vni' value=\"`$brg-ar.allotted-resource-data.allotted-resource-operation-information.brg-request-input.vni` \" />",
858 "x":509.44446563720703,
859 "y":986.6668643951416,
860 "z":"87a856d9.9ec508",
866 "id":"ca99974a.a9c178",
868 "name":"generate brg-vpp-honeycomb url",
869 "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.brg-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":502.77777099609375,
873 "y":1043.3333501815796,
874 "z":"87a856d9.9ec508",
882 "id":"aa97b18b.1226d",
884 "name":"generate honeycomb-url",
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":476.11109924316406,
889 "y":933.3332643508911,
890 "z":"87a856d9.9ec508",
898 "id":"cdf3b3de.27f5e",
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":502.7777557373047,
904 "y":1196.666582584381,
905 "z":"87a856d9.9ec508",