3 "id": "6b385e45.7a3f5",
7 "x": 139.57137298583984,
9 "z": "757466fd.415308",
17 "id": "1dde2ff0.4c745",
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.8570785522461,
26 "y": 80.23811149597168,
27 "z": "757466fd.415308",
35 "id": "ea4d719e.008e2",
37 "name": "method sdwan-vnf-topology-operation-device-deactivate",
38 "xml": "<method rpc='sdwan-vnf-topology-operation-device-deactivate' mode='sync'>\n",
42 "y": 119.9999942779541,
43 "z": "757466fd.415308",
51 "id": "8022f97f.a9e9c8",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
57 "x": 232.73810195922852,
58 "y": 310.69354248046875,
59 "z": "757466fd.415308",
80 "id": "fe2f71f.5a0549",
82 "name": "set vnf in service-data",
83 "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.`' />",
85 "x": 488.57144927978516,
86 "y": 733.0002317428589,
87 "z": "757466fd.415308",
91 "id": "90ac7c05.1df59",
93 "name": "set vnfId and vnf-object-path",
94 "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/'` \" />",
96 "x": 510.12699127197266,
97 "y": 775.2224426269531,
98 "z": "757466fd.415308",
102 "id": "2f2e6d66.de0b42",
103 "type": "returnSuccess",
104 "name": "return success",
105 "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",
107 "x": 468.90482330322266,
108 "y": 937.7777910232544,
109 "z": "757466fd.415308",
113 "id": "560d559f.36474c",
115 "name": "update SDWAN DeviceInstance status to AAI",
116 "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='operational-status' value='PendingDelete' />",
119 "x": 559.2344131469727,
120 "y": 878.1478223800659,
121 "z": "757466fd.415308",
127 "id": "62c2b68c.cb8668",
129 "name": "set vnf-level-oper-status to PendingDelete",
130 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-data.vnf-level-oper-status.order-status' value='PendingDelete' />\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",
132 "x": 548.5714797973633,
133 "y": 832.0001993179321,
134 "z": "757466fd.415308",
138 "id": "58377091.27285",
139 "type": "get-resource",
140 "name": "get-resource esr-thirdparty-sdnc",
141 "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",
144 "x": 515.1269454956055,
145 "y": 359.99996280670166,
146 "z": "757466fd.415308",
156 "id": "8b902f30.1edc8",
159 "xml": "<outcome value='success'>\n",
163 "y": 287.99996185302734,
164 "z": "757466fd.415308",
172 "id": "59a1f255.7388fc",
174 "name": "set controller data",
175 "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",
177 "x": 940.627067565918,
178 "y": 278.999960899353,
179 "z": "757466fd.415308",
183 "id": "b3b7e1bd.bb3c3",
186 "xml": "<outcome value='not-found'>\n",
189 "x": 744.6178817749023,
190 "y": 320.573974609375,
191 "z": "757466fd.415308",
199 "id": "ed08291.4824fd8",
200 "type": "returnFailure",
201 "name": "return failure",
202 "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",
204 "x": 921.1893501281738,
205 "y": 317.85972690582275,
206 "z": "757466fd.415308",
210 "id": "92ad4991.dcb358",
213 "xml": "<outcome value='Other'>\n",
216 "x": 736.9508895874023,
217 "y": 361.90728759765625,
218 "z": "757466fd.415308",
226 "id": "67ab99c4.008378",
227 "type": "returnFailure",
228 "name": "return failure",
229 "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",
231 "x": 924.723445892334,
232 "y": 357.34648036956787,
233 "z": "757466fd.415308",
237 "id": "dac79818.50d828",
239 "name": "execute RestApiCallNode Get token",
240 "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\"/>",
243 "x": 538.0155982971191,
244 "y": 426.1111717224121,
245 "z": "757466fd.415308",
254 "id": "4b92ddae.b11014",
257 "xml": "<outcome value='success'>\n",
260 "x": 773.0155982971191,
261 "y": 404.1111717224121,
262 "z": "757466fd.415308",
270 "id": "be0fd00e.58fcb",
273 "xml": "<outcome value='failure'>\n",
276 "x": 765.2655982971191,
277 "y": 457.75405502319336,
278 "z": "757466fd.415308",
286 "id": "3d2c2dc.5e83ed2",
288 "name": "set token-id",
289 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
291 "x": 927.0155982971191,
292 "y": 405.1111717224121,
293 "z": "757466fd.415308",
297 "id": "6cd389a6.9d2038",
300 "xml": "<outcome value='success'>\n",
303 "x": 874.1268157958984,
304 "y": 641.1112051010132,
305 "z": "757466fd.415308",
313 "id": "dbb22ce5.43a74",
315 "name": "block : atomic",
316 "xml": "<block atomic=\"true\">",
320 "x": 1045.2378311157227,
321 "y": 639.8890256881714,
322 "z": "757466fd.415308",
328 "id": "4aad0852.c2e288",
335 "x": 913.1266403198242,
336 "y": 454.00000381469727,
337 "z": "757466fd.415308",
343 "id": "2c8ab183.9108ce",
345 "name": "Do Nothing",
348 "x": 1048.6822141011553,
349 "y": 452.88887956407336,
350 "z": "757466fd.415308",
354 "id": "532a6f26.ee36",
357 "xml": "<outcome value='failure'>\n",
360 "x": 870.6823692321777,
361 "y": 694.4444913864136,
362 "z": "757466fd.415308",
370 "id": "e576dd47.e4d2d",
371 "type": "returnFailure",
372 "name": "return failure",
373 "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 vpn rest api\" />\n",
375 "x": 1015.6823692321777,
376 "y": 697.4444913864136,
377 "z": "757466fd.415308",
381 "id": "39a32b24.2df714",
383 "name": "deviceId need to provide here?",
386 "x": 543.9046936035156,
387 "y": 520.0000066757202,
388 "z": "757466fd.415308",
392 "id": "8d34776a.67e9e8",
394 "name": "tmp.thirdparty-sdnc-id to be hardcoded here?",
397 "x": 563.9047393798828,
398 "y": 279.0000591278076,
399 "z": "757466fd.415308",
403 "id": "be71552d.8c5378",
404 "type": "returnSuccess",
405 "name": "return success",
406 "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",
408 "x": 803.904655456543,
409 "y": 1682.3333358764648,
410 "z": "757466fd.415308",
414 "id": "499b8fd4.89df6",
416 "name": "for vidx..service-data.vnfs.vnf_length[]",
417 "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
420 "x": 547.6026229858398,
422 "z": "757466fd.415308",
430 "id": "fbacdb2a.2187b8",
437 "x": 795.9522171020508,
438 "y": 208.5713176727295,
439 "z": "757466fd.415308",
447 "id": "14a96fbf.04e25",
448 "type": "switchNode",
449 "name": "switch vnfid found",
450 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
453 "x": 950.0318145751953,
454 "y": 208.28139972686768,
455 "z": "757466fd.415308",
463 "id": "decdca7b.a91d08",
465 "name": "block : atomic",
466 "xml": "<block atomic=\"true\">",
469 "x": 1243.6293258666992,
470 "y": 209.58171272277832,
471 "z": "757466fd.415308",
481 "id": "f8b23c28.656e4",
482 "type": "outcomeTrue",
484 "xml": "<outcome value='true'>\n",
487 "x": 1104.9838066101074,
488 "y": 209.17407894134521,
489 "z": "757466fd.415308",
497 "id": "d1d20e74.92e38",
499 "name": "set vnf-request-input.",
500 "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
502 "x": 1484.9621810913086,
503 "y": 165.58177280426025,
504 "z": "757466fd.415308",
508 "id": "fd53ee3f.07fb6",
510 "name": "set tmp.vidx and ctx.vnf-data",
511 "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
513 "x": 1512.5158920288086,
514 "y": 118.92413711547852,
515 "z": "757466fd.415308",
519 "id": "ca9cc0c9.c9a05",
521 "name": "call sdwan-get-device-param",
522 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-device-param' mode='sync' >\n",
525 "x": 1489.6026306152344,
526 "y": 228.03124332427979,
527 "z": "757466fd.415308",
533 "id": "60947bb5.977bb4",
534 "type": "switchNode",
535 "name": "switch tmp.vidx ",
536 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
539 "x": 464.60262298583984,
541 "z": "757466fd.415308",
549 "id": "b9a00e35.ec566",
552 "xml": "<outcome value=''>\n",
555 "x": 612.0312652587891,
556 "y": 249.60266017913818,
557 "z": "757466fd.415308",
565 "id": "32fbaa62.824b86",
566 "type": "returnFailure",
567 "name": "return failure",
568 "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",
570 "x": 761.4599914550781,
571 "y": 250.74557781219482,
572 "z": "757466fd.415308",
576 "id": "744539f4.efb448",
578 "name": "execute RestApiCallNode delete Devcie Instance",
579 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-device-del.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=\"delete\"/>\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`\" />",
582 "x": 580.6026992797852,
583 "y": 664.0313568115234,
584 "z": "757466fd.415308",
593 "id": "e2cd50c2.c2f0d",
595 "name": "execute Properties",
596 "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",
599 "x": 488.60262298583984,
601 "z": "757466fd.415308",
607 "id": "b764369b.fbe158",
609 "name": "set device Id length and deviceId",
610 "xml": "<set>\n<parameter name='prop.devices[0]' value='`$prop.device.deviceId`' />\n\n\n",
612 "x": 520.6026458740234,
613 "y": 601.0312871932983,
614 "z": "757466fd.415308",
618 "id": "5d47732a.38d94c",
620 "name": "set device Id length and deviceId",
621 "xml": "<set>\n<parameter name='prop.devices_length' value='1' />\n\n\n",
623 "x": 524.6026229858398,
625 "z": "757466fd.415308",
629 "id": "d89f363a.ca5158",
631 "name": "call sdwan-get-tenant-auth",
632 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-tenant-auth' mode='sync' >\n",
637 "z": "757466fd.415308",