3 "id": "6b847111.14518",
9 "z": "f6aa4435.0ea2a8",
17 "id": "e8032bdd.c514c8",
18 "type": "service-logic",
19 "name": "VNF-API ${project.version}",
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='VNF-API' version='${project.version}'>",
27 "z": "f6aa4435.0ea2a8",
35 "id": "efc24499.7db518",
37 "name": "method vnf-topology-assign",
38 "xml": "<method rpc='vnf-topology-assign' mode='sync'>\n",
43 "z": "f6aa4435.0ea2a8",
51 "id": "291cc045.48f06",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
60 "z": "f6aa4435.0ea2a8",
76 "id": "79076789.383708",
78 "name": "set: order-status = PendingCreate",
79 "xml": "<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"PendingCreate\"/>",
83 "z": "f6aa4435.0ea2a8",
87 "id": "d3435702.674a18",
88 "type": "returnSuccess",
89 "name": "return success",
90 "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
94 "z": "f6aa4435.0ea2a8",
98 "id": "3098b2d1.15998e",
100 "name": "request-action = VNFActivateRequest",
105 "z": "f6aa4435.0ea2a8",
109 "id": "404b9c45.b090b4",
112 "xml": "<outcome value='failure'>\n",
117 "z": "f6aa4435.0ea2a8",
125 "id": "76ee352d.d7924c",
126 "type": "returnFailure",
127 "name": "return failure",
128 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"Encountered error while updating vf-module orchestration-status in AnAI\"/>",
132 "z": "f6aa4435.0ea2a8",
136 "id": "e68cdc52.c407d",
138 "name": "save relationship: l3-network",
139 "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vf-module:relationship-list\" \n\t\tkey=\"vf-module.vf-module-id = $vnf-topology-operation-input.vnf-request-information.vnf-id \n\t\t\tand generic-vnf.vnf-id = $vnf-topology-operation-input.vnf-request-information.generic-vnf-id\" \n\tforce=\"true\" \n\tlocal-only=\"false\">\n\t\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$service-data.vnf-topology-information.vnf-assignments.vnf-networks[$i].network-id`\" />",
144 "z": "f6aa4435.0ea2a8",
152 "id": "37286e8d.29b9f2",
155 "xml": "<outcome value='failure'>\n",
160 "z": "f6aa4435.0ea2a8",
168 "id": "53b3c202.b3d34c",
170 "name": "for i : SERVICE_DATA vnf-networks",
171 "xml": "<for index=\"i\" start=\"0\" end=\"`$service-data.vnf-topology-information.vnf-assignments.vnf-networks_length`\">",
176 "z": "f6aa4435.0ea2a8",
184 "id": "749c3a93.be4684",
185 "type": "returnFailure",
186 "name": "return failure",
187 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Encountered error while saving vf-module l3-network relationship in AnAI with network-id = ' + $service-data.vnf-topology-information.vnf-assignments.vnf-networks[$i].network-id`\"/>",
191 "z": "f6aa4435.0ea2a8",
195 "id": "44f17fbc.617ed",
197 "name": "block : atomic",
198 "xml": "<block atomic='true'>",
204 "z": "f6aa4435.0ea2a8",
213 "id": "a2a13f6d.2a0c8",
215 "name": "delete vf-module: l3-network relationship",
216 "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vf-module:relationship-list\" \n\tkey=\"vf-module.vf-module-id = $vnf-topology-operation-input.vnf-request-information.vnf-id \n\t\tAND generic-vnf.vnf-id = $vnf-topology-operation-input.vnf-request-information.generic-vnf-id \n\t\tAND related-to = l3-network\" \n\tforce=\"true\" \n\tlocal-only=\"false\">",
221 "z": "f6aa4435.0ea2a8",
227 "id": "6511ce13.6b3e7",
229 "name": "update AnAI - vf-module.orchestration-status",
230 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vf-module\" \n\t\tkey=\"vf-module.vf-module-id = $vnf-topology-operation-input.vnf-request-information.vnf-id \n\t\t\tand generic-vnf.vnf-id = $vnf-topology-operation-input.vnf-request-information.generic-vnf-id\" \n\t\tlocal-only=\"false\" >\n\t<parameter name=\"orchestration-status\" value=\"pending-create\" />",
235 "z": "f6aa4435.0ea2a8",
243 "id": "44680508.69c9cc",
245 "name": "block: atomic",
246 "xml": "<block atomic=\"true\">\n",
252 "z": "f6aa4435.0ea2a8",
261 "id": "b261bb64.7dc868",
263 "name": "call: vnf-topology-assign-vfmodule",
264 "xml": "<call module='VNF-API' rpc='vnf-topology-assign-vfmodule' mode='sync' >",
269 "z": "f6aa4435.0ea2a8",
275 "id": "730a4402.7a9fec",
277 "name": "Set final indicator to Y",
278 "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
282 "z": "f6aa4435.0ea2a8",
286 "id": "cc1eb17.357f85",
287 "type": "switchNode",
288 "name": "switch ...SERVICE-DATA vnf-networks[]",
289 "xml": "<switch test=\"`$service-data.vnf-topology-information.vnf-assignments.vnf-networks_length`\">",
294 "z": "f6aa4435.0ea2a8",
302 "id": "e9379e9d.985f7",
305 "xml": "<outcome value=''>",
309 "z": "f6aa4435.0ea2a8",
317 "id": "be746643.61ac78",
319 "name": "set SERVICE-DATA vnf-networks[] = 0",
320 "xml": "<set>\n<parameter name='service-data.vnf-topology-information.vnf-assignments.vnf-networks_length' value='0' />\n",
324 "z": "f6aa4435.0ea2a8",
328 "id": "ec4234b5.37aa58",
330 "name": "GET AnAI - vf-module",
331 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vf-module\" \n\t\tkey=\"vf-module.vf-module-id = $vnf-topology-operation-input.vnf-request-information.vnf-id \n\t\t\tand generic-vnf.vnf-id = $vnf-topology-operation-input.vnf-request-information.generic-vnf-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx=\"tmp.AnAI.vfmodule\" >",
336 "z": "f6aa4435.0ea2a8",
345 "id": "1080e2bd.3bc8dd",
348 "xml": "<outcome value='failure'>\n",
353 "z": "f6aa4435.0ea2a8",
361 "id": "573755d9.256a8c",
364 "xml": "<outcome value='not-found'>\n",
369 "z": "f6aa4435.0ea2a8",
377 "id": "5f7a62b3.c0435c",
378 "type": "returnFailure",
379 "name": "return failure",
380 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Encountered error while querying vf-module from AnAI with vf-module-id = ' + $vnf-topology-operation-input.vnf-request-information.vnf-id + ' and generic-vnf-id = ' + $vnf-topology-operation-input.vnf-request-information.generic-vnf-id`\"/>",
384 "z": "f6aa4435.0ea2a8",
388 "id": "b3b13d2d.da245",
389 "type": "returnFailure",
390 "name": "return failure",
391 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'vf-module not found in AnAI with vf-module-id = ' + $vnf-topology-operation-input.vnf-request-information.vnf-id + ' and generic-vnf-id = ' + $vnf-topology-operation-input.vnf-request-information.generic-vnf-id`\"/>",
395 "z": "f6aa4435.0ea2a8",
399 "id": "e1123f17.441d3",
400 "type": "switchNode",
401 "name": "switch:vnf-id | config == input",
402 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-information.vnf-id == $service-data.vnf-id`\">",
405 "x": 579.8333129882812,
406 "y": 280.00001335144043,
407 "z": "f6aa4435.0ea2a8",
415 "id": "2730cc09.74d084",
416 "type": "returnFailure",
417 "name": "return failure",
418 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value='vnf-id is already present in config-tree'/>",
422 "z": "f6aa4435.0ea2a8",
426 "id": "3a4715d4.547d2a",
427 "type": "outcomeTrue",
429 "xml": "<outcome value='true'>\n",
434 "z": "f6aa4435.0ea2a8",