3 "id": "206c85aa.5a072a",
5 "name": "sdwan-vnf-topology-operation-device-activate",
8 "x": 508.3447952270508,
10 "z": "51909408.51161c",
14 "id": "ca427018.80bcb",
15 "type": "service-logic",
16 "name": "GENERIC-RESOURCE-API ${project.version}",
17 "module": "GENERIC-RESOURCE-API",
18 "version": "${project.version}",
20 "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}'>",
22 "x": 188.28570556640625,
23 "y": 139.0002670288086,
24 "z": "51909408.51161c",
32 "id": "d277668e.e654a8",
37 "y": 76.76215744018555,
38 "z": "51909408.51161c",
46 "id": "29e19c37.979fb4",
48 "name": "block : atomic",
49 "xml": "<block atomic=\"true\">",
52 "x": 183.6666717529297,
53 "y": 418.42884254455566,
54 "z": "51909408.51161c",
75 "id": "8a8e6e5a.af8ac",
76 "type": "returnSuccess",
77 "name": "return success",
78 "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",
80 "x": 589.0477142333984,
81 "y": 1021.6670913696289,
82 "z": "51909408.51161c",
86 "id": "d0145adc.c61398",
88 "name": "set vnf-level-oper-status to Active",
89 "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",
91 "x": 670.527774810791,
92 "y": 829.0042400360107,
93 "z": "51909408.51161c",
97 "id": "7f49e88e.6ac0a8",
99 "name": "copy input data to service data",
100 "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.`' />\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-information.' value='`$vnf-topology-operation-input.vnf-information.`' />\n",
102 "x": 648.3809661865234,
103 "y": 885.000415802002,
104 "z": "51909408.51161c",
108 "id": "7ac7ee71.334c",
110 "name": "make sure this VNF doesn't exist already",
113 "x": 1383.7143249511719,
114 "y": 661.9527359008789,
115 "z": "51909408.51161c",
119 "id": "7bfd6f06.aec7d",
121 "name": "update deviceInstance configuration in AAI",
122 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $vnf-topology-operation-input.vnf-information.vnf-id' >\n<parameter name='device-id' value='`$vnf-topology-operation-input.vnf-information.vnf-id`' />\n<!--parameter name='device-id' value='`$deviceResp.success[0].id`' /-->\n<parameter name='operational-status' value='Active' />",
125 "x": 672.7144622802734,
126 "y": 934.8894157409668,
127 "z": "51909408.51161c",
133 "id": "2fa01ba0.438244",
135 "name": "method sdwan-vnf-topology-operation-device-activate",
136 "xml": "<method rpc='sdwan-vnf-topology-operation-device-activate' mode='sync'>\n",
140 "y": 233.3484992980957,
141 "z": "51909408.51161c",
149 "id": "5365293b.242938",
151 "name": "set vnfId and vnf-object-path",
152 "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/'` \" />",
154 "x": 651.7144165039062,
155 "y": 777.9200525283813,
156 "z": "51909408.51161c",
160 "id": "feaf1629.1e79e8",
162 "name": "execute RestApiCallNode Create Devcie Instance",
163 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-device.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v3/devices'`\" />\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=\"deviceResp\"/>\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`\" />",
166 "x": 724.3017807006836,
167 "y": 666.1265420913696,
168 "z": "51909408.51161c",
177 "id": "752aae5e.411ae",
179 "name": "execute RestApiCallNode Get token",
180 "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\"/>",
183 "x": 675.4445495605469,
184 "y": 516.1263904571533,
185 "z": "51909408.51161c",
194 "id": "32c81884.3acf08",
197 "xml": "<outcome value='success'>\n",
200 "x": 907.4445495605469,
201 "y": 496.1263904571533,
202 "z": "51909408.51161c",
210 "id": "5b1f77c1.6546b8",
213 "xml": "<outcome value='failure'>\n",
216 "x": 899.6945495605469,
217 "y": 537.7692737579346,
218 "z": "51909408.51161c",
226 "id": "8863e5c0.8fc5a8",
228 "name": "set token-id",
229 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
231 "x": 1044.4445495605469,
232 "y": 496.1263904571533,
233 "z": "51909408.51161c",
237 "id": "1b01e427.5d582c",
244 "x": 1025.7780456542969,
245 "y": 538.0153064727783,
246 "z": "51909408.51161c",
252 "id": "b65e0d53.3b7ed",
254 "name": "Do Nothing",
257 "x": 1287.3335914611816,
258 "y": 338.9041233062744,
259 "z": "51909408.51161c",
263 "id": "aa15cb9e.3cdaa8",
265 "name": "block : atomic",
266 "xml": "<block atomic=\"true\">",
270 "x": 1150.968246459961,
271 "y": 636.0153303146362,
272 "z": "51909408.51161c",
278 "id": "12eca3bc.6e077c",
279 "type": "returnFailure",
280 "name": "return failure",
281 "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 Activate Device rest api\" />\n",
283 "x": 1152.412826538086,
284 "y": 686.5708627700806,
285 "z": "51909408.51161c",
289 "id": "1d6faab2.67fba5",
292 "xml": "<outcome value='failure'>\n",
295 "x": 999.412670135498,
296 "y": 689.5708169937134,
297 "z": "51909408.51161c",
305 "id": "1fffde57.79b802",
308 "xml": "<outcome value='success'>\n",
311 "x": 998.8571853637695,
312 "y": 633.2375288009644,
313 "z": "51909408.51161c",
321 "id": "8f8a4ade.fb21d8",
323 "name": "set deviceId to service data",
324 "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=\"deviceId\" />\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='`$deviceResp.success[0].id`' />\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",
326 "x": 657.7145690917969,
327 "y": 729.9202995300293,
328 "z": "51909408.51161c",
332 "id": "a82fd005.9ab21",
333 "type": "get-resource",
334 "name": "get-resource esr-thirdparty-sdnc",
335 "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",
338 "x": 670.0002136230469,
339 "y": 420.34861183166504,
340 "z": "51909408.51161c",
350 "id": "342b0391.a4834c",
353 "xml": "<outcome value='success'>\n",
356 "x": 911.0002708435059,
357 "y": 345.3485860824585,
358 "z": "51909408.51161c",
366 "id": "21df5526.b03a8a",
368 "name": "set controller data",
369 "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",
371 "x": 1087.5003128051758,
372 "y": 336.34857511520386,
373 "z": "51909408.51161c",
377 "id": "7a108269.f3476c",
380 "xml": "<outcome value='not-found'>\n",
383 "x": 902.4911079406738,
384 "y": 393.92263412475586,
385 "z": "51909408.51161c",
393 "id": "e9fd26db.c0e278",
394 "type": "returnFailure",
395 "name": "return failure",
396 "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",
398 "x": 1076.0625190734863,
399 "y": 382.20837020874023,
400 "z": "51909408.51161c",
404 "id": "87289215.d0cea",
407 "xml": "<outcome value='Other'>\n",
410 "x": 894.8241157531738,
411 "y": 435.2559471130371,
412 "z": "51909408.51161c",
420 "id": "d7092d64.71989",
421 "type": "returnFailure",
422 "name": "return failure",
423 "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",
425 "x": 1082.5966720581055,
426 "y": 430.69513988494873,
427 "z": "51909408.51161c",
431 "id": "2b32a3df.95a32c",
434 "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=\"Provided alloted resource length\"/>\n<parameter name=\"field3\" value=\"'parameters length'\"/>\n<parameter name=\"field4\" value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`'/>\n\n\n\n",
437 "x": 615.0000152587891,
438 "y": 298.0151786804199,
439 "z": "51909408.51161c",
445 "id": "9162baea.a58618",
447 "name": "for vidx..service-data.vnfs.vnf_length[]",
448 "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
451 "x": 703.0313034057617,
452 "y": 184.0312786102295,
453 "z": "51909408.51161c",
461 "id": "b4173a9a.c4a2c8",
468 "x": 951.3808975219727,
469 "y": 184.57134628295898,
470 "z": "51909408.51161c",
478 "id": "8ed61ccb.fe1d2",
479 "type": "switchNode",
480 "name": "switch vnfid found",
481 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
484 "x": 1105.4604949951172,
485 "y": 184.28142833709717,
486 "z": "51909408.51161c",
494 "id": "94dc5d4a.a00f9",
496 "name": "block : atomic",
497 "xml": "<block atomic=\"true\">",
500 "x": 1399.058006286621,
501 "y": 185.5817413330078,
502 "z": "51909408.51161c",
512 "id": "25dffe3f.86e402",
513 "type": "outcomeTrue",
515 "xml": "<outcome value='true'>\n",
518 "x": 1260.4124870300293,
519 "y": 185.1741075515747,
520 "z": "51909408.51161c",
528 "id": "a75f325a.531e1",
530 "name": "set vnf-request-input.",
531 "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
533 "x": 1640.3908615112305,
534 "y": 141.58180141448975,
535 "z": "51909408.51161c",
539 "id": "fa685102.6e48e",
541 "name": "set tmp.vidx and ctx.vnf-data",
542 "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
544 "x": 1667.9445724487305,
545 "y": 94.92416572570801,
546 "z": "51909408.51161c",
550 "id": "1c8ecc84.ad1ff3",
552 "name": "call sdwan-get-device-param",
553 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-device-param' mode='sync' >\n",
556 "x": 1645.0313110351562,
557 "y": 204.03127193450928,
558 "z": "51909408.51161c",
564 "id": "96cec913.036c98",
565 "type": "switchNode",
566 "name": "switch tmp.vidx ",
567 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
570 "x": 634.0311889648438,
572 "z": "51909408.51161c",
580 "id": "dd74e5cf.ddfed8",
583 "xml": "<outcome value=''>\n",
586 "x": 781.459831237793,
587 "y": 244.60266017913818,
588 "z": "51909408.51161c",
596 "id": "f70bcb29.83b348",
597 "type": "returnFailure",
598 "name": "return failure",
599 "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",
601 "x": 930.888557434082,
602 "y": 245.74557781219482,
603 "z": "51909408.51161c",
607 "id": "f1cfd3b2.a98b6",
609 "name": "execute Properties",
610 "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",
613 "x": 629.0311889648438,
615 "z": "51909408.51161c",
621 "id": "bd5ee22a.cd67b",
623 "name": "call sdwan-get-tenant-auth",
624 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-tenant-auth' mode='sync' >\n",
627 "x": 654.2938385009766,
628 "y": 604.2938222885132,
629 "z": "51909408.51161c",