3 "id": "7366a05a.d05f2",
\r
8 "y": 47.000000953674316,
\r
9 "z": "b6c1c029.17cd1",
\r
17 "id": "e3bd5c4c.51008",
\r
18 "type": "service-logic",
\r
19 "name": "GENERIC-RESOURCE-API ${project.version}",
\r
20 "module": "GENERIC-RESOURCE-API",
\r
21 "version": "${project.version}",
\r
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}'>",
\r
25 "x": 267.31695556640625,
\r
26 "y": 109.23811054229736,
\r
27 "z": "b6c1c029.17cd1",
\r
35 "id": "1596b30b.8477dd",
\r
37 "name": "method sdwan-vf-operation-device-activate",
\r
38 "xml": "<method rpc='sdwan-vf-operation-device-activate' mode='sync'>\n",
\r
42 "y": 203.58634281158447,
\r
43 "z": "b6c1c029.17cd1",
\r
51 "id": "f1b88e0f.347c2",
\r
53 "name": "block : atomic",
\r
54 "xml": "<block atomic=\"true\">",
\r
57 "x": 265.6979217529297,
\r
58 "y": 388.6667146682739,
\r
59 "z": "b6c1c029.17cd1",
\r
84 "id": "c5688842.c82648",
\r
86 "name": "for each vnf",
\r
87 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
\r
90 "x": 594.0626163482666,
\r
91 "y": 256.26913380622864,
\r
92 "z": "b6c1c029.17cd1",
\r
100 "id": "bfdad516.55b728",
\r
101 "type": "switchNode",
\r
102 "name": "switch vnf_length",
\r
103 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
\r
106 "x": 616.0312690734863,
\r
107 "y": 222.0000114440918,
\r
108 "z": "b6c1c029.17cd1",
\r
116 "id": "46627c7a.59d634",
\r
119 "xml": "<outcome value=''>\n",
\r
123 "y": 221.00000095367432,
\r
124 "z": "b6c1c029.17cd1",
\r
132 "id": "b77e7e6.92ec98",
\r
133 "type": "returnFailure",
\r
134 "name": "return failure",
\r
135 "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
\r
137 "x": 945.4599761962891,
\r
138 "y": 222.14291858673096,
\r
139 "z": "b6c1c029.17cd1",
\r
143 "id": "30e4aafc.b14b26",
\r
144 "type": "switchNode",
\r
145 "name": "switch this vnf-id == input vnf-id",
\r
146 "xml": "<switch test=\"`$service-data.vnfs.vnf[$idx].vnf-id == $vf-module-topology-operation-input.vnf-information.vnf-id`\"> \n",
\r
149 "x": 817.0312671661377,
\r
150 "y": 256.9999988079071,
\r
151 "z": "b6c1c029.17cd1",
\r
159 "id": "507916d8.8412f8",
\r
160 "type": "outcomeTrue",
\r
162 "xml": "<outcome value='true'>\n",
\r
165 "x": 1032.0312519073486,
\r
166 "y": 254.99999260902405,
\r
167 "z": "b6c1c029.17cd1",
\r
175 "id": "1abf62f5.2b1d9d",
\r
177 "name": "set vnf-index",
\r
178 "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
\r
180 "x": 1196.0312519073486,
\r
181 "y": 249.99999260902405,
\r
182 "z": "b6c1c029.17cd1",
\r
186 "id": "43050414.43a59c",
\r
187 "type": "switchNode",
\r
188 "name": "switch vf-modules.vf-module_length",
\r
189 "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`'>\n",
\r
192 "x": 661.0312576293945,
\r
193 "y": 354.99999141693115,
\r
194 "z": "b6c1c029.17cd1",
\r
204 "id": "a2e81bf7.01bb98",
\r
207 "xml": "<outcome value=''>\n",
\r
211 "y": 389.0000009536743,
\r
212 "z": "b6c1c029.17cd1",
\r
220 "id": "e26b2607.2a2748",
\r
223 "xml": "<outcome value='0'>\n",
\r
226 "x": 888.0312461853027,
\r
228 "z": "b6c1c029.17cd1",
\r
236 "id": "837a0388.6ec21",
\r
237 "type": "returnFailure",
\r
238 "name": "return failure",
\r
239 "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
\r
242 "y": 349.0000009536743,
\r
243 "z": "b6c1c029.17cd1",
\r
247 "id": "41da8842.556048",
\r
250 "xml": "<outcome value='Other'>\n",
\r
254 "y": 450.0000009536743,
\r
255 "z": "b6c1c029.17cd1",
\r
263 "id": "7a6fd972.23f808",
\r
265 "name": "set vf-module_length",
\r
266 "xml": "<set>\n<parameter name='vf-module-length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module_length`' />\n\n",
\r
268 "x": 1237.031265258789,
\r
269 "y": 448.0000149011612,
\r
270 "z": "b6c1c029.17cd1",
\r
274 "id": "1f4e644a.d7030c",
\r
276 "name": "block : atomic",
\r
277 "xml": "<block atomic=\"true\">",
\r
280 "x": 1044.0312957763672,
\r
281 "y": 446.99999237060547,
\r
282 "z": "b6c1c029.17cd1",
\r
292 "id": "bc92f3b3.aa654",
\r
294 "name": "for each existing vf-index",
\r
295 "xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",
\r
298 "x": 1256.031234741211,
\r
299 "y": 500.99999141693115,
\r
300 "z": "b6c1c029.17cd1",
\r
308 "id": "af0c0219.f27c4",
\r
309 "type": "switchNode",
\r
310 "name": "switch vf-module-id found",
\r
311 "xml": "<switch test=\"`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-id == $vf-module-topology-operation-input.vf-module-information.vf-module-id`\">\n",
\r
315 "y": 496.0000009536743,
\r
316 "z": "b6c1c029.17cd1",
\r
324 "id": "c50413ad.70d3b",
\r
325 "type": "outcomeTrue",
\r
327 "xml": "<outcome value='true'>\n",
\r
330 "x": 1697.0312786102295,
\r
331 "y": 483.00000762939453,
\r
332 "z": "b6c1c029.17cd1",
\r
340 "id": "c8462944.d3d558",
\r
342 "name": "block : atomic",
\r
343 "xml": "<block atomic=\"true\">",
\r
347 "y": 485.0000009536743,
\r
348 "z": "b6c1c029.17cd1",
\r
358 "id": "e39cc1dd.da5e8",
\r
360 "name": "set tmp.vidx and ctx.vf-module-data",
\r
361 "xml": "<set>\n<parameter name='tmp.vidx' value='`$idx`' />\n<parameter name='ctx.vf-module-data.' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$idx].vf-module-data.`' />\n",
\r
363 "x": 2102.0314903259277,
\r
364 "y": 413.0000123977661,
\r
365 "z": "b6c1c029.17cd1",
\r
369 "id": "3673863c.1c835a",
\r
371 "name": "set vf-module-request-input.",
\r
372 "xml": "<set>\n<parameter name='vf-module-request-input.' value='`$ctx.vf-module-data.vf-module-request-input.`' />\n\n",
\r
374 "x": 2086.0313682556152,
\r
375 "y": 474.0000581741333,
\r
376 "z": "b6c1c029.17cd1",
\r
380 "id": "ccfc5c32.59e5f",
\r
382 "name": "call sdwan-get-vf-module-device-param",
\r
383 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-vf-module-device-param' mode='sync' >\n",
\r
386 "x": 2118.0315475463867,
\r
387 "y": 531.0000734329224,
\r
388 "z": "b6c1c029.17cd1",
\r
394 "id": "18e2b9c5.c15ab6",
\r
395 "type": "switchNode",
\r
396 "name": "switch tmp.vidx ",
\r
397 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
\r
400 "x": 598.0624961853027,
\r
401 "y": 489.0160655975342,
\r
402 "z": "b6c1c029.17cd1",
\r
410 "id": "8c2388b0.edeb08",
\r
413 "xml": "<outcome value=''>\n",
\r
416 "x": 745.491138458252,
\r
417 "y": 488.58747577667236,
\r
418 "z": "b6c1c029.17cd1",
\r
426 "id": "9db89e13.5611a",
\r
427 "type": "returnFailure",
\r
428 "name": "return failure",
\r
429 "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=\"vnf-topology-operation-input.vnf-request-input.vnf-id not found in service-data\" />\n",
\r
431 "x": 894.919864654541,
\r
432 "y": 489.730393409729,
\r
433 "z": "b6c1c029.17cd1",
\r
437 "id": "ec973dfa.2bb02",
\r
439 "name": "execute Properties",
\r
440 "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",
\r
443 "x": 603.0625228881836,
\r
444 "y": 535.016065120697,
\r
445 "z": "b6c1c029.17cd1",
\r
451 "id": "c738eb6c.67a768",
\r
453 "name": "make sure this VNF doesn't exist already",
\r
456 "x": 1343.4479675292969,
\r
457 "y": 984.2502048015594,
\r
458 "z": "b6c1c029.17cd1",
\r
462 "id": "eb6bd181.9cba1",
\r
464 "name": "execute RestApiCallNode Create Devcie Instance",
\r
465 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-device.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v3/devices'`\" />\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=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"deviceResp\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
\r
468 "x": 692.0354614257812,
\r
469 "y": 990.4241485595703,
\r
470 "z": "b6c1c029.17cd1",
\r
479 "id": "faa94bad.fa2558",
\r
481 "name": "block : atomic",
\r
482 "xml": "<block atomic=\"true\">",
\r
486 "x": 1110.701889038086,
\r
487 "y": 958.3127992153168,
\r
488 "z": "b6c1c029.17cd1",
\r
494 "id": "706df2c3.ee526c",
\r
495 "type": "returnFailure",
\r
496 "name": "return failure",
\r
497 "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 Activate Device rest api\" />\n",
\r
499 "x": 1112.146469116211,
\r
500 "y": 1008.8683316707611,
\r
501 "z": "b6c1c029.17cd1",
\r
505 "id": "6960119.9f640f",
\r
508 "xml": "<outcome value='failure'>\n",
\r
511 "x": 959.146312713623,
\r
512 "y": 1011.8682858943939,
\r
513 "z": "b6c1c029.17cd1",
\r
521 "id": "5fa43c53.6045a4",
\r
524 "xml": "<outcome value='success'>\n",
\r
527 "x": 958.5908279418945,
\r
528 "y": 955.5349977016449,
\r
529 "z": "b6c1c029.17cd1",
\r
537 "id": "1fac2e8e.1cd261",
\r
538 "type": "returnSuccess",
\r
539 "name": "return success",
\r
540 "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",
\r
542 "x": 588.0314846038818,
\r
543 "y": 1413.5002839565277,
\r
544 "z": "b6c1c029.17cd1",
\r
548 "id": "96bc0bad.d1b6d8",
\r
550 "name": "copy input data to service data",
\r
551 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.sdnc-request-header.' value='`$vf-module-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.request-information.' value='`$vf-module-topology-operation-input.request-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.' value='`$vf-module-topology-operation-input.service-information.`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-information.' value='`$vf-module-topology-operation-input.vf-module-information.`' />\n",
\r
553 "x": 633.3647422790527,
\r
554 "y": 1303.8336417675018,
\r
555 "z": "b6c1c029.17cd1",
\r
559 "id": "503505b2.fa936c",
\r
561 "name": "update deviceInstance configuration in AAI",
\r
562 "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='device' \n key='device.device-id = $vf-module-topology-operation-input.vf-module-information.vf-module-id' >\n<parameter name='device-id' value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`' />\n<parameter name='operational-status' value='Active' />\n",
\r
565 "x": 680.6982574462891,
\r
566 "y": 1352.723069190979,
\r
567 "z": "b6c1c029.17cd1",
\r
573 "id": "6e068351.b1d5ac",
\r
575 "name": "set deviceId to service data",
\r
576 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length].name' value=\"deviceId\" />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param[$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length].value' value='`$deviceResp.success[0].id`' />\n",
\r
578 "x": 629.6983680725098,
\r
579 "y": 1087.7538211345673,
\r
580 "z": "b6c1c029.17cd1",
\r
584 "id": "c8253bec.651ed8",
\r
586 "name": "set vf-module-object-path",
\r
587 "xml": "<set>\n<parameter name='vf-module-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vf-modules/vf-module/'\n + $vf-module-topology-operation-input.vf-module-information.vf-module-id\n + '/vf-module-data/vf-module-topology/'`\"/>\n<parameter name='vnf-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/vnfs/vnf/'\n + $service-data.vnfs.vnf[$vnf-index].vnf-id\n + '/vnf-data/vnf-topology/'`\"/>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $vf-module-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
\r
589 "x": 612.0314788818359,
\r
590 "y": 1246.2504107952118,
\r
591 "z": "b6c1c029.17cd1",
\r
595 "id": "79ce744.767cc8c",
\r
596 "type": "get-resource",
\r
597 "name": "get-resource esr-thirdparty-sdnc",
\r
598 "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 = 'SDWANController' AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
\r
601 "x": 634.0360374450684,
\r
602 "y": 583.8936786651611,
\r
603 "z": "b6c1c029.17cd1",
\r
613 "id": "27c395d1.cc99aa",
\r
616 "xml": "<outcome value='success'>\n",
\r
619 "x": 856.0360660552979,
\r
620 "y": 542.8936786651611,
\r
621 "z": "b6c1c029.17cd1",
\r
629 "id": "a15c5f02.651f",
\r
630 "type": "not-found",
\r
631 "name": "not-found",
\r
632 "xml": "<outcome value='not-found'>\n",
\r
635 "x": 859.5270328521729,
\r
636 "y": 590.4677143096924,
\r
637 "z": "b6c1c029.17cd1",
\r
645 "id": "8a9a7c18.8150d",
\r
648 "xml": "<outcome value='Other'>\n",
\r
651 "x": 854.8600406646729,
\r
652 "y": 631.8010272979736,
\r
653 "z": "b6c1c029.17cd1",
\r
661 "id": "fcc107ae.11a1d8",
\r
663 "name": "set controller data",
\r
664 "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.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",
\r
666 "x": 1053.536127090454,
\r
667 "y": 530.8936786651611,
\r
668 "z": "b6c1c029.17cd1",
\r
672 "id": "a0280dad.4672",
\r
673 "type": "returnFailure",
\r
674 "name": "return failure",
\r
675 "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=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
\r
677 "x": 1036.0984439849854,
\r
678 "y": 578.7534503936768,
\r
679 "z": "b6c1c029.17cd1",
\r
683 "id": "59e30e0a.ba719",
\r
684 "type": "returnFailure",
\r
685 "name": "return failure",
\r
686 "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=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
\r
688 "x": 1042.6325969696045,
\r
689 "y": 627.2402200698853,
\r
690 "z": "b6c1c029.17cd1",
\r
694 "id": "bb4fec85.4dd7b",
\r
696 "name": "execute RestApiCallNode Get token",
\r
697 "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\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
\r
700 "x": 634.0360565185547,
\r
701 "y": 691.8935861587524,
\r
702 "z": "b6c1c029.17cd1",
\r
711 "id": "e3fdea02.bef5f8",
\r
714 "xml": "<outcome value='success'>\n",
\r
717 "x": 873.0361289978027,
\r
718 "y": 669.8936176300049,
\r
719 "z": "b6c1c029.17cd1",
\r
727 "id": "510fc414.2ace1c",
\r
730 "xml": "<outcome value='failure'>\n",
\r
733 "x": 865.2861289978027,
\r
734 "y": 723.5365009307861,
\r
735 "z": "b6c1c029.17cd1",
\r
743 "id": "59b687d7.302ac8",
\r
745 "name": "set token-id",
\r
746 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
\r
748 "x": 1023.0360565185547,
\r
749 "y": 670.8935861587524,
\r
750 "z": "b6c1c029.17cd1",
\r
754 "id": "7a4deae6.6f0ce4",
\r
755 "type": "returnFailure",
\r
756 "name": "return failure",
\r
757 "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",
\r
759 "x": 1018.0361289978027,
\r
760 "y": 723.2865619659424,
\r
761 "z": "b6c1c029.17cd1",
\r
765 "id": "c48e860.5ae0278",
\r
767 "name": "block : atomic",
\r
768 "xml": "<block atomic=\"true\">\n",
\r
772 "x": 573.7860565185547,
\r
773 "y": 900.8937749862671,
\r
774 "z": "b6c1c029.17cd1",
\r
782 "id": "bc9e7395.79f5e",
\r
784 "name": "execute RestApiCallNode Create network orchestration",
\r
785 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-network-orchestration.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v1/sdwan/net/network-orchestration-resources'`\" />\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=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"orchestration-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
\r
788 "x": 892.2861480712891,
\r
789 "y": 903.8939361572266,
\r
790 "z": "b6c1c029.17cd1",
\r
796 "id": "dcfcf0d8.7769b",
\r
797 "type": "get-resource",
\r
798 "name": "get-resource service-subscription",
\r
799 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.global-customer-id'\n force=\"true\" pfx=\"tmp.AnAI-data\">\n",
\r
802 "x": 628.107551574707,
\r
803 "y": 805.5722675323486,
\r
804 "z": "b6c1c029.17cd1",
\r
813 "id": "14d246ea.4d18f9",
\r
814 "type": "switchNode",
\r
815 "name": "switch temp-ub-sub-account-id",
\r
816 "xml": "<switch test='`$tmp.AnAI-data.temp-ub-sub-account-id`'>\n",
\r
819 "x": 1040.1076431274414,
\r
820 "y": 770.3223485946655,
\r
821 "z": "b6c1c029.17cd1",
\r
830 "id": "a01e54d0.c0ef88",
\r
833 "xml": "<outcome value=''>",
\r
836 "x": 1232.8221015930176,
\r
837 "y": 744.3223810195923,
\r
838 "z": "b6c1c029.17cd1",
\r
846 "id": "8e84ac75.03435",
\r
849 "xml": "<outcome value='Other'>",
\r
852 "x": 1233.1076583862305,
\r
853 "y": 799.3223524093628,
\r
854 "z": "b6c1c029.17cd1",
\r
862 "id": "305c6a3e.5caf76",
\r
864 "name": "set prop.tenant-id",
\r
865 "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data.temp-ub-sub-account-id`' />\n",
\r
867 "x": 1480.5362510681152,
\r
868 "y": 884.4651527404785,
\r
869 "z": "b6c1c029.17cd1",
\r
873 "id": "5b46bfcb.e107",
\r
875 "name": "block : atomic",
\r
876 "xml": "<block atomic=\"true\">\n",
\r
880 "x": 1372.2859992980957,
\r
881 "y": 744.6436495780945,
\r
882 "z": "b6c1c029.17cd1",
\r
896 "id": "89d28fc6.070cc",
\r
898 "name": "set prop.customer-id",
\r
899 "xml": "<set>\n<parameter name='prop.customer-id' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.global-customer-id`' />\n",
\r
901 "x": 1583.9291076660156,
\r
902 "y": 555.2152099609375,
\r
903 "z": "b6c1c029.17cd1",
\r
907 "id": "e65ad869.b6a738",
\r
909 "name": "execute RestApiCallNode Create tenant",
\r
910 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/sdwan-tenant.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/campus/v2/baseservice/tenants'`\" />\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=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
\r
913 "x": 1642.9289245605469,
\r
914 "y": 685.7865009307861,
\r
915 "z": "b6c1c029.17cd1",
\r
921 "id": "33daccfa.fa4ad4",
\r
923 "name": "set prop.tenant-id",
\r
924 "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tenant-result.data.tenantId`' />\n",
\r
926 "x": 1585.7862167358398,
\r
927 "y": 783.643741607666,
\r
928 "z": "b6c1c029.17cd1",
\r
932 "id": "a292b1f1.50e1",
\r
934 "name": "execute RestApiCallNode Create tenant auth",
\r
935 "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/campus/v2/baseservice/tenants/authorization/' + $prop.tenant-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=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
\r
938 "x": 1661.2861862182617,
\r
939 "y": 834.3937706947327,
\r
940 "z": "b6c1c029.17cd1",
\r
946 "id": "5b1692a.ed07e6c",
\r
947 "type": "get-resource",
\r
948 "name": "update-resource customer-id in service-subscription",
\r
949 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-subscription\" \n key= 'service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.subscription-service-type \n AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.service-information.global-customer-id'>\n<parameter name='temp-ub-sub-account-id' value='`$tenant-result.data.tenantId`' />\n<!--parameter name='temp-ub-sub-account-id' value='`$prop.customer-id`' /-->\n\n\n",
\r
952 "x": 1684.2146530151367,
\r
953 "y": 736.7866287231445,
\r
954 "z": "b6c1c029.17cd1",
\r
960 "id": "1d2a1174.f60a5f",
\r
963 "xml": "<outcome value='success'>\n",
\r
966 "x": 838.6074142456055,
\r
967 "y": 778.3183259963989,
\r
968 "z": "b6c1c029.17cd1",
\r
976 "id": "af67f570.499af8",
\r
979 "xml": "<outcome value='failure'>\n",
\r
982 "x": 832.286003112793,
\r
983 "y": 830.5326375961304,
\r
984 "z": "b6c1c029.17cd1",
\r
992 "id": "10c51d46.007b83",
\r
993 "type": "returnFailure",
\r
994 "name": "return failure",
\r
995 "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",
\r
997 "x": 985.036003112793,
\r
998 "y": 830.2826986312866,
\r
999 "z": "b6c1c029.17cd1",
\r
1003 "id": "f1e78a9c.989338",
\r
1005 "name": "block : atomic",
\r
1006 "xml": "<block atomic=\"true\">\n",
\r
1007 "atomic": "false",
\r
1010 "x": 1291.758415222168,
\r
1011 "y": 882.4693441390991,
\r
1012 "z": "b6c1c029.17cd1",
\r
1015 "305c6a3e.5caf76",
\r
1021 "id": "f8f4d633.b36da8",
\r
1022 "type": "execute",
\r
1023 "name": "execute RestApiCallNode Create tenant auth",
\r
1024 "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/campus/v2/baseservice/tenants/authorization/' + $prop.tenant-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=\"put\"/>\n<parameter name=\"responsePrefix\" value=\"tenant-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
\r
1027 "x": 1563.18701171875,
\r
1028 "y": 931.0407466888428,
\r
1029 "z": "b6c1c029.17cd1",
\r
1035 "id": "628cc8d7.dc94c8",
\r
1037 "name": "set prop.userAccount",
\r
1038 "xml": "<set>\n<parameter name='prop.userAccount' value='`$tmp.userAccountEmail`' />\n<parameter name='prop.userEmail' value='`$tmp.userAccountEmail`' />",
\r
1040 "x": 1595.0360107421875,
\r
1041 "y": 637.8897457122803,
\r
1042 "z": "b6c1c029.17cd1",
\r
1046 "id": "306fdb54.fea144",
\r
1047 "type": "execute",
\r
1048 "name": "execute concat customer-id and @test.com",
\r
1049 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='concat' >\n <parameter name=\"source\" value='`$prop.customer-id`'/>\n <parameter name=\"outputPath\" value=\"tmp.userAccountEmail\"/>\n <parameter name=\"target\" value=\"@test.com\"/>\n\n\n",
\r
1052 "x": 1659.0398864746094,
\r
1053 "y": 596.8936882019043,
\r
1054 "z": "b6c1c029.17cd1",
\r
1060 "id": "67e2e66a.9bd638",
\r
1063 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic1.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"vf-module-id-input\"/>\n<parameter name=\"field3\" value='`$vf-module-topology-operation-input.vf-module-information.vf-module-id`'/>\n\n\n\n",
\r
1066 "x": 1204.3607177734375,
\r
1068 "z": "b6c1c029.17cd1",
\r
1074 "id": "6a3f667b.faa1c8",
\r
1076 "name": "set vf-module-level-oper-status",
\r
1077 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.order-status' value='Active' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.last-rpc-action' value='`$vf-module-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-level-oper-status.last-action' value='`$vf-module-topology-operation-input.sdnc-request-header.request-action`' />\n",
\r
1079 "x": 633.0275115966797,
\r
1080 "y": 1182.3333728313446,
\r
1081 "z": "b6c1c029.17cd1",
\r
1085 "id": "bad73f6e.5a9bd",
\r
1087 "name": "increment param length",
\r
1088 "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length' value='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vf-modules.vf-module[$tmp.vidx].vf-module-data.vf-module-request-input.vf-module-input-parameters.param_length + 1`' />\n",
\r
1090 "x": 616.0274295806885,
\r
1091 "y": 1132.0000789165497,
\r
1092 "z": "b6c1c029.17cd1",
\r
1096 "id": "f2facc44.32ff4",
\r
1097 "type": "switchNode",
\r
1098 "name": "switch vnf-index",
\r
1099 "xml": "<switch test='`$vnf-index`'>\n",
\r
1102 "x": 605.0520858764648,
\r
1103 "y": 301.0312559604645,
\r
1104 "z": "b6c1c029.17cd1",
\r
1112 "id": "4089ca12.07b054",
\r
1115 "xml": "<outcome value=''>\n",
\r
1118 "x": 767.052131652832,
\r
1119 "y": 300.03125500679016,
\r
1120 "z": "b6c1c029.17cd1",
\r
1128 "id": "3c7c191c.e210a6",
\r
1129 "type": "returnFailure",
\r
1130 "name": "return failure",
\r
1131 "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=\"vnf id not found in service-data\" />\n",
\r
1133 "x": 916.3022232055664,
\r
1134 "y": 297.80913281440735,
\r
1135 "z": "b6c1c029.17cd1",
\r