3 "id":"39656334.a3e8bc",
17 "id":"641071ac.34ce3",
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":263.7380790710449,
26 "y":185.95239067077637,
27 "z":"4a786afb.312ac4",
35 "id":"67611285.46e87c",
37 "name":"tunnelxconn-topology-operation-create",
38 "xml":"<method rpc='tunnelxconn-topology-operation-create' mode='sync'>\n",
41 "x":309.65485763549805,
42 "y":221.19044589996338,
43 "z":"4a786afb.312ac4",
51 "id":"a134c0c3.36b48",
53 "name":"block : atomic",
54 "xml":"<block atomic=\"true\">",
58 "x":217.97619247436523,
59 "y":364.5237879753113,
60 "z":"4a786afb.312ac4",
83 "id":"fd58bf7f.5b2af",
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":471.16680908203125,
89 "y":1489.5479049682617,
90 "z":"4a786afb.312ac4",
96 "id":"afc9ff4c.06763",
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='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
101 "x":499.9207229614258,
102 "y":1453.6704511642456,
103 "z":"4a786afb.312ac4",
109 "id":"522f9134.9df63",
111 "name":"set allotted-resource-oper-status",
112 "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tunnelxconn-topology-operation-input.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
114 "x":524.2542190551758,
115 "y":745.0514001846313,
116 "z":"4a786afb.312ac4",
122 "id":"3dfd770d.60f198",
124 "name":"set tmp.ar.self-link",
125 "xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology/'` \" />\n\n",
127 "x":480.23806381225586,
128 "y":338.33332538604736,
129 "z":"4a786afb.312ac4",
135 "id":"fc1a7e2b.aacb3",
137 "name":"set tmp.ar.allotted-resource-id,etc",
138 "xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
140 "x":527.4973258972168,
141 "y":304.59259128570557,
142 "z":"4a786afb.312ac4",
148 "id":"9fda81c2.e3d96",
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":486.4934196472168,
155 "y":374.23152446746826,
156 "z":"4a786afb.312ac4",
164 "id":"181809a4.09e046",
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":549.0187530517578,
171 "y":535.4594917297363,
172 "z":"4a786afb.312ac4",
181 "id":"9068ce9.11d8a3",
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.tx-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":514.5648536682129,
188 "y":434.0172290802002,
189 "z":"4a786afb.312ac4",
197 "id":"72f658fd.fd3218",
200 "xml":"<outcome value='success'>\n",
203 "x":806.3148918151855,
204 "y":534.2672522068024,
205 "z":"4a786afb.312ac4",
213 "id":"93a91e68.a5dae",
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.tx.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":557.0293121337891,
220 "y":888.4341316223145,
221 "z":"4a786afb.312ac4",
231 "id":"fe564e37.78d35",
234 "xml":"<outcome value='not-found'>\n",
237 "x":825.3373527526855,
238 "y":949.432451248169,
239 "z":"4a786afb.312ac4",
247 "id":"68c9b814.ae8428",
250 "xml":"<outcome value='failure'>\n",
253 "x":818.3373794555664,
254 "y":909.9323581680655,
255 "z":"4a786afb.312ac4",
263 "id":"20a9be75.8d72f2",
266 "xml":"<outcome value='success'>\n",
269 "x":822.0874176025391,
270 "y":880.2894630432129,
271 "z":"4a786afb.312ac4",
279 "id":"afa4d00a.d44e",
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 tunnelxconn-allotted-resource\" />\n",
284 "x":988.0874176025391,
285 "y":910.6823820099235,
286 "z":"4a786afb.312ac4",
292 "id":"35db9fa9.7487b",
294 "name":"block: atomic",
295 "xml":"<block atomic=\"true\">\n",
299 "x":987.3148460388184,
300 "y":534.7672016620636,
301 "z":"4a786afb.312ac4",
310 "id":"b2595262.3530d",
312 "name":"switch tx length",
313 "xml":"<switch test='`$mdsal-ar.tunnelxconn-allotted-resource_length`'>\n",
316 "x":1233.1720924377441,
317 "y":569.052964925766,
318 "z":"4a786afb.312ac4",
326 "id":"decde441.1f9868",
329 "xml":"<outcome value='1'>\n",
332 "x":1424.1720962524414,
333 "y":569.0529625415802,
334 "z":"4a786afb.312ac4",
342 "id":"779744db.feb39c",
344 "name":"set tx-ar from get",
345 "xml":"<set>\n<parameter name='tx-ar.' value='$mdsal-ar.tunnelxconn-allotted-resource[0].' />\n",
347 "x":1824.0292320251465,
348 "y":569.6243867874146,
349 "z":"4a786afb.312ac4",
355 "id":"343ba2be.ce917e",
357 "name":"block: atomic",
358 "xml":"<block atomic='true'>\n",
362 "x":1595.0290794372559,
363 "y":569.6244316101074,
364 "z":"4a786afb.312ac4",
374 "id":"a99c0b17.0d6ea8",
376 "name":"set oper-status",
377 "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tx-ar.allotted-resource-status.rpc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
379 "x":1822.0294761657715,
380 "y":637.0529508590698,
381 "z":"4a786afb.312ac4",
387 "id":"ace3a58f.952468",
389 "name":"GET tunnelxconn-allotted-resource from mdsal",
392 "x":574.3148155212402,
393 "y":498.7671926021576,
394 "z":"4a786afb.312ac4",
400 "id":"e744f8ef.172ca8",
402 "name":"switch order-status",
403 "xml":"<switch test='`$tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
406 "x":1832.02925491333,
407 "y":602.6243848800659,
408 "z":"4a786afb.312ac4",
417 "id":"6bd5626e.dd743c",
419 "name":"outcome PendingCreate",
420 "xml":"<outcome value='PendingCreate'>\n",
423 "x":2043.6292114257812,
424 "y":563.6243848800659,
425 "z":"4a786afb.312ac4",
433 "id":"f59cb4de.fb1958",
435 "name":"outcome Other",
436 "xml":"<outcome value='Other'>\n",
439 "x":2069.3435859680176,
440 "y":599.052975654602,
441 "z":"4a786afb.312ac4",
449 "id":"899fdbf4.ba87a8",
451 "name":"Set allotted-resource-identifiers",
454 "x":529.8386383056641,
455 "y":589.3386459350586,
456 "z":"4a786afb.312ac4",
462 "id":"d20db31.4b44d5",
464 "name":"save backup copy of mdsal-ar for rollback",
465 "xml":"<set>\n<parameter name='bk-tx-ar' value='$mdsal-ar.' />\n",
467 "x":1312.8864250183105,
468 "y":534.7672936916351,
469 "z":"4a786afb.312ac4",
475 "id":"66a8da44.6d23a4",
477 "name":"Create urls for restapi",
480 "x":485.4576606750488,
481 "y":403.6243562698364,
482 "z":"4a786afb.312ac4",
488 "id":"33071dcd.5083e2",
495 "x":963.7433853149414,
496 "y":876.481632232666,
497 "z":"4a786afb.312ac4",
505 "id":"79d0ecaa.1db8b4",
507 "name":"TO DO: vnf/put parent",
510 "x":497.7433776855469,
511 "y":810.4815540313718,
512 "z":"4a786afb.312ac4",
518 "id":"21a50431.15138c",
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":471.74338150024414,
525 "y":706.4815549850464,
526 "z":"4a786afb.312ac4",
534 "id":"8b2321c4.4a2dd",
537 "xml":"<outcome value='Other'>\n",
540 "x":806.0766868591309,
541 "y":570.4814250469208,
542 "z":"4a786afb.312ac4",
550 "id":"626d5dea.144114",
552 "name":"block: atomic",
553 "xml":"<block atomic=\"true\">\n",
557 "x":986.0766372680664,
558 "y":571.1479756832123,
559 "z":"4a786afb.312ac4",
567 "id":"a51f265e.f89ce8",
570 "xml":"<set>\n<parameter name='tx-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='tx-ar.allotted-resource-status.action' value=\"`$tunnelxconn-topology-operation-input.request-information.request-action` \" />\n<parameter name='tx-ar.allotted-resource-status.rpc-name' value=\"tunnelxconn-topology-operation\" />\n<parameter name='tx-ar.allotted-resource-status.rpc-action' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$tunnelxconn-topology-operation-input.request-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$tunnelxconn-topology-operation-input.service-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.' value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.` \" />",
572 "x":454.74342346191406,
573 "y":626.1481666564941,
574 "z":"4a786afb.312ac4",
580 "id":"9ce4e0bb.186ca",
587 "x":2258.0997276306152,
588 "y":565.0000190734863,
589 "z":"4a786afb.312ac4",
597 "id":"81851f96.4bd83",
599 "name":"execute RestApiCallNode - setup vG vxlan tunnel port",
600 "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",
603 "x":588.3330688476562,
604 "y":1214.451904296875,
605 "z":"4a786afb.312ac4",
615 "id":"51118cd5.ce58d4",
618 "xml":"<outcome value='not-found'>\n",
621 "x":930.6411418914795,
622 "y":1252.7834300026298,
623 "z":"4a786afb.312ac4",
631 "id":"98768673.92b068",
634 "xml":"<outcome value='failure'>\n",
637 "x":921.641191482544,
638 "y":1221.2834557518363,
639 "z":"4a786afb.312ac4",
647 "id":"813a7874.8439f8",
650 "xml":"<outcome value='success'>\n",
653 "x":925.3912296295166,
654 "y":1191.6405606269836,
655 "z":"4a786afb.312ac4",
663 "id":"896732c2.335fd",
664 "type":"returnFailure",
665 "name":"return failure",
666 "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",
668 "x":1091.3912296295166,
669 "y":1222.0334795936942,
670 "z":"4a786afb.312ac4",
676 "id":"85bfd8ec.a6d9d8",
683 "x":1067.047197341919,
684 "y":1187.8327298164368,
685 "z":"4a786afb.312ac4",
693 "id":"e2f23076.04596",
695 "name":"set vgMUX VXLAN Tunnel Port vG Props",
696 "xml":"<set>\n<parameter name='tmp.tunnel-name' value=\"`'vxlanTun' + $tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vg-ip` \" />\n<parameter name='tmp.tunnel-dest-ip' value=\"`$tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vgmux-bearer-ip` \" />\n<parameter name='tmp.tunnel-src-ip' value=\"`$tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vg-ip` \" />\n<parameter name='tmp.tunnel-vni' value=\"`$tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vni` \" />",
698 "x":553.444221496582,
699 "y":1084.4521808624268,
700 "z":"4a786afb.312ac4",
706 "id":"742c0c13.6fb084",
708 "name":"generate full vgMUX vpp-honeycomb url",
709 "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",
712 "x":547.4442138671875,
713 "y":1141.1186981201172,
714 "z":"4a786afb.312ac4",
722 "id":"5c0e33aa.afc40c",
724 "name":"generate honeycomb-url to vgMUX",
725 "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=\"`$tx-ar.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.vgmux-bearer-ip`\"/>\n",
728 "x":534.7775421142578,
729 "y":1032.7852993011475,
730 "z":"4a786afb.312ac4",
738 "id":"e1d29d16.5b99d",
740 "name":"execute RestApiCallNode - setup vG vxlan tunnel xconnect",
741 "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.vpp.xconnect.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",
746 "z":"4a786afb.312ac4",
756 "id":"6bd302d3.f65bbc",
759 "xml":"<outcome value='not-found'>\n",
762 "x":934.3080806732178,
763 "y":1370.331535242498,
764 "z":"4a786afb.312ac4",
772 "id":"eaa38ec5.5a68b",
775 "xml":"<outcome value='failure'>\n",
778 "x":925.3081302642822,
779 "y":1338.8315609917045,
780 "z":"4a786afb.312ac4",
788 "id":"144162f6.ac5d4d",
791 "xml":"<outcome value='success'>\n",
794 "x":929.0581684112549,
795 "y":1309.1886658668518,
796 "z":"4a786afb.312ac4",
804 "id":"fdbbce24.3b93",
805 "type":"returnFailure",
806 "name":"return failure",
807 "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",
809 "x":1095.0581684112549,
810 "y":1339.5815848335624,
811 "z":"4a786afb.312ac4",
817 "id":"b6787459.fbc298",
824 "x":1070.7141361236572,
825 "y":1305.380835056305,
826 "z":"4a786afb.312ac4",