3 "id": "426569df.8612f8",
9 "z": "2525d6cd.61f35a",
17 "id": "7d6fafb.3ddd95",
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": 268.2895965576172,
26 "y": 288.99201488494873,
27 "z": "2525d6cd.61f35a",
35 "id": "7af8806b.3ecd7",
37 "name": "method sdwan-vnf-topology-operation-wanport-activate",
38 "xml": "<method rpc='sdwan-vnf-topology-operation-wanport-activate' mode='sync'>\n",
41 "x": 271.4325256347656,
42 "y": 373.75393867492676,
43 "z": "2525d6cd.61f35a",
51 "id": "63259a1d.b752b4",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
57 "x": 334.67066192626953,
58 "y": 979.420895576477,
59 "z": "2525d6cd.61f35a",
86 "id": "ff4c2e55.307e9",
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": 659.3384132385254,
92 "y": 1777.088438987732,
93 "z": "2525d6cd.61f35a",
97 "id": "1d7f590a.25aba7",
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=\"put\"/>\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`\" />",
103 "x": 749.3380165100098,
104 "y": 974.643404006958,
105 "z": "2525d6cd.61f35a",
114 "id": "53451b0.d0c27e4",
117 "xml": "<outcome value='success'>\n",
120 "x": 998.3380756378174,
121 "y": 988.6436100006104,
122 "z": "2525d6cd.61f35a",
130 "id": "d2d2e81c.454428",
133 "xml": "<outcome value='failure'>\n",
136 "x": 998.3380756378174,
137 "y": 950.6434454917908,
138 "z": "2525d6cd.61f35a",
146 "id": "104d6c7d.be4024",
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": 1142.3384094238281,
152 "y": 949.6434450149536,
153 "z": "2525d6cd.61f35a",
157 "id": "eca1c460.e76228",
159 "name": "block : atomic",
160 "xml": "<block atomic=\"true\">",
164 "x": 1145.3380870819092,
165 "y": 989.6434488296509,
166 "z": "2525d6cd.61f35a",
172 "id": "4f9762f1.7b8f7c",
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.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`\" />",
178 "x": 772.0043678283691,
179 "y": 1153.7545094490051,
180 "z": "2525d6cd.61f35a",
189 "id": "e93ff52d.80faa8",
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.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`\" />",
195 "x": 745.0044593811035,
196 "y": 1390.754557609558,
197 "z": "2525d6cd.61f35a",
206 "id": "36b7eecd.26eef2",
207 "type": "switchNode",
208 "name": "switch service-data.vnfs.vnf_length",
209 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
212 "x": 731.0248413085938,
213 "y": 317.77481842041016,
214 "z": "2525d6cd.61f35a",
224 "id": "7f1fbca4.9489e4",
227 "xml": "<outcome value=''>\n",
230 "x": 983.0248756408691,
231 "y": 318.77489948272705,
232 "z": "2525d6cd.61f35a",
240 "id": "9ce50f4e.b2fc8",
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": 1144.8026237487793,
246 "y": 298.66384649276733,
247 "z": "2525d6cd.61f35a",
251 "id": "5c724185.8e516",
254 "xml": "<outcome value='Other'>\n",
257 "x": 976.0252838134766,
258 "y": 351.7749032974243,
259 "z": "2525d6cd.61f35a",
267 "id": "85017b74.ea3478",
269 "name": "block : atomic",
270 "xml": "<block atomic=\"true\">",
273 "x": 994.2947769165039,
274 "y": 514.3294858932495,
275 "z": "2525d6cd.61f35a",
287 "id": "6e42e95a.0ecb68",
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": 1279.3109436035156,
294 "y": 344.20346450805664,
295 "z": "2525d6cd.61f35a",
303 "id": "f672c022.be35c",
304 "type": "switchNode",
305 "name": "switch tmp.vidx ",
306 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
309 "x": 1205.612247467041,
310 "y": 490.18669986724854,
311 "z": "2525d6cd.61f35a",
319 "id": "40c5bcb3.8f3694",
322 "xml": "<outcome value=''>\n",
325 "x": 1353.0408897399902,
326 "y": 489.7581100463867,
327 "z": "2525d6cd.61f35a",
335 "id": "52d419f2.072bd8",
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": 1652.7401733398438,
342 "y": 343.45362663269043,
343 "z": "2525d6cd.61f35a",
351 "id": "8c183b0a.c20d58",
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": 1502.4696159362793,
357 "y": 490.90102767944336,
358 "z": "2525d6cd.61f35a",
362 "id": "7d43258f.b6dc1c",
363 "type": "outcomeTrue",
365 "xml": "<outcome value='true'>\n",
368 "x": 1807.6921653747559,
369 "y": 344.34630584716797,
370 "z": "2525d6cd.61f35a",
378 "id": "5f826b27.adc144",
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": 2215.224250793457,
384 "y": 254.09636402130127,
385 "z": "2525d6cd.61f35a",
389 "id": "5b28fd04.e48584",
392 "xml": "<outcome value='0'>\n",
395 "x": 984.9936256408691,
396 "y": 282.74358558654785,
397 "z": "2525d6cd.61f35a",
405 "id": "378b7e77.9ee662",
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": 711.9948043823242,
411 "y": 1513.744936466217,
412 "z": "2525d6cd.61f35a",
416 "id": "b1043d5b.c9816",
418 "name": "Get siteId from site resource created for this service",
421 "x": 756.9938888549805,
422 "y": 503.07712268829346,
423 "z": "2525d6cd.61f35a",
427 "id": "7f2ca034.081d2",
434 "x": 1498.6605758666992,
435 "y": 343.74354457855225,
436 "z": "2525d6cd.61f35a",
444 "id": "236a2d57.6cfe02",
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": 692.5501174926758,
450 "y": 1655.9668502807617,
451 "z": "2525d6cd.61f35a",
455 "id": "7b3df5af.3ce7ac",
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": 709.9945793151855,
461 "y": 1695.744686126709,
462 "z": "2525d6cd.61f35a",
466 "id": "a1d99b62.d31458",
468 "name": "save 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.id = $vnf-topology-operation-input.vnf-information.vnf-id' >\n<parameter name=\"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": 772.6575050354004,
473 "y": 1734.8921480178833,
474 "z": "2525d6cd.61f35a",
480 "id": "44786d4c.78c0b4",
482 "name": "set prop.wan.transportNetworkId",
483 "xml": "<set>\n<parameter name='prop.wan.transportNetworkId' value='`$transportNetworksResp.data.transportNetworks[$tidx].id`' />\n",
485 "x": 1526.995449066162,
486 "y": 1230.7445812225342,
487 "z": "2525d6cd.61f35a",
491 "id": "ce5ce7ac.be3938",
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": 736.9939117431641,
498 "y": 653.7437791824341,
499 "z": "2525d6cd.61f35a",
507 "id": "3237e366.c0b81c",
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": 1167.994239807129,
514 "y": 654.7439098358154,
515 "z": "2525d6cd.61f35a",
523 "id": "c0bb2f42.b3aaf",
524 "type": "outcomeTrue",
526 "xml": "<outcome value='true'>\n",
529 "x": 1305.9946975708008,
530 "y": 652.7438945770264,
531 "z": "2525d6cd.61f35a",
539 "id": "1433eee.8c0de11",
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": 1469.9947319030762,
545 "y": 654.3437480926514,
546 "z": "2525d6cd.61f35a",
550 "id": "739bdc62.97be04",
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": 695.9942359924316,
557 "y": 1299.0775499343872,
558 "z": "2525d6cd.61f35a",
567 "id": "bde78d5d.e4b42",
570 "xml": "<outcome value='success'>\n",
573 "x": 896.994255065918,
574 "y": 1277.0775413513184,
575 "z": "2525d6cd.61f35a",
583 "id": "fdf45f99.54463",
586 "xml": "<outcome value='failure'>\n",
589 "x": 896.9942588806152,
590 "y": 1318.0775451660156,
591 "z": "2525d6cd.61f35a",
599 "id": "b4f4511b.838b7",
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": 1093.9942741394043,
605 "y": 1275.0775413513184,
606 "z": "2525d6cd.61f35a",
610 "id": "284d3324.0f7a9c",
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": 1051.9942665100098,
616 "y": 1315.0775442123413,
617 "z": "2525d6cd.61f35a",
621 "id": "a3b723.963fa8e",
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": 730.4940643310547,
628 "y": 753.7438306808472,
629 "z": "2525d6cd.61f35a",
639 "id": "e9572be2.73ae58",
642 "xml": "<outcome value='success'>\n",
645 "x": 943.4941635131836,
646 "y": 715.7438583374023,
647 "z": "2525d6cd.61f35a",
655 "id": "29c0457e.12142a",
658 "xml": "<outcome value='not-found'>\n",
661 "x": 945.9850463867188,
662 "y": 751.3178949356079,
663 "z": "2525d6cd.61f35a",
671 "id": "d78bfaf1.6dc7f8",
674 "xml": "<outcome value='Other'>\n",
677 "x": 941.3180541992188,
678 "y": 787.6512537002563,
679 "z": "2525d6cd.61f35a",
687 "id": "aca4c3f3.f6f79",
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": 1095.0905456542969,
693 "y": 785.0903406143188,
694 "z": "2525d6cd.61f35a",
698 "id": "5afb7116.97e19",
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": 1091.5564422607422,
704 "y": 749.6035823822021,
705 "z": "2525d6cd.61f35a",
709 "id": "b45f540f.db5988",
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": 1103.9942741394043,
715 "y": 713.7437982559204,
716 "z": "2525d6cd.61f35a",
720 "id": "21db1d94.b93312",
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": 649.0040016174316,
727 "y": 373.75393629074097,
728 "z": "2525d6cd.61f35a",
734 "id": "b01a2888.afc958",
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": 685.3061256408691,
741 "y": 408.7539801597595,
742 "z": "2525d6cd.61f35a",
748 "id": "eefe56c7.aeba48",
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.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\"/>",
754 "x": 733.004207611084,
755 "y": 843.4208326339722,
756 "z": "2525d6cd.61f35a",
765 "id": "f0beb476.3438c8",
768 "xml": "<outcome value='success'>\n",
771 "x": 961.004337310791,
772 "y": 825.420825958252,
773 "z": "2525d6cd.61f35a",
781 "id": "7978fb11.837754",
783 "name": "set token-id",
784 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
786 "x": 1103.0043449401855,
787 "y": 824.4208269119263,
788 "z": "2525d6cd.61f35a",
792 "id": "518fd324.836c3c",
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": 1109.0043449401855,
798 "y": 861.8138151168823,
799 "z": "2525d6cd.61f35a",
803 "id": "bfd1c15b.d1a6c",
806 "xml": "<outcome value='failure'>\n",
809 "x": 960.254337310791,
810 "y": 861.0637331008911,
811 "z": "2525d6cd.61f35a",
819 "id": "e5fec542.f96808",
820 "type": "switchNode",
821 "name": "switch transportNetworkName same",
822 "xml": "<switch test=\"`$transportNetworksResp.data.transportNetworks[$tidx].name == $prop.wan.transportNetworkName`\">\n\n",
825 "x": 1166.0050621032715,
826 "y": 1188.420979499817,
827 "z": "2525d6cd.61f35a",
835 "id": "5378ee5d.02dde",
836 "type": "outcomeTrue",
838 "xml": "<outcome value='true'>\n",
841 "x": 1379.0045127868652,
842 "y": 1188.4208974838257,
843 "z": "2525d6cd.61f35a",
851 "id": "a080fa5f.ddeb88",
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": 1593.3375091552734,
858 "y": 420.753963470459,
859 "z": "2525d6cd.61f35a",
867 "id": "6c3d1f35.43a16",
868 "type": "outcomeTrue",
870 "xml": "<outcome value='true'>\n",
873 "x": 1816.3375186920166,
874 "y": 420.753963470459,
875 "z": "2525d6cd.61f35a",
883 "id": "57757525.a0de7c",
885 "name": "set tmp.devicevidx",
886 "xml": "<set>\n<parameter name='tmp.devicevidx' value='`$vidx`' />\n\n",
888 "x": 2781.3368530273438,
889 "y": 851.7539882659912,
890 "z": "2525d6cd.61f35a",
894 "id": "388b05e0.8ee79a",
895 "type": "switchNode",
896 "name": "switch tmp.devicevidx",
897 "xml": "<switch test=\"`$tmp.devicevidx`\">\n\n",
900 "x": 1246.3374366760254,
901 "y": 578.7540259361267,
902 "z": "2525d6cd.61f35a",
910 "id": "44f27715.04a478",
913 "xml": "<outcome value=''>\n",
916 "x": 1430.7660026550293,
917 "y": 579.3254628181458,
918 "z": "2525d6cd.61f35a",
926 "id": "143c0c16.156cc4",
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": 1571.1947441101074,
932 "y": 579.4683423042297,
933 "z": "2525d6cd.61f35a",
937 "id": "fd72d81.72be228",
939 "name": "Get deviceId from device resource created for this service",
942 "x": 2230.6707916259766,
943 "y": 518.0872421264648,
944 "z": "2525d6cd.61f35a",
948 "id": "d06cae4f.399ba",
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": 2216.671001434326,
955 "y": 441.75388622283936,
956 "z": "2525d6cd.61f35a",
964 "id": "fc2a7486.890a38",
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": 2234.671600341797,
971 "y": 579.7541313171387,
972 "z": "2525d6cd.61f35a",
980 "id": "e011449c.868068",
981 "type": "outcomeTrue",
983 "xml": "<outcome value='true'>\n",
986 "x": 2436.672092437744,
987 "y": 573.7541913986206,
988 "z": "2525d6cd.61f35a",
996 "id": "4aaf0dac.f4bd44",
998 "name": "block : atomic",
999 "xml": "<block atomic=\"true\">",
1002 "x": 999.0041046142578,
1003 "y": 654.4206037521362,
1004 "z": "2525d6cd.61f35a",
1012 "id": "cc06f146.51f0f",
1014 "name": "block : atomic",
1015 "xml": "<block atomic=\"true\">",
1018 "x": 2009.003890991211,
1019 "y": 578.4206323623657,
1020 "z": "2525d6cd.61f35a",
1028 "id": "1d887fbe.2fb47",
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": 3080.0050506591797,
1035 "y": 792.4209289550781,
1036 "z": "2525d6cd.61f35a",
1044 "id": "e9c4ed3a.99165",
1045 "type": "outcomeTrue",
1047 "xml": "<outcome value='true'>\n",
1050 "x": 3233.0054206848145,
1051 "y": 793.4210062026978,
1052 "z": "2525d6cd.61f35a",
1060 "id": "49a9daf2.48f304",
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": 3402.0060272216797,
1066 "y": 792.0210409164429,
1067 "z": "2525d6cd.61f35a",
1071 "id": "4f891fe5.5f59b",
1073 "name": "block : atomic",
1074 "xml": "<block atomic=\"true\">",
1077 "x": 1957.6708374023438,
1078 "y": 442.75398349761963,
1079 "z": "2525d6cd.61f35a",
1087 "id": "4999ecb0.3d8164",
1089 "name": "block : atomic",
1090 "xml": "<block atomic=\"true\">",
1093 "x": 2255.0051345825195,
1094 "y": 656.7541608810425,
1095 "z": "2525d6cd.61f35a",
1103 "id": "c5bcabb0.9f3978",
1104 "type": "outcomeTrue",
1106 "xml": "<outcome value='true'>\n",
1109 "x": 2644.0058403015137,
1110 "y": 659.7542858123779,
1111 "z": "2525d6cd.61f35a",
1119 "id": "7b4fae02.aca0c",
1121 "name": "block : atomic",
1122 "xml": "<block atomic=\"true\">",
1125 "x": 1946.3376846313477,
1126 "y": 344.7539396286011,
1127 "z": "2525d6cd.61f35a",
1138 "id": "66231f4c.1fe22",
1140 "name": "set prop.wan.wanPortId",
1141 "xml": "<set>\n<parameter name='prop.wan.wanPortId' value='`$wanPortResp.success[0].id`' />\n",
1143 "x": 693.3285293579102,
1144 "y": 1455.4113006591797,
1145 "z": "2525d6cd.61f35a",
1149 "id": "8569d96f.59e838",
1151 "name": "set prop.wan.devicePortId",
1152 "xml": "<set>\n<parameter name='prop.wan.devicePortId' value='`$portResp.success[0].id`' />\n",
1154 "x": 703.9952239990234,
1155 "y": 1036.7445602416992,
1156 "z": "2525d6cd.61f35a",
1160 "id": "f2d45048.04d33",
1162 "name": "Create port",
1165 "x": 651.0039558410645,
1166 "y": 941.0874280929565,
1167 "z": "2525d6cd.61f35a",
1171 "id": "f7f10711.f1f2c8",
1173 "name": "Get network id",
1176 "x": 702.0040283203125,
1177 "y": 1119.0873865485191,
1178 "z": "2525d6cd.61f35a",
1182 "id": "8a3200f.80e49",
1184 "name": "Create wan port",
1187 "x": 669.0041122436523,
1188 "y": 1252.0875997543335,
1189 "z": "2525d6cd.61f35a",
1193 "id": "51280d82.cd5cc4",
1196 "xml": "<outcome value='failure'>\n",
1199 "x": 1031.0040283203125,
1200 "y": 1350.7541456222534,
1201 "z": "2525d6cd.61f35a",
1209 "id": "727c41a7.9551b",
1212 "xml": "<outcome value='success'>\n",
1215 "x": 1031.0040245056152,
1216 "y": 1390.7543106079102,
1217 "z": "2525d6cd.61f35a",
1225 "id": "e2be8d7c.bac7d",
1227 "name": "block : atomic",
1228 "xml": "<block atomic=\"true\">",
1232 "x": 1175.0040397644043,
1233 "y": 1389.754147529602,
1234 "z": "2525d6cd.61f35a",
1240 "id": "7e3eadf1.9f0d14",
1241 "type": "returnFailure",
1242 "name": "return failure",
1243 "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",
1245 "x": 1173.0043601989746,
1246 "y": 1349.7541456222534,
1247 "z": "2525d6cd.61f35a",
1251 "id": "394b70c0.ac6f",
1254 "xml": "<outcome value='failure'>\n",
1257 "x": 1078.0039558410645,
1258 "y": 1101.7540845870972,
1259 "z": "2525d6cd.61f35a",
1267 "id": "af3e9c1f.7be91",
1270 "xml": "<outcome value='success'>\n",
1273 "x": 1078.0039520263672,
1274 "y": 1141.754249572754,
1275 "z": "2525d6cd.61f35a",
1283 "id": "1ebcd5ee.10112a",
1285 "name": "block : atomic",
1286 "xml": "<block atomic=\"true\">",
1290 "x": 1222.0039672851562,
1291 "y": 1140.7540864944458,
1292 "z": "2525d6cd.61f35a",
1298 "id": "7a566c5c.f46854",
1299 "type": "returnFailure",
1300 "name": "return failure",
1301 "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",
1303 "x": 1220.0042877197266,
1304 "y": 1100.7540845870972,
1305 "z": "2525d6cd.61f35a",
1309 "id": "11bb0a8f.c8a415",
1311 "name": "call sdwan-get-wan-param",
1312 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",
1315 "x": 2218.670539855957,
1316 "y": 350.7539825439453,
1317 "z": "2525d6cd.61f35a",
1323 "id": "3b7b404e.14ae9",
1325 "name": "set vnf-request-input.",
1326 "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
1328 "x": 2187.670539855957,
1329 "y": 300.753999710083,
1330 "z": "2525d6cd.61f35a",
1334 "id": "5738aa95.6c6dc4",
1336 "name": "This is also required for template parameters update",
1339 "x": 2583.0043029785156,
1340 "y": 396.753942489624,
1341 "z": "2525d6cd.61f35a",
1345 "id": "f74da2b3.1326d",
1346 "type": "switchNode",
1347 "name": "switch ActivateSiteInstance",
1348 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-data.request-information.request-action == 'ActivateSiteInstance'`\">\n \n \n\n",
1351 "x": 1556.0043487548828,
1352 "y": 385.75395584106445,
1353 "z": "2525d6cd.61f35a",
1361 "id": "3fa03eb7.c59572",
1362 "type": "outcomeTrue",
1364 "xml": "<outcome value='true'>\n",
1367 "x": 1752.0045318603516,
1368 "y": 386.75395584106445,
1369 "z": "2525d6cd.61f35a",
1377 "id": "5e72f4d2.b107fc",
1379 "name": "set tmp.siteVidx",
1380 "xml": "<set>\n<parameter name='tmp.siteVidx' value='`$vidx`' />\n<parameter name='ctx.site.' value='`$service-data.vnfs.vnf[$vidx].`' />\n\n",
1382 "x": 1938.0038299560547,
1383 "y": 383.7539596557617,
1384 "z": "2525d6cd.61f35a",
1388 "id": "5cf9118c.68854",
1389 "type": "switchNode",
1390 "name": "switch tmp.siteVidx",
1391 "xml": "<switch test=\"`$tmp.siteVidx`\">\n\n",
1394 "x": 1229.6706581115723,
1395 "y": 527.7539763450623,
1396 "z": "2525d6cd.61f35a",
1404 "id": "9765105d.6b72d",
1407 "xml": "<outcome value=''>\n",
1410 "x": 1404.0993690490723,
1411 "y": 528.3254280090332,
1412 "z": "2525d6cd.61f35a",
1420 "id": "3a85e200.dcaaae",
1421 "type": "returnFailure",
1422 "name": "return failure",
1423 "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",
1425 "x": 1546.5280876159668,
1426 "y": 527.4682908058167,
1427 "z": "2525d6cd.61f35a",
1431 "id": "46a841ba.4af92",
1432 "type": "switchNode",
1433 "name": "switch deviceName match",
1434 "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",
1437 "x": 2460.671859741211,
1438 "y": 657.7542247772217,
1439 "z": "2525d6cd.61f35a",
1447 "id": "512e7a73.c439f4",
1449 "name": "block : atomic",
1450 "xml": "<block atomic=\"true\">",
1453 "x": 2543.3377990722656,
1454 "y": 731.7540683746338,
1455 "z": "2525d6cd.61f35a",
1464 "id": "4c673d0.8ff4ac4",
1466 "name": "for loop deviceidx - Get deviceId from servicedata",
1467 "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",
1470 "x": 2823.5349502563477,
1471 "y": 726.7852573394775,
1472 "z": "2525d6cd.61f35a",
1480 "id": "536e54bd.8b3bec",
1482 "name": "block : atomic",
1483 "xml": "<block atomic=\"true\">",
1486 "x": 2900.5356826782227,
1487 "y": 790.7853565216064,
1488 "z": "2525d6cd.61f35a",
1496 "id": "207a1eb2.66eaf2",
1499 "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",
1502 "x": 2146.535285949707,
1503 "y": 398.7851734161377,
1504 "z": "2525d6cd.61f35a",
1510 "id": "59c48b6.04c5c74",
1512 "name": "for vidx..service-data.vnfs.vnf_length[]",
1513 "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
1516 "x": 1272.003978729248,
1517 "y": 421.7539234161377,
1518 "z": "2525d6cd.61f35a",
1527 "id": "8814bd0.a9cd04",
1529 "name": "copy input data to service data",
1530 "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.' />",
1532 "x": 705.0351715087891,
1533 "y": 1610.2851600646973,
1534 "z": "2525d6cd.61f35a",
1538 "id": "eac4599c.f1e908",
1540 "name": "TODO: split ip/mask",
1544 "y": 1237.2578134536743,
1545 "z": "2525d6cd.61f35a",
1549 "id": "aa148c7f.0d986",
1556 "x": 945.0047798156738,
1557 "y": 1190.0876731872559,
1558 "z": "2525d6cd.61f35a",
1566 "id": "2af7b981.494176",
1568 "name": "for loop tidx - Get transportNetwork ID",
1569 "xml": "<for index=\"tidx\" start=\"0\" end=\"`$transportNetworksResp.data.transportNetworks_length`\">\n \n \n",
1572 "x": 729.0043983459473,
1573 "y": 1189.0874290466309,
1574 "z": "2525d6cd.61f35a",
1582 "id": "d3523f5e.150e2",
1584 "name": "set wan portId to service data",
1585 "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",
1587 "x": 706.0038986206055,
1588 "y": 1560.0040016174316,
1589 "z": "2525d6cd.61f35a",