3 "id": "e612d5f5.8b6538",
8 "y": 55.99999871850014,
9 "z": "f765645f.7b8058",
17 "id": "150c6234.3faf1e",
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": 253.2895965576172,
26 "y": 106.23810735344887,
27 "z": "f765645f.7b8058",
35 "id": "1b2d2c3d.3c9464",
37 "name": "method sdwan-vnf-topology-operation-wanport-deactivate",
38 "xml": "<method rpc='sdwan-vnf-topology-operation-wanport-deactivate' mode='sync'>\n",
41 "x": 287.4325180053711,
42 "y": 190.00001588463783,
43 "z": "f765645f.7b8058",
51 "id": "bf701672.487a88",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
57 "x": 262.6706123352051,
58 "y": 574.6666819155216,
59 "z": "f765645f.7b8058",
77 "id": "b889ffd5.0fa63",
79 "name": "switch service-data.vnfs.vnf_length",
80 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
83 "x": 768.0248603820801,
84 "y": 99.02095222473145,
85 "z": "f765645f.7b8058",
95 "id": "72446922.dfdc88",
98 "xml": "<outcome value=''>\n",
101 "x": 1011.024787902832,
102 "y": 124.02103519439697,
103 "z": "f765645f.7b8058",
111 "id": "2b15f4dc.0543ec",
112 "type": "returnFailure",
113 "name": "return failure",
114 "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",
116 "x": 1159.8022994995117,
117 "y": 103.9099702835083,
118 "z": "f765645f.7b8058",
122 "id": "2e454e9c.4de002",
125 "xml": "<outcome value='Other'>\n",
128 "x": 1012.0251121520996,
129 "y": 157.02105808258057,
130 "z": "f765645f.7b8058",
138 "id": "767b5296.07b42c",
140 "name": "block : atomic",
141 "xml": "<block atomic=\"true\">",
144 "x": 1159.2948150634766,
145 "y": 146.57558059692383,
146 "z": "f765645f.7b8058",
155 "id": "e6f54805.c662c8",
157 "name": "for vidx..service-data.vnfs.vnf_length[]",
158 "xml": "<for index='vidx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
161 "x": 1404.310775756836,
162 "y": 98.44958019256592,
163 "z": "f765645f.7b8058",
171 "id": "150dec3f.ac66f4",
172 "type": "switchNode",
173 "name": "switch tmp.vidx ",
174 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
177 "x": 1335.6121292114258,
178 "y": 146.43275928497314,
179 "z": "f765645f.7b8058",
187 "id": "7f71feab.68d97",
190 "xml": "<outcome value=''>\n",
193 "x": 1489.0407676696777,
194 "y": 145.00417232513428,
195 "z": "f765645f.7b8058",
203 "id": "9c6aa9a4.753d88",
204 "type": "switchNode",
205 "name": "switch vnfid found",
206 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vidx].vnf-id == $vnf-topology-operation-input.vnf-information.vnf-id`\">\n\n",
209 "x": 1775.739356994629,
210 "y": 95.69969272613525,
211 "z": "f765645f.7b8058",
219 "id": "7f6f3eb7.5ba2f",
220 "type": "returnFailure",
221 "name": "return failure",
222 "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",
224 "x": 1625.4691619873047,
225 "y": 144.14703464508057,
226 "z": "f765645f.7b8058",
230 "id": "414b7f38.5b52",
231 "type": "outcomeTrue",
233 "xml": "<outcome value='true'>\n",
236 "x": 1814.691505432129,
237 "y": 150.59241199493408,
238 "z": "f765645f.7b8058",
246 "id": "34a36311.6884ac",
249 "xml": "<outcome value='0'>\n",
252 "x": 1007.9935340881348,
253 "y": 91.98973083496094,
254 "z": "f765645f.7b8058",
262 "id": "62dbeb25.9e1404",
269 "x": 1623.6604080200195,
270 "y": 97.9896411895752,
271 "z": "f765645f.7b8058",
279 "id": "f33aa2.256e456",
281 "name": "set vnf in service-data",
282 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$tmp.vidx].vnf-id' value='`$service-data.vnfs.vnf[$tmp.vidx].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\n",
284 "x": 723.338077545166,
285 "y": 747.6668863296509,
286 "z": "f765645f.7b8058",
290 "id": "ca99ad99.37765",
292 "name": "set vnfId and vnf-object-path",
293 "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/'` \" />",
295 "x": 735.8937187194824,
296 "y": 804.889181137085,
297 "z": "f765645f.7b8058",
301 "id": "26cf633a.338b9c",
303 "name": "set vnf-level-oper-status to PendingDelete",
304 "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",
306 "x": 778.3380928039551,
307 "y": 839.6670169830322,
308 "z": "f765645f.7b8058",
312 "id": "554bc62c.9e5bc8",
313 "type": "returnSuccess",
314 "name": "return success",
315 "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",
317 "x": 688.6714630126953,
318 "y": 928.4448499679565,
319 "z": "f765645f.7b8058",
323 "id": "46594e30.35ca2",
324 "type": "get-resource",
325 "name": "get-resource esr-thirdparty-sdnc",
326 "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 = SDWAN-Controller AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
329 "x": 748.5042667388916,
330 "y": 267.00012239813805,
331 "z": "f765645f.7b8058",
341 "id": "d2393044.02c98",
344 "xml": "<outcome value='success'>\n",
347 "x": 967.5042362213135,
348 "y": 226.00011897087097,
349 "z": "f765645f.7b8058",
357 "id": "de34f71f.564f78",
360 "xml": "<outcome value='not-found'>\n",
363 "x": 970.9952030181885,
364 "y": 273.5741546154022,
365 "z": "f765645f.7b8058",
373 "id": "165c6807.bce198",
376 "xml": "<outcome value='Other'>\n",
379 "x": 966.3282108306885,
380 "y": 314.9074676036835,
381 "z": "f765645f.7b8058",
389 "id": "d9434b38.eb9228",
390 "type": "returnFailure",
391 "name": "return failure",
392 "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",
394 "x": 1154.1007671356201,
395 "y": 310.3466603755951,
396 "z": "f765645f.7b8058",
400 "id": "46779502.824a2c",
401 "type": "returnFailure",
402 "name": "return failure",
403 "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",
405 "x": 1147.566614151001,
406 "y": 261.8598906993866,
407 "z": "f765645f.7b8058",
411 "id": "af0c4e7e.16054",
413 "name": "set controller data",
414 "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",
416 "x": 1148.0043392181396,
417 "y": 220.00015768408775,
418 "z": "f765645f.7b8058",
422 "id": "13a2d05d.7d396",
424 "name": "execute RestApiCallNode device port delete",
425 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-device-port-del.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/ports/action/batch-delete'`\" />\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=\"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`\" />",
428 "x": 781.0044193267822,
429 "y": 642.666867017746,
430 "z": "f765645f.7b8058",
439 "id": "d7fb77a3.a86188",
442 "xml": "<outcome value='success'>\n",
445 "x": 1027.0044040679932,
446 "y": 680.6669557094574,
447 "z": "f765645f.7b8058",
455 "id": "e2af2841.d1f638",
458 "xml": "<outcome value='failure'>\n",
461 "x": 1023.0044841766357,
462 "y": 634.6668708324432,
463 "z": "f765645f.7b8058",
471 "id": "e8bbadbc.9ad4c",
472 "type": "returnFailure",
473 "name": "return failure",
474 "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",
476 "x": 1164.0045757293701,
477 "y": 634.6668717861176,
478 "z": "f765645f.7b8058",
482 "id": "d422494c.56c648",
484 "name": "block : atomic",
485 "xml": "<block atomic=\"true\">",
489 "x": 1171.0042705535889,
490 "y": 678.6668746471405,
491 "z": "f765645f.7b8058",
497 "id": "6bdcf104.b48b8",
499 "name": "execute RestApiCallNode wan port delete",
500 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-wan-port-del.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/transport-network-ports/action/batch-delete'`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"portResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
503 "x": 772.0045871734619,
504 "y": 535.666864156723,
505 "z": "f765645f.7b8058",
514 "id": "de6f5d9a.00d19",
517 "xml": "<outcome value='success'>\n",
520 "x": 1005.0046825408936,
521 "y": 568.6668565273285,
522 "z": "f765645f.7b8058",
530 "id": "fe1384f0.e198c8",
533 "xml": "<outcome value='failure'>\n",
536 "x": 1009.0047626495361,
537 "y": 504.66693472862244,
538 "z": "f765645f.7b8058",
546 "id": "f44e9eb0.30563",
547 "type": "returnFailure",
548 "name": "return failure",
549 "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",
551 "x": 1154.004934310913,
552 "y": 506.66693472862244,
553 "z": "f765645f.7b8058",
557 "id": "fd275e00.86cf8",
559 "name": "block : atomic",
560 "xml": "<block atomic=\"true\">",
564 "x": 1161.0045261383057,
565 "y": 566.6668565273285,
566 "z": "f765645f.7b8058",
572 "id": "ec3af845.5c1818",
574 "name": "execute Properties",
575 "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",
578 "x": 716.0038948059082,
579 "y": 142.0000295639038,
580 "z": "f765645f.7b8058",
586 "id": "7caacd63.309604",
588 "name": "execute RestApiCallNode Get token",
589 "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\"/>",
592 "x": 765.0041751861572,
593 "y": 405.66669368743896,
594 "z": "f765645f.7b8058",
603 "id": "187682f0.2e0ced",
606 "xml": "<outcome value='success'>\n",
609 "x": 999.0042133331299,
610 "y": 391.6667184829712,
611 "z": "f765645f.7b8058",
619 "id": "97689994.fe4b58",
622 "xml": "<outcome value='failure'>\n",
625 "x": 992.2541751861572,
626 "y": 437.3095769882202,
627 "z": "f765645f.7b8058",
635 "id": "3f21f41a.0451bc",
636 "type": "returnFailure",
637 "name": "return failure",
638 "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",
640 "x": 1145.0041751861572,
641 "y": 437.05963802337646,
642 "z": "f765645f.7b8058",
646 "id": "dfaa5b94.faad78",
648 "name": "set token-id",
649 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
651 "x": 1153.0042133331299,
652 "y": 392.6667184829712,
653 "z": "f765645f.7b8058",
657 "id": "de28481b.2e84a8",
659 "name": "block : atomic",
660 "xml": "<block atomic=\"true\">",
663 "x": 1955.0040168762207,
664 "y": 151.00004482269287,
665 "z": "f765645f.7b8058",
675 "id": "5ba1424c.f63d5c",
677 "name": "save SDWAN wan port instance configuration in AAI",
678 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='wan-port-config' \n key='wan-port-config.id = $service-data.vnfs.vnf[$tmp.vidx].vnf-id' >\n<parameter name=\"id\" value=\"`$service-data.vnfs.vnf[$tmp.vidx].vnf-id`\" />\n<parameter name='operational-status' value='PendingDelete' />\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",
681 "x": 801.0041923522949,
682 "y": 881.0004291534424,
683 "z": "f765645f.7b8058",
689 "id": "a23df7c7.a5b718",
691 "name": "set tmp.vidx and ctx.vnf-data",
692 "xml": "<set>\n<parameter name='tmp.vidx' value='`$vidx`' />\n<parameter name='ctx.vnf-data.' value='`$service-data.vnfs.vnf[$vidx].`' />\n",
694 "x": 2205.0352516174316,
695 "y": 102.03129148483276,
696 "z": "f765645f.7b8058",
700 "id": "c1a4bc96.3c58",
702 "name": "set vnf-request-input.",
703 "xml": "<set>\n<parameter name='vnf-request-input.' value='`$ctx.vnf-data.vnf-data.vnf-request-input.`' />\n\n",
705 "x": 2177.4815406799316,
706 "y": 148.6889271736145,
707 "z": "f765645f.7b8058",
711 "id": "c7716aba.aa75c8",
713 "name": "call sdwan-get-wan-param",
714 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-wan-param' mode='sync' >\n",
717 "x": 2201.481491088867,
718 "y": 198.68891525268555,
719 "z": "f765645f.7b8058",