3 "id": "2cfde233.a1cf6e",
8 "y": 35.003907203674316,
9 "z": "57d2d3d6.9aa6fc",
17 "id": "3b2e232c.fd060c",
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": 265.00391006469727,
26 "y": 107.0039234161377,
27 "z": "57d2d3d6.9aa6fc",
35 "id": "a53b2fce.2a65f",
37 "name": "method sdwan-network-topology-operation-deactivate",
38 "xml": "<method rpc='sdwan-network-topology-operation-deactivate' mode='sync'>\n",
41 "x": 253.0040283203125,
43 "z": "57d2d3d6.9aa6fc",
51 "id": "663d77f7.214e28",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 427.00392150878906,
59 "y": 303.0039653778076,
60 "z": "57d2d3d6.9aa6fc",
80 "id": "b928d5a5.e0ad38",
82 "name": "call GENERIC-RESOURCE-API:validate-sdwan-network-input-parameters",
83 "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-sdwan-network-input-parameters' mode='sync' >\n",
86 "x": 885.3928070068359,
88 "z": "57d2d3d6.9aa6fc",
94 "id": "4e2c1ff0.9578e",
97 "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-network-topology-operation-deactivate\"/>\n<parameter name=\"field3\" value=\"SDWAN-Deactivate\"/>\n",
100 "x": 685.5595054626465,
101 "y": 105.78175926208496,
102 "z": "57d2d3d6.9aa6fc",
108 "id": "f4a9e349.c682f",
110 "name": "set networkId and network-object-path",
111 "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name=\"network-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/' + $network-topology-operation-input.service-information.service-instance-id + '/service-data/networks/network/' + $network-topology-operation-input.network-information.network-id + '/network-data/'` \" />",
113 "x": 777.5597496032715,
114 "y": 732.3173627853394,
115 "z": "57d2d3d6.9aa6fc",
119 "id": "23c4ff52.00447",
120 "type": "returnSuccess",
121 "name": "return success",
122 "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",
124 "x": 699.3375511169434,
125 "y": 921.8727827072144,
126 "z": "57d2d3d6.9aa6fc",
130 "id": "77ecaa70.6d0df4",
132 "name": "set network-level-oper-status",
133 "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='PendingDelete' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-rpc-action' value='`$network-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.last-action' value='`$network-topology-operation-input.request-information.request-action`' />",
135 "x": 744.4486656188965,
136 "y": 793.5395374298096,
137 "z": "57d2d3d6.9aa6fc",
141 "id": "2ea7cfac.fbbe5",
143 "name": "execute Properties",
144 "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",
147 "x": 717.8616104125977,
148 "y": 158.78179550170898,
149 "z": "57d2d3d6.9aa6fc",
155 "id": "15a8b2bc.455b8d",
157 "name": "set network in service-data",
158 "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.sdnc-request-header.' value='`$network-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.request-information.' value='`$network-topology-operation-input.request-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.service-information.' value='`$network-topology-operation-input.service-information.`' />\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-information.' value='`$network-topology-operation-input.network-information.`' />",
160 "x": 738.004280090332,
161 "y": 679.095196723938,
162 "z": "57d2d3d6.9aa6fc",
166 "id": "b657cd65.d8e7b",
168 "name": "for each network-input-parameters",
169 "xml": "<for index='idx' start='0' end='`$ctx.network-data.network-request-input.network-input-parameters.param_length`' >\n",
173 "y": 229.00781378149986,
174 "z": "57d2d3d6.9aa6fc",
182 "id": "630ca78d.27ae88",
189 "x": 1026.8373374938965,
190 "y": 163.34116491675377,
191 "z": "57d2d3d6.9aa6fc",
202 "id": "3612556b.bbed1a",
203 "type": "switchNode",
204 "name": "switch name",
205 "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
208 "x": 1248.837417602539,
209 "y": 53.34119987487793,
210 "z": "57d2d3d6.9aa6fc",
218 "id": "8c14fd7b.27081",
219 "type": "outcomeTrue",
221 "xml": "<outcome value='true'>\n",
224 "x": 1422.8375434875488,
225 "y": 53.341203689575195,
226 "z": "57d2d3d6.9aa6fc",
234 "id": "f4242145.e0099",
237 "xml": "<set>\n<parameter name='prop.name' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
239 "x": 1585.8374290466309,
240 "y": 52.94119834899902,
241 "z": "57d2d3d6.9aa6fc",
245 "id": "e4693af9.dc3458",
246 "type": "get-resource",
247 "name": "get-resource esr-thirdparty-sdnc",
248 "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",
252 "y": 338.00781378149986,
253 "z": "57d2d3d6.9aa6fc",
263 "id": "fdb52017.6dec1",
266 "xml": "<outcome value='success'>\n",
270 "y": 284.00781378149986,
271 "z": "57d2d3d6.9aa6fc",
279 "id": "5ded5567.77825c",
282 "xml": "<outcome value='not-found'>\n",
285 "x": 1012.494873046875,
286 "y": 331.5818494260311,
287 "z": "57d2d3d6.9aa6fc",
295 "id": "2c94536.83be9ac",
298 "xml": "<outcome value='Other'>\n",
301 "x": 1007.827880859375,
302 "y": 372.91516241431236,
303 "z": "57d2d3d6.9aa6fc",
311 "id": "2b35b6e5.d07f8a",
313 "name": "set controller data",
314 "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",
316 "x": 1206.5039672851562,
317 "y": 272.00781378149986,
318 "z": "57d2d3d6.9aa6fc",
322 "id": "8424b2a8.48b9d",
323 "type": "returnFailure",
324 "name": "return failure",
325 "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",
327 "x": 1189.0662841796875,
328 "y": 319.8675855100155,
329 "z": "57d2d3d6.9aa6fc",
333 "id": "ab7ddb5c.582b78",
334 "type": "returnFailure",
335 "name": "return failure",
336 "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",
338 "x": 1195.6004371643066,
339 "y": 368.354355186224,
340 "z": "57d2d3d6.9aa6fc",
344 "id": "c69b48c1.cce2a8",
346 "name": "execute RestApiCallNode Get token",
347 "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\"/>",
351 "y": 449.00781378149986,
352 "z": "57d2d3d6.9aa6fc",
361 "id": "ce7c1b67.661578",
364 "xml": "<outcome value='success'>\n",
368 "y": 427.00781378149986,
369 "z": "57d2d3d6.9aa6fc",
377 "id": "8a934505.8ec3a8",
380 "xml": "<outcome value='failure'>\n",
384 "y": 480.6506970822811,
385 "z": "57d2d3d6.9aa6fc",
393 "id": "aa6da81f.8e3f18",
395 "name": "set token-id",
396 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
399 "y": 428.00781378149986,
400 "z": "57d2d3d6.9aa6fc",
404 "id": "928c6b17.a04a28",
405 "type": "returnFailure",
406 "name": "return failure",
407 "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",
410 "y": 480.40075811743736,
411 "z": "57d2d3d6.9aa6fc",
415 "id": "c60af583.51da48",
416 "type": "switchNode",
417 "name": "switch topology",
418 "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'topology'`\">\n",
421 "x": 1254.253890991211,
422 "y": 96.00781416893005,
423 "z": "57d2d3d6.9aa6fc",
431 "id": "6ea0ea88.c5d044",
432 "type": "outcomeTrue",
434 "xml": "<outcome value='true'>\n",
437 "x": 1428.2540168762207,
438 "y": 96.00781798362732,
439 "z": "57d2d3d6.9aa6fc",
447 "id": "230bc0ec.589fb",
449 "name": "set topology",
450 "xml": "<set>\n<parameter name='prop.topology' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
452 "x": 1591.2539024353027,
453 "y": 95.60781264305115,
454 "z": "57d2d3d6.9aa6fc",
458 "id": "992bd0be.f4511",
460 "name": "execute RestApiCallNode delete vpn",
461 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-vpn-delete.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/overlay-network/vpn/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=\"vpn-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\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
464 "x": 770.7539825439453,
465 "y": 616.0080223083496,
466 "z": "57d2d3d6.9aa6fc",
472 "id": "565518bc.dd3838",
474 "name": "execute RestApiCallNode delete vpn topology",
475 "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/overlay-network/' + $prop.vpn-id + '/topology'`\" />\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=\"vpn-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\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
478 "x": 800.2539978027344,
479 "y": 549.0079069137573,
480 "z": "57d2d3d6.9aa6fc",
486 "id": "a8faff93.c15f9",
487 "type": "switchNode",
488 "name": "switch vpn-id",
489 "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'vpn-id'`\">\n",
492 "x": 1248.5039691925049,
493 "y": 179.00390815734863,
494 "z": "57d2d3d6.9aa6fc",
502 "id": "ae3a63c3.3c738",
503 "type": "outcomeTrue",
505 "xml": "<outcome value='true'>\n",
508 "x": 1430.5040016174316,
509 "y": 179.00390696525574,
510 "z": "57d2d3d6.9aa6fc",
518 "id": "4d67f5b4.fc8eec",
520 "name": "set prop.vpn-id",
521 "xml": "<set>\n<parameter name='prop.vpn-id' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
523 "x": 1593.5038871765137,
524 "y": 178.60390162467957,
525 "z": "57d2d3d6.9aa6fc",
529 "id": "3a3baf52.54ed7",
530 "type": "switchNode",
531 "name": "switch tenant-id",
532 "xml": "<switch test=\"`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].name == 'tenant-id'`\">\n",
537 "z": "57d2d3d6.9aa6fc",
545 "id": "1a8e58aa.aa1b17",
546 "type": "outcomeTrue",
548 "xml": "<outcome value='true'>\n",
551 "x": 1428.2540321350098,
552 "y": 222.00391006469727,
553 "z": "57d2d3d6.9aa6fc",
561 "id": "3b8512ac.291e5e",
563 "name": "set prop.tenant-id",
564 "xml": "<set>\n<parameter name='prop.tenant-id' value='`$ctx.network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
566 "x": 1591.2539176940918,
567 "y": 221.6039047241211,
568 "z": "57d2d3d6.9aa6fc",
572 "id": "5cca3c72.23bd74",
574 "name": "update SDWAN VPN status to AAI",
575 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='sdwan-vpn' \n key='sdwan-vpn.sdwan-vpn-id = $network-topology-operation-input.network-information.network-id' >\n<parameter name='sdwan-vpn-id' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='operational-status' value='PendingDelete' />",
578 "x": 758.0039443969727,
579 "y": 860.5039930343628,
580 "z": "57d2d3d6.9aa6fc",