3 "id": "6559b393.6f861c",
9 "z": "5c765a65.b2ea34",
17 "id": "7c1b2fe9.45548",
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": "5c765a65.b2ea34",
35 "id": "aa816cc6.1183d",
37 "name": "method dci-connects-network-topology-operation-deactivate",
38 "xml": "<method rpc='dci-connects-network-topology-operation-deactivate' mode='sync'>\n",
43 "z": "5c765a65.b2ea34",
51 "id": "eac98b7a.9d5828",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
57 "x": 605.0312652587891,
58 "y": 212.00000953674316,
59 "z": "5c765a65.b2ea34",
72 "id": "477ac034.f205c",
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",
78 "x": 930.0313568115234,
79 "y": 52.00000190734863,
80 "z": "5c765a65.b2ea34",
86 "id": "f8509dc8.168a7",
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": "5c765a65.b2ea34",
97 "id": "c12d1dde.f4e3",
99 "name": "block : sendRequest",
100 "xml": "<block atomic=\"true\">",
104 "x": 1001.5312805175781,
105 "y": 555.5156650543213,
106 "z": "5c765a65.b2ea34",
117 "id": "5870b6d9.9c5e38",
120 "xml": "<outcome value='success'>\n",
123 "x": 1534.031177520752,
124 "y": 352.51519107818604,
125 "z": "5c765a65.b2ea34",
133 "id": "39a6df4a.252ba",
136 "xml": "<outcome value='not-found'>\n",
139 "x": 1541.031177520752,
140 "y": 390.51519107818604,
141 "z": "5c765a65.b2ea34",
149 "id": "f0e345da.109628",
152 "xml": "<outcome value='Other'>\n",
155 "x": 1533.031177520752,
156 "y": 432.51519107818604,
157 "z": "5c765a65.b2ea34",
165 "id": "3e95b312.6100ac",
166 "type": "returnFailure",
167 "name": "return failure",
168 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
170 "x": 1698.031177520752,
171 "y": 394.51519107818604,
172 "z": "5c765a65.b2ea34",
176 "id": "3f665015.a6a47",
177 "type": "returnFailure",
178 "name": "return failure",
179 "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
181 "x": 1691.031177520752,
182 "y": 441.51519107818604,
183 "z": "5c765a65.b2ea34",
187 "id": "e11c9638.70d6a8",
188 "type": "get-resource",
189 "name": "get-resource esr-thirdparty-sdnc",
190 "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",
193 "x": 1310.031265258789,
194 "y": 399.51519799232483,
195 "z": "5c765a65.b2ea34",
205 "id": "25c20f00.fa6cf",
207 "name": "set controller data",
208 "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<parameter name='prop.sdncRestApi.thirdpartySdnc.vendor' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].vendor`\" />\n\n",
210 "x": 1713.5311279296875,
211 "y": 345.01513671875,
212 "z": "5c765a65.b2ea34",
216 "id": "4ae70608.d9f108",
218 "name": "execute RestApiCallNode De-Activate Vxlan Tunnel",
219 "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",
222 "x": 2109.531539916992,
223 "y": 549.5156259536743,
224 "z": "5c765a65.b2ea34",
230 "id": "cb70d9c8.c98578",
231 "type": "switchNode",
232 "name": "switch tunnelType",
233 "xml": "<switch test=\"`$prop.dci-connects.tunnelType`\">\n",
236 "x": 1572.5309982299805,
237 "y": 574.01513671875,
238 "z": "5c765a65.b2ea34",
247 "id": "cd693888.f47b98",
248 "type": "outcomeTrue",
250 "xml": "<outcome value='L3-DCI'>\n",
253 "x": 1785.5311279296875,
254 "y": 554.01513671875,
255 "z": "5c765a65.b2ea34",
263 "id": "41c50c84.a9e5b4",
264 "type": "outcomeTrue",
266 "xml": "<outcome value='L2-DCI'>\n",
269 "x": 1783.530948638916,
270 "y": 626.01513671875,
271 "z": "5c765a65.b2ea34",
279 "id": "c9cdc266.ba884",
281 "name": "execute RestApiCallNode De-Activate Vxlan Tunnel",
282 "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`\" />",
285 "x": 2103.531494140625,
286 "y": 626.5155620574951,
287 "z": "5c765a65.b2ea34",
293 "id": "56ea174e.66fdc8",
295 "name": "for each network-input-parameters",
296 "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",
299 "x": 1064.031234741211,
300 "y": 156.51563167572021,
301 "z": "5c765a65.b2ea34",
309 "id": "4ec4fd77.ad10f4",
312 "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`\"/>",
315 "x": 1247.3646240234375,
317 "z": "5c765a65.b2ea34",
323 "id": "d467ada9.bc47a",
330 "x": 1297.3646774291992,
331 "y": 156.00000762939453,
332 "z": "5c765a65.b2ea34",
341 "id": "dfb8e94f.3061f8",
342 "type": "switchNode",
343 "name": "switch site1_id",
344 "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'site1_id'`\">\n",
347 "x": 1503.6978874206543,
348 "y": 125.00000381469727,
349 "z": "5c765a65.b2ea34",
357 "id": "424ca41d.d8b57c",
358 "type": "outcomeTrue",
360 "xml": "<outcome value='true'>\n",
363 "x": 1704.697982788086,
364 "y": 124.00000286102295,
365 "z": "5c765a65.b2ea34",
373 "id": "3b8b7bc.f6de684",
376 "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",
378 "x": 1878.3643341064453,
379 "y": 123.66654777526855,
380 "z": "5c765a65.b2ea34",
384 "id": "6ee22c97.f3fe94",
385 "type": "switchNode",
386 "name": "switch tunnelType",
387 "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'tunnelType'`\">\n",
390 "x": 1513.6979675292969,
391 "y": 178.00000977516174,
392 "z": "5c765a65.b2ea34",
400 "id": "b8f51f64.5384d",
401 "type": "outcomeTrue",
403 "xml": "<outcome value='true'>\n",
406 "x": 1719.6979675292969,
407 "y": 178.00000977516174,
408 "z": "5c765a65.b2ea34",
416 "id": "a2c0d127.d5692",
418 "name": "set tunnelType",
419 "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",
421 "x": 1888.6980667114258,
422 "y": 178.0000250339508,
423 "z": "5c765a65.b2ea34",
427 "id": "8e2e032c.881de",
429 "name": "block : executeSite1",
430 "xml": "<block atomic=\"true\">",
434 "x": 793.3645858764648,
435 "y": 157.66666412353516,
436 "z": "5c765a65.b2ea34",
445 "id": "c8ad7c0c.e274a",
447 "name": "for each network-input-parameters",
448 "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",
451 "x": 1069.0313186645508,
452 "y": 262.66663551330566,
453 "z": "5c765a65.b2ea34",
461 "id": "323207f2.263c18",
468 "x": 1297.3646850585938,
469 "y": 265.15101146698,
470 "z": "5c765a65.b2ea34",
478 "id": "3c001f99.e738d",
479 "type": "switchNode",
480 "name": "switch site2_id",
481 "xml": "<switch test=\"`$service-data.networks.network[$tmp.nidx].network-data.network-request-input.network-input-parameters.param[$idx].name == 'site2_id'`\">\n",
484 "x": 1498.3646354675293,
485 "y": 265.15099716186523,
486 "z": "5c765a65.b2ea34",
494 "id": "69a68f4d.5d472",
495 "type": "outcomeTrue",
497 "xml": "<outcome value='true'>\n",
500 "x": 1699.364730834961,
501 "y": 264.1509962081909,
502 "z": "5c765a65.b2ea34",
510 "id": "2194fc1d.e7f094",
513 "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",
515 "x": 1873.0310821533203,
516 "y": 263.8175411224365,
517 "z": "5c765a65.b2ea34",
521 "id": "68a7916a.a5311",
523 "name": "block : executeSite1",
524 "xml": "<block atomic=\"true\">",
528 "x": 793.3645935058594,
529 "y": 266.8176679611206,
530 "z": "5c765a65.b2ea34",
539 "id": "c71a68d.91d3a98",
541 "name": "set object-path",
542 "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",
544 "x": 1108.3685760498047,
545 "y": 787.8607425689697,
546 "z": "5c765a65.b2ea34",
550 "id": "8529d043.0aea5",
552 "name": "set networkId",
553 "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n",
555 "x": 1102.654209136963,
556 "y": 750.7178506851196,
557 "z": "5c765a65.b2ea34",
561 "id": "6f360656.1dec58",
563 "name": "block : saveNetworkData",
564 "xml": "<block atomic=\"true\">",
568 "x": 845.3646469116211,
569 "y": 726.6666917800903,
570 "z": "5c765a65.b2ea34",
581 "id": "3da3119d.a99f0e",
584 "info": "Currently deactivate does deletion too, later divide in two phases.",
586 "x": 727.3645858764648,
588 "z": "5c765a65.b2ea34",
592 "id": "b1e695ce.6afdf8",
594 "name": "copy input to service-data",
595 "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",
597 "x": 1138.3646545410156,
598 "y": 707.0000038146973,
599 "z": "5c765a65.b2ea34",
603 "id": "7c7891ee.131d7",
605 "name": "set network-level-oper-status",
606 "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",
608 "x": 1152.3645858764648,
609 "y": 834.9999618530273,
610 "z": "5c765a65.b2ea34",
614 "id": "7aead92.5a32728",
616 "name": "delete underlay configuration in AAI",
617 "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",
622 "z": "5c765a65.b2ea34",
628 "id": "aa980a06.38e9b8",
630 "name": "execute Properties",
631 "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",
636 "z": "5c765a65.b2ea34",
642 "id": "376cb70c.ff4a7",
643 "type": "switchNode",
644 "name": "switch vendor",
645 "xml": "<switch test=\"`$prop.sdncRestApi.thirdpartySdnc.vendor`\">\n",
650 "z": "5c765a65.b2ea34",
658 "id": "26c37886.1a934",
659 "type": "outcomeTrue",
661 "xml": "<outcome value='SPTN'>\n",
666 "z": "5c765a65.b2ea34",