3 "id":"2a040436.290c8c",
17 "id":"8161f964.80e1c8",
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}'>",
27 "z":"17ff3bf3.2a2c24",
35 "id":"30fee650.ed9d0a",
37 "name":"method network-topology-operation-activate",
38 "xml":"<method rpc='network-topology-operation-activate' mode='sync'>\n",
41 "x":278.0156555175781,
42 "y":282.01560974121094,
43 "z":"17ff3bf3.2a2c24",
51 "id":"20d450e0.f9c5c",
53 "name":"block : atomic",
54 "xml":"<block atomic=\"true\">",
57 "x":575.8489685058594,
58 "y":289.8489532470703,
59 "z":"17ff3bf3.2a2c24",
69 "id":"69c54932.e08388",
71 "name":"call GENERIC-RESOURCE-API:validate-network-input-parameters",
72 "xml":"<call module='GENERIC-RESOURCE-API' rpc='validate-network-input-parameters' mode='sync' >\n",
75 "x":965.8489685058594,
76 "y":154.8489532470703,
77 "z":"17ff3bf3.2a2c24",
85 "id":"896ee5a6.83b038",
87 "name":"for each network-input-parameters",
88 "xml":"<for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' >\n\n",
91 "x":1483.8492584228516,
93 "z":"17ff3bf3.2a2c24",
101 "id":"af2f5aa0.9db4d8",
108 "x":1730.8491668701172,
109 "y":425.84898352622986,
110 "z":"17ff3bf3.2a2c24",
126 "id":"c1ee07c8.a78ae8",
129 "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_id'`\">\n",
132 "x":2217.84952545166,
133 "y":301.84910011291504,
134 "z":"17ff3bf3.2a2c24",
142 "id":"a6b6dbe6.38ccc8",
144 "name":"switch description",
145 "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_description'`\">\n",
148 "x":2245.84952545166,
149 "y":355.8490858078003,
150 "z":"17ff3bf3.2a2c24",
158 "id":"9e54353d.d1bfc8",
160 "name":"switch routerId",
161 "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_routerId'`\">\n",
164 "x":2234.8493118286133,
165 "y":486.849045753479,
166 "z":"17ff3bf3.2a2c24",
174 "id":"66bffa85.510244",
176 "name":"switch importRT1",
177 "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_importRT1'`\">\n",
180 "x":2243.1350479125977,
181 "y":548.1347990036011,
182 "z":"17ff3bf3.2a2c24",
190 "id":"4785e157.899f7",
192 "name":"switch exportRT1",
193 "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_exportRT1'`\">\n",
196 "x":2244.135108947754,
197 "y":612.1347697973251,
198 "z":"17ff3bf3.2a2c24",
206 "id":"663f250e.61399c",
209 "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_vni'`\">\n",
212 "x":2215.135078430176,
213 "y":675.134801864624,
214 "z":"17ff3bf3.2a2c24",
222 "id":"327b4262.8149de",
223 "type":"outcomeTrue",
225 "xml":"<outcome value='true'>\n",
228 "x":2432.84952545166,
229 "y":300.84910011291504,
230 "z":"17ff3bf3.2a2c24",
238 "id":"514eeef4.8a908",
239 "type":"outcomeTrue",
241 "xml":"<outcome value='true'>\n",
244 "x":2443.84952545166,
245 "y":355.8490858078003,
246 "z":"17ff3bf3.2a2c24",
254 "id":"53af1349.89045c",
255 "type":"outcomeTrue",
257 "xml":"<outcome value='true'>\n",
260 "x":2439.8493118286133,
261 "y":485.849045753479,
262 "z":"17ff3bf3.2a2c24",
270 "id":"83930cf2.7360d",
271 "type":"outcomeTrue",
273 "xml":"<outcome value='true'>\n",
276 "x":2445.1350479125977,
277 "y":547.1347990036011,
278 "z":"17ff3bf3.2a2c24",
286 "id":"534f57af.d494e8",
287 "type":"outcomeTrue",
289 "xml":"<outcome value='true'>\n",
292 "x":2440.135108947754,
293 "y":609.1347697973251,
294 "z":"17ff3bf3.2a2c24",
302 "id":"c26455d8.5ef828",
303 "type":"outcomeTrue",
305 "xml":"<outcome value='true'>\n",
308 "x":2421.135078430176,
309 "y":675.134801864624,
310 "z":"17ff3bf3.2a2c24",
318 "id":"a9b60a7b.f654d8",
320 "name":"set description",
321 "xml":"<set>\n<parameter name='prop.dci-connects.description' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
323 "x":2625.84952545166,
324 "y":348.8490858078003,
325 "z":"17ff3bf3.2a2c24",
331 "id":"9f81d7be.b3b6e8",
333 "name":"set router_id",
334 "xml":"<set>\n<parameter name='prop.dci-connects.router_id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
336 "x":2630.8495330810547,
337 "y":478.8491325378418,
338 "z":"17ff3bf3.2a2c24",
344 "id":"8be01263.8a302",
347 "xml":"<set>\n<parameter name='prop.dci-connects.vni' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
349 "x":2591.135078430176,
350 "y":667.134801864624,
351 "z":"17ff3bf3.2a2c24",
357 "id":"2a5bea3e.9ac986",
358 "type":"returnSuccess",
359 "name":"return success",
360 "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",
362 "x":798.1347961425781,
363 "y":1130.5633239746094,
364 "z":"17ff3bf3.2a2c24",
370 "id":"fab15712.1348c8",
372 "name":"switch name",
373 "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'name'`\">\n",
376 "x":2229.0160598754883,
377 "y":243.01573181152344,
378 "z":"17ff3bf3.2a2c24",
386 "id":"5e5a3418.1941bc",
387 "type":"outcomeTrue",
389 "xml":"<outcome value='true'>\n",
392 "x":2427.0160598754883,
393 "y":243.01573181152344,
394 "z":"17ff3bf3.2a2c24",
402 "id":"5ff1b9ff.668d98",
405 "xml":"<set>\n<parameter name='prop.dci-connects.name' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
407 "x":2609.0160598754883,
408 "y":236.01573181152344,
409 "z":"17ff3bf3.2a2c24",
415 "id":"586d46f5.85b668",
417 "name":"switch networkName",
418 "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site1_networkName'`\">\n",
421 "x":2252.5158462524414,
422 "y":422.0156717300415,
423 "z":"17ff3bf3.2a2c24",
431 "id":"42b0bf4c.61f81",
432 "type":"outcomeTrue",
434 "xml":"<outcome value='true'>\n",
437 "x":2450.5158462524414,
438 "y":422.0156717300415,
439 "z":"17ff3bf3.2a2c24",
447 "id":"35413b11.2f5d34",
449 "name":"block : execute",
450 "xml":"<block atomic=\"true\">",
454 "x":799.5155563354492,
455 "y":663.0156707763672,
456 "z":"17ff3bf3.2a2c24",
465 "id":"44be3858.556028",
467 "name":"block : executeSite1",
468 "xml":"<block atomic=\"true\">",
472 "x":1092.0156173706055,
473 "y":487.5156469345093,
474 "z":"17ff3bf3.2a2c24",
483 "id":"82979b1a.ffa758",
485 "name":"block : executeSite2",
486 "xml":"<block atomic=\"true\">",
490 "x":1109.0156631469727,
491 "y":1003.5156297683716,
492 "z":"17ff3bf3.2a2c24",
501 "id":"77dd9b7e.75bb04",
504 "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_id'`\">\n",
507 "x":2203.515869140625,
508 "y":822.5155639648438,
509 "z":"17ff3bf3.2a2c24",
517 "id":"cbab9cb6.9af94",
519 "name":"switch description",
520 "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_description'`\">\n",
523 "x":2227.5162200927734,
524 "y":881.515570640564,
525 "z":"17ff3bf3.2a2c24",
534 "id":"2b87cf93.6aebd",
536 "name":"switch routerId",
537 "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_routerId'`\">\n",
540 "x":2236.515609741211,
541 "y":1077.5155363082886,
542 "z":"17ff3bf3.2a2c24",
550 "id":"1400dc59.ed1ce4",
552 "name":"switch importRT1",
553 "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_importRT1'`\">\n",
556 "x":2244.8013458251953,
557 "y":1138.8012895584106,
558 "z":"17ff3bf3.2a2c24",
566 "id":"7f102eb1.e249d",
568 "name":"switch exportRT1",
569 "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_exportRT1'`\">\n",
572 "x":2245.8014068603516,
573 "y":1202.8012603521347,
574 "z":"17ff3bf3.2a2c24",
582 "id":"e8e9faf3.7fedc8",
585 "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_vni'`\">\n",
588 "x":2216.8013763427734,
589 "y":1265.8012924194336,
590 "z":"17ff3bf3.2a2c24",
598 "id":"fa545715.6bc4d8",
599 "type":"outcomeTrue",
601 "xml":"<outcome value='true'>\n",
604 "x":2418.515869140625,
605 "y":821.5155639648438,
606 "z":"17ff3bf3.2a2c24",
614 "id":"eca3282e.6ef838",
615 "type":"outcomeTrue",
617 "xml":"<outcome value='true'>\n",
620 "x":2425.5162200927734,
621 "y":881.515570640564,
622 "z":"17ff3bf3.2a2c24",
630 "id":"5395f6bd.9d59d8",
631 "type":"outcomeTrue",
633 "xml":"<outcome value='true'>\n",
636 "x":2441.515609741211,
637 "y":1076.5155363082886,
638 "z":"17ff3bf3.2a2c24",
646 "id":"bb1a369b.7663b8",
647 "type":"outcomeTrue",
649 "xml":"<outcome value='true'>\n",
652 "x":2446.8013458251953,
653 "y":1137.8012895584106,
654 "z":"17ff3bf3.2a2c24",
662 "id":"92bb4854.187448",
663 "type":"outcomeTrue",
665 "xml":"<outcome value='true'>\n",
668 "x":2441.8014068603516,
669 "y":1199.8012603521347,
670 "z":"17ff3bf3.2a2c24",
678 "id":"f8be59bd.a42528",
679 "type":"outcomeTrue",
681 "xml":"<outcome value='true'>\n",
684 "x":2422.8013763427734,
685 "y":1265.8012924194336,
686 "z":"17ff3bf3.2a2c24",
694 "id":"52d4304f.1112c",
696 "name":"set description",
697 "xml":"<set>\n<parameter name='prop.dci-connects.description' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
699 "x":2607.5162200927734,
700 "y":874.515570640564,
701 "z":"17ff3bf3.2a2c24",
707 "id":"6207e038.3cb7a",
709 "name":"set router_id",
710 "xml":"<set>\n<parameter name='prop.dci-connects.router_id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
712 "x":2632.5158309936523,
713 "y":1069.5156230926514,
714 "z":"17ff3bf3.2a2c24",
720 "id":"a6ac757.8e55c88",
723 "xml":"<set>\n<parameter name='prop.dci-connects.vni' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
725 "x":2592.8013763427734,
726 "y":1257.8012924194336,
727 "z":"17ff3bf3.2a2c24",
733 "id":"8a2a845c.c20518",
735 "name":"switch networkName",
736 "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'site2_networkName'`\">\n",
739 "x":2254.182144165039,
740 "y":1012.6821622848511,
741 "z":"17ff3bf3.2a2c24",
749 "id":"cba705fe.7fbd68",
750 "type":"outcomeTrue",
752 "xml":"<outcome value='true'>\n",
755 "x":2452.182144165039,
756 "y":1012.6821622848511,
757 "z":"17ff3bf3.2a2c24",
765 "id":"7621d3f.20db72c",
772 "x":1722.5153198242188,
773 "y":944.5155217647552,
774 "z":"17ff3bf3.2a2c24",
788 "id":"de7fc2e1.99f1a",
790 "name":"for each network-input-parameters",
791 "xml":"<for index='idx' start='0' end='`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`' >\n\n",
794 "x":1475.5154113769531,
795 "y":946.5155522823334,
796 "z":"17ff3bf3.2a2c24",
804 "id":"43d13ebf.45445",
807 "xml":"<set>\n<parameter name='prop.dci-connects.id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
809 "x":2614.5159072875977,
810 "y":294.5156497955322,
811 "z":"17ff3bf3.2a2c24",
817 "id":"ec24e74c.17dbe8",
819 "name":"switch tunnelType",
820 "xml":"<switch test=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].name == 'tunnelType'`\">\n",
824 "y":744.5155639648438,
825 "z":"17ff3bf3.2a2c24",
833 "id":"12f5c8b9.553a97",
834 "type":"outcomeTrue",
836 "xml":"<outcome value='true'>\n",
840 "y":744.5155639648438,
841 "z":"17ff3bf3.2a2c24",
849 "id":"ea283679.45ebf8",
851 "name":"set tunnelType",
852 "xml":"<set>\n<parameter name='prop.dci-connects.tunnelType' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
855 "y":736.5155639648438,
856 "z":"17ff3bf3.2a2c24",
862 "id":"6a6dccab.683c44",
864 "name":"block : sendRequest",
865 "xml":"<block atomic=\"true\">",
869 "x":1388.0156440734863,
870 "y":1504.0155696868896,
871 "z":"17ff3bf3.2a2c24",
881 "id":"dc085795.91fbb8",
883 "name":"execute RestApiCallNode Activate Vxlan Tunnel",
884 "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"$prop.sdncRestApi.tempDir +'/l3-dci-connects-template.json'\"/>\n<parameter name=\"restapiUrl\" value=\"$prop.sdncRestApi.thirdpartySdnc.url +'/v2.0/l3-dci-connects'\"/>\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=\"restapi-result\"/>\n",
887 "x":2196.0159187316895,
888 "y":1567.0155248641968,
889 "z":"17ff3bf3.2a2c24",
897 "id":"ff1f7cdd.1de74",
900 "xml":"<outcome value='success'>\n",
903 "x":1881.5154113769531,
904 "y":1356.0150890350342,
905 "z":"17ff3bf3.2a2c24",
913 "id":"2e24b7ed.4af348",
916 "xml":"<outcome value='not-found'>\n",
919 "x":1888.5154113769531,
920 "y":1394.0150890350342,
921 "z":"17ff3bf3.2a2c24",
929 "id":"d482f537.fd1128",
932 "xml":"<outcome value='Other'>\n",
935 "x":1880.5154113769531,
936 "y":1436.0150890350342,
937 "z":"17ff3bf3.2a2c24",
945 "id":"8fb0b02d.400ca",
947 "name":"block : atomic",
948 "xml":"<block atomic=\"true\">\n",
952 "x":2046.5154113769531,
953 "y":1345.0150890350342,
954 "z":"17ff3bf3.2a2c24",
962 "id":"eabc77a3.4c68d8",
963 "type":"returnFailure",
964 "name":"return failure",
965 "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
967 "x":2045.5154113769531,
968 "y":1398.0150890350342,
969 "z":"17ff3bf3.2a2c24",
975 "id":"2834746.db4418c",
976 "type":"returnFailure",
977 "name":"return failure",
978 "xml":"<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value='' />\n",
980 "x":2038.5154113769531,
981 "y":1445.0150890350342,
982 "z":"17ff3bf3.2a2c24",
988 "id":"689b1559.c8e0ac",
989 "type":"get-resource",
990 "name":"get-resource dci-connects",
991 "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 = $prop.dci-connects.id AND \n\t\t depth = '1'\"\n pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n",
994 "x":1693.5155334472656,
995 "y":1403.0151081085205,
996 "z":"17ff3bf3.2a2c24",
1006 "id":"6b04340b.667f8c",
1008 "name":"set controller data",
1009 "xml":"<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.serviceUrl`\" />\n<parameter name='prop.sdncRestApi.templateDir' value='/opt/onap/sdnc/data' />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list[0].esr-system-info.password`\" />\n\n",
1011 "x":1665.0153846740723,
1012 "y":1504.5150623321533,
1013 "z":"17ff3bf3.2a2c24",
1019 "id":"e59ef441.ec3b38",
1020 "type":"switchNode",
1021 "name":"switch tunnelType",
1022 "xml":"<switch test=\"`$prop.dci-connects.tunnelType`\">\n",
1025 "x":1659.0153770446777,
1026 "y":1591.5150356292725,
1027 "z":"17ff3bf3.2a2c24",
1036 "id":"c8be8edd.1a0fe",
1037 "type":"outcomeTrue",
1039 "xml":"<outcome value='L3-DCI'>\n",
1042 "x":1872.0155067443848,
1043 "y":1571.5150356292725,
1044 "z":"17ff3bf3.2a2c24",
1052 "id":"22e73278.5a70de",
1053 "type":"outcomeTrue",
1055 "xml":"<outcome value='L2-DCI'>\n",
1058 "x":1870.0153274536133,
1059 "y":1643.5150356292725,
1060 "z":"17ff3bf3.2a2c24",
1068 "id":"f8a4213a.dfd9b",
1071 "xml":"<set>\n<parameter name='prop.dci-connects.id' value='`$network-topology-operation-input.network-request-input.network-input-parameters.param[$idx].value`' />\n",
1073 "x":2592.515842437744,
1074 "y":816.5156164169312,
1075 "z":"17ff3bf3.2a2c24",
1081 "id":"73fa04bd.92094c",
1083 "name":"execute RestApiCallNode Activate Vxlan Tunnel",
1084 "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"$prop.sdncRestApi.tempDir +'/l2-dci-connects-template.json'\"/>\n<parameter name=\"restapiUrl\" value=\"$prop.sdncRestApi.thirdpartySdnc.url +'/v2.0/l2-dci-connects'\"/>\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=\"restapi-result\"/>\n",
1087 "x":2190.0158729553223,
1088 "y":1644.0154609680176,
1089 "z":"17ff3bf3.2a2c24",
1097 "id":"e75e638.f112aa",
1098 "type":"outcomeTrue",
1100 "xml":"<outcome value='false'>\n",
1103 "x":2424.015800476074,
1104 "y":940.5156002044678,
1105 "z":"17ff3bf3.2a2c24",
1113 "id":"f56ef97.bc2ee08",
1115 "name":"set description",
1116 "xml":"<set>\n<parameter name='prop.dci-connects.description' value='' />\n",
1118 "x":2605.015869140625,
1119 "y":935.5155410766602,
1120 "z":"17ff3bf3.2a2c24",