3 "id": "d3e08805.9611b8",
9 "z": "c5494b7.49969b8",
17 "id": "f7dace5a.d2c9a",
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": 214.2856903076172,
26 "y": 73.23810863494873,
27 "z": "c5494b7.49969b8",
35 "id": "83935545.c771a8",
37 "name": "method sdwan-vnf-topology-operation-wanport-activate",
38 "xml": "<method rpc='sdwan-vnf-topology-operation-wanport-activate' mode='sync'>\n",
41 "x": 217.42861938476562,
42 "y": 158.00003242492676,
43 "z": "c5494b7.49969b8",
51 "id": "5c798a65.20eb74",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
57 "x": 280.66675567626953,
58 "y": 763.666989326477,
59 "z": "c5494b7.49969b8",
87 "id": "71d2a775.99ccc8",
88 "type": "returnSuccess",
89 "name": "return success",
90 "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",
92 "x": 605.3345069885254,
93 "y": 1561.334532737732,
94 "z": "c5494b7.49969b8",
98 "id": "7e3b6576.8de5bc",
100 "name": "execute RestApiCallNode device port create",
101 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-port.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/ports'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"portResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
104 "x": 695.3341102600098,
105 "y": 758.889497756958,
106 "z": "c5494b7.49969b8",
115 "id": "68948952.c50068",
118 "xml": "<outcome value='success'>\n",
121 "x": 944.3341693878174,
122 "y": 772.8897037506104,
123 "z": "c5494b7.49969b8",
131 "id": "b1429997.066598",
134 "xml": "<outcome value='failure'>\n",
137 "x": 944.3341693878174,
138 "y": 734.8895392417908,
139 "z": "c5494b7.49969b8",
147 "id": "3a88421d.260dee",
148 "type": "returnFailure",
149 "name": "return failure",
150 "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 executing Create device port rest api\" />\n",
152 "x": 1088.3345031738281,
153 "y": 733.8895387649536,
154 "z": "c5494b7.49969b8",
158 "id": "4a0bff89.5f70e",
160 "name": "block : atomic",
161 "xml": "<block atomic=\"true\">",
165 "x": 1091.3341808319092,
166 "y": 773.8895425796509,
167 "z": "c5494b7.49969b8",
173 "id": "e9a4c8c8.051068",
175 "name": "execute RestApiCallNode get transport network info",
176 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"get\"/>\n<parameter name=\"responsePrefix\" value=\"transportNetworksResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
179 "x": 718.0004615783691,
180 "y": 938.0006031990051,
181 "z": "c5494b7.49969b8",
190 "id": "20fab8b2.cf42c8",
192 "name": "execute RestApiCallNode wan port create",
193 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-wan-port.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/transport-network-ports'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"wanPortResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
196 "x": 691.0005531311035,
197 "y": 1175.000651359558,
198 "z": "c5494b7.49969b8",
207 "id": "86f28d21.8ff7e",
208 "type": "switchNode",
209 "name": "switch service-data.vnfs.vnf_length",
210 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
213 "x": 677.0209350585938,
214 "y": 102.02091217041016,
215 "z": "c5494b7.49969b8",
225 "id": "63db3e02.79edb",
228 "xml": "<outcome value=''>\n",
231 "x": 929.0209693908691,
232 "y": 103.02099323272705,
233 "z": "c5494b7.49969b8",
241 "id": "9de50dea.b6dd6",
242 "type": "returnFailure",
243 "name": "return failure",
244 "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
246 "x": 1090.7987174987793,
247 "y": 82.90994024276733,
248 "z": "c5494b7.49969b8",
252 "id": "4a9b0d37.8bb004",
255 "xml": "<outcome value='Other'>\n",
258 "x": 922.0213775634766,
259 "y": 136.02099704742432,
260 "z": "c5494b7.49969b8",
268 "id": "debc8f64.af94a",
270 "name": "block : atomic",
271 "xml": "<block atomic=\"true\">",
274 "x": 945.2908935546875,
275 "y": 234.57559204101562,
276 "z": "c5494b7.49969b8",
288 "id": "7c8738b1.877ca8",
290 "name": "for vidx..service-data.vnfs.vnf_length[]",
291 "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
294 "x": 1225.3070373535156,
295 "y": 128.44955825805664,
296 "z": "c5494b7.49969b8",
304 "id": "943a7232.2883e",
305 "type": "switchNode",
306 "name": "switch tmp.vidx ",
307 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
310 "x": 1151.608341217041,
311 "y": 274.43279361724854,
312 "z": "c5494b7.49969b8",
320 "id": "ea056417.1dc458",
323 "xml": "<outcome value=''>\n",
326 "x": 1299.0369834899902,
327 "y": 274.0042037963867,
328 "z": "c5494b7.49969b8",
336 "id": "8f939166.1a702",
337 "type": "switchNode",
338 "name": "switch vnfid found",
339 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
342 "x": 1598.7362670898438,
343 "y": 127.69972038269043,
344 "z": "c5494b7.49969b8",
352 "id": "b740de23.ab078",
353 "type": "returnFailure",
354 "name": "return failure",
355 "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
357 "x": 1448.4657096862793,
358 "y": 275.14712142944336,
359 "z": "c5494b7.49969b8",
363 "id": "32b14615.3ef46a",
364 "type": "outcomeTrue",
366 "xml": "<outcome value='true'>\n",
369 "x": 1753.6882591247559,
370 "y": 128.59239959716797,
371 "z": "c5494b7.49969b8",
379 "id": "bf24dea8.ee4f4",
381 "name": "set tmp.vidx and ctx.vnf-data",
382 "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
384 "x": 2161.220344543457,
385 "y": 38.34245777130127,
386 "z": "c5494b7.49969b8",
390 "id": "a6fa95c8.c66c58",
393 "xml": "<outcome value='0'>\n",
396 "x": 930.9897193908691,
397 "y": 66.98967933654785,
398 "z": "c5494b7.49969b8",
406 "id": "833ee131.2bc86",
408 "name": "set device PortId to service data",
409 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].name' value='devicePortId' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$prop.wan.devicePortId`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1`' />\n\n\n\n\n",
411 "x": 657.9908981323242,
412 "y": 1297.991030216217,
413 "z": "c5494b7.49969b8",
417 "id": "3f244f2b.bb62c",
419 "name": "Get siteId from site resource created for this service",
422 "x": 702.9899826049805,
423 "y": 287.32321643829346,
424 "z": "c5494b7.49969b8",
428 "id": "c2d9f7f0.e01aa8",
435 "x": 1444.6566696166992,
436 "y": 127.98963832855225,
437 "z": "c5494b7.49969b8",
445 "id": "1d544933.c7e8c7",
447 "name": "set vnfId and vnf-object-path",
448 "xml": "<set>\n<parameter name='vnfId' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $vnf-topology-operation-input.service-information.service-instance-id + '/service-data/vnfs/vnf/' + $vnf-topology-operation-input.vnf-information.vnf-id + '/vnf-data/'` \" />",
450 "x": 638.5462112426758,
451 "y": 1440.2129440307617,
452 "z": "c5494b7.49969b8",
456 "id": "50fcdc11.a23244",
458 "name": "set vnf-level-oper-status to Active",
459 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",
461 "x": 655.9906730651855,
462 "y": 1479.990779876709,
463 "z": "c5494b7.49969b8",
467 "id": "24dcefec.86843",
469 "name": "update SDWAN wan port instance configuration in AAI",
470 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n key='wan-port-config.wan-port-config-id = $vnf-topology-operation-input.vnf-information.vnf-id' >\n<parameter name=\"wan-port-config-id\" value=\"`$vnf-topology-operation-input.vnf-information.vnf-id`\" />\n<parameter name='operational-status' value='Active' />\n<parameter name='device-port-id' value='`$prop.wan.devicePortId`' />\n<parameter name='wan-port-id' value='`$prop.wan.wanPortId`' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n",
473 "x": 718.6535987854004,
474 "y": 1519.1382417678833,
475 "z": "c5494b7.49969b8",
481 "id": "d2796204.52637",
483 "name": "set prop.wan.transportNetworkId",
484 "xml": "<set>\n<parameter name='prop.wan.transportNetworkId' value='`$transportNetworksResp.data.transportNetworks[$tidx].id`' />\n",
486 "x": 1472.991542816162,
487 "y": 1014.9906749725342,
488 "z": "c5494b7.49969b8",
492 "id": "47d46647.d7f098",
494 "name": "for loop sidx - Get siteId from servicedata",
495 "xml": "<for index=\"sidx\" start=\"0\" end=\"`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n \n \n",
498 "x": 682.9900054931641,
499 "y": 437.9898729324341,
500 "z": "c5494b7.49969b8",
508 "id": "86accd11.8f202",
509 "type": "switchNode",
510 "name": "switch siteId",
511 "xml": "<switch test=\"`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'siteId'`\">\n",
514 "x": 1113.990333557129,
515 "y": 438.99000358581543,
516 "z": "c5494b7.49969b8",
524 "id": "381535ee.b503aa",
525 "type": "outcomeTrue",
527 "xml": "<outcome value='true'>\n",
530 "x": 1251.9907913208008,
531 "y": 436.98998832702637,
532 "z": "c5494b7.49969b8",
540 "id": "c7f6c6b6.dd3458",
542 "name": "set prop.wan.siteId",
543 "xml": "<set>\n<parameter name='prop.wan.siteId' value='`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].value`' />\n\n\n",
545 "x": 1415.9908256530762,
546 "y": 438.58984184265137,
547 "z": "c5494b7.49969b8",
551 "id": "9ac8f49c.624348",
553 "name": "execute split ip and mask",
554 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.wan.ipAddress`'/>\n<parameter name=\"regex\" value=\"/\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"ipandMask\"/>\n",
557 "x": 641.9903297424316,
558 "y": 1083.3236436843872,
559 "z": "c5494b7.49969b8",
568 "id": "9814af82.14df1",
571 "xml": "<outcome value='success'>\n",
574 "x": 842.990348815918,
575 "y": 1061.3236351013184,
576 "z": "c5494b7.49969b8",
584 "id": "341a4e7a.2ecb22",
587 "xml": "<outcome value='failure'>\n",
590 "x": 842.9903526306152,
591 "y": 1102.3236389160156,
592 "z": "c5494b7.49969b8",
600 "id": "5982d587.5c09fc",
602 "name": "set ipAddress prefixLength",
603 "xml": "<set>\n<parameter name='prop.wan.ip-address' value='`$ipandMask[0]`' />\n<parameter name='prop.wan.prefixLength' value='`$ipandMask[1]`' />",
605 "x": 1039.9903678894043,
606 "y": 1059.3236351013184,
607 "z": "c5494b7.49969b8",
611 "id": "4b6a103e.cf1d",
612 "type": "returnFailure",
613 "name": "return failure",
614 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
616 "x": 997.9903602600098,
617 "y": 1099.3236379623413,
618 "z": "c5494b7.49969b8",
622 "id": "c179291d.00bde8",
623 "type": "get-resource",
624 "name": "get-resource esr-thirdparty-sdnc",
625 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = SDWANController AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
628 "x": 657.4901733398438,
629 "y": 535.9899291992188,
630 "z": "c5494b7.49969b8",
640 "id": "53c5bb3d.7c4004",
643 "xml": "<outcome value='success'>\n",
646 "x": 889.4902572631836,
647 "y": 499.98995208740234,
648 "z": "c5494b7.49969b8",
656 "id": "c92ee85c.183de8",
659 "xml": "<outcome value='not-found'>\n",
662 "x": 891.9811401367188,
663 "y": 535.5639886856079,
664 "z": "c5494b7.49969b8",
672 "id": "7eccd819.0a52e8",
675 "xml": "<outcome value='Other'>\n",
678 "x": 887.3141479492188,
679 "y": 571.8973474502563,
680 "z": "c5494b7.49969b8",
688 "id": "47394338.72386c",
689 "type": "returnFailure",
690 "name": "return failure",
691 "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=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
693 "x": 1041.0866394042969,
694 "y": 569.3364343643188,
695 "z": "c5494b7.49969b8",
699 "id": "a9b78a3a.3499a8",
700 "type": "returnFailure",
701 "name": "return failure",
702 "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=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
704 "x": 1037.5525360107422,
705 "y": 533.8496761322021,
706 "z": "c5494b7.49969b8",
710 "id": "2956fb6f.87c064",
712 "name": "set controller data",
713 "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
715 "x": 1049.9903678894043,
716 "y": 497.9898920059204,
717 "z": "c5494b7.49969b8",
721 "id": "a2033bb8.c74a28",
724 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"sdwan-wanport-vnf-topology-operation-activate\"/>\n<parameter name=\"field3\" value=\"SDWAN-Activate\"/>\n",
727 "x": 595.0000953674316,
728 "y": 158.00003004074097,
729 "z": "c5494b7.49969b8",
735 "id": "f2405d05.22028",
737 "name": "execute Properties",
738 "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",
741 "x": 631.3022193908691,
742 "y": 193.00007390975952,
743 "z": "c5494b7.49969b8",
749 "id": "c25408f5.164608",
751 "name": "execute RestApiCallNode Get token",
752 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
755 "x": 672.0003051757812,
756 "y": 623.6669311523438,
757 "z": "c5494b7.49969b8",
766 "id": "5b62dba.23a6724",
769 "xml": "<outcome value='success'>\n",
772 "x": 907.000431060791,
773 "y": 609.666919708252,
774 "z": "c5494b7.49969b8",
782 "id": "c924c712.8a8378",
784 "name": "set token-id",
785 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
787 "x": 1049.0004386901855,
788 "y": 608.6669206619263,
789 "z": "c5494b7.49969b8",
793 "id": "8c376d8d.f2769",
794 "type": "returnFailure",
795 "name": "return failure",
796 "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 executing get token rest api\" />\n",
798 "x": 1055.0004386901855,
799 "y": 646.0599088668823,
800 "z": "c5494b7.49969b8",
804 "id": "b4713e29.c43a8",
807 "xml": "<outcome value='failure'>\n",
810 "x": 906.250431060791,
811 "y": 645.3098268508911,
812 "z": "c5494b7.49969b8",
820 "id": "332a8bf5.782ff4",
821 "type": "switchNode",
822 "name": "switch transportNetworkName same",
823 "xml": "<switch test=\"`$transportNetworksResp.data.transportNetworks[$tidx].name == $prop.wan.transportNetworkName`\">\n\n",
826 "x": 1112.0011558532715,
827 "y": 972.6670732498169,
828 "z": "c5494b7.49969b8",
836 "id": "e5f6f7b4.354b98",
837 "type": "outcomeTrue",
839 "xml": "<outcome value='true'>\n",
842 "x": 1325.0006065368652,
843 "y": 972.6669912338257,
844 "z": "c5494b7.49969b8",
852 "id": "7105dd86.af6c34",
853 "type": "switchNode",
854 "name": "switch ActivateSDWANDeviceInstance",
855 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n \n \n\n",
858 "x": 1539.3336029052734,
859 "y": 205.00005722045898,
860 "z": "c5494b7.49969b8",
868 "id": "dd40279f.8eeea8",
869 "type": "outcomeTrue",
871 "xml": "<outcome value='true'>\n",
874 "x": 1762.3336124420166,
875 "y": 205.00005722045898,
876 "z": "c5494b7.49969b8",
884 "id": "c1942dca.f90c1",
886 "name": "set tmp.devicevidx",
887 "xml": "<set>\n<parameter name='tmp.devicevidx' value='`$vidx`' />\n\n",
889 "x": 2727.3329467773438,
890 "y": 636.0000820159912,
891 "z": "c5494b7.49969b8",
895 "id": "53d7471c.3e1cc8",
896 "type": "switchNode",
897 "name": "switch tmp.devicevidx",
898 "xml": "<switch test=\"`$tmp.devicevidx`\">\n\n",
901 "x": 1192.3335304260254,
902 "y": 363.0001196861267,
903 "z": "c5494b7.49969b8",
911 "id": "4602555f.435cec",
914 "xml": "<outcome value=''>\n",
917 "x": 1376.7620964050293,
918 "y": 363.57155656814575,
919 "z": "c5494b7.49969b8",
927 "id": "5520e03f.96b18",
928 "type": "returnFailure",
929 "name": "return failure",
930 "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=\"ActivateSDWANDeviceInstance not found in service-data\" />\n",
932 "x": 1517.1908378601074,
933 "y": 363.71443605422974,
934 "z": "c5494b7.49969b8",
938 "id": "6f8cf23f.0209dc",
940 "name": "Get deviceId from device resource created for this service",
943 "x": 2176.6668853759766,
944 "y": 302.33333587646484,
945 "z": "c5494b7.49969b8",
949 "id": "489eb82a.f952c8",
951 "name": "for loop didx - Get deviceId from servicedata",
952 "xml": "<for index=\"didx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n \n \n",
955 "x": 2162.667095184326,
956 "y": 225.99997997283936,
957 "z": "c5494b7.49969b8",
965 "id": "b3441b30.aa4ab8",
966 "type": "switchNode",
967 "name": "switch name (DeviceName)",
968 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].name == 'name'`\">\n",
971 "x": 2180.667694091797,
972 "y": 364.0002250671387,
973 "z": "c5494b7.49969b8",
981 "id": "fc0b9b1d.28c708",
982 "type": "outcomeTrue",
984 "xml": "<outcome value='true'>\n",
987 "x": 2382.668186187744,
988 "y": 358.0002851486206,
989 "z": "c5494b7.49969b8",
997 "id": "76cf61ce.029d7",
999 "name": "block : atomic",
1000 "xml": "<block atomic=\"true\">",
1003 "x": 945.0001983642578,
1004 "y": 438.66669750213623,
1005 "z": "c5494b7.49969b8",
1013 "id": "a840f568.e72fe8",
1015 "name": "block : atomic",
1016 "xml": "<block atomic=\"true\">",
1019 "x": 1954.999984741211,
1020 "y": 362.6667261123657,
1021 "z": "c5494b7.49969b8",
1029 "id": "556d9445.4f2e4c",
1030 "type": "switchNode",
1031 "name": "switch deviceId",
1032 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].name == 'deviceId'`\">\n",
1035 "x": 3026.0011444091797,
1036 "y": 576.6670227050781,
1037 "z": "c5494b7.49969b8",
1045 "id": "4439d129.bb0b6",
1046 "type": "outcomeTrue",
1048 "xml": "<outcome value='true'>\n",
1051 "x": 3179.0015144348145,
1052 "y": 577.6670999526978,
1053 "z": "c5494b7.49969b8",
1061 "id": "8f56b9b3.9c5728",
1063 "name": "set prop.wan.deviceId",
1064 "xml": "<set>\n<parameter name='prop.wan.deviceId' value='`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].value`' />\n",
1066 "x": 3348.0021209716797,
1067 "y": 576.2671346664429,
1068 "z": "c5494b7.49969b8",
1072 "id": "12149667.72f80a",
1074 "name": "block : atomic",
1075 "xml": "<block atomic=\"true\">",
1078 "x": 1903.6669311523438,
1079 "y": 227.00007724761963,
1080 "z": "c5494b7.49969b8",
1088 "id": "b4f179c9.a214f8",
1090 "name": "block : atomic",
1091 "xml": "<block atomic=\"true\">",
1094 "x": 2201.0012283325195,
1095 "y": 441.0002546310425,
1096 "z": "c5494b7.49969b8",
1104 "id": "3c83342b.bff06c",
1105 "type": "outcomeTrue",
1107 "xml": "<outcome value='true'>\n",
1110 "x": 2590.0019340515137,
1111 "y": 444.00037956237793,
1112 "z": "c5494b7.49969b8",
1120 "id": "d8c80e8.07446f",
1122 "name": "block : atomic",
1123 "xml": "<block atomic=\"true\">",
1126 "x": 1892.3337783813477,
1127 "y": 129.00003337860107,
1128 "z": "c5494b7.49969b8",
1139 "id": "6f1e3f39.5773",
1141 "name": "set prop.wan.wanPortId",
1142 "xml": "<set>\n<parameter name='prop.wan.wanPortId' value='`$wanPortResp.success[0].id`' />\n",
1144 "x": 639.3246231079102,
1145 "y": 1239.6573944091797,
1146 "z": "c5494b7.49969b8",
1150 "id": "37df268d.80523a",
1152 "name": "set prop.wan.devicePortId",
1153 "xml": "<set>\n<parameter name='prop.wan.devicePortId' value='`$portResp.success[0].id`' />\n",
1155 "x": 649.9913177490234,
1156 "y": 820.9906539916992,
1157 "z": "c5494b7.49969b8",
1161 "id": "99c82c97.d67a7",
1163 "name": "Create port",
1166 "x": 597.0000495910645,
1167 "y": 725.3335218429565,
1168 "z": "c5494b7.49969b8",
1172 "id": "5cfea39.096ff5c",
1174 "name": "Get network id",
1177 "x": 648.0001220703125,
1178 "y": 903.3334802985191,
1179 "z": "c5494b7.49969b8",
1183 "id": "d44c9330.7b098",
1185 "name": "Create wan port",
1188 "x": 615.0002059936523,
1189 "y": 1036.3336935043335,
1190 "z": "c5494b7.49969b8",
1194 "id": "317ef84d.a3fa48",
1197 "xml": "<outcome value='failure'>\n",
1200 "x": 977.0001220703125,
1201 "y": 1135.0002393722534,
1202 "z": "c5494b7.49969b8",
1210 "id": "55b035dc.e280bc",
1213 "xml": "<outcome value='success'>\n",
1216 "x": 977.0001182556152,
1217 "y": 1175.0004043579102,
1218 "z": "c5494b7.49969b8",
1226 "id": "9238f861.a33ef8",
1228 "name": "block : atomic",
1229 "xml": "<block atomic=\"true\">",
1233 "x": 1121.0001335144043,
1234 "y": 1174.000241279602,
1235 "z": "c5494b7.49969b8",
1241 "id": "12534eac.cdc831",
1242 "type": "returnFailure",
1243 "name": "return failure",
1244 "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 executing Create wan port rest api\" />\n",
1246 "x": 1119.0004539489746,
1247 "y": 1134.0002393722534,
1248 "z": "c5494b7.49969b8",
1252 "id": "d065ad9e.5a092",
1255 "xml": "<outcome value='failure'>\n",
1258 "x": 1024.0000495910645,
1259 "y": 886.0001783370972,
1260 "z": "c5494b7.49969b8",
1268 "id": "2354042c.5855cc",
1271 "xml": "<outcome value='success'>\n",
1274 "x": 1024.0000457763672,
1275 "y": 926.0003433227539,
1276 "z": "c5494b7.49969b8",
1284 "id": "8ba4e30f.14b38",
1286 "name": "block : atomic",
1287 "xml": "<block atomic=\"true\">",
1291 "x": 1168.0000610351562,
1292 "y": 925.0001802444458,
1293 "z": "c5494b7.49969b8",
1299 "id": "1b98a4a8.664bdb",
1300 "type": "returnFailure",
1301 "name": "return failure",
1302 "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 executing Get transport network info rest api\" />\n",
1304 "x": 1166.0003814697266,
1305 "y": 885.0001783370972,
1306 "z": "c5494b7.49969b8",
1310 "id": "be26bd6d.b6d6a",
1312 "name": "call sdwan-get-wan-param",
1313 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",
1316 "x": 2164.666633605957,
1317 "y": 135.0000762939453,
1318 "z": "c5494b7.49969b8",
1324 "id": "b88755ee.f99b38",
1326 "name": "set vnf-request-input.",
1327 "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
1329 "x": 2133.666633605957,
1330 "y": 85.00009346008301,
1331 "z": "c5494b7.49969b8",
1335 "id": "bb494b87.830e28",
1337 "name": "This is also required for template parameters update",
1340 "x": 2529.0003967285156,
1341 "y": 181.00003623962402,
1342 "z": "c5494b7.49969b8",
1346 "id": "c939644e.f0b858",
1347 "type": "switchNode",
1348 "name": "switch ActivateSiteInstance",
1349 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n \n \n\n",
1352 "x": 1502.0004425048828,
1353 "y": 170.00004959106445,
1354 "z": "c5494b7.49969b8",
1362 "id": "89f80af3.346938",
1363 "type": "outcomeTrue",
1365 "xml": "<outcome value='true'>\n",
1368 "x": 1698.0006256103516,
1369 "y": 171.00004959106445,
1370 "z": "c5494b7.49969b8",
1378 "id": "5dd3893f.4a7ea8",
1380 "name": "set tmp.siteVidx",
1381 "xml": "<set>\n<parameter name='tmp.siteVidx' value='`$vidx`' />\n<parameter name='ctx.site.' value='`$service-data.vnfs.vnf[$vidx].`' />\n\n",
1383 "x": 1883.9999237060547,
1384 "y": 168.00005340576172,
1385 "z": "c5494b7.49969b8",
1389 "id": "13bc1f79.03e581",
1390 "type": "switchNode",
1391 "name": "switch tmp.siteVidx",
1392 "xml": "<switch test=\"`$tmp.siteVidx`\">\n\n",
1395 "x": 1175.6667518615723,
1396 "y": 312.00007009506226,
1397 "z": "c5494b7.49969b8",
1405 "id": "e4930b56.8a59f8",
1408 "xml": "<outcome value=''>\n",
1411 "x": 1350.0954627990723,
1412 "y": 312.5715217590332,
1413 "z": "c5494b7.49969b8",
1421 "id": "a5febd63.c2db7",
1422 "type": "returnFailure",
1423 "name": "return failure",
1424 "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=\"ActivateSiteInstance not found in service-data\" />\n",
1426 "x": 1492.5241813659668,
1427 "y": 311.71438455581665,
1428 "z": "c5494b7.49969b8",
1432 "id": "41b636f7.4605d8",
1433 "type": "switchNode",
1434 "name": "switch deviceName match",
1435 "xml": "<switch test=\"`$prop.wan.deviceName == $service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].value`\">\n\n\n",
1438 "x": 2406.667953491211,
1439 "y": 442.0003185272217,
1440 "z": "c5494b7.49969b8",
1448 "id": "d216e689.2df0f8",
1450 "name": "block : atomic",
1451 "xml": "<block atomic=\"true\">",
1454 "x": 2489.3338928222656,
1455 "y": 516.0001621246338,
1456 "z": "c5494b7.49969b8",
1465 "id": "93f36ff6.faafe",
1467 "name": "for loop deviceidx - Get deviceId from servicedata",
1468 "xml": "<for index=\"deviceidx\" start=\"0\" end=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n \n \n",
1471 "x": 2769.5310440063477,
1472 "y": 511.03135108947754,
1473 "z": "c5494b7.49969b8",
1481 "id": "e2b7f439.b0d4b8",
1483 "name": "block : atomic",
1484 "xml": "<block atomic=\"true\">",
1487 "x": 2846.5317764282227,
1488 "y": 575.0314502716064,
1489 "z": "c5494b7.49969b8",
1497 "id": "d34abb03.648a78",
1500 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\".....\"/>\n<parameter name=\"field3\" value=\"prop.wan.deviceName\"/>\n<parameter name=\"field4\" value='`$prop.wan.deviceName`'/>\n",
1503 "x": 2092.531379699707,
1504 "y": 183.0312671661377,
1505 "z": "c5494b7.49969b8",
1511 "id": "b75d8380.35bfa",
1513 "name": "for vidx..service-data.vnfs.vnf_length[]",
1514 "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
1517 "x": 1218.000072479248,
1518 "y": 206.0000171661377,
1519 "z": "c5494b7.49969b8",
1528 "id": "ec56abe8.7b3a98",
1530 "name": "copy input data to service data",
1531 "xml": "<set>\n<!--parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' /-->\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />",
1533 "x": 651.0312652587891,
1534 "y": 1394.5312538146973,
1535 "z": "c5494b7.49969b8",
1539 "id": "fdc70d4e.6c354",
1541 "name": "TODO: split ip/mask",
1545 "y": 1021.5039072036743,
1546 "z": "c5494b7.49969b8",
1550 "id": "cb21e48e.93ff78",
1557 "x": 891.0008735656738,
1558 "y": 974.3337669372559,
1559 "z": "c5494b7.49969b8",
1567 "id": "d3956bf2.5c5588",
1569 "name": "for loop tidx - Get transportNetwork ID",
1570 "xml": "<for index=\"tidx\" start=\"0\" end=\"`$transportNetworksResp.data.transportNetworks_length`\">\n \n \n",
1573 "x": 675.0004920959473,
1574 "y": 973.3335227966309,
1575 "z": "c5494b7.49969b8",
1583 "id": "f462086d.871178",
1585 "name": "set wan portId to service data",
1586 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].name' value='wanPortId' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length].value' value='`$prop.wan.wanPortId`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length' value='`$service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-request-input.vnf-input-parameters.param_length + 1`' />\n\n\n\n\n",
1588 "x": 651.9999923706055,
1589 "y": 1344.2500953674316,
1590 "z": "c5494b7.49969b8",
1594 "id": "589c7732.243f08",
1596 "name": "call sdwan-get-tenant-auth",
1597 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-tenant-auth' mode='sync' >\n",
1602 "z": "c5494b7.49969b8",