3 "id": "89575381.22e988",
9 "z": "b2abc2ea.cc1c28",
17 "id": "62fc8ed2.1c1c7",
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": 1184.9996490478516,
26 "y": 431.0000219345093,
27 "z": "b2abc2ea.cc1c28",
35 "id": "9c1ae725.2fe18",
37 "name": "method:bbs-internet-profile-network-topology-operation-create-huawei",
38 "xml": "<method rpc='bbs-internet-profile-network-topology-operation-create-huawei' mode='sync'>\n",
41 "x": 1182.9996643066406,
42 "y": 651.0000991821289,
43 "z": "b2abc2ea.cc1c28",
51 "id": "11984569.4d6beb",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 1606.9998626708984,
59 "y": 650.0000991821289,
60 "z": "b2abc2ea.cc1c28",
71 "id": "673fbee.7c17dc",
73 "name": "call:bbs-internet-profile-network-topology-operation-common-huawei",
74 "xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-internet-profile-network-topology-operation-common-huawei' mode='sync' >\n",
77 "x": 2123.0001525878906,
78 "y": 563.0000190734863,
79 "z": "b2abc2ea.cc1c28",
85 "id": "3a7cb4b2.9f805c",
87 "name": "execute:CreateInternetProfileInstance",
88 "xml": "<execute plugin=\"org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode\" method=\"sendRequest\">\n <parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/bbs-internet-profile-operation.json'`\" />\n <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/CreateInternetProfileInstance'`\" />\n <parameter name=\"contentType\" value=\"application/json\"/>\n <parameter name=\"httpMethod\" value=\"post\"/>\n <parameter name=\"responsePrefix\" value=\"service-result\"/>",
91 "x": 2012.6507873535156,
92 "y": 648.9608345031738,
93 "z": "b2abc2ea.cc1c28",
102 "id": "4e297705.0757e8",
105 "xml": "<outcome value='failure'>\n",
108 "x": 2313.9837684631348,
109 "y": 648.9608345031738,
110 "z": "b2abc2ea.cc1c28",
118 "id": "5cb835fe.0ebfdc",
121 "xml": "<outcome value='success'>\n",
124 "x": 2322.9836807250977,
125 "y": 723.9608364105225,
126 "z": "b2abc2ea.cc1c28",
134 "id": "8f2db25f.f4b24",
135 "type": "switchNode",
136 "name": "switch:service-result",
137 "xml": "<switch test=\"`$service-result.errors.error[0].error-message`\">\n",
140 "x": 2557.999801635742,
141 "y": 723.0001316070557,
142 "z": "b2abc2ea.cc1c28",
151 "id": "340c0c87.92c8b4",
152 "type": "returnFailure",
153 "name": "return failure",
154 "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error failed to call CreateInternetProfileInstance\" />\n",
156 "x": 2826.250898361206,
157 "y": 649.250337600708,
158 "z": "b2abc2ea.cc1c28",
162 "id": "d3ab0cf2.457f3",
165 "xml": "<outcome value='Other'>\n",
168 "x": 2784.000141143799,
169 "y": 724.0002250671387,
170 "z": "b2abc2ea.cc1c28",
178 "id": "dee7fa1f.4d78b",
181 "xml": "<outcome value=''>\n",
184 "x": 2793.9998474121094,
185 "y": 810.0000915527344,
186 "z": "b2abc2ea.cc1c28",
194 "id": "957b2d71.78c288",
195 "type": "returnFailure",
196 "name": "return failure",
197 "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"`'Error CreateInternetProfileInstance return: '+$service-result.errors.error[0].error-message`\" />\n\n",
199 "x": 2970.4998092651367,
200 "y": 724.0000619888306,
201 "z": "b2abc2ea.cc1c28",
205 "id": "e5fb5f82.18f85",
212 "x": 2952.166477203369,
213 "y": 811.0000667572021,
214 "z": "b2abc2ea.cc1c28",
220 "id": "9d9c04a.550a178",
221 "type": "returnSuccess",
222 "name": "return success",
223 "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",
225 "x": 1917.4999237060547,
226 "y": 1448.000192642212,
227 "z": "b2abc2ea.cc1c28",
231 "id": "c44ed27a.d90d8",
233 "name": "save:generic-vnf",
234 "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"generic-vnf\" key=\"generic-vnf.vnf-id = $vnf-id\" >\n<parameter name= \"vnf-id\" value = \"`$vnf-id`\"/>\n<parameter name= \"vnf-name\" value = \"`$vnf-name`\"/>\n<parameter name= \"vnf-type\" value = \"InternetProfile\"/>\n<parameter name= \"service-id\" value = \"`$network-topology-operation-input.service-information.service-id`\"/><!--to be clarified,service-id different from service-instance-id -->\n<parameter name= \"prov-status\" value = \"ACTIVE\"/>\n<parameter name= \"orchestration-status\" value = \"Active\"/>\n<parameter name= \"ipv4-oam-address\" value = \"169.254.236.13\"/>\n<parameter name= \"in-maint\" value = \"false\" />\n<parameter name= \"is-closed-loop-disabled\" value = \"false\" />\n<parameter name= \"model-invariant-id\" value = \"`$network-topology-operation-input.network-information.onap-model-information.model-invariant-uuid`\"/>\n<parameter name= \"model-version-id\" value = \"`$network-topology-operation-input.network-information.onap-model-information.model-uuid`\"/>\n<parameter name= \"model-customization-id\" value = \"`$network-topology-operation-input.network-information.onap-model-information.model-customization-uuid`\"/>",
237 "x": 2196.0312366485596,
238 "y": 1114.031213760376,
239 "z": "b2abc2ea.cc1c28",
249 "id": "30abcda.3452c32",
252 "xml": "<outcome value='failure'>\n",
255 "x": 2432.253091812134,
256 "y": 985.9199714660645,
257 "z": "b2abc2ea.cc1c28",
265 "id": "d057da2e.575678",
268 "xml": "<outcome value='not-found'>\n",
271 "x": 2443.228910446167,
272 "y": 1045.9358277320862,
273 "z": "b2abc2ea.cc1c28",
281 "id": "819a16a6.0c9978",
282 "type": "returnFailure",
283 "name": "return failure",
284 "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=\"Failure calling AAI to save generic-vnf\" />\n",
286 "x": 2668.3956394195557,
287 "y": 985.4914364814758,
288 "z": "b2abc2ea.cc1c28",
292 "id": "c90efb31.bd2ff8",
293 "type": "returnFailure",
294 "name": "return failure",
295 "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=\"generic-vnf instance does not exist in AAI\" />\n",
297 "x": 2663.2764377593994,
298 "y": 1046.412142276764,
299 "z": "b2abc2ea.cc1c28",
303 "id": "d2286b35.a71d48",
306 "xml": "<outcome value='success'>\n",
309 "x": 2436.8397159576416,
310 "y": 1111.0623078346252,
311 "z": "b2abc2ea.cc1c28",
319 "id": "cc6c45ae.c943c8",
322 "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n <parameter name=\"field1\" value=\"save generic-vnf success!\" />\n ",
325 "x": 2644.8399696350098,
326 "y": 1109.0624370574951,
327 "z": "b2abc2ea.cc1c28",
333 "id": "b746f152.4e5ac",
335 "name": "save:metadata",
336 "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"service-instance:metadata\"\n key=\"service-instance.service-instance-id = $network-topology-operation-input.service-information.service-id \n\tAND customer.global-customer-id = $network-topology-operation-input.service-information.global-customer-id\n\t AND service-subscription.service-type = $network-topology-operation-input.service-information.subscription-service-type\n\t AND service-instance.service-instance-id = $network-topology-operation-input.service-information.service-instance-id\" force=\"true\" pfx=\"tmp.AnAI-data\">\n <parameter name=\"metadata.metadatum[0].metaname\" value=\"service-type\" />\n <parameter name=\"metadata.metadatum[0].metaval\" value=\"`$prop.bbs.service_type`\" />\n <parameter name=\"metadata.metadatum[1].metaname\" value=\"up-speed\" />\n <parameter name=\"metadata.metadatum[1].metaval\" value=\"`$prop.bbs.up_speed`\" />\n <parameter name=\"metadata.metadatum[2].metaname\" value=\"down-speed\" />\n <parameter name=\"metadata.metadatum[2].metaval\" value=\"`$prop.bbs.down_speed`\" />\n <parameter name=\"metadata.metadatum[3].metaname\" value=\"cvlan\" />\n <parameter name=\"metadata.metadatum[3].metaval\" value=\"`$prop.bbs.c_vlan`\" />\n <parameter name=\"metadata.metadatum[4].metaname\" value=\"svlan\" />\n <parameter name=\"metadata.metadatum[4].metaval\" value=\"`$prop.bbs.s_vlan`\" />\n <parameter name=\"metadata.metadatum[5].metaname\" value=\"expected-ont-id\" />\n <parameter name=\"metadata.metadatum[5].metaval\" value=\"`$prop.bbs.ont_sn`\" />\n <parameter name=\"metadata.metadatum[6].metaname\" value=\"rgw-mac-address\" />\n <parameter name=\"metadata.metadatum[6].metaval\" value=\"`$prop.bbs.mac`\" />",
339 "x": 2194.5305881500244,
340 "y": 1266.0309810638428,
341 "z": "b2abc2ea.cc1c28",
351 "id": "260fcebb.248022",
354 "xml": "<outcome value='failure'>\n",
357 "x": 2425.006097793579,
358 "y": 1197.3955845832825,
359 "z": "b2abc2ea.cc1c28",
367 "id": "e5ef08e9.671048",
370 "xml": "<outcome value='not-found'>\n",
373 "x": 2436.982259750366,
374 "y": 1267.4115180969238,
375 "z": "b2abc2ea.cc1c28",
383 "id": "e624300e.f97b6",
384 "type": "returnFailure",
385 "name": "return failure",
386 "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=\"Failure calling AAI to save metadatum\" />\n",
388 "x": 2665.1488933563232,
389 "y": 1195.967086315155,
390 "z": "b2abc2ea.cc1c28",
394 "id": "15c9d9c7.1da386",
395 "type": "returnFailure",
396 "name": "return failure",
397 "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=\"metadatum instance does not exist in AAI\" />\n",
399 "x": 2662.0297927856445,
400 "y": 1266.8877544403076,
401 "z": "b2abc2ea.cc1c28",
405 "id": "a5459cad.aad38",
408 "xml": "<outcome value='success'>\n",
411 "x": 2431.592969894409,
412 "y": 1337.5379576683044,
413 "z": "b2abc2ea.cc1c28",
421 "id": "6f08d5bf.9a889c",
424 "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n <parameter name=\"field1\" value=\"save metadatum success!\" />\n ",
427 "x": 2642.592969894409,
428 "y": 1337.5379576683044,
429 "z": "b2abc2ea.cc1c28",
435 "id": "7117f977.4492b8",
442 "x": 1891.164836883545,
443 "y": 987.9997653961182,
444 "z": "b2abc2ea.cc1c28",
455 "id": "d803f78c.61a4a8",
457 "name": "set:variables",
458 "xml": "<set>\n<parameter name='vnf-id' value=\"`$prop.random-data-list[3]`\"/>\n<parameter name='vnf-name' value=\"`'vnf-'+$prop.random-data-list[4]`\"/>\n",
460 "x": 2179.1651859283447,
461 "y": 984.332763671875,
462 "z": "b2abc2ea.cc1c28",
466 "id": "a1487411.171428",
468 "name": "execute:generate",
469 "xml": " <execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\">\n <parameter name=\"ctx-destination\" value=\"prop.random-data\"/>",
472 "x": 2200.529399871826,
473 "y": 910.030613899231,
474 "z": "b2abc2ea.cc1c28",
482 "id": "916e0fd0.b9f37",
485 "xml": "<outcome value='success'>\n",
488 "x": 2429.529342651367,
489 "y": 911.0305881500244,
490 "z": "b2abc2ea.cc1c28",
498 "id": "8e69817d.115b9",
501 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n <parameter name=\"ctx_memory_result_key\" value=\"prop.random-data-list\"/>\n <parameter name=\"original_string\" value=\"`$prop.random-data`\"/>\n <parameter name=\"regex\" value=\"-\"/>\n",
504 "x": 2620.529399871826,
505 "y": 909.0305881500244,
506 "z": "b2abc2ea.cc1c28",
514 "id": "3a61e04b.9260a",
517 "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n <parameter name=\"field1\" value=\"`$prop.random-data`\" />\n ",
520 "x": 2952.529462814331,
521 "y": 907.0306491851807,
522 "z": "b2abc2ea.cc1c28",
528 "id": "52b18bce.20b054",
531 "xml": "<outcome value='success'>\n",
534 "x": 2787.52933883667,
535 "y": 908.0306186676025,
536 "z": "b2abc2ea.cc1c28",