3 "id": "d6f12b23.a89678",
9 "z": "725c7d45.19d1f4",
17 "id": "c865ab04.6af178",
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": 228.2856903076172,
26 "y": 92.23810863494873,
27 "z": "725c7d45.19d1f4",
35 "id": "6872e2ee.d6997c",
37 "name": "method sdwan-vnf-topology-operation-wanport-activate",
38 "xml": "<method rpc='sdwan-vnf-topology-operation-wanport-activate' mode='sync'>\n",
41 "x": 231.42861938476562,
42 "y": 177.00003242492676,
43 "z": "725c7d45.19d1f4",
51 "id": "e8a5051a.b42f68",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
57 "x": 294.66675567626953,
58 "y": 782.666989326477,
59 "z": "725c7d45.19d1f4",
86 "id": "8f3957a7.d167f8",
87 "type": "returnSuccess",
88 "name": "return success",
89 "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",
91 "x": 621.334529876709,
92 "y": 1514.3347115516663,
93 "z": "725c7d45.19d1f4",
97 "id": "2a8c1af8.df5bf6",
99 "name": "execute RestApiCallNode device port create",
100 "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.onap.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`\" />",
103 "x": 709.3341102600098,
104 "y": 777.889497756958,
105 "z": "725c7d45.19d1f4",
114 "id": "e20e98c1.35cd38",
117 "xml": "<outcome value='success'>\n",
120 "x": 958.3341693878174,
121 "y": 791.8897037506104,
122 "z": "725c7d45.19d1f4",
130 "id": "6f78988b.f50df8",
133 "xml": "<outcome value='failure'>\n",
136 "x": 958.3341693878174,
137 "y": 753.8895392417908,
138 "z": "725c7d45.19d1f4",
146 "id": "8f1b4806.f6c948",
147 "type": "returnFailure",
148 "name": "return failure",
149 "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",
151 "x": 1102.3345031738281,
152 "y": 752.8895387649536,
153 "z": "725c7d45.19d1f4",
157 "id": "bed4bc3f.f5932",
159 "name": "block : atomic",
160 "xml": "<block atomic=\"true\">",
164 "x": 1105.3341808319092,
165 "y": 792.8895425796509,
166 "z": "725c7d45.19d1f4",
172 "id": "ee4c5d7e.eaa99",
174 "name": "execute RestApiCallNode get transport network info",
175 "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.onap.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`\" />",
178 "x": 732.0004615783691,
179 "y": 957.0006031990051,
180 "z": "725c7d45.19d1f4",
189 "id": "dc56d269.4a63b",
191 "name": "execute RestApiCallNode wan port create",
192 "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.onap.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`\" />",
195 "x": 705.0005531311035,
196 "y": 1194.000651359558,
197 "z": "725c7d45.19d1f4",
206 "id": "4891bde.3538244",
207 "type": "switchNode",
208 "name": "switch service-data.vnfs.vnf_length",
209 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
212 "x": 691.0209350585938,
213 "y": 121.02091217041016,
214 "z": "725c7d45.19d1f4",
224 "id": "bba0a2df.9b7fe",
227 "xml": "<outcome value=''>\n",
230 "x": 943.0209693908691,
231 "y": 122.02099323272705,
232 "z": "725c7d45.19d1f4",
240 "id": "2105bad4.c6ead6",
241 "type": "returnFailure",
242 "name": "return failure",
243 "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",
245 "x": 1104.7987174987793,
246 "y": 101.90994024276733,
247 "z": "725c7d45.19d1f4",
251 "id": "f5df4ed9.043ee",
254 "xml": "<outcome value='Other'>\n",
257 "x": 936.0213775634766,
258 "y": 155.02099704742432,
259 "z": "725c7d45.19d1f4",
267 "id": "e4ac49d6.f30708",
269 "name": "block : atomic",
270 "xml": "<block atomic=\"true\">",
273 "x": 959.2908935546875,
274 "y": 253.57559204101562,
275 "z": "725c7d45.19d1f4",
287 "id": "3335cf85.18b",
289 "name": "for vidx..service-data.vnfs.vnf_length[]",
290 "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
293 "x": 1239.3070373535156,
294 "y": 147.44955825805664,
295 "z": "725c7d45.19d1f4",
303 "id": "646eb0ad.764a7",
304 "type": "switchNode",
305 "name": "switch tmp.vidx ",
306 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
309 "x": 1165.608341217041,
310 "y": 293.43279361724854,
311 "z": "725c7d45.19d1f4",
319 "id": "e159f8e9.ab1288",
322 "xml": "<outcome value=''>\n",
325 "x": 1313.0369834899902,
326 "y": 293.0042037963867,
327 "z": "725c7d45.19d1f4",
335 "id": "ce82d617.853858",
336 "type": "switchNode",
337 "name": "switch vnfid found",
338 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
341 "x": 1612.7362670898438,
342 "y": 146.69972038269043,
343 "z": "725c7d45.19d1f4",
351 "id": "50911a7c.bcb394",
352 "type": "returnFailure",
353 "name": "return failure",
354 "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",
356 "x": 1462.4657096862793,
357 "y": 294.14712142944336,
358 "z": "725c7d45.19d1f4",
362 "id": "bc627350.7812f",
363 "type": "outcomeTrue",
365 "xml": "<outcome value='true'>\n",
368 "x": 1767.6882591247559,
369 "y": 147.59239959716797,
370 "z": "725c7d45.19d1f4",
378 "id": "f97e5dae.1c8e2",
380 "name": "set tmp.vidx and ctx.vnf-data",
381 "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
383 "x": 2175.220344543457,
384 "y": 57.34245777130127,
385 "z": "725c7d45.19d1f4",
389 "id": "ad1fb0e6.30f2b",
392 "xml": "<outcome value='0'>\n",
395 "x": 944.9897193908691,
396 "y": 85.98967933654785,
397 "z": "725c7d45.19d1f4",
405 "id": "1286c83c.18ccc8",
407 "name": "set device PortId to service data",
408 "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",
410 "x": 673.9909210205078,
411 "y": 1250.9912090301514,
412 "z": "725c7d45.19d1f4",
416 "id": "57e2b01e.38cf7",
418 "name": "Get siteId from site resource created for this service",
421 "x": 716.9899826049805,
422 "y": 306.32321643829346,
423 "z": "725c7d45.19d1f4",
427 "id": "a85a6118.25ae3",
434 "x": 1458.6566696166992,
435 "y": 146.98963832855225,
436 "z": "725c7d45.19d1f4",
444 "id": "ffc944ec.552788",
446 "name": "set vnfId and vnf-object-path",
447 "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/'` \" />",
449 "x": 654.5462341308594,
450 "y": 1393.213122844696,
451 "z": "725c7d45.19d1f4",
455 "id": "d579e51d.f36088",
457 "name": "set vnf-level-oper-status to Active",
458 "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",
460 "x": 671.9906959533691,
461 "y": 1432.9909586906433,
462 "z": "725c7d45.19d1f4",
466 "id": "2c809153.c42dee",
468 "name": "update SDWAN wan port instance configuration in AAI",
469 "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",
472 "x": 734.653621673584,
473 "y": 1472.1384205818176,
474 "z": "725c7d45.19d1f4",
480 "id": "1e8c7f90.773b9",
482 "name": "set prop.wan.transportNetworkId",
483 "xml": "<set>\n<parameter name='prop.wan.transportNetworkId' value='`$transportNetworksResp.data.transportNetworks[$tidx].id`' />\n",
485 "x": 1486.991542816162,
486 "y": 1033.9906749725342,
487 "z": "725c7d45.19d1f4",
491 "id": "863a36e8.4a5b78",
493 "name": "for loop sidx - Get siteId from servicedata",
494 "xml": "<for index=\"sidx\" start=\"0\" end=\"`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param_length`\">\n \n \n",
497 "x": 696.9900054931641,
498 "y": 456.9898729324341,
499 "z": "725c7d45.19d1f4",
507 "id": "4130ca31.df2bc4",
508 "type": "switchNode",
509 "name": "switch siteId",
510 "xml": "<switch test=\"`$ctx.site.vnf-data.vnf-request-input.vnf-input-parameters.param[$sidx].name == 'siteId'`\">\n",
513 "x": 1127.990333557129,
514 "y": 457.99000358581543,
515 "z": "725c7d45.19d1f4",
523 "id": "8e36b04f.9057d",
524 "type": "outcomeTrue",
526 "xml": "<outcome value='true'>\n",
529 "x": 1265.9907913208008,
530 "y": 455.98998832702637,
531 "z": "725c7d45.19d1f4",
539 "id": "b3f426b3.22a238",
541 "name": "set prop.wan.siteId",
542 "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",
544 "x": 1429.9908256530762,
545 "y": 457.58984184265137,
546 "z": "725c7d45.19d1f4",
550 "id": "455c32c0.dc954c",
552 "name": "execute split ip and mask",
553 "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",
556 "x": 655.9903297424316,
557 "y": 1102.3236436843872,
558 "z": "725c7d45.19d1f4",
567 "id": "c855dead.051b",
570 "xml": "<outcome value='success'>\n",
573 "x": 856.990348815918,
574 "y": 1080.3236351013184,
575 "z": "725c7d45.19d1f4",
583 "id": "33727da5.4478c2",
586 "xml": "<outcome value='failure'>\n",
589 "x": 856.9903526306152,
590 "y": 1121.3236389160156,
591 "z": "725c7d45.19d1f4",
599 "id": "fd37a12c.b50dd",
601 "name": "set ipAddress prefixLength",
602 "xml": "<set>\n<parameter name='prop.wan.ip-address' value='`$ipandMask[0]`' />\n<parameter name='prop.wan.prefixLength' value='`$ipandMask[1]`' />",
604 "x": 1053.9903678894043,
605 "y": 1078.3236351013184,
606 "z": "725c7d45.19d1f4",
610 "id": "92f41c8f.e77c6",
611 "type": "returnFailure",
612 "name": "return failure",
613 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
615 "x": 1011.9903602600098,
616 "y": 1118.3236379623413,
617 "z": "725c7d45.19d1f4",
621 "id": "b6ab2db8.206f6",
622 "type": "get-resource",
623 "name": "get-resource esr-thirdparty-sdnc",
624 "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",
627 "x": 671.4901733398438,
628 "y": 554.9899291992188,
629 "z": "725c7d45.19d1f4",
639 "id": "a209acee.17706",
642 "xml": "<outcome value='success'>\n",
645 "x": 903.4902572631836,
646 "y": 518.9899520874023,
647 "z": "725c7d45.19d1f4",
655 "id": "69e80906.c6c388",
658 "xml": "<outcome value='not-found'>\n",
661 "x": 905.9811401367188,
662 "y": 554.5639886856079,
663 "z": "725c7d45.19d1f4",
671 "id": "4690f303.905dfc",
674 "xml": "<outcome value='Other'>\n",
677 "x": 901.3141479492188,
678 "y": 590.8973474502563,
679 "z": "725c7d45.19d1f4",
687 "id": "340f62b3.ca041e",
688 "type": "returnFailure",
689 "name": "return failure",
690 "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",
692 "x": 1055.0866394042969,
693 "y": 588.3364343643188,
694 "z": "725c7d45.19d1f4",
698 "id": "deef5ce.ffc72a",
699 "type": "returnFailure",
700 "name": "return failure",
701 "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",
703 "x": 1051.5525360107422,
704 "y": 552.8496761322021,
705 "z": "725c7d45.19d1f4",
709 "id": "fb6bcdc7.90b7a",
711 "name": "set controller data",
712 "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",
714 "x": 1063.9903678894043,
715 "y": 516.9898920059204,
716 "z": "725c7d45.19d1f4",
720 "id": "d09273d4.34d5b",
723 "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",
726 "x": 609.0000953674316,
727 "y": 177.00003004074097,
728 "z": "725c7d45.19d1f4",
734 "id": "d8cffa08.c70f58",
736 "name": "execute Properties",
737 "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",
740 "x": 645.3022193908691,
741 "y": 212.00007390975952,
742 "z": "725c7d45.19d1f4",
748 "id": "e9d254c6.c408a8",
750 "name": "execute RestApiCallNode Get token",
751 "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.onap.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\"/>",
754 "x": 686.0003051757812,
755 "y": 642.6669311523438,
756 "z": "725c7d45.19d1f4",
765 "id": "a2457d23.490bb",
768 "xml": "<outcome value='success'>\n",
771 "x": 921.000431060791,
772 "y": 628.666919708252,
773 "z": "725c7d45.19d1f4",
781 "id": "7f12a9ec.69af78",
783 "name": "set token-id",
784 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
786 "x": 1063.0004386901855,
787 "y": 627.6669206619263,
788 "z": "725c7d45.19d1f4",
792 "id": "e009ac00.02e288",
793 "type": "returnFailure",
794 "name": "return failure",
795 "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",
797 "x": 1069.0004386901855,
798 "y": 665.0599088668823,
799 "z": "725c7d45.19d1f4",
803 "id": "5d853693.ee5348",
806 "xml": "<outcome value='failure'>\n",
809 "x": 920.250431060791,
810 "y": 664.3098268508911,
811 "z": "725c7d45.19d1f4",
819 "id": "693677dc.0ea4c8",
820 "type": "switchNode",
821 "name": "switch transportNetworkName same",
822 "xml": "<switch test=\"`$transportNetworksResp.data.transportNetworks[$tidx].name == $prop.wan.transportNetworkName`\">\n\n",
825 "x": 1126.0011558532715,
826 "y": 991.6670732498169,
827 "z": "725c7d45.19d1f4",
835 "id": "9e43cce2.daed1",
836 "type": "outcomeTrue",
838 "xml": "<outcome value='true'>\n",
841 "x": 1339.0006065368652,
842 "y": 991.6669912338257,
843 "z": "725c7d45.19d1f4",
851 "id": "29298ea3.31ff42",
852 "type": "switchNode",
853 "name": "switch ActivateSDWANDeviceInstance",
854 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSDWANDeviceInstance'`\">\n \n \n\n",
857 "x": 1553.3336029052734,
858 "y": 224.00005722045898,
859 "z": "725c7d45.19d1f4",
867 "id": "fb2628da.07ec78",
868 "type": "outcomeTrue",
870 "xml": "<outcome value='true'>\n",
873 "x": 1776.3336124420166,
874 "y": 224.00005722045898,
875 "z": "725c7d45.19d1f4",
883 "id": "252b812c.b944de",
885 "name": "set tmp.devicevidx",
886 "xml": "<set>\n<parameter name='tmp.devicevidx' value='`$vidx`' />\n\n",
888 "x": 2741.3329467773438,
889 "y": 655.0000820159912,
890 "z": "725c7d45.19d1f4",
894 "id": "38c64027.0dbb1",
895 "type": "switchNode",
896 "name": "switch tmp.devicevidx",
897 "xml": "<switch test=\"`$tmp.devicevidx`\">\n\n",
900 "x": 1206.3335304260254,
901 "y": 382.0001196861267,
902 "z": "725c7d45.19d1f4",
910 "id": "6a752755.afd058",
913 "xml": "<outcome value=''>\n",
916 "x": 1390.7620964050293,
917 "y": 382.57155656814575,
918 "z": "725c7d45.19d1f4",
926 "id": "12b129f0.1b9176",
927 "type": "returnFailure",
928 "name": "return failure",
929 "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",
931 "x": 1531.1908378601074,
932 "y": 382.71443605422974,
933 "z": "725c7d45.19d1f4",
937 "id": "c3c15a47.6f9888",
939 "name": "Get deviceId from device resource created for this service",
942 "x": 2190.6668853759766,
943 "y": 321.33333587646484,
944 "z": "725c7d45.19d1f4",
948 "id": "ebfe3788.f179e8",
950 "name": "for loop didx - Get deviceId from servicedata",
951 "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",
954 "x": 2176.667095184326,
955 "y": 244.99997997283936,
956 "z": "725c7d45.19d1f4",
964 "id": "3b8aa7d6.529fd8",
965 "type": "switchNode",
966 "name": "switch name (DeviceName)",
967 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$didx].name == 'name'`\">\n",
970 "x": 2194.667694091797,
971 "y": 383.0002250671387,
972 "z": "725c7d45.19d1f4",
980 "id": "ce416efb.e644d",
981 "type": "outcomeTrue",
983 "xml": "<outcome value='true'>\n",
986 "x": 2396.668186187744,
987 "y": 377.0002851486206,
988 "z": "725c7d45.19d1f4",
996 "id": "72a58ce.4542a74",
998 "name": "block : atomic",
999 "xml": "<block atomic=\"true\">",
1002 "x": 959.0001983642578,
1003 "y": 457.66669750213623,
1004 "z": "725c7d45.19d1f4",
1012 "id": "f245906e.04acd",
1014 "name": "block : atomic",
1015 "xml": "<block atomic=\"true\">",
1018 "x": 1968.999984741211,
1019 "y": 381.6667261123657,
1020 "z": "725c7d45.19d1f4",
1028 "id": "ab84c87e.6641a8",
1029 "type": "switchNode",
1030 "name": "switch deviceId",
1031 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.vnf-request-input.vnf-input-parameters.param[$deviceidx].name == 'deviceId'`\">\n",
1034 "x": 3040.0011444091797,
1035 "y": 595.6670227050781,
1036 "z": "725c7d45.19d1f4",
1044 "id": "dad5dabe.45cb08",
1045 "type": "outcomeTrue",
1047 "xml": "<outcome value='true'>\n",
1050 "x": 3193.0015144348145,
1051 "y": 596.6670999526978,
1052 "z": "725c7d45.19d1f4",
1060 "id": "38c10a48.67b606",
1062 "name": "set prop.wan.deviceId",
1063 "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",
1065 "x": 3362.0021209716797,
1066 "y": 595.2671346664429,
1067 "z": "725c7d45.19d1f4",
1071 "id": "9e951e79.2dbb",
1073 "name": "block : atomic",
1074 "xml": "<block atomic=\"true\">",
1077 "x": 1917.6669311523438,
1078 "y": 246.00007724761963,
1079 "z": "725c7d45.19d1f4",
1087 "id": "f3d4ecf0.f7b57",
1089 "name": "block : atomic",
1090 "xml": "<block atomic=\"true\">",
1093 "x": 2215.0012283325195,
1094 "y": 460.0002546310425,
1095 "z": "725c7d45.19d1f4",
1103 "id": "a5f1b6ac.935608",
1104 "type": "outcomeTrue",
1106 "xml": "<outcome value='true'>\n",
1109 "x": 2604.0019340515137,
1110 "y": 463.00037956237793,
1111 "z": "725c7d45.19d1f4",
1119 "id": "2709419e.cb1d4e",
1121 "name": "block : atomic",
1122 "xml": "<block atomic=\"true\">",
1125 "x": 1906.3337783813477,
1126 "y": 148.00003337860107,
1127 "z": "725c7d45.19d1f4",
1138 "id": "d5734767.c41348",
1140 "name": "set prop.wan.wanPortId",
1141 "xml": "<set>\n<parameter name='prop.wan.wanPortId' value='`$wanPortResp.success[0].id`' />\n",
1143 "x": 1353.3246459960938,
1144 "y": 1194.6573886871338,
1145 "z": "725c7d45.19d1f4",
1149 "id": "de66785c.628fe8",
1151 "name": "set prop.wan.devicePortId",
1152 "xml": "<set>\n<parameter name='prop.wan.devicePortId' value='`$portResp.success[0].id`' />\n",
1154 "x": 663.9913177490234,
1155 "y": 839.9906539916992,
1156 "z": "725c7d45.19d1f4",
1160 "id": "cf3fd46b.92ea68",
1162 "name": "Create port",
1165 "x": 611.0000495910645,
1166 "y": 744.3335218429565,
1167 "z": "725c7d45.19d1f4",
1171 "id": "712fc701.3b6c28",
1173 "name": "Get network id",
1176 "x": 662.0001220703125,
1177 "y": 922.3334802985191,
1178 "z": "725c7d45.19d1f4",
1182 "id": "4db86c63.765344",
1184 "name": "Create wan port",
1187 "x": 629.0002059936523,
1188 "y": 1055.3336935043335,
1189 "z": "725c7d45.19d1f4",
1193 "id": "e8f33bf4.d74a28",
1196 "xml": "<outcome value='failure'>\n",
1199 "x": 991.0001220703125,
1200 "y": 1154.0002393722534,
1201 "z": "725c7d45.19d1f4",
1209 "id": "b358fdc8.47501",
1212 "xml": "<outcome value='success'>\n",
1215 "x": 991.0001182556152,
1216 "y": 1194.0004043579102,
1217 "z": "725c7d45.19d1f4",
1225 "id": "c181c64d.e790a8",
1227 "name": "block : atomic",
1228 "xml": "<block atomic=\"true\">",
1232 "x": 1135.0001335144043,
1233 "y": 1193.000241279602,
1234 "z": "725c7d45.19d1f4",
1242 "id": "2ecf07cd.e22e08",
1243 "type": "returnFailure",
1244 "name": "return failure",
1245 "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",
1247 "x": 1313.00048828125,
1248 "y": 1153.0002708435059,
1249 "z": "725c7d45.19d1f4",
1253 "id": "f75c8efc.5bc38",
1256 "xml": "<outcome value='failure'>\n",
1259 "x": 1038.0000495910645,
1260 "y": 905.0001783370972,
1261 "z": "725c7d45.19d1f4",
1269 "id": "72b3b752.f6bbf8",
1272 "xml": "<outcome value='success'>\n",
1275 "x": 1038.0000457763672,
1276 "y": 945.0003433227539,
1277 "z": "725c7d45.19d1f4",
1285 "id": "7039d1d0.8c0e2",
1287 "name": "block : atomic",
1288 "xml": "<block atomic=\"true\">",
1292 "x": 1182.0000610351562,
1293 "y": 944.0001802444458,
1294 "z": "725c7d45.19d1f4",
1300 "id": "cd3f079c.c86e78",
1301 "type": "returnFailure",
1302 "name": "return failure",
1303 "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",
1305 "x": 1180.0003814697266,
1306 "y": 904.0001783370972,
1307 "z": "725c7d45.19d1f4",
1311 "id": "12ee38df.f58297",
1313 "name": "call sdwan-get-wan-param",
1314 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",
1317 "x": 2178.666633605957,
1318 "y": 154.0000762939453,
1319 "z": "725c7d45.19d1f4",
1325 "id": "8b284d74.9bbdc",
1327 "name": "set vnf-request-input.",
1328 "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
1330 "x": 2147.666633605957,
1331 "y": 104.00009346008301,
1332 "z": "725c7d45.19d1f4",
1336 "id": "6fa219f1.a7d198",
1338 "name": "This is also required for template parameters update",
1341 "x": 2543.0003967285156,
1342 "y": 200.00003623962402,
1343 "z": "725c7d45.19d1f4",
1347 "id": "7a10e528.449ffc",
1348 "type": "switchNode",
1349 "name": "switch ActivateSiteInstance",
1350 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n \n \n\n",
1353 "x": 1516.0004425048828,
1354 "y": 189.00004959106445,
1355 "z": "725c7d45.19d1f4",
1363 "id": "8d8e3a.201b51c8",
1364 "type": "outcomeTrue",
1366 "xml": "<outcome value='true'>\n",
1369 "x": 1712.0006256103516,
1370 "y": 190.00004959106445,
1371 "z": "725c7d45.19d1f4",
1379 "id": "3f667c94.ca8ee4",
1381 "name": "set tmp.siteVidx",
1382 "xml": "<set>\n<parameter name='tmp.siteVidx' value='`$vidx`' />\n<parameter name='ctx.site.' value='`$service-data.vnfs.vnf[$vidx].`' />\n\n",
1384 "x": 1897.9999237060547,
1385 "y": 187.00005340576172,
1386 "z": "725c7d45.19d1f4",
1390 "id": "af3fc11d.805b3",
1391 "type": "switchNode",
1392 "name": "switch tmp.siteVidx",
1393 "xml": "<switch test=\"`$tmp.siteVidx`\">\n\n",
1396 "x": 1189.6667518615723,
1397 "y": 331.00007009506226,
1398 "z": "725c7d45.19d1f4",
1406 "id": "bee9b4a0.4631e8",
1409 "xml": "<outcome value=''>\n",
1412 "x": 1364.0954627990723,
1413 "y": 331.5715217590332,
1414 "z": "725c7d45.19d1f4",
1422 "id": "cf86c583.f350f8",
1423 "type": "returnFailure",
1424 "name": "return failure",
1425 "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",
1427 "x": 1506.5241813659668,
1428 "y": 330.71438455581665,
1429 "z": "725c7d45.19d1f4",
1433 "id": "794ddeb5.82822",
1434 "type": "switchNode",
1435 "name": "switch deviceName match",
1436 "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",
1439 "x": 2420.667953491211,
1440 "y": 461.0003185272217,
1441 "z": "725c7d45.19d1f4",
1449 "id": "900215dc.3d2d28",
1451 "name": "block : atomic",
1452 "xml": "<block atomic=\"true\">",
1455 "x": 2503.3338928222656,
1456 "y": 535.0001621246338,
1457 "z": "725c7d45.19d1f4",
1466 "id": "841824ee.9d9cb8",
1468 "name": "for loop deviceidx - Get deviceId from servicedata",
1469 "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",
1472 "x": 2783.5310440063477,
1473 "y": 530.0313510894775,
1474 "z": "725c7d45.19d1f4",
1482 "id": "3d6ed093.e41e3",
1484 "name": "block : atomic",
1485 "xml": "<block atomic=\"true\">",
1488 "x": 2860.5317764282227,
1489 "y": 594.0314502716064,
1490 "z": "725c7d45.19d1f4",
1498 "id": "21551932.828fc6",
1501 "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",
1504 "x": 2106.531379699707,
1505 "y": 202.0312671661377,
1506 "z": "725c7d45.19d1f4",
1512 "id": "47895138.250a9",
1514 "name": "for vidx..service-data.vnfs.vnf_length[]",
1515 "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
1518 "x": 1232.000072479248,
1519 "y": 225.0000171661377,
1520 "z": "725c7d45.19d1f4",
1529 "id": "272d2403.37c86c",
1531 "name": "copy input data to service data",
1532 "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.' />",
1534 "x": 667.0312881469727,
1535 "y": 1347.5314326286316,
1536 "z": "725c7d45.19d1f4",
1540 "id": "41e3ce3b.fd6",
1542 "name": "TODO: split ip/mask",
1546 "y": 1040.5039072036743,
1547 "z": "725c7d45.19d1f4",
1551 "id": "bddbd7b0.3cac18",
1558 "x": 905.0008735656738,
1559 "y": 993.3337669372559,
1560 "z": "725c7d45.19d1f4",
1568 "id": "8b82d2e5.53604",
1570 "name": "for loop tidx - Get transportNetwork ID",
1571 "xml": "<for index=\"tidx\" start=\"0\" end=\"`$transportNetworksResp.data.transportNetworks_length`\">\n \n \n",
1574 "x": 689.0004920959473,
1575 "y": 992.3335227966309,
1576 "z": "725c7d45.19d1f4",
1584 "id": "a401887.73e5778",
1586 "name": "set wan portId to service data",
1587 "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",
1589 "x": 668.0000152587891,
1590 "y": 1297.250274181366,
1591 "z": "725c7d45.19d1f4",
1595 "id": "2c725167.90a60e",
1597 "name": "call sdwan-get-tenant-auth",
1598 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-tenant-auth' mode='sync' >\n",
1603 "z": "725c7d45.19d1f4",
1609 "id": "18a023ce.91febc",
1611 "name": "block : atomic",
1612 "xml": "<block atomic=\"true\">",
1616 "x": 1135.0039672851562,
1617 "y": 1152.5039310455322,
1618 "z": "725c7d45.19d1f4",