3 "id": "9b515625.d22748",
7 "x": 93.33332824707031,
8 "y": 36.33332824707031,
9 "z": "669f9d98.2ac9f4",
17 "id": "80315e6e.63505",
18 "type": "service-logic",
19 "name": "VNF-API 1.0.0-DEMO",
21 "version": "1.0.0-DEMO",
23 "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='VNF-API' version='1.0.0-DEMO'>",
25 "x": 258.49998474121094,
27 "z": "669f9d98.2ac9f4",
35 "id": "3c8cef4d.49542",
37 "name": "method vnf-topology-activate",
38 "xml": "<method rpc='vnf-topology-activate' mode='sync'>\n",
41 "x": 166.50001525878906,
42 "y": 83.49999237060547,
43 "z": "669f9d98.2ac9f4",
51 "id": "6cd2edde.1d6bd4",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
57 "x": 123.83332824707031,
58 "y": 139.3333282470703,
59 "z": "669f9d98.2ac9f4",
75 "id": "ab8c4330.26d2b",
77 "name": "set: order-status = Active",
78 "xml": "<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"Active\"/>",
80 "x": 376.83333587646484,
81 "y": 371.83331298828125,
82 "z": "669f9d98.2ac9f4",
86 "id": "df0bd34b.bf0cf",
88 "name": "switch: order-status = PendingCreate",
89 "xml": "<switch test=\"`$service-data.oper-status.order-status == PendingCreate`\">\n\n<!--\nleaf order-status {\n\ttype enumeration {\n\t\tenum \"Active\";\n\t\tenum \"PendingAssignment\";\n\t\tenum \"PendingCreate\";\n\t\tenum \"PendingUpdate\";\n\t\tenum \"Deleted\";\n\t}\n}\n-->",
92 "x": 416.16670989990234,
93 "y": 268.1665344238281,
94 "z": "669f9d98.2ac9f4",
102 "id": "d8650a48.f0bcd8",
103 "type": "returnSuccess",
104 "name": "return success",
105 "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
107 "x": 333.9444580078125,
109 "z": "669f9d98.2ac9f4",
113 "id": "6e2d653a.a05bec",
115 "name": "set: last-order-status = order-status",
116 "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-order-status\" value=\"`$service-data.oper-status.order-status`\"/>",
118 "x": 409.94701385498047,
119 "y": 320.447021484375,
120 "z": "669f9d98.2ac9f4",
124 "id": "9bb6aa32.18f568",
125 "type": "switchNode",
126 "name": "switch:vnf-id config == input",
127 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-information.vnf-id == $service-data.vnf-id`\">",
130 "x": 388.60607147216797,
131 "y": 216.37876892089844,
132 "z": "669f9d98.2ac9f4",
140 "id": "d92f94a6.8f1a28",
142 "name": "set: service-data = input",
143 "xml": "<set>\n\t<parameter name=\"service-data.\" value=\"vnf-topology-operation-input.\" />",
145 "x": 361.8333435058594,
146 "y": 1147.888916015625,
147 "z": "669f9d98.2ac9f4",
151 "id": "b846b4fc.934e88",
153 "name": "set: last-action ",
154 "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-action\" value=\"`$service-data.request-information.request-action`\"/>",
156 "x": 343.83333587646484,
157 "y": 418.8888854980469,
158 "z": "669f9d98.2ac9f4",
162 "id": "40746641.fe81b8",
164 "name": "update AnAI - vf-module.orchestration-status",
165 "xml": "<update plugin=\"org.openecomp.sdnc.sli.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=\"active\" />",
168 "x": 437.7221984863281,
169 "y": 461.8888816833496,
170 "z": "669f9d98.2ac9f4",
178 "id": "5a15cf5c.1fe94",
181 "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/sdnc_appc_netconf.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`$vnf-topology-operation-input.sdnc-request-header.svc-action`\"/>\n<parameter name=\"field3\" value=\"`$vnf-topology-operation-input.vnf-request-information.vnf-name`\"/>\n<parameter name=\"field4\" value=\"`$vnf-topology-operation-input.vnf-request-information.vnf-type`\"/>\n<parameter name=\"field5\" value=\"`$vnf-topology-operation-input.vnf-request-information.vnf-id`\"/>\n<parameter name=\"field6\" value=\"`$vnf-topology-operation-input.vnf-request-information.generic-vnf-name`\"/>\n<parameter name=\"field7\" value=\"`$vnf-topology-operation-input.vnf-request-information.generic-vnf-type`\"/>\n<parameter name=\"field8\" value=\"`$vnf-topology-operation-input.vnf-request-information.generic-vnf-id`\"/>\n<parameter name=\"field9\" value=\"`$preload-data.vnf-topology-information.vnf-topology-identifier.vnf-name`\"/>\n<parameter name=\"field10\" value=\"`$preload-data.vnf-topology-information.vnf-topology-identifier.vnf-type`\"/>\n",
184 "x": 938.72216796875,
185 "y": 776.3888549804688,
186 "z": "669f9d98.2ac9f4",
192 "id": "c3be1550.0013d8",
193 "type": "switchNode",
194 "name": "switch vnf type ",
195 "xml": "<switch test='`substr($preload-data.vnf-topology-information.vnf-topology-identifier.vnf-type,22,30)`'>\n<!-- Aa27262bF2d040799b5c..base_vfw..module-0 -->",
198 "x": 338.522216796875,
199 "y": 667.9055213928223,
200 "z": "669f9d98.2ac9f4",
208 "id": "22236f98.35747",
211 "xml": "<outcome value='false'>",
214 "x": 665.5000610351562,
215 "y": 268.4998435974121,
216 "z": "669f9d98.2ac9f4",
224 "id": "4c7aba25.1c7f44",
225 "type": "outcomeFalse",
227 "xml": "<outcome value='false'>\n",
231 "y": 216.56058883666992,
232 "z": "669f9d98.2ac9f4",
240 "id": "738bd5ac.1e39cc",
243 "xml": "<outcome value='failure'>\n",
246 "x": 702.2460556030273,
247 "y": 461.877384185791,
248 "z": "669f9d98.2ac9f4",
256 "id": "798dbf61.8ef5c",
258 "name": "outcome base_vfw",
259 "xml": "<outcome value='base_vfw'>\n",
262 "x": 564.5221862792969,
263 "y": 697.9055213928223,
264 "z": "669f9d98.2ac9f4",
272 "id": "b819ee7c.13f39",
273 "type": "switchNode",
274 "name": "switch: order-status = PendingUpdate",
275 "xml": "<switch test=\"`$service-data.oper-status.order-status == PendingUpdate`\">\n\n<!--\nleaf order-status {\n\ttype enumeration {\n\t\tenum \"Active\";\n\t\tenum \"PendingAssignment\";\n\t\tenum \"PendingCreate\";\n\t\tenum \"PendingUpdate\";\n\t\tenum \"Deleted\";\n\t}\n}\n-->",
278 "x": 916.4242553710938,
279 "y": 267.9242515563965,
280 "z": "669f9d98.2ac9f4",
288 "id": "6309638d.9a29fc",
289 "type": "returnFailure",
290 "name": "return failure",
291 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value=\"`'vnf-id = ' + $vnf-topology-operation-input.vnf-request-information.vnf-id + ' not found in config tree'`\"/>",
293 "x": 786.1514892578125,
294 "y": 216.4696922302246,
295 "z": "669f9d98.2ac9f4",
299 "id": "91b545b4.961ef8",
300 "type": "returnFailure",
301 "name": "return failure",
302 "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 with vnf-id = ' + $vnf-topology-operation-input.vnf-request-information.vnf-id + ' and generic-vnf-id = ' + $vnf-topology-operation-input.vnf-request-information.generic-vnf-id`\"/>",
304 "x": 870.3889846801758,
305 "y": 461.87745475769043,
306 "z": "669f9d98.2ac9f4",
310 "id": "9aacbf5a.ed983",
317 "x": 778.5221862792969,
318 "y": 737.9055213928223,
319 "z": "669f9d98.2ac9f4",
330 "id": "de1e0e32.44154",
333 "xml": "<outcome value='false'>",
336 "x": 1158.878662109375,
337 "y": 267.92422103881836,
338 "z": "669f9d98.2ac9f4",
346 "id": "f6b5a926.ce9888",
348 "name": "excute REST NETCONF MOUNT ",
349 "xml": "<execute plugin='org.openecomp.sdnc.restapicall.RestapiCallNode' method='sendRequest' >\n\t<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/netconf-mount-template.xml'`\"/>\n\t<parameter name=\"restapiUrl\" value=\"`$prop.appcRestApi.url+'/restconf/config/network-topology:network-topology/topology/topology-netconf/node/'+$prop.vpg_hostname`\"/>\n\t<parameter name=\"restapiUser\" value=\"`$prop.appcRestApi.sdncOdl.user`\"/>\n\t<parameter name=\"restapiPassword\" value=\"`$prop.appcRestApi.sdncOdl.password`\"/>\n\t<parameter name=\"format\" value=\"xml\" />\n\t<parameter name=\"httpMethod\" value=\"put\" />\n\t<parameter name=\"responsePrefix\" value=\"restapi-result\" />\n\t\n\t",
352 "x": 1026.5221099853516,
353 "y": 1073.9054565429688,
354 "z": "669f9d98.2ac9f4",
360 "id": "2dff6fee.5d34e",
362 "name": "set localhost data",
363 "xml": "<set>\n<parameter name='prop.appcRestApi.url' value='http://localhost:8181' />\n<!-- 8181 when doing localhost -->\n<parameter name=\"prop.restapi.templateDir\" value=\"/opt/openecomp/sdnc/data\"/>\n<parameter name=\"prop.appcRestApi.sdncOdl.user\" value=\"admin\"/>\n<parameter name=\"prop.appcRestApi.sdncOdl.password\" value=\"Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U\"/>\n",
365 "x": 1331.5221557617188,
366 "y": 746.905517578125,
367 "z": "669f9d98.2ac9f4",
371 "id": "5f574a63.b3a724",
372 "type": "returnFailure",
373 "name": "return failure",
374 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid last-order-status'/>",
376 "x": 1323.8331832885742,
377 "y": 267.4998950958252,
378 "z": "669f9d98.2ac9f4",
382 "id": "e27e181e.227c48",
384 "name": "VNF-TOPOLOGY-ACTIVATE",
387 "x": 665.7221984863281,
388 "y": 35.88888168334961,
389 "z": "669f9d98.2ac9f4",
393 "id": "2aacf238.e9652e",
395 "name": "once success is returned, operational-data gets saved",
398 "x": 669.3510437011719,
399 "y": 1228.434326171875,
400 "z": "669f9d98.2ac9f4",
404 "id": "75691490.243aac",
406 "name": "request-action = VNFActivateRequest, svc-action = activate",
409 "x": 672.4444122314453,
410 "y": 75.66666221618652,
411 "z": "669f9d98.2ac9f4",
415 "id": "bcfdeb55.ac2538",
417 "name": "Set final indicator to Y",
418 "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
420 "x": 356.15079498291016,
421 "y": 1191.6031608581543,
422 "z": "669f9d98.2ac9f4",
426 "id": "2c6e5e35.0760b2",
428 "name": "set appc data",
429 "xml": "<set>\n<parameter name='prop.appcRestApi.url' value='http://appc.api.simpledemo.openecomp.org:8282' />\n<!-- 8181 when doing localhost -->\n<parameter name=\"prop.restapi.templateDir\" value=\"/opt/openecomp/sdnc/data\"/>\n<parameter name=\"prop.appcRestApi.sdncOdl.user\" value=\"admin\"/>\n<parameter name=\"prop.appcRestApi.sdncOdl.password\" value=\"Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U\"/>\n",
431 "x": 967.5221862792969,
432 "y": 1019.9054832458496,
433 "z": "669f9d98.2ac9f4",
437 "id": "873d2429.978de8",
439 "name": "Get Hostname and IP address",
442 "x": 1005.2166748046875,
443 "y": 821.9387817382812,
444 "z": "669f9d98.2ac9f4",
448 "id": "c3f63154.8e521",
450 "name": "for vnf-parameters",
451 "xml": "<for index='k' start='0' end=\"`$preload-data.vnf-topology-information.vnf-parameters_length`\" >\n",
454 "x": 975.2166442871094,
455 "y": 866.9388999938965,
456 "z": "669f9d98.2ac9f4",
464 "id": "1c75c042.26d5d",
465 "type": "switchNode",
466 "name": "switch vpg_name_0",
467 "xml": "<switch test=\"`$preload-data.vnf-topology-information.vnf-parameters[$k].vnf-parameter-name == 'vpg_name_0'`\">\n",
470 "x": 1338.2167663574219,
471 "y": 972.9389305114746,
472 "z": "669f9d98.2ac9f4",
480 "id": "f162e338.32bba",
481 "type": "outcomeTrue",
483 "xml": "<outcome value='true'>\n",
486 "x": 1525.2167663574219,
487 "y": 972.9389305114746,
488 "z": "669f9d98.2ac9f4",
496 "id": "fb2d23d2.1064d",
498 "name": "set vpg_ hostname ",
499 "xml": "<set>\n<parameter name='prop.vpg_hostname' value='`$preload-data.vnf-topology-information.vnf-parameters[$k].vnf-parameter-value`' />\n",
501 "x": 1693.2167663574219,
502 "y": 973.5389366149902,
503 "z": "669f9d98.2ac9f4",
507 "id": "7112332f.7cf7ac",
514 "x": 1148.2167663574219,
515 "y": 910.9388999938965,
516 "z": "669f9d98.2ac9f4",
525 "id": "9dc9c622.a5ca58",
526 "type": "switchNode",
527 "name": "switch vpg_private_ip_1",
528 "xml": "<switch test=\"`$preload-data.vnf-topology-information.vnf-parameters[$k].vnf-parameter-name == 'vpg_private_ip_1'`\">\n",
531 "x": 1342.2167053222656,
532 "y": 1034.538906097412,
533 "z": "669f9d98.2ac9f4",
541 "id": "43a36baf.403124",
542 "type": "outcomeTrue",
544 "xml": "<outcome value='true'>\n",
547 "x": 1527.2167053222656,
548 "y": 1032.538906097412,
549 "z": "669f9d98.2ac9f4",
557 "id": "b4b98be7.2c0088",
559 "name": "set vpg_ipaddress",
560 "xml": "<set>\n<parameter name='prop.vpg_ipaddress' value='`$preload-data.vnf-topology-information.vnf-parameters[$k].vnf-parameter-value`' />\n",
562 "x": 1696.2167053222656,
563 "y": 1030.538906097412,
564 "z": "669f9d98.2ac9f4",
568 "id": "54b07b39.58cfd4",
570 "name": "unlinked AnAI update for slitesting",
573 "x": 399.1666564941406,
574 "y": 509.8888816833496,
575 "z": "669f9d98.2ac9f4",