3 "id": "66d617ca.7974e8",
\r
8 "y": 42.000000953674316,
\r
9 "z": "487c8439.e79e0c",
\r
17 "id": "ec960184.8c747",
\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": 245.28961181640625,
\r
26 "y": 104.23811054229736,
\r
27 "z": "487c8439.e79e0c",
\r
35 "id": "b566667e.9703e8",
\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": 198.58634281158447,
\r
43 "z": "487c8439.e79e0c",
\r
51 "id": "48de3c23.140fd4",
\r
53 "name": "block : atomic",
\r
54 "xml": "<block atomic=\"true\">",
\r
57 "x": 243.6705780029297,
\r
58 "y": 383.6667146682739,
\r
59 "z": "487c8439.e79e0c",
\r
84 "id": "22c945bf.bff90a",
\r
86 "name": "for each vnf",
\r
87 "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
\r
90 "x": 589.035270690918,
\r
91 "y": 278.2691421508789,
\r
92 "z": "487c8439.e79e0c",
\r
100 "id": "9b8b15e3.9d27d8",
\r
101 "type": "switchNode",
\r
102 "name": "switch vnf_length",
\r
103 "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
\r
106 "x": 594.0039253234863,
\r
107 "y": 217.0000114440918,
\r
108 "z": "487c8439.e79e0c",
\r
116 "id": "e59760b9.c5416",
\r
119 "xml": "<outcome value=''>\n",
\r
123 "y": 216.00000095367432,
\r
124 "z": "487c8439.e79e0c",
\r
132 "id": "76bc4811.c948a8",
\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": 923.4326324462891,
\r
138 "y": 217.14291858673096,
\r
139 "z": "487c8439.e79e0c",
\r
143 "id": "936d4e00.f8f0f",
\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": 812.0039215087891,
\r
150 "y": 279.0000071525574,
\r
151 "z": "487c8439.e79e0c",
\r
159 "id": "70d6072a.9e11d8",
\r
160 "type": "outcomeTrue",
\r
162 "xml": "<outcome value='true'>\n",
\r
165 "x": 1027.00390625,
\r
166 "y": 277.0000009536743,
\r
167 "z": "487c8439.e79e0c",
\r
175 "id": "ea0a9e13.79435",
\r
177 "name": "set vnf-index",
\r
178 "xml": "<set>\n<parameter name='vnf-index' value='`$idx`' />\n",
\r
180 "x": 1191.00390625,
\r
181 "y": 272.0000009536743,
\r
182 "z": "487c8439.e79e0c",
\r
186 "id": "7a7ac9c1.d1c088",
\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": 639.0039138793945,
\r
193 "y": 349.99999141693115,
\r
194 "z": "487c8439.e79e0c",
\r
204 "id": "cbbc80b7.cd82",
\r
207 "xml": "<outcome value=''>\n",
\r
211 "y": 384.0000009536743,
\r
212 "z": "487c8439.e79e0c",
\r
220 "id": "f88f2a92.99e738",
\r
223 "xml": "<outcome value='0'>\n",
\r
226 "x": 866.0039024353027,
\r
228 "z": "487c8439.e79e0c",
\r
236 "id": "3e09921b.36399e",
\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
241 "x": 1024.00390625,
\r
242 "y": 344.0000009536743,
\r
243 "z": "487c8439.e79e0c",
\r
247 "id": "d281c228.3bb21",
\r
250 "xml": "<outcome value='Other'>\n",
\r
254 "y": 445.0000009536743,
\r
255 "z": "487c8439.e79e0c",
\r
263 "id": "8c0936c1.7617c8",
\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": 1215.003921508789,
\r
269 "y": 443.0000149011612,
\r
270 "z": "487c8439.e79e0c",
\r
274 "id": "8e3c57a1.dadbf8",
\r
276 "name": "block : atomic",
\r
277 "xml": "<block atomic=\"true\">",
\r
280 "x": 1022.0039520263672,
\r
281 "y": 441.99999237060547,
\r
282 "z": "487c8439.e79e0c",
\r
292 "id": "28692055.9016f",
\r
294 "name": "for each existing vf-index",
\r
295 "xml": "<for index='idx' start='0' end='`$vf-module-length`' >\n",
\r
298 "x": 1234.003890991211,
\r
299 "y": 495.99999141693115,
\r
300 "z": "487c8439.e79e0c",
\r
308 "id": "73f639ab.d244b8",
\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
314 "x": 1477.00390625,
\r
315 "y": 491.0000009536743,
\r
316 "z": "487c8439.e79e0c",
\r
324 "id": "fdba254c.4c6898",
\r
325 "type": "outcomeTrue",
\r
327 "xml": "<outcome value='true'>\n",
\r
330 "x": 1675.0039348602295,
\r
331 "y": 478.00000762939453,
\r
332 "z": "487c8439.e79e0c",
\r
340 "id": "e324ecda.ee495",
\r
342 "name": "block : atomic",
\r
343 "xml": "<block atomic=\"true\">",
\r
346 "x": 1827.00390625,
\r
347 "y": 480.0000009536743,
\r
348 "z": "487c8439.e79e0c",
\r
358 "id": "a7ad0572.bfda18",
\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": 2076.004005432129,
\r
364 "y": 474.0000033378601,
\r
365 "z": "487c8439.e79e0c",
\r
369 "id": "1d9eaeb3.112c31",
\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": 2065.004005432129,
\r
375 "y": 525.000036239624,
\r
376 "z": "487c8439.e79e0c",
\r
380 "id": "96aaf259.9b5e1",
\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": 2096.0042114257812,
\r
387 "y": 572.0000371932983,
\r
388 "z": "487c8439.e79e0c",
\r
394 "id": "6b9873c1.ed3cac",
\r
397 "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Provided alloted resource length\"/>\n<parameter name=\"field3\" value=\"'parameters length'\"/>\n<parameter name=\"field4\" value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`'/>\n\n\n\n",
\r
400 "x": 554.0039806365967,
\r
401 "y": 576.0000066757202,
\r
402 "z": "487c8439.e79e0c",
\r
408 "id": "3bb5998d.d31786",
\r
409 "type": "switchNode",
\r
410 "name": "switch tmp.vidx ",
\r
411 "xml": "<switch test=\"`$tmp.vidx`\">\n\n",
\r
414 "x": 578.0351257324219,
\r
415 "y": 523.016074180603,
\r
416 "z": "487c8439.e79e0c",
\r
424 "id": "68156871.093ed8",
\r
427 "xml": "<outcome value=''>\n",
\r
430 "x": 725.4637680053711,
\r
431 "y": 522.5874843597412,
\r
432 "z": "487c8439.e79e0c",
\r
440 "id": "749cf44f.03bbfc",
\r
441 "type": "returnFailure",
\r
442 "name": "return failure",
\r
443 "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
445 "x": 874.8924942016602,
\r
446 "y": 523.7304019927979,
\r
447 "z": "487c8439.e79e0c",
\r
451 "id": "b9df134a.f3234",
\r
453 "name": "execute Properties",
\r
454 "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
457 "x": 585.0351448059082,
\r
458 "y": 625.0160593986511,
\r
459 "z": "487c8439.e79e0c",
\r
465 "id": "fa016c6e.8bda5",
\r
467 "name": "make sure this VNF doesn't exist already",
\r
470 "x": 1307.4205932617188,
\r
471 "y": 1212.2502059936523,
\r
472 "z": "487c8439.e79e0c",
\r
476 "id": "2b5c22d1.d99c1e",
\r
478 "name": "execute RestApiCallNode Create Devcie Instance",
\r
479 "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
482 "x": 673.0080718994141,
\r
483 "y": 1216.424148797989,
\r
484 "z": "487c8439.e79e0c",
\r
493 "id": "69b97572.5eed5c",
\r
495 "name": "block : atomic",
\r
496 "xml": "<block atomic=\"true\">",
\r
500 "x": 1074.6745147705078,
\r
501 "y": 1186.3128004074097,
\r
502 "z": "487c8439.e79e0c",
\r
508 "id": "d59ec52f.21c8f8",
\r
509 "type": "returnFailure",
\r
510 "name": "return failure",
\r
511 "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
513 "x": 1076.1190948486328,
\r
514 "y": 1236.868332862854,
\r
515 "z": "487c8439.e79e0c",
\r
519 "id": "a187483b.9fc538",
\r
522 "xml": "<outcome value='failure'>\n",
\r
525 "x": 923.1189384460449,
\r
526 "y": 1239.8682870864868,
\r
527 "z": "487c8439.e79e0c",
\r
535 "id": "9ca787d1.dfba38",
\r
538 "xml": "<outcome value='success'>\n",
\r
541 "x": 922.5634536743164,
\r
542 "y": 1183.5349988937378,
\r
543 "z": "487c8439.e79e0c",
\r
551 "id": "104a605b.c517a",
\r
553 "name": "call sdwan-get-tenant-auth",
\r
554 "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-tenant-auth' mode='sync' >\n",
\r
557 "x": 590.0001373291016,
\r
558 "y": 1160.5913829803467,
\r
559 "z": "487c8439.e79e0c",
\r
565 "id": "ab75124f.85f25",
\r
566 "type": "returnSuccess",
\r
567 "name": "return success",
\r
568 "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
570 "x": 552.0041103363037,
\r
571 "y": 1641.5002851486206,
\r
572 "z": "487c8439.e79e0c",
\r
576 "id": "496cf1c2.09334",
\r
578 "name": "copy input data to service data",
\r
579 "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
581 "x": 597.3373680114746,
\r
582 "y": 1531.8336429595947,
\r
583 "z": "487c8439.e79e0c",
\r
587 "id": "5763663a.274778",
\r
589 "name": "update deviceInstance configuration in AAI",
\r
590 "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='device-id' value='`$deviceResp.success[0].id`' /-->\n<parameter name='operational-status' value='Active' />\n",
\r
593 "x": 632.6708755493164,
\r
594 "y": 1584.722743988037,
\r
595 "z": "487c8439.e79e0c",
\r
601 "id": "fba80bcb.537e38",
\r
603 "name": "set deviceId to service data",
\r
604 "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
606 "x": 593.6709938049316,
\r
607 "y": 1315.7538223266602,
\r
608 "z": "487c8439.e79e0c",
\r
612 "id": "ad243b23.84cc68",
\r
614 "name": "set vf-module-object-path",
\r
615 "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
617 "x": 576.0041046142578,
\r
618 "y": 1474.2504119873047,
\r
619 "z": "487c8439.e79e0c",
\r
623 "id": "d9f0bb67.a6d688",
\r
624 "type": "get-resource",
\r
625 "name": "get-resource esr-thirdparty-sdnc",
\r
626 "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
629 "x": 620.0086822509766,
\r
630 "y": 725.8936567306519,
\r
631 "z": "487c8439.e79e0c",
\r
641 "id": "24c130a1.06544",
\r
644 "xml": "<outcome value='success'>\n",
\r
647 "x": 865.008659362793,
\r
648 "y": 668.8936103284359,
\r
649 "z": "487c8439.e79e0c",
\r
657 "id": "1c6d2fc3.9d47f",
\r
658 "type": "not-found",
\r
659 "name": "not-found",
\r
660 "xml": "<outcome value='not-found'>\n",
\r
663 "x": 868.499626159668,
\r
664 "y": 716.4676459729671,
\r
665 "z": "487c8439.e79e0c",
\r
673 "id": "d711f941.efb278",
\r
676 "xml": "<outcome value='Other'>\n",
\r
679 "x": 863.832633972168,
\r
680 "y": 757.8009589612484,
\r
681 "z": "487c8439.e79e0c",
\r
689 "id": "e6538e05.e2e95",
\r
691 "name": "set controller data",
\r
692 "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
694 "x": 1062.5087203979492,
\r
695 "y": 656.8936103284359,
\r
696 "z": "487c8439.e79e0c",
\r
700 "id": "8c8ed57c.0ce668",
\r
701 "type": "returnFailure",
\r
702 "name": "return failure",
\r
703 "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
705 "x": 1045.0710372924805,
\r
706 "y": 704.7533820569515,
\r
707 "z": "487c8439.e79e0c",
\r
711 "id": "37c7dcba.fd9d34",
\r
712 "type": "returnFailure",
\r
713 "name": "return failure",
\r
714 "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
716 "x": 1051.6051902770996,
\r
717 "y": 753.24015173316,
\r
718 "z": "487c8439.e79e0c",
\r
722 "id": "4d09bded.34c944",
\r
724 "name": "execute RestApiCallNode Get token",
\r
725 "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
728 "x": 628.008659362793,
\r
729 "y": 833.893609046936,
\r
730 "z": "487c8439.e79e0c",
\r
739 "id": "68b0f825.949708",
\r
742 "xml": "<outcome value='success'>\n",
\r
745 "x": 867.008731842041,
\r
746 "y": 811.8936405181885,
\r
747 "z": "487c8439.e79e0c",
\r
755 "id": "3ec68637.c0dbea",
\r
758 "xml": "<outcome value='failure'>\n",
\r
761 "x": 859.258731842041,
\r
762 "y": 865.5365238189697,
\r
763 "z": "487c8439.e79e0c",
\r
771 "id": "ea7ef978.26d9b8",
\r
773 "name": "set token-id",
\r
774 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
\r
776 "x": 1017.008659362793,
\r
777 "y": 812.893609046936,
\r
778 "z": "487c8439.e79e0c",
\r
782 "id": "6b38fd7f.9697a4",
\r
783 "type": "returnFailure",
\r
784 "name": "return failure",
\r
785 "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
787 "x": 1012.008731842041,
\r
788 "y": 865.286584854126,
\r
789 "z": "487c8439.e79e0c",
\r
793 "id": "d2ac70a8.01bbc",
\r
795 "name": "block : atomic",
\r
796 "xml": "<block atomic=\"true\">\n",
\r
800 "x": 549.7587051391602,
\r
801 "y": 1079.8937320709229,
\r
802 "z": "487c8439.e79e0c",
\r
810 "id": "c50d0af9.6eaaa8",
\r
812 "name": "execute RestApiCallNode Create network orchestration",
\r
813 "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
816 "x": 868.2587966918945,
\r
817 "y": 1082.8938932418823,
\r
818 "z": "487c8439.e79e0c",
\r
824 "id": "673290e1.c0902",
\r
825 "type": "get-resource",
\r
826 "name": "get-resource service-subscription",
\r
827 "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
830 "x": 604.0802001953125,
\r
831 "y": 984.5722246170044,
\r
832 "z": "487c8439.e79e0c",
\r
841 "id": "a417e40c.ac4638",
\r
842 "type": "switchNode",
\r
843 "name": "switch temp-ub-sub-account-id",
\r
844 "xml": "<switch test='`$tmp.AnAI-data.temp-ub-sub-account-id`'>\n",
\r
847 "x": 1016.0802917480469,
\r
848 "y": 949.3223056793213,
\r
849 "z": "487c8439.e79e0c",
\r
858 "id": "d1aef225.461ff",
\r
861 "xml": "<outcome value=''>",
\r
864 "x": 1208.794750213623,
\r
865 "y": 923.322338104248,
\r
866 "z": "487c8439.e79e0c",
\r
874 "id": "30bdca8a.d90ec6",
\r
877 "xml": "<outcome value='Other'>",
\r
880 "x": 1209.080307006836,
\r
881 "y": 978.3223094940186,
\r
882 "z": "487c8439.e79e0c",
\r
890 "id": "927bbae7.3f69d8",
\r
892 "name": "set prop.tenant-id",
\r
893 "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tmp.AnAI-data.temp-ub-sub-account-id`' />\n",
\r
895 "x": 1456.5088996887207,
\r
896 "y": 1063.4651098251343,
\r
897 "z": "487c8439.e79e0c",
\r
901 "id": "b031c826.3fa048",
\r
903 "name": "block : atomic",
\r
904 "xml": "<block atomic=\"true\">\n",
\r
908 "x": 1348.2586479187012,
\r
909 "y": 923.6436066627502,
\r
910 "z": "487c8439.e79e0c",
\r
924 "id": "e41ff38c.c7009",
\r
926 "name": "set prop.customer-id",
\r
927 "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
929 "x": 1559.901756286621,
\r
930 "y": 734.2151670455933,
\r
931 "z": "487c8439.e79e0c",
\r
935 "id": "e230776c.5a9d58",
\r
937 "name": "execute RestApiCallNode Create tenant",
\r
938 "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
941 "x": 1618.9015731811523,
\r
942 "y": 864.7864580154419,
\r
943 "z": "487c8439.e79e0c",
\r
949 "id": "3aed4c7a.4aaa14",
\r
951 "name": "set prop.tenant-id",
\r
952 "xml": "<set>\n<parameter name='prop.tenant-id' value='`$tenant-result.data.tenantId`' />\n",
\r
954 "x": 1561.7588653564453,
\r
955 "y": 962.6436986923218,
\r
956 "z": "487c8439.e79e0c",
\r
960 "id": "be32cece.2100a",
\r
962 "name": "execute RestApiCallNode Create tenant auth",
\r
963 "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
966 "x": 1637.2588348388672,
\r
967 "y": 1013.3937277793884,
\r
968 "z": "487c8439.e79e0c",
\r
974 "id": "93c1362e.aa2c78",
\r
975 "type": "get-resource",
\r
976 "name": "update-resource customer-id in service-subscription",
\r
977 "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
980 "x": 1660.1873016357422,
\r
981 "y": 915.7865858078003,
\r
982 "z": "487c8439.e79e0c",
\r
988 "id": "3dede820.fe1e48",
\r
991 "xml": "<outcome value='success'>\n",
\r
994 "x": 814.5800628662109,
\r
995 "y": 957.3182830810547,
\r
996 "z": "487c8439.e79e0c",
\r
1004 "id": "221b4119.4d74ce",
\r
1005 "type": "failure",
\r
1006 "name": "failure",
\r
1007 "xml": "<outcome value='failure'>\n",
\r
1010 "x": 808.2586517333984,
\r
1011 "y": 1009.5325946807861,
\r
1012 "z": "487c8439.e79e0c",
\r
1020 "id": "13b27219.75f72e",
\r
1021 "type": "returnFailure",
\r
1022 "name": "return failure",
\r
1023 "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
1025 "x": 961.0086517333984,
\r
1026 "y": 1009.2826557159424,
\r
1027 "z": "487c8439.e79e0c",
\r
1031 "id": "85a88d68.7da4e",
\r
1033 "name": "block : atomic",
\r
1034 "xml": "<block atomic=\"true\">\n",
\r
1035 "atomic": "false",
\r
1038 "x": 1267.7310638427734,
\r
1039 "y": 1061.4693012237549,
\r
1040 "z": "487c8439.e79e0c",
\r
1043 "927bbae7.3f69d8",
\r
1049 "id": "cc5300b4.c716d",
\r
1050 "type": "execute",
\r
1051 "name": "execute RestApiCallNode Create tenant auth",
\r
1052 "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
1055 "x": 1539.1596603393555,
\r
1056 "y": 1110.0407037734985,
\r
1057 "z": "487c8439.e79e0c",
\r
1063 "id": "a9cddfc0.c31fc",
\r
1065 "name": "set prop.userAccount",
\r
1066 "xml": "<set>\n<parameter name='prop.userAccount' value='`$tmp.userAccountEmail`' />\n<parameter name='prop.userEmail' value='`$tmp.userAccountEmail`' />",
\r
1068 "x": 1571.008659362793,
\r
1069 "y": 816.889702796936,
\r
1070 "z": "487c8439.e79e0c",
\r
1074 "id": "7328f02d.f9128",
\r
1075 "type": "execute",
\r
1076 "name": "execute concat customer-id and @test.com",
\r
1077 "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
1080 "x": 1635.0125350952148,
\r
1081 "y": 775.8936452865601,
\r
1082 "z": "487c8439.e79e0c",
\r
1088 "id": "a8eb8c24.f4a0f",
\r
1091 "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
1094 "x": 1182.3333740234375,
\r
1096 "z": "487c8439.e79e0c",
\r
1102 "id": "d63a100a.4fb85",
\r
1104 "name": "set vf-module-level-oper-status",
\r
1105 "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
1107 "x": 597.0001373291016,
\r
1108 "y": 1410.3333740234375,
\r
1109 "z": "487c8439.e79e0c",
\r
1113 "id": "45830f23.d0369",
\r
1115 "name": "increment param length",
\r
1116 "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
1118 "x": 580.0000553131104,
\r
1119 "y": 1360.0000801086426,
\r
1120 "z": "487c8439.e79e0c",
\r