3 "id": "12b79dd.fcf1ae2",
8 "y": 85.76192092895508,
17 "id": "45289095.8730c",
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.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
25 "x": 325.2857131958008,
27 "z": "c6f0d3f1.455d9",
35 "id": "54e5c542.fd5504",
37 "name": "method validate-network-input-parameters",
38 "xml": "<method rpc='validate-network-input-parameters' mode='sync'>\n",
41 "x": 282.91668701171875,
42 "y": 160.0149383544922,
43 "z": "c6f0d3f1.455d9",
51 "id": "4aa39923.928d98",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">",
57 "x": 566.9166946411133,
58 "y": 148.0149631500244,
59 "z": "c6f0d3f1.455d9",
68 "id": "588fd95a.bd649",
70 "name": "switch svc-action",
71 "xml": "<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
74 "x": 847.9166946411133,
75 "y": 143.01494884490967,
76 "z": "c6f0d3f1.455d9",
84 "id": "bea9cc02.adf488",
87 "xml": "<outcome value=''>",
90 "x": 1038.6309967041016,
91 "y": 144.01494979858398,
92 "z": "c6f0d3f1.455d9",
100 "id": "c0743608.2f921",
101 "type": "returnFailure",
102 "name": "return failure",
103 "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=\"sdnc-request-header.svc-request-id is a required input\" />\n",
105 "x": 1213.0595474243164,
106 "y": 143.01494216918945,
107 "z": "c6f0d3f1.455d9",
111 "id": "3dc5112.e6e5c6e",
112 "type": "switchNode",
113 "name": "switch svc-action",
114 "xml": "<switch test='`$service-topology-operation-input.sdnc-request-header.svc-action`'>\n",
117 "x": 148.91664123535156,
118 "y": 419.0149631500244,
119 "z": "c6f0d3f1.455d9",
130 "id": "3acc66b9.f1e56a",
133 "xml": "<outcome value='assign'>\n",
136 "x": 350.4167251586914,
137 "y": 419.0149631500244,
138 "z": "c6f0d3f1.455d9",
146 "id": "3f05f182.7a112e",
148 "name": "block : atomic",
149 "xml": "<block atomic=\"true\">",
152 "x": 516.4167327880859,
153 "y": 419.0149631500244,
154 "z": "c6f0d3f1.455d9",
162 "id": "b0353d83.d95fc8",
164 "name": "for loop i - Network input parameters",
165 "xml": "<for index=\"i\" start=\"0\" end=\"`$network-topology-information.network-request-input.network-input-parameters.param_length`\">\n",
168 "x": 839.9165649414062,
169 "y": 457.01495361328125,
170 "z": "c6f0d3f1.455d9",
178 "id": "314ef392.5c55f4",
179 "type": "switchNode",
180 "name": "switch value",
181 "xml": "<switch test=\"`$tmp.value`\">\n",
184 "x": 1434.9166259765625,
185 "y": 831.0149536132812,
186 "z": "c6f0d3f1.455d9",
194 "id": "43c9362d.7e85f8",
197 "xml": "<outcome value=''>",
200 "x": 1651.9165992736816,
201 "y": 830.0149593353271,
202 "z": "c6f0d3f1.455d9",
210 "id": "ca90525c.72c9e",
211 "type": "returnFailure",
212 "name": "return failure",
213 "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=\"network-request-input.network-input-parameters.name is a required input\" />\n",
215 "x": 1830.345314025879,
216 "y": 831.0149593353271,
217 "z": "c6f0d3f1.455d9",
221 "id": "69b2a932.e384a",
223 "name": "deactivate",
224 "xml": "<outcome value='deactivate'>\n",
227 "x": 356.9999771118164,
228 "y": 495.76191806793213,
229 "z": "c6f0d3f1.455d9",
235 "id": "48c30fe1.37ee2",
238 "xml": "<outcome value='delete'>\n",
241 "x": 343.5715103149414,
242 "y": 551.0478391647339,
243 "z": "c6f0d3f1.455d9",
251 "id": "3a0a08f8.ab065",
254 "xml": "<outcome value='Other'>\n",
257 "x": 345.6190757751465,
258 "y": 606.9047303199768,
259 "z": "c6f0d3f1.455d9",
267 "id": "1c01820.787e0fe",
268 "type": "returnFailure",
269 "name": "return failure",
270 "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=\"`$network-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",
272 "x": 499.1906509399414,
273 "y": 609.5238742828369,
274 "z": "c6f0d3f1.455d9",
278 "id": "4b65836a.da71a4",
285 "x": 717.9999389648438,
286 "y": 603.7619018554688,
287 "z": "c6f0d3f1.455d9",
297 "id": "4000702f.bf217",
298 "type": "switchNode",
299 "name": "switch request-action",
300 "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
305 "z": "c6f0d3f1.455d9",
314 "id": "7fc21ed9.84ecc",
316 "name": "CreateNetworkInstance",
317 "xml": "<outcome value='CreateNetworkInstance'>",
322 "z": "c6f0d3f1.455d9",
330 "id": "2b594f42.596858",
333 "xml": "<outcome value='Other'>",
338 "z": "c6f0d3f1.455d9",
346 "id": "38f5f946.300656",
347 "type": "returnFailure",
348 "name": "return failure",
349 "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=\"request-information.request-action is required to be CreateNetworkInstance for svc-action=assign\" />\n",
353 "z": "c6f0d3f1.455d9",
357 "id": "b93efadc.2a7b98",
359 "name": "block : atomic",
360 "xml": "<block atomic=\"true\">",
365 "z": "c6f0d3f1.455d9",
373 "id": "2b9e6137.bb0cbe",
375 "name": "TODO: need to identify underlay or overlay",
380 "z": "c6f0d3f1.455d9",
384 "id": "c0a12daa.de711",
386 "name": "clear tmp-data",
387 "xml": "<set>\n<parameter name='tmp.name' value='' />\n<parameter name='tmp.value' value='' />\n",
391 "z": "c6f0d3f1.455d9",
395 "id": "79c7c0f2.75db1",
397 "name": "set tmp-data",
398 "xml": "<set>\n<parameter name='tmp.name' value=\"'$network-topology-operation-input.network-request-input.network-input-parameters.param[i].name'\"/>\n<parameter name='tmp.value' value=\"'$network-topology-operation-input.network-request-input.network-input-parameters.param[i].value'\"/>\n",
402 "z": "c6f0d3f1.455d9",
406 "id": "70c07e94.b958b",
407 "type": "switchNode",
408 "name": "switch name",
409 "xml": "<switch test=\"'$tmp.name'\">\n",
414 "z": "c6f0d3f1.455d9",
438 "id": "b4dc69ff.a7ed1",
441 "xml": "<outcome value=''>",
446 "z": "c6f0d3f1.455d9",
454 "id": "72bd50f1.643c",
455 "type": "returnFailure",
456 "name": "return failure",
457 "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=\"`$network-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",
461 "z": "c6f0d3f1.455d9",
465 "id": "bbb21dd0.0748a",
468 "xml": "<outcome value='name'>",
473 "z": "c6f0d3f1.455d9",
481 "id": "646ea6b1.a2f9c8",
483 "name": "service-type",
484 "xml": "<outcome value='service-type'>",
489 "z": "c6f0d3f1.455d9",
497 "id": "2a37f01.a563d1",
500 "xml": "<outcome value='sna2_name'>",
505 "z": "c6f0d3f1.455d9",
513 "id": "439d167a.8c5ac",
515 "name": "site1-name",
516 "xml": "<outcome value='site1-name'>",
521 "z": "c6f0d3f1.455d9",
529 "id": "c1518ab4.108de8",
531 "name": "site2-name",
532 "xml": "<outcome value='site2-name'>",
537 "z": "c6f0d3f1.455d9",
545 "id": "b9d1292c.a326b",
548 "xml": "<outcome value='sna1_name'>",
553 "z": "c6f0d3f1.455d9",
561 "id": "1df27ff7.9e57b8",
564 "xml": "<outcome value='pe1_id'>",
569 "z": "c6f0d3f1.455d9",
577 "id": "eb7c110.2f93df",
580 "xml": "<outcome value='pe2_id'>",
585 "z": "c6f0d3f1.455d9",
593 "id": "f3eead68.9da5e",
596 "xml": "<outcome value='ac1-id'>",
601 "z": "c6f0d3f1.455d9",
609 "id": "6b17cb91.28e614",
612 "xml": "<outcome value='ac2-id'>",
617 "z": "c6f0d3f1.455d9",
625 "id": "3b3dd1c9.f1275e",
628 "xml": "<outcome value='ac1-ip'>",
633 "z": "c6f0d3f1.455d9",
641 "id": "6e7d7d1.8e50d04",
644 "xml": "<outcome value='ac2-ip'>",
649 "z": "c6f0d3f1.455d9",
657 "id": "e757b031.dd60f8",
659 "name": "ac1_peer_ip",
660 "xml": "<outcome value='ac1_peer_ip'>",
665 "z": "c6f0d3f1.455d9",
673 "id": "c7f4e328.7b4c7",
675 "name": "ac2_peer_ip",
676 "xml": "<outcome value='ac2_peer_ip'>",
681 "z": "c6f0d3f1.455d9",
689 "id": "55fe09c4.76bd78",
692 "xml": "<outcome value='ac1_svlan'>",
697 "z": "c6f0d3f1.455d9",
705 "id": "5b95ca17.0b84a4",
708 "xml": "<outcome value='ac2_svlan'>",
713 "z": "c6f0d3f1.455d9",
721 "id": "519b9637.7e3388",
723 "name": "block : atomic",
724 "xml": "<block atomic=\"true\">",
729 "z": "c6f0d3f1.455d9",
738 "id": "6d7e792f.c1a048",
740 "name": "DeleteNetworkInstance",
741 "xml": "<outcome value='DeleteNetworkInstance'>",
746 "z": "c6f0d3f1.455d9",
754 "id": "39ec9624.c1c9f2",
757 "xml": "<outcome value='Other'>",
762 "z": "c6f0d3f1.455d9",
770 "id": "a475643c.1d776",
771 "type": "returnFailure",
772 "name": "return failure",
773 "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=\"request-information.request-action is required to be CreateNetworkInstance for svc-action=assign\" />\n",
777 "z": "c6f0d3f1.455d9",
781 "id": "7a441aab.52e274",
783 "name": "block : atomic",
784 "xml": "<block atomic=\"true\">",
789 "z": "c6f0d3f1.455d9",
797 "id": "b0dc9dd7.cd7488",
799 "name": "for each network-input-parameters",
800 "xml": "<for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' >\n",
805 "z": "c6f0d3f1.455d9",
813 "id": "89793fd8.cbbfd8",
822 "z": "c6f0d3f1.455d9",
830 "id": "43f4742.1d37e0c",
831 "type": "switchNode",
832 "name": "switch name",
833 "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
838 "z": "c6f0d3f1.455d9",
846 "id": "a693d56e.072fb",
847 "type": "outcomeTrue",
849 "xml": "<outcome value='true'>\n",
854 "z": "c6f0d3f1.455d9",
862 "id": "41bb92ce.69dfe4",
863 "type": "switchNode",
864 "name": "switch value",
865 "xml": "<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`\">\n",
870 "z": "c6f0d3f1.455d9",
878 "id": "659b92d9.633a14",
881 "xml": "<outcome value=''>",
886 "z": "c6f0d3f1.455d9",
894 "id": "7bbbb2a1.5d8cb4",
895 "type": "returnFailure",
896 "name": "return failure",
897 "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=\"network-request-input.network-input-parameters.name is a required input\" />\n",
899 "x": 884.4287147521973,
901 "z": "c6f0d3f1.455d9",