3 "id": "a336222.57d48e",
17 "id": "825ef52.3a00b08",
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": 583.0308990478516,
26 "y": 257.0312719345093,
27 "z": "aab7ce65.cac3d",
35 "id": "b1e4bf68.32817",
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": 581.0309143066406,
42 "y": 477.0313491821289,
43 "z": "aab7ce65.cac3d",
51 "id": "5c27c5cc.716a9c",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 1005.0311126708984,
59 "y": 476.0313491821289,
60 "z": "aab7ce65.cac3d",
71 "id": "df661865.6ac258",
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": 1521.0314025878906,
78 "y": 389.0312690734863,
79 "z": "aab7ce65.cac3d",
85 "id": "ace54c5f.9cbb7",
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": 1410.6820373535156,
92 "y": 474.9920845031738,
93 "z": "aab7ce65.cac3d",
102 "id": "632d7421.f9066c",
105 "xml": "<outcome value='failure'>\n",
108 "x": 1712.0150184631348,
109 "y": 474.9920845031738,
110 "z": "aab7ce65.cac3d",
118 "id": "d900182d.b78f38",
121 "xml": "<outcome value='success'>\n",
124 "x": 1721.0149307250977,
125 "y": 549.9920864105225,
126 "z": "aab7ce65.cac3d",
134 "id": "3236773.1989488",
135 "type": "switchNode",
136 "name": "switch:service-result",
137 "xml": "<switch test=\"`$service-result.errors.error[0].error-message`\">\n",
140 "x": 1956.0310516357422,
141 "y": 549.0313816070557,
142 "z": "aab7ce65.cac3d",
151 "id": "ab6b3ce2.e4f21",
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": 2224.282148361206,
157 "y": 475.281587600708,
158 "z": "aab7ce65.cac3d",
162 "id": "1a5d7765.109479",
165 "xml": "<outcome value='Other'>\n",
168 "x": 2182.031391143799,
169 "y": 550.0314750671387,
170 "z": "aab7ce65.cac3d",
178 "id": "57a6d69.9382728",
181 "xml": "<outcome value=''>\n",
184 "x": 2192.0310974121094,
185 "y": 636.0313415527344,
186 "z": "aab7ce65.cac3d",
194 "id": "8eb57923.9623f8",
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": 2368.5310592651367,
200 "y": 550.0313119888306,
201 "z": "aab7ce65.cac3d",
205 "id": "4e694f8b.fdd2b",
212 "x": 2350.197727203369,
213 "y": 637.0313167572021,
214 "z": "aab7ce65.cac3d",
220 "id": "b56478eb.baf7f8",
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": 1315.5311737060547,
226 "y": 1274.031442642212,
227 "z": "aab7ce65.cac3d",
231 "id": "7577071d.7f2498",
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`\"/>\n<parameter name= \"prov-status\" value = \"ACTIVE\"/>\n<parameter name= \"orchestration-status\" value = \"Active\"/>\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": 1594.0624866485596,
238 "y": 940.062463760376,
239 "z": "aab7ce65.cac3d",
249 "id": "de67643d.0a9048",
252 "xml": "<outcome value='failure'>\n",
255 "x": 1830.2843418121338,
256 "y": 811.9512214660645,
257 "z": "aab7ce65.cac3d",
265 "id": "508bcbf7.e76f04",
268 "xml": "<outcome value='not-found'>\n",
271 "x": 1841.260160446167,
272 "y": 871.9670777320862,
273 "z": "aab7ce65.cac3d",
281 "id": "fe5bd03.02c593",
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": 2066.4268894195557,
287 "y": 811.5226864814758,
288 "z": "aab7ce65.cac3d",
292 "id": "703dd65f.36e058",
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": 2061.3076877593994,
298 "y": 872.4433922767639,
299 "z": "aab7ce65.cac3d",
303 "id": "840edff8.2907d",
306 "xml": "<outcome value='success'>\n",
309 "x": 1834.8709659576416,
310 "y": 937.0935578346252,
311 "z": "aab7ce65.cac3d",
317 "id": "d7aa4847.5acd58",
320 "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 ",
323 "x": 2042.8712196350098,
324 "y": 935.0936870574951,
325 "z": "aab7ce65.cac3d",
331 "id": "5fc61219.65927c",
333 "name": "save:metadata",
334 "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`\" />",
337 "x": 1592.5618381500244,
338 "y": 1092.0622310638428,
339 "z": "aab7ce65.cac3d",
349 "id": "9b60d426.7e33d8",
352 "xml": "<outcome value='failure'>\n",
355 "x": 1823.037347793579,
356 "y": 1023.4268345832825,
357 "z": "aab7ce65.cac3d",
365 "id": "c2480a0e.1b1478",
368 "xml": "<outcome value='not-found'>\n",
371 "x": 1835.0135097503662,
372 "y": 1093.4427680969238,
373 "z": "aab7ce65.cac3d",
381 "id": "54deb41c.97ae6c",
382 "type": "returnFailure",
383 "name": "return failure",
384 "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",
386 "x": 2063.1801433563232,
387 "y": 1021.998336315155,
388 "z": "aab7ce65.cac3d",
392 "id": "15a91907.6a2f77",
393 "type": "returnFailure",
394 "name": "return failure",
395 "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",
397 "x": 2060.0610427856445,
398 "y": 1092.9190044403076,
399 "z": "aab7ce65.cac3d",
403 "id": "a17ec97.b6aa738",
406 "xml": "<outcome value='success'>\n",
409 "x": 1829.6242198944092,
410 "y": 1163.5692076683044,
411 "z": "aab7ce65.cac3d",
417 "id": "e577d9f5.accf98",
420 "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 ",
423 "x": 2040.6242198944092,
424 "y": 1163.5692076683044,
425 "z": "aab7ce65.cac3d",
431 "id": "67bc1d3.308aae4",
438 "x": 1289.196086883545,
439 "y": 814.0310153961182,
440 "z": "aab7ce65.cac3d",
452 "id": "6fa2d919.edbe98",
454 "name": "set:variables",
455 "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",
457 "x": 1577.1964359283447,
458 "y": 810.364013671875,
459 "z": "aab7ce65.cac3d",
463 "id": "a47acb9b.a35478",
465 "name": "execute:generate",
466 "xml": " <execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\">\n <parameter name=\"ctx-destination\" value=\"prop.random-data\"/>",
469 "x": 1598.5606498718262,
470 "y": 736.061863899231,
471 "z": "aab7ce65.cac3d",
479 "id": "b904a8e6.00ba98",
482 "xml": "<outcome value='success'>\n",
485 "x": 1827.5605926513672,
486 "y": 737.0618381500244,
487 "z": "aab7ce65.cac3d",
495 "id": "973e3b14.e96fb8",
498 "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",
501 "x": 2018.5606498718262,
502 "y": 735.0618381500244,
503 "z": "aab7ce65.cac3d",
511 "id": "61f078a0.340828",
514 "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 ",
517 "x": 2350.560712814331,
518 "y": 733.0618991851807,
519 "z": "aab7ce65.cac3d",
525 "id": "dd3fe058.06716",
528 "xml": "<outcome value='success'>\n",
531 "x": 2185.56058883667,
532 "y": 734.0618686676025,
533 "z": "aab7ce65.cac3d",
539 "id": "3aa091fc.f969ae",
541 "name": "save:relationship",
542 "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"service-instance:relationship-list\" \n key=\"service-instance.service-instance-id = $network-topology-operation-input.service-information.service-id\n AND customer.global-customer-id = $network-topology-operation-input.service-information.global-customer-id\n AND service-subscription.service-type = $network-topology-operation-input.service-information.subscription-service-type \n AND service-instance.service-instance-id = $network-topology-operation-input.service-information.service-instance-id\" force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"generic-vnf\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/generic-vnfs/generic-vnf/' + $vnf-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"generic-vnf.vnf-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$vnf-id`\" />",
547 "z": "aab7ce65.cac3d",
557 "id": "3b4ae4d5.3b347c",
560 "xml": "<outcome value='failure'>\n",
563 "x": 1768.5067596435547,
564 "y": 1243.3958535194397,
565 "z": "aab7ce65.cac3d",
573 "id": "987fe733.92a5d8",
576 "xml": "<outcome value='not-found'>\n",
579 "x": 1780.4829216003418,
580 "y": 1313.411787033081,
581 "z": "aab7ce65.cac3d",
589 "id": "2856d517.9eb7ba",
590 "type": "returnFailure",
591 "name": "return failure",
592 "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",
594 "x": 2008.6495552062988,
595 "y": 1241.9673552513123,
596 "z": "aab7ce65.cac3d",
600 "id": "43a5ebe7.d55dc4",
601 "type": "returnFailure",
602 "name": "return failure",
603 "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",
605 "x": 2005.5304546356201,
606 "y": 1312.8880233764648,
607 "z": "aab7ce65.cac3d",
611 "id": "73836da.8f43494",
614 "xml": "<outcome value='success'>\n",
617 "x": 1775.0936317443848,
618 "y": 1383.5382266044617,
619 "z": "aab7ce65.cac3d",