3 "id": "f5a8ee3a.716df8",
17 "id": "181c6e18.5e551a",
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}'>",
27 "z": "4f2829e5.fc576",
35 "id": "4deec5d.bc3e13c",
37 "name": "method dci-connects-network-topology-operation-deactivate",
38 "xml": "<method rpc='dci-connects-network-topology-operation-deactivate' mode='sync'>\n",
43 "z": "4f2829e5.fc576",
51 "id": "db590270.2247a",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
57 "x": 578.0000152587891,
58 "y": 246.00000953674316,
59 "z": "4f2829e5.fc576",
72 "id": "ab4a3388.0c6b38",
74 "name": "call GENERIC-RESOURCE-API:validate-network-input-parameters",
75 "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n",
80 "z": "4f2829e5.fc576",
86 "id": "a32bd41.02ddda8",
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",
93 "z": "4f2829e5.fc576",
97 "id": "9bf0ea3a.343b6",
99 "name": "block : sendRequest",
100 "xml": "<block atomic=\"true\">",
104 "x": 974.5000305175781,
105 "y": 589.5156650543213,
106 "z": "4f2829e5.fc576",
118 "id": "b2910a08.b9547",
121 "xml": "<outcome value='success'>\n",
124 "x": 1506.999927520752,
125 "y": 386.51519107818604,
126 "z": "4f2829e5.fc576",
134 "id": "7302542d.935134",
137 "xml": "<outcome value='not-found'>\n",
140 "x": 1513.999927520752,
141 "y": 424.51519107818604,
142 "z": "4f2829e5.fc576",
150 "id": "c3c5a87c.e92ec",
153 "xml": "<outcome value='Other'>\n",
156 "x": 1505.999927520752,
157 "y": 466.51519107818604,
158 "z": "4f2829e5.fc576",
166 "id": "46e7f2ba.30df5c",
167 "type": "returnFailure",
168 "name": "return failure",
169 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
171 "x": 1670.999927520752,
172 "y": 428.51519107818604,
173 "z": "4f2829e5.fc576",
177 "id": "c4b5e7cb.79f558",
178 "type": "returnFailure",
179 "name": "return failure",
180 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
182 "x": 1663.999927520752,
183 "y": 475.51519107818604,
184 "z": "4f2829e5.fc576",
188 "id": "9dd304ed.281768",
189 "type": "get-resource",
190 "name": "get-resource esr-thirdparty-sdnc",
191 "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 = $prop.dci-connects.id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n",
194 "x": 1283.000015258789,
195 "y": 433.51519799232483,
196 "z": "4f2829e5.fc576",
206 "id": "c0709608.52e74",
208 "name": "set controller data",
209 "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.templateDir' value='/opt/onap/sdnc/data' />\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\n",
211 "x": 1686.4998779296875,
212 "y": 379.01513671875,
213 "z": "4f2829e5.fc576",
217 "id": "ad303774.891d",
219 "name": "execute RestApiCallNode De-Activate Vxlan Tunnel",
220 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/v2.0/l3-dci-connects/' + $prop.dci-connects.id`\"/>\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=\"restapi-result\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />\n",
223 "x": 1782.5003051757812,
224 "y": 652.5156202316284,
225 "z": "4f2829e5.fc576",
231 "id": "efaa0ea1.0c4f18",
232 "type": "switchNode",
233 "name": "switch tunnelType",
234 "xml": "<switch test=\"`$prop.dci-connects.tunnelType`\">\n",
237 "x": 1245.4997634887695,
238 "y": 677.0151309967041,
239 "z": "4f2829e5.fc576",
248 "id": "96ca330.e8be2d",
249 "type": "outcomeTrue",
251 "xml": "<outcome value='L3-DCI'>\n",
254 "x": 1458.4998931884766,
255 "y": 657.0151309967041,
256 "z": "4f2829e5.fc576",
264 "id": "cc0d585a.c5e7e",
265 "type": "outcomeTrue",
267 "xml": "<outcome value='L2-DCI'>\n",
270 "x": 1456.499713897705,
271 "y": 729.0151309967041,
272 "z": "4f2829e5.fc576",
280 "id": "bacc084b.3ec41",
282 "name": "execute RestApiCallNode De-Activate Vxlan Tunnel",
283 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/v2.0/l2-dci-connects/' + $prop.dci-connects.id`\"/>\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=\"restapi-result\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
286 "x": 1776.500259399414,
287 "y": 729.5155563354492,
288 "z": "4f2829e5.fc576",
294 "id": "a2b7f400.1f465",
296 "name": "for each network-input-parameters",
297 "xml": "<for index='idx' start='0' end='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length`' >\n\n",
300 "x": 1036.999984741211,
301 "y": 190.51563167572021,
302 "z": "4f2829e5.fc576",
310 "id": "c52f3ac0.e967a8",
313 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"dci-network-topology-operation-deactivate\"/>\n<parameter name=\"field3\" value=\"dci-connects.id\" />\n<parameter name=\"field4\" value=\"`$prop.dci-connects.id`\"/>\n<parameter name=\"field5\" value=\"dci-connects.tunnelType\" />\n<parameter name=\"field6\" value=\"`$prop.dci-connects.tunnelType`\"/>\n<parameter name=\"field7\" value=\"dci-connects.tunnelType\" />\n<parameter name=\"field8\" value=\"`$prop.dci-connects.tunnelType`\"/>\n<parameter name=\"field9\" value=\"sdncRestApi.thirdpartySdnc.url\"/>\n<parameter name=\"field10\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url`\"/>",
316 "x": 1220.3333740234375,
318 "z": "4f2829e5.fc576",
324 "id": "225b5a0e.27e1d6",
331 "x": 1270.3334274291992,
332 "y": 190.00000762939453,
333 "z": "4f2829e5.fc576",
342 "id": "be8fe02b.02612",
343 "type": "switchNode",
344 "name": "switch site1_id",
345 "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'site1_id'`\">\n",
348 "x": 1476.6666374206543,
349 "y": 159.00000381469727,
350 "z": "4f2829e5.fc576",
358 "id": "97e27afd.097dc",
359 "type": "outcomeTrue",
361 "xml": "<outcome value='true'>\n",
364 "x": 1677.666732788086,
365 "y": 158.00000286102295,
366 "z": "4f2829e5.fc576",
374 "id": "b51077df.7867c",
377 "xml": "<set>\n<parameter name='prop.dci-connects.id' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
379 "x": 1851.3330841064453,
380 "y": 157.66654777526855,
381 "z": "4f2829e5.fc576",
385 "id": "9b16a3b9.1f3098",
386 "type": "switchNode",
387 "name": "switch tunnelType",
388 "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'tunnelType'`\">\n",
391 "x": 1486.6667175292969,
392 "y": 212.00000977516174,
393 "z": "4f2829e5.fc576",
401 "id": "f71924ef.335e7",
402 "type": "outcomeTrue",
404 "xml": "<outcome value='true'>\n",
407 "x": 1692.6667175292969,
408 "y": 212.00000977516174,
409 "z": "4f2829e5.fc576",
417 "id": "81bda338.0c501",
419 "name": "set tunnelType",
420 "xml": "<set>\n<parameter name='prop.dci-connects.tunnelType' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
422 "x": 1861.6668167114258,
423 "y": 212.0000250339508,
424 "z": "4f2829e5.fc576",
428 "id": "10699173.9d62bf",
430 "name": "block : executeSite1",
431 "xml": "<block atomic=\"true\">",
435 "x": 766.3333358764648,
436 "y": 191.66666412353516,
437 "z": "4f2829e5.fc576",
446 "id": "13dfccf8.bd0803",
448 "name": "for each network-input-parameters",
449 "xml": "<for index='idx' start='0' end='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param_length`' >\n\n",
452 "x": 1042.0000686645508,
453 "y": 296.66663551330566,
454 "z": "4f2829e5.fc576",
462 "id": "9c692b97.c836f",
469 "x": 1270.3334350585938,
470 "y": 299.15101146698,
471 "z": "4f2829e5.fc576",
479 "id": "3edb515.a48a22e",
480 "type": "switchNode",
481 "name": "switch site2_id",
482 "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'site2_id'`\">\n",
485 "x": 1471.3333854675293,
486 "y": 299.15099716186523,
487 "z": "4f2829e5.fc576",
495 "id": "948a60aa.59ad7",
496 "type": "outcomeTrue",
498 "xml": "<outcome value='true'>\n",
501 "x": 1672.333480834961,
502 "y": 298.1509962081909,
503 "z": "4f2829e5.fc576",
511 "id": "1962949c.26443b",
514 "xml": "<set>\n<parameter name='prop.dci-connects.id' value='`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].value`' />\n",
516 "x": 1845.9998321533203,
517 "y": 297.8175411224365,
518 "z": "4f2829e5.fc576",
522 "id": "517a5a14.a94154",
524 "name": "block : executeSite1",
525 "xml": "<block atomic=\"true\">",
529 "x": 766.3333435058594,
530 "y": 300.8176679611206,
531 "z": "4f2829e5.fc576",
540 "id": "8eb2a0d4.825dc8",
542 "name": "set object-path",
543 "xml": "<set>\n<parameter name='network-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/networks/network/'\n + $networkId\n + '/network-data/network-topology/'` \" />\n \n",
545 "x": 1081.3373260498047,
546 "y": 821.8607425689697,
547 "z": "4f2829e5.fc576",
551 "id": "56c4779e.6fd13",
553 "name": "set networkId",
554 "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n",
556 "x": 1075.622959136963,
557 "y": 784.7178506851196,
558 "z": "4f2829e5.fc576",
562 "id": "efd1462b.b12ac8",
564 "name": "block : saveNetworkData",
565 "xml": "<block atomic=\"true\">",
569 "x": 818.3333969116211,
570 "y": 760.6666917800903,
571 "z": "4f2829e5.fc576",
582 "id": "edaf65d1.c9376",
585 "info": "Currently deactivate does deletion too, later divide in two phases.",
587 "x": 700.3333358764648,
589 "z": "4f2829e5.fc576",
593 "id": "cc5c05c.b33c178",
595 "name": "copy input to service-data",
596 "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",
598 "x": 1111.3334045410156,
599 "y": 741.0000038146973,
600 "z": "4f2829e5.fc576",
604 "id": "36a63a6b.ba56a6",
606 "name": "set network-level-oper-status",
607 "xml": "<set>\n<parameter name='service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status' value='Deleted' />\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`' />\n",
609 "x": 1125.3333358764648,
610 "y": 868.9999618530273,
611 "z": "4f2829e5.fc576",
615 "id": "73a3e34f.020a74",
617 "name": "delete underlay configuration in AAI",
618 "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='configuration' \n key='configuration.configuration-id = $network-topology-operation-input.network-information.network-id'>\n",
623 "z": "4f2829e5.fc576",
629 "id": "f2e7b7ab.8ad1d",
631 "name": "execute Properties",
632 "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",
637 "z": "4f2829e5.fc576",
643 "id": "c98e6def.0e6fb8",
645 "name": "execute RestApiCallNode Get token",
646 "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\"/>",
651 "z": "4f2829e5.fc576",
660 "id": "2ccb6350.67574c",
663 "xml": "<outcome value='success'>\n",
668 "z": "4f2829e5.fc576",
676 "id": "5977545b.66d21c",
679 "xml": "<outcome value='failure'>\n",
683 "y": 603.6428833007812,
684 "z": "4f2829e5.fc576",
692 "id": "b77a0163.0800d",
694 "name": "set token-id",
695 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='$token-result.token_id' />\n",
699 "z": "4f2829e5.fc576",
703 "id": "ad04fb75.6d618",
704 "type": "returnFailure",
705 "name": "return failure",
706 "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",
709 "y": 602.3929443359375,
710 "z": "4f2829e5.fc576",